[Bug tree-optimization/18291] [4.0 Regression]: ICE in merge_alias_info
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 6 23:30:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-06 23:30 -------
One where we only depend on no extern functions:
int baz(int k2)
{
int i, j, *p, k = 1, k1 = 0;
if (k2)
p = &j;
else
p = &i;
if (k1)
*p = 0 , p = &k;
*p = 1;
return k;
}
In fact this should optimize to just return 0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18291
More information about the Gcc-bugs
mailing list