[Bug lto/71159] [7 regression] ICE in lto_output_edge() lto-cgraph.c:263
dimhen at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 17 10:07:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71159
--- Comment #4 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
(In reply to Jan Hubicka from comment #3)
> 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);
r236310 + patch PASS.
Thank you!
More information about the Gcc-bugs
mailing list