aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/expander.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2006-10-31 18:53:35 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-10-31 18:53:35 +0100
commitc5ee5ad288f320f565e51d9b6ce836750bd31eec (patch)
tree3006b5171d1d3bcd7fb234215083843ddddc61da /gcc/ada/expander.adb
parente84a19613db328acceca4550d53093a84501245f (diff)
downloadgcc-c5ee5ad288f320f565e51d9b6ce836750bd31eec.zip
gcc-c5ee5ad288f320f565e51d9b6ce836750bd31eec.tar.gz
gcc-c5ee5ad288f320f565e51d9b6ce836750bd31eec.tar.bz2
exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates...
2006-10-31 Bob Duff <duff@adacore.com> Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if the parent part is a build-in-place function call, generate assignments. (Expand_Record_Aggregate): Call Convert_To_Assignments if any components are build-in-place function calls. (Replace_Self_Reference): New subsidiary of Make_OK_Assignment_Statement, to replace an access attribute that is a self-reference into an access to the appropriate component of the target object. Generalizes previous mechanism to handle self-references nested at any level. (Is_Self_Referential_Init): Remove, not needed. (Is_Self_Referential_Init): New predicate to simplify handling of self referential components in record aggregates. (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to check for presence of entity before checking for self-reference. (Has_Default_Init_Comps): Return True if a component association is a self-reference to the enclosing type, which can only come from a default initialization. (Make_OK_Assignment_Statement): If the expression is of the form Typ'Acc, where Acc is an access attribute, the expression comes from a default initialized self-referential component. (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type that has been derived from several abstract interfaces we must also initialize the tags of the secondary dispatch tables. From-SVN: r118253
Diffstat (limited to 'gcc/ada/expander.adb')
0 files changed, 0 insertions, 0 deletions