This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25575] some uninitialized warning disappear when compile without -O
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2005 12:22:59 -0000
- Subject: [Bug c/25575] some uninitialized warning disappear when compile without -O
- References: <bug-25575-11381@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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