Command line: $ gcc -O[123s] -flto -g -fcompare-debug testcase.c or $ gcc -O[123s] -fwhopr -g -fcompare-debug testcase.c
Compiler output (-flto): $ gcc -O1 -flto -g -fcompare-debug testcase.c gcc: /tmp/cc3798AZ.o: -fcompare-debug failure (length) lto-wrapper: /mnt/svn/gcc-trunk/binary-159696-lto-fortran/bin/gcc returned 1 exit status lto-wrapper: deleting LTRANS file /tmp/cc2LW9RS.lto.o: No such file or directory collect2: lto-wrapper returned 1 exit status Compiler output (-fwhopr): $ gcc -O1 -fwhopr -g -fcompare-debug testcase.c gcc: /tmp/ccWFke0t.wpa.o: -fcompare-debug failure (length) lto-wrapper: /mnt/svn/gcc-trunk/binary-159696-lto-fortran/bin/gcc returned 1 exit status collect2: lto-wrapper returned 1 exit status Tested revisions: r159696 - fail r158095 - fail 4.5 r158978 - fail -- Summary: -fcompare-debug failure with -flto/-fwhopr -g Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44248