]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/124130 - fixup noreturn calls during inlining
authorRichard Biener <rguenther@suse.de>
Tue, 17 Feb 2026 10:42:44 +0000 (11:42 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 17 Feb 2026 13:56:13 +0000 (14:56 +0100)
commitf34a8411afefac46233d7479131d7e5458ecf57d
tree212dffd0d8d825f6ff8c56436051716315b35559
parent9a5ee941a2cc525811748f78d42a36d1100c12d7
tree-optimization/124130 - fixup noreturn calls during inlining

When we are altering the ctrl state of a stmt due to adding abnormal
edges from it we also have to make sure to cleanup its noreturn state.

PR tree-optimization/124130
* tree-inline.cc (copy_edges_for_bb): Fixup noreturn calls
with abnormal edge source.

* g++.dg/torture/pr124130.C: New testcase.
gcc/testsuite/g++.dg/torture/pr124130.C [new file with mode: 0644]
gcc/tree-inline.cc