diff options
| author | Khem Raj <raj.khem@gmail.com> | 2016-07-27 00:54:00 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2016-07-27 00:54:00 -0700 |
| commit | 79f1d07b76ff1fabb508d9ce232a5e5127d1f3a7 (patch) | |
| tree | ae4d2088445b0965b57e267fab703548b0f88569 /recipes-devtools/clang/compiler-rt | |
| parent | 07ce0df1231c985d73705f0ba9bae3ddf7125e46 (diff) | |
| download | meta-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>
Diffstat (limited to 'recipes-devtools/clang/compiler-rt')
5 files changed, 46 insertions, 42 deletions
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 @@ | |||
| 1 | From b0de87ae88ff187820624d461fbb8fde84a90eb1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 10 May 2016 10:37:55 -0700 | ||
| 4 | Subject: [PATCH 1/3] Remove fatal check for explicit | ||
| 5 | COMPILER_RT_DEFAULT_TARGET_ARCH | ||
| 6 | |||
| 7 | In OE, we do not deduce float-abi via target triplet | ||
| 8 | but via a CFLAGS option, and we do not have possibility | ||
| 9 | to build both hf and sf in same toolchain, therefore lets | ||
| 10 | ignore the test, we are doing the right job from recipe | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | cmake/Modules/CompilerRTUtils.cmake | 4 ---- | ||
| 15 | 1 file changed, 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake | ||
| 18 | index 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 | -- | ||
| 32 | 2.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 @@ | |||
| 1 | From 921549310c98ac7d594d1f290f053b8e2b3a32d0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Francis Ricci <francisjricci@gmail.com> | ||
| 3 | Date: Wed, 20 Jul 2016 18:06:31 +0000 | ||
| 4 | Subject: [PATCH 1/4] [compiler-rt] Fix target architecture matching | ||
| 5 | |||
| 6 | Summary: | ||
| 7 | Use stricter comparisons for architecture. This prevents cmake from failing | ||
| 8 | for sysroots which can only compile armhf and not arm, since | ||
| 9 | arm MATCHES armhf is true, while arm STREQUAL armhf is false. | ||
| 10 | |||
| 11 | Reviewers: beanz, compnerd | ||
| 12 | |||
| 13 | Subscribers: aemerson, llvm-commits | ||
| 14 | |||
| 15 | Differential Revision: https://reviews.llvm.org/D22473 | ||
| 16 | |||
| 17 | git-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 | |||
| 22 | diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake | ||
| 23 | index 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 | -- | ||
| 36 | 2.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 @@ | |||
| 1 | From 7b7cdc3fcbec45f08b20600c8410c125edeb67ef Mon Sep 17 00:00:00 2001 | 1 | From 4bdc7871ab0a6134ee01c138e863476de9c08e25 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 | 3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 |
| 4 | Subject: [PATCH 2/3] support a new embedded linux target | 4 | Subject: [PATCH 2/4] support a new embedded linux target |
| 5 | 5 | ||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-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 | |||
| 322 | new file mode 100644 | 322 | new file mode 100644 |
| 323 | index 0000000..e69de29 | 323 | index 0000000..e69de29 |
| 324 | -- | 324 | -- |
| 325 | 2.8.2 | 325 | 2.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 @@ | |||
| 1 | From f8617c08ad6e38ccb4623a777cd8c9601af6e2ec Mon Sep 17 00:00:00 2001 | 1 | From 6676553c56ac1879d8d597351b457ba2e087168c Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 19 May 2016 23:11:45 -0700 | 3 | Date: Thu, 19 May 2016 23:11:45 -0700 |
| 4 | Subject: [PATCH 3/3] Simplify cross-compilation. Don't use native-compiled | 4 | Subject: [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 | ||
| 22 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 22 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 23 | index d8794b5..d5477cf 100644 | 23 | index 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 | -- |
| 66 | 2.8.2 | 66 | 2.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 @@ | |||
| 1 | From a74650380d930a049aeee3c90c70141ad4178d0b Mon Sep 17 00:00:00 2001 | 1 | From baeeb27bb523b2bff96ab2fe2c5b38ecdd0570d0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 | 3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 |
| 4 | Subject: [PATCH 4/4] Disable tsan on OE/glibc | 4 | Subject: [PATCH 4/4] Disable tsan on OE/glibc |
