diff options
author | Richard Biener <rguenther@suse.de> | 2024-03-19 15:25:16 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-03-20 09:16:38 +0100 |
commit | 6a55e39bdb1fdb570730c08413ebbe744e493411 (patch) | |
tree | e0acdc9253c93afc2cd5f81018073d6634fd5d93 /gcc/config | |
parent | 994d8f922b9d88f45775f57a490409ab1c3baf59 (diff) | |
download | gcc-6a55e39bdb1fdb570730c08413ebbe744e493411.zip gcc-6a55e39bdb1fdb570730c08413ebbe744e493411.tar.gz gcc-6a55e39bdb1fdb570730c08413ebbe744e493411.tar.bz2 |
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.
Diffstat (limited to 'gcc/config')
0 files changed, 0 insertions, 0 deletions