]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] VxWorks inconsistent use of return type (Int_Unlock)
authorDoug Rupp <rupp@adacore.com>
Mon, 12 Jul 2021 18:47:53 +0000 (11:47 -0700)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 22 Sep 2021 15:01:43 +0000 (15:01 +0000)
gcc/ada/

* libgnarl/s-osinte__vxworks.ads: Make procedure vice function.
* libgnarl/s-vxwext.ads: Likewise.
* libgnarl/s-vxwext__kernel-smp.adb: Likewise.
* libgnarl/s-vxwext__kernel.adb: Likewise.
* libgnarl/s-vxwext__kernel.ads: Likewise.
* libgnarl/s-vxwext__rtp-smp.adb: Likewise.
* libgnarl/s-vxwext__rtp.adb: Likewise.
* libgnarl/s-vxwext__rtp.ads: Likewise.
* libgnarl/s-taprop__vxworks.adb (Stop_All_Tasks): Call
Int_Unlock as a procedure.

gcc/ada/libgnarl/s-osinte__vxworks.ads
gcc/ada/libgnarl/s-taprop__vxworks.adb
gcc/ada/libgnarl/s-vxwext.ads
gcc/ada/libgnarl/s-vxwext__kernel-smp.adb
gcc/ada/libgnarl/s-vxwext__kernel.adb
gcc/ada/libgnarl/s-vxwext__kernel.ads
gcc/ada/libgnarl/s-vxwext__rtp-smp.adb
gcc/ada/libgnarl/s-vxwext__rtp.adb
gcc/ada/libgnarl/s-vxwext__rtp.ads

index 384cdec1fae1e624c72075c306645927538f4e02..b2882372309c4dfeece7f9779f5e11722703dc03 100644 (file)
@@ -232,8 +232,7 @@ package System.OS_Interface is
    --  If we are in the kernel space, lock interrupts. It typically maps to
    --  intLock.
 
-   function Int_Unlock (Old : int) return int
-     renames System.VxWorks.Ext.Int_Unlock;
+   procedure Int_Unlock (Old : int) renames System.VxWorks.Ext.Int_Unlock;
    --  If we are in the kernel space, unlock interrupts. It typically maps to
    --  intUnlock. The parameter Old is only used on PowerPC where it contains
    --  the returned value from Int_Lock (the old MPSR).
index a87d1a06cefa7ce7edfede41353c702571c7cb8d..2b9883305a2289342369e820cc766ec488347ad7 100644 (file)
@@ -1268,7 +1268,7 @@ package body System.Task_Primitives.Operations is
          C := C.Common.All_Tasks_Link;
       end loop;
 
-      Dummy := Int_Unlock (Old);
+      Int_Unlock (Old);
    end Stop_All_Tasks;
 
    ---------------
index 1c9847f10f69681d0006f88079f00656939a4062..8497d2ccc80e60b20adf94337304139dc2ac85cf 100644 (file)
@@ -57,7 +57,7 @@ package System.VxWorks.Ext is
    function Int_Lock return int;
    pragma Import (C, Int_Lock, "intLock");
 
-   function Int_Unlock (Old : int) return int;
+   procedure Int_Unlock (Old : int);
    pragma Import (C, Int_Unlock, "intUnlock");
 
    function Interrupt_Connect
index ea1f71c628da73a584150a97b7c146960491daad..8c91c4500dbdaa41970fb0d0255c1ca7dea11914 100644 (file)
@@ -48,10 +48,10 @@ package body System.VxWorks.Ext is
    -- Int_Unlock --
    ----------------
 
-   function Int_Unlock (Old : int) return int is
+   procedure Int_Unlock (Old : int) is
       pragma Unreferenced (Old);
    begin
-      return ERROR;
+      null;
    end Int_Unlock;
 
    ---------------
index 4743540b06425de286e7a82242c0b98b0f0b88b7..7d3cc8dcdb50791444e85d6ef248879c3ce3b6f8 100644 (file)
@@ -49,10 +49,10 @@ package body System.VxWorks.Ext is
    -- Int_Unlock --
    ----------------
 
-   function intUnlock (Old : int) return int;
+   procedure intUnlock (Old : int);
    pragma Import (C, intUnlock, "intUnlock");
 
-   function Int_Unlock (Old : int) return int renames intUnlock;
+   procedure Int_Unlock (Old : int) renames intUnlock;
 
    ---------------
    -- semDelete --
index 6cecf182180e48979c659b08e803f89d49c046d2..57ce053195b4eae6dce26f694d99bf9a9d5a5a95 100644 (file)
@@ -56,7 +56,7 @@ package System.VxWorks.Ext is
    function Int_Lock return int;
    pragma Convention (C, Int_Lock);
 
-   function Int_Unlock (Old : int) return int;
+   procedure Int_Unlock (Old : int);
    pragma Convention (C, Int_Unlock);
 
    function Interrupt_Connect
index 241a8f5061dfdfa3e1abf556f497d176894ca977..8061c379576f2c38d219080639ceb59032017467 100644 (file)
@@ -48,10 +48,10 @@ package body System.VxWorks.Ext is
    -- Int_Unlock --
    ----------------
 
-   function Int_Unlock (Old : int) return int is
+   procedure Int_Unlock (Old : int) is
       pragma Unreferenced (Old);
    begin
-      return ERROR;
+      null;
    end Int_Unlock;
 
    -----------------------
index f188ff841de436a04c86accdc846fc0e2a228e4e..65511b0493d3279750a6c701b5520247763b8918 100644 (file)
@@ -48,10 +48,10 @@ package body System.VxWorks.Ext is
    -- Int_Unlock --
    ----------------
 
-   function Int_Unlock (Old : int) return int is
+   procedure Int_Unlock (Old : int) is
       pragma Unreferenced (Old);
    begin
-      return ERROR;
+      null;
    end Int_Unlock;
 
    -----------------------
index d955c9c30a51bde3593391ad9cb0a5aecf99d488..70dfcbca5948a8188bdea7135af16b47daf7cd4f 100644 (file)
@@ -56,7 +56,7 @@ package System.VxWorks.Ext is
    function Int_Lock return int;
    pragma Inline (Int_Lock);
 
-   function Int_Unlock (Old : int) return int;
+   procedure Int_Unlock (Old : int);
    pragma Inline (Int_Unlock);
 
    function Interrupt_Connect