aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2023-07-17 10:59:15 +0200
committerKito Cheng <kito.cheng@sifive.com>2023-07-17 17:31:30 +0800
commitc29584fc29df0c5075ad57cce5bea447b1d061a3 (patch)
treed100c6d4247777069f90d1111301aac982c1f87a /gcc
parent081c623ca88dc53abe34b5f5661e79fcde800cef (diff)
downloadgcc-c29584fc29df0c5075ad57cce5bea447b1d061a3.zip
gcc-c29584fc29df0c5075ad57cce5bea447b1d061a3.tar.gz
gcc-c29584fc29df0c5075ad57cce5bea447b1d061a3.tar.bz2
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/riscv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 6ed735d..ae3c034 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;
}