[Bug tree-optimization/78394] False positives of maybe-uninitialized with -Og

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 17 15:11:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78394

--- Comment #11 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #10)
> IMO -Wmaybe-uninitialized should not be enabled by -Wall, whatever the
> optimization level (even at -O3), it has too many false positives that are
> all but impossible to work around (thus violating the definition of -Wall),
> -Wextra is good enough for it. We could keep -Wuninitialized though (it
> requires changing the dependency between these 2 warnings).

I think I remember at least 1 other bug where we came to this conclusion; I
forget its number right now though...


More information about the Gcc-bugs mailing list