From becb228b430d1f3816cfa5b7587d2978ce6936ed Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 23 Jan 2018 09:40:20 -0800 Subject: [PATCH] clang requires -mno-see for 387 math --- sysdeps/x86/fpu/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/x86/fpu/Makefile b/sysdeps/x86/fpu/Makefile index 600e42c3db..4fac32d828 100644 --- a/sysdeps/x86/fpu/Makefile +++ b/sysdeps/x86/fpu/Makefile @@ -9,6 +9,9 @@ CFLAGS-test-fenv-sse.c += -msse2 -mfpmath=sse CFLAGS-test-fenv-clear-sse.c += -msse2 -mfpmath=sse CFLAGS-test-fenv-sse-2.c += -msse2 -mfpmath=sse CFLAGS-test-flt-eval-method-387.c += -fexcess-precision=standard -mfpmath=387 +ifeq ($(with-clang),yes) +CFLAGS-test-flt-eval-method-387.c += -mno-sse +endif CFLAGS-test-flt-eval-method-sse.c += -fexcess-precision=standard -msse2 \ -mfpmath=sse endif