]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-ssa: Avoid using a stale splay tree root [PR116009]
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 22 Jul 2024 15:42:16 +0000 (16:42 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 22 Jul 2024 15:42:16 +0000 (16:42 +0100)
commit34f33ea801563e2eabb348e8d3e9344a91abfd48
tree59dbfafcc960cd54e554c89836a1277079be4efc
parente62988b77757c6019f0a538492e9851cda689c2e
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.
gcc/rtl-ssa/accesses.cc
gcc/testsuite/gcc.c-torture/compile/pr116009.c [new file with mode: 0644]