Bug 13395 - [new-ra] ICE during bootstrap with BOOT_CFLAGS="-O2 -g -fnew-ra -ftracer"
Summary: [new-ra] ICE during bootstrap with BOOT_CFLAGS="-O2 -g -fnew-ra -ftracer"
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.4.0
: P2 minor
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, monitored
Depends on:
Blocks: 13246
  Show dependency treegraph
 
Reported: 2003-12-13 19:46 UTC by Václav Haisman
Modified: 2005-01-17 15:22 UTC (History)
3 users (show)

See Also:
Host: i386-unknown-freebsd4.9
Target: i386-unknown-freebsd4.9
Build: i386-unknown-freebsd4.9
Known to work:
Known to fail:
Last reconfirmed: 2004-11-05 01:35:00


Attachments
Preprocessed source (12.33 KB, application/octet-stream)
2003-12-13 19:47 UTC, Václav Haisman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Václav Haisman 2003-12-13 19:46:55 UTC
I get this ICE while bootstrapping with those two -f* options. I didn't try any
other combination of these. Preprocessed source is attached.

logout ~/tmp/gcc34/objdir/gcc>stage1/xgcc -Bstage1/
-B/home/4/wilx/i386-unknown-freebsd4.9/bin/ -c   -O2 -g -fnew-ra -ftracer
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wold-style-definition -Werror -fno-common  
-DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../srcdir/gcc
-I../../srcdir/gcc/. -I../../srcdir/gcc/../include genmodes.i -o genmodes.o -v
Reading specs from stage1/specs
Configured with: ../srcdir/configure --disable-nls
--enable-version-specific-runtime-libs --enable-dwarf2 --with-cpu=i686
--with-arch=i686 --with-system-zlib --disable-shared --prefix=/home/4/wilx
--enable-languages=c,c++ --disable-sjlj-exceptions
Thread model: posix
gcc version 3.4 20031212 (experimental)
 stage1/cc1 -fpreprocessed genmodes.i -quiet -dumpbase genmodes.i -march=i686
-auxbase-strip genmodes.o -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -Werror
-version -fnew-ra -ftracer -fno-common -o /home/4/wilx/tmp/tmp/ccYQ4ZNT.s
GNU C version 3.4 20031212 (experimental) (i386-unknown-freebsd4.9)
        compiled by GNU C version 3.4 20031212 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../../srcdir/gcc/genmodes.c: In function `hash_mode':

../../srcdir/gcc/genmodes.c:180: error: Abnormal edges for no purpose in bb 0
../../srcdir/gcc/genmodes.c:180: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Václav Haisman 2003-12-13 19:47:57 UTC
Created attachment 5327 [details]
Preprocessed source
Comment 2 Václav Haisman 2003-12-14 13:50:42 UTC
It is the -fnew-ra option that makes it crash.
Comment 3 Volker Reichelt 2003-12-16 02:27:10 UTC
Here's a reduced testcase that crashes mainline with "gcc -O2 -fnew-ra"

=============================================
int foo();
int bar()  { return foo(); }
void baz() { bar; }
=============================================

The testcase compiles fine on the 3.3 branch.
Comment 4 Andrew Pinski 2003-12-16 16:23:49 UTC
New-ra is most likely not going to work with the mainline that well anyways, pushing to 3.5.
Comment 5 Andrew Pinski 2003-12-23 00:55:03 UTC
From Phil's regression hunter: Search converges between 2003-06-07-trunk (#306) and 2003-06
-08-trunk (#307).
Comment 6 The gcc-bugs mailing list 2004-01-23 17:41:43 UTC
Suspending until either new-regalloc branch is merged to mainline, or bug is rechecked against 
new-regalloc branch.
Comment 7 Andrew Pinski 2005-01-17 15:22:22 UTC
Closing as wiill not fix as new-ra was removed from the mainline.