This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE in gcc (20000720) on i386-linux
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ICE in gcc (20000720) on i386-linux
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Sun, 23 Jul 2000 14:19:26 +0200 (MET DST)
- CC: 33786-quiet at bugs dot debian dot org
[please cc to 33786-quiet@bugs.debian.org on replies]
The following code
#include <unistd.h>
#include <stdio.h>
#include <libio.h>
int main(int argc, char** argv)
{
int i = 0x80000000;
int j;
int k;
j = i / -1;
k = i % -1;
fprintf(stdout,"i is %d\n",i);
fprintf(stdout,"i / -1 = %d\n",j);
fprintf(stdout,"i %% -1 is %d\n",k);
}
compiles with -O0, but not with -O1:
$ gcc -O1 bug-33876.c && ./a.out
bug-33876.c: In function `main':
bug-33876.c:14: Internal compiler error in float_signal, at toplev.c:1546
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.