This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/29921] [4.3 regression]: internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:437



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]