[Bug tree-optimization/24226] [4.1 Regression] ICE: Segmentation fault in operand_equal_p (complete loop unrolling)
belyshev at depni dot sinp dot msu dot ru
gcc-bugzilla@gcc.gnu.org
Thu Oct 6 15:19:00 GMT 2005
------- Comment #5 from belyshev at depni dot sinp dot msu dot ru 2005-10-06 15:19 -------
// a bit smaller test, compile with -O1:
typedef struct
{
int b, s;
} op;
int *ico [3];
static int bar (char *d)
{
long o = d;
switch (*d)
{
case 0x1F : return 0 ;
}
return d - o;
}
void f (long d, int *p, op ops [3], int i)
{
if (bar (d))
for (; i < *p; i ++)
if (ops [i].s && ops [i].b)
break;
for (i = 0 ; i < 3; i ++)
if (p == ico [i])
break;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24226
More information about the Gcc-bugs
mailing list