Commit d673c5c5 by Robert Dewar Committed by Arnaud Charlet

sem_ch3.adb, [...]: Minor reformatting.

2011-11-21  Robert Dewar  <dewar@adacore.com>

	* sem_ch3.adb, s-taprop-vms.adb, opt.ads: Minor reformatting.

From-SVN: r181569
parent be482a8c
2011-11-21 Robert Dewar <dewar@adacore.com> 2011-11-21 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb, s-taprop-vms.adb, opt.ads: Minor reformatting.
2011-11-21 Robert Dewar <dewar@adacore.com>
* sinput.ads: Minor comment fix. * sinput.ads: Minor comment fix.
2011-11-21 Robert Dewar <dewar@adacore.com> 2011-11-21 Robert Dewar <dewar@adacore.com>
......
...@@ -1830,6 +1830,9 @@ package Opt is ...@@ -1830,6 +1830,9 @@ package Opt is
-- this flag, see package Expander. Indeed this flag might more logically -- this flag, see package Expander. Indeed this flag might more logically
-- be in the spec of Expander, but it is referenced by Errout, and it -- be in the spec of Expander, but it is referenced by Errout, and it
-- really seems wrong for Errout to depend on Expander. -- really seems wrong for Errout to depend on Expander.
--
-- Note: for many purposes, it is more appropriate to test the flag
-- Full_Expander_Active, which also checks that Alfa mode is not active.
Static_Dispatch_Tables : Boolean := True; Static_Dispatch_Tables : Boolean := True;
-- This flag indicates if the backend supports generation of statically -- This flag indicates if the backend supports generation of statically
......
...@@ -809,6 +809,12 @@ package body System.Task_Primitives.Operations is ...@@ -809,6 +809,12 @@ package body System.Task_Primitives.Operations is
(Attributes'Access, PTHREAD_EXPLICIT_SCHED); (Attributes'Access, PTHREAD_EXPLICIT_SCHED);
pragma Assert (Result = 0); pragma Assert (Result = 0);
-- Note: the use of Unrestricted_Access in the following call is needed
-- because otherwise we have an error of getting a access-to-volatile
-- value which points to a non-volatile object. But in this case it is
-- safe to do this, since we know we have no problems with aliasing and
-- Unrestricted_Access bypasses this check.
Result := Result :=
pthread_create pthread_create
(T.Common.LL.Thread'Unrestricted_Access, (T.Common.LL.Thread'Unrestricted_Access,
......
...@@ -734,16 +734,16 @@ package body Sem_Ch3 is ...@@ -734,16 +734,16 @@ package body Sem_Ch3 is
Anon_Scope := Current_Scope; Anon_Scope := Current_Scope;
-- A pathological case: function returning access functions that -- A pathological case: function returning access functions that
-- return access functions, etc. Each anonymous access type created -- return access functions, etc. Each anonymous access type created
-- is in the enclosing scope of the outermost function. -- is in the enclosing scope of the outermost function.
declare declare
Par : Node_Id; Par : Node_Id;
begin begin
Par := Related_Nod; Par := Related_Nod;
while Nkind_In (Par, while Nkind_In (Par, N_Access_Function_Definition,
N_Access_Function_Definition, N_Access_Definition)
N_Access_Definition)
loop loop
Par := Parent (Par); Par := Parent (Par);
end loop; end loop;
......
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