This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25929] ICE with -ftree-loop-linear
- From: "uttamp at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2006 16:56:31 -0000
- Subject: [Bug c/25929] ICE with -ftree-loop-linear
- References: <bug-25929-12063@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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