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]

ICE in gcc (20000720) on i386-linux


[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.

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