From patchwork Fri May 12 08:58:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 93005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4948665vqo; Fri, 12 May 2023 01:58:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xhJbtfGN61JI+2ovLOyncSVhdhfRXL2pOONCuF53TABHK4JgGrK41DgsJKoLQhSSKUPL5 X-Received: by 2002:a17:907:3205:b0:94e:8559:b5c5 with SMTP id xg5-20020a170907320500b0094e8559b5c5mr19673768ejb.64.1683881935937; Fri, 12 May 2023 01:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683881935; cv=none; d=google.com; s=arc-20160816; b=Ps6zWQeqit/TGg6FwczkixfpXnKFZJmMpRhKvrHUWFkpaTrNX5ZkG75e//ZQY9WycF 99UR9zUk2AkwdyZa51HNg/jjk8V/TBMLQhFV4iDEd8CZlixlYj9OE0NpJ5KE2+m7Wfqi w21vTuNOTqUa9bj+IfN0l3Ueq6BBv1nVDzLMAxbdS+5StRd1/ph2ftEKh9Jsh0AyDyXH aEKNJUd2CjGej/nu51HpCSIQi2aPvcf1cf6vg9F1eAg8BMy30gNwynI8E22ltiPqnuLv LYQkMmHgaVNjRrMf+vUPTfLpmq2FlUAoR4ru3cIc4rE51jHJia/f4W5lUq+DfT9EXqNX ATRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=SabDFekWscKn1JWa5I+hzh+JRblP5OGvET6SnN6491M=; b=ucVYPHvwdgTVT2jHmu6604cMTsk5mzb+DDwpW4tz5gupFKsHuHVkG2rmCgd3hLBjk8 KZ6scYc5pv2rnBYFDfSOSTJ7dIlQiWRehi5QhWPkH00G0ZQGVwwmr12EmGZcWWxql/pJ zh7Qe+CBm/2rrToJp4Eck9OpOxbvDJUchX9oips/9jZTmJcJehMIdWVGi3QL7zsu2vQZ W6A8ImVYP+1+3XnslUu8Xd/KrnW28uW8Thm1SVJf1eSqz5Mr8xDCNA0YP11RLE6OUC8G gOVuxFxlPCIfpkVqLdKxHsapqJckwxTuGK7JPHukb3Zi4wP6S/+SsvcFq3t4mj6fqPr5 76xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="ZX/HmzWG"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b22-20020a1709062b5600b0096651724240si6153015ejg.286.2023.05.12.01.58.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 01:58:55 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="ZX/HmzWG"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9688D3858414 for ; Fri, 12 May 2023 08:58:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9688D3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683881934; bh=SabDFekWscKn1JWa5I+hzh+JRblP5OGvET6SnN6491M=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ZX/HmzWGBv5lr2IcFKi8i+7RU8DO61gLq+V0v6K7n7rNKJee+0jlckzVm0IkmWlpL CcjWNd6cxH8um0ltl8rK3GNTOQPasVN9NPBol1iVmebrNJAIWCuXdBG0siHXAsGGkE 7aZpBvaKigoELV+tW3mhstoDkUjg3penvKvlcQcM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 7DA143858C54 for ; Fri, 12 May 2023 08:58:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DA143858C54 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1ab05018381so89638795ad.2 for ; Fri, 12 May 2023 01:58:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683881887; x=1686473887; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SabDFekWscKn1JWa5I+hzh+JRblP5OGvET6SnN6491M=; b=LswW3RUiQLR/9lrCaerU4MXiUwgyBzSc5NUeDFEI77EPBsLrHJY2nak12iBgFx49ra m9e7D+mSlcABj2vWXPLpd1+w7EXSlE+I7JM1muuT9C/qeJWC0Mx+Yp5/TZaO0yWRFqkg 2Z7PbOux9v7zZ0Nez+7b6XOlGJTdiwhYM6hmh6M7DHrpQ35WYH8Pbtcke2v/cYyhok2R Kq35PyKmLCYBxtygfbpwZXqUpxjaBtvBj6jm5m4t9EKvzJkGw3f9tYj5IChDqOU1X3so f5yLmBIip3TzqaT06c+LGCbWoCM6TwvH8rovtTSM81m5UD6K+5GQCEZ3EOVgWPDVBg4S v6Pg== X-Gm-Message-State: AC+VfDw6xdDwbt//5N+JxMxhghizaIQF7ssM6f3jHzdBT5S+QvLilx6v yxo9vamYO5l7wnXfKGVPRdYxQi/77fOUH+b2q/Sz3pJpXnhkTKrNzcpL6ObbaF8vJa7hbrL7W9I N44PeNwJ21ZuM+fEvAzJVWPhHI0fwlJm5YoZ7PDkPp2VTLrA8HXvP9Cm5gyLCBl7uyD8deQHs6j uQ/nA= X-Received: by 2002:a17:903:11d1:b0:1a9:8ba4:d0e3 with SMTP id q17-20020a17090311d100b001a98ba4d0e3mr28120927plh.59.1683881887154; Fri, 12 May 2023 01:58:07 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id d12-20020a170902cecc00b001a6f7744a27sm7415121plg.87.2023.05.12.01.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 01:58:06 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Kito Cheng Subject: [committed] RISC-V: Suppress unused parameter warning in riscv-common.cc Date: Fri, 12 May 2023 16:58:02 +0800 Message-Id: <20230512085802.84994-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Kito Cheng via Gcc-patches From: Kito Cheng Reply-To: Kito Cheng Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765678184852144269?= X-GMAIL-MSGID: =?utf-8?q?1765678184852144269?= gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_select_multilib_by_abi): Drop unused parameter. (riscv_select_multilib): Ditto. (riscv_compute_multilib): Update call site of riscv_select_multilib_by_abi and riscv_select_multilib_by_abi. --- gcc/common/config/riscv/riscv-common.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 57a2a279ef53..3a285dfbff0e 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -1596,10 +1596,8 @@ riscv_check_conds ( static const char * riscv_select_multilib_by_abi ( - const std::string &riscv_current_arch_str, const std::string &riscv_current_abi_str, - const riscv_subset_list *subset_list, const struct switchstr *switches, - int n_switches, const std::vector &multilib_infos) + const std::vector &multilib_infos) { for (size_t i = 0; i < multilib_infos.size (); ++i) if (riscv_current_abi_str == multilib_infos[i].abi_str) @@ -1610,7 +1608,6 @@ riscv_select_multilib_by_abi ( static const char * riscv_select_multilib ( - const std::string &riscv_current_arch_str, const std::string &riscv_current_abi_str, const riscv_subset_list *subset_list, const struct switchstr *switches, int n_switches, const std::vector &multilib_infos) @@ -1780,13 +1777,10 @@ riscv_compute_multilib ( switch (select_kind) { case select_by_abi: - return riscv_select_multilib (riscv_current_arch_str, - riscv_current_abi_str, subset_list, + return riscv_select_multilib (riscv_current_abi_str, subset_list, switches, n_switches, multilib_infos); case select_by_abi_arch_cmodel: - return riscv_select_multilib_by_abi (riscv_current_arch_str, - riscv_current_abi_str, subset_list, - switches, n_switches, + return riscv_select_multilib_by_abi (riscv_current_abi_str, multilib_infos); case select_by_builtin: gcc_unreachable ();