Commit a3559241 by Gary Dismukes Committed by Pierre-Marie de Rodat

[Ada] Spelling fixes and minor reformatting

2018-12-03  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

	* exp_ch3.adb, libgnarl/s-taasde.adb, libgnarl/s-taenca.adb,
	libgnarl/s-tarest.adb, libgnarl/s-tasini.adb,
	libgnarl/s-taskin.ads, libgnarl/s-tasren.adb,
	libgnarl/s-tassta.adb, libgnarl/s-tasuti.adb: Spelling fixes and
	minor reformatting.

From-SVN: r266756
parent 2a1838cd
2018-12-03 Gary Dismukes <dismukes@adacore.com>
* exp_ch3.adb, libgnarl/s-taasde.adb, libgnarl/s-taenca.adb,
libgnarl/s-tarest.adb, libgnarl/s-tasini.adb,
libgnarl/s-taskin.ads, libgnarl/s-tasren.adb,
libgnarl/s-tassta.adb, libgnarl/s-tasuti.adb: Spelling fixes and
minor reformatting.
2018-12-03 Eric Botcazou <ebotcazou@adacore.com> 2018-12-03 Eric Botcazou <ebotcazou@adacore.com>
* exp_aggr.adb (Convert_To_Positional): Use * exp_aggr.adb (Convert_To_Positional): Use
......
...@@ -6589,7 +6589,7 @@ package body Exp_Ch3 is ...@@ -6589,7 +6589,7 @@ package body Exp_Ch3 is
-- An aggregate that must be built in place is not resolved and -- An aggregate that must be built in place is not resolved and
-- expanded until the enclosing construct is expanded. This will -- expanded until the enclosing construct is expanded. This will
-- happen when the aggregqte is limited and the declared object -- happen when the aggregate is limited and the declared object
-- has a following address clause. -- has a following address clause.
if Is_Limited_Type (Typ) and then not Analyzed (Expr) then if Is_Limited_Type (Typ) and then not Analyzed (Expr) then
......
...@@ -106,7 +106,7 @@ package body System.Tasking.Async_Delays is ...@@ -106,7 +106,7 @@ package body System.Tasking.Async_Delays is
begin begin
-- A delay block level of Level_No_Pending_Abort indicates the delay -- A delay block level of Level_No_Pending_Abort indicates the delay
-- has been cancelled. If the delay has already been canceled, there is -- has been canceled. If the delay has already been canceled, there is
-- nothing more to be done. -- nothing more to be done.
if D.Level = Level_No_Pending_Abort then if D.Level = Level_No_Pending_Abort then
...@@ -181,8 +181,8 @@ package body System.Tasking.Async_Delays is ...@@ -181,8 +181,8 @@ package body System.Tasking.Async_Delays is
-- Allocate a queue element for the wakeup time T and put it in the -- Allocate a queue element for the wakeup time T and put it in the
-- queue in wakeup time order. Assume we are on an asynchronous -- queue in wakeup time order. Assume we are on an asynchronous
-- select statement with delay trigger. Put the calling task to -- select statement with delay trigger. Put the calling task to
-- sleep until either the delay expires or is cancelled. -- sleep until either the delay expires or is canceled.
-- We use one entry call record for this delay, since we have -- We use one entry call record for this delay, since we have
-- to increment the ATC nesting level, but since it is not a -- to increment the ATC nesting level, but since it is not a
......
...@@ -615,7 +615,7 @@ package body System.Tasking.Entry_Calls is ...@@ -615,7 +615,7 @@ package body System.Tasking.Entry_Calls is
Call : Entry_Call_Link) Call : Entry_Call_Link)
is is
begin begin
pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occuring); pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occurring);
pragma Assert (Call.Mode = Asynchronous_Call); pragma Assert (Call.Mode = Asynchronous_Call);
STPO.Write_Lock (Self_ID); STPO.Write_Lock (Self_ID);
......
...@@ -563,7 +563,7 @@ package body System.Tasking.Restricted.Stages is ...@@ -563,7 +563,7 @@ package body System.Tasking.Restricted.Stages is
end if; end if;
-- Only the first element of the Entry_Calls array is used when the -- Only the first element of the Entry_Calls array is used when the
-- Ravenscar Profile is active as no asynchronous transfer of control -- Ravenscar Profile is active, as no asynchronous transfer of control
-- is allowed. -- is allowed.
Created_Task.Entry_Calls (Created_Task.Entry_Calls'First) := Created_Task.Entry_Calls (Created_Task.Entry_Calls'First) :=
......
...@@ -440,9 +440,9 @@ package body System.Tasking.Initialization is ...@@ -440,9 +440,9 @@ package body System.Tasking.Initialization is
when Activating when Activating
| Runnable | Runnable
=> =>
if T.ATC_Nesting_Level > Level_No_ATC_Occuring then if T.ATC_Nesting_Level > Level_No_ATC_Occurring then
-- This scenario occurs when an asynchronous protected entry -- This scenario occurs when an asynchronous protected entry
-- call is canceld during a requeue with abort. -- call is canceled during a requeue with abort.
T.Entry_Calls T.Entry_Calls
(T.ATC_Nesting_Level).Cancellation_Attempted := True; (T.ATC_Nesting_Level).Cancellation_Attempted := True;
...@@ -467,7 +467,7 @@ package body System.Tasking.Initialization is ...@@ -467,7 +467,7 @@ package body System.Tasking.Initialization is
Wakeup (T, T.Common.State); Wakeup (T, T.Common.State);
when Entry_Caller_Sleep => when Entry_Caller_Sleep =>
pragma Assert (T.ATC_Nesting_Level > Level_No_ATC_Occuring); pragma Assert (T.ATC_Nesting_Level > Level_No_ATC_Occurring);
T.Entry_Calls T.Entry_Calls
(T.ATC_Nesting_Level).Cancellation_Attempted := True; (T.ATC_Nesting_Level).Cancellation_Attempted := True;
......
...@@ -826,7 +826,7 @@ package System.Tasking is ...@@ -826,7 +826,7 @@ package System.Tasking is
-- ATC_Level of a task that has "completed". A task reaches the completed -- ATC_Level of a task that has "completed". A task reaches the completed
-- state after an abort, exception propagation, or normal exit. -- state after an abort, exception propagation, or normal exit.
Level_No_ATC_Occuring : constant ATC_Level_Base := 0; Level_No_ATC_Occurring : constant ATC_Level_Base := 0;
-- ATC_Level of a task not executing a entry call or an asynchronous -- ATC_Level of a task not executing a entry call or an asynchronous
-- select statement. -- select statement.
...@@ -834,11 +834,11 @@ package System.Tasking is ...@@ -834,11 +834,11 @@ package System.Tasking is
-- ATC_Level when there is no pending abort -- ATC_Level when there is no pending abort
subtype ATC_Level is ATC_Level_Base range subtype ATC_Level is ATC_Level_Base range
Level_No_ATC_Occuring .. Level_No_Pending_Abort - 1; Level_No_ATC_Occurring .. Level_No_Pending_Abort - 1;
-- Nested ATC_Levels valid during the execution of a task -- Nested ATC_Levels valid during the execution of a task
subtype ATC_Level_Index is ATC_Level range subtype ATC_Level_Index is ATC_Level range
Level_No_ATC_Occuring + 1 .. ATC_Level'Last; Level_No_ATC_Occurring + 1 .. ATC_Level'Last;
-- ATC_Levels valid when a task is executing an entry call or asynchronous -- ATC_Levels valid when a task is executing an entry call or asynchronous
-- task control statements. -- task control statements.
...@@ -1101,7 +1101,7 @@ package System.Tasking is ...@@ -1101,7 +1101,7 @@ package System.Tasking is
-- Beginning of counts -- Beginning of counts
ATC_Nesting_Level : ATC_Level := Level_No_ATC_Occuring; ATC_Nesting_Level : ATC_Level := Level_No_ATC_Occurring;
-- The dynamic level of ATC nesting (currently executing nested -- The dynamic level of ATC nesting (currently executing nested
-- asynchronous select statements) in this task. -- asynchronous select statements) in this task.
......
...@@ -206,7 +206,7 @@ package body System.Tasking.Rendezvous is ...@@ -206,7 +206,7 @@ package body System.Tasking.Rendezvous is
if Self_Id.Common.Call /= null then if Self_Id.Common.Call /= null then
Caller := Self_Id.Common.Call.Self; Caller := Self_Id.Common.Call.Self;
pragma Assert (Caller.ATC_Nesting_Level > Level_No_ATC_Occuring); pragma Assert (Caller.ATC_Nesting_Level > Level_No_ATC_Occurring);
Uninterpreted_Data := Uninterpreted_Data :=
Caller.Entry_Calls (Caller.ATC_Nesting_Level).Uninterpreted_Data; Caller.Entry_Calls (Caller.ATC_Nesting_Level).Uninterpreted_Data;
......
...@@ -1982,7 +1982,7 @@ package body System.Tasking.Stages is ...@@ -1982,7 +1982,7 @@ package body System.Tasking.Stages is
Self_ID.Master_Of_Task .. Self_ID.Master_Of_Task + 3); Self_ID.Master_Of_Task .. Self_ID.Master_Of_Task + 3);
pragma Assert (Self_ID.Common.Wait_Count = 0); pragma Assert (Self_ID.Common.Wait_Count = 0);
pragma Assert (Self_ID.Open_Accepts = null); pragma Assert (Self_ID.Open_Accepts = null);
pragma Assert (Self_ID.ATC_Nesting_Level = Level_No_ATC_Occuring); pragma Assert (Self_ID.ATC_Nesting_Level = Level_No_ATC_Occurring);
pragma Debug (Debug.Trace (Self_ID, "V_Complete_Task", 'C')); pragma Debug (Debug.Trace (Self_ID, "V_Complete_Task", 'C'));
......
...@@ -206,7 +206,7 @@ package body System.Tasking.Utilities is ...@@ -206,7 +206,7 @@ package body System.Tasking.Utilities is
procedure Exit_One_ATC_Level (Self_ID : Task_Id) is procedure Exit_One_ATC_Level (Self_ID : Task_Id) is
begin begin
pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occuring); pragma Assert (Self_ID.ATC_Nesting_Level > Level_No_ATC_Occurring);
Self_ID.ATC_Nesting_Level := Self_ID.ATC_Nesting_Level - 1; Self_ID.ATC_Nesting_Level := Self_ID.ATC_Nesting_Level - 1;
......
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