http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57483
Bug ID: 57483 Summary: Linux kernel (lto-3.9 branch) compilation fails with enabled LTO Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: marxin.liska at gmail dot com Andi Kleen is maintaining Linux kernel LTO branch: https://github.com/andikleen/linux-misc Repository version: 5c1e0bc49249c3ff44849a8f72e6cccd1486f38f GCC used to be able to compile such kernel, regression was introduced in revision: 198741 Error: In function ‘alloc_iommu’: lto1: internal compiler error: in input_gimple_stmt, at gimple-streamer-in.c:287 0xc76db5 input_gimple_stmt ../../gcc/gimple-streamer-in.c:286 0xc76db5 input_bb(lto_input_block*, LTO_tags, data_in*, function*, int) ../../gcc/gimple-streamer-in.c:345 0x77d1b3 input_function ../../gcc/lto-streamer-in.c:887 0x77d1b3 lto_read_body ../../gcc/lto-streamer-in.c:1011 0x77d1b3 lto_input_function_body(lto_file_decl_data*, tree_node*, char const*) ../../gcc/lto-streamer-in.c:1055 0x4ff322 lto_materialize_function ../../gcc/lto/lto.c:226 0x4ff322 materialize_cgraph ../../gcc/lto/lto.c:3084 0x506a88 lto_main() ../../gcc/lto/lto.c:3348 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. make[1]: *** [/tmp/ccRWZATW.ltrans8.ltrans.o] Error 1 make[1]: *** Waiting for unfinished jobs.... /tmp/cckatHC0.s: Assembler messages: /tmp/cckatHC0.s:10068: Error: symbol `__compound_literal.0' is already defined /tmp/cckatHC0.s:30211: Error: symbol `__compound_literal.0' is already defined make[1]: *** [/tmp/ccRWZATW.ltrans6.ltrans.o] Error 1 lto-wrapper: make returned 2 exit status /home/marxin/gcc-jan/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make: *** [vmlinux] Error 1