]> gcc.gnu.org Git - gcc.git/commit
riscv: Fix warning in riscv_regno_ok_for_index_p
authorChristoph Müllner <christoph.muellner@vrull.eu>
Mon, 17 Jul 2023 08:59:15 +0000 (10:59 +0200)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 17 Jul 2023 09:31:30 +0000 (17:31 +0800)
commitc29584fc29df0c5075ad57cce5bea447b1d061a3
treed100c6d4247777069f90d1111301aac982c1f87a
parent081c623ca88dc53abe34b5f5661e79fcde800cef
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>
gcc/config/riscv/riscv.cc
This page took 0.052254 seconds and 5 git commands to generate.