]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Since the loop increment i++ is unreachable, the loop body will never execute...
authorJin Ma <jinma@linux.alibaba.com>
Fri, 16 May 2025 07:27:13 +0000 (15:27 +0800)
committerJin Ma <jinma@linux.alibaba.com>
Sat, 17 May 2025 06:16:22 +0000 (14:16 +0800)
commit55cfd1c8fa2ad2c5d91eadd14daa35f695779a2b
tree3748d16674ef0ec8819297729b45048d26598258
parent83477c3f6650429a7cdcb1b6da950c421aa2f77d
RISC-V: Since the loop increment i++ is unreachable, the loop body will never execute more than once

Reported-by: huangcunjian <huangcunjian.huang@alibaba-inc.com>
gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_gpr_save_operation_p): Remove
break and fixbug for elt index.
gcc/config/riscv/riscv.cc