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

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

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

commit r12-9064-ga3dfcaac560f5589028fdd967bfaa60d84c265ac
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Dec 12 17:52:46 2022 +0100

    tree-optimization/108076 - if-conversion and forced labels

    When doing if-conversion we simply throw away labels without checking
    whether they are possibly targets of non-local gotos or have their
    address taken.  The following rectifies this and refuses to if-convert
    such loops.

            PR tree-optimization/108076
            * tree-if-conv.cc (if_convertible_loop_p_1): Reject blocks
            with non-local or forced labels that we later remove
            labels from.

            * gcc.dg/torture/pr108076.c: New testcase.

    (cherry picked from commit b4fddbe9592e9feb37ce567d90af822b75995531)

Reply via email to