svn commit: r302403 - head/sys/conf

Garrett Cooper ngie at FreeBSD.org
Thu Jul 7 22:44:24 UTC 2016


Author: ngie
Date: Thu Jul  7 22:44:23 2016
New Revision: 302403
URL: https://svnweb.freebsd.org/changeset/base/302403

Log:
  Do not use -fformat-extensions with non-base versions of gcc
  
  Ports versions of gcc do not have -fformat-extensions support.
  
  This unbreaks compiling the kernel/modules with non-base gcc (4.8,
  5.0, etc) if MK_FORMAT_EXTENSIONS=yes (the default).
  
  Approved by: re (gjb)
  Differential Revision: https://reviews.freebsd.org/D7150
  Reviewed by: bdrewery
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Thu Jul  7 22:10:10 2016	(r302402)
+++ head/sys/conf/kern.mk	Thu Jul  7 22:44:23 2016	(r302403)
@@ -62,7 +62,7 @@ CWARNEXTRA?=	-Wno-uninitialized
 FORMAT_EXTENSIONS=	-Wno-format
 .elif ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
 FORMAT_EXTENSIONS=	-D__printf__=__freebsd_kprintf__
-.else
+.elif ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} == 40201
 FORMAT_EXTENSIONS=	-fformat-extensions
 .endif
 


More information about the svn-src-head mailing list