Module Name: src Committed By: joerg Date: Mon Sep 2 14:34:58 UTC 2013
Modified Files: src/external/bsd/llvm: Makefile Makefile.inc link.mk src/external/bsd/llvm/bin: Makefile src/external/bsd/llvm/bin/llvm-ar: Makefile src/external/bsd/llvm/bin/llvm-objdump: Makefile src/external/bsd/llvm/config/llvm/Config: config.h.in src/external/bsd/llvm/config/llvm/Support: DataTypes.h src/external/bsd/llvm/lib: Makefile src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile src/external/bsd/llvm/lib/libLLVMInstrumentation: Makefile src/external/bsd/llvm/lib/libLLVMMC: Makefile src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMObject: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc: Makefile src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile src/external/bsd/llvm/lib/libLLVMSupport: Makefile src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile src/external/bsd/llvm/lib/libLLVMX86Disassembler: Makefile src/external/bsd/llvm/lib/libclangAnalysis: Makefile src/external/bsd/llvm/lib/libclangDriver: Makefile src/external/bsd/llvm/lib/libclangFormat: Makefile src/external/bsd/llvm/lib/libclangStaticAnalyzerCore: Makefile src/share/mk: bsd.own.mk src/tools: Makefile src/tools/llvm: Makefile Added Files: src/external/bsd/llvm/bin/lld: Makefile src/external/bsd/llvm/lib/libclangIndex: Makefile src/external/bsd/llvm/lib/liblldCore: Makefile src/external/bsd/llvm/lib/liblldDriver: Makefile src/external/bsd/llvm/lib/liblldPasses: Makefile src/external/bsd/llvm/lib/liblldReaderWriter: Makefile src/external/bsd/llvm/lib/liblldReaderWriterELF: Makefile src/external/bsd/llvm/lib/liblldReaderWriterELFHexagon: Makefile src/external/bsd/llvm/lib/liblldReaderWriterELFPPC: Makefile src/external/bsd/llvm/lib/liblldReaderWriterELFX86: Makefile src/external/bsd/llvm/lib/liblldReaderWriterELFX86_64: Makefile src/external/bsd/llvm/lib/liblldReaderWriterMachO: Makefile src/external/bsd/llvm/lib/liblldReaderWriterNative: Makefile src/external/bsd/llvm/lib/liblldReaderWriterPECOFF: Makefile src/external/bsd/llvm/lib/liblldReaderWriterYAML: Makefile src/tools/llvm-lib/liblldCore: Makefile src/tools/llvm-lib/liblldDriver: Makefile src/tools/llvm-lib/liblldPasses: Makefile src/tools/llvm-lib/liblldReaderWriter: Makefile src/tools/llvm-lib/liblldReaderWriterELF: Makefile src/tools/llvm-lib/liblldReaderWriterELFHexagon: Makefile src/tools/llvm-lib/liblldReaderWriterELFPPC: Makefile src/tools/llvm-lib/liblldReaderWriterELFX86: Makefile src/tools/llvm-lib/liblldReaderWriterELFX86_64: Makefile src/tools/llvm-lib/liblldReaderWriterMachO: Makefile src/tools/llvm-lib/liblldReaderWriterNative: Makefile src/tools/llvm-lib/liblldReaderWriterPECOFF: Makefile src/tools/llvm-lib/liblldReaderWriterYAML: Makefile src/tools/llvm-lld: Makefile Log Message: Update LLVM/Clang snapshot to r189662. This includes many improvements to the new SLP vectorizer, fast codegen support for PPC and using terminfo for the color sequences. In addition, add (optional) build infrastructure for lld to allow easier testing. This is controlled by MKLLD. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/Makefile \ src/external/bsd/llvm/link.mk cvs rdiff -u -r1.53 -r1.54 src/external/bsd/llvm/Makefile.inc cvs rdiff -u -r1.10 -r1.11 src/external/bsd/llvm/bin/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/bin/lld/Makefile cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/bin/llvm-ar/Makefile cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/bin/llvm-objdump/Makefile cvs rdiff -u -r1.7 -r1.8 src/external/bsd/llvm/config/llvm/Config/config.h.in cvs rdiff -u -r1.4 -r1.5 \ src/external/bsd/llvm/config/llvm/Support/DataTypes.h cvs rdiff -u -r1.32 -r1.33 src/external/bsd/llvm/lib/Makefile cvs rdiff -u -r1.13 -r1.14 src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile cvs rdiff -u -r1.7 -r1.8 src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile cvs rdiff -u -r1.9 -r1.10 \ src/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile cvs rdiff -u -r1.12 -r1.13 src/external/bsd/llvm/lib/libLLVMMC/Makefile cvs rdiff -u -r1.19 -r1.20 \ src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile cvs rdiff -u -r1.7 -r1.8 src/external/bsd/llvm/lib/libLLVMObject/Makefile cvs rdiff -u -r1.7 -r1.8 \ src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile cvs rdiff -u -r1.4 -r1.5 \ src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile cvs rdiff -u -r1.10 -r1.11 \ src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile cvs rdiff -u -r1.19 -r1.20 src/external/bsd/llvm/lib/libLLVMSupport/Makefile cvs rdiff -u -r1.11 -r1.12 \ src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile cvs rdiff -u -r1.9 -r1.10 src/external/bsd/llvm/lib/libclangAnalysis/Makefile cvs rdiff -u -r1.5 -r1.6 src/external/bsd/llvm/lib/libclangDriver/Makefile cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/lib/libclangFormat/Makefile cvs rdiff -u -r0 -r1.4 src/external/bsd/llvm/lib/libclangIndex/Makefile cvs rdiff -u -r1.12 -r1.13 \ src/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/lib/liblldCore/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/lib/liblldDriver/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/lib/liblldPasses/Makefile cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/lib/liblldReaderWriter/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterELF/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterELFHexagon/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterELFPPC/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterELFX86/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterELFX86_64/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterNative/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile cvs rdiff -u -r0 -r1.1 \ src/external/bsd/llvm/lib/liblldReaderWriterYAML/Makefile cvs rdiff -u -r1.749 -r1.750 src/share/mk/bsd.own.mk cvs rdiff -u -r1.169 -r1.170 src/tools/Makefile cvs rdiff -u -r1.16 -r1.17 src/tools/llvm/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldCore/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldDriver/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldPasses/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriter/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterELF/Makefile cvs rdiff -u -r0 -r1.1 \ src/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterELFX86/Makefile cvs rdiff -u -r0 -r1.1 \ src/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterMachO/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterNative/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/liblldReaderWriterYAML/Makefile cvs rdiff -u -r0 -r1.1 src/tools/llvm-lld/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/llvm/Makefile diff -u src/external/bsd/llvm/Makefile:1.3 src/external/bsd/llvm/Makefile:1.4 --- src/external/bsd/llvm/Makefile:1.3 Wed Feb 27 21:25:08 2013 +++ src/external/bsd/llvm/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2013/02/27 21:25:08 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2013/09/02 14:34:55 joerg Exp $ .include <bsd.init.mk> @@ -15,10 +15,11 @@ SUBDIR+= librt .include "Makefile.inc" checkout: - svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR} svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/trunk ${CLANG_SRCDIR} svn co -r ${COMPILER_RT_REVISION} ${SVN_ROOT}/compiler-rt/trunk \ ${COMPILER_RT_SRCDIR} + svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/trunk ${LLD_SRCDIR} + svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR} checkout-mclinker: if [ -d ${MCLINKER_SRCDIR}/.git ]; then \ Index: src/external/bsd/llvm/link.mk diff -u src/external/bsd/llvm/link.mk:1.3 src/external/bsd/llvm/link.mk:1.4 --- src/external/bsd/llvm/link.mk:1.3 Wed Feb 27 21:25:08 2013 +++ src/external/bsd/llvm/link.mk Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: link.mk,v 1.3 2013/02/27 21:25:08 joerg Exp $ +# $NetBSD: link.mk,v 1.4 2013/09/02 14:34:55 joerg Exp $ .include <bsd.own.mk> @@ -20,6 +20,12 @@ LDADD+= -L${CLANG_OBJDIR.${l}} -l${l} DPADD+= ${CLANG_OBJDIR.${l}}/lib${l}.a .endfor +.for l in ${LLD_LIBS} +LLD_OBJDIR.${l}!= cd ${LIB_BASE}/lib${l} && ${PRINTOBJDIR} +LDADD+= -L${LLD_OBJDIR.${l}} -l${l} +DPADD+= ${LLD_OBJDIR.${l}}/lib${l}.a +.endfor + .for l in ${LLVM_LIBS} LLVM_OBJDIR.${l}!= cd ${LIB_BASE}/libLLVM${l} && ${PRINTOBJDIR} LDADD+= -L${LLVM_OBJDIR.${l}} -lLLVM${l} @@ -27,8 +33,12 @@ DPADD+= ${LLVM_OBJDIR.${l}}/libLLVM${l}. .endfor .if defined(HOSTPROG) -LDADD_NEED_DL= cat ${LLVM_TOOLCONF_OBJDIR}/need-dl 2> /dev/null -LDADD+= ${LDADD_NEED_DL:sh} +LDADD_NEED_DL= cat ${LLVM_TOOLCONF_OBJDIR}/need-dl 2> /dev/null +LDADD_NEED_TERMINFO= cat ${LLVM_TOOLCONF_OBJDIR}/need-terminfo 2> /dev/null +LDADD+= ${LDADD_NEED_DL:sh} ${LDADD_NEED_TERMINFO:sh} +.else +LDADD+= -lterminfo +DPADD+= ${LIBTERMINFO} .endif LDADD+= -lpthread Index: src/external/bsd/llvm/Makefile.inc diff -u src/external/bsd/llvm/Makefile.inc:1.53 src/external/bsd/llvm/Makefile.inc:1.54 --- src/external/bsd/llvm/Makefile.inc:1.53 Sun Jul 7 21:36:42 2013 +++ src/external/bsd/llvm/Makefile.inc Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.53 2013/07/07 21:36:42 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.54 2013/09/02 14:34:55 joerg Exp $ .if !defined(LLVM_TOPLEVEL_MK) LLVM_TOPLEVEL_MK= @@ -7,10 +7,11 @@ LLVM_TOPLEVEL_MK= SVN_ROOT= http://llvm.org/svn/llvm-project -COMMON_REVISION= 185778 -LLVM_REVISION= ${COMMON_REVISION} +COMMON_REVISION= 189662 CLANG_REVISION= ${COMMON_REVISION} COMPILER_RT_REVISION= ${COMMON_REVISION} +LLD_REVISION= ${COMMON_REVISION} +LLVM_REVISION= ${COMMON_REVISION} MCLINKER_REVISION= deeb2a77b4165827316f88e0a7ba4ba6b743a080 MCLINKER_ROOT= https://code.google.com/p/mclinker/ @@ -18,14 +19,15 @@ MCLINKER_ROOT= https://code.google.com/ LLVM_VERSION= 3.4 CLANG_VERSION= 3.4 -LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm -CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang COMPILER_RT_SRCDIR:= ${.PARSEDIR}/dist/compiler-rt +CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang +LLD_SRCDIR:= ${.PARSEDIR}/dist/lld +LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm MCLINKER_SRCDIR:= ${.PARSEDIR}/dist/mclinker LLVM_TOPLEVEL:= ${.PARSEDIR} -CPPFLAGS+= -I. -I${LLVM_SRCDIR}/include -I${CLANG_SRCDIR}/include \ - -I${MCLINKER_SRCDIR}/include \ +CPPFLAGS+= -I. -I${CLANG_SRCDIR}/include -I${LLD_SRCDIR}/include \ + -I${LLVM_SRCDIR}/include -I${MCLINKER_SRCDIR}/include \ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \ -D__STDC_FORMAT_MACROS @@ -37,13 +39,21 @@ LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR} LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR} HOST_CPPFLAGS+= ${CPPFLAGS} HOST_CXXFLAGS+= -O2 -g -fno-rtti -fno-exceptions +.if ${MKLLD:Uno} == "yes" +HOST_CPPFLAGS+= -std=c++11 +.endif .else LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config CLANG_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config MCLINKER_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config/mclinker LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR} +.if ${MKLLD:Uno} == "yes" +CPPFLAGS+= -std=c++11 +.endif CXXFLAGS+= -fno-rtti -fno-exceptions +CXXFLAGS+= -ffunction-sections -fdata-sections +LDFLAGS+= -Wl,--gc-sections .endif CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG} \ -I${CLANG_INCLUDE_CONFIG} -I${MCLINKER_INCLUDE_CONFIG} @@ -56,4 +66,8 @@ LLVM_CONFIGURE_ARGS= \ --host=${MACHINE_GNU_PLATFORM} \ llvm_cv_gnu_make_command=${MAKE} +.for tool in circo dot dotty fdp neato twopi xdot +LLVM_CONFIGURE_ARGS+= ac_cv_path_${tool:tu}="echo ${tool}" +.endfor + .endif Index: src/external/bsd/llvm/bin/Makefile diff -u src/external/bsd/llvm/bin/Makefile:1.10 src/external/bsd/llvm/bin/Makefile:1.11 --- src/external/bsd/llvm/bin/Makefile:1.10 Sun Jul 7 21:36:42 2013 +++ src/external/bsd/llvm/bin/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2013/07/07 21:36:42 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2013/09/02 14:34:55 joerg Exp $ .include <bsd.own.mk> @@ -6,6 +6,11 @@ SUBDIR= clang \ clang-tblgen \ tblgen +.if ${MKLLD} != "no" +SUBDIR+= \ + lld +.endif + .if ${MKMCLINKER} != "no" SUBDIR+= \ llvm-mcld Index: src/external/bsd/llvm/bin/llvm-ar/Makefile diff -u src/external/bsd/llvm/bin/llvm-ar/Makefile:1.3 src/external/bsd/llvm/bin/llvm-ar/Makefile:1.4 --- src/external/bsd/llvm/bin/llvm-ar/Makefile:1.3 Sun Jul 7 21:36:43 2013 +++ src/external/bsd/llvm/bin/llvm-ar/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2013/07/07 21:36:43 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2013/09/02 14:34:55 joerg Exp $ PROG_CXX= llvm-ar NOMAN= yes @@ -7,14 +7,11 @@ NOMAN= yes .PATH: ${LLVM_SRCDIR}/tools/llvm-ar -SRCS= llvm-ar.cpp \ - Archive.cpp \ - ArchiveReader.cpp \ - ArchiveWriter.cpp +SRCS= llvm-ar.cpp LLVM_LIBS+= \ + Object \ BitReader \ - IR \ Support .include "${.PARSEDIR}/../../link.mk" Index: src/external/bsd/llvm/bin/llvm-objdump/Makefile diff -u src/external/bsd/llvm/bin/llvm-objdump/Makefile:1.5 src/external/bsd/llvm/bin/llvm-objdump/Makefile:1.6 --- src/external/bsd/llvm/bin/llvm-objdump/Makefile:1.5 Sun Jul 7 21:36:43 2013 +++ src/external/bsd/llvm/bin/llvm-objdump/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2013/07/07 21:36:43 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2013/09/02 14:34:55 joerg Exp $ PROG_CXX= llvm-objdump NOMAN= yes @@ -13,7 +13,6 @@ SRCS= llvm-objdump.cpp \ MachODump.cpp LLVM_LIBS+= \ - Object \ AArch64Disassembler \ AArch64TargetInfo \ AArch64MCTargetDesc \ @@ -45,6 +44,7 @@ LLVM_LIBS+= \ DebugInfo \ MCParser \ MC \ + Object \ IR \ Support Index: src/external/bsd/llvm/config/llvm/Config/config.h.in diff -u src/external/bsd/llvm/config/llvm/Config/config.h.in:1.7 src/external/bsd/llvm/config/llvm/Config/config.h.in:1.8 --- src/external/bsd/llvm/config/llvm/Config/config.h.in:1.7 Sun Jul 7 21:36:43 2013 +++ src/external/bsd/llvm/config/llvm/Config/config.h.in Mon Sep 2 14:34:55 2013 @@ -52,15 +52,9 @@ /* Define to 1 if you have the `argz_stringify' function. */ /* #undef HAVE_ARGZ_STRINGIFY */ -/* Define to 1 if you have the <assert.h> header file. */ -#define HAVE_ASSERT_H 1 - /* Define to 1 if you have the `backtrace' function. */ /* #undef HAVE_BACKTRACE */ -/* Define to 1 if you have the `bcopy' function. */ -/* #undef HAVE_BCOPY */ - /* Define to 1 if you have the `ceilf' function. */ #define HAVE_CEILF 1 @@ -76,9 +70,6 @@ /* can use __crashreporter_info__ */ #define HAVE_CRASHREPORTER_INFO 0 -/* Define to 1 if you have the <ctype.h> header file. */ -#define HAVE_CTYPE_H 1 - /* Define to 1 if you have the <cxxabi.h> header file. */ /* #undef HAVE_CXXABI_H */ @@ -101,9 +92,6 @@ /* Define if you have the GNU dld library. */ /* #undef HAVE_DLD */ -/* Define to 1 if you have the <dld.h> header file. */ -/* #undef HAVE_DLD_H */ - /* Define to 1 if you have the `dlerror' function. */ #define HAVE_DLERROR 1 @@ -113,9 +101,6 @@ /* Define if dlopen() is available on this platform. */ #define HAVE_DLOPEN 1 -/* Define to 1 if you have the <dl.h> header file. */ -/* #undef HAVE_DL_H */ - /* Define if the dot program is available */ /* #undef HAVE_DOT */ @@ -196,9 +181,6 @@ /* Define if the gv program is available */ /* #undef HAVE_GV */ -/* Define to 1 if you have the `index' function. */ -/* #undef HAVE_INDEX */ - /* Define to 1 if the system has the type `int64_t'. */ #define HAVE_INT64_T 1 @@ -241,10 +223,7 @@ /* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1 -/* Define to 1 if you have the <limits.h> header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you can use -Wl,-export-dynamic. */ +/* Define if you can use -rdynamic. */ #define HAVE_LINK_EXPORT_DYNAMIC 1 /* Define to 1 if you have the <link.h> header file. */ @@ -284,12 +263,6 @@ /* Define to 1 if you have the `malloc_zone_statistics' function. */ /* #undef HAVE_MALLOC_ZONE_STATISTICS */ -/* Define to 1 if you have the `memcpy' function. */ -#define HAVE_MEMCPY 1 - -/* Define to 1 if you have the `memmove' function. */ -#define HAVE_MEMMOVE 1 - /* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1 @@ -360,9 +333,6 @@ /* Define to 1 if you have the `realpath' function. */ #define HAVE_REALPATH 1 -/* Define to 1 if you have the `rindex' function. */ -/* #undef HAVE_RINDEX */ - /* Define to 1 if you have the `rintf' function. */ #define HAVE_RINTF 1 @@ -402,9 +372,6 @@ /* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1 -/* Define to 1 if you have the <stdio.h> header file. */ -#define HAVE_STDIO_H 1 - /* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 @@ -414,15 +381,6 @@ /* Set to 1 if the std::isnan function is found in <cmath> */ #define HAVE_STD_ISNAN_IN_CMATH 1 -/* Define to 1 if you have the `strchr' function. */ -#define HAVE_STRCHR 1 - -/* Define to 1 if you have the `strcmp' function. */ -#define HAVE_STRCMP 1 - -/* Define to 1 if you have the `strdup' function. */ -#define HAVE_STRDUP 1 - /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 @@ -435,9 +393,6 @@ /* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1 -/* Define to 1 if you have the `strrchr' function. */ -#define HAVE_STRRCHR 1 - /* Define to 1 if you have the `strtof' function. */ #define HAVE_STRTOF 1 @@ -454,9 +409,6 @@ */ /* #undef HAVE_SYS_DIR_H */ -/* Define to 1 if you have the <sys/dl.h> header file. */ -/* #undef HAVE_SYS_DL_H */ - /* Define to 1 if you have the <sys/ioctl.h> header file. */ #define HAVE_SYS_IOCTL_H 1 @@ -488,6 +440,9 @@ /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ #define HAVE_SYS_WAIT_H 1 +/* Define if the setupterm() function is supported this platform. */ +#define HAVE_TERMINFO 1 + /* Define to 1 if you have the <termios.h> header file. */ #define HAVE_TERMIOS_H 1 @@ -509,14 +464,11 @@ /* Define to 1 if you have the <valgrind/valgrind.h> header file. */ /* #undef HAVE_VALGRIND_VALGRIND_H */ -/* Define to 1 if you have the <windows.h> header file. */ -/* #undef HAVE_WINDOWS_H */ - /* Define to 1 if you have the `writev' function. */ #define HAVE_WRITEV 1 -/* Define if the xdot.py program is available */ -/* #undef HAVE_XDOT_PY */ +/* Define if the xdot program is available */ +/* #undef HAVE_XDOT */ /* Define to 1 if you have the <zlib.h> header file. */ #define HAVE_ZLIB_H 1 @@ -573,7 +525,7 @@ /* #undef HAVE____CHKSTK */ /* Linker version detected at compile time. */ -#define HOST_LINK_VERSION "1" +#define HOST_LINK_VERSION "2.23.2" /* Installation directory for binary executables */ #define LLVM_BINDIR "/usr/bin" @@ -665,8 +617,8 @@ /* Define to path to twopi program if found or 'echo twopi' otherwise */ /* #undef LLVM_PATH_TWOPI */ -/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */ -/* #undef LLVM_PATH_XDOT_PY */ +/* Define to path to xdot program if found or 'echo xdot' otherwise */ +/* #undef LLVM_PATH_XDOT */ /* Installation prefix directory */ #define LLVM_PREFIX "/usr" Index: src/external/bsd/llvm/config/llvm/Support/DataTypes.h diff -u src/external/bsd/llvm/config/llvm/Support/DataTypes.h:1.4 src/external/bsd/llvm/config/llvm/Support/DataTypes.h:1.5 --- src/external/bsd/llvm/config/llvm/Support/DataTypes.h:1.4 Sun Jul 7 21:36:43 2013 +++ src/external/bsd/llvm/config/llvm/Support/DataTypes.h Mon Sep 2 14:34:55 2013 @@ -27,7 +27,6 @@ #ifndef SUPPORT_DATATYPES_H #define SUPPORT_DATATYPES_H -#define HAVE_SYS_TYPES_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UINT64_T 1 @@ -55,9 +54,7 @@ #endif /* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */ -#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> -#endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> @@ -102,7 +99,7 @@ typedef unsigned char uint8_t; #if defined(_WIN64) typedef signed __int64 ssize_t; #else - typedef signed long ssize_t; + typedef signed int ssize_t; #endif #ifndef INT8_MAX Index: src/external/bsd/llvm/lib/Makefile diff -u src/external/bsd/llvm/lib/Makefile:1.32 src/external/bsd/llvm/lib/Makefile:1.33 --- src/external/bsd/llvm/lib/Makefile:1.32 Sun Jul 7 21:36:43 2013 +++ src/external/bsd/llvm/lib/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2013/07/07 21:36:43 joerg Exp $ +# $NetBSD: Makefile,v 1.33 2013/09/02 14:34:55 joerg Exp $ .include <bsd.own.mk> @@ -117,9 +117,27 @@ SUBDIR+= \ libclangASTMatchers \ libclangASTMatchersDynamic \ libclangFormat \ + libclangIndex \ libclangTooling .endif +.if ${MKLLD} != "no" +SUBDIR+= \ + liblldCore \ + liblldDriver \ + liblldPasses \ + liblldReaderWriter \ + liblldReaderWriterELF \ + liblldReaderWriterELFHexagon \ + liblldReaderWriterELFPPC \ + liblldReaderWriterELFX86 \ + liblldReaderWriterELFX86_64 \ + liblldReaderWriterMachO \ + liblldReaderWriterNative \ + liblldReaderWriterPECOFF \ + liblldReaderWriterYAML +.endif + .if ${MKMCLINKER} != "no" SUBDIR+= \ libMCLinkerADT \ Index: src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile diff -u src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile:1.13 src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile:1.14 --- src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile:1.13 Sun Mar 24 13:02:17 2013 +++ src/external/bsd/llvm/lib/libLLVMAnalysis/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2013/03/24 13:02:17 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2013/09/02 14:34:55 joerg Exp $ LIB= LLVMAnalysis @@ -15,6 +15,7 @@ SRCS+= AliasAnalysis.cpp \ BasicAliasAnalysis.cpp \ BlockFrequencyInfo.cpp \ BranchProbabilityInfo.cpp \ + CFG.cpp \ CFGPrinter.cpp \ CaptureTracking.cpp \ CodeMetrics.cpp \ Index: src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile diff -u src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile:1.7 src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile:1.8 --- src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile:1.7 Thu Apr 25 13:59:57 2013 +++ src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2013/04/25 13:59:57 joerg Exp $ +# $NetBSD: Makefile,v 1.8 2013/09/02 14:34:55 joerg Exp $ LIB= LLVMAsmPrinter @@ -11,6 +11,7 @@ SRCS+= ARMException.cpp \ AsmPrinterDwarf.cpp \ AsmPrinterInlineAsm.cpp \ DIE.cpp \ + DIEHash.cpp \ DwarfAccelTable.cpp \ DwarfCFIException.cpp \ DwarfCompileUnit.cpp \ Index: src/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile diff -u src/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile:1.9 src/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile:1.10 --- src/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile:1.9 Tue May 28 17:37:34 2013 +++ src/external/bsd/llvm/lib/libLLVMInstrumentation/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2013/05/28 17:37:34 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMInstrumentation @@ -7,8 +7,8 @@ LIB= LLVMInstrumentation .PATH: ${LLVM_SRCDIR}/lib/Transforms/Instrumentation SRCS+= AddressSanitizer.cpp \ - BlackList.cpp \ BoundsChecking.cpp \ + DataFlowSanitizer.cpp \ DebugIR.cpp \ EdgeProfiling.cpp \ GCOVProfiling.cpp \ Index: src/external/bsd/llvm/lib/libLLVMMC/Makefile diff -u src/external/bsd/llvm/lib/libLLVMMC/Makefile:1.12 src/external/bsd/llvm/lib/libLLVMMC/Makefile:1.13 --- src/external/bsd/llvm/lib/libLLVMMC/Makefile:1.12 Tue May 28 17:37:34 2013 +++ src/external/bsd/llvm/lib/libLLVMMC/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2013/05/28 17:37:34 joerg Exp $ +# $NetBSD: Makefile,v 1.13 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMMC @@ -32,6 +32,7 @@ SRCS+= ELFObjectWriter.cpp \ MCModule.cpp \ MCMachOStreamer.cpp \ MCMachObjectTargetWriter.cpp \ + MCModuleYAML.cpp \ MCNullStreamer.cpp \ MCObjectDisassembler.cpp \ MCObjectFileInfo.cpp \ Index: src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile diff -u src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile:1.19 src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile:1.20 --- src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile:1.19 Sun Jul 7 21:36:44 2013 +++ src/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2013/07/07 21:36:44 joerg Exp $ +# $NetBSD: Makefile,v 1.20 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMMipsCodeGen @@ -26,7 +26,6 @@ SRCS+= Mips16ISelDAGToDAG.cpp \ MipsMachineFunction.cpp \ MipsModuleISelDAGToDAG.cpp \ MipsMCInstLower.cpp \ - MipsOptimizeMathLibCalls.cpp \ MipsOs16.cpp \ MipsRegisterInfo.cpp \ MipsSEISelLowering.cpp \ Index: src/external/bsd/llvm/lib/libLLVMObject/Makefile diff -u src/external/bsd/llvm/lib/libLLVMObject/Makefile:1.7 src/external/bsd/llvm/lib/libLLVMObject/Makefile:1.8 --- src/external/bsd/llvm/lib/libLLVMObject/Makefile:1.7 Sun Jul 7 21:36:44 2013 +++ src/external/bsd/llvm/lib/libLLVMObject/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2013/07/07 21:36:44 joerg Exp $ +# $NetBSD: Makefile,v 1.8 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMObject NOGCCERROR= yes @@ -11,6 +11,7 @@ SRCS+= Archive.cpp \ Binary.cpp \ COFFObjectFile.cpp \ COFFYAML.cpp \ + ELF.cpp \ ELFObjectFile.cpp \ ELFYAML.cpp \ Error.cpp \ Index: src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile diff -u src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile:1.7 src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile:1.8 --- src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile:1.7 Tue May 28 17:37:35 2013 +++ src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2013/05/28 17:37:35 joerg Exp $ +# $NetBSD: Makefile,v 1.8 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMPowerPCCodeGen @@ -14,6 +14,7 @@ SRCS+= PPCAsmPrinter.cpp \ PPCInstrInfo.cpp \ PPCISelDAGToDAG.cpp \ PPCISelLowering.cpp \ + PPCFastISel.cpp \ PPCFrameLowering.cpp \ PPCJITInfo.cpp \ PPCMachineFunctionInfo.cpp \ @@ -31,6 +32,7 @@ TABLEGEN_OUTPUT= \ PPCGenAsmWriter.inc|-gen-asm-writer \ PPCGenAsmMatcher.inc|-gen-asm-matcher \ PPCGenCodeEmitter.inc|-gen-emitter \ + PPCGenFastISel.inc|-gen-fast-isel \ PPCGenMCCodeEmitter.inc|-gen-emitter^-mc-emitter \ PPCGenRegisterInfo.inc|-gen-register-info \ PPCGenInstrInfo.inc|-gen-instr-info \ Index: src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile diff -u src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile:1.4 src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile:1.5 --- src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile:1.4 Tue May 28 17:37:35 2013 +++ src/external/bsd/llvm/lib/libLLVMPowerPCMCTargetDesc/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2013/05/28 17:37:35 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMPowerPCMCTargetDesc @@ -15,6 +15,7 @@ SRCS+= PPCAsmBackend.cpp \ PPCMCCodeEmitter.cpp \ PPCMCExpr.cpp \ PPCMCTargetDesc.cpp \ + PPCMachObjectWriter.cpp \ PPCPredicates.cpp .if defined(HOSTLIB) Index: src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile diff -u src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile:1.10 src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile:1.11 --- src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile:1.10 Sun Jul 7 21:36:44 2013 +++ src/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2013/07/07 21:36:44 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMScalarOpts @@ -14,6 +14,7 @@ SRCS+= ADCE.cpp \ DCE.cpp \ DeadStoreElimination.cpp \ EarlyCSE.cpp \ + FlattenCFGPass.cpp \ GlobalMerge.cpp \ GVN.cpp \ IndVarSimplify.cpp \ @@ -28,6 +29,7 @@ SRCS+= ADCE.cpp \ LoopUnswitch.cpp \ LowerAtomic.cpp \ MemCpyOptimizer.cpp \ + PartiallyInlineLibCalls.cpp \ Reassociate.cpp \ Reg2Mem.cpp \ SCCP.cpp \ Index: src/external/bsd/llvm/lib/libLLVMSupport/Makefile diff -u src/external/bsd/llvm/lib/libLLVMSupport/Makefile:1.19 src/external/bsd/llvm/lib/libLLVMSupport/Makefile:1.20 --- src/external/bsd/llvm/lib/libLLVMSupport/Makefile:1.19 Sun Jul 7 21:36:44 2013 +++ src/external/bsd/llvm/lib/libLLVMSupport/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2013/07/07 21:36:44 joerg Exp $ +# $NetBSD: Makefile,v 1.20 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMSupport @@ -110,6 +110,10 @@ SRCS+= Host.inc \ ThreadLocal.inc \ TimeValue.inc +.for src in ${SRCS:M*.c} +COPTS.${src}+= -std=gnu99 +.endfor + .if defined(HOSTLIB) .include <bsd.hostlib.mk> .else Index: src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile diff -u src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile:1.11 src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile:1.12 --- src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile:1.11 Wed Jan 23 15:03:00 2013 +++ src/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2013/01/23 15:03:00 joerg Exp $ +# $NetBSD: Makefile,v 1.12 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMTransformsUtils @@ -15,6 +15,7 @@ SRCS+= BasicBlockUtils.cpp \ CmpInstAnalysis.cpp \ CodeExtractor.cpp \ DemoteRegToStack.cpp \ + FlattenCFG.cpp \ InlineFunction.cpp \ InstructionNamer.cpp \ IntegerDivision.cpp \ @@ -35,6 +36,7 @@ SRCS+= BasicBlockUtils.cpp \ SimplifyIndVar.cpp \ SimplifyInstructions.cpp \ SimplifyLibCalls.cpp \ + SpecialCaseList.cpp \ UnifyFunctionExitNodes.cpp \ Utils.cpp \ ValueMapper.cpp Index: src/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile diff -u src/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile:1.1 src/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile:1.2 --- src/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile:1.1 Sun Feb 6 01:14:04 2011 +++ src/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:04 joerg Exp $ +# $NetBSD: Makefile,v 1.2 2013/09/02 14:34:56 joerg Exp $ LIB= LLVMX86Disassembler @@ -12,6 +12,10 @@ CPPFLAGS+= -I${X86_OBJDIR} SRCS+= X86Disassembler.cpp \ X86DisassemblerDecoder.c +.for src in ${SRCS:M*.c} +COPTS.${src}+= -std=gnu99 +.endfor + .if defined(HOSTLIB) .include <bsd.hostlib.mk> .else Index: src/external/bsd/llvm/lib/libclangAnalysis/Makefile diff -u src/external/bsd/llvm/lib/libclangAnalysis/Makefile:1.9 src/external/bsd/llvm/lib/libclangAnalysis/Makefile:1.10 --- src/external/bsd/llvm/lib/libclangAnalysis/Makefile:1.9 Sun Sep 23 17:22:24 2012 +++ src/external/bsd/llvm/lib/libclangAnalysis/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2012/09/23 17:22:24 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2013/09/02 14:34:56 joerg Exp $ LIB= clangAnalysis @@ -13,6 +13,7 @@ SRCS+= AnalysisDeclContext.cpp \ CFGStmtMap.cpp \ CallGraph.cpp \ CocoaConventions.cpp \ + Consumed.cpp \ Dominators.cpp \ FormatString.cpp \ LiveVariables.cpp \ Index: src/external/bsd/llvm/lib/libclangDriver/Makefile diff -u src/external/bsd/llvm/lib/libclangDriver/Makefile:1.5 src/external/bsd/llvm/lib/libclangDriver/Makefile:1.6 --- src/external/bsd/llvm/lib/libclangDriver/Makefile:1.5 Sun Jul 7 21:36:44 2013 +++ src/external/bsd/llvm/lib/libclangDriver/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2013/07/07 21:36:44 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2013/09/02 14:34:56 joerg Exp $ LIB= clangDriver @@ -13,6 +13,7 @@ SRCS+= Action.cpp \ DriverOptions.cpp \ Job.cpp \ Phases.cpp \ + SanitizerArgs.cpp \ Tool.cpp \ ToolChain.cpp \ ToolChains.cpp \ Index: src/external/bsd/llvm/lib/libclangFormat/Makefile diff -u src/external/bsd/llvm/lib/libclangFormat/Makefile:1.3 src/external/bsd/llvm/lib/libclangFormat/Makefile:1.4 --- src/external/bsd/llvm/lib/libclangFormat/Makefile:1.3 Thu Apr 25 13:59:58 2013 +++ src/external/bsd/llvm/lib/libclangFormat/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2013/04/25 13:59:58 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2013/09/02 14:34:56 joerg Exp $ LIB= clangFormat @@ -7,7 +7,9 @@ LIB= clangFormat .PATH: ${CLANG_SRCDIR}/lib/Format SRCS+= BreakableToken.cpp \ + ContinuationIndenter.cpp \ Format.cpp \ + FormatToken.cpp \ TokenAnnotator.cpp \ UnwrappedLineParser.cpp \ WhitespaceManager.cpp Index: src/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile diff -u src/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile:1.12 src/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile:1.13 --- src/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile:1.12 Sun Sep 23 17:22:25 2012 +++ src/external/bsd/llvm/lib/libclangStaticAnalyzerCore/Makefile Mon Sep 2 14:34:56 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2012/09/23 17:22:25 joerg Exp $ +# $NetBSD: Makefile,v 1.13 2013/09/02 14:34:56 joerg Exp $ LIB= clangStaticAnalyzerCore @@ -42,8 +42,7 @@ SRCS+= APSIntType.cpp \ SValBuilder.cpp \ SVals.cpp \ SubEngine.cpp \ - SymbolManager.cpp \ - TextPathDiagnostics.cpp + SymbolManager.cpp .if defined(HOSTLIB) .include <bsd.hostlib.mk> Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.749 src/share/mk/bsd.own.mk:1.750 --- src/share/mk/bsd.own.mk:1.749 Mon Aug 26 22:15:51 2013 +++ src/share/mk/bsd.own.mk Mon Sep 2 14:34:55 2013 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.749 2013/08/26 22:15:51 matt Exp $ +# $NetBSD: bsd.own.mk,v 1.750 2013/09/02 14:34:55 joerg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -904,7 +904,7 @@ _MKVARS.no= \ MKBSDGREP MKBSDTAR \ MKCATPAGES MKCRYPTO_RC5 MKDEBUG \ MKDEBUGLIB MKDTRACE MKEXTSRC \ - MKKYUA MKLINT \ + MKKYUA MKLLD MKLINT \ MKMANZ MKMCLINKER MKOBJDIRS \ MKLIBCXX MKLLVM MKPCC \ MKPIGZGZIP \ Index: src/tools/Makefile diff -u src/tools/Makefile:1.169 src/tools/Makefile:1.170 --- src/tools/Makefile:1.169 Fri Jul 19 20:58:58 2013 +++ src/tools/Makefile Mon Sep 2 14:34:57 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.169 2013/07/19 20:58:58 matt Exp $ +# $NetBSD: Makefile,v 1.170 2013/09/02 14:34:57 joerg Exp $ .include <bsd.own.mk> .include <bsd.endian.mk> @@ -132,6 +132,9 @@ SUBDIR+= \ llvm-include .WAIT \ llvm-lib .WAIT \ llvm-clang +.if ${MKLLD} != "no" +SUBDIR+= llvm-lld +.endif .if ${MKMCLINKER} != "no" SUBDIR+= llvm-mcld .endif Index: src/tools/llvm/Makefile diff -u src/tools/llvm/Makefile:1.16 src/tools/llvm/Makefile:1.17 --- src/tools/llvm/Makefile:1.16 Wed Feb 20 14:13:31 2013 +++ src/tools/llvm/Makefile Mon Sep 2 14:34:57 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2013/02/20 14:13:31 joerg Exp $ +# $NetBSD: Makefile,v 1.17 2013/09/02 14:34:57 joerg Exp $ .include <bsd.init.mk> @@ -9,7 +9,7 @@ .include "Makefile.inc" .include "${LLVM_TOPLEVEL}/lib/Makefile.inc" -realdepends realall: config/config.status need-dl +realdepends realall: config/config.status need-dl need-terminfo config/config.status: ${LLVM_SRCDIR}/configure mkdir -p config @@ -30,7 +30,16 @@ need-dl: echo > ${.TARGET}; \ fi -CLEANFILES+= need-dl need-dl.c need-dl.out +need-terminfo: + printf '#include <term.h>\nint main(void){return setupterm(0, 0, 0);}' > need-terminfo.c + for lib in tinfo terminfo ncurses curses; do \ + if ${HOST_CC} -o need-terminfo.out need-terminfo.c -l$$lib > /dev/null 2>&1; then \ + echo -l$$lib > ${.TARGET}; \ + break; \ + fi; \ + done + +CLEANFILES+= need-dl need-dl.c need-dl.out need-terminfo need-terminfo.c need-terminfo.out cleandir: cleandir-llvm Added files: Index: src/external/bsd/llvm/bin/lld/Makefile diff -u /dev/null src/external/bsd/llvm/bin/lld/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/bin/lld/Makefile Mon Sep 2 14:34:55 2013 @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:55 joerg Exp $ + +PROG_CXX= lld +NOMAN= yes + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/tools/lld + +SRCS= lld.cpp + +LLD_LIBS+= \ + lldDriver \ + lldReaderWriterELF \ + lldReaderWriterELFHexagon \ + lldReaderWriterELFPPC \ + lldReaderWriterELFX86 \ + lldReaderWriterELFX86_64 \ + lldReaderWriterMachO \ + lldReaderWriterNative \ + lldReaderWriterPECOFF \ + lldReaderWriter \ + lldReaderWriterYAML \ + lldPasses \ + lldCore + +LLVM_LIBS+= \ + Object \ + Option \ + Support + +.include "${.PARSEDIR}/../../link.mk" + +.include <bsd.prog.mk> Index: src/external/bsd/llvm/lib/libclangIndex/Makefile diff -u /dev/null src/external/bsd/llvm/lib/libclangIndex/Makefile:1.4 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/libclangIndex/Makefile Mon Sep 2 14:34:56 2013 @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.4 2013/09/02 14:34:56 joerg Exp $ + +LIB= clangIndex + +.include <bsd.init.mk> + +.PATH: ${CLANG_SRCDIR}/lib/Index + +SRCS+= USRGeneration.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldCore/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldCore/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldCore/Makefile Mon Sep 2 14:34:56 2013 @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:56 joerg Exp $ + +LIB= lldCore + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/Core + +SRCS+= DefinedAtom.cpp \ + Error.cpp \ + File.cpp \ + InputFiles.cpp \ + LinkingContext.cpp \ + PassManager.cpp \ + Resolver.cpp \ + SymbolTable.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldDriver/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldDriver/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldDriver/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldDriver + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/Driver + +SRCS+= CoreDriver.cpp \ + DarwinLdDriver.cpp \ + Driver.cpp \ + GnuLdDriver.cpp \ + InputGraph.cpp \ + UniversalDriver.cpp \ + WinLinkDriver.cpp + +TABLEGEN_SRC= CoreOptions.td DarwinOptions.td LDOptions.td WinLinkOptions.td + +TABLEGEN_OUTPUT.CoreOptions.td= \ + CoreOptions.inc|-gen-opt-parser-defs +TABLEGEN_OUTPUT.DarwinOptions.td= \ + DarwinOptions.inc|-gen-opt-parser-defs +TABLEGEN_OUTPUT.LDOptions.td= \ + LDOptions.inc|-gen-opt-parser-defs +TABLEGEN_OUTPUT.WinLinkOptions.td= \ + WinLinkOptions.inc|-gen-opt-parser-defs + +.include "${.PARSEDIR}/../../tablegen.mk" + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldPasses/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldPasses/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldPasses/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldPasses + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/Passes + +SRCS+= GOTPass.cpp \ + LayoutPass.cpp \ + StubsPass.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriter/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriter/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriter/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriter + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter + +SRCS+= CoreLinkingContext.cpp \ + LinkerScript.cpp \ + Reader.cpp \ + ReaderArchive.cpp \ + ReaderLinkerScript.cpp \ + Writer.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterELF/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterELF/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterELF/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterELF + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/ELF + +CPPFLAGS+= -I${LLD_SRCDIR}/lib/ReaderWriter/ELF + +SRCS+= ELFLinkingContext.cpp \ + Reader.cpp \ + Writer.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterELFHexagon/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterELFHexagon/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterELFHexagon/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterELFHexagon + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/ELF/Hexagon + +CPPFLAGS+= -I${LLD_SRCDIR}/lib/ReaderWriter/ELF + +SRCS+= HexagonLinkingContext.cpp \ + HexagonRelocationHandler.cpp \ + HexagonTargetHandler.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterELFPPC/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterELFPPC/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterELFPPC/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterELFPPC + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/ELF/PPC + +CPPFLAGS+= -I${LLD_SRCDIR}/lib/ReaderWriter/ELF + +SRCS+= PPCLinkingContext.cpp \ + PPCTargetHandler.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterELFX86/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterELFX86/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterELFX86/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterELFX86 + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/ELF/X86 + +CPPFLAGS+= -I${LLD_SRCDIR}/lib/ReaderWriter/ELF + +SRCS+= X86LinkingContext.cpp \ + X86TargetHandler.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterELFX86_64/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterELFX86_64/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterELFX86_64/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterELFX86_64 + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/ELF/X86_64 + +CPPFLAGS+= -I${LLD_SRCDIR}/lib/ReaderWriter/ELF + +SRCS+= X86_64LinkingContext.cpp \ + X86_64RelocationHandler.cpp \ + X86_64TargetHandler.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:58 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterMachO + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/MachO + +SRCS+= MachOLinkingContext.cpp \ + ReferenceKinds.cpp \ + WriterMachO.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterNative/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterNative/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterNative/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterNative + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/Native + +SRCS+= ReaderNative.cpp \ + WriterNative.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterPECOFF + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/PECOFF + +SRCS+= PECOFFLinkingContext.cpp \ + ReaderCOFF.cpp \ + ReaderImportHeader.cpp \ + WriterPECOFF.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/external/bsd/llvm/lib/liblldReaderWriterYAML/Makefile diff -u /dev/null src/external/bsd/llvm/lib/liblldReaderWriterYAML/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/external/bsd/llvm/lib/liblldReaderWriterYAML/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +LIB= lldReaderWriterYAML + +.include <bsd.init.mk> + +.PATH: ${LLD_SRCDIR}/lib/ReaderWriter/YAML + +SRCS+= ReaderWriterYAML.cpp + +.if defined(HOSTLIB) +.include <bsd.hostlib.mk> +.else +.include <bsd.lib.mk> +.endif Index: src/tools/llvm-lib/liblldCore/Makefile diff -u /dev/null src/tools/llvm-lib/liblldCore/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldCore/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldDriver/Makefile diff -u /dev/null src/tools/llvm-lib/liblldDriver/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldDriver/Makefile Mon Sep 2 14:34:57 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldPasses/Makefile diff -u /dev/null src/tools/llvm-lib/liblldPasses/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldPasses/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriter/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriter/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriter/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterELF/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterELF/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterELF/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterELFX86/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterELFX86/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterELFX86/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterMachO/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterMachO/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterMachO/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterNative/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterNative/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterNative/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lib/liblldReaderWriterYAML/Makefile diff -u /dev/null src/tools/llvm-lib/liblldReaderWriterYAML/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lib/liblldReaderWriterYAML/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +.include <bsd.init.mk> Index: src/tools/llvm-lld/Makefile diff -u /dev/null src/tools/llvm-lld/Makefile:1.1 --- /dev/null Mon Sep 2 14:34:59 2013 +++ src/tools/llvm-lld/Makefile Mon Sep 2 14:34:58 2013 @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ + +HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-lld +HOSTPROG_CXX= ${MACHINE_GNU_PLATFORM}-lld +HOST_SRCDIR= external/bsd/llvm/bin/lld + +.include "${.CURDIR}/../Makefile.host"