Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2019 20:01:26 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r352023 - in stable/11: share/mk sys/arm/conf sys/conf sys/modules/linux sys/modules/linux64 sys/powerpc/conf sys/powerpc/conf/dpaa usr.sbin/pmcstudy
Message-ID:  <201909072001.x87K1QWI043043@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Sep  7 20:01:26 2019
New Revision: 352023
URL: https://svnweb.freebsd.org/changeset/base/352023

Log:
  MFC: r351429, r351430, r351485, r351497, r351498
  
  All changes related to disabling Werror on stable/11
  to ease MFCs now that we've disabled them in head.

Modified:
  stable/11/share/mk/bsd.sys.mk
  stable/11/sys/arm/conf/ALPINE
  stable/11/sys/arm/conf/ARMADA38X
  stable/11/sys/arm/conf/ARMADAXP
  stable/11/sys/arm/conf/DB-78XXX
  stable/11/sys/arm/conf/DB-88F5XXX
  stable/11/sys/arm/conf/DB-88F6XXX
  stable/11/sys/arm/conf/SHEEVAPLUG
  stable/11/sys/arm/conf/TS7800
  stable/11/sys/arm/conf/VYBRID
  stable/11/sys/conf/files.amd64
  stable/11/sys/conf/files.i386
  stable/11/sys/conf/kern.pre.mk
  stable/11/sys/conf/kmod.mk
  stable/11/sys/modules/linux/Makefile
  stable/11/sys/modules/linux64/Makefile
  stable/11/sys/powerpc/conf/MPC85XX
  stable/11/sys/powerpc/conf/dpaa/DPAA
  stable/11/usr.sbin/pmcstudy/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/share/mk/bsd.sys.mk
==============================================================================
--- stable/11/share/mk/bsd.sys.mk	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/share/mk/bsd.sys.mk	Sat Sep  7 20:01:26 2019	(r352023)
@@ -24,6 +24,15 @@ CFLAGS+=	-std=iso9899:1999
 .else # CSTD
 CFLAGS+=	-std=${CSTD}
 .endif # CSTD
+#
+# Turn off -Werror for gcc 4.2.1. The compiler is on the glide path out of the
+# system, and any warnings specific to it are no longer relevant as there are
+# too many false positives.
+#
+.if ${COMPILER_VERSION} <  50000
+NO_WERROR.gcc=	yes
+.endif
+
 # -pedantic is problematic because it also imposes namespace restrictions
 #CFLAGS+=	-pedantic
 .if defined(WARNS)

Modified: stable/11/sys/arm/conf/ALPINE
==============================================================================
--- stable/11/sys/arm/conf/ALPINE	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/ALPINE	Sat Sep  7 20:01:26 2019	(r352023)
@@ -23,7 +23,6 @@ include 	"std.armv6"
 include 	"../annapurna/alpine/std.alpine"
 
 makeoptions	MODULES_OVERRIDE=""
-makeoptions	WERROR="-Werror"
 
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	SMP			# Enable multiple cores

Modified: stable/11/sys/arm/conf/ARMADA38X
==============================================================================
--- stable/11/sys/arm/conf/ARMADA38X	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/ARMADA38X	Sat Sep  7 20:01:26 2019	(r352023)
@@ -11,7 +11,6 @@ ident 	ARMADA38X
 
 options 	SOC_MV_ARMADA38X
 
-makeoptions 	WERROR="-Werror"
 
 options 	MD_ROOT
 #makeoptions 	MFS_IMAGE=/path/to/miniroot

Modified: stable/11/sys/arm/conf/ARMADAXP
==============================================================================
--- stable/11/sys/arm/conf/ARMADAXP	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/ARMADAXP	Sat Sep  7 20:01:26 2019	(r352023)
@@ -25,8 +25,6 @@ include 	"../mv/armadaxp/std.mv78x60"
 
 options 	SOC_MV_ARMADAXP
 
-makeoptions	WERROR="-Werror"
-
 options 	SCHED_ULE		# ULE scheduler
 options 	SMP			# Enable multiple cores
 

Modified: stable/11/sys/arm/conf/DB-78XXX
==============================================================================
--- stable/11/sys/arm/conf/DB-78XXX	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/DB-78XXX	Sat Sep  7 20:01:26 2019	(r352023)
@@ -10,8 +10,6 @@ include 	"../mv/discovery/std.db78xxx"
 
 options 	SOC_MV_DISCOVERY
 
-makeoptions	WERROR="-Werror"
-
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	INET			# InterNETworking
 options 	INET6			# IPv6 communications protocols

