This is the mail archive of the egcs-bugs@egcs.cygnus.com mailing list for the EGCS project.


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

Internal compiler error in `float_signal'


[Please Cc: 33786@bugs.debian.org so your responses get archived in the
Debian bugtracking system]

This problem is still repeatable with 
	gcc version gcc-2.95 19990625 (prerelease)

jcn206a ray 13:23 /tmp > /usr/lib/gcc-ss/bin/gcc -O1 -o funnyO1 funny.c &&
./funnyO1                                                                           
funny.c: In function `main':
funny.c:14: Internal compiler error in `float_signal', at toplev.c:2418

Ray
-- 
LEADERSHIP  A form of self-preservation exhibited by people with auto-
destructive imaginations in order to ensure that when it comes to the crunch 
it'll be someone else's bones which go crack and not their own.       
- The Hipcrime Vocab by Chad C. Mulligan    



Package: egcc
Version: 2.91.61-1

$ cat funny.c
#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);
}
$ egcc -O0 -o funnyO0 funny.c

Ok! 

$ ./funnyO0
i is -2147483648
i / -1 = -2147483648
i % -1 is 0

Ok too.

$ egcc -O1 -o funnyO1 funny.c
../../gcc/toplev.c:2272: Internal compiler error in function float_signal
$ egcc -O2 -o funnyO2 funny.c
../../gcc/toplev.c:2272: Internal compiler error in function float_signal
$ egcc -O3 -o funnyO3 funny.c
../../gcc/toplev.c:2272: Internal compiler error in function float_signal

and so on.

The same occurs with egcs 1.1.1 (egcs_2.91.60-5).


        Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802




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