From: Jan Hubicka Date: Sun, 16 Jul 2017 11:21:39 +0000 (+0200) Subject: * ipa-visibility.c (function_and_variable_visibility): Fix pasto. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1813e4b85ca24a49caa3d80cea025dd172ff770;p=gcc.git * ipa-visibility.c (function_and_variable_visibility): Fix pasto. From-SVN: r250237 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4284637b18c..ff249f15bfd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-07-07 Jan Hubicka + + * ipa-visibility.c (function_and_variable_visibility): Fix pasto. + 2017-07-07 Jan Hubicka * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index cfd90c62211..17186e9d2e6 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -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))