Commit 8a45b58c by Robert Dewar Committed by Arnaud Charlet

exp_ch6.adb: Minor reformatting.

2010-06-18  Robert Dewar  <dewar@adacore.com>

	* exp_ch6.adb: Minor reformatting.
	* gnatname.adb: Add comment.

From-SVN: r160996
parent 9c8ff9b9
2010-06-18 Robert Dewar <dewar@adacore.com>
* exp_ch6.adb: Minor reformatting.
* gnatname.adb: Add comment.
2010-06-18 Vincent Celier <celier@adacore.com> 2010-06-18 Vincent Celier <celier@adacore.com>
* gnatname.adb (Scan_Args): When --and is used, make sure that the * gnatname.adb (Scan_Args): When --and is used, make sure that the
......
...@@ -3720,13 +3720,12 @@ package body Exp_Ch6 is ...@@ -3720,13 +3720,12 @@ package body Exp_Ch6 is
if Nkind (Orig_Bod) = N_Defining_Identifier if Nkind (Orig_Bod) = N_Defining_Identifier
or else Nkind (Orig_Bod) = N_Defining_Operator_Symbol or else Nkind (Orig_Bod) = N_Defining_Operator_Symbol
then then
-- Subprogram is a renaming_as_body. Calls appearing after the -- Subprogram is renaming_as_body. Calls occurring after the renaming
-- renaming can be replaced with calls to the renamed entity -- can be replaced with calls to the renamed entity directly, because
-- directly, because the subprograms are subtype conformant. If -- the subprograms are subtype conformant. If the renamed subprogram
-- the renamed subprogram is an inherited operation, we must redo -- is an inherited operation, we must redo the expansion because
-- the expansion because implicit conversions may be needed. -- implicit conversions may be needed. Similarly, if the renamed
-- Similarly, if the renamed entity is inlined, expand the call -- entity is inlined, expand the call for further optimizations.
-- for further optimizations.
Set_Name (N, New_Occurrence_Of (Orig_Bod, Loc)); Set_Name (N, New_Occurrence_Of (Orig_Bod, Loc));
......
...@@ -309,9 +309,13 @@ procedure Gnatname is ...@@ -309,9 +309,13 @@ procedure Gnatname is
declare declare
New_Arguments : Argument_Data; New_Arguments : Argument_Data;
pragma Warnings (Off, New_Arguments); pragma Warnings (Off, New_Arguments);
-- Declaring this defaulted itialized object ensures that -- Declaring this defaulted initialized object ensures
-- the new allocated component of table Arguments is -- that the new allocated component of table Arguments
-- correctly initialized. -- is correctly initialized.
-- This is VERY ugly, Table should never be used with
-- data requiring default initialization. We should
-- find a way to avoid violating this rule ???
begin begin
Arguments.Append (New_Arguments); Arguments.Append (New_Arguments);
......
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