Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 22:40:53 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r260495 - in stable: 10/share/mk 10/sys/conf 10/sys/modules/drm2/radeonkms 10/sys/modules/ibcore 10/sys/modules/ipoib 10/sys/modules/mlx4 10/sys/modules/mlx4ib 10/sys/modules/mlxen 10/s...
Message-ID:  <201401092240.s09MerwF073876@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Jan  9 22:40:51 2014
New Revision: 260495
URL: http://svnweb.freebsd.org/changeset/base/260495

Log:
  MFC r260102:
  
  Similar to r260020, only use -fms-extensions with gcc, for all other
  modules which require this flag to compile.  Use a GCC_MS_EXTENSIONS
  variable, defined in kern.pre.mk, which can be used to easily supply the
  flag (or not), depending on the compiler type.
  
  MFC r260322:
  
  In addition to r260102, also define GCC_MS_EXTENSIONS in bsd.sys.mk,
  since kernel module builds do not use kern.pre.mk.

Modified:
  stable/10/share/mk/bsd.sys.mk
  stable/10/sys/conf/kern.pre.mk
  stable/10/sys/modules/drm2/radeonkms/Makefile
  stable/10/sys/modules/ibcore/Makefile
  stable/10/sys/modules/ipoib/Makefile
  stable/10/sys/modules/mlx4/Makefile
  stable/10/sys/modules/mlx4ib/Makefile
  stable/10/sys/modules/mlxen/Makefile
  stable/10/sys/modules/mthca/Makefile
  stable/10/sys/ofed/drivers/infiniband/hw/mlx4/Makefile
  stable/10/sys/ofed/drivers/net/mlx4/Makefile
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/share/mk/bsd.sys.mk   (contents, props changed)
  stable/9/sys/conf/kern.pre.mk
  stable/9/sys/modules/mlx4/Makefile
  stable/9/sys/modules/mlx4ib/Makefile
  stable/9/sys/modules/mlxen/Makefile
  stable/9/sys/modules/mthca/Makefile
Directory Properties:
  stable/9/share/mk/   (props changed)
  stable/9/sys/   (props changed)

Modified: stable/10/share/mk/bsd.sys.mk
==============================================================================
--- stable/10/share/mk/bsd.sys.mk	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/share/mk/bsd.sys.mk	Thu Jan  9 22:40:51 2014	(r260495)
@@ -123,6 +123,7 @@ CFLAGS+=	 -Qunused-arguments
 CFLAGS+=	 ${CFLAGS.clang}
 CXXFLAGS+=	 ${CXXFLAGS.clang}
 .else # !CLANG
+GCC_MS_EXTENSIONS= -fms-extensions
 CFLAGS+=	 ${CFLAGS.gcc}
 CXXFLAGS+=	 ${CXXFLAGS.gcc}
 .endif # CLANG

Modified: stable/10/sys/conf/kern.pre.mk
==============================================================================
--- stable/10/sys/conf/kern.pre.mk	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/conf/kern.pre.mk	Thu Jan  9 22:40:51 2014	(r260495)
@@ -99,6 +99,8 @@ ASM_CFLAGS= -x assembler-with-cpp -DLOCO
 
 .if ${COMPILER_TYPE} == "clang"
 CLANG_NO_IAS= -no-integrated-as
+.else
+GCC_MS_EXTENSIONS= -fms-extensions
 .endif
 
 .if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
@@ -157,7 +159,7 @@ NORMAL_LINT=	${LINT} ${LINTFLAGS} ${CFLA
 # Infiniband C flags.  Correct include paths and omit errors that linux
 # does not honor.
 OFEDINCLUDES=	-I$S/ofed/include/
-OFEDNOERR=	-Wno-cast-qual -Wno-pointer-arith -fms-extensions
+OFEDNOERR=	-Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
 OFEDCFLAGS=	${CFLAGS:N-I*} ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR}
 OFED_C_NOIMP=	${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR} ${PROF}
 OFED_C=		${OFED_C_NOIMP} ${.IMPSRC}

Modified: stable/10/sys/modules/drm2/radeonkms/Makefile
==============================================================================
--- stable/10/sys/modules/drm2/radeonkms/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/drm2/radeonkms/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -103,9 +103,6 @@ SRCS	+=								\
 	iicbus_if.h							\
 	pci_if.h
 
-CFLAGS  += -I${.CURDIR}/../../../dev/drm2/radeon
-.if ${COMPILER_TYPE} == "gcc"
-CFLAGS	+= -fms-extensions
-.endif
+CFLAGS  += -I${.CURDIR}/../../../dev/drm2/radeon ${GCC_MS_EXTENSIONS}
 
 .include <bsd.kmod.mk>

Modified: stable/10/sys/modules/ibcore/Makefile
==============================================================================
--- stable/10/sys/modules/ibcore/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/ibcore/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -20,7 +20,7 @@ CFLAGS+= -DINET6 -DINET -DOFED
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
 
 CWARNFLAGS.cm.c=	-Wno-unused-function
 CWARNFLAGS+=		${CWARNFLAGS.${.IMPSRC:T}}

Modified: stable/10/sys/modules/ipoib/Makefile
==============================================================================
--- stable/10/sys/modules/ipoib/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/ipoib/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -28,4 +28,4 @@ opt_inet6.h:
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}

Modified: stable/10/sys/modules/mlx4/Makefile
==============================================================================
--- stable/10/sys/modules/mlx4/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/mlx4/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -27,7 +27,6 @@ opt_inet6.h:
 .include <bsd.kmod.mk>
 
 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
 
 CWARNFLAGS.mcg.c=	-Wno-unused
 CWARNFLAGS+=		${CWARNFLAGS.${.IMPSRC:T}}

Modified: stable/10/sys/modules/mlx4ib/Makefile
==============================================================================
--- stable/10/sys/modules/mlx4ib/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/mlx4ib/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -31,4 +31,4 @@ opt_inet6.h:
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}

Modified: stable/10/sys/modules/mlxen/Makefile
==============================================================================
--- stable/10/sys/modules/mlxen/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/mlxen/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -25,4 +25,4 @@ opt_inet6.h:
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}

Modified: stable/10/sys/modules/mthca/Makefile
==============================================================================
--- stable/10/sys/modules/mthca/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/modules/mthca/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -28,4 +28,4 @@ opt_inet6.h:
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}

Modified: stable/10/sys/ofed/drivers/infiniband/hw/mlx4/Makefile
==============================================================================
--- stable/10/sys/ofed/drivers/infiniband/hw/mlx4/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/ofed/drivers/infiniband/hw/mlx4/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -28,4 +28,4 @@ opt_inet6.h:
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}

Modified: stable/10/sys/ofed/drivers/net/mlx4/Makefile
==============================================================================
--- stable/10/sys/ofed/drivers/net/mlx4/Makefile	Thu Jan  9 22:16:30 2014	(r260494)
+++ stable/10/sys/ofed/drivers/net/mlx4/Makefile	Thu Jan  9 22:40:51 2014	(r260495)
@@ -30,5 +30,5 @@ opt_inet6.h:
 
 .include <bsd.kmod.mk>
 
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401092240.s09MerwF073876>