Module Name: src
Committed By: mrg
Date: Mon Sep 7 07:07:32 UTC 2020
Modified Files:
src/sys/arch/sun3/conf: Makefile.sun3
Log Message:
don't error array-bounds and packed-member issues with GCC 9.
To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/arch/sun3/conf/Makefile.sun3
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/sun3/conf/Makefile.sun3
diff -u src/sys/arch/sun3/conf/Makefile.sun3:1.109 src/sys/arch/sun3/conf/Makefile.sun3:1.110
--- src/sys/arch/sun3/conf/Makefile.sun3:1.109 Sat Sep 22 12:24:03 2018
+++ src/sys/arch/sun3/conf/Makefile.sun3 Mon Sep 7 07:07:32 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sun3,v 1.109 2018/09/22 12:24:03 rin Exp $
+# $NetBSD: Makefile.sun3,v 1.110 2020/09/07 07:07:32 mrg Exp $
# Makefile for NetBSD
#
@@ -35,6 +35,7 @@ CPPFLAGS+= -Dsun3
CFLAGS+= ${CMACHFLAGS} -fno-defer-pop
CFLAGS+= -msoft-float
AFLAGS+= -x assembler-with-cpp
+COPTS.sunmon.c+=${GCC_NO_ADDR_OF_PACKED_MEMBER} ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=array-bounds :}
##
## (3) libkern and compat