[Bug lto/71159] [7 regression] ICE in lto_output_edge() lto-cgraph.c:263
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Tue May 17 09:29:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71159
--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
Sorry, got it wrong way around.
Index: lto-cgraph.c
===================================================================
--- lto-cgraph.c (revision 236275)
+++ lto-cgraph.c (working copy)
@@ -259,7 +259,7 @@ lto_output_edge (struct lto_simple_outpu
streamer_write_gcov_count_stream (ob->main_stream, edge->count);
bp = bitpack_create (ob->main_stream);
- uid = (!gimple_has_body_p (edge->caller->decl)
+ uid = (!gimple_has_body_p (edge->caller->decl) ||
edge->caller->thunk.thunk_p
? edge->lto_stmt_uid : gimple_uid (edge->call_stmt) + 1);
bp_pack_enum (&bp, cgraph_inline_failed_t,
CIF_N_REASONS, edge->inline_failed);
More information about the Gcc-bugs
mailing list