Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/conf make build (and run) with GCC 9.



details:   https://anonhg.NetBSD.org/src/rev/3d534bd28132
branches:  trunk
changeset: 938806:3d534bd28132
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Sep 15 05:08:07 2020 +0000

description:
make build (and run) with GCC 9.

diffstat:

 sys/arch/vax/boot/xxboot/Makefile         |  4 +++-
 sys/arch/vax/boot/xxboot_ustarfs/Makefile |  4 +++-
 sys/arch/vax/conf/Makefile.vax            |  4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 6d0f361f354a -r 3d534bd28132 sys/arch/vax/boot/xxboot/Makefile
--- a/sys/arch/vax/boot/xxboot/Makefile Tue Sep 15 05:06:56 2020 +0000
+++ b/sys/arch/vax/boot/xxboot/Makefile Tue Sep 15 05:08:07 2020 +0000
@@ -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 @@
        ${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>
diff -r 6d0f361f354a -r 3d534bd28132 sys/arch/vax/boot/xxboot_ustarfs/Makefile
--- a/sys/arch/vax/boot/xxboot_ustarfs/Makefile Tue Sep 15 05:06:56 2020 +0000
+++ b/sys/arch/vax/boot/xxboot_ustarfs/Makefile Tue Sep 15 05:08:07 2020 +0000
@@ -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 @@
        ${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>
diff -r 6d0f361f354a -r 3d534bd28132 sys/arch/vax/conf/Makefile.vax
--- a/sys/arch/vax/conf/Makefile.vax    Tue Sep 15 05:06:56 2020 +0000
+++ b/sys/arch/vax/conf/Makefile.vax    Tue Sep 15 05:08:07 2020 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index