File: git-signal-SSE-MMX.diff

package info (click to toggle)
glibc 2.42-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312,368 kB
  • sloc: ansic: 1,060,859; asm: 238,416; makefile: 20,960; python: 13,509; sh: 11,828; cpp: 5,188; awk: 1,794; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (22 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
commit ce61fcf7022c5344bd8311daab312fb69506d1a7
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Nov 16 01:32:22 2025 +0100

    hurd: Fix restoring SSE state on signal
    
    mach_port_mod_refs() needs to avoid using SSE&MMX for __sigreturn2 to be
    able to use it without thrashing SSE&MMX.

diff --git a/sysdeps/mach/hurd/x86/Makefile b/sysdeps/mach/hurd/x86/Makefile
index 29371f6c9a..27c4b06590 100644
--- a/sysdeps/mach/hurd/x86/Makefile
+++ b/sysdeps/mach/hurd/x86/Makefile
@@ -14,3 +14,8 @@ endif
 ifeq ($(subdir),stdlib)
 gen-as-const-headers += ucontext_i.sym
 endif
+
+ifeq ($(subdir),mach)
+# Avoid SSE&MMX to avoid __sigreturn2 thrashing it
+CFLAGS-RPC_mach_port_mod_refs.c = -mno-sse -mno-mmx
+endif