https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122321
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:ac3eeb987ad04923ddc57a9dc9bd4ec98146a981 commit r16-4923-gac3eeb987ad04923ddc57a9dc9bd4ec98146a981 Author: Jeff Law <[email protected]> Date: Sat Nov 1 08:30:41 2025 -0600 [PR rtl-optimization/122321][RISC-V] Bounds check another access to ira_reg_equiv array So another case where we're indexing into the ira_reg_equiv array without checking bounds. I sincerely hope we're not playing wack-a-mole here, but two failures in a couple months for the same core problem is worrisome. Bootstrapped and regression tested on x86_64 and riscv64 as well as run through all the embedded targets in my tester without regressions. PR rtl-optimization/122321 gcc/ * lra-constraints.cc (update_equiv): Make sure REGNO is in ira_reg_equiv before trying to update ira_reg_equiv. gcc/testsuite/ * gcc.target/riscv/rvv/autovec/pr122321.c: New test.
