This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/53239] [4.7 Regression] VRP vs named value return opt
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2012 22:02:59 +0000
- Subject: [Bug middle-end/53239] [4.7 Regression] VRP vs named value return opt
- Auto-submitted: auto-generated
- References: <bug-53239-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53239
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-05-04
Component|c++ |middle-end
Summary|[4.7 Regression] -ftree-vrp |[4.7 Regression] VRP vs
|breaks min() |named value return opt
Ever Confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-04 22:02:59 UTC ---
Actually the following is what is being removed:
if (D.36751_45 < 0)
goto <bb 6>;
else
goto <bb 7>;
<bb 6>:
<bb 7>:
# D.36747_44 = PHI <<retval>_2(D)(6), &D.35100(5)>
So it is not VRP really as it is doing something fine. It is just we say
<retval>_2 is uninitialized.