[Bug optimization/12619] ICE with -fnew-ra on Pentium 4

coyote at coyotegulch dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 16 13:32:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12619



------- Additional Comments From coyote at coyotegulch dot com  2003-10-16 13:32 -------
The error persists in gcc 3.4 20031015. I have simplified the required options
to cause the error:

gcc -lm -lrt -DGCCGA -O1 -o almabench -march=pentium4 -fgcse -finline-functions
-fnew-ra almabench.c

Also, I get the same ICE on a C++ program, using slightly different options:

g++ -lrt -o fftbench -march=pentium4 -fno-inline -fnew-ra fftbench.cpp

In both cases, -fnew-ra is involved, as is -march=pentium4.

The above is a different program from the one provided with the initial bug
report. All programs that break are floating-point intensive. I will try to
reduce the size of these programs even more to find specific routines causing
the problem.

Output of -v -temps from the second compile is:
scott@Tycho:~/projects/coyotegulch/acovea$  g++ -v -save-temps -lm -lrt -DACOVEA
-o fftbench -march=pentium4 -fno-inline -fnew-ra fftbench.cpp
Reading specs from /opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: ../gcc-3.4-20031015/configure -prefix=/opt/gcc-3.4
--enable-shared --enable-threads=posix --enable-__cxa_atexit
Thread model: posix
gcc version 3.4 20031015 (experimental)
 /opt/gcc-3.4/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -E -quiet -v
-D_GNU_SOURCE -DACOVEA fftbench.cpp -march=pentium4 -fno-inline -fnew-ra -o
fftbench.ii
ignoring nonexistent directory
"/opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
 /opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
 /opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
 /usr/local/include
 /opt/gcc-3.4/include
 /opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/include
 /usr/include
End of search list.
 /opt/gcc-3.4/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -fpreprocessed
fftbench.ii -quiet -dumpbase fftbench.cpp -march=pentium4 -auxbase fftbench
-version -fno-inline -fnew-ra -o fftbench.s
GNU C++ version 3.4 20031015 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4 20031015 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
 as -V -Qy -o fftbench.o fftbench.s
GNU assembler version 2.14.90.0.6 (i386-linux) using BFD version 2.14.90.0.6
20030820 Debian GNU/Linux
 /opt/gcc-3.4/libexec/gcc/i686-pc-linux-gnu/3.4/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o fftbench /usr/lib/crt1.o
/usr/lib/crti.o /opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/crtbegin.o
-L/opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4
-L/opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/../../.. -lrt fftbench.o -lstdc++
-lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/opt/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/crtend.o /usr/lib/crtn.o

The output files are attached.



More information about the Gcc-bugs mailing list