From b3f2b048eb9833a7d0b72cd1ef68166dcf6bf566 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 12 Feb 2019 14:46:41 +0100 Subject: [PATCH] Revert a hunk from r261322 (PR lto/88876). 2019-02-12 Martin Liska PR lto/88876 * ipa-pure-const.c (propagate_pure_const): Revert hunk as we need default values of funct_state for a function that is not optimized. From-SVN: r268795 --- gcc/ChangeLog | 7 +++++++ gcc/ipa-pure-const.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c962c691dc3..4cf4f017664 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-02-12 Martin Liska + + PR lto/88876 + * ipa-pure-const.c (propagate_pure_const): Revert hunk as + we need default values of funct_state for a function that + is not optimized. + 2019-02-12 Eric Botcazou * asan.c (asan_expand_mark_ifn): Take into account the alignment of diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index a8a3956d2d5..3b3f2d8b4c5 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -1498,7 +1498,8 @@ propagate_pure_const (void) } if (avail > AVAIL_INTERPOSABLE) { - funct_state y_l = funct_state_summaries->get (y); + funct_state y_l = funct_state_summaries->get_create (y); + if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, -- 2.30.2