This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18291] [4.0 Regression]: ICE in merge_alias_info
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Nov 2004 23:30:22 -0000
- Subject: [Bug tree-optimization/18291] [4.0 Regression]: ICE in merge_alias_info
- References: <20041103204310.18291.snyder@fnal.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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