Source-Changes-HG archive

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

[src/trunk]: src remove GCC_NO_ADDR_OF_PACKED_MEMBER for several subdir builds



details:   https://anonhg.NetBSD.org/src/rev/a36b0f2749f8
branches:  trunk
changeset: 943622:a36b0f2749f8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Sep 07 03:09:53 2020 +0000

description:
remove GCC_NO_ADDR_OF_PACKED_MEMBER for several subdir builds
that are now handled by lfs_accessors.h internally.

diffstat:

 libexec/lfs_cleanerd/Makefile    |  4 +---
 sbin/dump_lfs/Makefile           |  4 ++--
 sbin/newfs_lfs/Makefile          |  4 +---
 sbin/resize_lfs/Makefile         |  4 +---
 sbin/scan_ffs/Makefile           |  4 +---
 sys/lib/libsa/Makefile.inc       |  3 +--
 sys/rump/fs/lib/liblfs/Makefile  |  8 +-------
 tests/fs/common/Makefile         |  3 +--
 usr.sbin/puffs/rump_lfs/Makefile |  3 +--
 9 files changed, 10 insertions(+), 27 deletions(-)

diffs (153 lines):

diff -r 4973a228deba -r a36b0f2749f8 libexec/lfs_cleanerd/Makefile
--- a/libexec/lfs_cleanerd/Makefile     Mon Sep 07 03:03:09 2020 +0000
+++ b/libexec/lfs_cleanerd/Makefile     Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.20 2020/09/06 07:20:26 mrg Exp $
+#      $NetBSD: Makefile,v 1.21 2020/09/07 03:09:53 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
 .include "Makefile.inc"
@@ -11,6 +11,4 @@
 LDSTATIC?=      -static
 .endif
 
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-
 .include <bsd.prog.mk>
diff -r 4973a228deba -r a36b0f2749f8 sbin/dump_lfs/Makefile
--- a/sbin/dump_lfs/Makefile    Mon Sep 07 03:03:09 2020 +0000
+++ b/sbin/dump_lfs/Makefile    Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.18 2020/09/06 07:20:27 mrg Exp $
+#      $NetBSD: Makefile,v 1.19 2020/09/07 03:09:53 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 #      lfs_inode.c             LFS filestore-specific routines
@@ -30,6 +30,6 @@
 .PATH:  ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
     ${NETBSDSRCDIR}/sys/ufs/ffs
 
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER} ${GCC_NO_FORMAT_TRUNCATION}
+CWARNFLAGS.gcc+=       ${GCC_NO_FORMAT_TRUNCATION}
 
 .include <bsd.prog.mk>
diff -r 4973a228deba -r a36b0f2749f8 sbin/newfs_lfs/Makefile
--- a/sbin/newfs_lfs/Makefile   Mon Sep 07 03:03:09 2020 +0000
+++ b/sbin/newfs_lfs/Makefile   Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2020/09/06 07:20:27 mrg Exp $
+#      $NetBSD: Makefile,v 1.14 2020/09/07 03:09:53 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
 WARNS?=        3       # XXX: sign-compare issues
@@ -25,6 +25,4 @@
 
 CPPFLAGS+=-I${FSCK_LFS} -I${FSCK} # -DNDEBUG # -DVERBOSE_BLOCKMAP
 
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-
 .include <bsd.prog.mk>
diff -r 4973a228deba -r a36b0f2749f8 sbin/resize_lfs/Makefile
--- a/sbin/resize_lfs/Makefile  Mon Sep 07 03:03:09 2020 +0000
+++ b/sbin/resize_lfs/Makefile  Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2020/09/06 07:20:28 mrg Exp $
+#      $NetBSD: Makefile,v 1.7 2020/09/07 03:09:53 mrg Exp $
 
 WARNS?=        3       # XXX: sign-compare issues
 
@@ -19,6 +19,4 @@
 
 .PATH: ${FSCK}
 
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-
 .include <bsd.prog.mk>
