summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_aggr.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-15 10:03:34 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-15 10:03:34 +0000
commit1a8bc727477c2bf5567d972c14ecbc17eec53d6c (patch)
tree921937b994768bcbd4f12f7d6bd8c5766b0619ba /gcc/ada/exp_aggr.adb
parent96803d1586c33980022e9f7b0e6bcdb1eed4b58b (diff)
downloadgcc-1a8bc727477c2bf5567d972c14ecbc17eec53d6c.tar.gz
2009-07-15 Robert Dewar <dewar@adacore.com>
* exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb, exp_aggr.adb: Minor code reorganization (better calling sequence for Make_Temporary). 2009-07-15 Thomas Quinot <quinot@adacore.com> * opt.ads: Minor comment edits git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149672 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/exp_aggr.adb')
-rw-r--r--gcc/ada/exp_aggr.adb7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb
index 694663802f8..dfb164b0253 100644
--- a/gcc/ada/exp_aggr.adb
+++ b/gcc/ada/exp_aggr.adb
@@ -2996,8 +2996,7 @@ package body Exp_Aggr is
-- Create a temporary array of the above subtype which
-- will be used to capture the aggregate assignments.
- TmpE : constant Entity_Id :=
- Make_Temporary (Loc, New_Internal_Name ('A'), N);
+ TmpE : constant Entity_Id := Make_Temporary (Loc, 'A', N);
TmpD : constant Node_Id :=
Make_Object_Declaration (Loc,
@@ -3587,7 +3586,7 @@ package body Exp_Aggr is
Rewrite (Parent (N), Make_Null_Statement (Loc));
else
- Temp := Make_Temporary (Loc, New_Internal_Name ('A'), N);
+ Temp := Make_Temporary (Loc, 'A', N);
-- If the type inherits unknown discriminants, use the view with
-- known discriminants if available.
@@ -5202,7 +5201,7 @@ package body Exp_Aggr is
else
Maybe_In_Place_OK := False;
- Tmp := Make_Temporary (Loc, New_Internal_Name ('A'), N);
+ Tmp := Make_Temporary (Loc, 'A', N);
Tmp_Decl :=
Make_Object_Declaration
(Loc,