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

--- Comment #32 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:6a55e39bdb1fdb570730c08413ebbe744e493411

commit r14-9565-g6a55e39bdb1fdb570730c08413ebbe744e493411
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Mar 19 15:25:16 2024 +0100

    middle-end/113396 - int128 array index and value-ranges

    The following fixes bogus truncation of a value-range for an int128
    array index when computing the maximum extent for a variable array
    reference.  Instead of possibly slowing things down by using
    widest_int the following makes sure the range bounds fit within
    the constraints offset_int were designed for.

            PR middle-end/113396
            * tree-dfa.cc (get_ref_base_and_extent): Use index range
            bounds only if they fit within the address-range constraints
            of offset_int.

            * gcc.dg/torture/pr113396.c: New testcase.

Reply via email to