head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.10 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.8 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.6 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.4 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.2 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.1.0.8 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.6 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.4 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.2 pkgsrc-2024Q1-base:1.1; locks; strict; comment @-- @; 1.2 date 2025.02.08.14.05.03; author wiz; state Exp; branches; next 1.1; commitid w9JGAUWGP7uGIFIF; 1.1 date 2024.03.08.12.02.33; author wiz; state Exp; branches; next ; commitid wOtDZmcvYEQnSl1F; desc @@ 1.2 log @gcc13-gnat: merge updates from wip From Dmytro Kazankov. @ text @$NetBSD: patch-gcc_ada_libgnarl_s-taprop____posix.adb,v 1.1 2024/03/08 12:02:33 wiz Exp $ When using SCHED_OTHER, the minimum and maximum in NetBSD is -1. In most other OSs it is 0. Change the behaviour to try to set the params using the default priority, if that fails, use 0, otherwise use -1. If none are valid, the tasking system will fail if assertions are on. --- gcc/ada/libgnarl/s-taprop__posix.adb.orig 2024-05-21 10:47:37.000000000 +0300 +++ gcc/ada/libgnarl/s-taprop__posix.adb @@@@ -635,6 +635,16 @@@@ else Result := pthread_setschedparam (T.Common.LL.Thread, SCHED_OTHER, Param'Access); + if Result /= 0 then + Param.sched_priority := 0; + Result := pthread_setschedparam + (T.Common.LL.Thread, SCHED_OTHER, Param'Access); + if Result /= 0 then + Param.sched_priority := -1; + Result := pthread_setschedparam + (T.Common.LL.Thread, SCHED_OTHER, Param'Access); + end if; + end if; end if; pragma Assert (Result = 0); @ 1.1 log @lang/gcc13-gnat: import gcc13-gnat-13.2.0 Packaged by Dmytro Kazankov for wip. The GNU Compiler Collection (GCC) This package contains GNAT compiler and Ada tools @ text @d1 1 a1 1 $NetBSD: patch-gcc_ada_libgnarl_s-taprop____posix.adb,v 1.1 2022/03/13 08:34:04 nia Exp $ d9 3 a11 3 --- gcc/ada/libgnarl/s-taprop__posix.adb.orig 2021-09-23 19:55:24.471842046 +0000 +++ gcc/ada/libgnarl/s-taprop__posix.adb 2021-09-23 20:01:31.689253592 +0000 @@@@ -654,6 +654,16 @@@@ @