http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53727
Bug #: 53727 Summary: ICE when compiling firefox with PGO and LTO (not OOM) Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: io...@yandex.ru gcc 4.7.1 produces error when building firefox 12 with PGO and partial LTO. The same problem was with gcc 4.7.0: LANG=C c++ -o jsatom.o -c -fPIC -fno-rtti -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=prescott -mtune=prescott -mfpmath=sse -msse2 -msse3 -O2 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -flto -fuse-linker-plugin -O3 -freorder-blocks-and-partition -pthread -g -fprofile-use -fprofile-correction -Wcoverage-mismatch -O3 -fomit-frame-pointer jsatom.cpp /home/ioctl/ff-build-semilto/src/mozilla-release/js/src/jsatom.cpp: In function 'js_FinishAtomState(JSRuntime*)': /home/ioctl/ff-build-semilto/src/mozilla-release/js/src/jsatom.cpp:354:1: internal compiler error: in create_pseudo_cfg, at dwarf2cfi.c:2735 Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. At that, there is no such problem if remove "-fprofile-use -fprofile-correction" keys, and problem not disappears if remove "-flto" key. Profile data was produced by binary compiled with the same flags (but with "-fprofile-generate" instead of "-fprofile-use -fprofile-correction"). Attached are preprocessed jsatom.cpp source, it's profile data and "c++ -v -save-temps" output, and two files generated with the "c++ -v -save-temps ..." command.