Commit b01bf852 by Arnaud Charlet

[multiple changes]

2009-08-17  Robert Dewar  <dewar@adacore.com>

	* tbuild.adb: Minor reformatting

2009-08-17  Thomas Quinot  <quinot@adacore.com>

	* exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
	Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
	Use Tbuild.Make_Temporary to create entity for the temporary.

From-SVN: r150832
parent 06274cd5
2009-08-17 Robert Dewar <dewar@adacore.com>
* make.adb: Add ??? comment
* tbuild.adb: Minor reformatting
2009-08-17 Thomas Quinot <quinot@adacore.com>
* exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
Use Tbuild.Make_Temporary to create entity for the temporary.
2009-08-17 Arnaud Charlet <charlet@adacore.com> 2009-08-17 Arnaud Charlet <charlet@adacore.com>
* make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
......
...@@ -7447,7 +7447,7 @@ package body Exp_Ch4 is ...@@ -7447,7 +7447,7 @@ package body Exp_Ch4 is
-- processing will still generate the appropriate copy in operation, -- processing will still generate the appropriate copy in operation,
-- which will take care of the slice. -- which will take care of the slice.
procedure Make_Temporary; procedure Make_Temporary_For_Slice;
-- Create a named variable for the value of the slice, in cases where -- Create a named variable for the value of the slice, in cases where
-- the back-end cannot handle it properly, e.g. when packed types or -- the back-end cannot handle it properly, e.g. when packed types or
-- unaligned slices are involved. -- unaligned slices are involved.
...@@ -7486,14 +7486,13 @@ package body Exp_Ch4 is ...@@ -7486,14 +7486,13 @@ package body Exp_Ch4 is
end loop; end loop;
end Is_Procedure_Actual; end Is_Procedure_Actual;
-------------------- ------------------------------
-- Make_Temporary -- -- Make_Temporary_For_Slice --
-------------------- ------------------------------
procedure Make_Temporary is procedure Make_Temporary_For_Slice is
Decl : Node_Id; Decl : Node_Id;
Ent : constant Entity_Id := Ent : constant Entity_Id := Make_Temporary (Loc, 'T', N);
Make_Defining_Identifier (Loc, New_Internal_Name ('T'));
begin begin
Decl := Decl :=
Make_Object_Declaration (Loc, Make_Object_Declaration (Loc,
...@@ -7510,7 +7509,7 @@ package body Exp_Ch4 is ...@@ -7510,7 +7509,7 @@ package body Exp_Ch4 is
Rewrite (N, New_Occurrence_Of (Ent, Loc)); Rewrite (N, New_Occurrence_Of (Ent, Loc));
Analyze_And_Resolve (N, Typ); Analyze_And_Resolve (N, Typ);
end Make_Temporary; end Make_Temporary_For_Slice;
-- Start of processing for Expand_N_Slice -- Start of processing for Expand_N_Slice
...@@ -7565,7 +7564,7 @@ package body Exp_Ch4 is ...@@ -7565,7 +7564,7 @@ package body Exp_Ch4 is
if Nkind (Parent (N)) = N_Function_Call if Nkind (Parent (N)) = N_Function_Call
and then Is_Possibly_Unaligned_Slice (N) and then Is_Possibly_Unaligned_Slice (N)
then then
Make_Temporary; Make_Temporary_For_Slice;
end if; end if;
elsif Nkind (Parent (N)) = N_Assignment_Statement elsif Nkind (Parent (N)) = N_Assignment_Statement
...@@ -7586,7 +7585,7 @@ package body Exp_Ch4 is ...@@ -7586,7 +7585,7 @@ package body Exp_Ch4 is
return; return;
else else
Make_Temporary; Make_Temporary_For_Slice;
end if; end if;
end Expand_N_Slice; end Expand_N_Slice;
......
...@@ -446,7 +446,8 @@ package body Tbuild is ...@@ -446,7 +446,8 @@ package body Tbuild is
Related_Node : Node_Id := Empty) return Node_Id Related_Node : Node_Id := Empty) return Node_Id
is is
Temp : constant Node_Id := Temp : constant Node_Id :=
Make_Defining_Identifier (Loc, Chars => New_Internal_Name (Id)); Make_Defining_Identifier (Loc,
Chars => New_Internal_Name (Id));
begin begin
Set_Related_Expression (Temp, Related_Node); Set_Related_Expression (Temp, Related_Node);
return Temp; return Temp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment