With the CVS version of GCC compiled for arm-elf, I get a segmentation fault
with -O2 -fnew-ra.

GCC version info:
[EMAIL PROTECTED] 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:
[EMAIL PROTECTED] 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:
[EMAIL PROTECTED] build-arm-elf]$ arm-elf-gcc -O1 -c hgInt32Test.i -o foo.o
[EMAIL PROTECTED] 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

Reply via email to