Source-Changes-HG archive

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

[src/trunk]: src/external/apache2/llvm For gcc < 9 disable stringop-overflow ...



details:   https://anonhg.NetBSD.org/src/rev/3d7f73584023
branches:  trunk
changeset: 1004792:3d7f73584023
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Nov 14 13:16:35 2019 +0000

description:
For gcc < 9 disable stringop-overflow warnings - they are broken.

diffstat:

 external/apache2/llvm/Makefile.inc |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r c4e5979245b0 -r 3d7f73584023 external/apache2/llvm/Makefile.inc
--- a/external/apache2/llvm/Makefile.inc        Thu Nov 14 09:27:08 2019 +0000
+++ b/external/apache2/llvm/Makefile.inc        Thu Nov 14 13:16:35 2019 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index