diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-07-31 22:11:30 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-05 09:21:07 +0200 |
commit | 59a23beb9e71a0259b076693dd1e551500c08f24 (patch) | |
tree | de6bb6a37991d0562155dc2dd7904af5ef90f35f /zlib/adler32.c | |
parent | b26be61b8d23cc9d7a4e36feeadd9c8f0ec8b909 (diff) | |
download | gcc-59a23beb9e71a0259b076693dd1e551500c08f24.zip gcc-59a23beb9e71a0259b076693dd1e551500c08f24.tar.gz gcc-59a23beb9e71a0259b076693dd1e551500c08f24.tar.bz2 |
[Ada] Fix inconsistent building of itypes for null array aggregates
To analyze Ada 2022 null array aggregates we introduced a dedicated
routine and bypassed the code for ordinary array aggregates. However,
the types for the array indexes created by this dedicated routine
differed from the types created for ordinary array aggregates, i.e.
itypes for null array aggregates were associated with the array subtype
declaration, while itypes for ordinary array aggregates were associated
with the aggregate itself. These differences cause trouble for various
routines in GNATprove.
This patch reduces the special handling of null array aggregates and
reuses the building of itypes for ordinary array aggregates.
gcc/ada/
* sem_aggr.adb
(Array_Aggr_Subtype): Bypass call to Collect_Aggr_Bound with
dedicated code for null array aggregates.
(Resolve_Array_Aggregate): Remove special handling of null array
aggregates.
(Resolve_Array_Aggregate): Create bounds, but let
Array_Aggr_Subtype create itype entities.
Diffstat (limited to 'zlib/adler32.c')
0 files changed, 0 insertions, 0 deletions