https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116234
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Vladimir Makarov <vmaka...@gcc.gnu.org>: https://gcc.gnu.org/g:decc6c0d4d909ce510b6533c48d70d0b353f909a commit r15-7305-gdecc6c0d4d909ce510b6533c48d70d0b353f909a Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Fri Jan 31 09:39:45 2025 -0500 [PR116234][LRA]: Check debug insn when looking at one insn pseudo occurrence LRA can change reg class to NO_REGS when pseudo referred in one insn. Checking the references did not take into account that referring insn can be a debug insn. This resulted in different code generation with and without debug info generation. The patch fixes this pitfall. gcc/ChangeLog: PR rtl-optimization/116234 * lra-constraints.cc (multiple_insn_refs_p): New function. (curr_insn_transform): Use it. gcc/testsuite/ChangeLog: PR rtl-optimization/116234 * gfortran.target/aarch64/aarch64.exp: New. * gfortran.target/aarch64/pr116234.f: New.