public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5202] Fix exit condition in ipa_make_function_pure
@ 2021-11-12 15:55 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2021-11-12 15:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:82de09ab17cd3876134d46ad7a6d2c32235bf8f5

commit r12-5202-g82de09ab17cd3876134d46ad7a6d2c32235bf8f5
Author: Jan Hubicka <hubicka@ucw.cz>
Date:   Fri Nov 12 16:54:29 2021 +0100

    Fix exit condition in ipa_make_function_pure
    
    gcc/ChangeLog:
    
            * ipa-pure-const.c (ipa_make_function_pure): Fix exit condition.

Diff:
---
 gcc/ipa-pure-const.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index 550bdeded16..b831844afa6 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))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-12 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 15:55 [gcc r12-5202] Fix exit condition in ipa_make_function_pure Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).