This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]