Modified: stable/11/sys/arm/conf/DB-88F5XXX
==============================================================================
--- stable/11/sys/arm/conf/DB-88F5XXX	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/DB-88F5XXX	Sat Sep  7 20:01:26 2019	(r352023)
@@ -10,8 +10,6 @@ include 	"../mv/orion/std.db88f5xxx"
 
 options 	SOC_MV_ORION
 
-makeoptions	WERROR="-Werror"
-
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	INET			# InterNETworking
 options 	INET6			# IPv6 communications protocols

Modified: stable/11/sys/arm/conf/DB-88F6XXX
==============================================================================
--- stable/11/sys/arm/conf/DB-88F6XXX	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/DB-88F6XXX	Sat Sep  7 20:01:26 2019	(r352023)
@@ -10,8 +10,6 @@ include 	"../mv/kirkwood/std.db88f6xxx"
 
 options 	SOC_MV_KIRKWOOD
 
-makeoptions	WERROR="-Werror"
-
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	INET			# InterNETworking
 options 	INET6			# IPv6 communications protocols

Modified: stable/11/sys/arm/conf/SHEEVAPLUG
==============================================================================
--- stable/11/sys/arm/conf/SHEEVAPLUG	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/SHEEVAPLUG	Sat Sep  7 20:01:26 2019	(r352023)
@@ -11,8 +11,6 @@ include 	"../mv/kirkwood/std.db88f6xxx"
 
 options 	SOC_MV_KIRKWOOD
 
-makeoptions	WERROR="-Werror"
-
 options 	HZ=1000
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	INET			# InterNETworking

Modified: stable/11/sys/arm/conf/TS7800
==============================================================================
--- stable/11/sys/arm/conf/TS7800	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/TS7800	Sat Sep  7 20:01:26 2019	(r352023)
@@ -10,8 +10,6 @@ include 	"../mv/orion/std.ts7800"
 
 options 	SOC_MV_ORION
 
-makeoptions	WERROR="-Werror"
-
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	INET			# InterNETworking
 options 	INET6			# IPv6 communications protocols

Modified: stable/11/sys/arm/conf/VYBRID
==============================================================================
--- stable/11/sys/arm/conf/VYBRID	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/arm/conf/VYBRID	Sat Sep  7 20:01:26 2019	(r352023)
@@ -22,8 +22,6 @@ ident		VYBRID
 include 	"std.armv6"
 include 	"../freescale/vybrid/std.vybrid"
 
-makeoptions	WERROR="-Werror"
-
 options 	SCHED_4BSD		# 4BSD scheduler
 #options 	NANDFS			# NAND Filesystem
 #options 	SMP			# Enable multiple cores

Modified: stable/11/sys/conf/files.amd64
==============================================================================
--- stable/11/sys/conf/files.amd64	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/conf/files.amd64	Sat Sep  7 20:01:26 2019	(r352023)
@@ -46,7 +46,7 @@ linux32_assym.h			optional	compat_linux32		\
 #
 linux32_locore.o	optional	compat_linux32		\
 	dependency 	"linux32_assym.h $S/amd64/linux32/linux32_locore.s"	\
-	compile-with	"${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s -pipe -I. -I$S -Werror -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/amd64/linux32/linux32_vdso.lds.s -Wl,-soname=linux32_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
+	compile-with	"${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s -pipe -I. -I$S ${WERROR} -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/amd64/linux32/linux32_vdso.lds.s -Wl,-soname=linux32_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
 	no-obj no-implicit-rule						\
 	clean		"linux32_locore.o"
 #

Modified: stable/11/sys/conf/files.i386
==============================================================================
--- stable/11/sys/conf/files.i386	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/conf/files.i386	Sat Sep  7 20:01:26 2019	(r352023)
@@ -33,7 +33,7 @@ linux_assym.h			optional	compat_linux		\
 #
 linux_locore.o			optional	compat_linux		\
 	dependency 	"linux_assym.h $S/i386/linux/linux_locore.s"	\
-	compile-with	"${CC} -x assembler-with-cpp -DLOCORE -shared -s -pipe -I. -I$S -Werror -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/i386/linux/linux_vdso.lds.s -Wl,-soname=linux_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
+	compile-with	"${CC} -x assembler-with-cpp -DLOCORE -shared -s -pipe -I. -I$S ${WERROR} -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/i386/linux/linux_vdso.lds.s -Wl,-soname=linux_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
 	no-obj no-implicit-rule						\
 	clean		"linux_locore.o"
 #

