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

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

https://gcc.gnu.org/g:05b347c5322a50195aa3ab0d06f2058f0ccee956

commit r12-11217-g05b347c5322a50195aa3ab0d06f2058f0ccee956
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Jul 31 10:07:45 2024 +0200

    middle-end/101478 - ICE with degenerate address during gimplification

    When we gimplify &MEM[0B + 4] we are re-folding the address in case
    types are not canonical which ends up with a constant address that
    recompute_tree_invariant_for_addr_expr ICEs on.  Properly guard
    that call.

            PR middle-end/101478
            * gimplify.cc (gimplify_addr_expr): Check we still have an
            ADDR_EXPR before calling recompute_tree_invariant_for_addr_expr.

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

    (cherry picked from commit 33ead6400ad59d4b38fa0527a9a7b53a28114ab7)
  • [Bug c/101478] [12 Regression] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to