This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: move flag_debug_compare out of diagnostics.c


On Feb 19, 2010, Manuel LÃpez-IbÃÃez <lopezibanez@gmail.com> wrote:

> The uncommented test for flag_debug_compare in diagnostics.c is
> probably a left-over from the vta merge.

Nope, it's necessary to avoid issuing duplicate DT_NOTEs during
-fcompare-debug (two-stage) compilations.

Warnings are silenced by other means (gcc.c adds -w), and errors prevent
the second stage, so notes are the only the required special handling.

Silencing all diagnostics is kind of nice, but what if there's a
compiler bug that causes only the second stage to fail with an ICE, or
even a regular error?  It would be nice if it wasn't silenced.

All that said, I don't object to the change, if that's the way people
want to go.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]