aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-02-12 14:46:41 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-02-12 13:46:41 +0000
commitb3f2b048eb9833a7d0b72cd1ef68166dcf6bf566 (patch)
tree8851de9f656cd79be11e0fa792bb33ebbfe1c005 /gcc
parentf9f75f8d3cc4afb77c2e75c1e786810cdca920c3 (diff)
downloadgcc-b3f2b048eb9833a7d0b72cd1ef68166dcf6bf566.zip
gcc-b3f2b048eb9833a7d0b72cd1ef68166dcf6bf566.tar.gz
gcc-b3f2b048eb9833a7d0b72cd1ef68166dcf6bf566.tar.bz2
Revert a hunk from r261322 (PR lto/88876).
2019-02-12 Martin Liska <mliska@suse.cz> 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/ipa-pure-const.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c962c69..4cf4f01 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-02-12 Martin Liska <mliska@suse.cz>
+
+ 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 <ebotcazou@adacore.com>
* 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 a8a3956..3b3f2d8 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,