Module Name:    src
Committed By:   christos
Date:           Mon May  6 23:20:51 UTC 2019

Modified Files:
        src/external/bsd/libc++/lib: Makefile

Log Message:
Avoid clang bug on earm with SSP/FORTIFY:

rt_libelftc_dem_gnu3.c:3567:3: warning: '__builtin___memset_chk' will always
      overflow destination buffer [-Wbuiltin-memcpy-chk-size]
                      memset(&f, 0, FLOAT_EXTENED_BYTES);


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/bsd/libc++/lib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/libc++/lib/Makefile
diff -u src/external/bsd/libc++/lib/Makefile:1.12 src/external/bsd/libc++/lib/Makefile:1.13
--- src/external/bsd/libc++/lib/Makefile:1.12	Tue Jul 17 14:58:10 2018
+++ src/external/bsd/libc++/lib/Makefile	Mon May  6 19:20:51 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2018/07/17 18:58:10 joerg Exp $
+#	$NetBSD: Makefile,v 1.13 2019/05/06 23:20:51 christos Exp $
 
 LIB=		c++
 WARNS=		4
@@ -44,6 +44,9 @@ CWARNFLAGS.clang+=	-Wno-error=missing-pr
 CWARNFLAGS.clang+=	-Wno-error=missing-field-initializers -Wno-error=switch
 CWARNFLAGS.clang+=	-Wno-error=implicit-exception-spec-mismatch
 
+# with SSP and FORTIFY, on earm...
+COPTS.rt_libelftc_dem_gnu3.c += ${${ACTIVE_CC} == "clang":? -Wno-error=builtin-memcpy-chk-size :}
+
 .if ${MKSANITIZER} != "yes"
 LDFLAGS+=	-Wl,-z,defs
 .endif

Reply via email to