Revert a hunk from r261322 (PR lto/88876).
authorMartin Liska <mliska@suse.cz>
Tue, 12 Feb 2019 13:46:41 +0000 (14:46 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 12 Feb 2019 13:46:41 +0000 (13:46 +0000)
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

gcc/ChangeLog
gcc/ipa-pure-const.c

index c962c691dc35b722d674bdc526d717d446afc66c..4cf4f017664e83fc80634e69ce9d8d3f7c1e8a80 100644 (file)
@@ -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
index a8a3956d2d540d653b7735d50ffa01ef97b2cc81..3b3f2d8b4c594f92d1c928e46436908c7f068e17 100644 (file)
@@ -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,