This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc ICE in gen_lowpart
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc ICE in gen_lowpart
- From: scott snyder <snyder at d0sgibnl1 dot fnal dot gov>
- Date: Tue, 01 Aug 2000 12:39:47 CDT
hi -
For a recent cvs version of gcc (2.96 20000801 on i686-pc-linux-gnu),
the compiler crashes on the following input if the -O2 and -fPIC switches
are used:
--------------------------------------------------------------
static int gl_cnt = 0;
static char gl_buf[1024];
void
gl_yank()
{
int i;
for (i=gl_cnt; i >= 0; i--)
gl_buf[i+10] = gl_buf[i];
}
--------------------------------------------------------------
$ ./cc1 -O2 -fPIC x.c
gl_yank
x.c: In function `gl_yank':
x.c:11: Internal compiler error in gen_lowpart, at emit-rtl.c:1081
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
thanks,
sss