Commit 605afee8 by Gary Dismukes Committed by Arnaud Charlet

sem_ch9.adb, [...]: Minor reformatting and typo fixes.

2017-04-25  Gary Dismukes  <dismukes@adacore.com>

	* sem_ch9.adb, sem_ch10.adb, sem_util.adb: Minor reformatting and typo
	fixes.

From-SVN: r247137
parent b912db16
2017-04-25 Gary Dismukes <dismukes@adacore.com>
* sem_ch9.adb, sem_ch10.adb, sem_util.adb: Minor reformatting and typo
fixes.
2017-04-25 Arnaud Charlet <charlet@adacore.com> 2017-04-25 Arnaud Charlet <charlet@adacore.com>
* rtsfind.ads (SPARK_Implicit_Load): New procedure for forced * rtsfind.ads (SPARK_Implicit_Load): New procedure for forced
......
...@@ -1137,12 +1137,12 @@ package body Sem_Ch10 is ...@@ -1137,12 +1137,12 @@ package body Sem_Ch10 is
-- In GNATprove mode, force the loading of a Interrupt_Priority when -- In GNATprove mode, force the loading of a Interrupt_Priority when
-- processing compilation units with potentially "main" subprograms. -- processing compilation units with potentially "main" subprograms.
-- This is required for the ceiling priority protocol checks, which -- This is required for the ceiling priority protocol checks, which
-- are trigerred by these subprograms. -- are triggered by these subprograms.
if GNATprove_Mode 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_Procedure_Instantiation,
N_Function_Instantiation) N_Subprogram_Body)
then then
declare declare
Spec : Node_Id; Spec : Node_Id;
......
...@@ -2254,7 +2254,7 @@ package body Sem_Ch9 is ...@@ -2254,7 +2254,7 @@ package body Sem_Ch9 is
end if; end if;
-- In GNATprove mode, force the loading of a Interrupt_Priority, which -- 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. -- calls originating from protected subprograms and entries.
if GNATprove_Mode then if GNATprove_Mode then
...@@ -3201,7 +3201,7 @@ package body Sem_Ch9 is ...@@ -3201,7 +3201,7 @@ package body Sem_Ch9 is
end if; end if;
-- In GNATprove mode, force the loading of a Interrupt_Priority, which -- 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. -- calls originating from tasks.
if GNATprove_Mode then if GNATprove_Mode then
......
...@@ -16227,11 +16227,11 @@ package body Sem_Util is ...@@ -16227,11 +16227,11 @@ package body Sem_Util is
New_Sloc : Source_Ptr := No_Location; New_Sloc : Source_Ptr := No_Location;
New_Scope : Entity_Id := Empty) return Node_Id New_Scope : Entity_Id := Empty) return Node_Id
is is
EWA_Level : Nat := 0; EWA_Level : Nat := 0;
-- By default copying of defining identifiers is prohibited because this -- By default, copying of defining identifiers is prohibited because
-- would introduce an entirely new entity into the tree. The exception -- this would introduce an entirely new entity into the tree. The
-- to this general rule are declaration of constants and variables -- exception to this general rule is declaration of constants and
-- located in Expression_With_Action nodes. -- variables located in Expression_With_Action nodes.
EWA_Inner_Scope_Level : Nat := 0; EWA_Inner_Scope_Level : Nat := 0;
-- Level of internal scope of defined in EWAs. Used to avoid creating -- Level of internal scope of defined in EWAs. Used to avoid creating
...@@ -16302,7 +16302,7 @@ package body Sem_Util is ...@@ -16302,7 +16302,7 @@ package body Sem_Util is
-- not in the hash table, then it is returned unchanged. -- not in the hash table, then it is returned unchanged.
procedure Build_NCT_Hash_Tables; procedure Build_NCT_Hash_Tables;
-- Builds hash tables. -- Builds hash tables
function Copy_Elist_With_Replacement function Copy_Elist_With_Replacement
(Old_Elist : Elist_Id) return Elist_Id; (Old_Elist : Elist_Id) return Elist_Id;
...@@ -16322,7 +16322,7 @@ package body Sem_Util is ...@@ -16322,7 +16322,7 @@ package body Sem_Util is
function In_Map (E : Entity_Id) return Boolean; function In_Map (E : Entity_Id) return Boolean;
-- Return True if E is one of the old entities specified in the set of -- 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); procedure Visit_Elist (E : Elist_Id);
-- Called during first phase to visit all elements of an Elist -- Called during first phase to visit all elements of an Elist
...@@ -16398,12 +16398,11 @@ package body Sem_Util is ...@@ -16398,12 +16398,11 @@ package body Sem_Util is
Associated_Node_For_Itype (Ent); Associated_Node_For_Itype (Ent);
begin begin
if Present (Anode) then -- Enter the link between the associated node of the old
-- Itype and the new Itype, for updating later when node
-- Enter a link between the associated node of the old -- is copied.
-- Itype and the new Itype, for updating later when node
-- is copied.
if Present (Anode) then
NCT_Itype_Assoc.Set (Anode, Node (Elmt)); NCT_Itype_Assoc.Set (Anode, Node (Elmt));
end if; end if;
end; end;
...@@ -16444,7 +16443,7 @@ package body Sem_Util is ...@@ -16444,7 +16443,7 @@ package body Sem_Util is
-- Copy_Entity_With_Replacement -- -- 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 procedure Copy_Entity_With_Replacement (New_Entity : Entity_Id) is
begin begin
......
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