Source-Changes-HG archive

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

[src/trunk]: src Pass -Wno-unused-command-line-argument for LLVM, discussed on



details:   https://anonhg.NetBSD.org/src/rev/f4171f500af4
branches:  trunk
changeset: 971943:f4171f500af4
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun May 10 06:38:24 2020 +0000

description:
Pass -Wno-unused-command-line-argument for LLVM, discussed on
tech-toolchain@.

diffstat:

 doc/HACKS           |  12 +++++++++++-
 share/mk/bsd.lib.mk |   4 ++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 2781d796ca91 -r f4171f500af4 doc/HACKS
--- a/doc/HACKS Sun May 10 06:30:57 2020 +0000
+++ b/doc/HACKS Sun May 10 06:38:24 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.206 2020/05/06 14:33:52 snj Exp $
+# $NetBSD: HACKS,v 1.207 2020/05/10 06:38:24 maxv Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -27,6 +27,16 @@
 #
 # this is a comment.
 
+hack   llvm needs no-unused-command-line-argument
+mdate  10 May 2020
+who    maxv
+file   share/mk/bsd.lib.mk 1.380 -> 1.381
+descr
+       To avoid LLVM warnings when compiling the kernel with special
+       CFLAGS such as KASAN on amd64 or ARMV83_PAC on aarch64, pass
+       -Wno-unused-command-line-argument.
+kcah
+
 hack   static linking with libpthread
 mdate  7 May 2019
 who    maya
diff -r 2781d796ca91 -r f4171f500af4 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Sun May 10 06:30:57 2020 +0000
+++ b/share/mk/bsd.lib.mk       Sun May 10 06:38:24 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.380 2019/08/27 22:48:54 kamil Exp $
+#      $NetBSD: bsd.lib.mk,v 1.381 2020/05/10 06:38:24 maxv Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -568,7 +568,7 @@
 __buildstdlib: .USE
        @echo building standard ${.TARGET:T:S/.o//:S/lib//} library
        @rm -f ${.TARGET}
-       @${LINK.c:S/-nostdinc//} -nostdlib ${LDFLAGS} -r -o ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
+       @${LINK.c:S/-nostdinc//} -nostdlib ${LDFLAGS} -Wno-unused-command-line-argument -r -o ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
 .endif
 
 .if !target(__buildproflib)



Home | Main Index | Thread Index | Old Index