diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-04-15 19:49:19 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-05-04 08:53:55 -0700 |
commit | d797409435d3b0e9f2859992439989ff1d81e66d (patch) | |
tree | 95ac8fcda5b2c321e4252a165cde3f75683d1c4d | |
parent | 402ae7a9ce9568576ea83bcff9073f84d5322894 (diff) | |
download | meta-clang-d797409435d3b0e9f2859992439989ff1d81e66d.tar.gz |
clang: Enable dwarf-5 default debug info
This matches with GCC 11 which is also defaulting to DWARF-5
Signed-off-by: Khem Raj <raj.khem@gmail.com>
34 files changed, 122 insertions, 61 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 7db4883..6a08046 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
@@ -8,7 +8,7 @@ MAJOR_VER = "12" | |||
8 | MINOR_VER = "0" | 8 | MINOR_VER = "0" |
9 | PATCH_VER = "0" | 9 | PATCH_VER = "0" |
10 | 10 | ||
11 | SRCREV ?= "d28af7c654d8db0b68c175db5ce212d74fb5e9bc" | 11 | SRCREV ?= "fa0971b87fb2c9d14d1bba2551e61f02f18f329b" |
12 | 12 | ||
13 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" | 13 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}" |
14 | BRANCH = "release/${MAJOR_VER}.x" | 14 | BRANCH = "release/${MAJOR_VER}.x" |
diff --git a/recipes-devtools/clang/clang/0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch b/recipes-devtools/clang/clang/0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch index b8b56e7..c1ba432 100644 --- a/recipes-devtools/clang/clang/0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch +++ b/recipes-devtools/clang/clang/0001-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 6bf608a67654eaf3312d8ca4813a19526e35c8b1 Mon Sep 17 00:00:00 2001 | 1 | From 42e6673563ca1d0e433e16c3eefa20b98e280ebd 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, 22 May 2017 17:36:16 -0700 | 3 | Date: Mon, 22 May 2017 17:36:16 -0700 |
4 | Subject: [PATCH] lldb: Add -lxml2 to linker cmdline of xml is found | 4 | Subject: [PATCH] lldb: Add -lxml2 to linker cmdline of xml is found |
diff --git a/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch b/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch index 4a6d415..f101e77 100644 --- a/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch +++ b/recipes-devtools/clang/clang/0002-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 9e5acc06fe366c08a313bb033010f2e56c8cb65d Mon Sep 17 00:00:00 2001 | 1 | From da63df8f02b3a767b68d6de730bb63bba6c3ce33 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 |
diff --git a/recipes-devtools/clang/clang/0003-compiler-rt-support-a-new-embedded-linux-target.patch b/recipes-devtools/clang/clang/0003-compiler-rt-support-a-new-embedded-linux-target.patch index 250d663..e8536d3 100644 --- a/recipes-devtools/clang/clang/0003-compiler-rt-support-a-new-embedded-linux-target.patch +++ b/recipes-devtools/clang/clang/0003-compiler-rt-support-a-new-embedded-linux-target.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f8ec4b59e6ad2a91ded1f05a9e711a68d9897608 Mon Sep 17 00:00:00 2001 | 1 | From cfeba7ac05c96abddfad1eeb827ba8d0c968ec94 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/recipes-devtools/clang/clang/0004-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch b/recipes-devtools/clang/clang/0004-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch index 820f841..8b8edd8 100644 --- a/recipes-devtools/clang/clang/0004-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch +++ b/recipes-devtools/clang/clang/0004-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 9aaf03ac32985430e5c08347ed4e5d2721d5db1b Mon Sep 17 00:00:00 2001 | 1 | From 6c786d55d560abca076b7c1b718cdcb31ef5b388 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 |
diff --git a/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch b/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch index d2bd6a4..97d57c2 100644 --- a/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch +++ b/recipes-devtools/clang/clang/0005-compiler-rt-Disable-tsan-on-OE-glibc.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0565a77f6bd5fdc7a440455fb31ee5f6fd42afff Mon Sep 17 00:00:00 2001 | 1 | From 121a71a3923dbace24dbb7bd25f9f286fb9f91fb Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 | 3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 |
4 | Subject: [PATCH] compiler-rt: Disable tsan on OE/glibc | 4 | Subject: [PATCH] compiler-rt: Disable tsan on OE/glibc |
diff --git a/recipes-devtools/clang/clang/0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch b/recipes-devtools/clang/clang/0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch index 678e80c..4e1120a 100644 --- a/recipes-devtools/clang/clang/0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch +++ b/recipes-devtools/clang/clang/0006-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 5152fffda4231ad41d81a8fe954adec3b2955ed5 Mon Sep 17 00:00:00 2001 | 1 | From 4afcffd0c4b3317b5b5e08e3372b2923ab471e4b 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 |
diff --git a/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch b/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch index d8af3ff..4df2d62 100644 --- a/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch +++ b/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d8875d549490e392fe432de259fb13c00b585598 Mon Sep 17 00:00:00 2001 | 1 | From 4ed6b8848edbe1c453ce0d23d33551ff023f4fb2 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 path | 4 | Subject: [PATCH] llvm: allow env override of exe path |
diff --git a/recipes-devtools/clang/clang/0008-clang-driver-Check-sysroot-for-ldso-path.patch b/recipes-devtools/clang/clang/0008-clang-driver-Check-sysroot-for-ldso-path.patch index 3aff19a..ea28de0 100644 --- a/recipes-devtools/clang/clang/0008-clang-driver-Check-sysroot-for-ldso-path.patch +++ b/recipes-devtools/clang/clang/0008-clang-driver-Check-sysroot-for-ldso-path.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 09a0e9e8e39b31570f00ac70880e60377ce38973 Mon Sep 17 00:00:00 2001 | 1 | From 15008103e23b5e1cd65bcc32746aa41579583dc5 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 |
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 16 insertions(+) | 14 | 1 file changed, 16 insertions(+) |
15 | 15 | ||
16 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 16 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
17 | index e17a6bd4bdd2..199d9c867c96 100644 | 17 | index 9663a7390ada..06b92cc0bf5b 100644 |
18 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 18 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
19 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 19 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
20 | @@ -516,11 +516,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 20 | @@ -507,11 +507,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
21 | LibDir = "lib64"; | 21 | LibDir = "lib64"; |
22 | Loader = | 22 | Loader = |
23 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; | 23 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; |
@@ -37,7 +37,7 @@ index e17a6bd4bdd2..199d9c867c96 100644 | |||
37 | break; | 37 | break; |
38 | case llvm::Triple::riscv32: { | 38 | case llvm::Triple::riscv32: { |
39 | StringRef ABIName = tools::riscv::getRISCVABI(Args, Triple); | 39 | StringRef ABIName = tools::riscv::getRISCVABI(Args, Triple); |
40 | @@ -542,6 +550,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 40 | @@ -533,6 +541,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
41 | case llvm::Triple::sparcv9: | 41 | case llvm::Triple::sparcv9: |
42 | LibDir = "lib64"; | 42 | LibDir = "lib64"; |
43 | Loader = "ld-linux.so.2"; | 43 | Loader = "ld-linux.so.2"; |
@@ -48,7 +48,7 @@ index e17a6bd4bdd2..199d9c867c96 100644 | |||
48 | break; | 48 | break; |
49 | case llvm::Triple::systemz: | 49 | case llvm::Triple::systemz: |
50 | LibDir = "lib"; | 50 | LibDir = "lib"; |
51 | @@ -556,6 +568,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 51 | @@ -547,6 +559,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
52 | 52 | ||
53 | LibDir = X32 ? "libx32" : "lib64"; | 53 | LibDir = X32 ? "libx32" : "lib64"; |
54 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; | 54 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; |
diff --git a/recipes-devtools/clang/clang/0009-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch b/recipes-devtools/clang/clang/0009-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch index 38c48d3..a0d116b 100644 --- a/recipes-devtools/clang/clang/0009-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch +++ b/recipes-devtools/clang/clang/0009-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 88f44c237f409d091966cebfbeff6c089d212b20 Mon Sep 17 00:00:00 2001 | 1 | From 1b2f69bc1938d4d65dd88c2e43e1bd160312d074 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 |
diff --git a/recipes-devtools/clang/clang/0010-clang-musl-ppc-does-not-support-128-bit-long-double.patch b/recipes-devtools/clang/clang/0010-clang-musl-ppc-does-not-support-128-bit-long-double.patch index 70cebab..8c2ddeb 100644 --- a/recipes-devtools/clang/clang/0010-clang-musl-ppc-does-not-support-128-bit-long-double.patch +++ b/recipes-devtools/clang/clang/0010-clang-musl-ppc-does-not-support-128-bit-long-double.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4c5c8ed9d14942e9c16cfdfb39257dc265a007c5 Mon Sep 17 00:00:00 2001 | 1 | From 7ab52935bc6bd89529a2478af1ea2cdf192eb0d9 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, 10 May 2016 02:00:11 -0700 | 3 | Date: Tue, 10 May 2016 02:00:11 -0700 |
4 | Subject: [PATCH] clang: musl/ppc does not support 128-bit long double | 4 | Subject: [PATCH] clang: musl/ppc does not support 128-bit long double |
diff --git a/recipes-devtools/clang/clang/0011-clang-Prepend-trailing-to-sysroot.patch b/recipes-devtools/clang/clang/0011-clang-Prepend-trailing-to-sysroot.patch index d9de6bf..88d1868 100644 --- a/recipes-devtools/clang/clang/0011-clang-Prepend-trailing-to-sysroot.patch +++ b/recipes-devtools/clang/clang/0011-clang-Prepend-trailing-to-sysroot.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 20a2d20cb5c2eaa624a3ac514a663104c62786bf Mon Sep 17 00:00:00 2001 | 1 | From af7639bf4db497300060a22f2cc94b37145b8db5 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 |
@@ -24,7 +24,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
24 | 1 file changed, 1 insertion(+), 1 deletion(-) | 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
25 | 25 | ||
26 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 26 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
27 | index 199d9c867c96..520ae5a7d2cf 100644 | 27 | index 06b92cc0bf5b..726308413dc9 100644 |
28 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 28 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
29 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 29 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
30 | @@ -218,7 +218,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) | 30 | @@ -218,7 +218,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) |
diff --git a/recipes-devtools/clang/clang/0012-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch b/recipes-devtools/clang/clang/0012-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch index f84dcaf..1e9d395 100644 --- a/recipes-devtools/clang/clang/0012-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch +++ b/recipes-devtools/clang/clang/0012-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b1b677981b251e231b863dabbed938b7ece54eef Mon Sep 17 00:00:00 2001 | 1 | From f946307a70619c45919ac06fa37c267fd25c3ec8 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 |
diff --git a/recipes-devtools/clang/clang/0013-clang-Define-releative-gcc-installation-dir.patch b/recipes-devtools/clang/clang/0013-clang-Define-releative-gcc-installation-dir.patch index 47f897b..1b07e5a 100644 --- a/recipes-devtools/clang/clang/0013-clang-Define-releative-gcc-installation-dir.patch +++ b/recipes-devtools/clang/clang/0013-clang-Define-releative-gcc-installation-dir.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 3658b52189bdbd9e742c0166d9bc919d4195b40e Mon Sep 17 00:00:00 2001 | 1 | From 9c61a33cec25c8f2e0a90d5109808131d2e51c2d 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, 21 May 2017 15:38:25 -0700 | 3 | Date: Sun, 21 May 2017 15:38:25 -0700 |
4 | Subject: [PATCH] clang: Define / releative gcc installation dir | 4 | Subject: [PATCH] clang: Define / releative gcc installation dir |
diff --git a/recipes-devtools/clang/clang/0014-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch b/recipes-devtools/clang/clang/0014-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch index 08f4222..67cc8de 100644 --- a/recipes-devtools/clang/clang/0014-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch +++ b/recipes-devtools/clang/clang/0014-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 7b8ad95e1e5953234df3e06d5d01cbdd1a8c051d Mon Sep 17 00:00:00 2001 | 1 | From 3166a3b59f406de57f04a0b6fd0f3f1eabfaaa37 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, 16 Aug 2017 15:16:15 -0700 | 3 | Date: Wed, 16 Aug 2017 15:16:15 -0700 |
4 | Subject: [PATCH] clang: Fix ldso for musl on x86 and x32 architectures | 4 | Subject: [PATCH] clang: Fix ldso for musl on x86 and x32 architectures |
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 8 insertions(+) | 14 | 1 file changed, 8 insertions(+) |
15 | 15 | ||
16 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 16 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
17 | index 520ae5a7d2cf..8b72e8f505fe 100644 | 17 | index 726308413dc9..b64396647882 100644 |
18 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 18 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
19 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 19 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
20 | @@ -435,6 +435,7 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 20 | @@ -426,6 +426,7 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
21 | if (Triple.isMusl()) { | 21 | if (Triple.isMusl()) { |
22 | std::string ArchName; | 22 | std::string ArchName; |
23 | bool IsArm = false; | 23 | bool IsArm = false; |
@@ -25,7 +25,7 @@ index 520ae5a7d2cf..8b72e8f505fe 100644 | |||
25 | 25 | ||
26 | switch (Arch) { | 26 | switch (Arch) { |
27 | case llvm::Triple::arm: | 27 | case llvm::Triple::arm: |
28 | @@ -447,6 +448,13 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 28 | @@ -438,6 +439,13 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
29 | ArchName = "armeb"; | 29 | ArchName = "armeb"; |
30 | IsArm = true; | 30 | IsArm = true; |
31 | break; | 31 | break; |
diff --git a/recipes-devtools/clang/clang/0015-clang-scan-view-needs-python-2.x.patch b/recipes-devtools/clang/clang/0015-clang-scan-view-needs-python-2.x.patch index 97dc0cc..46b6995 100644 --- a/recipes-devtools/clang/clang/0015-clang-scan-view-needs-python-2.x.patch +++ b/recipes-devtools/clang/clang/0015-clang-scan-view-needs-python-2.x.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 330f45191d4e73ac50131d278fa201b56c173880 Mon Sep 17 00:00:00 2001 | 1 | From bd42395fa181d5821f0d756d12c534f2cda525c0 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, 15 May 2018 10:28:43 -0700 | 3 | Date: Tue, 15 May 2018 10:28:43 -0700 |
4 | Subject: [PATCH] clang: scan-view needs python 2.x | 4 | Subject: [PATCH] clang: scan-view needs python 2.x |
diff --git a/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch b/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch index 4c450ca..a785bda 100644 --- a/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch +++ b/recipes-devtools/clang/clang/0016-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e5457a0d477d7a0f7fffef56670450744881554f Mon Sep 17 00:00:00 2001 | 1 | From c309e121d6aca050119084e3e98371cd8e44ecca 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 |
diff --git a/recipes-devtools/clang/clang/0017-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch b/recipes-devtools/clang/clang/0017-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch index e7fffbe..3f2e16b 100644 --- a/recipes-devtools/clang/clang/0017-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch +++ b/recipes-devtools/clang/clang/0017-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 20ad7e5562772d10d5edaafc1a054a26e91ccdb5 Mon Sep 17 00:00:00 2001 | 1 | From 00449fb89e8ab3b34f03d3a09a4d859e5d0a8245 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 |
diff --git a/recipes-devtools/clang/clang/0018-Check-for-atomic-double-intrinsics.patch b/recipes-devtools/clang/clang/0018-Check-for-atomic-double-intrinsics.patch index 3e66ebb..800b58e 100644 --- a/recipes-devtools/clang/clang/0018-Check-for-atomic-double-intrinsics.patch +++ b/recipes-devtools/clang/clang/0018-Check-for-atomic-double-intrinsics.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1fbeaabbc22e1f665889a0f3fec5bb435207649b Mon Sep 17 00:00:00 2001 | 1 | From 761be2d8d20d9ebe93fa33719bdd0d25396d812d 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/recipes-devtools/clang/clang/0019-clang-Enable-SSP-and-PIE-by-default.patch b/recipes-devtools/clang/clang/0019-clang-Enable-SSP-and-PIE-by-default.patch index 9f73947..164503f 100644 --- a/recipes-devtools/clang/clang/0019-clang-Enable-SSP-and-PIE-by-default.patch +++ b/recipes-devtools/clang/clang/0019-clang-Enable-SSP-and-PIE-by-default.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 460c9c3c8d6384613f3a12af6f27513d1a2222f0 Mon Sep 17 00:00:00 2001 | 1 | From d0f788c1fb3d00350c51e88302ecbcf3506e4b53 Mon Sep 17 00:00:00 2001 |
2 | From: Evangelos Foutras <evangelos@foutrelis.com> | 2 | From: Evangelos Foutras <evangelos@foutrelis.com> |
3 | Date: Thu, 26 Dec 2019 15:46:19 -0800 | 3 | Date: Thu, 26 Dec 2019 15:46:19 -0800 |
4 | Subject: [PATCH] clang: Enable SSP and PIE by default | 4 | Subject: [PATCH] clang: Enable SSP and PIE by default |
@@ -37,10 +37,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
37 | 13 files changed, 42 insertions(+), 30 deletions(-) | 37 | 13 files changed, 42 insertions(+), 30 deletions(-) |
38 | 38 | ||
39 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 39 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
40 | index 8b72e8f505fe..98f54a935465 100644 | 40 | index b64396647882..604024bb3df4 100644 |
41 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 41 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
42 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 42 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
43 | @@ -865,8 +865,14 @@ void Linux::AddIAMCUIncludeArgs(const ArgList &DriverArgs, | 43 | @@ -856,8 +856,14 @@ void Linux::AddIAMCUIncludeArgs(const ArgList &DriverArgs, |
44 | } | 44 | } |
45 | 45 | ||
46 | bool Linux::isPIEDefault() const { | 46 | bool Linux::isPIEDefault() const { |
@@ -221,7 +221,7 @@ index 0959bd7ba0a1..4056a672b6f9 100644 | |||
221 | // CHECK-SPARCV9PIC: as | 221 | // CHECK-SPARCV9PIC: as |
222 | // CHECK-SPARCV9PIC: -64 | 222 | // CHECK-SPARCV9PIC: -64 |
223 | diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c | 223 | diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c |
224 | index 0b788ffcb852..0ee504cd00e3 100644 | 224 | index 24d3c78643f8..9ea22e6e0f64 100644 |
225 | --- a/clang/test/Driver/linux-ld.c | 225 | --- a/clang/test/Driver/linux-ld.c |
226 | +++ b/clang/test/Driver/linux-ld.c | 226 | +++ b/clang/test/Driver/linux-ld.c |
227 | @@ -1,3 +1,5 @@ | 227 | @@ -1,3 +1,5 @@ |
diff --git a/recipes-devtools/clang/clang/0020-libcxx-Add-compiler-runtime-library-to-link-step-for.patch b/recipes-devtools/clang/clang/0020-libcxx-Add-compiler-runtime-library-to-link-step-for.patch index 118742a..1500fc9 100644 --- a/recipes-devtools/clang/clang/0020-libcxx-Add-compiler-runtime-library-to-link-step-for.patch +++ b/recipes-devtools/clang/clang/0020-libcxx-Add-compiler-runtime-library-to-link-step-for.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 81ece1b8e6762676679106f2c17c5fdd2aad3035 Mon Sep 17 00:00:00 2001 | 1 | From 5c0a4264ad87c880ade430022e0f128da86bbf6d Mon Sep 17 00:00:00 2001 |
2 | From: Jeremy Puhlman <jpuhlman@mvista.com> | 2 | From: Jeremy Puhlman <jpuhlman@mvista.com> |
3 | Date: Thu, 16 Jan 2020 21:16:10 +0000 | 3 | Date: Thu, 16 Jan 2020 21:16:10 +0000 |
4 | Subject: [PATCH] libcxx: Add compiler runtime library to link step for libcxx | 4 | Subject: [PATCH] libcxx: Add compiler runtime library to link step for libcxx |
diff --git a/recipes-devtools/clang/clang/0021-clang-llvm-cmake-Fix-configure-for-packages-using-fi.patch b/recipes-devtools/clang/clang/0021-clang-llvm-cmake-Fix-configure-for-packages-using-fi.patch index 0ed15f0..a9cd7a7 100644 --- a/recipes-devtools/clang/clang/0021-clang-llvm-cmake-Fix-configure-for-packages-using-fi.patch +++ b/recipes-devtools/clang/clang/0021-clang-llvm-cmake-Fix-configure-for-packages-using-fi.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 62e0614c52cc2b084d993914451b5290759a1187 Mon Sep 17 00:00:00 2001 | 1 | From 12fe6e45d18add7da95fe637f9e21425330666f9 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] clang,llvm: cmake: Fix configure for packages using | 4 | Subject: [PATCH] clang,llvm: cmake: Fix configure for packages using |
diff --git a/recipes-devtools/clang/clang/0022-clang-Fix-resource-dir-location-for-cross-toolchains.patch b/recipes-devtools/clang/clang/0022-clang-Fix-resource-dir-location-for-cross-toolchains.patch index bd5a3a1..da4e3fe 100644 --- a/recipes-devtools/clang/clang/0022-clang-Fix-resource-dir-location-for-cross-toolchains.patch +++ b/recipes-devtools/clang/clang/0022-clang-Fix-resource-dir-location-for-cross-toolchains.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1dcf3b4cd50bfd75f7530a463f818ff2705fdb60 Mon Sep 17 00:00:00 2001 | 1 | From 6ad331a0e464ee28eac7d0a1c658cd007e831297 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 |
diff --git a/recipes-devtools/clang/clang/0023-fix-path-to-libffi.patch b/recipes-devtools/clang/clang/0023-fix-path-to-libffi.patch index fbf95a6..e22c0bd 100644 --- a/recipes-devtools/clang/clang/0023-fix-path-to-libffi.patch +++ b/recipes-devtools/clang/clang/0023-fix-path-to-libffi.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d45e47dd0d7fe5e8b179557822292fc312a55cfc Mon Sep 17 00:00:00 2001 | 1 | From cbcfe7d13dfc5644c9b8a48e951b43bc15d9f4cf 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: Fri, 3 Apr 2020 15:10:37 +0800 | 3 | Date: Fri, 3 Apr 2020 15:10:37 +0800 |
4 | Subject: [PATCH] fix path to libffi | 4 | Subject: [PATCH] fix path to libffi |
diff --git a/recipes-devtools/clang/clang/0024-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch b/recipes-devtools/clang/clang/0024-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch index 0e64d17..521f06d 100644 --- a/recipes-devtools/clang/clang/0024-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch +++ b/recipes-devtools/clang/clang/0024-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 6c2721a8ee7f15f3035592dfd0d7983369ffd12a Mon Sep 17 00:00:00 2001 | 1 | From 5f3d1b71c3e87017dfa471f1561f6c28f34a77f8 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 |
@@ -18,10 +18,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
18 | 1 file changed, 8 insertions(+), 8 deletions(-) | 18 | 1 file changed, 8 insertions(+), 8 deletions(-) |
19 | 19 | ||
20 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 20 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
21 | index 98f54a935465..cab25988e81a 100644 | 21 | index 604024bb3df4..812599cdaf84 100644 |
22 | --- a/clang/lib/Driver/ToolChains/Linux.cpp | 22 | --- a/clang/lib/Driver/ToolChains/Linux.cpp |
23 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp | 23 | +++ b/clang/lib/Driver/ToolChains/Linux.cpp |
24 | @@ -524,8 +524,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 24 | @@ -515,8 +515,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
25 | LibDir = "lib64"; | 25 | LibDir = "lib64"; |
26 | Loader = | 26 | Loader = |
27 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; | 27 | (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; |
@@ -32,7 +32,7 @@ index 98f54a935465..cab25988e81a 100644 | |||
32 | LibDir = "lib"; | 32 | LibDir = "lib"; |
33 | } | 33 | } |
34 | break; | 34 | break; |
35 | @@ -533,8 +533,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 35 | @@ -524,8 +524,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
36 | LibDir = "lib64"; | 36 | LibDir = "lib64"; |
37 | Loader = | 37 | Loader = |
38 | (tools::ppc::hasPPCAbiArg(Args, "elfv1")) ? "ld64.so.1" : "ld64.so.2"; | 38 | (tools::ppc::hasPPCAbiArg(Args, "elfv1")) ? "ld64.so.1" : "ld64.so.2"; |
@@ -43,7 +43,7 @@ index 98f54a935465..cab25988e81a 100644 | |||
43 | LibDir = "lib"; | 43 | LibDir = "lib"; |
44 | } | 44 | } |
45 | break; | 45 | break; |
46 | @@ -558,8 +558,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 46 | @@ -549,8 +549,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
47 | case llvm::Triple::sparcv9: | 47 | case llvm::Triple::sparcv9: |
48 | LibDir = "lib64"; | 48 | LibDir = "lib64"; |
49 | Loader = "ld-linux.so.2"; | 49 | Loader = "ld-linux.so.2"; |
@@ -54,7 +54,7 @@ index 98f54a935465..cab25988e81a 100644 | |||
54 | LibDir = "lib"; | 54 | LibDir = "lib"; |
55 | } | 55 | } |
56 | break; | 56 | break; |
57 | @@ -576,8 +576,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 57 | @@ -567,8 +567,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
58 | 58 | ||
59 | LibDir = X32 ? "libx32" : "lib64"; | 59 | LibDir = X32 ? "libx32" : "lib64"; |
60 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; | 60 | Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; |
diff --git a/recipes-devtools/clang/clang/0025-clang-Use-python3-in-python-scripts.patch b/recipes-devtools/clang/clang/0025-clang-Use-python3-in-python-scripts.patch index 331737c..defbc8d 100644 --- a/recipes-devtools/clang/clang/0025-clang-Use-python3-in-python-scripts.patch +++ b/recipes-devtools/clang/clang/0025-clang-Use-python3-in-python-scripts.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c308a31dc960830c7c325f85e0840c3f26b01a34 Mon Sep 17 00:00:00 2001 | 1 | From fd3696213eed77e8c217be0ded0e220c0b597f1e 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/recipes-devtools/clang/clang/0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch b/recipes-devtools/clang/clang/0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch index dd5a9a2..801696e 100644 --- a/recipes-devtools/clang/clang/0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch +++ b/recipes-devtools/clang/clang/0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 386cec2c3000b398cb0afe9bf9e9d57f7cdfd4eb Mon Sep 17 00:00:00 2001 | 1 | From 13dedb0bbf780f7d66ddad8b1b33b3a1e0de2d25 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] For x86_64, set Yocto based GCC install search path | 4 | Subject: [PATCH] For x86_64, set Yocto based GCC install search path |
@@ -56,9 +56,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
56 | clang/lib/Driver/ToolChains/Gnu.cpp | 1 + | 56 | clang/lib/Driver/ToolChains/Gnu.cpp | 1 + |
57 | 1 file changed, 1 insertion(+) | 57 | 1 file changed, 1 insertion(+) |
58 | 58 | ||
59 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | ||
60 | index 05d1d3003881..33b1d7fb7061 100644 | ||
59 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp | 61 | --- a/clang/lib/Driver/ToolChains/Gnu.cpp |
60 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp | 62 | +++ b/clang/lib/Driver/ToolChains/Gnu.cpp |
61 | @@ -2109,6 +2109,7 @@ void Generic_GCC::GCCInstallationDetecto | 63 | @@ -2109,6 +2109,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
62 | "x86_64-redhat-linux", "x86_64-suse-linux", | 64 | "x86_64-redhat-linux", "x86_64-suse-linux", |
63 | "x86_64-manbo-linux-gnu", "x86_64-linux-gnu", | 65 | "x86_64-manbo-linux-gnu", "x86_64-linux-gnu", |
64 | "x86_64-slackware-linux", "x86_64-unknown-linux", | 66 | "x86_64-slackware-linux", "x86_64-unknown-linux", |
diff --git a/recipes-devtools/clang/clang/0027-compiler-rt-Include-stddef.h.patch b/recipes-devtools/clang/clang/0027-compiler-rt-Include-stddef.h.patch index cde8e73..3bd41ea 100644 --- a/recipes-devtools/clang/clang/0027-compiler-rt-Include-stddef.h.patch +++ b/recipes-devtools/clang/clang/0027-compiler-rt-Include-stddef.h.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From cea47d9b88c94d1daf7d4c579e6ca4f9c72dc874 Mon Sep 17 00:00:00 2001 | 1 | From f5367ee64b6e74039c0957e1f7d81dc8d597804d 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, 6 Feb 2021 12:44:30 -0800 | 3 | Date: Sat, 6 Feb 2021 12:44:30 -0800 |
4 | Subject: [PATCH] compiler-rt: Include stddef.h | 4 | Subject: [PATCH] compiler-rt: Include stddef.h |
diff --git a/recipes-devtools/clang/clang/0028-llvm-Do-not-use-find_library-for-ncurses.patch b/recipes-devtools/clang/clang/0028-llvm-Do-not-use-find_library-for-ncurses.patch index 46898ad..ef9b2ed 100644 --- a/recipes-devtools/clang/clang/0028-llvm-Do-not-use-find_library-for-ncurses.patch +++ b/recipes-devtools/clang/clang/0028-llvm-Do-not-use-find_library-for-ncurses.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From dcb04ae498c16f90b3a4376ad5674156c3ec0dc6 Mon Sep 17 00:00:00 2001 | 1 | From 6660c7d48601df4276fb3f51156c96fff103fb79 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, 7 Feb 2021 23:58:41 -0800 | 3 | Date: Sun, 7 Feb 2021 23:58:41 -0800 |
4 | Subject: [PATCH] llvm: Do not use find_library for ncurses | 4 | Subject: [PATCH] llvm: Do not use find_library for ncurses |
diff --git a/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch b/recipes-devtools/clang/clang/0029-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch index 5e4bc95..a9658b3 100644 --- a/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch +++ b/recipes-devtools/clang/clang/0029-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 74beba7c8edee65e123b034cb2a28515f8e22eb8 Mon Sep 17 00:00:00 2001 | 1 | From 7bc8252aff944f2efeaad92c431b1f1c5cf606b1 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, 11 Feb 2021 16:42:49 -0800 | 3 | Date: Thu, 11 Feb 2021 16:42:49 -0800 |
4 | Subject: [PATCH] llvm: Recognize yoe and poky as OE distro | 4 | Subject: [PATCH] llvm: Insert anchor for adding OE distro vendor names |
5 | 5 | ||
6 | This helps in making right detection for OE built gcc toolchains | 6 | This helps in making right detection for OE built gcc toolchains |
7 | 7 | ||
@@ -9,20 +9,20 @@ The //CLANG_EXTRA_OE_VENDORS_CASES string is replaced with list of | |||
9 | additional Ceses based on CLANG_EXTRA_OE_VENDORS variable in | 9 | additional Ceses based on CLANG_EXTRA_OE_VENDORS variable in |
10 | recipes-devtools/clang/llvm-project-source.inc:add_more_target_vendors() | 10 | recipes-devtools/clang/llvm-project-source.inc:add_more_target_vendors() |
11 | 11 | ||
12 | Upstream-Status: Inappropriate [OE-specific] | ||
13 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | 15 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> |
14 | |||
15 | Add wrs | ||
16 | Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> | ||
17 | --- | 16 | --- |
18 | llvm/lib/Support/Triple.cpp | 3 +++ | 17 | llvm/lib/Support/Triple.cpp | 2 +- |
19 | 1 file changed, 3 insertions(+) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
20 | 19 | ||
21 | diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp | 20 | diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp |
22 | index 4f483c965282..abd181759786 100644 | 21 | index 4f483c965282..ffd20d223133 100644 |
23 | --- a/llvm/lib/Support/Triple.cpp | 22 | --- a/llvm/lib/Support/Triple.cpp |
24 | +++ b/llvm/lib/Support/Triple.cpp | 23 | +++ b/llvm/lib/Support/Triple.cpp |
25 | @@ -490,6 +490,6 @@ static Triple::VendorType parseVendor(StringRef VendorName) { | 24 | @@ -489,7 +489,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { |
25 | .Case("amd", Triple::AMD) | ||
26 | .Case("mesa", Triple::Mesa) | 26 | .Case("mesa", Triple::Mesa) |
27 | .Case("suse", Triple::SUSE) | 27 | .Case("suse", Triple::SUSE) |
28 | - .Case("oe", Triple::OpenEmbedded) | 28 | - .Case("oe", Triple::OpenEmbedded) |
diff --git a/recipes-devtools/clang/clang/0030-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch b/recipes-devtools/clang/clang/0030-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch new file mode 100644 index 0000000..8093de0 --- /dev/null +++ b/recipes-devtools/clang/clang/0030-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 4d51447a11ee6796594fd55718ea62575ecebc78 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 27 Nov 2020 10:11:08 +0000 | ||
4 | Subject: [PATCH] AsmMatcherEmitter: sort ClassInfo lists by name as well | ||
5 | |||
6 | Otherwise, there are instances which are identical in | ||
7 | every other field and therefore sort non-reproducibly | ||
8 | (which breaks binary and source reproducibiliy). | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 5 ++++- | ||
15 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp | ||
18 | index 9d304910ba4e..d1b50b04fc71 100644 | ||
19 | --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp | ||
20 | +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp | ||
21 | @@ -359,7 +359,10 @@ public: | ||
22 | // name of a class shouldn't be significant. However, some of the backends | ||
23 | // accidentally rely on this behaviour, so it will have to stay like this | ||
24 | // until they are fixed. | ||
25 | - return ValueName < RHS.ValueName; | ||
26 | + if (ValueName != RHS.ValueName) | ||
27 | + return ValueName < RHS.ValueName; | ||
28 | + // All else being equal, we should sort by name, for source and binary reproducibility | ||
29 | + return Name < RHS.Name; | ||
30 | } | ||
31 | }; | ||
32 | |||
diff --git a/recipes-devtools/clang/clang/0030-compiler-rt-Use-mcr-based-barrier-on-armv6.patch b/recipes-devtools/clang/clang/0031-compiler-rt-Use-mcr-based-barrier-on-armv6.patch index 458dbcc..1f3af25 100644 --- a/recipes-devtools/clang/clang/0030-compiler-rt-Use-mcr-based-barrier-on-armv6.patch +++ b/recipes-devtools/clang/clang/0031-compiler-rt-Use-mcr-based-barrier-on-armv6.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 97123bf7bc7cc2a55c3dfb5006be5dd66c46d790 Mon Sep 17 00:00:00 2001 | 1 | From 4f45514fb8841a08d8d3bb68d9cb84b607e652f2 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, 24 Mar 2021 00:32:09 -0700 | 3 | Date: Wed, 24 Mar 2021 00:32:09 -0700 |
4 | Subject: [PATCH] compiler-rt: Use mcr based barrier on armv6 | 4 | Subject: [PATCH] compiler-rt: Use mcr based barrier on armv6 |
@@ -69,6 +69,3 @@ index f6ce6a9fccff..5c6cd9376ac4 100644 | |||
69 | #if defined(USE_THUMB_2) | 69 | #if defined(USE_THUMB_2) |
70 | #define WIDE(op) op.w | 70 | #define WIDE(op) op.w |
71 | #else | 71 | #else |
72 | -- | ||
73 | 2.31.0 | ||
74 | |||
diff --git a/recipes-devtools/clang/clang/0032-clang-Switch-defaults-to-dwarf-5-debug-info-on-Linux.patch b/recipes-devtools/clang/clang/0032-clang-Switch-defaults-to-dwarf-5-debug-info-on-Linux.patch new file mode 100644 index 0000000..a022a71 --- /dev/null +++ b/recipes-devtools/clang/clang/0032-clang-Switch-defaults-to-dwarf-5-debug-info-on-Linux.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 1d07b3e71bf073da0a25b30efb135adaa876e3df Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 15 Apr 2021 18:58:07 -0700 | ||
4 | Subject: [PATCH] clang: Switch defaults to dwarf-5 debug info on Linux | ||
5 | |||
6 | GCC 11 has defaulted to DWARF-5 as well, this matches | ||
7 | debug info formats, so mix and match of components with GCC 11 | ||
8 | works. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | clang/lib/Driver/ToolChains/Linux.h | 2 ++ | ||
14 | 1 file changed, 2 insertions(+) | ||
15 | |||
16 | diff --git a/clang/lib/Driver/ToolChains/Linux.h b/clang/lib/Driver/ToolChains/Linux.h | ||
17 | index 582d4bef81df..82c9494c744e 100644 | ||
18 | --- a/clang/lib/Driver/ToolChains/Linux.h | ||
19 | +++ b/clang/lib/Driver/ToolChains/Linux.h | ||
20 | @@ -58,6 +58,8 @@ public: | ||
21 | const llvm::opt::ArgList &DriverArgs, const JobAction &JA, | ||
22 | const llvm::fltSemantics *FPType = nullptr) const override; | ||
23 | |||
24 | + unsigned GetDefaultDwarfVersion() const override { return 5; } | ||
25 | + | ||
26 | protected: | ||
27 | Tool *buildAssembler() const override; | ||
28 | Tool *buildLinker() const override; | ||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 9de7674..e211258 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -37,8 +37,10 @@ SRC_URI = "\ | |||
37 | file://0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ | 37 | file://0026-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ |
38 | file://0027-compiler-rt-Include-stddef.h.patch \ | 38 | file://0027-compiler-rt-Include-stddef.h.patch \ |
39 | file://0028-llvm-Do-not-use-find_library-for-ncurses.patch \ | 39 | file://0028-llvm-Do-not-use-find_library-for-ncurses.patch \ |
40 | file://0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch \ | 40 | file://0029-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch \ |
41 | file://0030-compiler-rt-Use-mcr-based-barrier-on-armv6.patch \ | 41 | file://0030-AsmMatcherEmitter-sort-ClassInfo-lists-by-name-as-we.patch \ |
42 | file://0031-compiler-rt-Use-mcr-based-barrier-on-armv6.patch \ | ||
43 | file://0032-clang-Switch-defaults-to-dwarf-5-debug-info-on-Linux.patch \ | ||
42 | " | 44 | " |
43 | # Fallback to no-PIE if not set | 45 | # Fallback to no-PIE if not set |
44 | GCCPIE ??= "" | 46 | GCCPIE ??= "" |