From patchwork Thu Nov 18 18:37:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 1556772 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=WsQMcnh5; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hw7qK5McVz9sPf for ; Fri, 19 Nov 2021 05:38:52 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8ADB8385BF92 for ; Thu, 18 Nov 2021 18:38:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8ADB8385BF92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637260729; bh=Rr8dygjhLRsX4fy4YDlJwb+haP0Xd8BTcOw1wJmRlvc=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=WsQMcnh5fIQy3Eo4yvUSPeHC2FyCKOkEZyhhKSlhVuic2ZvCmkL4ag0pDWwB4wG9v SiNhAnpoiIxlxfkij26a9dgYMqam+yQUbSSFBX1f/0WViWhdqX7o3WJDbS2sVxZfq/ VMrbBgl5ClexzB3SvOqwOAzL4CUx48fNu86mwZ/8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by sourceware.org (Postfix) with ESMTPS id 8D74A3858422 for ; Thu, 18 Nov 2021 18:38:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8D74A3858422 Received: by mail-vk1-xa2d.google.com with SMTP id e27so1436802vkd.4 for ; Thu, 18 Nov 2021 10:38:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Rr8dygjhLRsX4fy4YDlJwb+haP0Xd8BTcOw1wJmRlvc=; b=wCBVszQxc1nE4n+jdecx4rE/ff5ANb8PpUGpkhMZOrYAUXdMlSsRfftw8eeMYTlUI5 tKZ3cY4RCMGZZyc6dIYo1xwxVLihbxWC9a6U/RjSpVVCIw8EuKZ+mk66+HB11CrfJz3N SeggMioTjhyOKGy8mAzp5UzrgHyN8N/hLMv+mJ86+S3JcQtsIUPBvOPzTVuFz8tAJXcz 9r5yl40vXYPGUPUwVWKFFdKdnjFNsLZytxO863Xa4UTMsG1hV5YYTzqopBsTOTtHpKP7 QkaeGrtaEpuMM1mcBhDDGvDxEbdEMo5MxeXqqJMvChlhY2r1/KUOo+U3oWxt+udzLHNV AbDA== X-Gm-Message-State: AOAM532i813JvO5gR2wTSJZrGm7jntco02/lg4imotgiF2ofk41ccGmd o/WRjv6lXEllc3CFpdP+olFRY92SIkegSEsg1qyWESuZgFA= X-Google-Smtp-Source: ABdhPJykV1gx65c3ipHdwwgM/jJ7p8J+8bRv0G0OthB2pp1XAbecA6lRQQUSuzXpPF/oyt88mdJ4F1WmOn6/YoQzqD0= X-Received: by 2002:a05:6122:221f:: with SMTP id bb31mr107086826vkb.23.1637260708874; Thu, 18 Nov 2021 10:38:28 -0800 (PST) MIME-Version: 1.0 Date: Thu, 18 Nov 2021 13:37:31 -0500 Message-ID: Subject: [PATCH] Fix rs6000 predicates.md use of decl_replaceable_p To: GCC Patches X-Spam-Status: No, score=2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_STOCKGEN, MEDICAL_SUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Edelsohn via Gcc-patches From: David Edelsohn Reply-To: David Edelsohn Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" || DEFAULT_ABI == ABI_ELFv2) && (SYMBOL_REF_EXTERNAL_P (op) --- a/gcc/config/rs6000/predicates.md +++ b/gcc/config/rs6000/predicates.md @@ -1086,7 +1086,9 @@ (define_predicate "current_file_function_operand" (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