summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-07-27 00:54:00 -0700
committerKhem Raj <raj.khem@gmail.com>2016-07-27 00:54:00 -0700
commit79f1d07b76ff1fabb508d9ce232a5e5127d1f3a7 (patch)
treeae4d2088445b0965b57e267fab703548b0f88569
parent07ce0df1231c985d73705f0ba9bae3ddf7125e46 (diff)
downloadmeta-clang-79f1d07b76ff1fabb508d9ce232a5e5127d1f3a7.tar.gz
clang: Update to latest on 3.9 branch
Forward port the patches as needed. Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-devtools/clang/clang.inc10
-rw-r--r--recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch33
-rw-r--r--recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch37
-rw-r--r--recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch6
-rw-r--r--recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch10
-rw-r--r--recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch2
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb2
7 files changed, 52 insertions, 48 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc
index fea6ba4..de58441 100644
--- a/recipes-devtools/clang/clang.inc
+++ b/recipes-devtools/clang/clang.inc
@@ -10,12 +10,12 @@ LLVM_GIT_PROTOCOL ?= "git"
10 10
11PV = "3.9.0" 11PV = "3.9.0"
12BRANCH = "release_39" 12BRANCH = "release_39"
13SRCREV_llvm = "00d9b1b37f68373bb427369fee08814cda0692f7" 13SRCREV_llvm = "63485bd162ef11dcfbd313e10f2e45d6f2c0d58e"
14SRCREV_clang = "760f716545a51d39ec3f54cb4c96bf55c022099f" 14SRCREV_clang = "1ce520b4b2d9ff3f233e30c917d9e888abb49daf"
15SRCREV_compiler-rt = "c10168c3b09f714b9da56abcce1b48104c20e1f9" 15SRCREV_compiler-rt = "95277fbc5a050588234bc4e2a52d7902e663e3b1"
16SRCREV_cxxabi = "82bb4c89734b6157de4a2fc2b9228be6529337a8" 16SRCREV_cxxabi = "82bb4c89734b6157de4a2fc2b9228be6529337a8"
17SRCREV_libcxx = "c2a735f1ff7a6680b10369e2b34324d1095a9732" 17SRCREV_libcxx = "95fa236b0059899e96b4092e66e776608c4e3c52"
18SRCREV_libunwind = "ce3e76f9fcb0c33b4683bc1a01bb66d1c87b2356" 18SRCREV_libunwind = "4194a6d954d2d6bfb225d22411cc3bc9932cc76f"
19 19
20LLVMMD5SUM = "43fdaa303c1c5589ad60f4ffc6a0b9ce" 20LLVMMD5SUM = "43fdaa303c1c5589ad60f4ffc6a0b9ce"
21CLANGMD5SUM = "a77eac638a3aae44a2d604217d6f0f01" 21CLANGMD5SUM = "a77eac638a3aae44a2d604217d6f0f01"
diff --git a/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch b/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch
deleted file mode 100644
index 1a7b96b..0000000
--- a/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From b0de87ae88ff187820624d461fbb8fde84a90eb1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 10 May 2016 10:37:55 -0700
4Subject: [PATCH 1/3] Remove fatal check for explicit
5 COMPILER_RT_DEFAULT_TARGET_ARCH
6
7In OE, we do not deduce float-abi via target triplet
8but via a CFLAGS option, and we do not have possibility
9to build both hf and sf in same toolchain, therefore lets
10ignore the test, we are doing the right job from recipe
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 cmake/Modules/CompilerRTUtils.cmake | 4 ----
15 1 file changed, 4 deletions(-)
16
17diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake
18index b4a2b48..086d9ba 100644
19--- a/cmake/Modules/CompilerRTUtils.cmake
20+++ b/cmake/Modules/CompilerRTUtils.cmake
21@@ -125,9 +125,5 @@ macro(test_target_arch arch def)
22 endif()
23 if(${CAN_TARGET_${arch}})
24 list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
25- elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND
26- COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE)
27- # Bail out if we cannot target the architecture we plan to test.
28- message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")
29 endif()
30 endmacro()
31--
322.8.2
33
diff --git a/recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch b/recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch
new file mode 100644
index 0000000..604d1eb
--- /dev/null
+++ b/recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch
@@ -0,0 +1,37 @@
1From 921549310c98ac7d594d1f290f053b8e2b3a32d0 Mon Sep 17 00:00:00 2001
2From: Francis Ricci <francisjricci@gmail.com>
3Date: Wed, 20 Jul 2016 18:06:31 +0000
4Subject: [PATCH 1/4] [compiler-rt] Fix target architecture matching
5
6Summary:
7Use stricter comparisons for architecture. This prevents cmake from failing
8for sysroots which can only compile armhf and not arm, since
9arm MATCHES armhf is true, while arm STREQUAL armhf is false.
10
11Reviewers: beanz, compnerd
12
13Subscribers: aemerson, llvm-commits
14
15Differential Revision: https://reviews.llvm.org/D22473
16
17git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276148 91177308-0d34-0410-b5e6-96231b3b80d8
18---
19 cmake/Modules/CompilerRTUtils.cmake | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake
23index 78b6dce..5987cf5 100644
24--- a/cmake/Modules/CompilerRTUtils.cmake
25+++ b/cmake/Modules/CompilerRTUtils.cmake
26@@ -126,7 +126,7 @@ macro(test_target_arch arch def)
27 endif()
28 if(${CAN_TARGET_${arch}})
29 list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
30- elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND
31+ elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" STREQUAL "${arch}" AND
32 COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE)
33 # Bail out if we cannot target the architecture we plan to test.
34 message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")
35--
362.9.0
37
diff --git a/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch b/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch
index 12fc4e4..67c7678 100644
--- a/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch
+++ b/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch
@@ -1,7 +1,7 @@
1From 7b7cdc3fcbec45f08b20600c8410c125edeb67ef Mon Sep 17 00:00:00 2001 1From 4bdc7871ab0a6134ee01c138e863476de9c08e25 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 19 Apr 2015 15:16:23 -0700 3Date: Sun, 19 Apr 2015 15:16:23 -0700
4Subject: [PATCH 2/3] support a new embedded linux target 4Subject: [PATCH 2/4] support a new embedded linux target
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com> 6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7--- 7---
@@ -322,5 +322,5 @@ diff --git a/make/platform/clang_linux_embedded_test_input.c b/make/platform/cla
322new file mode 100644 322new file mode 100644
323index 0000000..e69de29 323index 0000000..e69de29
324-- 324--
3252.8.2 3252.9.0
326 326
diff --git a/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch b/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch
index ffbe537..9354f66 100644
--- a/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch
+++ b/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch
@@ -1,7 +1,7 @@
1From f8617c08ad6e38ccb4623a777cd8c9601af6e2ec Mon Sep 17 00:00:00 2001 1From 6676553c56ac1879d8d597351b457ba2e087168c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 May 2016 23:11:45 -0700 3Date: Thu, 19 May 2016 23:11:45 -0700
4Subject: [PATCH 3/3] Simplify cross-compilation. Don't use native-compiled 4Subject: [PATCH 3/4] Simplify cross-compilation. Don't use native-compiled
5 llvm-config. 5 llvm-config.
6 6
7 Note: AddLLVM.cmake does not expose the LLVM source directory. 7 Note: AddLLVM.cmake does not expose the LLVM source directory.
@@ -20,10 +20,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 1 file changed, 6 insertions(+), 26 deletions(-) 20 1 file changed, 6 insertions(+), 26 deletions(-)
21 21
22diff --git a/CMakeLists.txt b/CMakeLists.txt 22diff --git a/CMakeLists.txt b/CMakeLists.txt
23index d8794b5..d5477cf 100644 23index a067581..ce904c0 100644
24--- a/CMakeLists.txt 24--- a/CMakeLists.txt
25+++ b/CMakeLists.txt 25+++ b/CMakeLists.txt
26@@ -60,32 +60,12 @@ option(COMPILER_RT_BUILD_SANITIZERS "Build sanitizers" ON) 26@@ -39,32 +39,12 @@ option(COMPILER_RT_BUILD_SANITIZERS "Build sanitizers" ON)
27 mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS) 27 mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS)
28 28
29 if (COMPILER_RT_STANDALONE_BUILD) 29 if (COMPILER_RT_STANDALONE_BUILD)
@@ -63,5 +63,5 @@ index d8794b5..d5477cf 100644
63 set(LLVM_LIBRARY_OUTPUT_INTDIR 63 set(LLVM_LIBRARY_OUTPUT_INTDIR
64 ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX}) 64 ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
65-- 65--
662.8.2 662.9.0
67 67
diff --git a/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch b/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch
index 01c6caf..8da7512 100644
--- a/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch
+++ b/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch
@@ -1,4 +1,4 @@
1From a74650380d930a049aeee3c90c70141ad4178d0b Mon Sep 17 00:00:00 2001 1From baeeb27bb523b2bff96ab2fe2c5b38ecdd0570d0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 18 Jul 2016 08:05:02 +0000 3Date: Mon, 18 Jul 2016 08:05:02 +0000
4Subject: [PATCH 4/4] Disable tsan on OE/glibc 4Subject: [PATCH 4/4] Disable tsan on OE/glibc
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb
index 6901473..d175c23 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -17,7 +17,7 @@ PV .= "+git${SRCPV}"
17LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=bf24bca27049b52e9738451aa55771d4; \ 17LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=bf24bca27049b52e9738451aa55771d4; \
18" 18"
19SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ 19SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \
20 file://0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch \ 20 file://0001-compiler-rt-Fix-target-architecture-matching.patch \
21 file://0002-support-a-new-embedded-linux-target.patch \ 21 file://0002-support-a-new-embedded-linux-target.patch \
22 file://0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ 22 file://0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch \
23 file://0004-Disable-tsan-on-OE-glibc.patch \ 23 file://0004-Disable-tsan-on-OE-glibc.patch \