diff options
author | Janneke Nieuwenhuizen <[email protected]> | 2024-11-22 15:27:36 +0100 |
---|---|---|
committer | Janneke Nieuwenhuizen <[email protected]> | 2024-12-03 08:33:13 +0100 |
commit | 5ffbd2015cd9060046f6a5f64cc2f70eaf17f7d1 (patch) | |
tree | a0ec2502db31a1292170ceecc41a91acf8eb8f96 /gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch | |
parent | 4d077bba89a7b63f2a16d7bb546843739d86b715 (diff) |
gnu: glibc/hurd: Add patch for the 64bit Hurd, fixing "raise".
This fixes findutil's gnulib-tests's test-sigaction's raise call, by working
around an alleged gcc-14.2 optimization bug. See
<https://lists.gnu.org/archive/html/bug-hurd/2024-11/msg00143.html>.
* gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/base.scm (glibc/hurd): Use it.
Change-Id: I11e683f521f34dedeb7f739a2545f5d1d866922a
Diffstat (limited to 'gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch')
-rw-r--r-- | gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch b/gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch new file mode 100644 index 0000000000..5823a230fd --- /dev/null +++ b/gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch @@ -0,0 +1,28 @@ +From 0b23ab98d25d880ee602af91e62aa39564510cac Mon Sep 17 00:00:00 2001 +From: Janneke Nieuwenhuizen <[email protected]> +Date: Fri, 22 Nov 2024 16:26:08 +0100 +Subject: [PATCH] x86_64-hurd: sigreturn: Hack around gcc-14.2 optimization + bug. + +See: <https://lists.gnu.org/archive/html/bug-hurd/2024-11/msg00143.html>. + +* sysdeps/mach/hurd/x86_64/sigreturn.c (__sigreturn2): Add nop. +--- + sysdeps/mach/hurd/x86_64/sigreturn.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sysdeps/mach/hurd/x86_64/sigreturn.c b/sysdeps/mach/hurd/x86_64/sigreturn.c +index 7a0193497d..256cc1268a 100644 +--- a/sysdeps/mach/hurd/x86_64/sigreturn.c ++++ b/sysdeps/mach/hurd/x86_64/sigreturn.c +@@ -45,6 +45,7 @@ __sigreturn2 (struct hurd_sigstate *ss, uintptr_t *usp, + (void) __mach_port_mod_refs (__mach_task_self (), reply_port, + MACH_PORT_RIGHT_RECEIVE, -1); + THREAD_SETMEM (THREAD_SELF, reply_port, sc_reply_port); ++ asm ("nop"); // See <https://lists.gnu.org/archive/html/bug-hurd/2024-11/msg00143.html>. + + asm volatile ( + /* Point the stack to the register dump. */ +-- +2.46.0 + |