[Ada] Atomic aspect on formal generic params now supported in Ada 202x mode
authorArnaud Charlet <charlet@adacore.com>
Wed, 18 Dec 2019 07:16:12 +0000 (07:16 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 18 Dec 2019 07:16:12 +0000 (07:16 +0000)
2019-12-18  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* libgnat/s-atopar.ads, libgnat/s-atopex.ads (Atomic_Type): Can
now be marked Atomic. This requires marking the unit Ada 202x.

From-SVN: r279516

gcc/ada/ChangeLog
gcc/ada/libgnat/s-atopar.ads
gcc/ada/libgnat/s-atopex.ads

index 94d115e..7573752 100644 (file)
@@ -1,5 +1,10 @@
 2019-12-18  Arnaud Charlet  <charlet@adacore.com>
 
+       * libgnat/s-atopar.ads, libgnat/s-atopex.ads (Atomic_Type): Can
+       now be marked Atomic. This requires marking the unit Ada 202x.
+
+2019-12-18  Arnaud Charlet  <charlet@adacore.com>
+
        * libgnat/a-nbnbin.ads, libgnat/a-nbnbin.adb,
        libgnat/a-nbnbre.ads, libgnat/a-nbnbre.adb: Replace
        Optional_Big_* types by a simple check and exception raise in
index a555dbc..73c2447 100644 (file)
 --                                                                          --
 ------------------------------------------------------------------------------
 
+pragma Ada_2020;
+
 generic
-   type Atomic_Type is range <>; -- ??? with Atomic;
+   type Atomic_Type is range <> with Atomic;
 package System.Atomic_Operations.Arithmetic
   with Pure
 --  Nonblocking
index 40f87a2..51db0b9 100644 (file)
 --                                                                          --
 ------------------------------------------------------------------------------
 
+pragma Ada_2020;
+
 generic
-   type Atomic_Type is private;  --  with Atomic;
+   type Atomic_Type is private with Atomic;
 package System.Atomic_Operations.Exchange
   with Pure
 --  Blocking