[Ada] Fix Global contract for the predefined Yield procedure
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 12 Dec 2019 10:03:06 +0000 (10:03 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 12 Dec 2019 10:03:06 +0000 (10:03 +0000)
2019-12-12  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* libgnarl/a-dispat.ads (Yield): Update Global contract.

From-SVN: r279295

gcc/ada/ChangeLog
gcc/ada/libgnarl/a-dispat.ads

index 09200b513e0b6654d341c8f5a1305ef8ccbb9a3a..52cb1791ad908a8312d6ac548f6682582aac3326 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-12  Piotr Trojanek  <trojanek@adacore.com>
+
+       * libgnarl/a-dispat.ads (Yield): Update Global contract.
+
 2019-12-12  Piotr Trojanek  <trojanek@adacore.com>
 
        * libgnat/g-altive.ads: Fix typo in comment.
index b4e4d036b117f9de0ca0b344fe31c55e478f5ca9..8e4dfe6dd2d24dd50adc5d53e5966b613cb11b1e 100644 (file)
 --                                                                          --
 ------------------------------------------------------------------------------
 
+with Ada.Task_Identification;
+
 package Ada.Dispatching is
    pragma Preelaborate (Dispatching);
 
    procedure Yield with
-     Global => null;
+     Global => (In_Out => Ada.Task_Identification.Tasking_State);
 
    Dispatching_Policy_Error : exception;
 end Ada.Dispatching;