This is the mail archive of the gcc-bugs@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]

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



------- 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


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