http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59543
Bug ID: 59543 Summary: [4.9 Regression] lto1: fatal error: Cgraph edge statement index out of range Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org During Firefox build I get: markus@x4 shell % /var/tmp/gcc_test/usr/local/bin/g++ -flto=4 -o foofo -O2 Unified_cpp_shell0.o ../libjs_static.a In member function ‘init’: lto1: fatal error: Cgraph edge statement index out of range 9 < 10 compilation terminated. make: *** [/tmp/cczchbUW.ltrans21.ltrans.o] Error 1 make: *** Waiting for unfinished jobs.... lto-wrapper: make returned 2 exit status /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status markus@x4 shell % /var/tmp/gcc_test/usr/local/bin/g++ -flto=4 -O2 Unified_cpp_shell0.o ../libjs_static.a -rdynamic In member function ‘extractBetween’: lto1: fatal error: Cgraph edge statement index out of range 25 < 50 compilation terminated. make: *** [/tmp/cchXDtH7.ltrans22.ltrans.o] Error 1 Here's a testcase: tmp % wget trippelsdorf.de/cceI2Nud.ltrans22.o.bz2 tmp % bzip2 -d cceI2Nud.ltrans22.o.bz2 tmp % g++ -xlto -fltrans cceI2Nud.ltrans22.o In member function ‘extractBetween’: lto1: fatal error: Cgraph edge statement index out of range compilation terminated.