This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc ICE in gen_lowpart



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]