diff options
author | Arnaud Charlet <charlet@adacore.com> | 2020-12-10 08:19:55 -0500 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-04-29 04:00:47 -0400 |
commit | fff7a6d923e6189bfce730883c2f81d65432d678 (patch) | |
tree | 638492cbfef68e043a6697994f44d8ad66f06525 /gcc/expr.c | |
parent | 3c837e5bf7e68634e65a1b1f5e6052a9aeaae1bb (diff) | |
download | gcc-fff7a6d923e6189bfce730883c2f81d65432d678.zip gcc-fff7a6d923e6189bfce730883c2f81d65432d678.tar.gz gcc-fff7a6d923e6189bfce730883c2f81d65432d678.tar.bz2 |
[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.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions