]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Small cleanup in expansion of array aggregates in allocators
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 5 Nov 2024 10:24:06 +0000 (11:24 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 18 Nov 2024 14:06:54 +0000 (15:06 +0100)
commit856467a7e6d2d24d8816b2036ae5fd52c3e91145
tree3b3c3916160b495c6b048f6cdaa80aff968373b3
parent7eafe8e9e9ec08f1d8b2f4ea0da2f47a7dedbeaa
ada: Small cleanup in expansion of array aggregates in allocators

Convert_Array_Aggr_In_Allocator does nothing that Late_Expansion cannot do,
so this deletes the former and moves its support code for Storage_Model to
the latter.  No functional changes.

gcc/ada/ChangeLog:

* exp_aggr.adb (Convert_Array_Aggr_In_Allocator): Delete.
(Convert_Aggr_In_Allocator): Do not call above procedure.
(Late_Expansion): Deal with a target that is the dereference of a
prefix with a Storage_Model.  Remove an useless actual parameter
in the call to Build_Array_Aggr_Code.
gcc/ada/exp_aggr.adb