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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Stefan Schulze Frielinghaus
<stefa...@gcc.gnu.org>:

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

commit r16-3853-g4cff794ca18a96ceeb83ccb18b08ffa0a63c58af
Author: Stefan Schulze Frielinghaus <stefa...@gcc.gnu.org>
Date:   Mon Sep 15 09:10:53 2025 +0200

    Bail out early during gimplify_asm_expr [PR121391]

    In case an asm operand is an error node, constraints etc. are still
    validated.  Furthermore, all other operands are gimplified, although an
    error is returned in the end anyway.  For hard register constraints an
    operand is required in order to determine the mode from which the number
    of registers follows.  Therefore, instead of adding extra guards, bail
    out early.

    gcc/ChangeLog:

            PR middle-end/121391
            * gimplify.cc (gimplify_asm_expr): In case an asm operand is an
            error node, bail out early.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr121391-1.c: New test.
            * gcc.dg/pr121391-2.c: New test.
  • [Bug tree-optimization/121391] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to