c/1827: ICE in `reverse_condition' or segfault depending on version

Etienne Lorrain etienne_lorrain@yahoo.fr
Thu Feb 1 07:00:00 GMT 2001


  Following the GNATS report C/1827 earlier today, here is another
 testcase.
  This one is more usefull for the standart case (the %c has moved),
 so the memory at "gs:(0)" can be accessed the same as "gs:(%eax)" and
 "gs:(symbol)", and that produces the same result:

extern inline unsigned gpeekw (unsigned offset)
  {
  unsigned returned;

  asm volatile (" movzwl %%gs:(%c1),%0 " : "=r" (returned) : "g" (offset));
  return returned;
  }

unsigned word, off;

void fct (void)
  {
  word = gpeekw (off);
  }

http://www.codesourcery.com/gcc-compile.shtml and -O :

/tmp/@29244.7.c: In function `fct':
/tmp/@29244.7.c:14: Internal compiler error in reverse_condition, at
jump.c:1922
Please submit a full bug report.
 See  for instructions.

  With EGCS:
[etienne@nextstar gujin]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
[etienne@nextstar gujin]$ gcc -O test.c -c -o test.o
../../gcc/jump.c:3103: Internal compiler error in function reverse_condition

  With GCC-2.95.2-pre2:
[etienne@nextstar gujin]$ ../toolchain/bin/gcc -v
Reading specs from
/home/etienne/projet/toolchain/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010112 (prerelease)
[etienne@nextstar gujin]$ ../toolchain/bin/gcc -S -O test.c -o test.s
test.c: In function `fct':
test.c:14: Internal compiler error in `reverse_condition', at jump.c:3260
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

  Etienne.


___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
Yahoo! Messenger : http://fr.messenger.yahoo.com


More information about the Gcc-bugs mailing list