]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix stmt_kills_ref_p WRT external throws
authorJan Hubicka <jh@suse.cz>
Fri, 24 Jun 2022 11:52:44 +0000 (13:52 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 2 Jul 2025 11:02:29 +0000 (13:02 +0200)
commitcf8a6940c9aaa5c213ca3d07b637825b2316d851
tree5e42b36d25392bec6707407cdd2ae03274f2883c
parentfa2079742b1564fea6d84141c11ceb79f758b371
Fix stmt_kills_ref_p WRT external throws

Add missing check to stmt_kills_ref_p for case that function
is terminated by EH before call return value kills the ref. In the PR
I tried to construct testcase but I don't know how to do that until I
annotate EH code with fnspec attributes which I will do in separate patch
and add a testcase.

PR ipa/106057
* tree-ssa-alias.cc (stmt_kills_ref_p): Check for external throw.

(cherry picked from commit 7fd34782b95bbe1b4dc9936b8923f86d4aaee379)
gcc/tree-ssa-alias.cc