https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122321
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:33eebbfdc25e9d7a0e7411ee83bc86a0dd64d755 commit r15-10479-g33eebbfdc25e9d7a0e7411ee83bc86a0dd64d755 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. (cherry picked from commit ac3eeb987ad04923ddc57a9dc9bd4ec98146a981)
