https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116927
--- Comment #9 from GCC Commits ---
The releases/gcc-14 branch has been updated by Andrew Pinski
:
https://gcc.gnu.org/g:16446f19f1313c57a312857026b6982aaa7241c7
commit r14-11606-g16446f19f1313c57a312857026b6982aaa7241c7
Author: Andrew Pinski
Date: Wed Oct 2 14:21:24 2024 -0700
aarch64: Fix early ra for -fno-delete-dead-exceptions [PR116927]
Early-RA was considering throwing instructions as being dead and removing
them even if -fno-delete-dead-exceptions was in use. This fixes that
oversight.
Built and tested for aarch64-linux-gnu.
PR target/116927
gcc/ChangeLog:
* config/aarch64/aarch64-early-ra.cc (early_ra::is_dead_insn):
Insns
that throw are not dead with -fno-delete-dead-exceptions.
gcc/testsuite/ChangeLog:
* g++.dg/torture/pr116927-1.C: New test.
Signed-off-by: Andrew Pinski
(cherry picked from commit edec4bfc99744b48da3ffde1e4f39c9aceecfd42)