diff -r 4973a228deba -r a36b0f2749f8 sbin/scan_ffs/Makefile
--- a/sbin/scan_ffs/Makefile    Mon Sep 07 03:03:09 2020 +0000
+++ b/sbin/scan_ffs/Makefile    Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2020/09/06 07:20:28 mrg Exp $
+# $NetBSD: Makefile,v 1.10 2020/09/07 03:09:53 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -16,6 +16,4 @@
 
 MAN=   scan_ffs.8
 
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-
 .include <bsd.prog.mk>
diff -r 4973a228deba -r a36b0f2749f8 sys/lib/libsa/Makefile.inc
--- a/sys/lib/libsa/Makefile.inc        Mon Sep 07 03:03:09 2020 +0000
+++ b/sys/lib/libsa/Makefile.inc        Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.25 2020/09/07 01:54:26 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.26 2020/09/07 03:09:53 mrg Exp $
 #
 #      Configuration variables (default values are below):
 #
@@ -22,7 +22,6 @@
 SADOTDIR?= ../../.
 
 CWARNFLAGS.clang+=     -Wno-format-extra-args
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
 
 SADIR=         ${S:S@^.@${SADOTDIR}@:q}/lib/libsa
 .if (${SA_AS} == "obj")
diff -r 4973a228deba -r a36b0f2749f8 sys/rump/fs/lib/liblfs/Makefile
--- a/sys/rump/fs/lib/liblfs/Makefile   Mon Sep 07 03:03:09 2020 +0000
+++ b/sys/rump/fs/lib/liblfs/Makefile   Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.16 2020/09/06 07:20:30 mrg Exp $
+#      $NetBSD: Makefile,v 1.17 2020/09/07 03:09:53 mrg Exp $
 #
 
 .PATH:  ${.CURDIR}/../../../../ufs/lfs
@@ -21,11 +21,5 @@
 COPTS.lfs_inode.c+=-O0
 .endif
 
-# 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
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-
 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>
diff -r 4973a228deba -r a36b0f2749f8 tests/fs/common/Makefile
--- a/tests/fs/common/Makefile  Mon Sep 07 03:03:09 2020 +0000
+++ b/tests/fs/common/Makefile  Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.15 2020/09/07 00:29:14 mrg Exp $
+#      $NetBSD: Makefile,v 1.16 2020/09/07 03:09:53 mrg Exp $
 #
 
 .include <bsd.own.mk>
@@ -40,7 +40,6 @@
 CPPFLAGS+=     -DUSE_RUMP -DLFS_CLEANER_AS_LIB
 
 CWARNFLAGS.clang+=     -Wno-error=absolute-value
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
 COPTS.fstest_nfs.c+=   ${GCC_NO_FORMAT_TRUNCATION}
 COPTS.clnt_bcast.c+=   ${GCC_NO_CAST_FUNCTION_TYPE}
 COPTS.clnt_generic.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
diff -r 4973a228deba -r a36b0f2749f8 usr.sbin/puffs/rump_lfs/Makefile
--- a/usr.sbin/puffs/rump_lfs/Makefile  Mon Sep 07 03:03:09 2020 +0000
+++ b/usr.sbin/puffs/rump_lfs/Makefile  Mon Sep 07 03:09:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2020/09/06 07:20:32 mrg Exp $
+#      $NetBSD: Makefile,v 1.12 2020/09/07 03:09:54 mrg Exp $
 #
 
 .include <bsd.own.mk>
@@ -14,7 +14,6 @@
 CPPFLAGS+=     -DUSE_RUMP -DLFS_CLEANER_AS_LIB
 
 CWARNFLAGS.clang+=     -Wno-error=absolute-value
-CWARNFLAGS.gcc+=        ${GCC_NO_ADDR_OF_PACKED_MEMBER}
 
 .include "../../../libexec/lfs_cleanerd/Makefile.inc"
 



Home | Main Index | Thread Index | Old Index