Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (b18e48cd1fddf0cdfb75f8c26f09a852bfd2ca4b)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (b18e48cd1fddf0cdfb75f8c26f09a852bfd2ca4b)
  • Date: Mon, 28 Apr 2025 04:23:57 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

gnu/gcc/DETAILS | 3
gnu/gcc/HISTORY | 5
gnu/gcc/patches/0006-ada-libgnarl-compatibility-for-musl.patch | 138 ------
gnu/gcc/patches/0007-ada-musl-support-fixes.patch | 226
----------
4 files changed, 6 insertions(+), 366 deletions(-)

New commits:
commit b18e48cd1fddf0cdfb75f8c26f09a852bfd2ca4b
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

gnu/gcc: version 15.1.0

diff --git a/gnu/gcc/DETAILS b/gnu/gcc/DETAILS
index 60abcb4..e6628ff 100755
--- a/gnu/gcc/DETAILS
+++ b/gnu/gcc/DETAILS
@@ -1,7 +1,6 @@
# Watch: https://ftp.gnu.org/gnu/gcc href="gcc-([0-9.]+)/"
SPELL=gcc
- VERSION=14.2.0
- PATCHLEVEL=2
+ VERSION=15.1.0
ISL_VERSION=0.24
BASE_SOURCE_URL="https://ftp.gnu.org/pub/gnu/gcc/gcc-$VERSION";
SOURCE=gcc-$VERSION.tar.xz
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index a964788..a62cd40 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,3 +1,8 @@
+2025-04-27 Pavel Vinogradov <public AT sourcemage.org>
+ * DETAILS: version 15.1.0
+ * patches/0006-ada-libgnarl-compatibility-for-musl.patch,
+ patches/0007-ada-musl-support-fixes.patch: removed
+
2025-02-20 Thomas Orgis <sobukus AT sourcemage.org>
* patches/0014-lto-plugin-no-la.patch: re-enable linker plugin
support for .la-less
world
diff --git a/gnu/gcc/patches/0006-ada-libgnarl-compatibility-for-musl.patch
b/gnu/gcc/patches/0006-ada-libgnarl-compatibility-for-musl.patch
deleted file mode 100644
index a9970f7..0000000
--- a/gnu/gcc/patches/0006-ada-libgnarl-compatibility-for-musl.patch
+++ /dev/null
@@ -1,138 +0,0 @@
-From 447ffc221168d346be9fde743d230a0e6f89fd6c Mon Sep 17 00:00:00 2001
-From: Ariadne Conill <ariadne AT dereferenced.org>
-Date: Fri, 21 Aug 2020 07:06:30 +0000
-Subject: [PATCH 06/13] ada: libgnarl compatibility for musl
-
-Origin: Alpine Linux
-Upstream-Status: Unknown
-Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
----
- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------
- gcc/ada/libgnarl/s-taprop__linux.adb | 53 ++--------------------------
- 2 files changed, 3 insertions(+), 61 deletions(-)
-
-diff --git a/gcc/ada/libgnarl/s-osinte__linux.ads
b/gcc/ada/libgnarl/s-osinte__linux.ads
-index a5e645d334d5..321653470714 100644
---- a/gcc/ada/libgnarl/s-osinte__linux.ads
-+++ b/gcc/ada/libgnarl/s-osinte__linux.ads
-@@ -403,12 +403,6 @@ package System.OS_Interface is
- PTHREAD_RWLOCK_PREFER_WRITER_NP : constant := 1;
- PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : constant := 2;
-
-- function pthread_rwlockattr_setkind_np
-- (attr : access pthread_rwlockattr_t;
-- pref : int) return int;
-- pragma Import
-- (C, pthread_rwlockattr_setkind_np, "pthread_rwlockattr_setkind_np");
--
- function pthread_rwlock_init
- (mutex : access pthread_rwlock_t;
- attr : access pthread_rwlockattr_t) return int;
-@@ -470,11 +464,6 @@ package System.OS_Interface is
- protocol : int) return int;
- pragma Import (C, pthread_mutexattr_setprotocol);
-
-- function pthread_mutexattr_setprioceiling
-- (attr : access pthread_mutexattr_t;
-- prioceiling : int) return int;
-- pragma Import (C, pthread_mutexattr_setprioceiling);
--
- type struct_sched_param is record
- sched_priority : int; -- scheduling priority
- end record;
-diff --git a/gcc/ada/libgnarl/s-taprop__linux.adb
b/gcc/ada/libgnarl/s-taprop__linux.adb
-index 821ceef30e4e..ae95b58e01ee 100644
---- a/gcc/ada/libgnarl/s-taprop__linux.adb
-+++ b/gcc/ada/libgnarl/s-taprop__linux.adb
-@@ -198,9 +198,6 @@ package body System.Task_Primitives.Operations is
- pragma Import
- (C, GNAT_pthread_condattr_setup, "__gnat_pthread_condattr_setup");
-
-- function GNAT_has_cap_sys_nice return C.int;
-- pragma Import
-- (C, GNAT_has_cap_sys_nice, "__gnat_has_cap_sys_nice");
- -- We do not have pragma Linker_Options ("-lcap"); here, because this
- -- library is not present on many Linux systems. 'libcap' is the Linux
- -- "capabilities" library, called by __gnat_has_cap_sys_nice.
-@@ -210,38 +207,6 @@ package body System.Task_Primitives.Operations is
- -- Convert Ada priority to Linux priority. Priorities are 1 .. 99 on
- -- GNU/Linux, so we map 0 .. 98 to 1 .. 99.
-
-- function Get_Ceiling_Support return Boolean;
-- -- Get the value of the Ceiling_Support constant (see below).
-- -- Note well: If this function or related code is modified, it should be
-- -- tested by hand, because automated testing doesn't exercise it.
--
-- -------------------------
-- -- Get_Ceiling_Support --
-- -------------------------
--
-- function Get_Ceiling_Support return Boolean is
-- Ceiling_Support : Boolean := False;
-- begin
-- if Locking_Policy /= 'C' then
-- return False;
-- end if;
--
-- declare
-- function geteuid return Integer;
-- pragma Import (C, geteuid, "geteuid");
-- Superuser : constant Boolean := geteuid = 0;
-- Has_Cap : constant C.int := GNAT_has_cap_sys_nice;
-- pragma Assert (Has_Cap in 0 | 1);
-- begin
-- Ceiling_Support := Superuser or else Has_Cap = 1;
-- end;
--
-- return Ceiling_Support;
-- end Get_Ceiling_Support;
--
-- pragma Warnings (Off, "non-preelaborable call not allowed*");
-- Ceiling_Support : constant Boolean := Get_Ceiling_Support;
-- pragma Warnings (On, "non-preelaborable call not allowed*");
- -- True if the locking policy is Ceiling_Locking, and the current
process
- -- has permission to use this policy. The process has permission if it
is
- -- running as 'root', or if the capability was set by the setcap
command,
-@@ -344,7 +309,9 @@ package body System.Task_Primitives.Operations is
- -- Init_Mutex --
- ----------------
-
-+ pragma Warnings (Off, "formal parameter * is not referenced");
- function Init_Mutex (L : RTS_Lock_Ptr; Prio : Any_Priority) return C.int
is
-+ pragma Warnings (On, "formal parameter * is not referenced");
- Mutex_Attr : aliased pthread_mutexattr_t;
- Result, Result_2 : C.int;
-
-@@ -356,16 +323,7 @@ package body System.Task_Primitives.Operations is
- return Result;
- end if;
-
-- if Ceiling_Support then
-- Result := pthread_mutexattr_setprotocol
-- (Mutex_Attr'Access, PTHREAD_PRIO_PROTECT);
-- pragma Assert (Result = 0);
--
-- Result := pthread_mutexattr_setprioceiling
-- (Mutex_Attr'Access, Prio_To_Linux_Prio (Prio));
-- pragma Assert (Result = 0);
--
-- elsif Locking_Policy = 'I' then
-+ if Locking_Policy = 'I' then
- Result := pthread_mutexattr_setprotocol
- (Mutex_Attr'Access, PTHREAD_PRIO_INHERIT);
- pragma Assert (Result = 0);
-@@ -405,11 +363,6 @@ package body System.Task_Primitives.Operations is
- Result := pthread_rwlockattr_init (RWlock_Attr'Access);
- pragma Assert (Result = 0);
-
-- Result := pthread_rwlockattr_setkind_np
-- (RWlock_Attr'Access,
-- PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP);
-- pragma Assert (Result = 0);
--
- Result := pthread_rwlock_init (L.RW'Access, RWlock_Attr'Access);
-
- pragma Assert (Result in 0 | ENOMEM);
---
-2.40.1
-
diff --git a/gnu/gcc/patches/0007-ada-musl-support-fixes.patch
b/gnu/gcc/patches/0007-ada-musl-support-fixes.patch
deleted file mode 100644
index d8a1b3a..0000000
--- a/gnu/gcc/patches/0007-ada-musl-support-fixes.patch
+++ /dev/null
@@ -1,226 +0,0 @@
-From c551e81f2957f8a81d4bce32032bb0219c0e8e63 Mon Sep 17 00:00:00 2001
-From: Ariadne Conill <ariadne AT dereferenced.org>
-Date: Fri, 21 Aug 2020 07:07:48 +0000
-Subject: [PATCH 07/13] ada: musl support fixes
-
-Origin: Alpine Linux
-Upstream-Status: Unknown
-Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
----
- gcc/ada/Makefile.rtl | 10 +++++-----
- gcc/ada/adaint.c | 34 +++++++++++++++++++---------------
- gcc/ada/adaint.h | 10 ++++------
- gcc/ada/terminals.c | 8 ++++----
- 4 files changed, 32 insertions(+), 30 deletions(-)
-
-diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl
-index 96306f8cc9ae..090b6770ae51 100644
---- a/gcc/ada/Makefile.rtl
-+++ b/gcc/ada/Makefile.rtl
-@@ -1549,7 +1549,7 @@ ifeq ($(strip $(filter-out %86 linux%,$(target_cpu)
$(target_os))),)
- s-intman.adb<libgnarl/s-intman__posix.adb \
- s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
- $(TRASYM_DWARF_UNIX_PAIRS) \
-- s-tsmona.adb<libgnat/s-tsmona__linux.adb \
-+ s-tsmona.adb<libgnat/s-tsmona.adb \
- a-exetim.adb<libgnarl/a-exetim__posix.adb \
- a-exetim.ads<libgnarl/a-exetim__default.ads \
- s-linux.ads<libgnarl/s-linux.ads \
-@@ -2174,7 +2174,7 @@ ifeq ($(strip $(filter-out powerpc%
linux%,$(target_cpu) $(target_os))),)
- s-tasinf.adb<libgnarl/s-tasinf__linux.adb \
- s-taspri.ads<libgnarl/s-taspri__posix.ads \
- $(TRASYM_DWARF_UNIX_PAIRS) \
-- s-tsmona.adb<libgnat/s-tsmona__linux.adb \
-+ s-tsmona.adb<libgnat/s-tsmona.adb \
- $(ATOMICS_TARGET_PAIRS) \
- $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- system.ads<libgnat/system-linux-ppc.ads
-@@ -2205,7 +2205,7 @@ ifeq ($(strip $(filter-out powerpc%
linux%,$(target_cpu) $(target_os))),)
- endif
-
- # ARM linux, GNU eabi
--ifeq ($(strip $(filter-out arm% linux-gnueabi%,$(target_cpu)
$(target_os))),)
-+ifeq ($(strip $(filter-out arm% linux-gnueabi% linux-musleabi%
linux-muslgnueabi%,$(target_cpu) $(target_os))),)
- LIBGNAT_TARGET_PAIRS = \
- a-intnam.ads<libgnarl/a-intnam__linux.ads \
- s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
-@@ -2420,7 +2420,7 @@ ifeq ($(strip $(filter-out %ia64 linux%,$(target_cpu)
$(target_os))),)
- s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
- s-taspri.ads<libgnarl/s-taspri__posix-noaltstack.ads \
- $(TRASYM_DWARF_UNIX_PAIRS) \
-- s-tsmona.adb<libgnat/s-tsmona__linux.adb \
-+ s-tsmona.adb<libgnat/s-tsmona.adb \
- $(ATOMICS_TARGET_PAIRS) \
- $(ATOMICS_BUILTINS_TARGET_PAIRS) \
- $(GNATRTL_128BIT_PAIRS) \
-@@ -2524,7 +2524,7 @@ ifeq ($(strip $(filter-out %x86_64
linux%,$(target_cpu) $(target_os))),)
- s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
- s-taspri.ads<libgnarl/s-taspri__posix.ads \
- $(TRASYM_DWARF_UNIX_PAIRS) \
-- s-tsmona.adb<libgnat/s-tsmona__linux.adb \
-+ s-tsmona.adb<libgnat/s-tsmona.adb \
- $(ATOMICS_TARGET_PAIRS) \
- $(X86_64_TARGET_PAIRS) \
- $(SIMD_PATH_TARGET_PAIRS) \
-diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
-index 8522094164e0..dcb9e95251a3 100644
---- a/gcc/ada/adaint.c
-+++ b/gcc/ada/adaint.c
-@@ -92,6 +92,11 @@
- #include <sys/pstat.h>
- #endif
-
-+#if defined (linux) || defined(__linux__)
-+#define _GNU_SOURCE 1
-+#include <sched.h>
-+#endif
-+
- #ifdef __PikeOS__
- #define __BSD_VISIBLE 1
- #endif
-@@ -3438,7 +3443,6 @@ __gnat_lwp_self (void)
- #endif
-
- #if defined (__linux__)
--#include <sched.h>
-
- /* glibc versions earlier than 2.7 do not define the routines to handle
- dynamically allocated CPU sets. For these targets, we use the static
-@@ -3448,7 +3452,7 @@ __gnat_lwp_self (void)
-
- /* Dynamic cpu sets */
-
--cpu_set_t *
-+void *
- __gnat_cpu_alloc (size_t count)
- {
- return CPU_ALLOC (count);
-@@ -3461,33 +3465,33 @@ __gnat_cpu_alloc_size (size_t count)
- }
-
- void
--__gnat_cpu_free (cpu_set_t *set)
-+__gnat_cpu_free (void *set)
- {
-- CPU_FREE (set);
-+ CPU_FREE ((cpu_set_t *) set);
- }
-
- void
--__gnat_cpu_zero (size_t count, cpu_set_t *set)
-+__gnat_cpu_zero (size_t count, void *set)
- {
-- CPU_ZERO_S (count, set);
-+ CPU_ZERO_S (count, (cpu_set_t *) set);
- }
-
- void
--__gnat_cpu_set (int cpu, size_t count, cpu_set_t *set)
-+__gnat_cpu_set (int cpu, size_t count, void *set)
- {
- /* Ada handles CPU numbers starting from 1, while C identifies the first
- CPU by a 0, so we need to adjust. */
-- CPU_SET_S (cpu - 1, count, set);
-+ CPU_SET_S (cpu - 1, count, (cpu_set_t *) set);
- }
-
- #else /* !CPU_ALLOC */
-
- /* Static cpu sets */
-
--cpu_set_t *
-+void *
- __gnat_cpu_alloc (size_t count ATTRIBUTE_UNUSED)
- {
-- return (cpu_set_t *) xmalloc (sizeof (cpu_set_t));
-+ return xmalloc (sizeof (cpu_set_t));
- }
-
- size_t
-@@ -3497,23 +3501,23 @@ __gnat_cpu_alloc_size (size_t count ATTRIBUTE_UNUSED)
- }
-
- void
--__gnat_cpu_free (cpu_set_t *set)
-+__gnat_cpu_free (void *set)
- {
- free (set);
- }
-
- void
--__gnat_cpu_zero (size_t count ATTRIBUTE_UNUSED, cpu_set_t *set)
-+__gnat_cpu_zero (size_t count ATTRIBUTE_UNUSED, void *set)
- {
-- CPU_ZERO (set);
-+ CPU_ZERO ((cpu_set_t *) set);
- }
-
- void
--__gnat_cpu_set (int cpu, size_t count ATTRIBUTE_UNUSED, cpu_set_t *set)
-+__gnat_cpu_set (int cpu, size_t count ATTRIBUTE_UNUSED, void *set)
- {
- /* Ada handles CPU numbers starting from 1, while C identifies the first
- CPU by a 0, so we need to adjust. */
-- CPU_SET (cpu - 1, set);
-+ CPU_SET (cpu - 1, (cpu_set_t *) set);
- }
- #endif /* !CPU_ALLOC */
- #endif /* __linux__ */
-diff --git a/gcc/ada/adaint.h b/gcc/ada/adaint.h
-index 987432c93072..4d782f07de92 100644
---- a/gcc/ada/adaint.h
-+++ b/gcc/ada/adaint.h
-@@ -319,13 +319,11 @@ extern void *__gnat_lwp_self
(void);
-
- /* Routines for interface to required CPU set primitives */
-
--#include <sched.h>
--
--extern cpu_set_t *__gnat_cpu_alloc (size_t);
-+extern void * __gnat_cpu_alloc (size_t);
- extern size_t __gnat_cpu_alloc_size (size_t);
--extern void __gnat_cpu_free (cpu_set_t *);
--extern void __gnat_cpu_zero (size_t, cpu_set_t *);
--extern void __gnat_cpu_set (int, size_t, cpu_set_t
*);
-+extern void __gnat_cpu_free (void *);
-+extern void __gnat_cpu_zero (size_t, void *);
-+extern void __gnat_cpu_set (int, size_t, void *);
- #endif
-
- #if defined (_WIN32)
-diff --git a/gcc/ada/terminals.c b/gcc/ada/terminals.c
-index c0ee4a16bb1a..ed796a48c1b7 100644
---- a/gcc/ada/terminals.c
-+++ b/gcc/ada/terminals.c
-@@ -1127,7 +1127,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED,
- /* POSIX does not specify how to open the master side of a terminal.Several
- methods are available (system specific):
- 1- using a cloning device (USE_CLONE_DEVICE)
-- 2- getpt (USE_GETPT)
-+ 2- posix_openpt (USE_POSIX_OPENPT)
- 3- openpty (USE_OPENPTY)
-
- When using the cloning device method, the macro USE_CLONE_DEVICE should
-@@ -1141,7 +1141,7 @@ __gnat_setup_winsize (void *desc ATTRIBUTE_UNUSED,
- #if defined (__APPLE__) || defined (BSD)
- #define USE_OPENPTY
- #elif defined (__linux__)
--#define USE_GETPT
-+#define USE_POSIX_OPENPT
- #elif defined (__sun__)
- #define USE_CLONE_DEVICE "/dev/ptmx"
- #elif defined (_AIX)
-@@ -1190,8 +1190,8 @@ allocate_pty_desc (pty_desc **desc) {
- int master_fd = -1;
- char *slave_name = NULL;
-
--#ifdef USE_GETPT
-- master_fd = getpt ();
-+#if defined(USE_POSIX_OPENPT)
-+ master_fd = posix_openpt(O_RDWR | O_NOCTTY);
- #elif defined (USE_OPENPTY)
- status = openpty (&master_fd, &slave_fd, NULL, NULL, NULL);
- #elif defined (USE_CLONE_DEVICE)
---
-2.40.1
-


  • [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (b18e48cd1fddf0cdfb75f8c26f09a852bfd2ca4b), Pavel Vinogradov, 04/28/2025

Archive powered by MHonArc 2.6.24.

Top of Page