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]

Re: Internal Compiler error in 2.95.1 && 2.96


  In message <u8ogg7fs69.fsf@arthur.rhein-neckar.de>you write:
  > 
  > With both gcc 2.95.1 and 2.96 19990811 I get an ICE when compiling the 
  > folloging piece of code:
  > 
  > typedef unsigned int size_t;
  > 
  > char *
  > compile (char *__restrict instring, char *__restrict expbuf,
  > 	 __const char *__restrict endbuf, int eof)
  > {
  >   char *input_buffer = ((void *)0) ;
  >   size_t current_size = 0;
  >   int ch;
  > 
  >   while ((ch = (0 )) != eof)
  >     {
  >       if (ch == '\0' || ch == '\n')
  > 	{
  > 	  break;
  > 	}
  >       input_buffer[current_size++] = ch;
  >     }
  > }
  > 
  > with gcc -O2
  > 
  > Here's the output from gcc -O2 -v:
  > Reading specs from /opt/gcc-2.95/lib/gcc-lib/i486-pc-linux-gnu/2.95.1/specs
  > gcc version 2.95.1 19990816 (release)
  >  /opt/gcc-2.95/lib/gcc-lib/i486-pc-linux-gnu/2.95.1/cc1 regexp-test.i -quie
  > t -O2 -version -o /tmp/ccbayRvj.s
  > GNU C version 2.95.1 19990816 (release) (i486-pc-linux-gnu) compiled by GNU
  >  C version 2.95.1 19990816 (release).
  > regexp-test.i: In function `compile':
  > regexp-test.i:19: Internal compiler error in `add_insn_before', at emit-rtl
  > .c:2559
  > Please submit a full bug report.
  > See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructio
  > ns.
  > 
  > gcc was compiled on an i486 running Linux 2.2.12 and a glibc 2.1.2
  > development version.
I just tried this with the current gcc-2.95.2 prerelease sources and it
worked fine.

jeff

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