https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123922
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Vladimir Makarov <[email protected]>: https://gcc.gnu.org/g:7653fb4e9b8e8a1c434d706b44b99d1e399e308e commit r16-7290-g7653fb4e9b8e8a1c434d706b44b99d1e399e308e Author: Vladimir N. Makarov <[email protected]> Date: Wed Feb 4 15:46:22 2026 -0500 [PR123922, LRA]: Fix asan related bug in LRA LRA rarely splits hard reg live ranges to assign regs to pseudos when other possibility to allocate regs failed. During the pseudo assignment LRA updates hard reg preferences of pseudos connected to given pseudo through copies. For this LRA uses array update_hard_regno_preference_check which was not allocated during hard reg live range splitting. The patch fixes the bug by allocation of the array during hard reg live range splitting. gcc/ChangeLog: PR rtl-optimization/123922 * lra-assigns.cc (lra_split_hard_reg_for): Allocate and free update_hard_regno_preference_check. Clear non_reload_pseudos for successful spilling too.
