]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Bad handling of array sliding in aggregate
authorArnaud Charlet <charlet@adacore.com>
Thu, 10 Dec 2020 13:19:55 +0000 (08:19 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 29 Apr 2021 08:00:47 +0000 (04:00 -0400)
commitfff7a6d923e6189bfce730883c2f81d65432d678
tree638492cbfef68e043a6697994f44d8ad66f06525
parent3c837e5bf7e68634e65a1b1f5e6052a9aeaae1bb
[Ada] Bad handling of array sliding in aggregate

gcc/ada/

* exp_aggr.adb (Collect_Initialization_Statements): Removed.
(Convert_Aggr_In_Object_Decl, Expand_Array_Aggregate): Fix
creation and insertion of Initialization_Statements.  Do not set
Initialization_Statements when a transient scope is involved.
Move processing of Array_Slice here.  Ensure that an object with
an Array_Slice call gets its array component initialized.  Add
comments.
* exp_ch7.adb: Update comments.
(Store_Actions_In_Scope): Deal properly with an empty list which
might now be generated by Convert_Aggr_In_Object_Decl.
* exp_ch3.adb: Update comments.
(Expand_N_Object_Declaration): Remove processing of Array_Slice.
gcc/ada/exp_aggr.adb
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch7.adb