Module Name:    src
Committed By:   mrg
Date:           Tue Sep 15 05:08:07 UTC 2020

Modified Files:
        src/sys/arch/vax/boot/xxboot: Makefile
        src/sys/arch/vax/boot/xxboot_ustarfs: Makefile
        src/sys/arch/vax/conf: Makefile.vax

Log Message:
make build (and run) with GCC 9.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/vax/boot/xxboot/Makefile
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/vax/boot/xxboot_ustarfs/Makefile
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/vax/conf/Makefile.vax

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/boot/xxboot/Makefile
diff -u src/sys/arch/vax/boot/xxboot/Makefile:1.21 src/sys/arch/vax/boot/xxboot/Makefile:1.22
--- src/sys/arch/vax/boot/xxboot/Makefile:1.21	Sun Dec 11 12:19:34 2005
+++ src/sys/arch/vax/boot/xxboot/Makefile	Tue Sep 15 05:08:07 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.21 2005/12/11 12:19:34 christos Exp $
+#	$NetBSD: Makefile,v 1.22 2020/09/15 05:08:07 mrg Exp $
 
 S=	${.CURDIR}/../../../..
 
@@ -41,4 +41,6 @@ ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
 	${SIZE} ${PROG}.out
 	${OBJCOPY} -O binary ${PROG}.out ${PROG}
 
+COPTS.bootxx.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=array-bounds :}
+
 .include <bsd.prog.mk>

Index: src/sys/arch/vax/boot/xxboot_ustarfs/Makefile
diff -u src/sys/arch/vax/boot/xxboot_ustarfs/Makefile:1.8 src/sys/arch/vax/boot/xxboot_ustarfs/Makefile:1.9
--- src/sys/arch/vax/boot/xxboot_ustarfs/Makefile:1.8	Sun Dec 11 12:19:34 2005
+++ src/sys/arch/vax/boot/xxboot_ustarfs/Makefile	Tue Sep 15 05:08:07 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2005/12/11 12:19:34 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2020/09/15 05:08:07 mrg Exp $
 
 S=	${.CURDIR}/../../../..
 
@@ -37,4 +37,6 @@ ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
 	${SIZE} ${PROG}.out
 	${OBJCOPY} -O binary ${PROG}.out ${PROG}
 
+COPTS.bootxx.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=array-bounds :}
+
 .include <bsd.prog.mk>

Index: src/sys/arch/vax/conf/Makefile.vax
diff -u src/sys/arch/vax/conf/Makefile.vax:1.84 src/sys/arch/vax/conf/Makefile.vax:1.85
--- src/sys/arch/vax/conf/Makefile.vax:1.84	Sat Sep 22 12:24:03 2018
+++ src/sys/arch/vax/conf/Makefile.vax	Tue Sep 15 05:08:07 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.vax,v 1.84 2018/09/22 12:24:03 rin Exp $
+#	$NetBSD: Makefile.vax,v 1.85 2020/09/15 05:08:07 mrg Exp $
 
 # Makefile for NetBSD
 #
@@ -34,6 +34,8 @@ GENASSYM_CONF=	${VAX}/vax/genassym.cf
 CPPFLAGS+=	-D_VAX_INLINE_
 AFLAGS+=	-x assembler-with-cpp -fno-pic
 CFLAGS+=	-fno-pic
+COPTS.wsmux.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}
+
 
 ##
 ## (3) libkern and compat

Reply via email to