exp_aggr.ads, [...] (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded...
authorEd Schonberg <schonberg@adacore.com>
Tue, 14 Aug 2007 08:41:44 +0000 (10:41 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 14 Aug 2007 08:41:44 +0000 (10:41 +0200)
commitfa57ac97e9e50108ba984a0a6bfe3d54d339f059
tree7ea896bb4b8bad0b372cd54653b5c14306238718
parentdc0961329fdc886ce02cda642873705e76b2ccaa
exp_aggr.ads, [...] (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded aggregate code before allocator...

2007-08-14  Ed Schonberg  <schonberg@adacore.com>
    Gary Dismukes  <dismukes@adacore.com>

* exp_aggr.ads,
exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
expanded aggregate code before allocator, and ahead of declaration for
temporary, to prevent access before elaboration when the allocator is
an actual for an access parameter.
(Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
the TSD and the table of interfaces.
(Convert_To_Assignments): Augment the test for delaying aggregate
expansion for limited return statements to include the case of extended
returns, to prevent creation of an unwanted transient scope.
(Is_Static_Dispatch_Table_Aggregate): New subprogram.
(Expand_Array_Aggregate): Handle aggregates associated with
statically allocated dispatch tables.
(Expand_Record_Aggregate): Handle aggregates associated with
statically allocated dispatch tables.
(Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
of anonymous access type.

From-SVN: r127429
gcc/ada/exp_aggr.adb
gcc/ada/exp_aggr.ads