diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-04-27 21:18:12 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-07-12 12:50:57 +0000 |
commit | 3ccd5d7192603e0ed6d0020658291b7c96f5651b (patch) | |
tree | 945900f3b7702592feb4506b949f29d720e4d483 /gcc/ada/gcc-interface/utils.c | |
parent | 0c8ff35eb982a49882ed71b1b85e8436675adf88 (diff) | |
download | gcc-3ccd5d7192603e0ed6d0020658291b7c96f5651b.zip gcc-3ccd5d7192603e0ed6d0020658291b7c96f5651b.tar.gz gcc-3ccd5d7192603e0ed6d0020658291b7c96f5651b.tar.bz2 |
[Ada] Implement support for unconstrained array types with FLB
gcc/ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Use a
fixed lower bound if the index subtype is marked so, as well as a
more efficient formula for the upper bound if the array cannot be
superflat.
(flb_cannot_be_superflat): New predicate.
(cannot_be_superflat): Rename into...
(range_cannot_be_superfla): ...this. Minor tweak.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions