Module Name: src
Committed By: martin
Date: Thu Nov 14 13:16:35 UTC 2019
Modified Files:
src/external/apache2/llvm: Makefile.inc
Log Message:
For gcc < 9 disable stringop-overflow warnings - they are broken.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/apache2/llvm/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/apache2/llvm/Makefile.inc
diff -u src/external/apache2/llvm/Makefile.inc:1.1 src/external/apache2/llvm/Makefile.inc:1.2
--- src/external/apache2/llvm/Makefile.inc:1.1 Mon Nov 11 22:44:57 2019
+++ src/external/apache2/llvm/Makefile.inc Thu Nov 14 13:16:35 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2019/11/11 22:44:57 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.2 2019/11/14 13:16:35 martin Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
@@ -19,6 +19,9 @@ CONFIG_DIR:= ${.PARSEDIR}/autoconf
CPPFLAGS+= -I. -I${CLANG_SRCDIR}/include -I${LLVM_SRCDIR}/include
+# Bogus warning with -O2 in GCC 7 and 8.
+CWARNFLAGS.gcc+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} < 9:? -Wno-stringop-overflow :}
+
.if defined(HOSTLIB) || defined(HOSTPROG) || defined(_BSD_HOSTINIT_MK_)
LLVM_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/include
CLANG_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/tools/clang/include