public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] riscv: Fix warning in riscv_regno_ok_for_index_p
@ 2023-07-25 18:32 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-07-25 18:32 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c7eec784c8ccbea13496f9890de9775779212398
commit c7eec784c8ccbea13496f9890de9775779212398
Author: Christoph Müllner <christoph.muellner@vrull.eu>
Date: Mon Jul 17 10:59:15 2023 +0200
riscv: Fix warning in riscv_regno_ok_for_index_p
The variable `regno` is currently not used in riscv_regno_ok_for_index_p(),
which triggers a compiler warning. Let's address this.
Fixes: 423604278ed5 ("riscv: Prepare backend for index registers")
Reported-by: Juzhe Zhong <juzhe.zhong@rivai.ai>
Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_regno_ok_for_index_p):
Remove parameter name from declaration of unused parameter.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
(cherry picked from commit c29584fc29df0c5075ad57cce5bea447b1d061a3)
Diff:
---
gcc/config/riscv/riscv.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 6ed735d6983..ae3c034e76e 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -861,7 +861,7 @@ riscv_index_reg_class ()
but extensions might support that. */
int
-riscv_regno_ok_for_index_p (int regno)
+riscv_regno_ok_for_index_p (int)
{
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-25 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 18:32 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] riscv: Fix warning in riscv_regno_ok_for_index_p Jeff Law
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).