http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52376
Bug #: 52376 Summary: [4.7 regression] ICE in lto_input_tree_ref, at lto-streamer-in.c:266 while linking LTO-PGO libxul Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile AssignedTo: unassig...@gcc.gnu.org ReportedBy: mar...@trippelsdorf.de While linking libxul of a LTO-PGO Firefox build, I get this ICE: ... In member function ‘HandleComment’: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:266 Please submit a full bug report, with preprocessed source if appropriate. Delta reduction points to a single input object file: /var/tmp/mozilla-central/moz-build-dir/content/xml/document/src/nsXMLContentSink.o % c++ -fprofile-use -flto -fno-fat-lto-objects -c -o nsXMLContentSink.o -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include /var/tmp/mozilla-central/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\"Linux3.3\" -DOSARCH=Linux -D_IMPL_NS_LAYOUT -I/var/tmp/mozilla-central/content/xml/document/src -I/var/tmp/mozilla-central/content/xml/document/src/../../../xsl/document/src -I/var/tmp/mozilla-central/content/xml/document/src/../../../html/document/src -I/var/tmp/mozilla-central/content/xml/document/src/../../../../layout/style -I/var/tmp/mozilla-central/content/xml/document/src/../../../base/src -I/var/tmp/mozilla-central/content/xml/document/src/../../../xul/content/src -I/var/tmp/mozilla-central/content/xml/document/src/../../../events/src -I/var/tmp/mozilla-central/content/xml/document/src/../../../../dom/base -I/var/tmp/mozilla-central/content/xml/document/src/../../../../caps/include -I/var/tmp/mozilla-central/xpcom/ds -I/var/tmp/mozilla-central/content/xml/document/src -I. -I../../../../dist/include -I../../../../dist/include/nsprpub -I/var/tmp/mozilla-central/moz-build-dir/dist/include/nspr -I/var/tmp/mozilla-central/moz-build-dir/dist/include/nss -fPIC -fno-rtti -pedantic -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long -march=native -Wno-delete-non-virtual-dtor -fpermissive -fno-exceptions -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections -fdata-sections -pipe -DNDEBUG -DTRIMMED -O3 -fomit-frame-pointer -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -MD -MF .deps/nsXMLContentSink.pp /var/tmp/mozilla-central/content/xml/document/src/nsXMLContentSink.cpp % c++ -flto nsXMLContentSink.o In member function ‘HandleComment’: lto1: internal compiler error: in lto_input_tree_ref, at lto-streamer-in.c:266 Please submit a full bug report, The error above only happens with "-fprofile-use" and "-fno-fat-lto-objects". With "-fprofile-use -flto" I get: ... /var/tmp/mozilla-central/content/xml/document/src/nsXMLContentSink.cpp: In member function ‘nsXMLContentSink::HandleComment(unsigned short const*)’: /var/tmp/mozilla-central/content/xml/document/src/nsXMLContentSink.cpp:1195:54: internal compiler error: in emit_move_insn, at expr.c:3435 But I don't know how to reduce the testcase further, because it depends on nsXMLContentSink.gcda data.