Module Name: src Committed By: joerg Date: Sat Nov 16 15:51:26 UTC 2019
Modified Files: src/external/apache2/llvm/lib/libclangAST: Makefile Log Message: Build libclangAST with -O1 when the host compiler is GCC 7 to avoid miscompiles. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/apache2/llvm/lib/libclangAST/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/apache2/llvm/lib/libclangAST/Makefile diff -u src/external/apache2/llvm/lib/libclangAST/Makefile:1.1 src/external/apache2/llvm/lib/libclangAST/Makefile:1.2 --- src/external/apache2/llvm/lib/libclangAST/Makefile:1.1 Mon Nov 11 22:45:14 2019 +++ src/external/apache2/llvm/lib/libclangAST/Makefile Sat Nov 16 15:51:26 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $ +# $NetBSD: Makefile,v 1.2 2019/11/16 15:51:26 joerg Exp $ LIB= clangAST @@ -112,6 +112,10 @@ CLANG_TABLEGEN_OUTPUT= \ .if defined(HOSTLIB) .include <bsd.hostlib.mk> +BAD_GCC_VERSION!= case `${HOST_CXX} --version 2> /dev/null` in [cg]++*7.4*) echo yes ;; *) echo no ;; esac +. if ${BAD_GCC_VERSION} == "yes" +HOST_CXXFLAGS+= -O0 +. endif .else .include <bsd.lib.mk> .endif