]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix restoring SSE state on signal
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 16 Nov 2025 00:32:22 +0000 (01:32 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 16 Nov 2025 00:33:02 +0000 (01:33 +0100)
mach_port_mod_refs() needs to avoid using SSE&MMX for __sigreturn2 to be
able to use it without thrashing SSE&MMX.

sysdeps/mach/hurd/x86/Makefile

index 29371f6c9acd7a9e9a41ec2db6d67076479da323..27c4b06590ba05f447211beba9a02c23ce8c28db 100644 (file)
@@ -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