summaryrefslogtreecommitdiff
path: root/sys/arch/sun2
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2020-09-08 00:51:29 +0000
committermrg <mrg@NetBSD.org>2020-09-08 00:51:29 +0000
commit24fabd450d8cf1a005e2179ccc124cd291d34839 (patch)
tree51ca8c80e245419bccf23d086eda19c59c7345a9 /sys/arch/sun2
parent06bb0c8390c2f5fae02cb48f4677fb273ecbf308 (diff)
don't warn about array bounds for dodgy diagnostic code.
fixes gcc9 builds.
Diffstat (limited to 'sys/arch/sun2')
-rw-r--r--sys/arch/sun2/conf/Makefile.sun27
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sun2/conf/Makefile.sun2 b/sys/arch/sun2/conf/Makefile.sun2
index 3b432352253..34a281565bf 100644
--- a/sys/arch/sun2/conf/Makefile.sun2
+++ b/sys/arch/sun2/conf/Makefile.sun2
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sun2,v 1.25 2020/08/10 06:28:42 rin Exp $
+# $NetBSD: Makefile.sun2,v 1.26 2020/09/08 00:51:29 mrg Exp $
# Makefile for NetBSD
#
@@ -36,9 +36,8 @@ CFLAGS+= -msoft-float -fno-defer-pop
AFLAGS+= -x assembler-with-cpp
# XXX
-.if ${HAVE_GCC:U0} >= 8
-COPTS+= -fno-omit-frame-pointer
-.endif
+COPTS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -fno-omit-frame-pointer :}
+COPTS.promlib.c+=${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-error=array-bounds :}
##
## (3) libkern and compat