Created attachment 24215 [details] reduced testcase Compiler output: $ gcc -r -nostdlib -O -flto --param lto-min-partition=1 testcase.C lto1: internal compiler error: in lto_wpa_write_files, at lto/lto.c:1992 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: /mnt/svn/gcc-trunk/binary-latest/bin/gcc returned 1 exit status collect2: lto-wrapper returned 1 exit status Tested revisions: r173549 - crash 4.6 r173059 - OK
I think we have a dup for this. On the 4.6 branch I "fixed" this by turning the assert into a checking-assert. Thus, this seems related to PR48246.
Thanks for the reply. You are right, the assert described in PR48246 is at the same place. However, I have 4.6 configured with --enable-checking=yes,rtl,df - so checking_assert() should be triggered.
It is caused by revision 173517: http://gcc.gnu.org/ml/gcc-cvs/2011-05/msg00295.html
Seems to be fixed.