-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from sailfishos/jb58952
[llvm] Update llvm and clang to 14.0.6. JB#58952
- Loading branch information
Showing
9 changed files
with
164 additions
and
121 deletions.
There are no files selected for viewing
Submodule llvm
updated
from ef32c6 to f28c00
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
rpm/0001-ToolChain-Add-lgcc_s-to-the-linker-flags-when-using-.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Ruben De Smet <ruben.de.smet@rubdos.be> | ||
Date: Sun, 26 Jun 2022 10:41:44 +0200 | ||
Subject: [PATCH] Add Triple::isMeeGo() | ||
|
||
--- | ||
llvm/include/llvm/ADT/Triple.h | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h | ||
index 9e36dfd4d2d5..8e66888615ff 100644 | ||
--- a/llvm/include/llvm/ADT/Triple.h | ||
+++ b/llvm/include/llvm/ADT/Triple.h | ||
@@ -657,6 +657,9 @@ public: | ||
/// Tests whether the target is Android | ||
bool isAndroid() const { return getEnvironment() == Triple::Android; } | ||
|
||
+ /// Tests whether the target is Meego/SailfishOS | ||
+ bool isMeeGo() const { return getVendor() == Triple::MeeGo; } | ||
+ | ||
bool isAndroidVersionLT(unsigned Major) const { | ||
assert(isAndroid() && "Not an Android triple!"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Ruben De Smet <ruben.de.smet@rubdos.be> | ||
Date: Sun, 26 Jun 2022 10:42:13 +0200 | ||
Subject: [PATCH] Disable out-of-line atomics on MeeGo | ||
|
||
--- | ||
clang/lib/Driver/ToolChains/Linux.cpp | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | ||
index e7c2dcaef02a..9b377eca9dc8 100644 | ||
--- a/clang/lib/Driver/ToolChains/Linux.cpp | ||
+++ b/clang/lib/Driver/ToolChains/Linux.cpp | ||
@@ -672,6 +672,8 @@ bool Linux::IsAArch64OutlineAtomicsDefault(const ArgList &Args) const { | ||
// and libgcc since 9.3.1 | ||
assert(getTriple().isAArch64() && "expected AArch64 target!"); | ||
ToolChain::RuntimeLibType RtLib = GetRuntimeLibType(Args); | ||
+ if (getTriple().isMeeGo()) | ||
+ return false; | ||
if (RtLib == ToolChain::RLT_CompilerRT) | ||
return true; | ||
assert(RtLib == ToolChain::RLT_Libgcc && "unexpected runtime library type!"); |
Oops, something went wrong.