[Bug tree-optimization/2480] aliasing problem with global structures
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 7 01:33:00 GMT 2008
------- Comment #11 from pinskia at gcc dot gnu dot org 2008-04-07 01:32 -------
Hmm, we do get something different on the trunk:
bar ()
{
struct example * ex1.0;
<bb 2>:
ex1.0 = ex1;
ex1.0->a = 1;
ex1.0->b = 2;
ex1.0->c = 3;
if (ex1.0->b != 2)
goto <bb 3>;
else
goto <bb 5>;
<bb 3>:
link_error ();
if (ex1->c != 3)
goto <bb 4>;
else
goto <bb 5>;
<bb 4>:
Invalid sum of incoming frequencies 5123, should be 6216
link_error () [tail call];
<bb 5>:
Invalid sum of incoming frequencies 11093, should be 10000
return;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2480
More information about the Gcc-bugs
mailing list