From e1813e4b85ca24a49caa3d80cea025dd172ff770 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 16 Jul 2017 13:21:39 +0200 Subject: [PATCH] * ipa-visibility.c (function_and_variable_visibility): Fix pasto. From-SVN: r250237 --- gcc/ChangeLog | 4 ++++ gcc/ipa-visibility.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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)) -- 2.30.2