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/2efd606349d8
branches:  trunk
changeset: 975891:2efd606349d8
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 5c6a572fe83d -r 2efd606349d8 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