parent
3525e63e50
commit
fb1ab0fdef
@ -1 +1 @@
|
|||||||
SOURCES/ldc-1.32.2-src.tar.gz
|
SOURCES/ldc-1.35.0-src.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
b9f80b7e7c067376c51a5c5ed68f8c602746373c SOURCES/ldc-1.32.2-src.tar.gz
|
b65cd012c58908cf0ada4b16b189adf9658fb549 SOURCES/ldc-1.35.0-src.tar.gz
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
From f3e10a9aee4db798b5ac4a8b5cba9c037dff3faa Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kalev Lember <klember@redhat.com>
|
|
||||||
Date: Mon, 19 Dec 2022 13:58:03 +0100
|
|
||||||
Subject: [PATCH] Revert "Linux: Don't default to ld.gold linker"
|
|
||||||
|
|
||||||
Keep on using ld.gold on RHEL 8 and 9 where using ldc with ld.bfd breaks
|
|
||||||
gtkd and leads to crashing tilix.
|
|
||||||
|
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=2134875
|
|
||||||
|
|
||||||
This reverts commit e125411e988679dfa8cbfc9dcfc05524a37589f7.
|
|
||||||
---
|
|
||||||
driver/linker-gcc.cpp | 20 +++++++++++++++-----
|
|
||||||
1 file changed, 15 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/driver/linker-gcc.cpp b/driver/linker-gcc.cpp
|
|
||||||
index a53936a9aa..5ae90ce650 100644
|
|
||||||
--- a/driver/linker-gcc.cpp
|
|
||||||
+++ b/driver/linker-gcc.cpp
|
|
||||||
@@ -599,12 +599,22 @@ void ArgsBuilder::build(llvm::StringRef outputPath,
|
|
||||||
void ArgsBuilder::addLinker() {
|
|
||||||
llvm::StringRef linker = opts::linker;
|
|
||||||
|
|
||||||
- // Default to ld.bfd for Android (placing .tdata and .tbss sections adjacent
|
|
||||||
- // to each other as required by druntime's rt.sections_android, contrary to
|
|
||||||
- // gold and lld as of Android NDK r21d).
|
|
||||||
- if (global.params.targetTriple->getEnvironment() == llvm::Triple::Android &&
|
|
||||||
+ // We have a default linker preference for Linux targets. It can be disabled
|
|
||||||
+ // via `-linker=` (explicitly empty).
|
|
||||||
+ if (global.params.targetTriple->isOSLinux() &&
|
|
||||||
opts::linker.getNumOccurrences() == 0) {
|
|
||||||
- linker = "bfd";
|
|
||||||
+ // Default to ld.bfd for Android (placing .tdata and .tbss sections adjacent
|
|
||||||
+ // to each other as required by druntime's rt.sections_android, contrary to
|
|
||||||
+ // gold and lld as of Android NDK r21d).
|
|
||||||
+ if (global.params.targetTriple->getEnvironment() == llvm::Triple::Android) {
|
|
||||||
+ linker = "bfd";
|
|
||||||
+ }
|
|
||||||
+ // Otherwise default to ld.gold for Linux due to ld.bfd issues with ThinLTO
|
|
||||||
+ // (see #2278) and older bfd versions stripping llvm.used symbols (e.g.,
|
|
||||||
+ // ModuleInfo refs) with --gc-sections (see #2870).
|
|
||||||
+ else {
|
|
||||||
+ linker = "gold";
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!linker.empty())
|
|
||||||
--
|
|
||||||
2.39.0
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
From 87baf4a6f87c6776ba8f5dad276fb77e32e80065 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kalev Lember <klember@redhat.com>
|
||||||
|
Date: Tue, 17 Oct 2023 10:44:24 +0200
|
||||||
|
Subject: [PATCH] LDC: Fix PPC support to compile without deprecation warnings
|
||||||
|
|
||||||
|
Fixes the following:
|
||||||
|
std/math/hardware.d(929): Deprecation: `asm` statement cannot be marked `@safe`, use `@system` or `@trusted` instead
|
||||||
|
---
|
||||||
|
std/math/hardware.d | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git ldc-1.35.0-src/runtime/phobos/std/math/hardware.d ldc-1.35.0-src/runtime/phobos/std/math/hardware.d
|
||||||
|
index 3e0c2fd6fbb..24fcbb89a63 100644
|
||||||
|
--- ldc-1.35.0-src/runtime/phobos/std/math/hardware.d
|
||||||
|
+++ ldc-1.35.0-src/runtime/phobos/std/math/hardware.d
|
||||||
|
@@ -926,7 +926,7 @@ private:
|
||||||
|
}
|
||||||
|
else version (PPC_Any)
|
||||||
|
{
|
||||||
|
- asm pure nothrow @nogc @safe
|
||||||
|
+ asm pure nothrow @nogc @trusted
|
||||||
|
{
|
||||||
|
`mtfsb0 24
|
||||||
|
mtfsb0 25
|
Loading…
Reference in new issue