Date: Fri, 14 May 1999 07:04:22 +0200 From: Ronald de Man To: pgcc AT delorie DOT com Subject: bug in pgcc-1.1.1 Message-ID: <19990514070422.A1583@win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i X-Operating-System: Linux localhost 2.2.8 Reply-To: pgcc AT delorie DOT com Hello, While compiling xdvi-22, pgcc-1.1.1 reported an internal compiler error. I tracked it down to the following lines which seem to form a minimal configuration that will still give the error: #include #define rint(x) floor((x) + 0.5) main() { float b = cos(0); f(rint(b), rint(b)); f(rint(b), rint(b)); } When I try to compile it: $ gcc -O2 -c bug.c ../../egcs-1.1.1/gcc/caller-save.c:657: Internal compiler error in function insert_save_restore Compiling it with -O makes the problem go away. What I don't understand is that first preprocessing the file with gcc -E, then running gcc -O2 on the output also works: $ gcc -E bug.c > nobug.c $ gcc -O2 -c nobug.c Of course this bug might already have been solved in egcs-1.1.2/pgcc-1.1.3, but I haven't yet compiled those. Ronald