Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/llvm Update build glue for LLVM/Clang r202566. ...



details:   https://anonhg.NetBSD.org/src/rev/adfe763a9da8
branches:  trunk
changeset: 794063:adfe763a9da8
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Mar 04 21:05:05 2014 +0000

description:
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

diffstat:

 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 +-
 external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile    |   5 ++-
 external/bsd/llvm/lib/libLLVMCodeGen/Makefile           |   3 +-
 external/bsd/llvm/lib/libLLVMMC/Makefile                |   3 +-
 external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile       |   3 +-
 external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile  |   3 +-
 external/bsd/llvm/lib/libLLVMObject/Makefile            |   4 ++-
 external/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 +-
 external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile |   3 +-
 15 files changed, 47 insertions(+), 19 deletions(-)

diffs (270 lines):

diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/Makefile.inc
--- a/external/bsd/llvm/Makefile.inc    Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/Makefile.inc    Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
 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 -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/bin/Makefile
--- a/external/bsd/llvm/bin/Makefile    Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/bin/Makefile    Tue Mar 04 21:05:05 2014 +0000
@@ -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 <bsd.own.mk>
 
@@ -39,6 +39,7 @@
        llvm-mc \
        llvm-nm \
        llvm-objdump \
+       llvm-profdata \
        llvm-readobj \
        llvm-size \
        llvm-symbolizer \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/bin/llvm-profdata/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/bin/llvm-profdata/Makefile      Tue Mar 04 21:05:05 2014 +0000
@@ -0,0 +1,18 @@
+#      $NetBSD: Makefile,v 1.1 2014/03/04 21:05:05 joerg Exp $
+
+PROG_CXX=      llvm-profdata
+NOMAN=         yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/tools/llvm-profdata
+
+SRCS=  llvm-profdata.cpp
+
+LLVM_LIBS+= \
+       IR \
+       Support
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/bin/opt/Makefile
--- a/external/bsd/llvm/bin/opt/Makefile        Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/bin/opt/Makefile        Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
 .PATH: ${LLVM_SRCDIR}/tools/opt
 
 SRCS=  AnalysisWrappers.cpp \
+       BreakpointPrinter.cpp \
        GraphPrinters.cpp \
        NewPMDriver.cpp \
        PassPrinters.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile
--- a/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile      Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile      Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        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 -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMCodeGen/Makefile
--- a/external/bsd/llvm/lib/libLLVMCodeGen/Makefile     Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMCodeGen/Makefile     Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        CalcSpillWeights.cpp \
        CallingConvLower.cpp \
        CodeGen.cpp \
+       CodeGenPrepare.cpp \
        CriticalAntiDepBreaker.cpp \
        DFAPacketizer.cpp \
        DeadMachineInstructionElim.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMMC/Makefile
--- a/external/bsd/llvm/lib/libLLVMMC/Makefile  Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMMC/Makefile  Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        MCObjectStreamer.cpp \
        MCObjectSymbolizer.cpp \
        MCObjectWriter.cpp \
-       MCPureStreamer.cpp \
        MCRegisterInfo.cpp \
        MCRelocationInfo.cpp \
        MCSection.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile
--- a/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        Mips16InstrInfo.cpp \
        Mips16FrameLowering.cpp \
        Mips16HardFloat.cpp \
+       Mips16HardFloatInfo.cpp \
        Mips16RegisterInfo.cpp \
        MipsAnalyzeImmediate.cpp \
        MipsAsmPrinter.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile
--- a/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile    Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile    Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        MipsMCCodeEmitter.cpp \
        MipsMCExpr.cpp \
        MipsMCTargetDesc.cpp \
+       MipsNaClELFStreamer.cpp \
        MipsTargetStreamer.cpp
 
 .if defined(HOSTLIB)
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMObject/Makefile
--- a/external/bsd/llvm/lib/libLLVMObject/Makefile      Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMObject/Makefile      Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        ELFObjectFile.cpp \
        ELFYAML.cpp \
        Error.cpp \
+       IRObjectFile.cpp \
        MachOObjectFile.cpp \
        MachOUniversal.cpp \
        Object.cpp \
        ObjectFile.cpp \
+       SymbolicFile.cpp \
        YAML.cpp
 
 .if defined(HOSTLIB)
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMScalarOpts/Makefile
--- a/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile  Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile  Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
 .PATH: ${LLVM_SRCDIR}/lib/Transforms/Scalar
 
 SRCS+= ADCE.cpp \
-       CodeGenPrepare.cpp \
        ConstantHoisting.cpp \
        ConstantProp.cpp \
        CorrelatedValuePropagation.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libLLVMSupport/Makefile
--- a/external/bsd/llvm/lib/libLLVMSupport/Makefile     Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libLLVMSupport/Makefile     Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        IntrusiveRefCntPtr.cpp \
        IsInf.cpp \
        IsNAN.cpp \
+       LEB128.cpp \
        LineIterator.cpp \
        Locale.cpp \
        LockFileManager.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libclangBasic/Makefile
--- a/external/bsd/llvm/lib/libclangBasic/Makefile      Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libclangBasic/Makefile      Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        Targets.cpp \
        TokenKinds.cpp \
        Version.cpp \
-       VersionTuple.cpp
+       VersionTuple.cpp \
+       VirtualFileSystem.cpp
 
 CPPFLAGS.Version.cpp=  -DSVN_REVISION=\"${CLANG_REVISION}\" \
                        -DLLVM_REVISION=\"${LLVM_REVISION}\"
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/libclangDriver/Makefile
--- a/external/bsd/llvm/lib/libclangDriver/Makefile     Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/libclangDriver/Makefile     Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
        Driver.cpp \
        DriverOptions.cpp \
        Job.cpp \
+       Multilib.cpp \
        Phases.cpp \
        SanitizerArgs.cpp \
        Tool.cpp \
diff -r ec51a90af3cb -r adfe763a9da8 external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile
--- a/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile   Tue Mar 04 20:49:27 2014 +0000
+++ b/external/bsd/llvm/lib/liblldReaderWriterPECOFF/Makefile   Tue Mar 04 21:05:05 2014 +0000
@@ -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 @@
 
 SRCS+= EdataPass.cpp \
        IdataPass.cpp \
+       LoadConfigPass.cpp \
        PECOFFLinkingContext.cpp \
        Pass.cpp \
        ReaderCOFF.cpp \



Home | Main Index | Thread Index | Old Index