From d380e329a743b1fdadd6e82da6e9c14cd15cc914 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 7 Nov 2019 18:08:11 +0100 Subject: [PATCH] re PR lto/92406 (ICE in ipa_call_summary at ipa-fnsummary.h:253 with lto and pgo) PR ipa/92406 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy summary. From-SVN: r277927 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-fnsummary.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bfe0ebcb010..a489c729202 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-11-07 Jan Hubicka + + PR ipa/92406 + * ipa-fnsummary.c (analyze_function_body): Use get_create to copy + summary. + 2019-11-07 Jan Hubicka * optc-save-gen.awk: Generate cl_target_option_free diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 64c4d95ccd4..702f2954685 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -2483,7 +2483,7 @@ analyze_function_body (struct cgraph_node *node, bool early) edge->speculative_call_info (direct, indirect, ref); gcc_assert (direct == edge); ipa_call_summary *es2 - = ipa_call_summaries->get (indirect); + = ipa_call_summaries->get_create (indirect); ipa_call_summaries->duplicate (edge, indirect, es, es2); } -- 2.30.2