From patchwork Thu Aug 17 07:20:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan-Benedict Glaw X-Patchwork-Id: 135854 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp516204vqi; Thu, 17 Aug 2023 00:21:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+2B9jDMkqB3Mwj9Hag6KK9GLJNvFT3I61X/ZO9aVHWWPOrDUwwSZsP9zG25dlcpPOExPy X-Received: by 2002:a17:906:74d7:b0:99c:3b4:940c with SMTP id z23-20020a17090674d700b0099c03b4940cmr3086914ejl.7.1692256886612; Thu, 17 Aug 2023 00:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692256886; cv=none; d=google.com; s=arc-20160816; b=jlmShwJlkIddtDGAZN2Ar0XOtSlMGMfEIUNdtOVPOOdj8ovECaYpLMsueZphlVOD6D T0c8wpBHxcjDUmX6QkunA3Vl+8k0NXFOdCOHOdtKbzdnLv5bDk9vSHsjKPvNWQEM49Xp 6haaPK+SHf+vdvrZiHC5Atie3kUWS547GD+Mejg9sZxaWKUmV9DMDHAcu7BPeFrIak6t eIU5RaxctXvCaF12bZfpDzIrHP5YxoJHmjoshVqsKVY/mfyKNG+KlXW74g30DinkZW0u kM6k1qVhdjKzFHbYjPnbNhpxzPbU/jZgWWXuxCROjxqsZLjzBUvaWzrOECSY2Y4sRTz5 E/FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dmarc-filter :delivered-to; bh=vOjUcTyQBCxrD4aqK6Klpicz3cYbx+S4e4WMjmDyXdc=; fh=LNey88AVIHiLmFazDktJyi0IGaEH/ynUzXEmLCIMpSg=; b=UADBM8yQNdH4p8oFBGC6xbgxx6NaMsZDA2oTBP0RowdMvz4w6ab2/V9nO/U8cWiO4R n6srdt4jojJ+rcvpCk5nz9yNmAgky8oCpikptEgtqEgus9zrQK7P39ehA7LbsTl544rC vecOzTQOw53xKr+LaEuhhQyUT7/kgVbBUOSVQhehKzPxKJ9Acvaz2s9aDKFvbQXP6yHQ gzPZkCdRDkoUlj2jvScu6EfWTzZ8LVfXcZS9EJuJMwWjmCMPzEH/bHNUCMZzcHU0hbAB 47MCUzTbLjyrV18ctbmt5jBlIitc0RfctO4oUGZPElkGh/7XcVE7NqzQFuuGBt3j8rAv XnuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id z20-20020a17090655d400b0099cc2ae41fdsi12526880ejp.287.2023.08.17.00.21.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 00:21:26 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A951385C6E3 for ; Thu, 17 Aug 2023 07:21:18 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from lug-owl.de (lug-owl.de [IPv6:2a03:4000:10:469::]) by sourceware.org (Postfix) with ESMTPS id 838503858C50 for ; Thu, 17 Aug 2023 07:20:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 838503858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lug-owl.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lug-owl.de Received: by lug-owl.de (Postfix, from userid 1001) id 659BF420C3; Thu, 17 Aug 2023 09:20:52 +0200 (CEST) Date: Thu, 17 Aug 2023 09:20:52 +0200 From: Jan-Benedict Glaw To: gcc-patches@gcc.gnu.org, Kewen Lin Subject: [PATCH] Fix code_helper unused argument warning for fr30 Message-ID: <20230817072052.w62bmpzkxyktplnb@lug-owl.de> MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux chamaeleon 5.14.0-0.bpo.2-amd64 X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net X-Echelon-Enable: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-TKUeV: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-message-flag: Please send plain text messages only. Do not send HTML emails. Thank you. User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774459957001037014 X-GMAIL-MSGID: 1774459957001037014 Hi! fr30 is the only target defining GO_IF_LEGITIMATE_ADDRESS right now, in which case the `code_helper ch` argument to memory_address_addr_space_p() is unused and emits a new warning. gcc/ChangeLog: * recog.cc (memory_address_addr_space_p): Mark possibly unused argument as unused. Ok for trunk? Thanks, Jan-Benedict diff --git a/gcc/recog.cc b/gcc/recog.cc index 2bff6c03e4d..92f151248a6 100644 --- a/gcc/recog.cc +++ b/gcc/recog.cc @@ -1803,7 +1803,7 @@ pop_operand (rtx op, machine_mode mode) bool memory_address_addr_space_p (machine_mode mode ATTRIBUTE_UNUSED, rtx addr, - addr_space_t as, code_helper ch) + addr_space_t as, code_helper ch ATTRIBUTE_UNUSED) { #ifdef GO_IF_LEGITIMATE_ADDRESS gcc_assert (ADDR_SPACE_GENERIC_P (as));