Message ID | 20231108090938.8206-1-xuli1@eswincomputing.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp788156vqo; Wed, 8 Nov 2023 01:10:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUeBZl0Fuha///gNPio81CZplj3bL/upCWOprx0JN6oDWbFQe6Tulh7YFdaNdQyPlQ9e+J X-Received: by 2002:a05:6214:20a6:b0:66d:8524:ebf0 with SMTP id 6-20020a05621420a600b0066d8524ebf0mr1549472qvd.15.1699434624932; Wed, 08 Nov 2023 01:10:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699434624; cv=pass; d=google.com; s=arc-20160816; b=yTKhoO3XSK+0ssOFHFlXx1bwcGkOPztFjg4uNYzApf4RYYeBPOT6d83gHRecwuSpft e/VlRsEGBeQcjfINMqO0YKk256VTHNxHxneePsYIdzYIMY4/2MeYoZlDkckX/eOwJKPH X1TC9ZrSFYu6R5o5BxsHDBcLrw5z+lHRiSaPR7jvBg/o4daasVYnqJX/ELAk3MQrGzlk ilTmX++M2C28PRLrd0pZN/bRgMGZ46Y3JCv0RxPzEaMeP4pipT5/wF88o1k8BFzTxtcc YCUP+BfKYXyo/EebzG9if1k5Bou5VpB2Sou+Mc9acKwE4VPiLgbelS9Ga2jp94J463lh /MNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=3oZ6eH1xekJF70IxgNGdULzCWgy+r93UmTRBVCqzDgs=; fh=Qb/t3bub0qUevN32JfR0ksI5uuULifWToHOJuO7VEBY=; b=sytcS5IToJb2sN6V3y/OigP5A2+7ro57+y2WPzL7bbUtAqaEvN98vkcH6/wm3AzGaZ /e8p9s+s1sGow94Za0x1qWu9rJuMVDRwui+UIxQLzEn6l0+jzsj0tgHFgK0+HsGpSqS+ 6Odz7Ifr2GApA6kN9Dpn6VF9sfc7JggwNdwEOY/CNBEzue0DufgY1un0QqIMggl7ypD4 BSyXItQvHXsw0YjGoN0/OwDtkTuB7jXPLTEv1L9kN2uhNfM1KTwgYEojmRw3FWQNA3Ln PJdWfCrUB4TTq0bb1CvVSyhHEJz/l2M2f3ljU/Filqzp5Zuhrdxo0edVFDVBtkfb5n4X KlHA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j4-20020a05621419c400b0066db35647d6si1125347qvc.504.2023.11.08.01.10.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 01:10:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 B1408385AC09 for <ouuuleilei@gmail.com>; Wed, 8 Nov 2023 09:10:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from zg8tmja2lje4os4yms4ymjma.icoremail.net (zg8tmja2lje4os4yms4ymjma.icoremail.net [206.189.21.223]) by sourceware.org (Postfix) with ESMTP id 1D96E3858D1E for <gcc-patches@gcc.gnu.org>; Wed, 8 Nov 2023 09:10:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1D96E3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eswincomputing.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1D96E3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=206.189.21.223 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699434602; cv=none; b=ISBYTuskvY52sXZzBTjjrJz+yuMbvVM949ZSEK0v7A1nBz86VV7t70oWQOWreB3VsCpmPlxsHSIlCYygncC054F3wYoVX07BKGrpgsoxprx1ydOa0z0To9si4UYN8dRKdORqyynjlk4B5sc6hVmIrKjqT6DpprlY/cyWwXo6Zno= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699434602; c=relaxed/simple; bh=z0QU1uFd9oDSPP10U4U+kVeYx+TM5AvwTob6ikDLREU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=wfX+u6jKJ4rT/SKF/0Xkw83A13L7xBoPoXo1L0/ALLC/paFxCEKsEHobdX/akxAmGM26GaX4JkjLWj0B+bafnRuATOsF6DRK4RtX/MI7o2LCbd9+MX1J99I3wXShu7Wh6z1DhhUIY63l/kYr0V4vIZnfWE7T5ahRArNw2NLRcH0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from host014-ubuntu-1804.lxd (unknown [10.12.130.31]) by app2 (Coremail) with SMTP id TQJkCgCHREJIUEtl9oUCAA--.24829S4; Wed, 08 Nov 2023 17:09:29 +0800 (CST) From: Li Xu <xuli1@eswincomputing.com> To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, juzhe.zhong@rivai.ai, xuli <xuli1@eswincomputing.com> Subject: [PATCH] RISC-V: Eliminate unused parameter warning. Date: Wed, 8 Nov 2023 09:09:38 +0000 Message-Id: <20231108090938.8206-1-xuli1@eswincomputing.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: TQJkCgCHREJIUEtl9oUCAA--.24829S4 X-Coremail-Antispam: 1UD129KBjvJXoW7uF18Jw4fCr13WF4kJw1rCrg_yoW8JFWDpa y5Xw1YyayFyFsayw4xtrWrta43Gw4xWw1ftFWfAF1UAF48JFZ7WFnIkw17GF48GFW5urnr ur13GayYkr4UA3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUk214x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lc2xSY4AK6svPMxAI w28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr 4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxG rwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8Jw CI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: 50xoxi46hv4xpqfrz1xxwl0woofrz/ X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781986360855204871 X-GMAIL-MSGID: 1781986360855204871 |
Series |
RISC-V: Eliminate unused parameter warning.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Li Xu
Nov. 8, 2023, 9:09 a.m. UTC
From: xuli <xuli1@eswincomputing.com>
The parameter orig_fndecl is not used, use anonymous parameters instead.
../.././gcc/gcc/config/riscv/riscv-c.cc: In function ‘bool riscv_check_builtin_call(location_t, vec<unsigned int>, tree, tree, unsigned int, tree_node**)’:
../.././gcc/gcc/config/riscv/riscv-c.cc:207:11: warning: unused parameter ‘orig_fndecl’ [-Wunused-parameter]
tree orig_fndecl, unsigned int nargs, tree *args)
^~~~~~~~~~~
gcc/ChangeLog:
* config/riscv/riscv-c.cc (riscv_check_builtin_call): Eliminate warning.
---
gcc/config/riscv/riscv-c.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
OK juzhe.zhong@rivai.ai From: Li Xu Date: 2023-11-08 17:09 To: gcc-patches CC: kito.cheng; palmer; juzhe.zhong; xuli Subject: [PATCH] RISC-V: Eliminate unused parameter warning. From: xuli <xuli1@eswincomputing.com> The parameter orig_fndecl is not used, use anonymous parameters instead. ../.././gcc/gcc/config/riscv/riscv-c.cc: In function ‘bool riscv_check_builtin_call(location_t, vec<unsigned int>, tree, tree, unsigned int, tree_node**)’: ../.././gcc/gcc/config/riscv/riscv-c.cc:207:11: warning: unused parameter ‘orig_fndecl’ [-Wunused-parameter] tree orig_fndecl, unsigned int nargs, tree *args) ^~~~~~~~~~~ gcc/ChangeLog: * config/riscv/riscv-c.cc (riscv_check_builtin_call): Eliminate warning. --- gcc/config/riscv/riscv-c.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc index bedf7217390..b7f9ba204f7 100644 --- a/gcc/config/riscv/riscv-c.cc +++ b/gcc/config/riscv/riscv-c.cc @@ -204,7 +204,7 @@ riscv_pragma_intrinsic (cpp_reader *) /* Implement TARGET_CHECK_BUILTIN_CALL. */ static bool riscv_check_builtin_call (location_t loc, vec<location_t> arg_loc, tree fndecl, - tree orig_fndecl, unsigned int nargs, tree *args) + tree, unsigned int nargs, tree *args) { unsigned int code = DECL_MD_FUNCTION_CODE (fndecl); unsigned int subcode = code >> RISCV_BUILTIN_SHIFT; -- 2.17.1
diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc index bedf7217390..b7f9ba204f7 100644 --- a/gcc/config/riscv/riscv-c.cc +++ b/gcc/config/riscv/riscv-c.cc @@ -204,7 +204,7 @@ riscv_pragma_intrinsic (cpp_reader *) /* Implement TARGET_CHECK_BUILTIN_CALL. */ static bool riscv_check_builtin_call (location_t loc, vec<location_t> arg_loc, tree fndecl, - tree orig_fndecl, unsigned int nargs, tree *args) + tree, unsigned int nargs, tree *args) { unsigned int code = DECL_MD_FUNCTION_CODE (fndecl); unsigned int subcode = code >> RISCV_BUILTIN_SHIFT;