Mail Archives: pgcc/1999/05/14/01:07:09
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 <math.h>
#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
- Raw text -