From 1e03b295f8509456bf8dd1d58895cc57e2ff54ae Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 4 Mar 2014 21:05:05 +0000 Subject: [PATCH] Update build glue for LLVM/Clang r202566. News: - match ARM CPU default of GCC - better support for SPARC64 - type checkings for abs/fabs - null pointer checks against struct member - various other improvements --- external/bsd/llvm/Makefile.inc | 4 ++-- external/bsd/llvm/bin/Makefile | 3 ++- external/bsd/llvm/bin/llvm-profdata/Makefile | 18 ++++++++++++++++++ external/bsd/llvm/bin/opt/Makefile | 3 ++- .../llvm/lib/libLLVMAArch64CodeGen/Makefile | 5 +++-- external/bsd/llvm/lib/libLLVMCodeGen/Makefile | 3 ++- external/bsd/llvm/lib/libLLVMMC/Makefile | 3 +-- .../bsd/llvm/lib/libLLVMMipsCodeGen/Makefile | 3 ++- .../llvm/lib/libLLVMMipsMCTargetDesc/Makefile | 3 ++- external/bsd/llvm/lib/libLLVMObject/Makefile | 4 +++- .../bsd/llvm/lib/libLLVMScalarOpts/Makefile | 3 +-- external/bsd/llvm/lib/libLLVMSupport/Makefile | 3 ++- external/bsd/llvm/lib/libclangBasic/Makefile | 5 +++-- external/bsd/llvm/lib/libclangDriver/Makefile | 3 ++- .../llvm/lib/liblldReaderWriterPECOFF/Makefile | 3 ++- 15 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 external/bsd/llvm/bin/llvm-profdata/Makefile diff --git a/external/bsd/llvm/Makefile.inc b/external/bsd/llvm/Makefile.inc index 43a3bb08aa61..5605aa0bc2e7 100644 --- a/external/bsd/llvm/Makefile.inc +++ b/external/bsd/llvm/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.71 2014/02/14 20:23:56 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.72 2014/03/04 21:05:05 joerg Exp $ .if !defined(LLVM_TOPLEVEL_MK) LLVM_TOPLEVEL_MK= @@ -8,7 +8,7 @@ LLVM_TOPLEVEL_MK= SVN_ROOT= http://llvm.org/svn/llvm-project SVN_BRANCH= trunk -COMMON_REVISION= 201163 +COMMON_REVISION= 202566 CLANG_REVISION= ${COMMON_REVISION} LLD_REVISION= ${COMMON_REVISION} LLDB_REVISION= ${COMMON_REVISION} diff --git a/external/bsd/llvm/bin/Makefile b/external/bsd/llvm/bin/Makefile index de6b0cba3cab..35d70c3f6543 100644 --- a/external/bsd/llvm/bin/Makefile +++ b/external/bsd/llvm/bin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2013/10/14 01:37:39 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2014/03/04 21:05:05 joerg Exp $ .include @@ -39,6 +39,7 @@ SUBDIR+= \ llvm-mc \ llvm-nm \ llvm-objdump \ + llvm-profdata \ llvm-readobj \ llvm-size \ llvm-symbolizer \ diff --git a/external/bsd/llvm/bin/llvm-profdata/Makefile b/external/bsd/llvm/bin/llvm-profdata/Makefile new file mode 100644 index 000000000000..1dcdaa18010c --- /dev/null +++ b/external/bsd/llvm/bin/llvm-profdata/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2014/03/04 21:05:05 joerg Exp $ + +PROG_CXX= llvm-profdata +NOMAN= yes + +.include + +.PATH: ${LLVM_SRCDIR}/tools/llvm-profdata + +SRCS= llvm-profdata.cpp + +LLVM_LIBS+= \ + IR \ + Support + +.include "${.PARSEDIR}/../../link.mk" + +.include diff --git a/external/bsd/llvm/bin/opt/Makefile b/external/bsd/llvm/bin/opt/Makefile index b140f0cba845..40242699a4a5 100644 --- a/external/bsd/llvm/bin/opt/Makefile +++ b/external/bsd/llvm/bin/opt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2014/02/14 20:23:56 joerg Exp $ +# $NetBSD: Makefile,v 1.13 2014/03/04 21:05:05 joerg Exp $ PROG_CXX= opt NOMAN= yes @@ -8,6 +8,7 @@ NOMAN= yes .PATH: ${LLVM_SRCDIR}/tools/opt SRCS= AnalysisWrappers.cpp \ + BreakpointPrinter.cpp \ GraphPrinters.cpp \ NewPMDriver.cpp \ PassPrinters.cpp \ diff --git a/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile b/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile index f950b7915044..2abc51342b85 100644 --- a/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile +++ b/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2013/02/19 12:35:42 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2014/03/04 21:05:05 joerg Exp $ LIB= LLVMAArch64CodeGen @@ -20,7 +20,8 @@ SRCS+= AArch64AsmPrinter.cpp \ AArch64SelectionDAGInfo.cpp \ AArch64Subtarget.cpp \ AArch64TargetMachine.cpp \ - AArch64TargetObjectFile.cpp + AArch64TargetObjectFile.cpp \ + AArch64TargetTransformInfo.cpp TABLEGEN_SRC= AArch64.td TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/AArch64 diff --git a/external/bsd/llvm/lib/libLLVMCodeGen/Makefile b/external/bsd/llvm/lib/libLLVMCodeGen/Makefile index 157740db9296..dfecc08ad647 100644 --- a/external/bsd/llvm/lib/libLLVMCodeGen/Makefile +++ b/external/bsd/llvm/lib/libLLVMCodeGen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.26 2014/01/05 16:38:06 joerg Exp $ +# $NetBSD: Makefile,v 1.27 2014/03/04 21:05:05 joerg Exp $ LIB= LLVMCodeGen @@ -14,6 +14,7 @@ SRCS+= AggressiveAntiDepBreaker.cpp \ CalcSpillWeights.cpp \ CallingConvLower.cpp \ CodeGen.cpp \ + CodeGenPrepare.cpp \ CriticalAntiDepBreaker.cpp \ DFAPacketizer.cpp \ DeadMachineInstructionElim.cpp \ diff --git a/external/bsd/llvm/lib/libLLVMMC/Makefile b/external/bsd/llvm/lib/libLLVMMC/Makefile index 5cfc4959fae5..4860ada28855 100644 --- a/external/bsd/llvm/lib/libLLVMMC/Makefile +++ b/external/bsd/llvm/lib/libLLVMMC/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2013/10/20 14:53:23 joerg Exp $ +# $NetBSD: Makefile,v 1.15 2014/03/04 21:05:06 joerg Exp $ LIB= LLVMMC @@ -40,7 +40,6 @@ SRCS+= ELFObjectWriter.cpp \ MCObjectStreamer.cpp \ MCObjectSymbolizer.cpp \ MCObjectWriter.cpp \ - MCPureStreamer.cpp \ MCRegisterInfo.cpp \ MCRelocationInfo.cpp \ MCSection.cpp \ diff --git a/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile index 7522fce95810..a3b9503e7d23 100644 --- a/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile +++ b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2014/01/05 16:38:06 joerg Exp $ +# $NetBSD: Makefile,v 1.22 2014/03/04 21:05:06 joerg Exp $ LIB= LLVMMipsCodeGen @@ -11,6 +11,7 @@ SRCS+= Mips16ISelDAGToDAG.cpp \ Mips16InstrInfo.cpp \ Mips16FrameLowering.cpp \ Mips16HardFloat.cpp \ + Mips16HardFloatInfo.cpp \ Mips16RegisterInfo.cpp \ MipsAnalyzeImmediate.cpp \ MipsAsmPrinter.cpp \ diff --git a/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile b/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile index 4d2dec0b1889..66745a0dd7a5 100644 --- a/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile +++ b/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2014/02/14 20:23:56 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2014/03/04 21:05:06 joerg Exp $ LIB= LLVMMipsMCTargetDesc @@ -15,6 +15,7 @@ SRCS+= MipsAsmBackend.cpp \ MipsMCCodeEmitter.cpp \ MipsMCExpr.cpp \ MipsMCTargetDesc.cpp \ + MipsNaClELFStreamer.cpp \ MipsTargetStreamer.cpp .if defined(HOSTLIB) diff --git a/external/bsd/llvm/lib/libLLVMObject/Makefile b/external/bsd/llvm/lib/libLLVMObject/Makefile index 2bc021d4ae07..ff3780e10022 100644 --- a/external/bsd/llvm/lib/libLLVMObject/Makefile +++ b/external/bsd/llvm/lib/libLLVMObject/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2013/09/02 14:34:56 joerg Exp $ +# $NetBSD: Makefile,v 1.9 2014/03/04 21:05:06 joerg Exp $ LIB= LLVMObject NOGCCERROR= yes @@ -15,10 +15,12 @@ SRCS+= Archive.cpp \ ELFObjectFile.cpp \ ELFYAML.cpp \ Error.cpp \ + IRObjectFile.cpp \ MachOObjectFile.cpp \ MachOUniversal.cpp \ Object.cpp \ ObjectFile.cpp \ + SymbolicFile.cpp \ YAML.cpp .if defined(HOSTLIB) diff --git a/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile b/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile index e3b9a7a78f2b..c431f08b7265 100644 --- a/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile +++ b/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2014/02/14 20:23:57 joerg Exp $ +# $NetBSD: Makefile,v 1.16 2014/03/04 21:05:06 joerg Exp $ LIB= LLVMScalarOpts @@ -7,7 +7,6 @@ LIB= LLVMScalarOpts .PATH: ${LLVM_SRCDIR}/lib/Transforms/Scalar SRCS+= ADCE.cpp \ - CodeGenPrepare.cpp \ ConstantHoisting.cpp \ ConstantProp.cpp \ CorrelatedValuePropagation.cpp \ diff --git a/external/bsd/llvm/lib/libLLVMSupport/Makefile b/external/bsd/llvm/lib/libLLVMSupport/Makefile index 5282f6bd8f01..aae11aea7586 100644 --- a/external/bsd/llvm/lib/libLLVMSupport/Makefile +++ b/external/bsd/llvm/lib/libLLVMSupport/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2014/02/14 20:23:57 joerg Exp $ +# $NetBSD: Makefile,v 1.26 2014/03/04 21:05:06 joerg Exp $ LIB= LLVMSupport @@ -40,6 +40,7 @@ SRCS+= APFloat.cpp \ IntrusiveRefCntPtr.cpp \ IsInf.cpp \ IsNAN.cpp \ + LEB128.cpp \ LineIterator.cpp \ Locale.cpp \ LockFileManager.cpp \ diff --git a/external/bsd/llvm/lib/libclangBasic/Makefile b/external/bsd/llvm/lib/libclangBasic/Makefile index 13600e305f4c..7494aacf5605 100644 --- a/external/bsd/llvm/lib/libclangBasic/Makefile +++ b/external/bsd/llvm/lib/libclangBasic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2013/04/25 13:59:58 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2014/03/04 21:05:06 joerg Exp $ LIB= clangBasic @@ -24,7 +24,8 @@ SRCS+= Builtins.cpp \ Targets.cpp \ TokenKinds.cpp \ Version.cpp \ - VersionTuple.cpp + VersionTuple.cpp \ + VirtualFileSystem.cpp CPPFLAGS.Version.cpp= -DSVN_REVISION=\"${CLANG_REVISION}\" \ -DLLVM_REVISION=\"${LLVM_REVISION}\" diff --git a/external/bsd/llvm/lib/libclangDriver/Makefile b/external/bsd/llvm/lib/libclangDriver/Makefile index 2c27cea660fa..b11549b3ad77 100644 --- a/external/bsd/llvm/lib/libclangDriver/Makefile +++ b/external/bsd/llvm/lib/libclangDriver/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2013/09/02 14:34:56 joerg Exp $ +# $NetBSD: Makefile,v 1.7 2014/03/04 21:05:06 joerg Exp $ LIB= clangDriver @@ -12,6 +12,7 @@ SRCS+= Action.cpp \ Driver.cpp \ DriverOptions.cpp \ Job.cpp \ + Multilib.cpp \ Phases.cpp \ SanitizerArgs.cpp \ Tool.cpp \ diff --git a/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile b/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile index c8f6053b5eeb..38eaa69fc2db 100644 --- a/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile +++ b/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2014/01/05 16:38:07 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2014/03/04 21:05:06 joerg Exp $ LIB= lldReaderWriterPECOFF @@ -8,6 +8,7 @@ LIB= lldReaderWriterPECOFF SRCS+= EdataPass.cpp \ IdataPass.cpp \ + LoadConfigPass.cpp \ PECOFFLinkingContext.cpp \ Pass.cpp \ ReaderCOFF.cpp \