This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32176] [4.3 Regression] ICE tree-type mismatch: expected integer_cst, have plus_expr in int_cst_value, at tree.c:7720
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2007 20:21:41 -0000
- Subject: [Bug middle-end/32176] [4.3 Regression] ICE tree-type mismatch: expected integer_cst, have plus_expr in int_cst_value, at tree.c:7720
- References: <bug-32176-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from fxcoudert at gcc dot gnu dot org 2007-06-20 20:21 -------
I can reproduce this 4.3 regression with the following C testcase:
$ cat w.c
void foo (void)
{
int i, m;
float xa[21];
m = 0;
while (1)
{
i = 0;
while (1)
{
if (xa[(long int)i] == xa[(long int)(i+m)])
_gfortran_abort ();
if (i == 10)
break;
i++;
}
if (m == 10)
break;
m++;
}
}
$ gcc -O2 -fprefetch-loop-arrays -m64 w.c
w.c: In function ?foo?:
w.c:2: internal compiler error: tree check: expected integer_cst, have nop_expr
in int_cst_value, at tree.c:7720
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major
Priority|P3 |P1
Last reconfirmed|2007-06-12 15:44:47 |2007-06-20 20:21:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32176