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: [LTO] PATCH: Fix segv triggered by null pointer dereference


One more thing about this bug.  We should not warn twice, but we
currently can't avoid this.  The warning from cc1 and lto1 are
duplicates.  We could require that any warnings emitted by the
original FE should not be emitted by lto1. The disadvantage of this is
that we would miss warnings when the .o files are compiled
independently.

The problem with the duplicate warnings is not very straightforward to
fix because there are some warnings that we emit *after* writing out
gimple, so the gimple_no_warning_p marker does not work.

The only way I see of avoiding duplicate warnings reliably is to exit
right after emitting gimple.


Diego.


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