https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65982
Bug ID: 65982 Summary: [5/6 Regression] ICE: in lto_output_varpool_node, at lto-cgraph.c:623 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: hubicka at gcc dot gnu.org Target Milestone: --- markus@x4 tmp % cat proplist-util.i static int a __attribute__ ((weakref ("b"))); int c; void foo (void) { if (a) c = 0; } markus@x4 tmp % gcc -shared -fPIC -flto -O2 proplist-util.i lto1: internal compiler error: in lto_output_varpool_node, at lto-cgraph.c:623 0x8cc55e lto_output_varpool_node ../../gcc/gcc/lto-cgraph.c:623 0x8cc55e output_symtab() ../../gcc/gcc/lto-cgraph.c:1040 0x8d7f03 lto_output() ../../gcc/gcc/lto-streamer-out.c:2368 0x931c41 write_lto ../../gcc/gcc/passes.c:2395 0x9353d2 ipa_write_optimization_summaries(lto_symtab_encoder_d*) ../../gcc/gcc/passes.c:2599 0x5a94ba do_stream_out ../../gcc/gcc/lto/lto.c:2500 0x5aa2c2 stream_out ../../gcc/gcc/lto/lto.c:2544 0x5aa2c2 lto_wpa_write_files ../../gcc/gcc/lto/lto.c:2681 0x5b3dab do_whole_program_analysis ../../gcc/gcc/lto/lto.c:3362 0x5b3dab lto_main() ../../gcc/gcc/lto/lto.c:3489 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. lto-wrapper: fatal error: /var/tmp/gcc_test/usr/local/bin/gcc returned 1 exit status compilation terminated. /usr/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status