]> git.ipfire.org Git - thirdparty/gcc.git/commit
Deal with prior EH/abormal cleanup when fixing up noreturn calls
authorRichard Biener <rguenther@suse.de>
Wed, 10 Sep 2025 15:14:07 +0000 (17:14 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 11 Sep 2025 09:12:13 +0000 (11:12 +0200)
commit5c4f1313e753aeb6920a48c62c7c99ad36e1adae
tree32677de8f14ffa15f050ca0199becd34f67d2ba2
parent165b029d4dfaa18de907d8dc8a4e56f82f06b697
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.
gcc/testsuite/g++.dg/torture/pr121870.C [new file with mode: 0644]
gcc/tree-ssa-propagate.cc