diff --git a/0001-PATCH-Reorganize-gtest-integration.patch b/0001-PATCH-Reorganize-gtest-integration.patch index 5a5b981..3e106af 100644 --- a/0001-PATCH-Reorganize-gtest-integration.patch +++ b/0001-PATCH-Reorganize-gtest-integration.patch @@ -1,4 +1,4 @@ -From 326e01b344b31c0c62411d9166fe380aad7d9f89 Mon Sep 17 00:00:00 2001 +From 9b7d416443e602b5c36150c31ba42230e01f5301 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 25 Feb 2021 14:04:52 +0100 Subject: [PATCH] Reorganize gtest integration diff --git a/0002-PATCH-ToolChain-Add-lgcc_s-to-the-linker-flags-when-.patch b/0002-PATCH-ToolChain-Add-lgcc_s-to-the-linker-flags-when-.patch index 5184c0f..964e654 100644 --- a/0002-PATCH-ToolChain-Add-lgcc_s-to-the-linker-flags-when-.patch +++ b/0002-PATCH-ToolChain-Add-lgcc_s-to-the-linker-flags-when-.patch @@ -1,4 +1,4 @@ -From a0e43f806808b21b06b44143685ed51f791f5081 Mon Sep 17 00:00:00 2001 +From 229ed12bb804915057b91013bc992c4c67e65b17 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 25 Feb 2021 14:08:28 +0100 Subject: [PATCH] ToolChain: Add -lgcc_s to the linker flags when using libc++ @@ -12,10 +12,10 @@ provides this implementation. 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp -index f4415a30..8a497bb 100644 +index d45a9004..991ad56 100644 --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp -@@ -967,6 +967,7 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args, +@@ -968,6 +968,7 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args, switch (Type) { case ToolChain::CST_Libcxx: CmdArgs.push_back("-lc++"); diff --git a/0003-PATCH-Make-funwind-tables-the-default-on-all-archs.patch b/0003-PATCH-Make-funwind-tables-the-default-on-all-archs.patch index 5bfac53..3291e20 100644 --- a/0003-PATCH-Make-funwind-tables-the-default-on-all-archs.patch +++ b/0003-PATCH-Make-funwind-tables-the-default-on-all-archs.patch @@ -1,4 +1,4 @@ -From 7de6b97c2747f25d55941f69579ab1d24c73c8be Mon Sep 17 00:00:00 2001 +From bdd9030dcca211f5a255cae5d6c132c0ae53d789 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 25 Feb 2021 14:09:29 +0100 Subject: [PATCH] Make -funwind-tables the default on all archs @@ -9,10 +9,10 @@ Subject: [PATCH] Make -funwind-tables the default on all archs 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp -index 8a497bb..f0d5ae5 100644 +index 991ad56..0926e68 100644 --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp -@@ -258,7 +258,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const { +@@ -259,7 +259,7 @@ std::string ToolChain::getInputFilename(const InputInfo &Input) const { } bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const { @@ -22,10 +22,10 @@ index 8a497bb..f0d5ae5 100644 Tool *ToolChain::getClang() const { diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp -index ae848cf..fc07dfd 100644 +index e0fcabc..47fef16 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp -@@ -2778,7 +2778,7 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const { +@@ -2815,7 +2815,7 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const { case llvm::Triple::x86_64: return true; default: diff --git a/0004-PATCH-Don-t-install-static-libraries.patch b/0004-PATCH-Don-t-install-static-libraries.patch index cadbc9b..fb0f0f9 100644 --- a/0004-PATCH-Don-t-install-static-libraries.patch +++ b/0004-PATCH-Don-t-install-static-libraries.patch @@ -1,4 +1,4 @@ -From 7fde709b988a3a880d9b71825e204dac443f658e Mon Sep 17 00:00:00 2001 +From 66afc2320251cdc0647e27bcc84e3ca8ed9c93a1 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 31 Jan 2020 11:04:57 -0800 Subject: [PATCH] Don't install static libraries diff --git a/0005-PATCH-Prefer-gcc-toolchains-with-libgcc_s.so-when-no.patch b/0005-PATCH-Prefer-gcc-toolchains-with-libgcc_s.so-when-no.patch index 7d5a98c..579d462 100644 --- a/0005-PATCH-Prefer-gcc-toolchains-with-libgcc_s.so-when-no.patch +++ b/0005-PATCH-Prefer-gcc-toolchains-with-libgcc_s.so-when-no.patch @@ -1,4 +1,4 @@ -From 76b8995180437856e7df69982b03db3a9d31779b Mon Sep 17 00:00:00 2001 +From 8bddda88449a9deeb21e2813cb8ff1a5e944b18b Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 23 Sep 2020 12:47:30 +0000 Subject: [PATCH] Prefer gcc toolchains with libgcc_s.so when not static @@ -33,10 +33,10 @@ toolchain. create mode 100644 clang/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp -index fc07dfd..f405033 100644 +index 47fef16..2a2ee70 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp -@@ -2603,6 +2603,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( +@@ -2640,6 +2640,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( TargetTriple.getVendor() == llvm::Triple::Freescale || TargetTriple.getVendor() == llvm::Triple::OpenEmbedded}}; @@ -45,7 +45,7 @@ index fc07dfd..f405033 100644 for (auto &Suffix : Suffixes) { if (!Suffix.Active) continue; -@@ -2620,8 +2622,17 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( +@@ -2657,8 +2659,17 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( continue; // Saw this path before; no need to look at it again. if (CandidateVersion.isOlderThan(4, 1, 1)) continue; @@ -65,7 +65,7 @@ index fc07dfd..f405033 100644 if (!ScanGCCForMultilibs(TargetTriple, Args, LI->path(), NeedsBiarchSuffix)) -@@ -2635,6 +2646,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( +@@ -2672,6 +2683,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str(); GCCParentLibPath = (GCCInstallPath + "/../" + Suffix.ReversePath).str(); IsValid = true; diff --git a/0006-PATCH-Driver-Add-a-gcc-equivalent-triple-to-the-list.patch b/0006-PATCH-Driver-Add-a-gcc-equivalent-triple-to-the-list.patch index dccf2c3..5898c1f 100644 --- a/0006-PATCH-Driver-Add-a-gcc-equivalent-triple-to-the-list.patch +++ b/0006-PATCH-Driver-Add-a-gcc-equivalent-triple-to-the-list.patch @@ -1,4 +1,4 @@ -From 0e04cfcbf4dd434821647d337175a9edbe77294b Mon Sep 17 00:00:00 2001 +From 0ec47f7744649e8e8be0055c3390422cf149ffc0 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 11 Nov 2021 10:58:14 +0100 Subject: [PATCH] Driver: Add a gcc equivalent triple to the list of triples to @@ -15,10 +15,10 @@ https://reviews.llvm.org/D111207 1 file changed, 22 insertions(+) diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp -index f405033..e2f4747 100644 +index 2a2ee70..ed5bda4 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp -@@ -1941,6 +1941,18 @@ static llvm::StringRef getGCCToolchainDir(const ArgList &Args, +@@ -1978,6 +1978,18 @@ static llvm::StringRef getGCCToolchainDir(const ArgList &Args, return GCC_INSTALL_PREFIX; } @@ -37,7 +37,7 @@ index f405033..e2f4747 100644 /// Initialize a GCCInstallationDetector from the driver. /// /// This performs all of the autodetection and sets up the various paths. -@@ -1961,6 +1973,16 @@ void Generic_GCC::GCCInstallationDetector::init( +@@ -1998,6 +2010,16 @@ void Generic_GCC::GCCInstallationDetector::init( // The compatible GCC triples for this particular architecture. SmallVector CandidateTripleAliases; SmallVector CandidateBiarchTripleAliases; diff --git a/0007-PATCH-Work-around-gcc-miscompile.patch b/0007-PATCH-Work-around-gcc-miscompile.patch index efe4e5e..d53928c 100644 --- a/0007-PATCH-Work-around-gcc-miscompile.patch +++ b/0007-PATCH-Work-around-gcc-miscompile.patch @@ -1,4 +1,4 @@ -From cc36382f5bc482ad65b1ea453871b23b1f61cd80 Mon Sep 17 00:00:00 2001 +From 9cfd393d5a811190faa696040f4dbcf37b65e06e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 3 Feb 2022 10:34:44 +0100 Subject: [PATCH] Work around gcc miscompile diff --git a/0008-PATCH-cmake-Allow-shared-libraries-to-customize-the-.patch b/0008-PATCH-cmake-Allow-shared-libraries-to-customize-the-.patch index 4d734e0..5a5262f 100644 --- a/0008-PATCH-cmake-Allow-shared-libraries-to-customize-the-.patch +++ b/0008-PATCH-cmake-Allow-shared-libraries-to-customize-the-.patch @@ -1,4 +1,4 @@ -From 500812bc24411e667ff6a846712d7882074ee819 Mon Sep 17 00:00:00 2001 +From 86466e49127b8d712a78c83d7c90017365e8a9a3 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 4 Aug 2021 14:05:38 -0700 Subject: [PATCH] cmake: Allow shared libraries to customize the soname using diff --git a/0009-PATCH-Revert-replace-clang-LLVM_ENABLE_PLUGINS-CLANG.patch b/0009-PATCH-Revert-replace-clang-LLVM_ENABLE_PLUGINS-CLANG.patch index 1efaf64..109ee44 100644 --- a/0009-PATCH-Revert-replace-clang-LLVM_ENABLE_PLUGINS-CLANG.patch +++ b/0009-PATCH-Revert-replace-clang-LLVM_ENABLE_PLUGINS-CLANG.patch @@ -1,4 +1,4 @@ -From bc7afd8bd6be97558152de8b0fb4ddd10fdc39b6 Mon Sep 17 00:00:00 2001 +From ee281f26a416d9d293621ed8a9a114a2c0e312f1 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 16 Feb 2022 16:31:51 -0800 Subject: [PATCH] Revert "replace clang LLVM_ENABLE_PLUGINS ->