Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Use -Wno-error=address-of-packed-member for a numbe...



details:   https://anonhg.NetBSD.org/src/rev/3a179bd2c755
branches:  trunk
changeset: 1009367:3a179bd2c755
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Apr 21 21:39:07 2020 +0000

description:
Use -Wno-error=address-of-packed-member for a number of more boot
loaders.

diffstat:

 sys/arch/macppc/stand/Makefile.inc |  9 ++++++++-
 sys/arch/zaurus/stand/Makefile.inc |  9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 4724dbd396d8 -r 3a179bd2c755 sys/arch/macppc/stand/Makefile.inc
--- a/sys/arch/macppc/stand/Makefile.inc        Tue Apr 21 20:20:39 2020 +0000
+++ b/sys/arch/macppc/stand/Makefile.inc        Tue Apr 21 21:39:07 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.4 2017/04/20 19:09:29 uwe Exp $
+#      $NetBSD: Makefile.inc,v 1.5 2020/04/21 21:39:07 joerg Exp $
 
 BINDIR=                /usr/mdec
 
@@ -6,3 +6,10 @@
 CFLAGS_UNWIND.clang=   -fno-unwind-tables
 
 LINKFLAGS_UNWIND=      --no-ld-generated-unwind-info
+
+# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
+# accessors -- they don't actually dereference the resulting pointer,
+# just use it for type-checking.
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
+COPTS+=        -fcommon
diff -r 4724dbd396d8 -r 3a179bd2c755 sys/arch/zaurus/stand/Makefile.inc
--- a/sys/arch/zaurus/stand/Makefile.inc        Tue Apr 21 20:20:39 2020 +0000
+++ b/sys/arch/zaurus/stand/Makefile.inc        Tue Apr 21 21:39:07 2020 +0000
@@ -1,4 +1,11 @@
-#      $NetBSD: Makefile.inc,v 1.5 2016/01/23 22:28:09 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.6 2020/04/21 21:39:07 joerg Exp $
 
 BINDIR=                /usr/mdec
 KLINK_MACHINE= zaurus
+
+# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
+# accessors -- they don't actually dereference the resulting pointer,
+# just use it for type-checking.
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
+COPTS+=        -fcommon



Home | Main Index | Thread Index | Old Index