* ipa-visibility.c (function_and_variable_visibility): Fix pasto.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 16 Jul 2017 11:21:39 +0000 (13:21 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 16 Jul 2017 11:21:39 +0000 (11:21 +0000)
From-SVN: r250237

gcc/ChangeLog
gcc/ipa-visibility.c

index 4284637b18c16c33859d933ad0a11f34c9e73f1a..ff249f15bfd1d7b28ed8968b5e08946c4f1ff997 100644 (file)
@@ -1,3 +1,7 @@
+2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
+
 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
index cfd90c62211acfda25058681a2e92eeb6ac0e55c..17186e9d2e6156df07108ed3df6c5cced555b113 100644 (file)
@@ -624,7 +624,7 @@ function_and_variable_visibility (bool whole_program)
       /* Optimize away PURE and CONST constructors and destructors.  */
       if (node->analyzed
          && (DECL_STATIC_CONSTRUCTOR (node->decl)
-             || DECL_STATIC_CONSTRUCTOR (node->decl))
+             || DECL_STATIC_DESTRUCTOR (node->decl))
          && (flags & (ECF_CONST | ECF_PURE))
          && !(flags & ECF_LOOPING_CONST_OR_PURE)
          && opt_for_fn (node->decl, optimize))