This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303
- From: "matt at use dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2011 18:28:04 +0000
- Subject: [Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303
- Auto-submitted: auto-generated
- References: <bug-49284-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284
Matt Hargett <matt at use dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matt at use dot net
--- Comment #7 from Matt Hargett <matt at use dot net> 2011-08-18 18:28:04 UTC ---
I get this when trying to compile scummvm with LTO and whole-program:
$ /usr/lib/gcc-snapshot/bin/g++ --version
g++ (Ubuntu/Linaro 20110813-1ubuntu1) 4.7.0 20110813 (experimental) [trunk
revision 177733]
$ CC=/usr/lib/gcc-snapshot/bin/gcc CXX=/usr/lib/gcc-snapshot/bin/g++
CFLAGS="-Ofast -flto" CXXFLAGS="-Ofast -flto" LDFLAGS="-flto -fwhole-program"
./configure
[...]
$ make -j9
[...]
RANLIB base/libbase.a
LINK scummvm
lto1: internal compiler error: in generate_canonical_option, at
opts-common.c:303
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
lto-wrapper: /usr/lib/gcc-snapshot/bin/g++ returned 1 exit status
/usr/bin/ld.bfd.real: lto-wrapper failed
collect2: error: ld returned 1 exit status
Removing -fwhole-program and changing the CXXFLAGS to -O1 doesn't change the
behaviour. I can attach a tarball if downloading the latest scummvm tarball is
too bothersome.
Note that I'm not using that dump-ipa-graph option at all.