From owner-svn-src-stable-9@freebsd.org Sat Feb 27 20:51:44 2016 Return-Path: Delivered-To: svn-src-stable-9@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A5B9AB600A; Sat, 27 Feb 2016 20:51:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 456FCA04; Sat, 27 Feb 2016 20:51:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1RKphFB034205; Sat, 27 Feb 2016 20:51:43 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1RKph8h034202; Sat, 27 Feb 2016 20:51:43 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201602272051.u1RKph8h034202@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Sat, 27 Feb 2016 20:51:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r296144 - in stable/9: share/mk sys/conf tools/build/options X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 20:51:44 -0000 Author: bdrewery Date: Sat Feb 27 20:51:42 2016 New Revision: 296144 URL: https://svnweb.freebsd.org/changeset/base/296144 Log: MFC r250658,r250828: r250658: Add a new option WITHOUT_FORMAT_EXTENSIONS to disable flags related to checking our kernel printf extensions. This is useful to allow compilers without these extensions to build kernels. r250828: Spell extensions correctly. Added: stable/9/tools/build/options/WITHOUT_FORMAT_EXTENSIONS - copied unchanged from r250658, head/tools/build/options/WITHOUT_FORMAT_EXTENSIONS Modified: stable/9/share/mk/bsd.own.mk stable/9/sys/conf/kern.mk Directory Properties: stable/9/share/mk/ (props changed) stable/9/sys/ (props changed) stable/9/sys/conf/ (props changed) stable/9/tools/build/options/ (props changed) Modified: stable/9/share/mk/bsd.own.mk ============================================================================== --- stable/9/share/mk/bsd.own.mk Sat Feb 27 20:45:07 2016 (r296143) +++ stable/9/share/mk/bsd.own.mk Sat Feb 27 20:51:42 2016 (r296144) @@ -367,6 +367,7 @@ __DEFAULT_YES_OPTIONS = \ FILE \ FINGER \ FLOPPY \ + FORMAT_EXTENSIONS \ FORTH \ FP_LIBC \ FREEBSD_UPDATE \ Modified: stable/9/sys/conf/kern.mk ============================================================================== --- stable/9/sys/conf/kern.mk Sat Feb 27 20:45:07 2016 (r296143) +++ stable/9/sys/conf/kern.mk Sat Feb 27 20:51:42 2016 (r296144) @@ -5,7 +5,7 @@ # CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ - -Wundef -Wno-pointer-sign -fformat-extensions \ + -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \ -Wmissing-include-dirs -fdiagnostics-show-option \ ${CWARNEXTRA} MK_CLANG_IS_CC ?= no @@ -30,7 +30,16 @@ NO_WSOMETIMES_UNINITIALIZED= -Wno-error- # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually. CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \ - -Wno-error-parentheses-equality -Wno-error-unused-function + -Wno-error-parentheses-equality -Wno-error-unused-function \ + ${NO_WFORMAT} +.endif + +# External compilers may not support our format extensions. Allow them +# to be disabled. WARNING: format checking is disabled in this case. +.if ${MK_FORMAT_EXTENSIONS} == "no" +NO_WFORMAT= -Wno-format +.else +FORMAT_EXTENSIONS= -fformat-extensions .endif # Copied: stable/9/tools/build/options/WITHOUT_FORMAT_EXTENSIONS (from r250658, head/tools/build/options/WITHOUT_FORMAT_EXTENSIONS) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/9/tools/build/options/WITHOUT_FORMAT_EXTENSIONS Sat Feb 27 20:51:42 2016 (r296144, copy of r250658, head/tools/build/options/WITHOUT_FORMAT_EXTENSIONS) @@ -0,0 +1,5 @@ +.\" $FreeBSD$ +Set to not enable +.Fl fformat-extensions +when compiling the kernel. +Also disables all format checking.