Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/conf don't warn about array bounds for dodgy d...
details: https://anonhg.NetBSD.org/src/rev/d03d1165f0ab
branches: trunk
changeset: 938429:d03d1165f0ab
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Sep 08 00:51:29 2020 +0000
description:
don't warn about array bounds for dodgy diagnostic code.
fixes gcc9 builds.
diffstat:
sys/arch/sun2/conf/Makefile.sun2 | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (21 lines):
diff -r 39b259b1da0d -r d03d1165f0ab sys/arch/sun2/conf/Makefile.sun2
--- a/sys/arch/sun2/conf/Makefile.sun2 Mon Sep 07 23:47:02 2020 +0000
+++ b/sys/arch/sun2/conf/Makefile.sun2 Tue Sep 08 00:51:29 2020 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index