svn commit: r321483 - head/lib/msun/tests

Ngie Cooper ngie at FreeBSD.org
Tue Jul 25 16:11:37 UTC 2017


Author: ngie
Date: Tue Jul 25 16:11:36 2017
New Revision: 321483
URL: https://svnweb.freebsd.org/changeset/base/321483

Log:
  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.

Modified:
  head/lib/msun/tests/Makefile

Modified: head/lib/msun/tests/Makefile
==============================================================================
--- head/lib/msun/tests/Makefile	Tue Jul 25 15:58:44 2017	(r321482)
+++ head/lib/msun/tests/Makefile	Tue Jul 25 16:11:36 2017	(r321483)
@@ -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


More information about the svn-src-all mailing list