This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29921] [4.3 regression]: internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:437
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2006 20:02:22 -0000
- Subject: [Bug tree-optimization/29921] [4.3 regression]: internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:437
- References: <bug-29921-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from hjl at lucon dot org 2006-11-22 20:02 -------
A testcase in C:
int
foo (float *array, int end)
{
int i;
float sum1, sum2;
sum2=0;
for (i=0; i < end; i++)
sum2=sum2+array[i];
sum2=1./sum2;
sum1 =0.;
for (i=0; i < end; i++)
sum1=sum1+array[i];
sum1 =sum1*sum2;
if (-10.0/sum1 < 5.E-5)
end=0;
return end;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29921