diff options
author | Jan Hubicka <jh@suse.cz> | 2019-11-07 18:08:11 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-11-07 17:08:11 +0000 |
commit | d380e329a743b1fdadd6e82da6e9c14cd15cc914 (patch) | |
tree | 25a411986777f6a968dd9d73de9f5be042320196 /gcc | |
parent | c6145f2ac6f946ae2613ffbd85ba072cf05d4a3f (diff) | |
download | gcc-d380e329a743b1fdadd6e82da6e9c14cd15cc914.zip gcc-d380e329a743b1fdadd6e82da6e9c14cd15cc914.tar.gz gcc-d380e329a743b1fdadd6e82da6e9c14cd15cc914.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-fnsummary.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bfe0ebc..a489c72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2019-11-07 Jan Hubicka <jh@suse.cz> + PR ipa/92406 + * ipa-fnsummary.c (analyze_function_body): Use get_create to copy + summary. + +2019-11-07 Jan Hubicka <jh@suse.cz> + * optc-save-gen.awk: Generate cl_target_option_free and cl_optimization_option_free. * opth-en.awk: Declare cl_target_option_free diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 64c4d95..702f295 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); } |