I backported Robin's fix for pr 126550 to the gcc-15/gcc-14 branches
manually and goof'd it slightly. This fixes that goof. I've verified
the branch builds again and the test for pr126550 passes on both branches.
Jeff
commit e26d50c48017978e2fcdf9c9ce847ca053094c77
Author: Jeff Law <[email protected]>
Date: Tue Aug 11 07:15:58 2026 -0600
[RISC-V] Fix typo in manually merged patch
PR target/126550
gcc/
* config/riscv/riscv-v.cc (expand_const_vector): Fix typo in
manually
merged patch.
diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index 2ce6bdeb87e..085986e91ae 100644
--- a/gcc/config/riscv/riscv-v.cc
+++ b/gcc/config/riscv/riscv-v.cc
@@ -1458,7 +1458,7 @@ expand_const_vector (rtx target, rtx src)
rtx tmp2 = gen_reg_rtx (builder.mode ());
rtx step
= simplify_binary_operation (MINUS, builder.inner_mode (),
- builder->elt
(builder->npatterns ()),
+ builder.elt (builder.npatterns
()),
builder.elt (0));
expand_vec_series (tmp2, const0_rtx, step, tmp1);