Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/libc++/lib Ignore atomic alignment warnings on ...



details:   https://anonhg.NetBSD.org/src/rev/040f1eecabec
branches:  trunk
changeset: 320757:040f1eecabec
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Jul 17 18:58:10 2018 +0000

description:
Ignore atomic alignment warnings on ARM. The compiler doesn't
know that the library implementation will be fine.

diffstat:

 external/bsd/libc++/lib/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r e25792ee356c -r 040f1eecabec external/bsd/libc++/lib/Makefile
--- a/external/bsd/libc++/lib/Makefile  Tue Jul 17 18:57:25 2018 +0000
+++ b/external/bsd/libc++/lib/Makefile  Tue Jul 17 18:58:10 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2018/06/06 12:02:43 kamil Exp $
+#      $NetBSD: Makefile,v 1.12 2018/07/17 18:58:10 joerg Exp $
 
 LIB=           c++
 WARNS=         4
@@ -48,4 +48,8 @@
 LDFLAGS+=      -Wl,-z,defs
 .endif
 
+.if !empty(MACHINE_ARCH:Marm*) || !empty(MACHINE_ARCH:Mearm*)
+CWARNFLAGS+=           -Wno-atomic-alignment
+.endif
+
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index