Modified: stable/11/sys/conf/kern.pre.mk
==============================================================================
--- stable/11/sys/conf/kern.pre.mk	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/conf/kern.pre.mk	Sat Sep  7 20:01:26 2019	(r352023)
@@ -85,7 +85,11 @@ CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PA
 .if defined(CFLAGS_ARCH_PARAMS)
 CFLAGS.gcc+=${CFLAGS_ARCH_PARAMS}
 .endif
-WERROR?= -Werror
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 50000
+WERROR?=	-Wno-error
+.else
+WERROR?=	-Werror
+.endif
 
 # XXX LOCORE means "don't declare C stuff" not "for locore.s".
 ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} ${ASM_CFLAGS.${.IMPSRC:T}} 

Modified: stable/11/sys/conf/kmod.mk
==============================================================================
--- stable/11/sys/conf/kmod.mk	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/conf/kmod.mk	Sat Sep  7 20:01:26 2019	(r352023)
@@ -98,7 +98,12 @@ __KLD_SHARED=no
 .if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing)
 CFLAGS+=	-fno-strict-aliasing
 .endif
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 50000
+WERROR?=	-Wno-error
+.else
 WERROR?=	-Werror
+.endif
+
 CFLAGS+=	${WERROR}
 CFLAGS+=	-D_KERNEL
 CFLAGS+=	-DKLD_MODULE

Modified: stable/11/sys/modules/linux/Makefile
==============================================================================
--- stable/11/sys/modules/linux/Makefile	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/modules/linux/Makefile	Sat Sep  7 20:01:26 2019	(r352023)
@@ -50,7 +50,7 @@ linux${SFX}_assym.h: linux${SFX}_genassym.o
 
 linux${SFX}_locore.o: linux${SFX}_assym.h assym.s
 	${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s			\
-	-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib	\
+	-pipe -I. -I${SYSDIR} ${WERROR} -Wall -fno-common -nostdinc -nostdlib	\
 	-fno-omit-frame-pointer -fPIC						\
 	-Wl,-T${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX}/${VDSO}.lds.s	\
 	-Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common		\

Modified: stable/11/sys/modules/linux64/Makefile
==============================================================================
--- stable/11/sys/modules/linux64/Makefile	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/modules/linux64/Makefile	Sat Sep  7 20:01:26 2019	(r352023)
@@ -30,7 +30,7 @@ linux_assym.h: linux_genassym.o
 
 linux_locore.o: linux_locore.s linux_assym.h
 	${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small	\
-	-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -fPIC -nostdinc	\
+	-pipe -I. -I${SYSDIR} ${WERROR} -Wall -fno-common -fPIC -nostdinc	\
 	-Wl,-T${SRCTOP}/sys/${MACHINE_CPUARCH}/linux/${VDSO}.lds.s	\
 	-Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib			\
 	    ${.IMPSRC} -o ${.TARGET}

Modified: stable/11/sys/powerpc/conf/MPC85XX
==============================================================================
--- stable/11/sys/powerpc/conf/MPC85XX	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/powerpc/conf/MPC85XX	Sat Sep  7 20:01:26 2019	(r352023)
@@ -12,7 +12,6 @@ machine		powerpc	powerpc
 
 include 	"dpaa/config.dpaa"
 makeoptions	DEBUG="-Wa,-me500 -g"
-makeoptions	WERROR="-Werror -Wno-format -Wno-redundant-decls"
 makeoptions	NO_MODULES=yes
 
 options 	FPU_EMU

Modified: stable/11/sys/powerpc/conf/dpaa/DPAA
==============================================================================
--- stable/11/sys/powerpc/conf/dpaa/DPAA	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/sys/powerpc/conf/dpaa/DPAA	Sat Sep  7 20:01:26 2019	(r352023)
@@ -12,7 +12,7 @@ cpu		BOOKE_E500
 
 machine		powerpc powerpc
 #makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
-makeoptions	WERROR="-Werror -Wno-format -Wno-redundant-decls"
+#makeoptions	WERROR="-Werror -Wno-format -Wno-redundant-decls"
 makeoptions	NO_MODULES=yes
 
 # Platform support

Modified: stable/11/usr.sbin/pmcstudy/Makefile
==============================================================================
--- stable/11/usr.sbin/pmcstudy/Makefile	Sat Sep  7 19:58:06 2019	(r352022)
+++ stable/11/usr.sbin/pmcstudy/Makefile	Sat Sep  7 20:01:26 2019	(r352023)
@@ -4,7 +4,7 @@
 PROG=	pmcstudy
 MAN=	pmcstudy.8
 SRCS= pmcstudy.c eval_expr.c
-CFLAGS+= -Wall -Werror
+CFLAGS+= -Wall ${WERROR}
 
 BINDIR= /usr/bin
 



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