public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5385] Fix rs6000 predicates.md use of decl_replaceable_p
@ 2021-11-18 18:42 David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2021-11-18 18:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6f4ac4f81f89caac7e74127ed2e6db6bbb3d7426

commit r12-5385-g6f4ac4f81f89caac7e74127ed2e6db6bbb3d7426
Author: David Edelsohn <dje.gcc@gmail.com>
Date:   Thu Nov 18 13:43:22 2021 -0500

    Fix rs6000 predicates.md use of decl_replaceable_p
    
    gcc/ChangeLog:
    
            * config/rs6000/predicates.md (current_file_function_operand):
            Add flag_semantic_interposition to call of decl_replaceable_p.

Diff:
---
 gcc/config/rs6000/predicates.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index 956e42bc514..f216ffdf410 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -1086,7 +1086,9 @@
        (match_test "(DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op))
 		    && (SYMBOL_REF_LOCAL_P (op)
 			|| (op == XEXP (DECL_RTL (current_function_decl), 0)
-			    && !decl_replaceable_p (current_function_decl)))
+			    && !decl_replaceable_p (current_function_decl,
+						    opt_for_fn (current_function_decl,
+								flag_semantic_interposition))))
 		    && !((DEFAULT_ABI == ABI_AIX
 			  || DEFAULT_ABI == ABI_ELFv2)
 			 && (SYMBOL_REF_EXTERNAL_P (op)


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

only message in thread, other threads:[~2021-11-18 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18 18:42 [gcc r12-5385] Fix rs6000 predicates.md use of decl_replaceable_p David Edelsohn

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).