From: Martin Liska Date: Mon, 4 Feb 2019 12:26:14 +0000 (+0100) Subject: Bail out when ipa_fn_summaries does not contain entry for callee (PR ipa/88985). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64cd238b35cb8c96ef5be2e4775cb0e8aaa3e45f;p=gcc.git Bail out when ipa_fn_summaries does not contain entry for callee (PR ipa/88985). gcc/ChangeLog: 2019-01-24 Martin Liska 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 PR ipa/88985 * gcc.dg/ipa/pr88985.c: New test. From-SVN: r268518 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f55dfcd39fb..8f2a05d6275 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,6 @@ 2019-02-04 Martin Liska - 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. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 231cd55ca30..7886a12ddf8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,7 @@ 2019-02-04 Martin Liska - 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 diff --git a/gcc/testsuite/gcc.dg/ipa/pr88958.c b/gcc/testsuite/gcc.dg/ipa/pr88958.c deleted file mode 100644 index 8253a893cf6..00000000000 --- a/gcc/testsuite/gcc.dg/ipa/pr88958.c +++ /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 index 00000000000..8253a893cf6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/ipa/pr88985.c @@ -0,0 +1,13 @@ +void f (void) +{ +} +__attribute__((__optimize__("O2"))) +void g (void f()) +{ + f(); +} +__attribute__((__optimize__("O2"))) +void h (void) +{ + g(f); +}