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

--- Comment #6 from CVS 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:b4fddbe9592e9feb37ce567d90af822b75995531

commit r13-4630-gb4fddbe9592e9feb37ce567d90af822b75995531
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.

Reply via email to