[LLVMdev] gcc's -Wuninitialized

greened at obbligato.org greened at obbligato.org
Fri Jan 4 16:24:19 PST 2013


FYI,

After applying some patches to use gcc pragmas to disable
-Wuninitialized in places we know are safe, I discovered a bug that
makes this strategy much less desirable:

gcc Bug 55881
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55881

Basically, gcc loses information about disabled diagnostics when
inlining, to the point where the only way to supress the warning is to
put the pragma in the inlined function, which is completely
unacceptable.

So for the time being, I'm going to add -Wno-uninitialized to our local
build and just submit patches to fix other warnings.  I won't submit any
changes to impact -Wuninitialized.

                     -David



More information about the llvm-dev mailing list