Commit 28270211 by Arnaud Charlet

[multiple changes]

2013-04-11  Thomas Quinot  <quinot@adacore.com>

	* exp_ch4.adb (Find_Enclosing_Context): Add missing case of
	N_Procedure_Call_Statement.

2013-04-11  Robert Dewar  <dewar@adacore.com>

	* debug.adb: Minor comment fix.

From-SVN: r197748
parent 6b670dcf
2013-04-11 Thomas Quinot <quinot@adacore.com>
* exp_ch4.adb (Find_Enclosing_Context): Add missing case of
N_Procedure_Call_Statement.
2013-04-11 Robert Dewar <dewar@adacore.com>
* debug.adb: Minor comment fix.
2013-04-11 Johannes Kanig <kanig@adacore.com> 2013-04-11 Johannes Kanig <kanig@adacore.com>
* debug.adb: Remove comment for -gnatd.G. * debug.adb: Remove comment for -gnatd.G.
......
...@@ -605,10 +605,6 @@ package body Debug is ...@@ -605,10 +605,6 @@ package body Debug is
-- as well as additional cross reference information in ALI files to -- as well as additional cross reference information in ALI files to
-- compute effects of subprograms. -- compute effects of subprograms.
-- d.G Precondition only mode for gnat2why. In this mode, gnat2why will
-- only generate Why code that checks for the well-guardedness of
-- preconditions.
-- d.H Standard package only mode for gnat2why. In this mode, gnat2why -- d.H Standard package only mode for gnat2why. In this mode, gnat2why
-- will only generate Why code for package Standard. Any given input -- will only generate Why code for package Standard. Any given input
-- file will be ignored. -- file will be ignored.
......
...@@ -5137,11 +5137,16 @@ package body Exp_Ch4 is ...@@ -5137,11 +5137,16 @@ package body Exp_Ch4 is
-- return ... and then Ctrl_Func_Call ...; -- return ... and then Ctrl_Func_Call ...;
-- Yet another case: a formal in a procedure call statement:
-- Proc (... and then Ctrl_Func_Call ...);
while Present (Par) loop while Present (Par) loop
if Nkind_In (Par, N_Assignment_Statement, if Nkind_In (Par, N_Assignment_Statement,
N_Object_Declaration, N_Object_Declaration,
N_Pragma, N_Pragma,
N_Simple_Return_Statement) N_Simple_Return_Statement,
N_Procedure_Call_Statement)
then then
return Par; return Par;
...@@ -10899,9 +10904,9 @@ package body Exp_Ch4 is ...@@ -10899,9 +10904,9 @@ package body Exp_Ch4 is
function Element_To_Compare (C : Entity_Id) return Entity_Id is function Element_To_Compare (C : Entity_Id) return Entity_Id is
Comp : Entity_Id; Comp : Entity_Id;
begin begin
Comp := C; Comp := C;
loop loop
-- Exit loop when the next element to be compared is found, or -- Exit loop when the next element to be compared is found, or
-- there is no more such element. -- there is no more such element.
...@@ -10919,7 +10924,7 @@ package body Exp_Ch4 is ...@@ -10919,7 +10924,7 @@ package body Exp_Ch4 is
-- inherited components only. -- inherited components only.
(Is_Tagged_Type (Typ) (Is_Tagged_Type (Typ)
and then Comp /= Original_Record_Component (Comp)) and then Comp /= Original_Record_Component (Comp))
-- Skip _Tag -- Skip _Tag
...@@ -10931,8 +10936,8 @@ package body Exp_Ch4 is ...@@ -10931,8 +10936,8 @@ package body Exp_Ch4 is
-- .NET/JVM, skip _Parent whenever it has type Root_Controlled. -- .NET/JVM, skip _Parent whenever it has type Root_Controlled.
or else (Chars (Comp) = Name_uParent or else (Chars (Comp) = Name_uParent
and then VM_Target /= No_VM and then VM_Target /= No_VM
and then Etype (Comp) = RTE (RE_Root_Controlled)) and then Etype (Comp) = RTE (RE_Root_Controlled))
-- Skip interface elements (secondary tags???) -- Skip interface elements (secondary tags???)
......
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