Bootstraps on RISC-V recently started failing due to an unused parameter. I've only lightly tested this, but it should restore bootstrapping. Pushing to the trunk.
jeff
commit 6c8df0165a9b939c0d44fa6fb6900ebaabc2265d Author: Jeff Law <[email protected]> Date: Thu May 14 07:19:52 2026 -0600 [RISC-V] Drop unused parameters to restore bootstrap Bootstraps on RISC-V recently started failing due to an unused parameter. I've only lightly tested this, but it should restore bootstrapping. Pushing to the trunk. gcc/ * config/riscv/riscv-v.cc (expand_const_vector_stepped): Drop unused SRC parameter. All callers changed. (expand_const_vector_interleaved_stepped_npatterns): Likewise. (expand_const_vector): Corresponding changes. diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc index 5e632d5a073..291850bfb11 100644 --- a/gcc/config/riscv/riscv-v.cc +++ b/gcc/config/riscv/riscv-v.cc @@ -1586,7 +1586,7 @@ expand_const_vector_single_step_npatterns (rtx target, rvv_builder *builder) } static void -expand_const_vector_interleaved_stepped_npatterns (rtx target, rtx src, +expand_const_vector_interleaved_stepped_npatterns (rtx target, rvv_builder *builder) { machine_mode mode = GET_MODE (target); @@ -1639,15 +1639,14 @@ expand_const_vector_interleaved_stepped_npatterns (rtx target, rtx src, } static void -expand_const_vector_stepped (rtx target, rtx src, rvv_builder *builder) +expand_const_vector_stepped (rtx target, rvv_builder *builder) { gcc_assert (GET_MODE_CLASS (GET_MODE (target)) == MODE_VECTOR_INT); if (builder->single_step_npatterns_p ()) return expand_const_vector_single_step_npatterns (target, builder); else if (builder->interleaved_stepped_npatterns_p ()) - return expand_const_vector_interleaved_stepped_npatterns (target, src, - builder); + return expand_const_vector_interleaved_stepped_npatterns (target, builder); /* TODO: We will enable more variable-length vector in the future. */ gcc_unreachable (); @@ -1755,7 +1754,7 @@ expand_const_vector (rtx target, rtx src) else if (CONST_VECTOR_NELTS_PER_PATTERN (src) == 2) return expand_const_vector_onestep (target, builder); else if (CONST_VECTOR_STEPPED_P (src)) - return expand_const_vector_stepped (target, src, &builder); + return expand_const_vector_stepped (target, &builder); gcc_unreachable (); }
