Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 21:12:23 +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-9@freebsd.org
Subject:   svn commit: r263448 - stable/9/sys/modules/drm2/radeonkms
Message-ID:  <201403202112.s2KLCNor028418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Mar 20 21:12:23 2014
New Revision: 263448
URL: http://svnweb.freebsd.org/changeset/base/263448

Log:
  MFC r260020:
  
  For sys/dev/drm2/radeon, only use -fms-extensions with gcc.  This flag
  is only to stop gcc complaining about anonymous unions, which clang does
  not do.  For clang 3.4 however, -fms-extensions enables the Microsoft
  __wchar_t type, which clashes with our own types.h.

Modified:
  stable/9/sys/modules/drm2/radeonkms/Makefile
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/modules/drm2/radeonkms/Makefile
==============================================================================
--- stable/9/sys/modules/drm2/radeonkms/Makefile	Thu Mar 20 20:55:57 2014	(r263447)
+++ stable/9/sys/modules/drm2/radeonkms/Makefile	Thu Mar 20 21:12:23 2014	(r263448)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+.include <bsd.own.mk>
+
 .PATH:	${.CURDIR}/../../../dev/drm2/radeon
 
 KMOD	= radeonkms
@@ -101,7 +103,6 @@ SRCS	+=								\
 	iicbus_if.h							\
 	pci_if.h
 
-CFLAGS  += -I${.CURDIR}/../../../dev/drm2/radeon			\
-	   -fms-extensions
+CFLAGS  += -I${.CURDIR}/../../../dev/drm2/radeon ${GCC_MS_EXTENSIONS}
 
 .include <bsd.kmod.mk>



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