aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-pure-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index 550bded..b831844 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -1502,7 +1502,7 @@ ipa_make_function_pure (struct cgraph_node *node, bool looping, bool local)
bool cdtor = false;
if (DECL_PURE_P (node->decl)
- && (looping || DECL_LOOPING_CONST_OR_PURE_P (node->decl)))
+ && (looping || !DECL_LOOPING_CONST_OR_PURE_P (node->decl)))
return false;
warn_function_pure (node->decl, !looping);
if (local && skip_function_for_local_pure_const (node))