Bail out when ipa_fn_summaries does not contain entry for callee (PR ipa/88985).
authorMartin Liska <mliska@suse.cz>
Mon, 4 Feb 2019 12:26:14 +0000 (13:26 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 4 Feb 2019 12:26:14 +0000 (12:26 +0000)
gcc/ChangeLog:

2019-01-24  Martin Liska  <mliska@suse.cz>

PR ipa/88985
* ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
out when ipa_fn_summaries does not contain entry for callee.

gcc/testsuite/ChangeLog:

2019-01-24  Martin Liska  <mliska@suse.cz>

PR ipa/88985
* gcc.dg/ipa/pr88985.c: New test.

From-SVN: r268518

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr88958.c [deleted file]
gcc/testsuite/gcc.dg/ipa/pr88985.c [new file with mode: 0644]

index f55dfcd39fb49a640d0610c5c7728ed0a6c54d2c..8f2a05d6275aee6f803267dd4b259839806aa0f4 100644 (file)
@@ -1,6 +1,6 @@
 2019-02-04  Martin Liska  <mliska@suse.cz>
 
-       PR ipa/88958
+       PR ipa/88985
        * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
        out when ipa_fn_summaries does not contain entry for callee.
 
index 231cd55ca30b9e70c943d0a9c27f6039d1e06cfa..7886a12ddf8087c17101b26a6e4bcde6bdea1914 100644 (file)
@@ -1,7 +1,7 @@
 2019-02-04  Martin Liska  <mliska@suse.cz>
 
-       PR ipa/88958
-       * gcc.dg/ipa/pr88958.c: New test.
+       PR ipa/88985
+       * gcc.dg/ipa/pr88985.c: New test.
 
 2019-02-04  Jakub Jelinek  <jakub@redhat.com>
 
diff --git a/gcc/testsuite/gcc.dg/ipa/pr88958.c b/gcc/testsuite/gcc.dg/ipa/pr88958.c
deleted file mode 100644 (file)
index 8253a89..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-void f (void)
-{
-}
-__attribute__((__optimize__("O2")))
-void g (void f())
-{
-  f();
-}
-__attribute__((__optimize__("O2")))
-void h (void)
-{
-  g(f);
-}
diff --git a/gcc/testsuite/gcc.dg/ipa/pr88985.c b/gcc/testsuite/gcc.dg/ipa/pr88985.c
new file mode 100644 (file)
index 0000000..8253a89
--- /dev/null
@@ -0,0 +1,13 @@
+void f (void)
+{
+}
+__attribute__((__optimize__("O2")))
+void g (void f())
+{
+  f();
+}
+__attribute__((__optimize__("O2")))
+void h (void)
+{
+  g(f);
+}