This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24226] [4.1 Regression] ICE: Segmentation fault in operand_equal_p (complete loop unrolling)
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2005 15:19:36 -0000
- Subject: [Bug tree-optimization/24226] [4.1 Regression] ICE: Segmentation fault in operand_equal_p (complete loop unrolling)
- References: <bug-24226-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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