Commit d48365bc by Javier Miranda Committed by Arnaud Charlet

exp_ch9.adb (Build_Protected_Entry): Undo previous change because it is not…

exp_ch9.adb (Build_Protected_Entry): Undo previous change because it is not really required and can introduce...

2007-08-16  Javier Miranda  <miranda@adacore.com>

	* exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
	is not really required and can introduce regression with the debugger.
	The original problem is fixed with the patch written for checks.adb.

From-SVN: r127540
parent 16f67b79
...@@ -2084,12 +2084,10 @@ package body Exp_Ch9 is ...@@ -2084,12 +2084,10 @@ package body Exp_Ch9 is
if Debug_Generated_Code then if Debug_Generated_Code then
Han_Loc := End_Loc; Han_Loc := End_Loc;
-- Otherwise we propagate the original source location to allow the -- Otherwise the inserted code should not be visible to the debugger
-- correct generation of errors in case of restrictions applied to
-- the expanded code.
else else
Han_Loc := Sloc (N); Han_Loc := No_Location;
end if; end if;
Edef := Edef :=
...@@ -11231,7 +11229,7 @@ package body Exp_Ch9 is ...@@ -11231,7 +11229,7 @@ package body Exp_Ch9 is
-- required value is obtained by taking the address of the task body -- required value is obtained by taking the address of the task body
-- procedure and converting it (with an unchecked conversion) to the -- procedure and converting it (with an unchecked conversion) to the
-- type required by the task kernel. For further details, see the -- type required by the task kernel. For further details, see the
-- description of Expand_Task_Body -- description of Expand_N_Task_Body
Append_To (Args, Append_To (Args,
Unchecked_Convert_To (RTE (RE_Task_Procedure_Access), Unchecked_Convert_To (RTE (RE_Task_Procedure_Access),
......
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