-- In GNATprove mode, force the loading of a Interrupt_Priority when
-- processing compilation units with potentially "main" subprograms.
-- This is required for the ceiling priority protocol checks, which
- -- are trigerred by these subprograms.
+ -- are triggered by these subprograms.
if GNATprove_Mode
- and then Nkind_In (Unit_Node, N_Subprogram_Body,
+ and then Nkind_In (Unit_Node, N_Function_Instantiation,
N_Procedure_Instantiation,
- N_Function_Instantiation)
+ N_Subprogram_Body)
then
declare
Spec : Node_Id;
end if;
-- In GNATprove mode, force the loading of a Interrupt_Priority, which
- -- is required for the ceiling priority protocol checks trigerred by
+ -- is required for the ceiling priority protocol checks triggered by
-- calls originating from protected subprograms and entries.
if GNATprove_Mode then
end if;
-- In GNATprove mode, force the loading of a Interrupt_Priority, which
- -- is required for the ceiling priority protocol checks trigerred by
+ -- is required for the ceiling priority protocol checks triggered by
-- calls originating from tasks.
if GNATprove_Mode then
New_Sloc : Source_Ptr := No_Location;
New_Scope : Entity_Id := Empty) return Node_Id
is
- EWA_Level : Nat := 0;
- -- By default copying of defining identifiers is prohibited because this
- -- would introduce an entirely new entity into the tree. The exception
- -- to this general rule are declaration of constants and variables
- -- located in Expression_With_Action nodes.
+ EWA_Level : Nat := 0;
+ -- By default, copying of defining identifiers is prohibited because
+ -- this would introduce an entirely new entity into the tree. The
+ -- exception to this general rule is declaration of constants and
+ -- variables located in Expression_With_Action nodes.
EWA_Inner_Scope_Level : Nat := 0;
-- Level of internal scope of defined in EWAs. Used to avoid creating
-- not in the hash table, then it is returned unchanged.
procedure Build_NCT_Hash_Tables;
- -- Builds hash tables.
+ -- Builds hash tables
function Copy_Elist_With_Replacement
(Old_Elist : Elist_Id) return Elist_Id;
function In_Map (E : Entity_Id) return Boolean;
-- Return True if E is one of the old entities specified in the set of
- -- mappings to be applied to entities in the tree (ie. Map).
+ -- mappings to be applied to entities in the tree (i.e. Map).
procedure Visit_Elist (E : Elist_Id);
-- Called during first phase to visit all elements of an Elist
Associated_Node_For_Itype (Ent);
begin
- if Present (Anode) then
-
- -- Enter a link between the associated node of the old
- -- Itype and the new Itype, for updating later when node
- -- is copied.
+ -- Enter the link between the associated node of the old
+ -- Itype and the new Itype, for updating later when node
+ -- is copied.
+ if Present (Anode) then
NCT_Itype_Assoc.Set (Anode, Node (Elmt));
end if;
end;
-- Copy_Entity_With_Replacement --
----------------------------------
- -- This routine exactly parallels its phase one analog Visit_Itype,
+ -- This routine exactly parallels its phase one analog Visit_Itype
procedure Copy_Entity_With_Replacement (New_Entity : Entity_Id) is
begin