summaryrefslogtreecommitdiff
path: root/gnu/llvm/utils
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2017-03-14 08:08:16 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2017-03-14 08:08:16 +0000
commitd6d113268daec774e6dfd7f2833ea4fd62dbe386 (patch)
treeb6ef292f2f4984f617befc367539bd297521b996 /gnu/llvm/utils
parentd41dcca6d9e91264d1f3f368c70c24fed8407c16 (diff)
Import LLVM 4.0.0 release including clang and lld.
Diffstat (limited to 'gnu/llvm/utils')
-rwxr-xr-xgnu/llvm/utils/release/build_llvm_package.bat1
-rwxr-xr-xgnu/llvm/utils/release/test-release.sh22
-rw-r--r--gnu/llvm/utils/sanitizers/ubsan_blacklist.txt7
3 files changed, 28 insertions, 2 deletions
diff --git a/gnu/llvm/utils/release/build_llvm_package.bat b/gnu/llvm/utils/release/build_llvm_package.bat
index e7895157cd0..bb6853f57c6 100755
--- a/gnu/llvm/utils/release/build_llvm_package.bat
+++ b/gnu/llvm/utils/release/build_llvm_package.bat
@@ -47,7 +47,6 @@ svn.exe export -r %revision% http://llvm.org/svn/llvm-project/clang-tools-extra/
svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lld/%branch% llvm/tools/lld || exit /b
svn.exe export -r %revision% http://llvm.org/svn/llvm-project/compiler-rt/%branch% llvm/projects/compiler-rt || exit /b
svn.exe export -r %revision% http://llvm.org/svn/llvm-project/openmp/%branch% llvm/projects/openmp || exit /b
-svn.exe export -r %revision% http://llvm.org/svn/llvm-project/lldb/%branch% llvm/tools/lldb || exit /b
REM Setting CMAKE_CL_SHOWINCLUDES_PREFIX to work around PR27226.
diff --git a/gnu/llvm/utils/release/test-release.sh b/gnu/llvm/utils/release/test-release.sh
index 73e31d46d51..b0c77157980 100755
--- a/gnu/llvm/utils/release/test-release.sh
+++ b/gnu/llvm/utils/release/test-release.sh
@@ -36,7 +36,9 @@ do_libs="yes"
do_libunwind="yes"
do_test_suite="yes"
do_openmp="yes"
+do_lld="yes"
do_lldb="no"
+do_polly="no"
BuildDir="`pwd`"
ExtraConfigureFlags=""
ExportBranch=""
@@ -63,8 +65,11 @@ function usage() {
echo " -no-libunwind Disable check-out & build libunwind"
echo " -no-test-suite Disable check-out & build test-suite"
echo " -no-openmp Disable check-out & build libomp"
+ echo " -no-lld Disable check-out & build lld"
echo " -lldb Enable check-out & build lldb"
echo " -no-lldb Disable check-out & build lldb (default)"
+ echo " -polly Enable check-out & build Polly"
+ echo " -no-polly Disable check-out & build Polly (default)"
}
while [ $# -gt 0 ]; do
@@ -140,12 +145,21 @@ while [ $# -gt 0 ]; do
-no-openmp )
do_openmp="no"
;;
+ -no-lld )
+ do_lld="no"
+ ;;
-lldb )
do_lldb="yes"
;;
-no-lldb )
do_lldb="no"
;;
+ -polly )
+ do_polly="yes"
+ ;;
+ -no-polly )
+ do_polly="no"
+ ;;
-help | --help | -h | --h | -\? )
usage
exit 0
@@ -216,9 +230,15 @@ esac
if [ $do_openmp = "yes" ]; then
projects="$projects openmp"
fi
+if [ $do_lld = "yes" ]; then
+ projects="$projects lld"
+fi
if [ $do_lldb = "yes" ]; then
projects="$projects lldb"
fi
+if [ $do_polly = "yes" ]; then
+ projects="$projects polly"
+fi
# Go to the build directory (may be different from CWD)
BuildDir=$BuildDir/$RC
@@ -285,7 +305,7 @@ function export_sources() {
cfe)
projsrc=llvm.src/tools/clang
;;
- lldb)
+ lld|lldb|polly)
projsrc=llvm.src/tools/$proj
;;
clang-tools-extra)
diff --git a/gnu/llvm/utils/sanitizers/ubsan_blacklist.txt b/gnu/llvm/utils/sanitizers/ubsan_blacklist.txt
new file mode 100644
index 00000000000..49975866ea4
--- /dev/null
+++ b/gnu/llvm/utils/sanitizers/ubsan_blacklist.txt
@@ -0,0 +1,7 @@
+# This blacklist should be applied when LLVM is built
+# with -fsanitize=undefined instrumentation. It exists
+# because libstdc++ has some undefined behavior issues
+# in some of the headers, in particular, stl_tree.h.
+
+# upcast of address with insufficient space for an object of type std::_Rb_tree_node<...>
+src:*bits/stl_tree.h