Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Update LLVM/Clang snapshot to r151411. This brings in Lambda...
details: https://anonhg.NetBSD.org/src/rev/f8411474284d
branches: trunk
changeset: 777662:f8411474284d
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Feb 28 17:09:29 2012 +0000
description:
Update LLVM/Clang snapshot to r151411. This brings in Lambda support for
C++11 and a new literal format string check to catch variadic argument
functions.
diffstat:
external/bsd/llvm/Makefile.inc | 16 +-
external/bsd/llvm/bin/clang/Makefile | 3 +-
external/bsd/llvm/config/clang/Config/config.h | 19 +
external/bsd/llvm/config/llvm/Config/AsmParsers.def | 2 +-
external/bsd/llvm/config/llvm/Config/Disassemblers.def | 2 +-
external/bsd/llvm/config/llvm/Config/config.h | 56 ++--
external/bsd/llvm/config/llvm/Config/llvm-config.h | 21 +-
external/bsd/llvm/config/llvm/Support/DataTypes.h | 107 +++++++++-
external/bsd/llvm/include/Makefile | 3 +-
external/bsd/llvm/lib/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMCodeGen/Makefile | 3 +-
external/bsd/llvm/lib/libLLVMInstrumentation/Makefile | 5 +-
external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile | 5 +-
external/bsd/llvm/lib/libLLVMSelectionDAG/Makefile | 4 +-
external/bsd/llvm/lib/libLLVMSupport/Makefile | 5 +-
external/bsd/llvm/lib/libLLVMVectorize/Makefile | 15 +
external/bsd/llvm/lib/libclangAST/Makefile | 3 +-
external/bsd/llvm/lib/libclangDriver/Makefile | 3 +-
external/bsd/llvm/lib/libclangFrontend/Makefile | 4 +-
external/bsd/llvm/lib/libclangRewrite/Makefile | 3 +-
external/bsd/llvm/lib/libclangSema/Makefile | 4 +-
external/bsd/llvm/lib/libclangStaticAnalyzerCheckers/Makefile | 6 +-
tools/llvm-lib/libLLVMVectorize/Makefile | 3 +
tools/llvm/Makefile | 3 +-
24 files changed, 236 insertions(+), 62 deletions(-)
diffs (truncated from 761 to 300 lines):
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/Makefile.inc
--- a/external/bsd/llvm/Makefile.inc Tue Feb 28 14:22:21 2012 +0000
+++ b/external/bsd/llvm/Makefile.inc Tue Feb 28 17:09:29 2012 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile.inc,v 1.29 2012/01/17 15:51:55 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.30 2012/02/28 17:09:29 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
.include <bsd.own.mk>
-LLVM_REVISION= 148262
-CLANG_REVISION= 148262
+LLVM_REVISION= 151411
+CLANG_REVISION= 151411
LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
@@ -18,15 +18,23 @@
.if defined(HOSTLIB) || defined(HOSTPROG)
LLVM_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/include
+CLANG_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/tools/clang/include
LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm-include && ${PRINTOBJDIR}
LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR}
HOST_CPPFLAGS+= ${CPPFLAGS}
HOST_CXXFLAGS+= -O2 -g
.else
LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
+CLANG_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
CPPFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE="\"${MACHINE_GNU_PLATFORM}\""
.endif
-CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG}
+CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG} \
+ -I${CLANG_INCLUDE_CONFIG}
+
+# ./configure --enable-targets=x86,powerpc,sparc,arm,mips \
+# --with-c-include-dirs=/usr/include/clang-3.0:/usr/include \
+# --disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \
+# --disable-threads
.endif
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/bin/clang/Makefile
--- a/external/bsd/llvm/bin/clang/Makefile Tue Feb 28 14:22:21 2012 +0000
+++ b/external/bsd/llvm/bin/clang/Makefile Tue Feb 28 17:09:29 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2012/01/18 16:53:09 joerg Exp $
+# $NetBSD: Makefile,v 1.18 2012/02/28 17:09:29 joerg Exp $
PROG_CXX= clang
NOMAN= yes
@@ -66,6 +66,7 @@
SelectionDAG \
AsmPrinter \
CodeGen \
+ Vectorize \
Target \
InstCombine \
Instrumentation \
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/config/clang/Config/config.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/config/clang/Config/config.h Tue Feb 28 17:09:29 2012 +0000
@@ -0,0 +1,19 @@
+/* tools/clang/include/clang/Config/config.h. Generated from config.h.in by configure. */
+/* include/clang/Config/config.h.in. */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+/* Bug report URL. */
+#define BUG_REPORT_URL "http://llvm.org/bugs/"
+
+/* Relative directory for resource files */
+#define CLANG_RESOURCE_DIR ""
+
+/* Directory where gcc is installed. */
+#define GCC_INSTALL_PREFIX ""
+
+/* Directories clang will search for headers */
+#define C_INCLUDE_DIRS "/usr/include/clang-3.0:/usr/include"
+
+#endif
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/config/llvm/Config/AsmParsers.def
--- a/external/bsd/llvm/config/llvm/Config/AsmParsers.def Tue Feb 28 14:22:21 2012 +0000
+++ b/external/bsd/llvm/config/llvm/Config/AsmParsers.def Tue Feb 28 17:09:29 2012 +0000
@@ -24,6 +24,6 @@
# error Please define the macro LLVM_ASM_PARSER(TargetName)
#endif
-LLVM_ASM_PARSER(X86) LLVM_ASM_PARSER(ARM)
+LLVM_ASM_PARSER(X86) LLVM_ASM_PARSER(ARM) LLVM_ASM_PARSER(Mips)
#undef LLVM_ASM_PARSER
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/config/llvm/Config/Disassemblers.def
--- a/external/bsd/llvm/config/llvm/Config/Disassemblers.def Tue Feb 28 14:22:21 2012 +0000
+++ b/external/bsd/llvm/config/llvm/Config/Disassemblers.def Tue Feb 28 17:09:29 2012 +0000
@@ -9,7 +9,7 @@
//
// This file enumerates all of the assembly-language parsers
// supported by this build of LLVM. Clients of this file should define
-// the LLVM_ASM_PARSER macro to be a function-like macro with a
+// the LLVM_DISASSEMBLER macro to be a function-like macro with a
// single parameter (the name of the target whose assembly can be
// generated); including this file will then enumerate all of the
// targets with assembly parsers.
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/config/llvm/Config/config.h
--- a/external/bsd/llvm/config/llvm/Config/config.h Tue Feb 28 14:22:21 2012 +0000
+++ b/external/bsd/llvm/config/llvm/Config/config.h Tue Feb 28 17:09:29 2012 +0000
@@ -5,23 +5,11 @@
#define CONFIG_H
/* Bug report URL. */
-#define BUG_REPORT_URL "http://llvm.org"
+#define BUG_REPORT_URL "http://llvm.org/bugs/"
/* Relative directory for resource files */
#define CLANG_RESOURCE_DIR ""
-/* 32 bit multilib directory. */
-#define CXX_INCLUDE_32BIT_DIR ""
-
-/* 64 bit multilib directory. */
-#define CXX_INCLUDE_64BIT_DIR ""
-
-/* Arch the libstdc++ headers. */
-#define CXX_INCLUDE_ARCH ""
-
-/* Directory with the libstdc++ headers. */
-#define CXX_INCLUDE_ROOT ""
-
/* Directories clang will search for headers */
#define C_INCLUDE_DIRS "/usr/include/clang-3.0:/usr/include"
@@ -31,11 +19,11 @@
/* Define if position independent code is enabled */
#define ENABLE_PIC 1
-/* Define if threads enabled */
-#define ENABLE_THREADS 1
+/* Define if timestamp information (e.g., __DATE___) is allowed */
+#define ENABLE_TIMESTAMPS 0
-/* Define if timestamp information (e.g., __DATE___) is allowed */
-#define ENABLE_TIMESTAMPS 1
+/* Directory where gcc is installed. */
+#define GCC_INSTALL_PREFIX ""
/* Define to 1 if you have the `argz_append' function. */
/* #undef HAVE_ARGZ_APPEND */
@@ -211,7 +199,7 @@
/* #undef HAVE_LIBPSAPI */
/* Define to 1 if you have the `pthread' library (-lpthread). */
-#define HAVE_LIBPTHREAD 1
+/* #undef HAVE_LIBPTHREAD */
/* Define to 1 if you have the `udis86' library (-ludis86). */
/* #undef HAVE_LIBUDIS86 */
@@ -291,11 +279,14 @@
#define HAVE_OPENDIR 1
/* Define to 1 if you have the `posix_spawn' function. */
-/* #undef HAVE_POSIX_SPAWN */
+#define HAVE_POSIX_SPAWN 1
/* Define to 1 if you have the `powf' function. */
#define HAVE_POWF 1
+/* Define to 1 if you have the `pread' function. */
+#define HAVE_PREAD 1
+
/* Define if libtool can extract symbol lists from object files. */
#define HAVE_PRELOADED_SYMBOLS 1
@@ -303,16 +294,16 @@
#define HAVE_PRINTF_A 1
/* Have pthread_getspecific */
-#define HAVE_PTHREAD_GETSPECIFIC 1
+/* #undef HAVE_PTHREAD_GETSPECIFIC */
/* Define to 1 if you have the <pthread.h> header file. */
-#define HAVE_PTHREAD_H 1
+/* #undef HAVE_PTHREAD_H */
/* Have pthread_mutex_lock */
-#define HAVE_PTHREAD_MUTEX_LOCK 1
+/* #undef HAVE_PTHREAD_MUTEX_LOCK */
/* Have pthread_rwlock_init */
-#define HAVE_PTHREAD_RWLOCK_INIT 1
+/* #undef HAVE_PTHREAD_RWLOCK_INIT */
/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
#define HAVE_RAND48 1
@@ -539,7 +530,7 @@
#define LLVM_BINDIR "/usr/bin"
/* Time at which LLVM was configured */
-#define LLVM_CONFIGTIME "Thu Nov 3 00:22:51 CET 2011"
+#define LLVM_CONFIGTIME "Tue Feb 28 15:53:15 UTC 2012"
/* Installation directory for data files */
#define LLVM_DATADIR "/usr/share/llvm"
@@ -552,6 +543,9 @@
/* Installation directory for documentation */
#define LLVM_DOCSDIR "/usr/share/doc/llvm"
+/* Define if threads enabled */
+#define LLVM_ENABLE_THREADS 0
+
/* Installation directory for config files */
#define LLVM_ETCDIR "/usr/etc/llvm"
@@ -624,6 +618,12 @@
/* Installation prefix directory */
#define LLVM_PREFIX "/usr"
+/* Major version of the LLVM API */
+#define LLVM_VERSION_MAJOR 3
+
+/* Minor version of the LLVM API */
+#define LLVM_VERSION_MINOR 1
+
/* Define if the OS needs help to load dependent libraries for dlopen(). */
/* #undef LTDL_DLOPEN_DEPLIBS */
@@ -649,16 +649,16 @@
/* #undef NEED_USCORE */
/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "llvmbugs%cs.uiuc.edu@localhost"
+#define PACKAGE_BUGREPORT "http://llvm.org/bugs/"
/* Define to the full name of this package. */
-#define PACKAGE_NAME "llvm"
+#define PACKAGE_NAME "LLVM"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "llvm 3.1svn"
+#define PACKAGE_STRING "LLVM 3.1svn"
/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME "-llvm-"
+#define PACKAGE_TARNAME "llvm"
/* Define to the version of this package. */
#define PACKAGE_VERSION "3.1svn"
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/config/llvm/Config/llvm-config.h
--- a/external/bsd/llvm/config/llvm/Config/llvm-config.h Tue Feb 28 14:22:21 2012 +0000
+++ b/external/bsd/llvm/config/llvm/Config/llvm-config.h Tue Feb 28 17:09:29 2012 +0000
@@ -21,25 +21,28 @@
#define LLVM_BINDIR "/usr/bin"
/* Time at which LLVM was configured */
-#define LLVM_CONFIGTIME "Thu Nov 3 00:22:51 CET 2011"
+#define LLVM_CONFIGTIME "Tue Feb 28 15:53:15 UTC 2012"
/* Installation directory for data files */
#define LLVM_DATADIR "/usr/share/llvm"
+/* Target triple LLVM will generate code for by default */
+#if 0
+#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd"
+#endif
+
/* Installation directory for documentation */
#define LLVM_DOCSDIR "/usr/share/doc/llvm"
+/* Define if threads enabled */
+#define LLVM_ENABLE_THREADS 0
+
/* Installation directory for config files */
#define LLVM_ETCDIR "/usr/etc/llvm"
/* Has gcc/MSVC atomic intrinsics */
#define LLVM_HAS_ATOMICS 1
-/* Host triple we were built on */
-#if 0
-#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd"
-#endif
-
/* Installation directory for include files */
#define LLVM_INCLUDEDIR "/usr/include"
@@ -106,4 +109,10 @@
/* Installation prefix directory */
#define LLVM_PREFIX "/usr"
+/* Major version of the LLVM API */
+#define LLVM_VERSION_MAJOR 3
+
+/* Minor version of the LLVM API */
+#define LLVM_VERSION_MINOR 1
+
#endif
diff -r d701c6d56e39 -r f8411474284d external/bsd/llvm/config/llvm/Support/DataTypes.h
Home |
Main Index |
Thread Index |
Old Index