This is the mail archive of the
mailing list for the GCC project.
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
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.