Bug 18629 - [new-ra] ICE with -fnew-ra
Summary: [new-ra] ICE with -fnew-ra
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-11-23 15:50 UTC by Janne Hellsten
Modified: 2005-01-17 15:24 UTC (History)
1 user (show)

See Also:
Host: i686 linux
Target: arm-elf
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-11-24 06:13:10


Attachments
sample case for -fnew-ra ICE (2.24 KB, text/plain)
2004-11-23 15:54 UTC, Janne Hellsten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janne Hellsten 2004-11-23 15:50:51 UTC
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.
Comment 1 Janne Hellsten 2004-11-23 15:54:17 UTC
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)
Comment 2 Andrew Pinski 2004-11-24 06:13:10 UTC
Confirmed but ...
Comment 3 Andrew Pinski 2004-11-24 06:13:42 UTC
Suspending just like all other -fnew-ra bugs.
Comment 4 Andrew Pinski 2005-01-17 15:24:04 UTC
Closing as wiill not fix as new-ra was removed from the mainline.