Source-Changes-HG archive

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

[src/trunk]: src/sys/modules Provide a global no-packed-address for both gcc ...



details:   https://anonhg.NetBSD.org/src/rev/6c8b3cf6ab11
branches:  trunk
changeset: 941103:6c8b3cf6ab11
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 19:56:41 2020 +0000

description:
Provide a global no-packed-address for both gcc and clang

diffstat:

 sys/modules/ffs/Makefile        |   4 ++--
 sys/modules/i915drmkms/Makefile |   3 ++-
 sys/modules/ipl/Makefile        |  16 ++++++++--------
 sys/modules/npf/Makefile        |   4 ++--
 sys/modules/pf/Makefile         |   8 ++++----
 sys/modules/slcompress/Makefile |   4 ++--
 sys/modules/udf/Makefile        |   5 +++--
 sys/modules/v7fs/Makefile       |   4 +++-
 8 files changed, 26 insertions(+), 22 deletions(-)

diffs (156 lines):

diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/ffs/Makefile
--- a/sys/modules/ffs/Makefile  Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/ffs/Makefile  Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.17 2020/10/18 15:02:12 christos Exp $
+#      $NetBSD: Makefile,v 1.18 2020/10/18 19:56:41 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -9,7 +9,7 @@
 CPPFLAGS+=     -DUFS_EXTATTR -DUFS_ACL
 
 CWARNFLAGS.clang=      -Wno-conversion
-CWARNFLAGS.ffs_appleufs.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ffs_appleufs.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
 
 
 SRCS+= ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_subr.c ffs_tables.c \
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/i915drmkms/Makefile
--- a/sys/modules/i915drmkms/Makefile   Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/i915drmkms/Makefile   Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2020/02/14 09:35:52 riastradh Exp $
+# $NetBSD: Makefile,v 1.16 2020/10/18 19:56:41 christos Exp $
 
 .include "../Makefile.inc"
 .include "../drmkms/Makefile.inc"
@@ -120,5 +120,6 @@
 COPTS.intel_ddi.c+=    -Wno-error=implicit-fallthrough
 COPTS.intel_sdvo.c+=   -Wno-error=implicit-fallthrough
 .endif
+COPTS.i915_guc_submission.c += ${NO_ADDR_OF_PACKED_MEMBER}
 
 .include <bsd.kmodule.mk>
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/ipl/Makefile
--- a/sys/modules/ipl/Makefile  Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/ipl/Makefile  Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2020/10/18 15:02:12 christos Exp $
+#      $NetBSD: Makefile,v 1.6 2020/10/18 19:56:42 christos Exp $
 #
 
 .include "../Makefile.inc"
@@ -57,12 +57,12 @@
 WARNS= 3
 
 CWARNFLAGS.clang+=     -Wno-self-assign
-CWARNFLAGS.fil.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.ip_fil_netbsd.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.ip_htable.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.ip_nat.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.ip_nat6.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.ip_proxy.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.ip_state.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+COPTS.fil.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ip_fil_netbsd.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ip_htable.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ip_nat.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ip_nat6.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ip_proxy.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.ip_state.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
 
 .include <bsd.kmodule.mk>
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/npf/Makefile
--- a/sys/modules/npf/Makefile  Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/npf/Makefile  Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2020/10/18 15:02:12 christos Exp $
+# $NetBSD: Makefile,v 1.28 2020/10/18 19:56:42 christos Exp $
 #
 # Public Domain.
 #
@@ -21,7 +21,7 @@
 CPPFLAGS+=     -DINET6
 CPPFLAGS+=     -I${S}/external/bsd/libnv/dist
 
-CWARNFLAGS.npf_inet.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+COPTS.npf_inet.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
 
 
 .include <bsd.kmodule.mk>
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/pf/Makefile
--- a/sys/modules/pf/Makefile   Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/pf/Makefile   Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/10/18 15:02:12 christos Exp $
+# $NetBSD: Makefile,v 1.15 2020/10/18 19:56:42 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -25,8 +25,8 @@
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
 COPTS.pf.c+=   -Wno-error=implicit-fallthrough
 .endif
-CWARNFLAGS.pf.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.pf_norm.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-CWARNFLAGS.pf_table.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+COPTS.pf.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.pf_norm.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.pf_table.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
 
 .include <bsd.kmodule.mk>
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/slcompress/Makefile
--- a/sys/modules/slcompress/Makefile   Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/slcompress/Makefile   Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2020/10/18 15:02:12 christos Exp $
+#      $NetBSD: Makefile,v 1.4 2020/10/18 19:56:42 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -9,7 +9,7 @@
 
 CPPFLAGS+=     -DINET
 
-CWARNFLAGS.slcompress.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+COPTS.slcompress.c+=   ${NO_ADDR_OF_PACKED_MEMBER}
 
 
 WARNS= 3
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/udf/Makefile
--- a/sys/modules/udf/Makefile  Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/udf/Makefile  Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2020/09/06 07:20:30 mrg Exp $
+#      $NetBSD: Makefile,v 1.6 2020/10/18 19:56:42 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -13,6 +13,7 @@
 
 CWARNFLAGS.clang=      -Wno-self-assign
 
-CWARNFLAGS.udf_allocation.c+=  ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+COPTS.udf_allocation.c+=       ${NO_ADDR_OF_PACKED_MEMBER}
+COPTS.udf_subr.c+=     ${NO_ADDR_OF_PACKED_MEMBER}
 
 .include <bsd.kmodule.mk>
diff -r 1dfb0d96cea2 -r 6c8b3cf6ab11 sys/modules/v7fs/Makefile
--- a/sys/modules/v7fs/Makefile Sun Oct 18 19:11:35 2020 +0000
+++ b/sys/modules/v7fs/Makefile Sun Oct 18 19:56:41 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2019/02/17 04:06:00 rin Exp $
+#      $NetBSD: Makefile,v 1.3 2020/10/18 19:56:42 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -22,6 +22,8 @@
 SRCS+= v7fs_vnops.c
 SRCS+= v7fs_vfsops.c
 
+COPTS.v7fs_superblock.c += ${NO_ADDR_OF_PACKED_MEMBER}
+
 WARNS= 3
 
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index