https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61218
Bug ID: 61218 Summary: lto ICE building libcilkrts with 4.9.0 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ncahill_alt at yahoo dot com Created attachment 32816 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32816&action=edit minimal testcase I was getting an ICE building gcc-4.9.0 with lto enabled (that is, -flto -ffat-lto-objects), I traced it to symbol_test.o. I then reduced the preprocessed output of symbol_test.c, this is what it reduces to: --- bug.c --- int main () { _Cilk_spawn foo(); } --- end bug.c --- To cause the bug, run make or issue these commands: gcc -fcilkplus -flto -c bug.c -o bug.o gcc bug.o --- output --- lto1: internal compiler error: in streamer_get_builtin_tree, at tree-streamer-in.c:1124 Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. lto-wrapper: /usr/i686-pc-linux-gnu/gcc-bin/4.9.0/gcc returned 1 exit status /usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status --- end output --- The output of gcc -v is included in gccdashv.txt, and this is on i686 32-bit. Thank you.