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 c/25929] ICE with -ftree-loop-linear



------- Comment #3 from uttamp at us dot ibm dot com  2006-01-25 16:56 -------
Reduced test case

int vq_index(float *in, const float *codebook, int len, int entries)
{
   int i,j;
   int best_index=0;
   for (i=0;i<entries;i++)
   {
      float dist=0;
      for (j=0;j<len;j++)
      {
         float tmp = in[j]-*codebook++;
         dist += tmp*tmp;
      }
      if (i==0 || dist<0)
      {
         best_index=i;
      }
   }
   return best_index;
}

$ elm3b11:/home/pawar> /opt/gcc-nightly/trunk-20060123/bin/gcc -O1
-ftree-loop-linear -c ccbdYzn2.c
ccbdYzn2.c: In function ?vq_index?:
ccbdYzn2.c:3: internal compiler error: in lambda_loopnest_to_gcc_loopnest, at
lambda-code.c:1982
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25929


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