Module Name: src
Committed By: mrg
Date: Tue Sep 8 00:51:29 UTC 2020
Modified Files:
src/sys/arch/sun2/conf: Makefile.sun2
Log Message:
don't warn about array bounds for dodgy diagnostic code.
fixes gcc9 builds.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sun2/conf/Makefile.sun2
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/sun2/conf/Makefile.sun2
diff -u src/sys/arch/sun2/conf/Makefile.sun2:1.25 src/sys/arch/sun2/conf/Makefile.sun2:1.26
--- src/sys/arch/sun2/conf/Makefile.sun2:1.25 Mon Aug 10 06:28:42 2020
+++ src/sys/arch/sun2/conf/Makefile.sun2 Tue Sep 8 00:51:29 2020
@@ -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