-- of a single component of the array.
function Free_One_Dimension (Dim : Int) return List_Id;
- -- Generate a loop over one dimension of the array.
+ -- Generate a loop over one dimension of the array
--------------------
-- Free_Component --
Next_Entity (E);
end loop;
- -- Analyze inserted cleanup statements.
+ -- Analyze inserted cleanup statements
if Present (Stmt) then
Stmt := Next (Stmt);
Mark : Entity_Id := Empty;
New_Decls : constant List_Id := New_List;
Blok : Node_Id;
+ End_Lab : Node_Id;
Wrapped : Boolean;
Chain : Entity_Id := Empty;
Decl : Node_Id;
-- exception handlers and an AT END call in the same scope.
if Present (Exception_Handlers (Handled_Statement_Sequence (N))) then
+
+ -- Preserve end label to provide proper cross-reference information
+
+ End_Lab := End_Label (Handled_Statement_Sequence (N));
Blok :=
Make_Block_Statement (Loc,
Handled_Statement_Sequence => Handled_Statement_Sequence (N));
Set_Handled_Statement_Sequence (N,
Make_Handled_Sequence_Of_Statements (Loc, New_List (Blok)));
+ Set_End_Label (Handled_Statement_Sequence (N), End_Lab);
Wrapped := True;
-- Otherwise we do not wrap
Set_Declarations (N, New_Decls);
Analyze_Declarations (New_Decls);
- -- The At_End call is attached to the sequence of statements.
+ -- The At_End call is attached to the sequence of statements
declare
HSS : Node_Id;
-- NOTE: This cleanup handler references _object, a parameter
-- to the procedure.
- -- Find the _object parameter representing the protected object.
+ -- Find the _object parameter representing the protected object
Spec := Parent (Corresponding_Spec (N));