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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Martin Jambor
<jamb...@gcc.gnu.org>:

https://gcc.gnu.org/g:010e4a04c4daaf1b0dacf6aa30fcbdaa73eda33c

commit r11-11230-g010e4a04c4daaf1b0dacf6aa30fcbdaa73eda33c
Author: Martin Jambor <mjam...@suse.cz>
Date:   Fri Feb 9 18:58:43 2024 +0100

    sra: Disqualify bases of operands of asm gotos

    PR 110422 shows that SRA can ICE assuming there is a single edge
    outgoing from a block terminated with an asm goto.  We need that for
    BB-terminating statements so that any adjustments they make to the
    aggregates can be copied over to their replacements.  Because we can't
    have that after ASM gotos, we need to punt.

    gcc/ChangeLog:

    2024-01-17  Martin Jambor  <mjam...@suse.cz>

            PR tree-optimization/110422
            * tree-sra.c (scan_function): Disqualify bases of operands of asm
            gotos.

    gcc/testsuite/ChangeLog:

    2024-01-17  Martin Jambor  <mjam...@suse.cz>

            PR tree-optimization/110422
            * gcc.dg/torture/pr110422.c: New test.

    (cherry picked from commit 2b7204c52392c1c0da9c91a5feae0c44018a6f37)

Reply via email to