From: Juzhe-Zhong Date: Fri, 21 Jul 2023 09:57:27 +0000 (+0800) Subject: RISC-V: Fix redundant variable declaration. X-Git-Tag: basepoints/gcc-15~7434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d96b11e4aef1727b3bd3215d0d8140a504d8eb7;p=thirdparty%2Fgcc.git RISC-V: Fix redundant variable declaration. Notice there is mistake for RISC-V I made in the last patch. Fix it. Sorry about that. gcc/ChangeLog: * config/riscv/riscv-v.cc (expand_gather_scatter): Remove redundant variables. --- diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc index eb92451948e1..31575428ecbd 100644 --- a/gcc/config/riscv/riscv-v.cc +++ b/gcc/config/riscv/riscv-v.cc @@ -3212,7 +3212,7 @@ prepare_gather_scatter (machine_mode vec_mode, machine_mode idx_mode, void expand_gather_scatter (rtx *ops, bool is_load) { - rtx ptr, vec_offset, vec_reg, len, mask; + rtx ptr, vec_offset, vec_reg; bool zero_extend_p; int scale_log2; rtx mask = ops[5];