]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR lto/92406 (ICE in ipa_call_summary at ipa-fnsummary.h:253 with lto and pgo)
authorJan Hubicka <jh@suse.cz>
Thu, 7 Nov 2019 17:08:11 +0000 (18:08 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 7 Nov 2019 17:08:11 +0000 (17:08 +0000)
PR ipa/92406
* ipa-fnsummary.c (analyze_function_body): Use get_create to copy
summary.

From-SVN: r277927

gcc/ChangeLog
gcc/ipa-fnsummary.c

index bfe0ebcb010a6d5945f12a122b1820c95e9954c1..a489c729202be8712ce0baefd8275609b478dd45 100644 (file)
@@ -1,3 +1,9 @@
+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
index 64c4d95ccd4a4341e16d2e42eea3f4b361db0f29..702f2954685b16461f83874fa3e7be7c7cf22f42 100644 (file)
@@ -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);
                }