Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun3/conf don't error array-bounds and packed-membe...



details:   https://anonhg.NetBSD.org/src/rev/7a25558c1dfa
branches:  trunk
changeset: 1013891:7a25558c1dfa
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Sep 07 07:07:32 2020 +0000

description:
don't error array-bounds and packed-member issues with GCC 9.

diffstat:

 sys/arch/sun3/conf/Makefile.sun3 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 54758a25b664 -r 7a25558c1dfa sys/arch/sun3/conf/Makefile.sun3
--- a/sys/arch/sun3/conf/Makefile.sun3  Mon Sep 07 07:04:30 2020 +0000
+++ b/sys/arch/sun3/conf/Makefile.sun3  Mon Sep 07 07:07:32 2020 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index