[Bug middle-end/48770] [4.7 Regression] wrong code with -O -fprofile-arcs -fPIC -fno-dce -fno-forward-propagate -fno-tree-forwprop
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 26 20:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48770
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.04.26 20:03:25
Ever Confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-26 20:03:25 UTC ---
Here is one that fails with the C front-end:
int test_goto2 (int f)
{
int i;
for (i = 0; ({_Bool a = i < 10;a;}); i++)
{
if (i == f)
goto lab2;
}
return 4;
lab2:
return 8;
}
int main ()
{
test_goto2 (30);
return 0;
}
More information about the Gcc-bugs
mailing list