]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix Ada runtime library breakage on Solaris (bis)
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 21 May 2024 09:11:02 +0000 (11:11 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 21 May 2024 09:12:34 +0000 (11:12 +0200)
Recent changes made to the runtime library broke again its build on Solaris
because it uses Solaris threads instead of POSIX threads on this platform.

gcc/ada/
PR ada/115168
* libgnarl/s-taprop__solaris.adb (Initialize): Fix pasto.
* libgnat/s-oslock__solaris.ads (Owner_Int): Delete.
(Owner_ID): Change the designated type to Integer.

gcc/ada/libgnarl/s-taprop__solaris.adb
gcc/ada/libgnat/s-oslock__solaris.ads

index 09f90e6e204ede7d4b9767b1d24ac81493253c58..6d05e8db00413c02a920f00f5885d350a205bc7b 100644 (file)
@@ -424,7 +424,7 @@ package body System.Task_Primitives.Operations is
 
    begin
       Environment_Task_Id := Environment_Task;
-      Self_ID.Common.LL.Thread := thr_self;
+      Environment_Task.Common.LL.Thread := thr_self;
 
       Interrupt_Management.Initialize;
 
index cc5a83df02e2e202c10872ae9494aa56e9af3ab1..56a242c807013a33014268bf309e300cf69d1363 100644 (file)
@@ -42,10 +42,7 @@ package System.OS_Locks is
    type Private_Task_Serial_Number is mod 2 ** Long_Long_Integer'Size;
    --  Used to give each task a unique serial number
 
-   type Owner_Int is new Integer;
-   for Owner_Int'Alignment use Standard'Maximum_Alignment;
-
-   type Owner_ID is access all Owner_Int;
+   type Owner_ID is access all Integer;
 
    function To_Owner_ID is
      new Ada.Unchecked_Conversion (System.Address, Owner_ID);