With the CVS version of GCC compiled for arm-elf, I get a segmentation fault with -O2 -fnew-ra. GCC version info: [janne@borg build-arm-elf]$ arm-elf-gcc --version arm-elf-gcc (GCC) 4.0.0 20041123 (experimental) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiling: [janne@borg build-arm-elf]$ arm-elf-gcc -O1 -fnew-ra -c hgInt32Test.i -o foo.o ../hgInt32Test.c: In function âhgClz32Testâ: ../hgInt32Test.c:21: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Without -fnew-ra: [janne@borg build-arm-elf]$ arm-elf-gcc -O1 -c hgInt32Test.i -o foo.o [janne@borg build-arm-elf]$ I have included the sample file as an attachment. It is a little long, but if I tried to remove all functions after the offending hgClz32, it didn't crash anymore.
Created attachment 7588 [details] sample case for -fnew-ra ICE Can be used to reproduced the segmentation fault. I also checked that this file does *not* segfault with GCC 3.4.3. (arm-elf)
Confirmed but ...
Suspending just like all other -fnew-ra bugs.
Closing as wiill not fix as new-ra was removed from the mainline.