From 82482c7c1f6b365baa452faa03d1b46b293d1903 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 25 Jul 2017 16:11:36 +0000 Subject: [PATCH] Mask issues with duplicate definitions for __fnstcw, __fldenv, and __fldcw on i386 by ignoring -Wmacro-redefined. This is a bandaid until the code is fixed and will be reverted before MFC. --- lib/msun/tests/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index 949b0a5b7aad..121c106c1e8e 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -84,6 +84,10 @@ SRCS.ilogb2_test= ilogb_test.c LIBADD+= m +.if ${MACHINE_CPUARCH} == "i386" +# XXX: __fldcw macro mismatch between fenv.h and ieeefp.h . +CWARNFLAGS.clang+= -Wno-error=macro-redefined +.endif WARNS?= 1 # Copied from lib/msun/Makefile