This is the mail archive of the gcc@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: Endless "declared 'static' but never defined" warnings with stage 2 & 3 compilers


On 01/07/2012 16:16, t-rexky wrote:
I discovered that if I rebuild stage 3 with BOOT_CFLAGS="-g -O0", the
warnings in stage 3 compiler all disappear!

This is extremely wierd!


So it looks like something is affected by the optimization level. Usually, it is an uninitialized variable, buffer overflow, strict aliasing issue, or maybe a GCC bug...

Since it is unlikely that this specific bug is in the standard GCC sources (other people would have noticed), maybe it could be somewhere in the C sources added for your NeXT configuration?

--
Vincent Rivière


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