* [committed] RISC-V: Fix redundant variable declaration.
@ 2023-07-21 9:57 Juzhe-Zhong
0 siblings, 0 replies; only message in thread
From: Juzhe-Zhong @ 2023-07-21 9:57 UTC (permalink / raw)
To: gcc-patches; +Cc: kito.cheng, kito.cheng, lehua.ding, Juzhe-Zhong
Notice there is mistakes 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.
---
gcc/config/riscv/riscv-v.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index eb92451948e..31575428ecb 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];
--
2.36.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-21 9:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21 9:57 [committed] RISC-V: Fix redundant variable declaration Juzhe-Zhong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).