Skip to content

Commit 411eb01

Browse files
committed
Merge tag 'uml-for-linus-6.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux
Pull UML fix from Richard Weinberger: - Build regression fix for older gcc versions * tag 'uml-for-linus-6.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux: um: Only disable SSE on clang to work around old GCC bugs
2 parents 09a9639 + a3046a6 commit 411eb01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/x86/Makefile.um

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ core-y += arch/x86/crypto/
33

44
#
55
# Disable SSE and other FP/SIMD instructions to match normal x86
6+
# This is required to work around issues in older LLVM versions, but breaks
7+
# GCC versions < 11. See:
8+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99652
69
#
10+
ifeq ($(CONFIG_CC_IS_CLANG),y)
711
KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
812
KBUILD_RUSTFLAGS += -Ctarget-feature=-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2
13+
endif
914

1015
ifeq ($(CONFIG_X86_32),y)
1116
START := 0x8048000

0 commit comments

Comments
 (0)