This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18629] New: ICE with -fnew-ra and -O2
- From: "janne at hybrid dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2004 15:51:01 -0000
- Subject: [Bug c/18629] New: ICE with -fnew-ra and -O2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.
--
Summary: ICE with -fnew-ra and -O2
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janne at hybrid dot fi
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686 linux
GCC target triplet: arm-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18629