From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1033) id 087893858422; Thu, 18 Nov 2021 18:42:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 087893858422 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: David Edelsohn To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5385] Fix rs6000 predicates.md use of decl_replaceable_p X-Act-Checkin: gcc X-Git-Author: David Edelsohn X-Git-Refname: refs/heads/master X-Git-Oldrev: 3535be6c6f440909798d1c78e862a657f7adaf63 X-Git-Newrev: 6f4ac4f81f89caac7e74127ed2e6db6bbb3d7426 Message-Id: <20211118184229.087893858422@sourceware.org> Date: Thu, 18 Nov 2021 18:42:29 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2021 18:42:29 -0000 https://gcc.gnu.org/g:6f4ac4f81f89caac7e74127ed2e6db6bbb3d7426 commit r12-5385-g6f4ac4f81f89caac7e74127ed2e6db6bbb3d7426 Author: David Edelsohn 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)