https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116009
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Richard Sandiford <rsand...@gcc.gnu.org>: https://gcc.gnu.org/g:34f33ea801563e2eabb348e8d3e9344a91abfd48 commit r15-2199-g34f33ea801563e2eabb348e8d3e9344a91abfd48 Author: Richard Sandiford <richard.sandif...@arm.com> Date: Mon Jul 22 16:42:16 2024 +0100 rtl-ssa: Avoid using a stale splay tree root [PR116009] In the fix for PR115928, I'd failed to notice that "root" was used later in the function, so needed to be updated. gcc/ PR rtl-optimization/116009 * rtl-ssa/accesses.cc (function_info::add_def): Set the root local variable after removing the old clobber group. gcc/testsuite/ PR rtl-optimization/116009 * gcc.c-torture/compile/pr116009.c: New test.