[Bug c/25575] some uninitialized warning disappear when compile without -O

2007-06-18 Thread matze at braunis dot de


--- Comment #2 from matze at braunis dot de  2007-06-18 14:17 ---
Why don't you turn on dataflow computation to get the warning even with -O0?
-O0 is typically used for developing/debugging, so as a user I want to see all
possible warnings...


-- 


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



[Bug c/25575] some uninitialized warning disappear when compile without -O

2005-12-27 Thread steven at gcc dot gnu dot org


--- Comment #1 from steven at gcc dot gnu dot org  2005-12-27 12:22 ---
That happens because data flow information is used to find uninitialized
variables.  Some folks argue that this by itself is a bug, and that it should
be entirely up to the front end to diagnose uninitialized variables.  But then
a lot of warnings could not be issued because the front ends don't have the
means to compute which variables are initialized on one path through the
program but not on another.

In short, this is the result of a design decision.


-- 

steven at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||WONTFIX


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