gcc ICE in gen_lowpart

scott snyder snyder@d0sgibnl1.fnal.gov
Tue Aug 1 10:40:00 GMT 2000


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


More information about the Gcc-bugs mailing list