This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r127429 - in /trunk/gcc/ada: exp_aggr.adb exp_a...
- From: charlet at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 14 Aug 2007 08:41:45 -0000
- Subject: r127429 - in /trunk/gcc/ada: exp_aggr.adb exp_a...
Author: charlet
Date: Tue Aug 14 08:41:44 2007
New Revision: 127429
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127429
Log:
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.
Modified:
trunk/gcc/ada/exp_aggr.adb
trunk/gcc/ada/exp_aggr.ads