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

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

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

commit r11-9661-gc4ac43fad3dff78e6e16e4d6ff36e77428332e4d
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Mar 9 10:55:49 2022 +0100

    middle-end/104786 - ICE with asm and VLA

    The following fixes an ICE observed with a MEM_REF allows_mem asm
    operand referencing a VLA.  The following makes sure to not attempt
    to go the temporary creation way when we cannot.

    2022-03-09  Richard Biener  <rguent...@suse.de>

            PR middle-end/104786
            * cfgexpand.c (expand_asm_stmt): Do not generate a copy
            for VLAs without an upper size bound.

            * gcc.dg/pr104786.c: New testcase.

    (cherry picked from commit ba3ff5e35144e2afff4ccef4ccbbbbaba9870afb)

Reply via email to