This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24309] [4.1 Regression] ICE with -O3 -ftree-loop-linear
- 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: 11 Oct 2005 14:48:47 -0000
- Subject: [Bug tree-optimization/24309] [4.1 Regression] ICE with -O3 -ftree-loop-linear
- References: <bug-24309-8902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-11 14:48 -------
Confirmed, reduced testcase:
float weight[10];
void lsp_weight_quant(float *x, char *cdbk)
{
int i,j;
float dist;
int best_id=0;
for (i=0;i<16;i++)
{
for (j=0;j<10;j++)
dist=dist+weight[j];
if (dist<0)
best_id=i;
}
x[j] = cdbk[best_id*10+j];
}
------
but this is just a latent bug as the above also ICEs in 4.0.0.
Related to PR 23820.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org
BugsThisDependsOn| |23820
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-11 14:48:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24309