https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119778

--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:a48f934211434cac1be951c207ee76e4b4340fac

commit r15-9422-ga48f934211434cac1be951c207ee76e4b4340fac
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Apr 14 11:42:18 2025 +0200

    tree-optimization/119778 - properly mark abnormal edge sources during
inlining

    When inlining a call that abnormally transfers control-flow we make
    all inlined calls that can possibly transfer abnormal control-flow
    do so as well.  But we failed to mark the calls as altering
    control-flow.  This results in inconsistent behavior later and
    possibly wrong-code (we'd eventually prune those edges).

            PR tree-optimization/119778
            * tree-inline.cc (copy_edges_for_bb): Mark calls that are
            source of abnormal edges as altering control-flow.

            * g++.dg/torture/pr119778.C: New testcase.

Reply via email to