diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index d1aad1ded0a52e8065da57a613158f5c3f49e189..5a9e425693ea224cc49d3781282d84341f73436a 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads index def16bb30f7803154d51316c78d9928e2155f21a..4c1f5609318c4fc697fdf4e8bd2b7ec94ddd2b95 100644 --- a/gcc/ada/opt.ads +++ b/gcc/ada/opt.ads @@ -1830,6 +1830,9 @@ package Opt is -- 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 -- 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; -- This flag indicates if the backend supports generation of statically diff --git a/gcc/ada/s-taprop-vms.adb b/gcc/ada/s-taprop-vms.adb index e3134a5772dbd150ca5c2c6fff9238577cfa65fc..67cf363dd4e091944c498b838cd96319421040c6 100644 --- a/gcc/ada/s-taprop-vms.adb +++ b/gcc/ada/s-taprop-vms.adb @@ -809,6 +809,12 @@ package body System.Task_Primitives.Operations is (Attributes'Access, PTHREAD_EXPLICIT_SCHED); 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 := pthread_create (T.Common.LL.Thread'Unrestricted_Access, diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 87edd0e3218253107e80324710e3bd1a72049a45..f6fc65b496981ca46c56cde04685a158fcffafbc 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -734,16 +734,16 @@ package body Sem_Ch3 is Anon_Scope := Current_Scope; -- 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. declare Par : Node_Id; + begin Par := Related_Nod; - while Nkind_In (Par, - N_Access_Function_Definition, - N_Access_Definition) + while Nkind_In (Par, N_Access_Function_Definition, + N_Access_Definition) loop Par := Parent (Par); end loop;