From: Kito Cheng <kito.cheng@sifive.com>
To: gcc-patches@gcc.gnu.org
Cc: Kito Cheng <kito.cheng@sifive.com>
Subject: [committed] RISC-V: Suppress unused parameter warning in riscv-common.cc
Date: Fri, 12 May 2023 16:58:02 +0800 [thread overview]
Message-ID: <20230512085802.84994-1-kito.cheng@sifive.com> (raw)
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<riscv_multi_lib_info_t> &multilib_infos)
+ const std::vector<riscv_multi_lib_info_t> &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<riscv_multi_lib_info_t> &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 ();
--
2.39.2
reply other threads:[~2023-05-12 8:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230512085802.84994-1-kito.cheng@sifive.com \
--to=kito.cheng@sifive.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).