[Bug c++/106057] Missed stmt_can_throw_external check in stmt_kills_ref_p

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 24 11:54:05 GMT 2022


--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jan Hubicka <hubicka@gcc.gnu.org>:


commit r13-1241-g7fd34782b95bbe1b4dc9936b8923f86d4aaee379
Author: Jan Hubicka <jh@suse.cz>
Date:   Fri Jun 24 13:52:44 2022 +0200

    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.

More information about the Gcc-bugs mailing list