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

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

https://gcc.gnu.org/g:4108c75ea13c2f76d6aeef498d70379f8f826be9

commit r14-11675-g4108c75ea13c2f76d6aeef498d70379f8f826be9
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.

    (cherry picked from commit a48f934211434cac1be951c207ee76e4b4340fac)

Reply via email to