diff options
48 files changed, 322 insertions, 549 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 8f23091256..6cfa76e2a3 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
| @@ -481,7 +481,7 @@ RECIPE_MAINTAINER:pn-linux-yocto-rt = "Bruce Ashfield <bruce.ashfield@gmail.com> | |||
| 481 | RECIPE_MAINTAINER:pn-linux-yocto-tiny = "Bruce Ashfield <bruce.ashfield@gmail.com>" | 481 | RECIPE_MAINTAINER:pn-linux-yocto-tiny = "Bruce Ashfield <bruce.ashfield@gmail.com>" |
| 482 | RECIPE_MAINTAINER:pn-lld = "Khem Raj <raj.khem@gmail.com>" | 482 | RECIPE_MAINTAINER:pn-lld = "Khem Raj <raj.khem@gmail.com>" |
| 483 | RECIPE_MAINTAINER:pn-lldb = "Khem Raj <raj.khem@gmail.com>" | 483 | RECIPE_MAINTAINER:pn-lldb = "Khem Raj <raj.khem@gmail.com>" |
| 484 | RECIPE_MAINTAINER:pn-llvm-project-source-20.1.8 = "Khem Raj <raj.khem@gmail.com>" | 484 | RECIPE_MAINTAINER:pn-llvm-project-source-21.1.0 = "Khem Raj <raj.khem@gmail.com>" |
| 485 | RECIPE_MAINTAINER:pn-llvm-tblgen-native = "Khem Raj <raj.khem@gmail.com>" | 485 | RECIPE_MAINTAINER:pn-llvm-tblgen-native = "Khem Raj <raj.khem@gmail.com>" |
| 486 | RECIPE_MAINTAINER:pn-logrotate = "Yi Zhao <yi.zhao@windriver.com>" | 486 | RECIPE_MAINTAINER:pn-logrotate = "Yi Zhao <yi.zhao@windriver.com>" |
| 487 | RECIPE_MAINTAINER:pn-log4cplus = "Unassigned <unassigned@yoctoproject.org>" | 487 | RECIPE_MAINTAINER:pn-log4cplus = "Unassigned <unassigned@yoctoproject.org>" |
diff --git a/meta/recipes-devtools/clang/clang/0001-compiler-rt-AArch64-Add-GCS-property-in-assembly-fil.patch b/meta/recipes-devtools/clang/clang/0001-compiler-rt-AArch64-Add-GCS-property-in-assembly-fil.patch deleted file mode 100644 index 5935c42d90..0000000000 --- a/meta/recipes-devtools/clang/clang/0001-compiler-rt-AArch64-Add-GCS-property-in-assembly-fil.patch +++ /dev/null | |||
| @@ -1,151 +0,0 @@ | |||
| 1 | From 2d102880766a5e55e5d7b4f9a2fb106d7d1ee55c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Csan=C3=A1d=20Hajd=C3=BA?= <csanad.hajdu@arm.com> | ||
| 3 | Date: Thu, 7 Aug 2025 16:40:36 +0200 | ||
| 4 | Subject: [PATCH] [compiler-rt][AArch64] Add GCS property in assembly files | ||
| 5 | (#152502) | ||
| 6 | |||
| 7 | Only BTI and PAC properties were added previously. | ||
| 8 | |||
| 9 | Fixes https://github.com/llvm/llvm-project/issues/152427. | ||
| 10 | |||
| 11 | Upstream-Status: Backport [https://github.com/llvm/llvm-project/pull/152502] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | compiler-rt/lib/builtins/aarch64/lse.S | 4 ++-- | ||
| 15 | compiler-rt/lib/builtins/aarch64/sme-abi.S | 4 ++-- | ||
| 16 | compiler-rt/lib/builtins/assembly.h | 18 +++++++++++++----- | ||
| 17 | .../lib/hwasan/hwasan_interceptors_vfork.S | 2 +- | ||
| 18 | compiler-rt/lib/hwasan/hwasan_setjmp_aarch64.S | 2 +- | ||
| 19 | .../lib/hwasan/hwasan_tag_mismatch_aarch64.S | 2 +- | ||
| 20 | ...zer_common_interceptors_vfork_aarch64.inc.S | 2 +- | ||
| 21 | compiler-rt/lib/tsan/rtl/tsan_rtl_aarch64.S | 2 +- | ||
| 22 | 8 files changed, 22 insertions(+), 14 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/compiler-rt/lib/builtins/aarch64/lse.S b/compiler-rt/lib/builtins/aarch64/lse.S | ||
| 25 | index 1fe18f4a4681..abad047096cc 100644 | ||
| 26 | --- a/compiler-rt/lib/builtins/aarch64/lse.S | ||
| 27 | +++ b/compiler-rt/lib/builtins/aarch64/lse.S | ||
| 28 | @@ -264,7 +264,7 @@ END_COMPILERRT_OUTLINE_FUNCTION(NAME(LDNM)) | ||
| 29 | |||
| 30 | NO_EXEC_STACK_DIRECTIVE | ||
| 31 | |||
| 32 | -// GNU property note for BTI and PAC | ||
| 33 | -GNU_PROPERTY_BTI_PAC | ||
| 34 | +// GNU property note for BTI, PAC, and GCS | ||
| 35 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 36 | |||
| 37 | #endif // __aarch64__ | ||
| 38 | diff --git a/compiler-rt/lib/builtins/aarch64/sme-abi.S b/compiler-rt/lib/builtins/aarch64/sme-abi.S | ||
| 39 | index 8dbbe061edb9..29d7ad53047d 100644 | ||
| 40 | --- a/compiler-rt/lib/builtins/aarch64/sme-abi.S | ||
| 41 | +++ b/compiler-rt/lib/builtins/aarch64/sme-abi.S | ||
| 42 | @@ -371,5 +371,5 @@ END_COMPILERRT_FUNCTION(__arm_sme_restore) | ||
| 43 | |||
| 44 | NO_EXEC_STACK_DIRECTIVE | ||
| 45 | |||
| 46 | -// GNU property note for BTI and PAC | ||
| 47 | -GNU_PROPERTY_BTI_PAC | ||
| 48 | +// GNU property note for BTI, PAC, and GCS | ||
| 49 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 50 | diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h | ||
| 51 | index 34c71241524d..a554c10c18ac 100644 | ||
| 52 | --- a/compiler-rt/lib/builtins/assembly.h | ||
| 53 | +++ b/compiler-rt/lib/builtins/assembly.h | ||
| 54 | @@ -79,11 +79,12 @@ | ||
| 55 | #define FUNC_ALIGN | ||
| 56 | #endif | ||
| 57 | |||
| 58 | -// BTI and PAC gnu property note | ||
| 59 | +// BTI, PAC, and GCS gnu property note | ||
| 60 | #define NT_GNU_PROPERTY_TYPE_0 5 | ||
| 61 | #define GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000 | ||
| 62 | #define GNU_PROPERTY_AARCH64_FEATURE_1_BTI 1 | ||
| 63 | #define GNU_PROPERTY_AARCH64_FEATURE_1_PAC 2 | ||
| 64 | +#define GNU_PROPERTY_AARCH64_FEATURE_1_GCS 4 | ||
| 65 | |||
| 66 | #if defined(__ARM_FEATURE_BTI_DEFAULT) | ||
| 67 | #define BTI_FLAG GNU_PROPERTY_AARCH64_FEATURE_1_BTI | ||
| 68 | @@ -97,6 +98,12 @@ | ||
| 69 | #define PAC_FLAG 0 | ||
| 70 | #endif | ||
| 71 | |||
| 72 | +#if defined(__ARM_FEATURE_GCS_DEFAULT) | ||
| 73 | +#define GCS_FLAG GNU_PROPERTY_AARCH64_FEATURE_1_GCS | ||
| 74 | +#else | ||
| 75 | +#define GCS_FLAG 0 | ||
| 76 | +#endif | ||
| 77 | + | ||
| 78 | #define GNU_PROPERTY(type, value) \ | ||
| 79 | .pushsection .note.gnu.property, "a" SEPARATOR \ | ||
| 80 | .p2align 3 SEPARATOR \ | ||
| 81 | @@ -118,11 +125,12 @@ | ||
| 82 | #define BTI_J | ||
| 83 | #endif | ||
| 84 | |||
| 85 | -#if (BTI_FLAG | PAC_FLAG) != 0 | ||
| 86 | -#define GNU_PROPERTY_BTI_PAC \ | ||
| 87 | - GNU_PROPERTY(GNU_PROPERTY_AARCH64_FEATURE_1_AND, BTI_FLAG | PAC_FLAG) | ||
| 88 | +#if (BTI_FLAG | PAC_FLAG | GCS_FLAG) != 0 | ||
| 89 | +#define GNU_PROPERTY_BTI_PAC_GCS \ | ||
| 90 | + GNU_PROPERTY(GNU_PROPERTY_AARCH64_FEATURE_1_AND, \ | ||
| 91 | + BTI_FLAG | PAC_FLAG | GCS_FLAG) | ||
| 92 | #else | ||
| 93 | -#define GNU_PROPERTY_BTI_PAC | ||
| 94 | +#define GNU_PROPERTY_BTI_PAC_GCS | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #if defined(__clang__) || defined(__GCC_HAVE_DWARF2_CFI_ASM) | ||
| 98 | diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors_vfork.S b/compiler-rt/lib/hwasan/hwasan_interceptors_vfork.S | ||
| 99 | index fd20825e3dac..825f41156509 100644 | ||
| 100 | --- a/compiler-rt/lib/hwasan/hwasan_interceptors_vfork.S | ||
| 101 | +++ b/compiler-rt/lib/hwasan/hwasan_interceptors_vfork.S | ||
| 102 | @@ -11,4 +11,4 @@ | ||
| 103 | |||
| 104 | NO_EXEC_STACK_DIRECTIVE | ||
| 105 | |||
| 106 | -GNU_PROPERTY_BTI_PAC | ||
| 107 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 108 | diff --git a/compiler-rt/lib/hwasan/hwasan_setjmp_aarch64.S b/compiler-rt/lib/hwasan/hwasan_setjmp_aarch64.S | ||
| 109 | index 0c0abb6de861..b8d98b09ada2 100644 | ||
| 110 | --- a/compiler-rt/lib/hwasan/hwasan_setjmp_aarch64.S | ||
| 111 | +++ b/compiler-rt/lib/hwasan/hwasan_setjmp_aarch64.S | ||
| 112 | @@ -99,4 +99,4 @@ ASM_TRAMPOLINE_ALIAS(_setjmp, setjmp) | ||
| 113 | // We do not need executable stack. | ||
| 114 | NO_EXEC_STACK_DIRECTIVE | ||
| 115 | |||
| 116 | -GNU_PROPERTY_BTI_PAC | ||
| 117 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 118 | diff --git a/compiler-rt/lib/hwasan/hwasan_tag_mismatch_aarch64.S b/compiler-rt/lib/hwasan/hwasan_tag_mismatch_aarch64.S | ||
| 119 | index fd060c51cd8e..be82475101c8 100644 | ||
| 120 | --- a/compiler-rt/lib/hwasan/hwasan_tag_mismatch_aarch64.S | ||
| 121 | +++ b/compiler-rt/lib/hwasan/hwasan_tag_mismatch_aarch64.S | ||
| 122 | @@ -157,4 +157,4 @@ mismatch: | ||
| 123 | // We do not need executable stack. | ||
| 124 | NO_EXEC_STACK_DIRECTIVE | ||
| 125 | |||
| 126 | -GNU_PROPERTY_BTI_PAC | ||
| 127 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 128 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S | ||
| 129 | index cdfa6f1d7f53..5066953980af 100644 | ||
| 130 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S | ||
| 131 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S | ||
| 132 | @@ -43,6 +43,6 @@ ASM_SIZE(vfork) | ||
| 133 | ASM_INTERCEPTOR_TRAMPOLINE(vfork) | ||
| 134 | ASM_TRAMPOLINE_ALIAS(vfork, vfork) | ||
| 135 | |||
| 136 | -GNU_PROPERTY_BTI_PAC | ||
| 137 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 138 | |||
| 139 | #endif | ||
| 140 | diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_aarch64.S b/compiler-rt/lib/tsan/rtl/tsan_rtl_aarch64.S | ||
| 141 | index 7d920bee4a2d..f1d11a3e7f54 100644 | ||
| 142 | --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_aarch64.S | ||
| 143 | +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_aarch64.S | ||
| 144 | @@ -222,6 +222,6 @@ ASM_SIZE(ASM_SYMBOL_INTERCEPTOR(__sigsetjmp)) | ||
| 145 | |||
| 146 | NO_EXEC_STACK_DIRECTIVE | ||
| 147 | |||
| 148 | -GNU_PROPERTY_BTI_PAC | ||
| 149 | +GNU_PROPERTY_BTI_PAC_GCS | ||
| 150 | |||
| 151 | #endif | ||
diff --git a/meta/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch b/meta/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch index 3853d7648b..8836863e2b 100644 --- a/meta/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch +++ b/meta/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 1fa8ec110c67714cff009b481c430e3d004bfaad Mon Sep 17 00:00:00 2001 | 1 | From b741b268820d5c81cef9cf16cb9b8b8742220fdc 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, 27 Aug 2017 10:37:49 -0700 | 3 | Date: Sun, 27 Aug 2017 10:37:49 -0700 |
| 4 | Subject: [PATCH] libcxxabi: Find libunwind headers when | 4 | Subject: [PATCH] libcxxabi: Find libunwind headers when |
| @@ -18,10 +18,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 18 | 1 file changed, 10 insertions(+), 5 deletions(-) | 18 | 1 file changed, 10 insertions(+), 5 deletions(-) |
| 19 | 19 | ||
| 20 | diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt | 20 | diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt |
| 21 | index 6dcfc51e5532..32478a62a058 100644 | 21 | index cf478bcee01f..4b374572905d 100644 |
| 22 | --- a/libcxxabi/CMakeLists.txt | 22 | --- a/libcxxabi/CMakeLists.txt |
| 23 | +++ b/libcxxabi/CMakeLists.txt | 23 | +++ b/libcxxabi/CMakeLists.txt |
| 24 | @@ -465,7 +465,7 @@ set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | 24 | @@ -472,7 +472,7 @@ set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH |
| 25 | "Specify path to libunwind source." FORCE) | 25 | "Specify path to libunwind source." FORCE) |
| 26 | 26 | ||
| 27 | if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | 27 | if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) |
| @@ -30,7 +30,7 @@ index 6dcfc51e5532..32478a62a058 100644 | |||
| 30 | PATHS ${LIBCXXABI_LIBUNWIND_INCLUDES} | 30 | PATHS ${LIBCXXABI_LIBUNWIND_INCLUDES} |
| 31 | ${LIBCXXABI_LIBUNWIND_PATH}/include | 31 | ${LIBCXXABI_LIBUNWIND_PATH}/include |
| 32 | ${CMAKE_BINARY_DIR}/${LIBCXXABI_LIBUNWIND_INCLUDES} | 32 | ${CMAKE_BINARY_DIR}/${LIBCXXABI_LIBUNWIND_INCLUDES} |
| 33 | @@ -476,18 +476,23 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | 33 | @@ -483,18 +483,23 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) |
| 34 | NO_CMAKE_FIND_ROOT_PATH | 34 | NO_CMAKE_FIND_ROOT_PATH |
| 35 | ) | 35 | ) |
| 36 | 36 | ||
diff --git a/meta/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch b/meta/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch index d5d6a2c6d7..e76dc2bbe0 100644 --- a/meta/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch +++ b/meta/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 6e8c6c53281fdd3b11d29d706905a3fe959afd11 Mon Sep 17 00:00:00 2001 | 1 | From 9e42b5a74a86b108c49d9f4cc97ad4aa986af5e8 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] compiler-rt: support a new embedded linux target | 4 | Subject: [PATCH] compiler-rt: support a new embedded linux target |
diff --git a/meta/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch b/meta/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch index 0ee7090290..9bbd6e4027 100644 --- a/meta/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch +++ b/meta/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 419855642e4a48d09e7b3b1e02593b6d9a506089 Mon Sep 17 00:00:00 2001 | 1 | From 098622b7dce4f28942a4f4a46d46580742dab972 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] compiler-rt: Simplify cross-compilation. Don't use | 4 | Subject: [PATCH] compiler-rt: Simplify cross-compilation. Don't use |
| @@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 21 | 1 file changed, 10 insertions(+), 1 deletion(-) | 21 | 1 file changed, 10 insertions(+), 1 deletion(-) |
| 22 | 22 | ||
| 23 | diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt | 23 | diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt |
| 24 | index 2c52788de56a..fe409704acc3 100644 | 24 | index 9f8e8334d75b..a0ba047bdb73 100644 |
| 25 | --- a/compiler-rt/CMakeLists.txt | 25 | --- a/compiler-rt/CMakeLists.txt |
| 26 | +++ b/compiler-rt/CMakeLists.txt | 26 | +++ b/compiler-rt/CMakeLists.txt |
| 27 | @@ -107,7 +107,16 @@ if (COMPILER_RT_STANDALONE_BUILD) | 27 | @@ -107,7 +107,16 @@ if (COMPILER_RT_STANDALONE_BUILD) |
diff --git a/meta/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch b/meta/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch index 60b5360057..ef6bd55246 100644 --- a/meta/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch +++ b/meta/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 2603da5f1fce88f6c7f6134faf7757f17b7e14f5 Mon Sep 17 00:00:00 2001 | 1 | From bd6aaf1bad7d46da1928a5b1ecfc9f15e4345a84 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: Sat, 21 May 2016 00:33:20 +0000 | 3 | Date: Sat, 21 May 2016 00:33:20 +0000 |
| 4 | Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are | 4 | Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are |
| @@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 14 | 1 file changed, 21 insertions(+), 1 deletion(-) | 14 | 1 file changed, 21 insertions(+), 1 deletion(-) |
| 15 | 15 | ||
| 16 | diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.def b/llvm/include/llvm/Analysis/TargetLibraryInfo.def | 16 | diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.def b/llvm/include/llvm/Analysis/TargetLibraryInfo.def |
| 17 | index db566b8ee610..578161f9c978 100644 | 17 | index 014988299d37..ea77dae66482 100644 |
| 18 | --- a/llvm/include/llvm/Analysis/TargetLibraryInfo.def | 18 | --- a/llvm/include/llvm/Analysis/TargetLibraryInfo.def |
| 19 | +++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.def | 19 | +++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.def |
| 20 | @@ -1467,6 +1467,9 @@ TLI_DEFINE_STRING_INTERNAL("fopen") | 20 | @@ -1467,6 +1467,9 @@ TLI_DEFINE_STRING_INTERNAL("fopen") |
| @@ -68,7 +68,7 @@ index db566b8ee610..578161f9c978 100644 | |||
| 68 | TLI_DEFINE_ENUM_INTERNAL(lstat64) | 68 | TLI_DEFINE_ENUM_INTERNAL(lstat64) |
| 69 | TLI_DEFINE_STRING_INTERNAL("lstat64") | 69 | TLI_DEFINE_STRING_INTERNAL("lstat64") |
| 70 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 70 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
| 71 | @@ -2334,6 +2348,9 @@ TLI_DEFINE_STRING_INTERNAL("stat") | 71 | @@ -2339,6 +2353,9 @@ TLI_DEFINE_STRING_INTERNAL("stat") |
| 72 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 72 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
| 73 | 73 | ||
| 74 | /// int stat64(const char *path, struct stat64 *buf); | 74 | /// int stat64(const char *path, struct stat64 *buf); |
| @@ -78,7 +78,7 @@ index db566b8ee610..578161f9c978 100644 | |||
| 78 | TLI_DEFINE_ENUM_INTERNAL(stat64) | 78 | TLI_DEFINE_ENUM_INTERNAL(stat64) |
| 79 | TLI_DEFINE_STRING_INTERNAL("stat64") | 79 | TLI_DEFINE_STRING_INTERNAL("stat64") |
| 80 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 80 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
| 81 | @@ -2559,6 +2576,9 @@ TLI_DEFINE_STRING_INTERNAL("tmpfile") | 81 | @@ -2564,6 +2581,9 @@ TLI_DEFINE_STRING_INTERNAL("tmpfile") |
| 82 | TLI_DEFINE_SIG_INTERNAL(Ptr) | 82 | TLI_DEFINE_SIG_INTERNAL(Ptr) |
| 83 | 83 | ||
| 84 | /// FILE *tmpfile64(void) | 84 | /// FILE *tmpfile64(void) |
diff --git a/meta/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch b/meta/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch index 7aea73e611..1fc9bd3df0 100644 --- a/meta/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch +++ b/meta/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 13a9ce5a34060abaa6d5da5176eb1dab271dac4e Mon Sep 17 00:00:00 2001 | 1 | From 82bcb02b2bfbad848663726d68344ce919fc8e65 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Kelly <mkelly@xevo.com> | 2 | From: Martin Kelly <mkelly@xevo.com> |
| 3 | Date: Fri, 19 May 2017 00:22:57 -0700 | 3 | Date: Fri, 19 May 2017 00:22:57 -0700 |
| 4 | Subject: [PATCH] llvm: allow env override of exe and libdir path | 4 | Subject: [PATCH] llvm: allow env override of exe and libdir path |
| @@ -19,10 +19,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 19 | 1 file changed, 19 insertions(+), 6 deletions(-) | 19 | 1 file changed, 19 insertions(+), 6 deletions(-) |
| 20 | 20 | ||
| 21 | diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp | 21 | diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp |
| 22 | index d5b76b1bb6c1..a739f0d8dbea 100644 | 22 | index 49df8fdcb7f7..c092db81bb8f 100644 |
| 23 | --- a/llvm/tools/llvm-config/llvm-config.cpp | 23 | --- a/llvm/tools/llvm-config/llvm-config.cpp |
| 24 | +++ b/llvm/tools/llvm-config/llvm-config.cpp | 24 | +++ b/llvm/tools/llvm-config/llvm-config.cpp |
| 25 | @@ -246,6 +246,13 @@ Typical components:\n\ | 25 | @@ -245,6 +245,13 @@ Typical components:\n\ |
| 26 | 26 | ||
| 27 | /// Compute the path to the main executable. | 27 | /// Compute the path to the main executable. |
| 28 | std::string GetExecutablePath(const char *Argv0) { | 28 | std::string GetExecutablePath(const char *Argv0) { |
| @@ -36,7 +36,7 @@ index d5b76b1bb6c1..a739f0d8dbea 100644 | |||
| 36 | // This just needs to be some symbol in the binary; C++ doesn't | 36 | // This just needs to be some symbol in the binary; C++ doesn't |
| 37 | // allow taking the address of ::main however. | 37 | // allow taking the address of ::main however. |
| 38 | void *P = (void *)(intptr_t)GetExecutablePath; | 38 | void *P = (void *)(intptr_t)GetExecutablePath; |
| 39 | @@ -325,7 +332,7 @@ int main(int argc, char **argv) { | 39 | @@ -324,7 +331,7 @@ int main(int argc, char **argv) { |
| 40 | // Compute various directory locations based on the derived location | 40 | // Compute various directory locations based on the derived location |
| 41 | // information. | 41 | // information. |
| 42 | std::string ActivePrefix, ActiveBinDir, ActiveIncludeDir, ActiveLibDir, | 42 | std::string ActivePrefix, ActiveBinDir, ActiveIncludeDir, ActiveLibDir, |
| @@ -45,7 +45,7 @@ index d5b76b1bb6c1..a739f0d8dbea 100644 | |||
| 45 | std::string ActiveIncludeOption; | 45 | std::string ActiveIncludeOption; |
| 46 | if (IsInDevelopmentTree) { | 46 | if (IsInDevelopmentTree) { |
| 47 | ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include"; | 47 | ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include"; |
| 48 | @@ -366,12 +373,18 @@ int main(int argc, char **argv) { | 48 | @@ -365,12 +372,18 @@ int main(int argc, char **argv) { |
| 49 | sys::fs::make_absolute(ActivePrefix, Path); | 49 | sys::fs::make_absolute(ActivePrefix, Path); |
| 50 | ActiveBinDir = std::string(Path); | 50 | ActiveBinDir = std::string(Path); |
| 51 | } | 51 | } |
diff --git a/meta/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch b/meta/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch index 44fa980ab8..10888fefe9 100644 --- a/meta/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch +++ b/meta/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a804903ed85707d9a06c7e01aef536b3042790d0 Mon Sep 17 00:00:00 2001 | 1 | From 1416f9085479ebe08cc299928844541e55f58504 Mon Sep 17 00:00:00 2001 |
| 2 | From: Dan McGregor <dan.mcgregor@usask.ca> | 2 | From: Dan McGregor <dan.mcgregor@usask.ca> |
| 3 | Date: Wed, 26 Apr 2017 20:29:41 -0600 | 3 | Date: Wed, 26 Apr 2017 20:29:41 -0600 |
| 4 | Subject: [PATCH] clang: driver: Check sysroot for ldso path | 4 | Subject: [PATCH] clang: driver: Check sysroot for ldso path |
| @@ -17,10 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 17 | 1 file changed, 21 insertions(+), 1 deletion(-) | 17 | 1 file changed, 21 insertions(+), 1 deletion(-) |
| 18 | 18 | ||
| 19 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 19 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 20 | index 0767fe6c5879..e5a696f63fd0 100644 | 20 | index 8ac8d4eb9181..f1a334c7a081 100644 |
| 21 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 21 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 22 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 22 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 23 | @@ -523,8 +523,12 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 23 | @@ -515,8 +515,12 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 24 | Triple.getEnvironment() == llvm::Triple::GNUEABIHFT64 || | 24 | Triple.getEnvironment() == llvm::Triple::GNUEABIHFT64 || |
| 25 | tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard; | 25 | tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard; |
| 26 | 26 | ||
| @@ -34,7 +34,7 @@ index 0767fe6c5879..e5a696f63fd0 100644 | |||
| 34 | break; | 34 | break; |
| 35 | } | 35 | } |
| 36 | case llvm::Triple::loongarch32: { | 36 | case llvm::Triple::loongarch32: { |
| 37 | @@ -578,11 +582,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 37 | @@ -570,11 +574,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 38 | LibDir = "lib64"; | 38 | LibDir = "lib64"; |
| 39 | Loader = | 39 | Loader = |
| 40 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; | 40 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; |
| @@ -54,7 +54,7 @@ index 0767fe6c5879..e5a696f63fd0 100644 | |||
| 54 | break; | 54 | break; |
| 55 | case llvm::Triple::riscv32: | 55 | case llvm::Triple::riscv32: |
| 56 | case llvm::Triple::riscv64: { | 56 | case llvm::Triple::riscv64: { |
| 57 | @@ -600,6 +612,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 57 | @@ -592,6 +604,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 58 | case llvm::Triple::sparcv9: | 58 | case llvm::Triple::sparcv9: |
| 59 | LibDir = "lib64"; | 59 | LibDir = "lib64"; |
| 60 | Loader = "ld-linux.so.2"; | 60 | Loader = "ld-linux.so.2"; |
| @@ -65,7 +65,7 @@ index 0767fe6c5879..e5a696f63fd0 100644 | |||
| 65 | break; | 65 | break; |
| 66 | case llvm::Triple::systemz: | 66 | case llvm::Triple::systemz: |
| 67 | LibDir = "lib"; | 67 | LibDir = "lib"; |
| 68 | @@ -614,6 +630,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 68 | @@ -606,6 +622,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 69 | 69 | ||
| 70 | LibDir = X32 ? "libx32" : "lib64"; | 70 | LibDir = X32 ? "libx32" : "lib64"; |
| 71 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; | 71 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; |
diff --git a/meta/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch b/meta/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch index 6374ec7bf5..f91cbe7b43 100644 --- a/meta/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch +++ b/meta/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 703e5acbeaad6eeb316740dd8b92b34db99bb1b3 Mon Sep 17 00:00:00 2001 | 1 | From 4facd87cbed8b8179730043efa120122dc86dcf1 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 21:11:06 -0700 | 3 | Date: Thu, 19 May 2016 21:11:06 -0700 |
| 4 | Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl | 4 | Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl |
| @@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 14 | 1 file changed, 6 insertions(+) | 14 | 1 file changed, 6 insertions(+) |
| 15 | 15 | ||
| 16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 17 | index f56eeda3cb5f..9f7b9e8d42a8 100644 | 17 | index f5e265585743..3565c9398f92 100644 |
| 18 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp | 18 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp |
| 19 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp | 19 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 20 | @@ -631,6 +631,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, | 20 | @@ -551,6 +551,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, |
| 21 | if (IsIAMCU) | 21 | if (IsIAMCU) |
| 22 | CmdArgs.push_back("-lgloss"); | 22 | CmdArgs.push_back("-lgloss"); |
| 23 | 23 | ||
diff --git a/meta/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch b/meta/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch index 16d8c9bae5..78bc7661e4 100644 --- a/meta/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch +++ b/meta/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b1d4a42b6078502530924cd0d15052671c760eb6 Mon Sep 17 00:00:00 2001 | 1 | From 41442c26709f438a158b68c0339f1ea66c08864c 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, 16 Mar 2017 09:02:13 -0700 | 3 | Date: Thu, 16 Mar 2017 09:02:13 -0700 |
| 4 | Subject: [PATCH] clang: Prepend trailing '/' to sysroot | 4 | Subject: [PATCH] clang: Prepend trailing '/' to sysroot |
| @@ -25,10 +25,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 25 | 1 file changed, 1 insertion(+), 1 deletion(-) | 25 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 26 | 26 | ||
| 27 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 27 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 28 | index e5a696f63fd0..621fa17e0603 100644 | 28 | index f1a334c7a081..67e922e08228 100644 |
| 29 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 29 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 30 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 30 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 31 | @@ -216,7 +216,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) | 31 | @@ -215,7 +215,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) |
| 32 | Multilibs = GCCInstallation.getMultilibs(); | 32 | Multilibs = GCCInstallation.getMultilibs(); |
| 33 | SelectedMultilibs.assign({GCCInstallation.getMultilib()}); | 33 | SelectedMultilibs.assign({GCCInstallation.getMultilib()}); |
| 34 | llvm::Triple::ArchType Arch = Triple.getArch(); | 34 | llvm::Triple::ArchType Arch = Triple.getArch(); |
diff --git a/meta/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch b/meta/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch index 2ad1130355..7e2fca7783 100644 --- a/meta/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch +++ b/meta/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3edfe16c0d8bb3d135465038cb07c8122baac698 Mon Sep 17 00:00:00 2001 | 1 | From 04691d1155b246cb884162af863408ec1f471262 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, 16 Mar 2017 19:06:26 -0700 | 3 | Date: Thu, 16 Mar 2017 19:06:26 -0700 |
| 4 | Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime | 4 | Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime |
| @@ -16,18 +16,18 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 16 | 1 file changed, 5 insertions(+), 1 deletion(-) | 16 | 1 file changed, 5 insertions(+), 1 deletion(-) |
| 17 | 17 | ||
| 18 | diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp | 18 | diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp |
| 19 | index acf9d264d631..3e46c88e95cb 100644 | 19 | index 07a3ae925f96..ec28b899f829 100644 |
| 20 | --- a/clang/lib/Driver/ToolChain.cpp | 20 | --- a/clang/lib/Driver/ToolChain.cpp |
| 21 | +++ b/clang/lib/Driver/ToolChain.cpp | 21 | +++ b/clang/lib/Driver/ToolChain.cpp |
| 22 | @@ -16,6 +16,7 @@ | 22 | @@ -15,6 +15,7 @@ |
| 23 | #include "ToolChains/InterfaceStubs.h" | 23 | #include "ToolChains/InterfaceStubs.h" |
| 24 | #include "clang/Basic/ObjCRuntime.h" | 24 | #include "clang/Basic/ObjCRuntime.h" |
| 25 | #include "clang/Basic/Sanitizers.h" | 25 | #include "clang/Basic/Sanitizers.h" |
| 26 | +#include "clang/Basic/Version.h" | 26 | +#include "clang/Basic/Version.h" |
| 27 | #include "clang/Config/config.h" | 27 | #include "clang/Config/config.h" |
| 28 | #include "clang/Driver/Action.h" | 28 | #include "clang/Driver/Action.h" |
| 29 | #include "clang/Driver/Driver.h" | 29 | #include "clang/Driver/CommonArgs.h" |
| 30 | @@ -708,7 +709,10 @@ StringRef ToolChain::getOSLibName() const { | 30 | @@ -702,7 +703,10 @@ StringRef ToolChain::getOSLibName() const { |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | std::string ToolChain::getCompilerRTPath() const { | 33 | std::string ToolChain::getCompilerRTPath() const { |
diff --git a/meta/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch b/meta/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch index 346a4fcbb0..27324a9808 100644 --- a/meta/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch +++ b/meta/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From dc2de98d70a763f30347df2d76df1c70cc464b87 Mon Sep 17 00:00:00 2001 | 1 | From 0e77812bc764279a619a3fdd92d9c1f008dfa95a 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: Sat, 20 Mar 2021 16:09:16 -0700 | 3 | Date: Sat, 20 Mar 2021 16:09:16 -0700 |
| 4 | Subject: [PATCH] clang: Define / releative gcc installation dir | 4 | Subject: [PATCH] clang: Define / releative gcc installation dir |
| @@ -61,18 +61,18 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 61 | 1 file changed, 14 insertions(+), 8 deletions(-) | 61 | 1 file changed, 14 insertions(+), 8 deletions(-) |
| 62 | 62 | ||
| 63 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 63 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 64 | index 9f7b9e8d42a8..268fb7bf7167 100644 | 64 | index 3565c9398f92..6c52b337c16d 100644 |
| 65 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp | 65 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp |
| 66 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp | 66 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 67 | @@ -19,6 +19,7 @@ | 67 | @@ -18,6 +18,7 @@ |
| 68 | #include "Linux.h" | ||
| 69 | #include "clang/Config/config.h" // for GCC_INSTALL_PREFIX | 68 | #include "clang/Config/config.h" // for GCC_INSTALL_PREFIX |
| 69 | #include "clang/Driver/CommonArgs.h" | ||
| 70 | #include "clang/Driver/Compilation.h" | 70 | #include "clang/Driver/Compilation.h" |
| 71 | +#include "clang/Driver/Distro.h" | 71 | +#include "clang/Driver/Distro.h" |
| 72 | #include "clang/Driver/Driver.h" | 72 | #include "clang/Driver/Driver.h" |
| 73 | #include "clang/Driver/DriverDiagnostic.h" | ||
| 74 | #include "clang/Driver/MultilibBuilder.h" | 73 | #include "clang/Driver/MultilibBuilder.h" |
| 75 | @@ -2860,6 +2861,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | 74 | #include "clang/Driver/Options.h" |
| 75 | @@ -2798,6 +2799,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | ||
| 76 | const llvm::Triple &TargetTriple, const ArgList &Args, | 76 | const llvm::Triple &TargetTriple, const ArgList &Args, |
| 77 | const std::string &LibDir, StringRef CandidateTriple, | 77 | const std::string &LibDir, StringRef CandidateTriple, |
| 78 | bool NeedsBiarchSuffix, bool GCCDirExists, bool GCCCrossDirExists) { | 78 | bool NeedsBiarchSuffix, bool GCCDirExists, bool GCCCrossDirExists) { |
| @@ -80,7 +80,7 @@ index 9f7b9e8d42a8..268fb7bf7167 100644 | |||
| 80 | // Locations relative to the system lib directory where GCC's triple-specific | 80 | // Locations relative to the system lib directory where GCC's triple-specific |
| 81 | // directories might reside. | 81 | // directories might reside. |
| 82 | struct GCCLibSuffix { | 82 | struct GCCLibSuffix { |
| 83 | @@ -2871,19 +2873,20 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | 83 | @@ -2809,19 +2811,20 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( |
| 84 | // Whether this library suffix is relevant for the triple. | 84 | // Whether this library suffix is relevant for the triple. |
| 85 | bool Active; | 85 | bool Active; |
| 86 | } Suffixes[] = { | 86 | } Suffixes[] = { |
| @@ -108,7 +108,7 @@ index 9f7b9e8d42a8..268fb7bf7167 100644 | |||
| 108 | 108 | ||
| 109 | for (auto &Suffix : Suffixes) { | 109 | for (auto &Suffix : Suffixes) { |
| 110 | if (!Suffix.Active) | 110 | if (!Suffix.Active) |
| 111 | @@ -3274,8 +3277,11 @@ Generic_GCC::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, | 111 | @@ -3212,8 +3215,11 @@ Generic_GCC::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, |
| 112 | // incompatible with the NDK libraries. | 112 | // incompatible with the NDK libraries. |
| 113 | SmallString<128> DriverIncludeDir(getDriver().Dir); | 113 | SmallString<128> DriverIncludeDir(getDriver().Dir); |
| 114 | llvm::sys::path::append(DriverIncludeDir, "..", "include"); | 114 | llvm::sys::path::append(DriverIncludeDir, "..", "include"); |
diff --git a/meta/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch b/meta/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch index 25dade4389..2fc967a79f 100644 --- a/meta/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch +++ b/meta/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 0712b0f0fa8c9cf27016e8b1ef8391f6c9cfa4ff Mon Sep 17 00:00:00 2001 | 1 | From 3dd872e76d8ee8b9db384051115b7bb6679960b4 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: Wed, 31 Jul 2019 22:51:39 -0700 | 3 | Date: Wed, 31 Jul 2019 22:51:39 -0700 |
| 4 | Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static | 4 | Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static |
| @@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 21 | 1 file changed, 2 insertions(+) | 21 | 1 file changed, 2 insertions(+) |
| 22 | 22 | ||
| 23 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp | 23 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| 24 | index ae635fb6a180..255e7e0b7150 100644 | 24 | index 8d3775de9be5..d34b4d680c5e 100644 |
| 25 | --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp | 25 | --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| 26 | +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp | 26 | +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
| 27 | @@ -2254,6 +2254,8 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, | 27 | @@ -2326,6 +2326,8 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, |
| 28 | CmdArgs.push_back("-lunwind"); | 28 | CmdArgs.push_back("-lunwind"); |
| 29 | } else if (LGT == LibGccType::StaticLibGcc) { | 29 | } else if (LGT == LibGccType::StaticLibGcc) { |
| 30 | CmdArgs.push_back("-l:libunwind.a"); | 30 | CmdArgs.push_back("-l:libunwind.a"); |
diff --git a/meta/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch b/meta/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch index b55740e0d6..1c2867ba89 100644 --- a/meta/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch +++ b/meta/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a6055a858f6e54cac2b427101fb43c83599b9072 Mon Sep 17 00:00:00 2001 | 1 | From a338c2ae924451e869b593f66fc67040169c0a43 Mon Sep 17 00:00:00 2001 |
| 2 | From: Anuj Mittal <anuj.mittal@intel.com> | 2 | From: Anuj Mittal <anuj.mittal@intel.com> |
| 3 | Date: Thu, 26 Dec 2019 12:56:16 -0800 | 3 | Date: Thu, 26 Dec 2019 12:56:16 -0800 |
| 4 | Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build | 4 | Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build |
| @@ -11,13 +11,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 11 | 1 file changed, 1 insertion(+) | 11 | 1 file changed, 1 insertion(+) |
| 12 | 12 | ||
| 13 | diff --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake | 13 | diff --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake |
| 14 | index 3b31d3e218a3..a07ab45878fd 100644 | 14 | index bfbd9cfd4063..2a69c5133c56 100644 |
| 15 | --- a/llvm/cmake/modules/CrossCompile.cmake | 15 | --- a/llvm/cmake/modules/CrossCompile.cmake |
| 16 | +++ b/llvm/cmake/modules/CrossCompile.cmake | 16 | +++ b/llvm/cmake/modules/CrossCompile.cmake |
| 17 | @@ -100,6 +100,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) | 17 | @@ -101,6 +101,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) |
| 18 | -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}" | ||
| 19 | -DLLVM_INCLUDE_BENCHMARKS=OFF | 18 | -DLLVM_INCLUDE_BENCHMARKS=OFF |
| 20 | -DLLVM_INCLUDE_TESTS=OFF | 19 | -DLLVM_INCLUDE_TESTS=OFF |
| 20 | -DLLVM_TABLEGEN_FLAGS="${LLVM_TABLEGEN_FLAGS}" | ||
| 21 | + -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" | 21 | + -DPYTHON_EXECUTABLE="${PYTHON_EXECUTABLE}" |
| 22 | ${build_type_flags} ${linker_flag} ${external_clang_dir} ${libc_flags} | 22 | ${build_type_flags} ${linker_flag} ${external_clang_dir} ${libc_flags} |
| 23 | ${ARGN} | 23 | ${ARGN} |
diff --git a/meta/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch b/meta/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch index 99952fe182..e635cc2c3b 100644 --- a/meta/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch +++ b/meta/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From c9e8942cace57d9d222e8f005408631e1cd06c5c Mon Sep 17 00:00:00 2001 | 1 | From 8b96f0b76e328e877707ab343703f5a7372de016 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 Nov 2019 17:00:29 -0800 | 3 | Date: Mon, 18 Nov 2019 17:00:29 -0800 |
| 4 | Subject: [PATCH] Check for atomic<double> intrinsics | 4 | Subject: [PATCH] Check for atomic<double> intrinsics |
diff --git a/meta/recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch b/meta/recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch index f6df85538d..b99d4a36e8 100644 --- a/meta/recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch +++ b/meta/recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a6bf17d7eb64bd7beabc73b5fe319b7a375bbcce Mon Sep 17 00:00:00 2001 | 1 | From 2df5d92a84396aeca1689e17a97e16a337a8a5df Mon Sep 17 00:00:00 2001 |
| 2 | From: Ovidiu Panait <ovidiu.panait@windriver.com> | 2 | From: Ovidiu Panait <ovidiu.panait@windriver.com> |
| 3 | Date: Fri, 31 Jan 2020 10:56:11 +0200 | 3 | Date: Fri, 31 Jan 2020 10:56:11 +0200 |
| 4 | Subject: [PATCH] cmake: Fix configure for packages using find_package() | 4 | Subject: [PATCH] cmake: Fix configure for packages using find_package() |
| @@ -31,7 +31,7 @@ Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> | |||
| 31 | 3 files changed, 2 insertions(+), 15 deletions(-) | 31 | 3 files changed, 2 insertions(+), 15 deletions(-) |
| 32 | 32 | ||
| 33 | diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake | 33 | diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake |
| 34 | index cdc8bd5cd503..5faa9117a30f 100644 | 34 | index 4059fc3e986c..44d43aa8f25b 100644 |
| 35 | --- a/clang/cmake/modules/AddClang.cmake | 35 | --- a/clang/cmake/modules/AddClang.cmake |
| 36 | +++ b/clang/cmake/modules/AddClang.cmake | 36 | +++ b/clang/cmake/modules/AddClang.cmake |
| 37 | @@ -182,7 +182,6 @@ macro(add_clang_tool name) | 37 | @@ -182,7 +182,6 @@ macro(add_clang_tool name) |
| @@ -42,7 +42,7 @@ index cdc8bd5cd503..5faa9117a30f 100644 | |||
| 42 | RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" | 42 | RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" |
| 43 | COMPONENT ${name}) | 43 | COMPONENT ${name}) |
| 44 | 44 | ||
| 45 | @@ -191,7 +190,6 @@ macro(add_clang_tool name) | 45 | @@ -195,7 +194,6 @@ macro(add_clang_tool name) |
| 46 | DEPENDS ${name} | 46 | DEPENDS ${name} |
| 47 | COMPONENT ${name}) | 47 | COMPONENT ${name}) |
| 48 | endif() | 48 | endif() |
| @@ -51,18 +51,18 @@ index cdc8bd5cd503..5faa9117a30f 100644 | |||
| 51 | endif() | 51 | endif() |
| 52 | set_target_properties(${name} PROPERTIES XCODE_GENERATE_SCHEME ON) | 52 | set_target_properties(${name} PROPERTIES XCODE_GENERATE_SCHEME ON) |
| 53 | diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake | 53 | diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake |
| 54 | index d3e9377c8d2f..fe22d6f2b35a 100644 | 54 | index 83772ed8d2b1..1d184b8d613f 100644 |
| 55 | --- a/llvm/cmake/modules/AddLLVM.cmake | 55 | --- a/llvm/cmake/modules/AddLLVM.cmake |
| 56 | +++ b/llvm/cmake/modules/AddLLVM.cmake | 56 | +++ b/llvm/cmake/modules/AddLLVM.cmake |
| 57 | @@ -1492,7 +1492,6 @@ macro(llvm_add_tool project name) | 57 | @@ -1495,7 +1495,6 @@ macro(llvm_add_tool project name) |
| 58 | if( LLVM_BUILD_TOOLS ) | 58 | if( LLVM_BUILD_TOOLS ) |
| 59 | get_target_export_arg(${name} ${project} export_to_llvmexports) | 59 | get_target_export_arg(${name} ${project} export_to_llvmexports) |
| 60 | install(TARGETS ${name} | 60 | install(TARGETS ${name} |
| 61 | - ${export_to_llvmexports} | 61 | - ${export_to_llvmexports} |
| 62 | RUNTIME DESTINATION ${${project}_TOOLS_INSTALL_DIR} | 62 | RUNTIME DESTINATION ${${project}_TOOLS_INSTALL_DIR} |
| 63 | COMPONENT ${name}) | 63 | COMPONENT ${name}) |
| 64 | 64 | if (LLVM_ENABLE_PDB) | |
| 65 | @@ -1503,10 +1502,8 @@ macro(llvm_add_tool project name) | 65 | @@ -1511,10 +1510,8 @@ macro(llvm_add_tool project name) |
| 66 | endif() | 66 | endif() |
| 67 | endif() | 67 | endif() |
| 68 | endif() | 68 | endif() |
| @@ -75,15 +75,15 @@ index d3e9377c8d2f..fe22d6f2b35a 100644 | |||
| 75 | endif() | 75 | endif() |
| 76 | get_subproject_title(subproject_title) | 76 | get_subproject_title(subproject_title) |
| 77 | set_target_properties(${name} PROPERTIES FOLDER "${subproject_title}/Tools") | 77 | set_target_properties(${name} PROPERTIES FOLDER "${subproject_title}/Tools") |
| 78 | @@ -1556,7 +1553,6 @@ macro(add_llvm_utility name) | 78 | @@ -1569,7 +1566,6 @@ macro(add_llvm_utility name) |
| 79 | if (LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS) | 79 | if (LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS) |
| 80 | get_target_export_arg(${name} LLVM export_to_llvmexports) | 80 | get_target_export_arg(${name} LLVM export_to_llvmexports) |
| 81 | install(TARGETS ${name} | 81 | install(TARGETS ${name} |
| 82 | - ${export_to_llvmexports} | 82 | - ${export_to_llvmexports} |
| 83 | RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR} | 83 | RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR} |
| 84 | COMPONENT ${name}) | 84 | COMPONENT ${name}) |
| 85 | 85 | if (LLVM_ENABLE_PDB) | |
| 86 | @@ -1565,7 +1561,6 @@ macro(add_llvm_utility name) | 86 | @@ -1583,7 +1579,6 @@ macro(add_llvm_utility name) |
| 87 | DEPENDS ${name} | 87 | DEPENDS ${name} |
| 88 | COMPONENT ${name}) | 88 | COMPONENT ${name}) |
| 89 | endif() | 89 | endif() |
| @@ -92,10 +92,10 @@ index d3e9377c8d2f..fe22d6f2b35a 100644 | |||
| 92 | set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name}) | 92 | set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name}) |
| 93 | endif() | 93 | endif() |
| 94 | diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake | 94 | diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake |
| 95 | index ffcc718b4777..a76f28e74b86 100644 | 95 | index 9a2e73a1e371..149c94487edb 100644 |
| 96 | --- a/llvm/cmake/modules/TableGen.cmake | 96 | --- a/llvm/cmake/modules/TableGen.cmake |
| 97 | +++ b/llvm/cmake/modules/TableGen.cmake | 97 | +++ b/llvm/cmake/modules/TableGen.cmake |
| 98 | @@ -232,12 +232,7 @@ macro(add_tablegen target project) | 98 | @@ -227,12 +227,7 @@ macro(add_tablegen target project) |
| 99 | 99 | ||
| 100 | if (ADD_TABLEGEN_DESTINATION AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND | 100 | if (ADD_TABLEGEN_DESTINATION AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND |
| 101 | (LLVM_BUILD_UTILS OR ${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS)) | 101 | (LLVM_BUILD_UTILS OR ${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS)) |
| @@ -108,10 +108,11 @@ index ffcc718b4777..a76f28e74b86 100644 | |||
| 108 | COMPONENT ${target} | 108 | COMPONENT ${target} |
| 109 | RUNTIME DESTINATION "${ADD_TABLEGEN_DESTINATION}") | 109 | RUNTIME DESTINATION "${ADD_TABLEGEN_DESTINATION}") |
| 110 | if(NOT LLVM_ENABLE_IDE) | 110 | if(NOT LLVM_ENABLE_IDE) |
| 111 | @@ -248,6 +243,5 @@ macro(add_tablegen target project) | 111 | @@ -243,7 +238,6 @@ macro(add_tablegen target project) |
| 112 | endif() | 112 | endif() |
| 113 | if(ADD_TABLEGEN_EXPORT) | 113 | if(ADD_TABLEGEN_EXPORT) |
| 114 | string(TOUPPER ${ADD_TABLEGEN_EXPORT} export_upper) | 114 | string(TOUPPER ${ADD_TABLEGEN_EXPORT} export_upper) |
| 115 | - set_property(GLOBAL APPEND PROPERTY ${export_upper}_EXPORTS ${target}) | 115 | - set_property(GLOBAL APPEND PROPERTY ${export_upper}_EXPORTS ${target}) |
| 116 | endif() | 116 | endif() |
| 117 | endmacro() | 117 | endmacro() |
| 118 | |||
diff --git a/meta/recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch b/meta/recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch index 4841d6c1bc..df2f8cca2f 100644 --- a/meta/recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch +++ b/meta/recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f3c6f924525179ca190fecce2889997250ca8705 Mon Sep 17 00:00:00 2001 | 1 | From 45d866a863dc78f33104c5c265557886e6f27b45 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jim Broadus <jbroadus@xevo.com> | 2 | From: Jim Broadus <jbroadus@xevo.com> |
| 3 | Date: Thu, 26 Mar 2020 16:05:53 -0700 | 3 | Date: Thu, 26 Mar 2020 16:05:53 -0700 |
| 4 | Subject: [PATCH] clang: Fix resource dir location for cross toolchains | 4 | Subject: [PATCH] clang: Fix resource dir location for cross toolchains |
| @@ -20,10 +20,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 20 | 1 file changed, 8 insertions(+), 1 deletion(-) | 20 | 1 file changed, 8 insertions(+), 1 deletion(-) |
| 21 | 21 | ||
| 22 | diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp | 22 | diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp |
| 23 | index 87855fdb7997..036c9d09df26 100644 | 23 | index 55748c0bce91..306716809f54 100644 |
| 24 | --- a/clang/lib/Driver/Driver.cpp | 24 | --- a/clang/lib/Driver/Driver.cpp |
| 25 | +++ b/clang/lib/Driver/Driver.cpp | 25 | +++ b/clang/lib/Driver/Driver.cpp |
| 26 | @@ -176,6 +176,7 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath) { | 26 | @@ -188,6 +188,7 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath) { |
| 27 | 27 | ||
| 28 | // Dir is bin/ or lib/, depending on where BinaryPath is. | 28 | // Dir is bin/ or lib/, depending on where BinaryPath is. |
| 29 | StringRef Dir = llvm::sys::path::parent_path(BinaryPath); | 29 | StringRef Dir = llvm::sys::path::parent_path(BinaryPath); |
| @@ -31,7 +31,7 @@ index 87855fdb7997..036c9d09df26 100644 | |||
| 31 | SmallString<128> P(Dir); | 31 | SmallString<128> P(Dir); |
| 32 | 32 | ||
| 33 | StringRef ConfiguredResourceDir(CLANG_RESOURCE_DIR); | 33 | StringRef ConfiguredResourceDir(CLANG_RESOURCE_DIR); |
| 34 | @@ -187,9 +188,15 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath) { | 34 | @@ -204,9 +205,15 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath) { |
| 35 | // With a static-library build of libclang, LibClangPath will contain the | 35 | // With a static-library build of libclang, LibClangPath will contain the |
| 36 | // path of the embedding binary, which for LLVM binaries will be in bin/. | 36 | // path of the embedding binary, which for LLVM binaries will be in bin/. |
| 37 | // ../lib gets us to lib/ in both cases. | 37 | // ../lib gets us to lib/ in both cases. |
diff --git a/meta/recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch b/meta/recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch index 6bbbb5a259..e0b38f10bb 100644 --- a/meta/recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch +++ b/meta/recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 7c70f891fb94f2d8c88bc6af4514d8dcd6488658 Mon Sep 17 00:00:00 2001 | 1 | From 887bddb6654d942842b2c81f0b726592d27f6be8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Oleksandr Ocheretnyi <oocheret@cisco.com> | 2 | From: Oleksandr Ocheretnyi <oocheret@cisco.com> |
| 3 | Date: Wed, 15 Apr 2020 00:08:39 +0300 | 3 | Date: Wed, 15 Apr 2020 00:08:39 +0300 |
| 4 | Subject: [PATCH] clang: driver: Add dyld-prefix when checking sysroot for ldso | 4 | Subject: [PATCH] clang: driver: Add dyld-prefix when checking sysroot for ldso |
| @@ -19,10 +19,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 19 | 1 file changed, 10 insertions(+), 10 deletions(-) | 19 | 1 file changed, 10 insertions(+), 10 deletions(-) |
| 20 | 20 | ||
| 21 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 21 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 22 | index 621fa17e0603..8fd454d4eff4 100644 | 22 | index 67e922e08228..3ee2d56df00f 100644 |
| 23 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 23 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 24 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 24 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 25 | @@ -525,8 +525,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 25 | @@ -517,8 +517,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 26 | 26 | ||
| 27 | Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3"; | 27 | Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3"; |
| 28 | LibDir = "lib32"; | 28 | LibDir = "lib32"; |
| @@ -33,7 +33,7 @@ index 621fa17e0603..8fd454d4eff4 100644 | |||
| 33 | LibDir = "lib"; | 33 | LibDir = "lib"; |
| 34 | } | 34 | } |
| 35 | break; | 35 | break; |
| 36 | @@ -582,8 +582,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 36 | @@ -574,8 +574,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 37 | LibDir = "lib64"; | 37 | LibDir = "lib64"; |
| 38 | Loader = | 38 | Loader = |
| 39 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; | 39 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; |
| @@ -44,7 +44,7 @@ index 621fa17e0603..8fd454d4eff4 100644 | |||
| 44 | LibDir = "lib"; | 44 | LibDir = "lib"; |
| 45 | } | 45 | } |
| 46 | break; | 46 | break; |
| 47 | @@ -591,8 +591,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 47 | @@ -583,8 +583,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 48 | LibDir = "lib64"; | 48 | LibDir = "lib64"; |
| 49 | Loader = | 49 | Loader = |
| 50 | (tools::ppc::hasPPCAbiArg(Args, "elfv1")) ? "ld64.so.1" : "ld64.so.2"; | 50 | (tools::ppc::hasPPCAbiArg(Args, "elfv1")) ? "ld64.so.1" : "ld64.so.2"; |
| @@ -55,7 +55,7 @@ index 621fa17e0603..8fd454d4eff4 100644 | |||
| 55 | LibDir = "lib"; | 55 | LibDir = "lib"; |
| 56 | } | 56 | } |
| 57 | break; | 57 | break; |
| 58 | @@ -612,8 +612,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 58 | @@ -604,8 +604,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 59 | case llvm::Triple::sparcv9: | 59 | case llvm::Triple::sparcv9: |
| 60 | LibDir = "lib64"; | 60 | LibDir = "lib64"; |
| 61 | Loader = "ld-linux.so.2"; | 61 | Loader = "ld-linux.so.2"; |
| @@ -66,7 +66,7 @@ index 621fa17e0603..8fd454d4eff4 100644 | |||
| 66 | LibDir = "lib"; | 66 | LibDir = "lib"; |
| 67 | } | 67 | } |
| 68 | break; | 68 | break; |
| 69 | @@ -630,8 +630,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 69 | @@ -622,8 +622,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
| 70 | 70 | ||
| 71 | LibDir = X32 ? "libx32" : "lib64"; | 71 | LibDir = X32 ? "libx32" : "lib64"; |
| 72 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; | 72 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; |
diff --git a/meta/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch b/meta/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch index 8677c5ca13..6db3857d42 100644 --- a/meta/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch +++ b/meta/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f06bb3e20e47ab5a76efa76f50f0bbef682cd263 Mon Sep 17 00:00:00 2001 | 1 | From 9ffa9959c6ebe18527129e6a41c4cdda279ef501 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: Wed, 14 Oct 2020 22:19:57 -0700 | 3 | Date: Wed, 14 Oct 2020 22:19:57 -0700 |
| 4 | Subject: [PATCH] clang: Use python3 in python scripts | 4 | Subject: [PATCH] clang: Use python3 in python scripts |
diff --git a/meta/recipes-devtools/clang/clang/0018-llvm-clang-Insert-anchor-for-adding-OE-distro-vendor.patch b/meta/recipes-devtools/clang/clang/0018-llvm-clang-Insert-anchor-for-adding-OE-distro-vendor.patch index 7ae88b870d..71d2da4774 100644 --- a/meta/recipes-devtools/clang/clang/0018-llvm-clang-Insert-anchor-for-adding-OE-distro-vendor.patch +++ b/meta/recipes-devtools/clang/clang/0018-llvm-clang-Insert-anchor-for-adding-OE-distro-vendor.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From cfe5ec616f1bbbe7d20409b552428e43e282f115 Mon Sep 17 00:00:00 2001 | 1 | From 26b241706a61448a49fcfca5b15683f75735f9c8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Mon, 25 Jan 2021 16:14:35 +0800 | 3 | Date: Mon, 25 Jan 2021 16:14:35 +0800 |
| 4 | Subject: [PATCH] llvm/clang: Insert anchor for adding OE distro vendor names | 4 | Subject: [PATCH] llvm/clang: Insert anchor for adding OE distro vendor names |
| @@ -97,7 +97,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 97 | 5 files changed, 6 insertions(+), 1 deletion(-) | 97 | 5 files changed, 6 insertions(+), 1 deletion(-) |
| 98 | 98 | ||
| 99 | diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h | 99 | diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h |
| 100 | index c544a8c00219..3cd687ede458 100644 | 100 | index 5c25592e68ad..122095f98bca 100644 |
| 101 | --- a/clang/include/clang/Driver/Distro.h | 101 | --- a/clang/include/clang/Driver/Distro.h |
| 102 | +++ b/clang/include/clang/Driver/Distro.h | 102 | +++ b/clang/include/clang/Driver/Distro.h |
| 103 | @@ -47,6 +47,7 @@ public: | 103 | @@ -47,6 +47,7 @@ public: |
| @@ -108,7 +108,7 @@ index c544a8c00219..3cd687ede458 100644 | |||
| 108 | OpenSUSE, | 108 | OpenSUSE, |
| 109 | UbuntuHardy, | 109 | UbuntuHardy, |
| 110 | UbuntuIntrepid, | 110 | UbuntuIntrepid, |
| 111 | @@ -141,6 +142,7 @@ public: | 111 | @@ -142,6 +143,7 @@ public: |
| 112 | 112 | ||
| 113 | bool IsGentoo() const { return DistroVal == Gentoo; } | 113 | bool IsGentoo() const { return DistroVal == Gentoo; } |
| 114 | 114 | ||
| @@ -117,7 +117,7 @@ index c544a8c00219..3cd687ede458 100644 | |||
| 117 | }; | 117 | }; |
| 118 | 118 | ||
| 119 | diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp | 119 | diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp |
| 120 | index 71ba71fa1837..f64d0abddf6d 100644 | 120 | index 90e5a390be7e..1246236d62ef 100644 |
| 121 | --- a/clang/lib/Driver/Distro.cpp | 121 | --- a/clang/lib/Driver/Distro.cpp |
| 122 | +++ b/clang/lib/Driver/Distro.cpp | 122 | +++ b/clang/lib/Driver/Distro.cpp |
| 123 | @@ -43,6 +43,7 @@ static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) { | 123 | @@ -43,6 +43,7 @@ static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) { |
| @@ -129,10 +129,10 @@ index 71ba71fa1837..f64d0abddf6d 100644 | |||
| 129 | return Version; | 129 | return Version; |
| 130 | } | 130 | } |
| 131 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 131 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 132 | index 268fb7bf7167..868d32f501e8 100644 | 132 | index 6c52b337c16d..df84e07da1fc 100644 |
| 133 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp | 133 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp |
| 134 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp | 134 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 135 | @@ -2452,6 +2452,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( | 135 | @@ -2374,6 +2374,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
| 136 | "x86_64-pc-linux-gnu", "x86_64-redhat-linux6E", | 136 | "x86_64-pc-linux-gnu", "x86_64-redhat-linux6E", |
| 137 | "x86_64-redhat-linux", "x86_64-suse-linux", | 137 | "x86_64-redhat-linux", "x86_64-suse-linux", |
| 138 | "x86_64-manbo-linux-gnu", "x86_64-slackware-linux", | 138 | "x86_64-manbo-linux-gnu", "x86_64-slackware-linux", |
| @@ -141,10 +141,10 @@ index 268fb7bf7167..868d32f501e8 100644 | |||
| 141 | static const char *const X32Triples[] = {"x86_64-linux-gnux32", | 141 | static const char *const X32Triples[] = {"x86_64-linux-gnux32", |
| 142 | "x86_64-pc-linux-gnux32"}; | 142 | "x86_64-pc-linux-gnux32"}; |
| 143 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 143 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 144 | index 8fd454d4eff4..fb9d433a80be 100644 | 144 | index 3ee2d56df00f..bb7270bb08ba 100644 |
| 145 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 145 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 146 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 146 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 147 | @@ -82,6 +82,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, | 147 | @@ -81,6 +81,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, |
| 148 | return "x86_64-linux-android"; | 148 | return "x86_64-linux-android"; |
| 149 | if (TargetEnvironment == llvm::Triple::GNUX32) | 149 | if (TargetEnvironment == llvm::Triple::GNUX32) |
| 150 | return "x86_64-linux-gnux32"; | 150 | return "x86_64-linux-gnux32"; |
| @@ -153,10 +153,10 @@ index 8fd454d4eff4..fb9d433a80be 100644 | |||
| 153 | case llvm::Triple::aarch64: | 153 | case llvm::Triple::aarch64: |
| 154 | if (IsAndroid) | 154 | if (IsAndroid) |
| 155 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp | 155 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp |
| 156 | index e9e6f130f757..97f426dd863b 100644 | 156 | index 0584c941d2e6..6b9567ad0b8d 100644 |
| 157 | --- a/llvm/lib/TargetParser/Triple.cpp | 157 | --- a/llvm/lib/TargetParser/Triple.cpp |
| 158 | +++ b/llvm/lib/TargetParser/Triple.cpp | 158 | +++ b/llvm/lib/TargetParser/Triple.cpp |
| 159 | @@ -663,7 +663,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { | 159 | @@ -668,7 +668,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { |
| 160 | .Case("mesa", Triple::Mesa) | 160 | .Case("mesa", Triple::Mesa) |
| 161 | .Case("suse", Triple::SUSE) | 161 | .Case("suse", Triple::SUSE) |
| 162 | .Case("oe", Triple::OpenEmbedded) | 162 | .Case("oe", Triple::OpenEmbedded) |
diff --git a/meta/recipes-devtools/clang/clang/0019-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch b/meta/recipes-devtools/clang/clang/0019-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch index 05937b06c1..f58427c033 100644 --- a/meta/recipes-devtools/clang/clang/0019-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch +++ b/meta/recipes-devtools/clang/clang/0019-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 4a23e833e66896f40bb36c3c13b4a4bb1b79162f Mon Sep 17 00:00:00 2001 | 1 | From 50ed4a22ab3b8e2e9d6c0175133e5aa35ffa9e92 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: Wed, 19 May 2021 17:32:13 -0700 | 3 | Date: Wed, 19 May 2021 17:32:13 -0700 |
| 4 | Subject: [PATCH] compiler-rt: Do not use backtrace APIs on non-glibc linux | 4 | Subject: [PATCH] compiler-rt: Do not use backtrace APIs on non-glibc linux |
diff --git a/meta/recipes-devtools/clang/clang/0020-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch b/meta/recipes-devtools/clang/clang/0020-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch index 7ce60e0efd..3116d7cf63 100644 --- a/meta/recipes-devtools/clang/clang/0020-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch +++ b/meta/recipes-devtools/clang/clang/0020-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 739e65a126178e4c4d8452297ac13c119ae79403 Mon Sep 17 00:00:00 2001 | 1 | From fd360e4c6e70a867e839c7d3237354d52c75a4ce 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: Wed, 19 May 2021 17:56:03 -0700 | 3 | Date: Wed, 19 May 2021 17:56:03 -0700 |
| 4 | Subject: [PATCH] clang: Fix x86 triple for non-debian multiarch linux distros | 4 | Subject: [PATCH] clang: Fix x86 triple for non-debian multiarch linux distros |
| @@ -13,10 +13,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 13 | 1 file changed, 3 insertions(+) | 13 | 1 file changed, 3 insertions(+) |
| 14 | 14 | ||
| 15 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 15 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 16 | index fb9d433a80be..ee0b4acbcef0 100644 | 16 | index bb7270bb08ba..6354c4d06570 100644 |
| 17 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 17 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 18 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 18 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 19 | @@ -728,6 +728,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, | 19 | @@ -720,6 +720,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, |
| 20 | GCCInstallation.getTriple().getArch() == llvm::Triple::x86 | 20 | GCCInstallation.getTriple().getArch() == llvm::Triple::x86 |
| 21 | ? "i386-linux-gnu" | 21 | ? "i386-linux-gnu" |
| 22 | : TripleStr; | 22 | : TripleStr; |
diff --git a/meta/recipes-devtools/clang/clang/0021-libunwind-Added-unw_backtrace-method.patch b/meta/recipes-devtools/clang/clang/0021-libunwind-Added-unw_backtrace-method.patch index fe7157df47..0e64bae62b 100644 --- a/meta/recipes-devtools/clang/clang/0021-libunwind-Added-unw_backtrace-method.patch +++ b/meta/recipes-devtools/clang/clang/0021-libunwind-Added-unw_backtrace-method.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f60c6ade92826cea1c3d63d70f1168f4048a624b Mon Sep 17 00:00:00 2001 | 1 | From 54545081ecd42df9c4a0f2dffe629e95c18ce701 Mon Sep 17 00:00:00 2001 |
| 2 | From: Maksim Kita <maksim-kita@yandex-team.ru> | 2 | From: Maksim Kita <maksim-kita@yandex-team.ru> |
| 3 | Date: Sun, 23 May 2021 10:27:29 +0000 | 3 | Date: Sun, 23 May 2021 10:27:29 +0000 |
| 4 | Subject: [PATCH] libunwind: Added unw_backtrace method | 4 | Subject: [PATCH] libunwind: Added unw_backtrace method |
diff --git a/meta/recipes-devtools/clang/clang/0022-lldb-Link-with-libatomic-on-x86.patch b/meta/recipes-devtools/clang/clang/0022-lldb-Link-with-libatomic-on-x86.patch index 128666b8fb..79a0ea43e2 100644 --- a/meta/recipes-devtools/clang/clang/0022-lldb-Link-with-libatomic-on-x86.patch +++ b/meta/recipes-devtools/clang/clang/0022-lldb-Link-with-libatomic-on-x86.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 45d44576a0dbaf843a9795519cafa944801c4679 Mon Sep 17 00:00:00 2001 | 1 | From fc52c73be9ca2143720be9881b78954132588aee 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: Tue, 8 Feb 2022 01:31:26 -0800 | 3 | Date: Tue, 8 Feb 2022 01:31:26 -0800 |
| 4 | Subject: [PATCH] lldb: Link with libatomic on x86 | 4 | Subject: [PATCH] lldb: Link with libatomic on x86 |
| @@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 17 | 1 file changed, 4 insertions(+) | 17 | 1 file changed, 4 insertions(+) |
| 18 | 18 | ||
| 19 | diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt | 19 | diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt |
| 20 | index 6954a2508ffe..b8bf8c07fefb 100644 | 20 | index 1dd4d63f7016..8821b73be476 100644 |
| 21 | --- a/lldb/source/Utility/CMakeLists.txt | 21 | --- a/lldb/source/Utility/CMakeLists.txt |
| 22 | +++ b/lldb/source/Utility/CMakeLists.txt | 22 | +++ b/lldb/source/Utility/CMakeLists.txt |
| 23 | @@ -19,6 +19,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows") | 23 | @@ -19,6 +19,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows") |
diff --git a/meta/recipes-devtools/clang/clang/0023-compiler-rt-Enable-__int128-for-ppc32.patch b/meta/recipes-devtools/clang/clang/0023-compiler-rt-Enable-__int128-for-ppc32.patch index 861064f4f4..ce9cfb2465 100644 --- a/meta/recipes-devtools/clang/clang/0023-compiler-rt-Enable-__int128-for-ppc32.patch +++ b/meta/recipes-devtools/clang/clang/0023-compiler-rt-Enable-__int128-for-ppc32.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b676d7d93fa35e095595fc1f967e4c6a3b58414b Mon Sep 17 00:00:00 2001 | 1 | From 7b690ce5d96bbd80f0f300e6f57a4be46073af76 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: Wed, 9 Mar 2022 16:28:16 -0800 | 3 | Date: Wed, 9 Mar 2022 16:28:16 -0800 |
| 4 | Subject: [PATCH] compiler-rt: Enable __int128 for ppc32 | 4 | Subject: [PATCH] compiler-rt: Enable __int128 for ppc32 |
| @@ -11,10 +11,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 11 | 2 files changed, 8 insertions(+), 9 deletions(-) | 11 | 2 files changed, 8 insertions(+), 9 deletions(-) |
| 12 | 12 | ||
| 13 | diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt | 13 | diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt |
| 14 | index 19316c52d12c..cb276311b290 100644 | 14 | index 3ab92403d416..9c1148e2a8e3 100644 |
| 15 | --- a/compiler-rt/lib/builtins/CMakeLists.txt | 15 | --- a/compiler-rt/lib/builtins/CMakeLists.txt |
| 16 | +++ b/compiler-rt/lib/builtins/CMakeLists.txt | 16 | +++ b/compiler-rt/lib/builtins/CMakeLists.txt |
| 17 | @@ -720,11 +720,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES} | 17 | @@ -752,11 +752,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES} |
| 18 | 18 | ||
| 19 | set(nvptx64_SOURCES ${GENERIC_SOURCES}) | 19 | set(nvptx64_SOURCES ${GENERIC_SOURCES}) |
| 20 | 20 | ||
| @@ -27,7 +27,7 @@ index 19316c52d12c..cb276311b290 100644 | |||
| 27 | ppc/divtc3.c | 27 | ppc/divtc3.c |
| 28 | ppc/fixtfdi.c | 28 | ppc/fixtfdi.c |
| 29 | ppc/fixunstfdi.c | 29 | ppc/fixunstfdi.c |
| 30 | @@ -739,14 +737,15 @@ set(powerpc64_SOURCES | 30 | @@ -771,14 +769,15 @@ set(powerpc64_SOURCES |
| 31 | ) | 31 | ) |
| 32 | # These routines require __int128, which isn't supported on AIX. | 32 | # These routines require __int128, which isn't supported on AIX. |
| 33 | if (NOT OS_NAME MATCHES "AIX") | 33 | if (NOT OS_NAME MATCHES "AIX") |
| @@ -46,7 +46,7 @@ index 19316c52d12c..cb276311b290 100644 | |||
| 46 | 46 | ||
| 47 | set(riscv_SOURCES | 47 | set(riscv_SOURCES |
| 48 | cpu_model/riscv.c | 48 | cpu_model/riscv.c |
| 49 | @@ -904,9 +903,9 @@ else () | 49 | @@ -948,9 +947,9 @@ else () |
| 50 | list(APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET) | 50 | list(APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET) |
| 51 | endif() | 51 | endif() |
| 52 | 52 | ||
| @@ -59,7 +59,7 @@ index 19316c52d12c..cb276311b290 100644 | |||
| 59 | endif() | 59 | endif() |
| 60 | 60 | ||
| 61 | diff --git a/compiler-rt/lib/builtins/int_types.h b/compiler-rt/lib/builtins/int_types.h | 61 | diff --git a/compiler-rt/lib/builtins/int_types.h b/compiler-rt/lib/builtins/int_types.h |
| 62 | index 48862f364217..cc47d3e33f67 100644 | 62 | index 7c7f8cb64aa9..81386f1b99b0 100644 |
| 63 | --- a/compiler-rt/lib/builtins/int_types.h | 63 | --- a/compiler-rt/lib/builtins/int_types.h |
| 64 | +++ b/compiler-rt/lib/builtins/int_types.h | 64 | +++ b/compiler-rt/lib/builtins/int_types.h |
| 65 | @@ -64,7 +64,7 @@ typedef union { | 65 | @@ -64,7 +64,7 @@ typedef union { |
diff --git a/meta/recipes-devtools/clang/clang/0024-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch b/meta/recipes-devtools/clang/clang/0024-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch index d49af8aeb9..53ee3b0016 100644 --- a/meta/recipes-devtools/clang/clang/0024-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch +++ b/meta/recipes-devtools/clang/clang/0024-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9cf5cc6d4378ad7918f338aa65ce79178d8a84f2 Mon Sep 17 00:00:00 2001 | 1 | From 2b05b864651cb3bc611435ccbf8d4e4ba15ca62b 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: Fri, 12 Aug 2022 11:50:57 -0700 | 3 | Date: Fri, 12 Aug 2022 11:50:57 -0700 |
| 4 | Subject: [PATCH] llvm: Do not use cmake infra to detect libzstd | 4 | Subject: [PATCH] llvm: Do not use cmake infra to detect libzstd |
| @@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 21 | 1 file changed, 4 insertions(+), 4 deletions(-) | 21 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 22 | 22 | ||
| 23 | diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt | 23 | diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt |
| 24 | index a6d8a2581886..5b461547bdde 100644 | 24 | index a579eaf7d953..6eba2b7a8e6c 100644 |
| 25 | --- a/llvm/lib/Support/CMakeLists.txt | 25 | --- a/llvm/lib/Support/CMakeLists.txt |
| 26 | +++ b/llvm/lib/Support/CMakeLists.txt | 26 | +++ b/llvm/lib/Support/CMakeLists.txt |
| 27 | @@ -22,7 +22,7 @@ if (HAS_WERROR_GLOBAL_CTORS) | 27 | @@ -22,7 +22,7 @@ if (HAS_WERROR_GLOBAL_CTORS) |
| @@ -42,7 +42,7 @@ index a6d8a2581886..5b461547bdde 100644 | |||
| 42 | endif() | 42 | endif() |
| 43 | 43 | ||
| 44 | if( WIN32 ) | 44 | if( WIN32 ) |
| 45 | @@ -325,7 +325,7 @@ if(LLVM_ENABLE_ZLIB) | 45 | @@ -339,7 +339,7 @@ if(LLVM_ENABLE_ZLIB) |
| 46 | get_property(zlib_library TARGET ZLIB::ZLIB PROPERTY LOCATION) | 46 | get_property(zlib_library TARGET ZLIB::ZLIB PROPERTY LOCATION) |
| 47 | endif() | 47 | endif() |
| 48 | get_library_name(${zlib_library} zlib_library) | 48 | get_library_name(${zlib_library} zlib_library) |
| @@ -51,7 +51,7 @@ index a6d8a2581886..5b461547bdde 100644 | |||
| 51 | endif() | 51 | endif() |
| 52 | 52 | ||
| 53 | if(LLVM_ENABLE_ZSTD) | 53 | if(LLVM_ENABLE_ZSTD) |
| 54 | @@ -339,7 +339,7 @@ if(LLVM_ENABLE_ZSTD) | 54 | @@ -353,7 +353,7 @@ if(LLVM_ENABLE_ZSTD) |
| 55 | endif() | 55 | endif() |
| 56 | if (zstd_target STREQUAL zstd::libzstd_shared) | 56 | if (zstd_target STREQUAL zstd::libzstd_shared) |
| 57 | get_library_name(${zstd_library} zstd_library) | 57 | get_library_name(${zstd_library} zstd_library) |
diff --git a/meta/recipes-devtools/clang/clang/0025-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch b/meta/recipes-devtools/clang/clang/0025-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch index bca28cd7db..8d5708bac8 100644 --- a/meta/recipes-devtools/clang/clang/0025-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch +++ b/meta/recipes-devtools/clang/clang/0025-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 744dbb6cf6925796e2bc5c028af08c40445bbb1c Mon Sep 17 00:00:00 2001 | 1 | From d0cba62df8273177d9fbbb586e786e40cd8fea6e 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: Tue, 3 Jan 2023 18:44:34 -0800 | 3 | Date: Tue, 3 Jan 2023 18:44:34 -0800 |
| 4 | Subject: [PATCH] compiler-rt: Fix stat struct's size for O32 ABI | 4 | Subject: [PATCH] compiler-rt: Fix stat struct's size for O32 ABI |
| @@ -14,13 +14,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 14 | 1 file changed, 13 insertions(+) | 14 | 1 file changed, 13 insertions(+) |
| 15 | 15 | ||
| 16 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 16 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
| 17 | index 1a7d9e64048e..854a87e17236 100644 | 17 | index f118d53f0df8..c72814288990 100644 |
| 18 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 18 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
| 19 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 19 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
| 20 | @@ -98,6 +98,18 @@ const unsigned struct_kernel_stat64_sz = 104; | 20 | @@ -98,6 +98,18 @@ const unsigned struct_kernel_stat64_sz = 104; |
| 21 | const unsigned struct_kernel_stat_sz = 144; | 21 | const unsigned struct_kernel_stat_sz = 144; |
| 22 | const unsigned struct_kernel_stat64_sz = 104; | 22 | const unsigned struct_kernel_stat64_sz = 104; |
| 23 | #elif defined(__mips__) | 23 | # elif defined(__mips__) |
| 24 | +#if defined(__mips_o32) // O32 ABI | 24 | +#if defined(__mips_o32) // O32 ABI |
| 25 | +#if _TIME_BITS == 64 | 25 | +#if _TIME_BITS == 64 |
| 26 | +const unsigned struct_kernel_stat_sz = 112; | 26 | +const unsigned struct_kernel_stat_sz = 112; |
| @@ -32,15 +32,15 @@ index 1a7d9e64048e..854a87e17236 100644 | |||
| 32 | +const unsigned struct_kernel_stat_sz = 144; | 32 | +const unsigned struct_kernel_stat_sz = 144; |
| 33 | +const unsigned struct_kernel_stat64_sz = 160; | 33 | +const unsigned struct_kernel_stat64_sz = 160; |
| 34 | +#endif | 34 | +#endif |
| 35 | +#else // __mips_o32 | 35 | +#else //__mips_o32 |
| 36 | const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID | 36 | const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID |
| 37 | ? FIRST_32_SECOND_64(104, 128) | 37 | ? FIRST_32_SECOND_64(104, 128) |
| 38 | # if defined(_ABIN32) && _MIPS_SIM == _ABIN32 | 38 | # if defined(_ABIN32) && _MIPS_SIM == _ABIN32 |
| 39 | @@ -106,6 +118,7 @@ const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID | 39 | @@ -108,6 +120,7 @@ const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID |
| 40 | : FIRST_32_SECOND_64(160, 216); | 40 | : FIRST_32_SECOND_64(160, 216); |
| 41 | # endif | 41 | # endif |
| 42 | const unsigned struct_kernel_stat64_sz = 104; | 42 | const unsigned struct_kernel_stat64_sz = 104; |
| 43 | +#endif | 43 | +#endif |
| 44 | #elif defined(__s390__) && !defined(__s390x__) | 44 | # elif defined(__s390__) && !defined(__s390x__) |
| 45 | const unsigned struct_kernel_stat_sz = 64; | 45 | const unsigned struct_kernel_stat_sz = 64; |
| 46 | const unsigned struct_kernel_stat64_sz = 104; | 46 | const unsigned struct_kernel_stat64_sz = 104; |
diff --git a/meta/recipes-devtools/clang/clang/0026-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch b/meta/recipes-devtools/clang/clang/0026-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch index e129aa245d..376733e07f 100644 --- a/meta/recipes-devtools/clang/clang/0026-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch +++ b/meta/recipes-devtools/clang/clang/0026-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 6b6a518bc7686af7680f45fcdea7c414a22a2f53 Mon Sep 17 00:00:00 2001 | 1 | From 20d83be701fe5fd03bbbd8352400179b74563ba7 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: Tue, 21 Feb 2023 12:46:10 -0800 | 3 | Date: Tue, 21 Feb 2023 12:46:10 -0800 |
| 4 | Subject: [PATCH] compiler-rt: Undef _TIME_BITS along with _FILE_OFFSET_BITS in | 4 | Subject: [PATCH] compiler-rt: Undef _TIME_BITS along with _FILE_OFFSET_BITS in |
| @@ -22,10 +22,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 22 | 1 file changed, 9 insertions(+) | 22 | 1 file changed, 9 insertions(+) |
| 23 | 23 | ||
| 24 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 24 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h |
| 25 | index 57966403c92a..efa83f30eca0 100644 | 25 | index 13099fe84b0a..8fea7a260c3a 100644 |
| 26 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 26 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h |
| 27 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 27 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h |
| 28 | @@ -22,6 +22,15 @@ | 28 | @@ -23,6 +23,15 @@ |
| 29 | // function declarations into a .S file which doesn't compile. | 29 | // function declarations into a .S file which doesn't compile. |
| 30 | // https://crbug.com/1162741 | 30 | // https://crbug.com/1162741 |
| 31 | #if __has_include(<features.h>) && !defined(__ANDROID__) | 31 | #if __has_include(<features.h>) && !defined(__ANDROID__) |
diff --git a/meta/recipes-devtools/clang/clang/0027-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch b/meta/recipes-devtools/clang/clang/0027-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch index b6852a124d..5467fb2b68 100644 --- a/meta/recipes-devtools/clang/clang/0027-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch +++ b/meta/recipes-devtools/clang/clang/0027-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a83b407a9c1b04d95e6cda74059744fe815fde17 Mon Sep 17 00:00:00 2001 | 1 | From 7ee4e023df4661e96d5132855165a1d79cb77736 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Thu, 31 Aug 2023 18:14:47 +0200 | 3 | Date: Thu, 31 Aug 2023 18:14:47 +0200 |
| 4 | Subject: [PATCH] ToolChains/Gnu.cpp: ARMLibDirs search also in lib32 | 4 | Subject: [PATCH] ToolChains/Gnu.cpp: ARMLibDirs search also in lib32 |
| @@ -55,10 +55,10 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
| 55 | 2 files changed, 2 insertions(+), 1 deletion(-) | 55 | 2 files changed, 2 insertions(+), 1 deletion(-) |
| 56 | 56 | ||
| 57 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 57 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 58 | index 868d32f501e8..beed8d34a127 100644 | 58 | index df84e07da1fc..21c8a30719e0 100644 |
| 59 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp | 59 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp |
| 60 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp | 60 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 61 | @@ -2428,7 +2428,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( | 61 | @@ -2350,7 +2350,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
| 62 | static const char *const AArch64beLibDirs[] = {"/lib"}; | 62 | static const char *const AArch64beLibDirs[] = {"/lib"}; |
| 63 | static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu"}; | 63 | static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu"}; |
| 64 | 64 | ||
| @@ -68,10 +68,10 @@ index 868d32f501e8..beed8d34a127 100644 | |||
| 68 | static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf", | 68 | static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf", |
| 69 | "armv7hl-redhat-linux-gnueabi", | 69 | "armv7hl-redhat-linux-gnueabi", |
| 70 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 70 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 71 | index ee0b4acbcef0..b02409fd72ee 100644 | 71 | index 6354c4d06570..c77337561b89 100644 |
| 72 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 72 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 73 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 73 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 74 | @@ -199,6 +199,7 @@ static StringRef getOSLibDir(const llvm::Triple &Triple, const ArgList &Args) { | 74 | @@ -198,6 +198,7 @@ static StringRef getOSLibDir(const llvm::Triple &Triple, const ArgList &Args) { |
| 75 | // reasoning about oslibdir spellings with the lib dir spellings in the | 75 | // reasoning about oslibdir spellings with the lib dir spellings in the |
| 76 | // GCCInstallationDetector, but that is a more significant refactoring. | 76 | // GCCInstallationDetector, but that is a more significant refactoring. |
| 77 | if (Triple.getArch() == llvm::Triple::x86 || Triple.isPPC32() || | 77 | if (Triple.getArch() == llvm::Triple::x86 || Triple.isPPC32() || |
diff --git a/meta/recipes-devtools/clang/clang/0028-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch b/meta/recipes-devtools/clang/clang/0028-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch index 0136039358..518aeb2fd5 100644 --- a/meta/recipes-devtools/clang/clang/0028-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch +++ b/meta/recipes-devtools/clang/clang/0028-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3572a4425844ef77131fd2635ea570eafc1df958 Mon Sep 17 00:00:00 2001 | 1 | From cbd5f24fd6095f69134cb5536f8187e7264ceaa0 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: Sat, 3 Feb 2024 16:47:10 -0800 | 3 | Date: Sat, 3 Feb 2024 16:47:10 -0800 |
| 4 | Subject: [PATCH] clang/llvm: Add OE specific ABI triple for N32 ABI | 4 | Subject: [PATCH] clang/llvm: Add OE specific ABI triple for N32 ABI |
| @@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 14 | 3 files changed, 6 insertions(+), 3 deletions(-) | 14 | 3 files changed, 6 insertions(+), 3 deletions(-) |
| 15 | 15 | ||
| 16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 17 | index beed8d34a127..c47b93a4e142 100644 | 17 | index 21c8a30719e0..3a0f1a247481 100644 |
| 18 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp | 18 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp |
| 19 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp | 19 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp |
| 20 | @@ -2491,6 +2491,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( | 20 | @@ -2413,6 +2413,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
| 21 | 21 | ||
| 22 | static const char *const MIPSN32LibDirs[] = {"/lib32"}; | 22 | static const char *const MIPSN32LibDirs[] = {"/lib32"}; |
| 23 | static const char *const MIPSN32Triples[] = {"mips64-linux-gnuabin32", | 23 | static const char *const MIPSN32Triples[] = {"mips64-linux-gnuabin32", |
| @@ -26,10 +26,10 @@ index beed8d34a127..c47b93a4e142 100644 | |||
| 26 | static const char *const MIPSN32ELLibDirs[] = {"/lib32"}; | 26 | static const char *const MIPSN32ELLibDirs[] = {"/lib32"}; |
| 27 | static const char *const MIPSN32ELTriples[] = { | 27 | static const char *const MIPSN32ELTriples[] = { |
| 28 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 28 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
| 29 | index b02409fd72ee..4999b0fc17a6 100644 | 29 | index c77337561b89..9a7f8ffd72e2 100644 |
| 30 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 30 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
| 31 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 31 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
| 32 | @@ -139,7 +139,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, | 32 | @@ -138,7 +138,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, |
| 33 | return IsMipsR6 ? "mipsisa32r6el-linux-gnu" : "mipsel-linux-gnu"; | 33 | return IsMipsR6 ? "mipsisa32r6el-linux-gnu" : "mipsel-linux-gnu"; |
| 34 | case llvm::Triple::mips64: { | 34 | case llvm::Triple::mips64: { |
| 35 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6" : "mips64") + | 35 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6" : "mips64") + |
| @@ -38,7 +38,7 @@ index b02409fd72ee..4999b0fc17a6 100644 | |||
| 38 | if (D.getVFS().exists(concat(SysRoot, "/lib", MT))) | 38 | if (D.getVFS().exists(concat(SysRoot, "/lib", MT))) |
| 39 | return MT; | 39 | return MT; |
| 40 | if (D.getVFS().exists(concat(SysRoot, "/lib/mips64-linux-gnu"))) | 40 | if (D.getVFS().exists(concat(SysRoot, "/lib/mips64-linux-gnu"))) |
| 41 | @@ -148,7 +148,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, | 41 | @@ -147,7 +147,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, |
| 42 | } | 42 | } |
| 43 | case llvm::Triple::mips64el: { | 43 | case llvm::Triple::mips64el: { |
| 44 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6el" : "mips64el") + | 44 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6el" : "mips64el") + |
| @@ -48,10 +48,10 @@ index b02409fd72ee..4999b0fc17a6 100644 | |||
| 48 | return MT; | 48 | return MT; |
| 49 | if (D.getVFS().exists(concat(SysRoot, "/lib/mips64el-linux-gnu"))) | 49 | if (D.getVFS().exists(concat(SysRoot, "/lib/mips64el-linux-gnu"))) |
| 50 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp | 50 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp |
| 51 | index 97f426dd863b..dc57d5ff2d4a 100644 | 51 | index 6b9567ad0b8d..6eafade97808 100644 |
| 52 | --- a/llvm/lib/TargetParser/Triple.cpp | 52 | --- a/llvm/lib/TargetParser/Triple.cpp |
| 53 | +++ b/llvm/lib/TargetParser/Triple.cpp | 53 | +++ b/llvm/lib/TargetParser/Triple.cpp |
| 54 | @@ -336,7 +336,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { | 54 | @@ -339,7 +339,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { |
| 55 | case GNU: return "gnu"; | 55 | case GNU: return "gnu"; |
| 56 | case GNUT64: return "gnut64"; | 56 | case GNUT64: return "gnut64"; |
| 57 | case GNUABI64: return "gnuabi64"; | 57 | case GNUABI64: return "gnuabi64"; |
| @@ -60,7 +60,7 @@ index 97f426dd863b..dc57d5ff2d4a 100644 | |||
| 60 | case GNUEABI: return "gnueabi"; | 60 | case GNUEABI: return "gnueabi"; |
| 61 | case GNUEABIT64: return "gnueabit64"; | 61 | case GNUEABIT64: return "gnueabit64"; |
| 62 | case GNUEABIHF: return "gnueabihf"; | 62 | case GNUEABIHF: return "gnueabihf"; |
| 63 | @@ -719,6 +719,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { | 63 | @@ -725,6 +725,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { |
| 64 | .StartsWith("eabihf", Triple::EABIHF) | 64 | .StartsWith("eabihf", Triple::EABIHF) |
| 65 | .StartsWith("eabi", Triple::EABI) | 65 | .StartsWith("eabi", Triple::EABI) |
| 66 | .StartsWith("gnuabin32", Triple::GNUABIN32) | 66 | .StartsWith("gnuabin32", Triple::GNUABIN32) |
| @@ -68,7 +68,7 @@ index 97f426dd863b..dc57d5ff2d4a 100644 | |||
| 68 | .StartsWith("gnuabi64", Triple::GNUABI64) | 68 | .StartsWith("gnuabi64", Triple::GNUABI64) |
| 69 | .StartsWith("gnueabihft64", Triple::GNUEABIHFT64) | 69 | .StartsWith("gnueabihft64", Triple::GNUEABIHFT64) |
| 70 | .StartsWith("gnueabihf", Triple::GNUEABIHF) | 70 | .StartsWith("gnueabihf", Triple::GNUEABIHF) |
| 71 | @@ -1035,6 +1036,7 @@ Triple::Triple(const Twine &Str) | 71 | @@ -1039,6 +1040,7 @@ Triple::Triple(std::string &&Str) : Data(std::move(Str)) { |
| 72 | Environment = | 72 | Environment = |
| 73 | StringSwitch<Triple::EnvironmentType>(Components[0]) | 73 | StringSwitch<Triple::EnvironmentType>(Components[0]) |
| 74 | .StartsWith("mipsn32", Triple::GNUABIN32) | 74 | .StartsWith("mipsn32", Triple::GNUABIN32) |
diff --git a/meta/recipes-devtools/clang/clang/0029-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch b/meta/recipes-devtools/clang/clang/0029-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch index a42ac2484d..1545e6b9ec 100644 --- a/meta/recipes-devtools/clang/clang/0029-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch +++ b/meta/recipes-devtools/clang/clang/0029-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From e5223f6013c7c70a7f6e35ecec046cfdc0c15c2a Mon Sep 17 00:00:00 2001 | 1 | From c4ebc0b6347886e679aa211a3fa3816be9b2fd52 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: Tue, 14 May 2024 22:04:43 -0700 | 3 | Date: Tue, 14 May 2024 22:04:43 -0700 |
| 4 | Subject: [PATCH] llvm: Add libunwind.pc.in and llvm-config scripts | 4 | Subject: [PATCH] llvm: Add libunwind.pc.in and llvm-config scripts |
diff --git a/meta/recipes-devtools/clang/clang/0030-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch b/meta/recipes-devtools/clang/clang/0030-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch index 85d3ce9ed3..b37661aff4 100644 --- a/meta/recipes-devtools/clang/clang/0030-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch +++ b/meta/recipes-devtools/clang/clang/0030-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3f03bd4a5a16f2b5525f4dc32c7b196840b96856 Mon Sep 17 00:00:00 2001 | 1 | From 36b051141be917a466fbc26b140b3ba268d82468 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Jansa <martin.jansa@gmail.com> | 2 | From: Martin Jansa <martin.jansa@gmail.com> |
| 3 | Date: Fri, 13 Sep 2024 13:38:08 +0200 | 3 | Date: Fri, 13 Sep 2024 13:38:08 +0200 |
| 4 | Subject: [PATCH] scan-build-py: respect LLVM_LIBDIR_SUFFIX like other tools do | 4 | Subject: [PATCH] scan-build-py: respect LLVM_LIBDIR_SUFFIX like other tools do |
diff --git a/meta/recipes-devtools/clang/clang/0031-compiler-rt-Do-not-pass-target-to-clang-compiler.patch b/meta/recipes-devtools/clang/clang/0031-compiler-rt-Do-not-pass-target-to-clang-compiler.patch index 621c3653f0..5483638d12 100644 --- a/meta/recipes-devtools/clang/clang/0031-compiler-rt-Do-not-pass-target-to-clang-compiler.patch +++ b/meta/recipes-devtools/clang/clang/0031-compiler-rt-Do-not-pass-target-to-clang-compiler.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 518c0025921b0bd21e69bf4c38f369778032f4e0 Mon Sep 17 00:00:00 2001 | 1 | From c4da3b294284213bad523c47a9ab1825175ccda6 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, 13 Mar 2025 00:30:38 -0700 | 3 | Date: Thu, 13 Mar 2025 00:30:38 -0700 |
| 4 | Subject: [PATCH] compiler-rt: Do not pass --target to clang compiler | 4 | Subject: [PATCH] compiler-rt: Do not pass --target to clang compiler |
diff --git a/meta/recipes-devtools/clang/clang/0033-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch b/meta/recipes-devtools/clang/clang/0032-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch index 1901efeae4..416f29804d 100644 --- a/meta/recipes-devtools/clang/clang/0033-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch +++ b/meta/recipes-devtools/clang/clang/0032-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9e389e1dc73a2f5601cfbab34249aedffd053235 Mon Sep 17 00:00:00 2001 | 1 | From 222b03ed7a0549e7cdbe67a37b6f965f93d3d8fe Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Fri, 27 Nov 2020 10:11:08 +0000 | 3 | Date: Fri, 27 Nov 2020 10:11:08 +0000 |
| 4 | Subject: [PATCH] AsmMatcherEmitter: sort ClassInfo lists by name as well | 4 | Subject: [PATCH] AsmMatcherEmitter: sort ClassInfo lists by name as well |
| @@ -14,10 +14,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
| 14 | 1 file changed, 4 insertions(+), 1 deletion(-) | 14 | 1 file changed, 4 insertions(+), 1 deletion(-) |
| 15 | 15 | ||
| 16 | diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp | 16 | diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp |
| 17 | index 7684387d80fe..d225a3b6dfa9 100644 | 17 | index bfd158614ae3..7b1a0ec686da 100644 |
| 18 | --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp | 18 | --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp |
| 19 | +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp | 19 | +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp |
| 20 | @@ -361,7 +361,10 @@ public: | 20 | @@ -362,7 +362,10 @@ public: |
| 21 | // name of a class shouldn't be significant. However, some of the backends | 21 | // name of a class shouldn't be significant. However, some of the backends |
| 22 | // accidentally rely on this behaviour, so it will have to stay like this | 22 | // accidentally rely on this behaviour, so it will have to stay like this |
| 23 | // until they are fixed. | 23 | // until they are fixed. |
diff --git a/meta/recipes-devtools/clang/clang/0032-clangd-Add-a-build-option-to-disable-building-dexp.patch b/meta/recipes-devtools/clang/clang/0032-clangd-Add-a-build-option-to-disable-building-dexp.patch deleted file mode 100644 index 3e0603477e..0000000000 --- a/meta/recipes-devtools/clang/clang/0032-clangd-Add-a-build-option-to-disable-building-dexp.patch +++ /dev/null | |||
| @@ -1,85 +0,0 @@ | |||
| 1 | From 12abcd058e2aa468054708b0ca7a06f2638eabab Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yoann Congal <yoann.congal@smile.fr> | ||
| 3 | Date: Tue, 25 Mar 2025 22:25:55 +0100 | ||
| 4 | Subject: [PATCH] clangd: Add a build option to disable building dexp | ||
| 5 | |||
| 6 | Building dexp on Debian 11 currently causes intermittent failure[0][1]. | ||
| 7 | |||
| 8 | Adding the CLANGD_BUILD_DEXP option to disable dexp from the build | ||
| 9 | allows Debian 11 users to build clang (albeit without the dexp tool). | ||
| 10 | |||
| 11 | This option is set to "Build Dexp" by default so, no change is expected | ||
| 12 | without manual setting. | ||
| 13 | |||
| 14 | [0]: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15803 | ||
| 15 | [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101322 | ||
| 16 | |||
| 17 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/133124] | ||
| 18 | Signed-off-by: Yoann Congal <yoann.congal@smile.fr> | ||
| 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 20 | --- | ||
| 21 | clang-tools-extra/clangd/CMakeLists.txt | 8 +++++++- | ||
| 22 | clang-tools-extra/clangd/test/CMakeLists.txt | 7 +++++-- | ||
| 23 | clang-tools-extra/clangd/test/lit.site.cfg.py.in | 1 + | ||
| 24 | 3 files changed, 13 insertions(+), 3 deletions(-) | ||
| 25 | |||
| 26 | diff --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt | ||
| 27 | index 6f10afe4a562..a1e9da41b4b3 100644 | ||
| 28 | --- a/clang-tools-extra/clangd/CMakeLists.txt | ||
| 29 | +++ b/clang-tools-extra/clangd/CMakeLists.txt | ||
| 30 | @@ -210,6 +210,9 @@ if (CLANGD_ENABLE_REMOTE) | ||
| 31 | include(AddGRPC) | ||
| 32 | endif() | ||
| 33 | |||
| 34 | +option(CLANGD_BUILD_DEXP "Build the dexp tool as part of Clangd" ON) | ||
| 35 | +llvm_canonicalize_cmake_booleans(CLANGD_BUILD_DEXP) | ||
| 36 | + | ||
| 37 | if(CLANG_INCLUDE_TESTS) | ||
| 38 | add_subdirectory(test) | ||
| 39 | add_subdirectory(unittests) | ||
| 40 | @@ -220,4 +223,7 @@ option(CLANGD_ENABLE_REMOTE "Use gRPC library to enable remote index support for | ||
| 41 | set(GRPC_INSTALL_PATH "" CACHE PATH "Path to gRPC library manual installation.") | ||
| 42 | |||
| 43 | add_subdirectory(index/remote) | ||
| 44 | -add_subdirectory(index/dex/dexp) | ||
| 45 | + | ||
| 46 | +if(CLANGD_BUILD_DEXP) | ||
| 47 | + add_subdirectory(index/dex/dexp) | ||
| 48 | +endif() | ||
| 49 | diff --git a/clang-tools-extra/clangd/test/CMakeLists.txt b/clang-tools-extra/clangd/test/CMakeLists.txt | ||
| 50 | index b51f461a4986..42fc3506641f 100644 | ||
| 51 | --- a/clang-tools-extra/clangd/test/CMakeLists.txt | ||
| 52 | +++ b/clang-tools-extra/clangd/test/CMakeLists.txt | ||
| 53 | @@ -3,8 +3,6 @@ set(CLANGD_TEST_DEPS | ||
| 54 | ClangdTests | ||
| 55 | clangd-indexer | ||
| 56 | split-file | ||
| 57 | - # No tests for it, but we should still make sure they build. | ||
| 58 | - dexp | ||
| 59 | ) | ||
| 60 | |||
| 61 | if(CLANGD_BUILD_XPC) | ||
| 62 | @@ -12,6 +10,11 @@ if(CLANGD_BUILD_XPC) | ||
| 63 | list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests) | ||
| 64 | endif() | ||
| 65 | |||
| 66 | +if(CLANGD_BUILD_DEXP) | ||
| 67 | + # No tests for it, but we should still make sure they build. | ||
| 68 | + list(APPEND CLANGD_TEST_DEPS dexp) | ||
| 69 | +endif() | ||
| 70 | + | ||
| 71 | if(CLANGD_ENABLE_REMOTE) | ||
| 72 | list(APPEND CLANGD_TEST_DEPS clangd-index-server clangd-index-server-monitor) | ||
| 73 | endif() | ||
| 74 | diff --git a/clang-tools-extra/clangd/test/lit.site.cfg.py.in b/clang-tools-extra/clangd/test/lit.site.cfg.py.in | ||
| 75 | index 1fe7c8d0f324..a0bb3561e19e 100644 | ||
| 76 | --- a/clang-tools-extra/clangd/test/lit.site.cfg.py.in | ||
| 77 | +++ b/clang-tools-extra/clangd/test/lit.site.cfg.py.in | ||
| 78 | @@ -15,6 +15,7 @@ config.llvm_shlib_dir = "@SHLIBDIR@" | ||
| 79 | config.clangd_source_dir = "@CMAKE_CURRENT_SOURCE_DIR@/.." | ||
| 80 | config.clangd_binary_dir = "@CMAKE_CURRENT_BINARY_DIR@/.." | ||
| 81 | config.clangd_build_xpc = @CLANGD_BUILD_XPC@ | ||
| 82 | +config.clangd_build_dexp = @CLANGD_BUILD_DEXP@ | ||
| 83 | config.clangd_enable_remote = @CLANGD_ENABLE_REMOTE@ | ||
| 84 | config.clangd_tidy_checks = @CLANGD_TIDY_CHECKS@ | ||
| 85 | config.have_zlib = @LLVM_ENABLE_ZLIB@ | ||
diff --git a/meta/recipes-devtools/clang/clang/0034-llvm-config-remove-LLVM_LDFLAGS-from-ldflags-output.patch b/meta/recipes-devtools/clang/clang/0033-llvm-config-remove-LLVM_LDFLAGS-from-ldflags-output.patch index 2618f5ac40..afd28fb8f5 100644 --- a/meta/recipes-devtools/clang/clang/0034-llvm-config-remove-LLVM_LDFLAGS-from-ldflags-output.patch +++ b/meta/recipes-devtools/clang/clang/0033-llvm-config-remove-LLVM_LDFLAGS-from-ldflags-output.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 81db296472e146995c3c5728981cdc0cc065ab9c Mon Sep 17 00:00:00 2001 | 1 | From 0bd04308858d0a5d582d54584e5c021e10fee1bb Mon Sep 17 00:00:00 2001 |
| 2 | From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2 | From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> |
| 3 | Date: Wed, 2 Apr 2025 17:05:17 +0300 | 3 | Date: Wed, 2 Apr 2025 17:05:17 +0300 |
| 4 | Subject: [PATCH] llvm-config: remove LLVM_LDFLAGS from --ldflags output | 4 | Subject: [PATCH] llvm-config: remove LLVM_LDFLAGS from --ldflags output |
| @@ -18,7 +18,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | 19 | ||
| 20 | diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp | 20 | diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp |
| 21 | index a739f0d8dbea..3120f95fba9d 100644 | 21 | index c092db81bb8f..a02cc25020a7 100644 |
| 22 | --- a/llvm/tools/llvm-config/llvm-config.cpp | 22 | --- a/llvm/tools/llvm-config/llvm-config.cpp |
| 23 | +++ b/llvm/tools/llvm-config/llvm-config.cpp | 23 | +++ b/llvm/tools/llvm-config/llvm-config.cpp |
| 24 | @@ -542,7 +542,7 @@ int main(int argc, char **argv) { | 24 | @@ -542,7 +542,7 @@ int main(int argc, char **argv) { |
diff --git a/meta/recipes-devtools/clang/clang/0037-compiler-rt-Exclude-sync_fetch_and_-for-any-pre-ARMv.patch b/meta/recipes-devtools/clang/clang/0034-compiler-rt-Exclude-sync_fetch_and_-for-any-pre-ARMv.patch index a7e5c5a859..c409509d00 100644 --- a/meta/recipes-devtools/clang/clang/0037-compiler-rt-Exclude-sync_fetch_and_-for-any-pre-ARMv.patch +++ b/meta/recipes-devtools/clang/clang/0034-compiler-rt-Exclude-sync_fetch_and_-for-any-pre-ARMv.patch | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | From d2360096db2da00121f4e653b39ca1f7eb2801eb Mon Sep 17 00:00:00 2001 | 1 | From 83994facdea30da795875b50a26d7f23035ae141 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: Sat, 10 May 2025 14:03:12 -0700 | 3 | Date: Sat, 10 May 2025 14:03:12 -0700 |
| 4 | Subject: [PATCH] compiler-rt: Exclude sync_fetch_and_* for any pre-ARMv6 targets | 4 | Subject: [PATCH] compiler-rt: Exclude sync_fetch_and_* for any pre-ARMv6 |
| 5 | targets | ||
| 5 | 6 | ||
| 6 | Sometimes builds may happen where ABI is not indidated by host_triple | 7 | Sometimes builds may happen where ABI is not indidated by host_triple |
| 7 | e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang | 8 | e.g. on Yocto the compiler used is called arm-poky-linux-gnueabi-clang |
| @@ -39,12 +40,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 39 | 1 file changed, 12 insertions(+) | 40 | 1 file changed, 12 insertions(+) |
| 40 | 41 | ||
| 41 | diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt | 42 | diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt |
| 42 | index cb276311b290..53a3cd1dc81f 100644 | 43 | index 9c1148e2a8e3..9a15606e1e22 100644 |
| 43 | --- a/compiler-rt/lib/builtins/CMakeLists.txt | 44 | --- a/compiler-rt/lib/builtins/CMakeLists.txt |
| 44 | +++ b/compiler-rt/lib/builtins/CMakeLists.txt | 45 | +++ b/compiler-rt/lib/builtins/CMakeLists.txt |
| 45 | @@ -864,6 +864,18 @@ else () | 46 | @@ -908,6 +908,18 @@ else () |
| 46 | list(JOIN BUILTIN_CFLAGS " " CMAKE_REQUIRED_FLAGS) | 47 | ${TARGET_${arch}_CFLAGS}) |
| 47 | set(CMAKE_REQUIRED_FLAGS "${TARGET_${arch}_CFLAGS} ${BUILTIN_CFLAGS_${arch}}") | 48 | list(JOIN CMAKE_REQUIRED_FLAGS " " CMAKE_REQUIRED_FLAGS) |
| 48 | message(STATUS "Performing additional configure checks with target flags: ${CMAKE_REQUIRED_FLAGS}") | 49 | message(STATUS "Performing additional configure checks with target flags: ${CMAKE_REQUIRED_FLAGS}") |
| 49 | + # For ARM archs, exclude any sync builtins if dmb or mcr p15, #0, r0, c7, c10, #5 | 50 | + # For ARM archs, exclude any sync builtins if dmb or mcr p15, #0, r0, c7, c10, #5 |
| 50 | + # is not supported | 51 | + # is not supported |
| @@ -60,4 +61,4 @@ index cb276311b290..53a3cd1dc81f 100644 | |||
| 60 | + endif() | 61 | + endif() |
| 61 | # For ARM archs, exclude any VFP builtins if VFP is not supported | 62 | # For ARM archs, exclude any VFP builtins if VFP is not supported |
| 62 | if (${arch} MATCHES "^(arm|armhf|armv7|armv7s|armv7k|armv7m|armv7em|armv8m.main|armv8.1m.main)$") | 63 | if (${arch} MATCHES "^(arm|armhf|armv7|armv7s|armv7k|armv7m|armv7em|armv8m.main|armv8.1m.main)$") |
| 63 | string(REPLACE ";" " " _TARGET_${arch}_CFLAGS "${TARGET_${arch}_CFLAGS}") | 64 | check_compile_definition(__ARM_FP "${CMAKE_C_FLAGS}" COMPILER_RT_HAS_${arch}_VFP) |
diff --git a/meta/recipes-devtools/clang/clang/0038-compiler-rt-Hardcode-uptr-sptr-typedefs-on-Mips-Linu.patch b/meta/recipes-devtools/clang/clang/0035-compiler-rt-Hardcode-uptr-sptr-typedefs-on-Mips-Linu.patch index b54c163857..45d499e60f 100644 --- a/meta/recipes-devtools/clang/clang/0038-compiler-rt-Hardcode-uptr-sptr-typedefs-on-Mips-Linu.patch +++ b/meta/recipes-devtools/clang/clang/0035-compiler-rt-Hardcode-uptr-sptr-typedefs-on-Mips-Linu.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 9f88f2e4efa56e53c78f9b67775c71afa711a69c Mon Sep 17 00:00:00 2001 | 1 | From 6167af21af9a97fe10d6d5f69aacf7d9785a8fcf 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, 22 May 2025 21:50:45 -0700 | 3 | Date: Thu, 22 May 2025 21:50:45 -0700 |
| 4 | Subject: [PATCH] [compiler-rt] Hardcode uptr/sptr typedefs on Mips/Linux | 4 | Subject: [PATCH] [compiler-rt] Hardcode uptr/sptr typedefs on Mips/Linux |
diff --git a/meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch b/meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch deleted file mode 100644 index f33d8851ea..0000000000 --- a/meta/recipes-devtools/clang/clang/0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From c439de272b3f983c6d97b8f6fec0135323e3363c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 23 Apr 2025 11:52:48 -0700 | ||
| 4 | Subject: [PATCH] openmp: Do not emit date and time into generate files | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | This improves reproducibility where the generated files do not | ||
| 10 | contain time stamps e.g. | ||
| 11 | |||
| 12 | //·The·file·was·generated·from·en_US.txt·by·message-converter.py·on·Wed·Apr·23·16:00:53·2025.·// | ||
| 13 | ./usr/src/debug/openmp/20.1.2/runtime/src/kmp_i18n_id.inc | ||
| 14 | |||
| 15 | Upstream-Status: Pending | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | openmp/runtime/tools/message-converter.py | 3 +-- | ||
| 19 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/openmp/runtime/tools/message-converter.py b/openmp/runtime/tools/message-converter.py | ||
| 22 | index a493d64c1692..0bd5f929fab6 100644 | ||
| 23 | --- a/openmp/runtime/tools/message-converter.py | ||
| 24 | +++ b/openmp/runtime/tools/message-converter.py | ||
| 25 | @@ -188,11 +188,10 @@ def insert_header(f, data, commentChar="//"): | ||
| 26 | f.write( | ||
| 27 | "{0} Do not edit this file! {0}\n" | ||
| 28 | "{0} The file was generated from" | ||
| 29 | - " {1} by {2} on {3}. {0}\n\n".format( | ||
| 30 | + " {1} by {2} {0}\n\n".format( | ||
| 31 | commentChar, | ||
| 32 | os.path.basename(data.filename), | ||
| 33 | os.path.basename(__file__), | ||
| 34 | - datetime.datetime.now().ctime(), | ||
| 35 | ) | ||
| 36 | ) | ||
| 37 | |||
diff --git a/meta/recipes-devtools/clang/clang/0036-clang-Use-sysroot-relative-paths-for-getArchSpecific.patch b/meta/recipes-devtools/clang/clang/0036-clang-Use-sysroot-relative-paths-for-getArchSpecific.patch new file mode 100644 index 0000000000..95cb9ce1e5 --- /dev/null +++ b/meta/recipes-devtools/clang/clang/0036-clang-Use-sysroot-relative-paths-for-getArchSpecific.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From cda45a69a5fa5cd4106be8588c7e33e8f6535e17 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 7 Jul 2025 19:22:07 -0700 | ||
| 4 | Subject: [PATCH] clang: Use sysroot relative paths for getArchSpecificLibPaths | ||
| 5 | and getRuntimePath | ||
| 6 | |||
| 7 | Clang's default sysroot implementation differs that what we do in OE, | ||
| 8 | and we do it with gcc as well where we install c++ runtime headers in | ||
| 9 | target sysroot, clang does not by default it puts them relative to its | ||
| 10 | own installation and uses resourcedir to point to it. In order to solve | ||
| 11 | this we have to raise this question with respective upstreams or rethink | ||
| 12 | about how we package compiler runtime. | ||
| 13 | |||
| 14 | Upstream-Status: Inappropriate [OE-Specific] | ||
| 15 | |||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | clang/lib/Driver/ToolChain.cpp | 10 ++++++++-- | ||
| 19 | 1 file changed, 8 insertions(+), 2 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp | ||
| 22 | index ec28b899f829..f4aafa7996a9 100644 | ||
| 23 | --- a/clang/lib/Driver/ToolChain.cpp | ||
| 24 | +++ b/clang/lib/Driver/ToolChain.cpp | ||
| 25 | @@ -1001,7 +1001,10 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const { | ||
| 26 | } | ||
| 27 | |||
| 28 | std::optional<std::string> ToolChain::getRuntimePath() const { | ||
| 29 | - SmallString<128> P(D.ResourceDir); | ||
| 30 | + SmallString<128> P(D.SysRoot); | ||
| 31 | + StringRef ClangLibdirBasename(CLANG_INSTALL_LIBDIR_BASENAME); | ||
| 32 | + llvm::sys::path::append(P, "/usr/", ClangLibdirBasename, "clang", | ||
| 33 | + CLANG_VERSION_STRING); | ||
| 34 | llvm::sys::path::append(P, "lib"); | ||
| 35 | if (auto Ret = getTargetSubDirPath(P)) | ||
| 36 | return Ret; | ||
| 37 | @@ -1029,7 +1032,10 @@ ToolChain::path_list ToolChain::getArchSpecificLibPaths() const { | ||
| 38 | path_list Paths; | ||
| 39 | |||
| 40 | auto AddPath = [&](const ArrayRef<StringRef> &SS) { | ||
| 41 | - SmallString<128> Path(getDriver().ResourceDir); | ||
| 42 | + SmallString<128> Path(getDriver().SysRoot); | ||
| 43 | + StringRef ClangLibdirBasename(CLANG_INSTALL_LIBDIR_BASENAME); | ||
| 44 | + llvm::sys::path::append(Path, "/usr/", ClangLibdirBasename, "clang", | ||
| 45 | + CLANG_VERSION_STRING); | ||
| 46 | llvm::sys::path::append(Path, "lib"); | ||
| 47 | for (auto &S : SS) | ||
| 48 | llvm::sys::path::append(Path, S); | ||
diff --git a/meta/recipes-devtools/clang/clang/0036-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch b/meta/recipes-devtools/clang/clang/0036-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch deleted file mode 100644 index fe2bd77b33..0000000000 --- a/meta/recipes-devtools/clang/clang/0036-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | From 8c839483915183a9c1ca4f74646ca4f478900e77 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 30 Apr 2025 19:51:19 -0700 | ||
| 4 | Subject: [PATCH] libunwind: Use +gcs instead of gcs target attribute | ||
| 5 | |||
| 6 | __attribute__((target("gcs"))) does not work with gcc | ||
| 7 | |||
| 8 | GCC-15 has added gcs intrinsics [1] but the syntax for enabling it is | ||
| 9 | slightly different. This syntax works with clang too. | ||
| 10 | |||
| 11 | With gcc15 compiler libunwind's check for this macros is succeeding and it | ||
| 12 | ends up enabling 'gcs' by using function attribute, this works with clang | ||
| 13 | but not with gcc but '+gcs' works with both | ||
| 14 | |||
| 15 | We can see this in rust compiler bootstrap for aarch64/musl when system | ||
| 16 | uses gcc15, it ends up with these errors | ||
| 17 | |||
| 18 | Building libunwind.a for aarch64-poky-linux-musl | ||
| 19 | cargo:warning=/mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux-musl/rust/1.85.1/rustc-1.85.1-src/src/llvm-project/libunwind/src/UnwindLevel1.c:191:1: error: arch extension 'gcs' should be prefixed by '+' | ||
| 20 | cargo:warning= 191 | unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { | ||
| 21 | cargo:warning= | ^~~~~~~~~~~~~ | ||
| 22 | cargo:warning=/mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux-musl/rust/1.85.1/rustc-1.85.1-src/src/llvm-project/libunwind/src/UnwindLevel1.c:337:22: error: arch extension 'gcs' should be prefixed by '+' | ||
| 23 | cargo:warning= 337 | _Unwind_Stop_Fn stop, void *stop_parameter) { | ||
| 24 | cargo:warning= | ^~~~~~~~~~~~~~~ | ||
| 25 | |||
| 26 | [1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5a6af707f0af | ||
| 27 | |||
| 28 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/138077] | ||
| 29 | |||
| 30 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 31 | --- | ||
| 32 | libunwind/src/UnwindLevel1.c | 4 ++-- | ||
| 33 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 34 | |||
| 35 | diff --git a/libunwind/src/UnwindLevel1.c b/libunwind/src/UnwindLevel1.c | ||
| 36 | index 7e785f4d31e7..ed2c8239824c 100644 | ||
| 37 | --- a/libunwind/src/UnwindLevel1.c | ||
| 38 | +++ b/libunwind/src/UnwindLevel1.c | ||
| 39 | @@ -185,7 +185,7 @@ extern int __unw_step_stage2(unw_cursor_t *); | ||
| 40 | |||
| 41 | #if defined(_LIBUNWIND_USE_GCS) | ||
| 42 | // Enable the GCS target feature to permit gcspop instructions to be used. | ||
| 43 | -__attribute__((target("gcs"))) | ||
| 44 | +__attribute__((target("+gcs"))) | ||
| 45 | #endif | ||
| 46 | static _Unwind_Reason_Code | ||
| 47 | unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { | ||
| 48 | @@ -329,7 +329,7 @@ unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *except | ||
| 49 | |||
| 50 | #if defined(_LIBUNWIND_USE_GCS) | ||
| 51 | // Enable the GCS target feature to permit gcspop instructions to be used. | ||
| 52 | -__attribute__((target("gcs"))) | ||
| 53 | +__attribute__((target("+gcs"))) | ||
| 54 | #endif | ||
| 55 | static _Unwind_Reason_Code | ||
| 56 | unwind_phase2_forced(unw_context_t *uc, unw_cursor_t *cursor, | ||
diff --git a/meta/recipes-devtools/clang/clang/0001-libclc-allow-existing-prepare-builtins-in-standalone.patch b/meta/recipes-devtools/clang/clang/0037-allow-external-prepare_builtins.patch index 46929798ad..a9f401b21b 100644 --- a/meta/recipes-devtools/clang/clang/0001-libclc-allow-existing-prepare-builtins-in-standalone.patch +++ b/meta/recipes-devtools/clang/clang/0037-allow-external-prepare_builtins.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 348f846b206780646430d6477c04b7793b669f34 Mon Sep 17 00:00:00 2001 | 1 | From cd679dff50adb4a96dae132ba54e74d7c7371074 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ross Burton <ross.burton@arm.com> | 2 | From: Ross Burton <ross.burton@arm.com> |
| 3 | Date: Wed, 16 Jul 2025 23:24:21 +0100 | 3 | Date: Wed, 16 Jul 2025 23:24:21 +0100 |
| 4 | Subject: [PATCH] allow external prepare_builtins | 4 | Subject: [PATCH] allow external prepare_builtins |
| @@ -14,10 +14,10 @@ Signed-off-by: Ross Burton <ross.burton@arm.com> | |||
| 14 | 1 file changed, 17 insertions(+), 6 deletions(-) | 14 | 1 file changed, 17 insertions(+), 6 deletions(-) |
| 15 | 15 | ||
| 16 | diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt | 16 | diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt |
| 17 | index 43e213b385f5..d4a6d096169e 100644 | 17 | index c98e2043464d..151c5d2d20c6 100644 |
| 18 | --- a/libclc/CMakeLists.txt | 18 | --- a/libclc/CMakeLists.txt |
| 19 | +++ b/libclc/CMakeLists.txt | 19 | +++ b/libclc/CMakeLists.txt |
| 20 | @@ -181,17 +181,28 @@ set(LLVM_LINK_COMPONENTS | 20 | @@ -178,17 +178,28 @@ set(LLVM_LINK_COMPONENTS |
| 21 | IRReader | 21 | IRReader |
| 22 | Support | 22 | Support |
| 23 | ) | 23 | ) |
| @@ -52,6 +52,3 @@ index 43e213b385f5..d4a6d096169e 100644 | |||
| 52 | 52 | ||
| 53 | # Setup arch devices | 53 | # Setup arch devices |
| 54 | set( r600--_devices cedar cypress barts cayman ) | 54 | set( r600--_devices cedar cypress barts cayman ) |
| 55 | -- | ||
| 56 | 2.43.0 | ||
| 57 | |||
diff --git a/meta/recipes-devtools/clang/clang/0038-Revert-libc-Remap-headers-in-the-debug-info-when-bui.patch b/meta/recipes-devtools/clang/clang/0038-Revert-libc-Remap-headers-in-the-debug-info-when-bui.patch new file mode 100644 index 0000000000..1572911aad --- /dev/null +++ b/meta/recipes-devtools/clang/clang/0038-Revert-libc-Remap-headers-in-the-debug-info-when-bui.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From e5033c176725f7877694cbee6a8aaa00291101c4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 27 Jul 2025 19:12:13 -0700 | ||
| 4 | Subject: [PATCH] Revert "[libc++] Remap headers in the debug info when | ||
| 5 | building the library (#143004)" | ||
| 6 | |||
| 7 | This reverts commit 4d50b405f1585ce172f87cb5f8daf3c1b4145215. | ||
| 8 | |||
| 9 | There is a discussion on this issue on [1] | ||
| 10 | I have discussed this on PR and also with developer on IRC, I am | ||
| 11 | hoping that our position will be considered by 22.x release | ||
| 12 | |||
| 13 | [1] https://github.com/llvm/llvm-project/pull/143004/ | ||
| 14 | |||
| 15 | Upstream-Status: Inappropriate [ OE-Specific ] | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | libcxx/include/CMakeLists.txt | 5 ----- | ||
| 19 | 1 file changed, 5 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt | ||
| 22 | index 9e9852de2a4c..9ee1b4695783 100644 | ||
| 23 | --- a/libcxx/include/CMakeLists.txt | ||
| 24 | +++ b/libcxx/include/CMakeLists.txt | ||
| 25 | @@ -1719,11 +1719,6 @@ add_dependencies(cxx-headers generate-cxx-headers) | ||
| 26 | target_include_directories(cxx-headers INTERFACE ${LIBCXX_GENERATED_INCLUDE_TARGET_DIR} | ||
| 27 | ${LIBCXX_GENERATED_INCLUDE_DIR}) | ||
| 28 | |||
| 29 | -# Make sure to map the generated include directory back to libc++'s actual source directory when generating | ||
| 30 | -# debug information. Otherwise, the debug information will refer to generated headers which are created during | ||
| 31 | -# the build and generally not persistent. | ||
| 32 | -target_add_compile_flags_if_supported(cxx-headers INTERFACE "-fdebug-prefix-map=${LIBCXX_GENERATED_INCLUDE_DIR}=${LIBCXX_SOURCE_DIR}/include") | ||
| 33 | - | ||
| 34 | if (LIBCXX_INSTALL_HEADERS) | ||
| 35 | foreach(file ${files}) | ||
| 36 | get_filename_component(dir ${file} DIRECTORY) | ||
diff --git a/meta/recipes-devtools/clang/clang/0039-Prevent-revisiting-block-when-searching-for-noreturn.patch b/meta/recipes-devtools/clang/clang/0039-Prevent-revisiting-block-when-searching-for-noreturn.patch new file mode 100644 index 0000000000..343b65f505 --- /dev/null +++ b/meta/recipes-devtools/clang/clang/0039-Prevent-revisiting-block-when-searching-for-noreturn.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From ef88c2d42100d7e9aee8dc876094993080b42b9f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Serge Pavlov <sepavloff@gmail.com> | ||
| 3 | Date: Fri, 25 Jul 2025 13:35:19 +0700 | ||
| 4 | Subject: [PATCH] Prevent revisiting block when searching for noreturn vars | ||
| 5 | |||
| 6 | When searching for noreturn variable initializations, do not visit CFG | ||
| 7 | blocks that are already visited, it prevents hanging the analysis. | ||
| 8 | |||
| 9 | It must fix Ihttps://github.com/llvm/llvm-project/issues/150336. | ||
| 10 | |||
| 11 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/150582] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | clang/test/SemaCXX/noreturn-vars.cpp | 17 +++++++++++++++++ | ||
| 15 | 1 file changed, 17 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/clang/test/SemaCXX/noreturn-vars.cpp b/clang/test/SemaCXX/noreturn-vars.cpp | ||
| 18 | index ca65fcf5ca31..1bf074149f04 100644 | ||
| 19 | --- a/clang/test/SemaCXX/noreturn-vars.cpp | ||
| 20 | +++ b/clang/test/SemaCXX/noreturn-vars.cpp | ||
| 21 | @@ -225,3 +225,20 @@ extern void abc_02(func_type *); | ||
| 22 | abc_02(&func_ptr); | ||
| 23 | func_ptr(); | ||
| 24 | } // expected-warning {{function declared 'noreturn' should not return}} | ||
| 25 | + | ||
| 26 | +namespace Issue150336 { | ||
| 27 | +void free(void *); | ||
| 28 | +typedef void (*sel_freefunc)(void *); | ||
| 29 | +struct gmx_ana_selmethod_t { | ||
| 30 | + sel_freefunc free; | ||
| 31 | + int nparams; | ||
| 32 | + int *param; | ||
| 33 | +}; | ||
| 34 | +void gmx_selelem_free_method(struct gmx_ana_selmethod_t* method, void* mdata) { | ||
| 35 | + sel_freefunc free_func = 0; | ||
| 36 | + for (int i = 0; i < method->nparams; ++i) | ||
| 37 | + free(&method->param[i]); | ||
| 38 | + if (mdata && free_func) | ||
| 39 | + free_func(mdata); | ||
| 40 | +} | ||
| 41 | +} | ||
diff --git a/meta/recipes-devtools/clang/clang/no-c-index-test.patch b/meta/recipes-devtools/clang/clang/0040-Only-build-c-index-test-when-clang-tests-are-include.patch index 55737403d8..111e0110bc 100644 --- a/meta/recipes-devtools/clang/clang/no-c-index-test.patch +++ b/meta/recipes-devtools/clang/clang/0040-Only-build-c-index-test-when-clang-tests-are-include.patch | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | From 714a9cb319a8946fa670c7e8bbe7f29f847fa45f Mon Sep 17 00:00:00 2001 | 1 | From 70c4615ab54e5380019955a7cb3381b977802b7d Mon Sep 17 00:00:00 2001 |
| 2 | From: David Spickett <david.spickett@linaro.org> | 2 | From: David Spickett <david.spickett@linaro.org> |
| 3 | Date: Tue, 29 Jul 2025 14:17:56 +0000 | 3 | Date: Tue, 29 Jul 2025 14:17:56 +0000 |
| 4 | Subject: [PATCH 1/2] [clang] Only build c-index-test when clang tests are | 4 | Subject: [PATCH] Only build c-index-test when clang tests are included |
| 5 | included | ||
| 6 | 5 | ||
| 7 | c-index-test is only used for testing, and it's used in tests | 6 | c-index-test is only used for testing, and it's used in tests |
| 8 | that are already guarded by CLANG_INCLUDE_TESTS in clang/CMakeLists.txt. | 7 | that are already guarded by CLANG_INCLUDE_TESTS in clang/CMakeLists.txt. |
| @@ -14,30 +13,31 @@ include c-index-test which we have no need for. | |||
| 14 | 13 | ||
| 15 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/151157] | 14 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/151157] |
| 16 | Signed-off-by: Ross Burton <ross.burton@arm.com> | 15 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | 17 | --- |
| 18 | clang/tools/CMakeLists.txt | 4 +++- | 18 | clang/tools/CMakeLists.txt | 4 +++- |
| 19 | 1 file changed, 3 insertions(+), 1 deletion(-) | 19 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 20 | 20 | ||
| 21 | diff --git i/clang/tools/CMakeLists.txt w/clang/tools/CMakeLists.txt | 21 | diff --git a/clang/tools/CMakeLists.txt b/clang/tools/CMakeLists.txt |
| 22 | index 98c018e96848..5410dd8de843 100644 | 22 | index 50e3d694236a..196dcb1e8466 100644 |
| 23 | --- i/clang/tools/CMakeLists.txt | 23 | --- a/clang/tools/CMakeLists.txt |
| 24 | +++ w/clang/tools/CMakeLists.txt | 24 | +++ b/clang/tools/CMakeLists.txt |
| 25 | @@ -2,7 +2,6 @@ create_subdirectory_options(CLANG TOOL) | 25 | @@ -2,7 +2,6 @@ create_subdirectory_options(CLANG TOOL) |
| 26 | 26 | ||
| 27 | add_clang_subdirectory(diagtool) | 27 | add_clang_subdirectory(diagtool) |
| 28 | add_clang_subdirectory(driver) | 28 | add_clang_subdirectory(driver) |
| 29 | -add_clang_subdirectory(apinotes-test) | 29 | -add_clang_subdirectory(apinotes-test) |
| 30 | add_clang_subdirectory(clang-diff) | 30 | if(CLANG_ENABLE_CIR) |
| 31 | add_clang_subdirectory(clang-format) | 31 | add_clang_subdirectory(cir-opt) |
| 32 | add_clang_subdirectory(clang-fuzzer) | 32 | add_clang_subdirectory(cir-translate) |
| 33 | @@ -18,7 +17,10 @@ if(HAVE_CLANG_REPL_SUPPORT) | 33 | @@ -23,7 +22,10 @@ if(HAVE_CLANG_REPL_SUPPORT) |
| 34 | add_clang_subdirectory(clang-repl) | 34 | add_clang_subdirectory(clang-repl) |
| 35 | endif() | 35 | endif() |
| 36 | 36 | ||
| 37 | +if(CLANG_INCLUDE_TESTS) | 37 | +if(CLANG_INCLUDE_TESTS) |
| 38 | +add_clang_subdirectory(apinotes-test) | 38 | +add_clang_subdirectory(apinotes-test) |
| 39 | add_clang_subdirectory(c-index-test) | 39 | add_clang_subdirectory(c-index-test) |
| 40 | +endif() | 40 | +endif() |
| 41 | 41 | ||
| 42 | add_clang_subdirectory(clang-refactor) | 42 | add_clang_subdirectory(clang-refactor) |
| 43 | # For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON. | 43 | # For MinGW/Cygwin we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON. |
diff --git a/meta/recipes-devtools/clang/clang/0001-llvm-Allow-users-to-set-LLVM_HAVE_OPT_VIEWER_MODULES.patch b/meta/recipes-devtools/clang/clang/0041-opt-viewer-Allow-users-to-set-LLVM_HAVE_OPT_VIEWER_M.patch index 4211cd2e3c..4dc01f6e64 100644 --- a/meta/recipes-devtools/clang/clang/0001-llvm-Allow-users-to-set-LLVM_HAVE_OPT_VIEWER_MODULES.patch +++ b/meta/recipes-devtools/clang/clang/0041-opt-viewer-Allow-users-to-set-LLVM_HAVE_OPT_VIEWER_M.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From e396fbe0e698c80e112af76fcdff8bbd61a30740 Mon Sep 17 00:00:00 2001 | 1 | From 93a51605fccf0f99868f8bae212a08823d01b03a 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: Sat, 2 Aug 2025 17:58:20 -0700 | 3 | Date: Sat, 2 Aug 2025 17:58:20 -0700 |
| 4 | Subject: [PATCH] llvm: Allow users to set LLVM_HAVE_OPT_VIEWER_MODULES | 4 | Subject: [PATCH] [opt-viewer] Allow users to set LLVM_HAVE_OPT_VIEWER_MODULES |
| 5 | manually from the CMake | 5 | manually from the CMake |
| 6 | 6 | ||
| 7 | Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES | 7 | Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES |
| @@ -9,16 +9,15 @@ so that if the user specifies the variable on the commandline | |||
| 9 | it takes precedence. If not, fall back to the old logic | 9 | it takes precedence. If not, fall back to the old logic |
| 10 | 10 | ||
| 11 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/151845] | 11 | Upstream-Status: Submitted [https://github.com/llvm/llvm-project/pull/151845] |
| 12 | |||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- | 13 | --- |
| 15 | llvm/CMakeLists.txt | 2 ++ | 14 | llvm/CMakeLists.txt | 2 ++ |
| 16 | llvm/cmake/config-ix.cmake | 13 ++++++++++--- | 15 | llvm/cmake/config-ix.cmake | 13 ++++++++++--- |
| 17 | llvm/tools/opt-viewer/CMakeLists.txt | 24 +++++++++++++----------- | 16 | llvm/include/llvm/Config/config.h.cmake | 3 +++ |
| 18 | 3 files changed, 25 insertions(+), 14 deletions(-) | 17 | 3 files changed, 15 insertions(+), 3 deletions(-) |
| 19 | 18 | ||
| 20 | diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt | 19 | diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt |
| 21 | index 4c70b98a32f9..60b786ca39c2 100644 | 20 | index cb945b578e46..e4ed9eca6014 100644 |
| 22 | --- a/llvm/CMakeLists.txt | 21 | --- a/llvm/CMakeLists.txt |
| 23 | +++ b/llvm/CMakeLists.txt | 22 | +++ b/llvm/CMakeLists.txt |
| 24 | @@ -7,6 +7,8 @@ set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) | 23 | @@ -7,6 +7,8 @@ set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) |
| @@ -55,37 +54,17 @@ index a8e4e5a63244..17af3dc1e93f 100644 | |||
| 55 | endif() | 54 | endif() |
| 56 | 55 | ||
| 57 | function(llvm_get_host_prefixes_and_suffixes) | 56 | function(llvm_get_host_prefixes_and_suffixes) |
| 58 | diff --git a/llvm/tools/opt-viewer/CMakeLists.txt b/llvm/tools/opt-viewer/CMakeLists.txt | 57 | diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake |
| 59 | index 4bcf6932ee77..d231c39bcc5d 100644 | 58 | index ce83de8e4cba..02cf6d2ec363 100644 |
| 60 | --- a/llvm/tools/opt-viewer/CMakeLists.txt | 59 | --- a/llvm/include/llvm/Config/config.h.cmake |
| 61 | +++ b/llvm/tools/opt-viewer/CMakeLists.txt | 60 | +++ b/llvm/include/llvm/Config/config.h.cmake |
| 62 | @@ -6,16 +6,18 @@ set (files | 61 | @@ -287,6 +287,9 @@ |
| 63 | "optrecord.py" | 62 | /* Define to a function implementing strdup */ |
| 64 | "style.css") | 63 | #cmakedefine strdup ${strdup} |
| 65 | 64 | ||
| 66 | -foreach (file ${files}) | 65 | +/* Define indicating opt-viewer modules */ |
| 67 | - install(PROGRAMS ${file} | 66 | +#cmakedefine LLVM_HAVE_OPT_VIEWER_MODULES |
| 68 | - DESTINATION "${CMAKE_INSTALL_DATADIR}/opt-viewer" | 67 | + |
| 69 | - COMPONENT opt-viewer) | 68 | /* Whether GlobalISel rule coverage is being collected */ |
| 70 | -endforeach (file) | 69 | #cmakedefine01 LLVM_GISEL_COV_ENABLED |
| 71 | +if(LLVM_HAVE_OPT_VIEWER_MODULES) | ||
| 72 | + foreach (file ${files}) | ||
| 73 | + install(PROGRAMS ${file} | ||
| 74 | + DESTINATION "${CMAKE_INSTALL_DATADIR}/opt-viewer" | ||
| 75 | + COMPONENT opt-viewer) | ||
| 76 | + endforeach (file) | ||
| 77 | 70 | ||
| 78 | -add_custom_target(opt-viewer DEPENDS ${files}) | ||
| 79 | -set_target_properties(opt-viewer PROPERTIES FOLDER "LLVM/Tools") | ||
| 80 | -if(NOT LLVM_ENABLE_IDE) | ||
| 81 | - add_llvm_install_targets("install-opt-viewer" | ||
| 82 | - DEPENDS opt-viewer | ||
| 83 | - COMPONENT opt-viewer) | ||
| 84 | + add_custom_target(opt-viewer DEPENDS ${files}) | ||
| 85 | + set_target_properties(opt-viewer PROPERTIES FOLDER "LLVM/Tools") | ||
| 86 | + if(NOT LLVM_ENABLE_IDE) | ||
| 87 | + add_llvm_install_targets("install-opt-viewer" | ||
| 88 | + DEPENDS opt-viewer | ||
| 89 | + COMPONENT opt-viewer) | ||
| 90 | + endif() | ||
| 91 | endif() | ||
diff --git a/meta/recipes-devtools/clang/common-clang.inc b/meta/recipes-devtools/clang/common-clang.inc index 6ac53125f0..9814319429 100644 --- a/meta/recipes-devtools/clang/common-clang.inc +++ b/meta/recipes-devtools/clang/common-clang.inc | |||
| @@ -3,13 +3,13 @@ LLVM_DIR = "llvm${LLVM_RELEASE}" | |||
| 3 | 3 | ||
| 4 | LLVM_HTTP ?= "https://github.com/llvm" | 4 | LLVM_HTTP ?= "https://github.com/llvm" |
| 5 | 5 | ||
| 6 | MAJOR_VER = "20" | 6 | MAJOR_VER = "21" |
| 7 | MINOR_VER = "1" | 7 | MINOR_VER = "1" |
| 8 | PATCH_VER = "8" | 8 | PATCH_VER = "0" |
| 9 | # could be 'rcX' or 'git' or empty ( for release ) | 9 | # could be 'rcX' or 'git' or empty ( for release ) |
| 10 | VER_SUFFIX = "" | 10 | VER_SUFFIX = "" |
| 11 | 11 | ||
| 12 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}${VER_SUFFIX}" | 12 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" |
| 13 | 13 | ||
| 14 | LLVMMD5SUM = "8a15a0759ef07f2682d2ba4b893c9afe" | 14 | LLVMMD5SUM = "8a15a0759ef07f2682d2ba4b893c9afe" |
| 15 | CLANGMD5SUM = "ff42885ed2ab98f1ecb8c1fc41205343" | 15 | CLANGMD5SUM = "ff42885ed2ab98f1ecb8c1fc41205343" |
diff --git a/meta/recipes-devtools/clang/common.inc b/meta/recipes-devtools/clang/common.inc index cbcc4feded..889847c3e1 100644 --- a/meta/recipes-devtools/clang/common.inc +++ b/meta/recipes-devtools/clang/common.inc | |||
| @@ -13,11 +13,11 @@ LICENSE = "Apache-2.0-with-LLVM-exception" | |||
| 13 | 13 | ||
| 14 | # GA Release | 14 | # GA Release |
| 15 | RELEASE ?= "${PV}" | 15 | RELEASE ?= "${PV}" |
| 16 | BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz" | 16 | BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}${VER_SUFFIX}/llvm-project-${PV}${VER_SUFFIX}.src.tar.xz" |
| 17 | UPSTREAM_CHECK_URI = "${LLVM_HTTP}/llvm-project/releases/" | 17 | UPSTREAM_CHECK_URI = "${LLVM_HTTP}/llvm-project/releases/" |
| 18 | UPSTREAM_CHECK_REGEX = "releases/tag/llvmorg-?(?P<pver>\d+(\.\d+)+)" | 18 | UPSTREAM_CHECK_REGEX = "releases/tag/llvmorg-?(?P<pver>\d+(\.\d+)+)" |
| 19 | SOURCEDIR ?= "llvm-project-${PV}.src" | 19 | SOURCEDIR ?= "llvm-project-${PV}${VER_SUFFIX}.src" |
| 20 | SRC_URI[sha256sum] = "6898f963c8e938981e6c4a302e83ec5beb4630147c7311183cf61069af16333d" | 20 | SRC_URI[sha256sum] = "1672e3efb4c2affd62dbbe12ea898b28a451416c7d95c1bd0190c26cbe878825" |
| 21 | 21 | ||
| 22 | SRC_URI = "\ | 22 | SRC_URI = "\ |
| 23 | ${BASEURI} \ | 23 | ${BASEURI} \ |
| @@ -52,17 +52,16 @@ SRC_URI = "\ | |||
| 52 | file://0029-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch \ | 52 | file://0029-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch \ |
| 53 | file://0030-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch \ | 53 | file://0030-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch \ |
| 54 | file://0031-compiler-rt-Do-not-pass-target-to-clang-compiler.patch \ | 54 | file://0031-compiler-rt-Do-not-pass-target-to-clang-compiler.patch \ |
| 55 | file://0032-clangd-Add-a-build-option-to-disable-building-dexp.patch \ | 55 | file://0032-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch \ |
| 56 | file://0033-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch \ | 56 | file://0033-llvm-config-remove-LLVM_LDFLAGS-from-ldflags-output.patch \ |
| 57 | file://0034-llvm-config-remove-LLVM_LDFLAGS-from-ldflags-output.patch \ | 57 | file://0034-compiler-rt-Exclude-sync_fetch_and_-for-any-pre-ARMv.patch \ |
| 58 | file://0035-openmp-Do-not-emit-date-and-time-into-generate-files.patch \ | 58 | file://0035-compiler-rt-Hardcode-uptr-sptr-typedefs-on-Mips-Linu.patch \ |
| 59 | file://0036-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch \ | 59 | file://0036-clang-Use-sysroot-relative-paths-for-getArchSpecific.patch \ |
| 60 | file://0037-compiler-rt-Exclude-sync_fetch_and_-for-any-pre-ARMv.patch \ | 60 | file://0037-allow-external-prepare_builtins.patch \ |
| 61 | file://0038-compiler-rt-Hardcode-uptr-sptr-typedefs-on-Mips-Linu.patch \ | 61 | file://0038-Revert-libc-Remap-headers-in-the-debug-info-when-bui.patch \ |
| 62 | file://0001-libclc-allow-existing-prepare-builtins-in-standalone.patch \ | 62 | file://0039-Prevent-revisiting-block-when-searching-for-noreturn.patch \ |
| 63 | file://no-c-index-test.patch \ | 63 | file://0040-Only-build-c-index-test-when-clang-tests-are-include.patch \ |
| 64 | file://0001-llvm-Allow-users-to-set-LLVM_HAVE_OPT_VIEWER_MODULES.patch \ | 64 | file://0041-opt-viewer-Allow-users-to-set-LLVM_HAVE_OPT_VIEWER_M.patch \ |
| 65 | file://0001-compiler-rt-AArch64-Add-GCS-property-in-assembly-fil.patch \ | ||
| 66 | " | 65 | " |
| 67 | # Fallback to no-PIE if not set | 66 | # Fallback to no-PIE if not set |
| 68 | GCCPIE ??= "" | 67 | GCCPIE ??= "" |
