[Bug rtl-optimization/108263] [13 Regression] ICE building Linux kernel on ppc64le

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 3 11:13:08 GMT 2023


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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:4fb639a7fee5df32a2d1e7afa40fdf31d280464b

commit r13-4974-g4fb639a7fee5df32a2d1e7afa40fdf31d280464b
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jan 3 12:12:35 2023 +0100

    cfgrtl: Don't try to redirect asm goto to EXIT [PR108263]

    The following testcase distilled from Linux kernel on ppc64le ICEs,
    because fixup_reorder_chain sees a bb with a single fallthru edge
    falling into a bb with simple return and decides to redirect
    that fallthru edge to EXIT.  That is possible if the bb ending
    in the fallthru edge doesn't end with a jump or ends with a normal
    unconditional jump, but not when the bb ends with asm goto which can
despite
    a single fallthru have multiple labels to the fallthrough basic block.

    The following patch makes sure we never try to redirect such cases to EXIT.

    2023-01-03  Jakub Jelinek  <jakub@redhat.com>

            PR rtl-optimization/108263
            * cfgrtl.cc (fixup_reorder_chain): Avoid trying to redirect
            asm goto to EXIT.

            * gcc.dg/pr108263.c: New test.


More information about the Gcc-bugs mailing list