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

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

https://gcc.gnu.org/g:6b56e645a7b481693fe6982f8f09ba2e07768bf8

commit r15-7284-g6b56e645a7b481693fe6982f8f09ba2e07768bf8
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Jan 29 15:09:35 2025 +0100

    middle-end/118692 - ICE with out-of-bound ref expansion

    The following guards the BIT_FIELD_REF expansion fallback for
    MEM_REFs of entities expanded to register (or constant) further,
    avoiding large out-of-bound offsets by, when the access does not
    overlap the base object, expanding the offset as if it were zero.

            PR middle-end/118692
            * expr.cc (expand_expr_real_1): When expanding a MEM_REF
            as BIT_FIELD_REF avoid large offsets for accesses not
            overlapping the base object.

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

Reply via email to