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

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

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

commit r14-11505-ga57c877f8899ac9171eaeafa7641ac79cce96f89
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)

Reply via email to