https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121870
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:77b0ddfa09e8d2e13171850d07664767a5ec59f8 commit r13-9949-g77b0ddfa09e8d2e13171850d07664767a5ec59f8 Author: Richard Biener <[email protected]> Date: Wed Sep 10 17:14:07 2025 +0200 Deal with prior EH/abormal cleanup when fixing up noreturn calls When a dead EH or abnormal edge makes a call queued for noreturn fixup unreachable, just skip processing it. PR tree-optimization/121870 * tree-ssa-propagate.cc (substitute_and_fold_engine::substitute_and_fold): Skip removed stmts from noreturn fixup. * g++.dg/torture/pr121870.C: New testcase. (cherry picked from commit 5c4f1313e753aeb6920a48c62c7c99ad36e1adae)
