]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Ongoing work for AI12-0212 : container aggregates
authorEd Schonberg <schonberg@adacore.com>
Fri, 12 Jun 2020 18:57:02 +0000 (14:57 -0400)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:18:13 +0000 (13:18 -0300)
commit46070f9d599c712271c08327b44352a5a57e2e96
treef2f5cba89ac0f411dacd72d5c378f820bf5ea641
parent8b24813c49bce58cd0ffebdd12277952008167e9
[Ada] Ongoing work for AI12-0212 : container aggregates

gcc/ada/

* sem_aggr.adb (Resolve_Container_Aggregate): Add semantic
checks for indexed aggregates, including component associations
and iterated component associations.
* exp_aggr.adb (Expand_Iterated_Component): New subprogram,
subsidiary of Expand_Container_Aggreggate, used for positional,
named, and indexed aggregates.
(Aggregate_Size): New subprogram to precompute the size of an
indexed aggregate prior to call to allocate it.
(Expand_Range_Component): New subprogram so generate loop for a
component association given by a range or a subtype name in an
indexed aggregate.
gcc/ada/exp_aggr.adb
gcc/ada/sem_aggr.adb