Re: [PATCH] riscv: Fix warning in riscv_regno_ok_for_index_p

2023-07-17 Thread Kito Cheng via Gcc-patches
pushed, thanks :) On Mon, Jul 17, 2023 at 4:59 PM Christoph Muellner wrote: > > From: Christoph Müllner > > 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 in

[PATCH] riscv: Fix warning in riscv_regno_ok_for_index_p

2023-07-17 Thread Christoph Muellner
From: Christoph Müllner 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 Reported-by: Andreas Schwab Signed-off-by: Chr