[llvm-commits] [llvm] r120281 - /llvm/trunk/lib/Analysis/InstructionSimplify.cpp

Duncan Sands baldrick at free.fr
Mon Nov 29 00:44:40 PST 2010


Hi Chandler,

> Add some dead stores to pacify my least favorite GCC warning: may be
> uninitialized. The warning is terrible, has incorrect source locations, and has
> a huge false positive rate such as *all* of these.
>
> If anyone has a better solution, please let me know. Alternatively, I'll
> happily add -Wno-uninitialized to the -Werror build mode. Maybe I can even do
> it *only* when building with GCC instead of Clang.

thanks for fixing this.  This issue with pattern matching resulting in "may be
used uninitialized" warnings has come up before with recent versions of gcc,
and indeed seems to be bogus.  How about opening a gcc bug report about this?

Ciao,

Duncan.



More information about the llvm-commits mailing list