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,