This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/60444] No -Wmaybe-uninitialized warning
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Mar 2014 17:05:24 +0000
- Subject: [Bug tree-optimization/60444] No -Wmaybe-uninitialized warning
- Auto-submitted: auto-generated
- References: <bug-60444-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60444
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-03-13
CC| |mpolacek at gcc dot gnu.org
Component|c |tree-optimization
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The warning will show up with -fno-tree-ccp -fno-tree-vrp.
CCP removes the x = 1; and instead makes the function always return 1, that is
from
<bb 3>:
foo ();
goto <bb 5>;
<bb 4>:
x_7 = 1;
<bb 5>:
# x_1 = PHI <x_6(D)(3), x_7(4)>
x_8 = x_1;
return x_8;
it makes
<bb 3>:
foo ();
<bb 4>:
return 1;