From patchwork Sat Jan 20 00:27:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1888710 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TGy4v3Mm9z1yPv for ; Sat, 20 Jan 2024 11:28:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4672F3858C74 for ; Sat, 20 Jan 2024 00:28:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by sourceware.org (Postfix) with ESMTPS id B9D6A3858C56 for ; Sat, 20 Jan 2024 00:27:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B9D6A3858C56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B9D6A3858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.204.34.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705710470; cv=none; b=HZRAZ0n+swzAZVsBZ8iHf3JP8kG0495mT4vzE3pFU0HGFDSfTnkG4oXfc66SMSOJOOVUBEN1EZjowCbqN5bin7Ud1sztMNC03djFDqglUVzeiNQYvf6nKOxDsgNm9T7tBqyEaoVrXLc1FlfC6cOBNXr8N/x4MNmzOADyDRIFMOQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705710470; c=relaxed/simple; bh=tAehmhEwsj9yGkU7HFShGAOvAuEVAzelPGOlCvvn38s=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=URA2qqfQ5EWopXrSVML7IWHKiaJDLFOWMA+owDqM5vmM2NjL7gNOq7HbL/OXDPpP/ndSQuoAm4fgsaxwJTRMvrAO9ljJttbAvUYncWKWQXHkDHESr5BLArmwK3sDASvqS2WnVfhiq4ORueOBY6LGHzjoe3gxVFpXwUQ4T73w/FI= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp77t1705710462tjh2yz7m X-QQ-Originating-IP: njt2e+yTily+8U6h/sH28ap5L2/RPdZrMrZFTPuM5pU= Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 20 Jan 2024 08:27:40 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: g3QZRIuptDTiFfVkSVHf/BJr3BO0qwmtzTiT6ygJkew8Rj7yrRSoQZJlhsLh0 BCOO2FIDM/9p4hm4dmHUdkyUiqzoIDDPw2c6VuJYYkThC1UcBkzHheow88yP5kpNf+yptp8 qa4y4zDWew0wkyswN4dOk4B4sdWg1lJtsam4dKdkOSLZEFiC7y+dBmlwgHsRj1KOhs0Od7z IWan5P4Fa1gUVM79uMvWcnijutHt1uiITTaqqfHSjiwp0sRuX8RgVtGS3jpbjfiwhYonVC3 WCjiKe9JX/4U4ZPzmg2q/Z5wDiNiZgcgR2qkThHslWclhbEOfOf4t96nA2W71FWiPilRMLC /ENjoKoPI5tr0p0igRkHTd9LA7aTQ== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 8734882115275318581 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: pan2.li@intel.com, schwab@linux-m68k.org, Juzhe-Zhong Subject: [Committed] RISC-V: Suppress warning Date: Sat, 20 Jan 2024 08:27:39 +0800 Message-Id: <20240120002739.2860933-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org ../../gcc/config/riscv/riscv.cc: In function 'void riscv_init_cumulative_args(CUMULATIVE_ARGS*, tree, rtx, tree, int)': ../../gcc/config/riscv/riscv.cc:4879:34: error: unused parameter 'fndecl' [-Werror=unused-parameter] 4879 | tree fndecl, | ~~~~~^~~~~~ ../../gcc/config/riscv/riscv.cc: In function 'bool riscv_vector_mode_supported_any_target_p(machine_mode)': ../../gcc/config/riscv/riscv.cc:10537:56: error: unused parameter 'mode' [-Werror=unused-parameter] 10537 | riscv_vector_mode_supported_any_target_p (machine_mode mode) | ~~~~~~~~~~~~~^~~~ cc1plus: all warnings being treated as errors make[3]: *** [Makefile:2559: riscv.o] Error 1 Suppress these warnings. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_init_cumulative_args): Suppress warning. (riscv_vector_mode_supported_any_target_p): Ditto. --- gcc/config/riscv/riscv.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index dd6e68a08c2..1f9546f4d3e 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -4876,7 +4876,7 @@ void riscv_init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype ATTRIBUTE_UNUSED, rtx libname ATTRIBUTE_UNUSED, - tree fndecl, + tree fndecl ATTRIBUTE_UNUSED, int caller ATTRIBUTE_UNUSED) { memset (cum, 0, sizeof (*cum)); @@ -10534,7 +10534,7 @@ extract_base_offset_in_addr (rtx mem, rtx *base, rtx *offset) /* Implements target hook vector_mode_supported_any_target_p. */ static bool -riscv_vector_mode_supported_any_target_p (machine_mode mode) +riscv_vector_mode_supported_any_target_p (machine_mode) { if (TARGET_XTHEADVECTOR) return false;