Rebase libphobos RISC-V patch

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2019-02-20 19:39:16 +01:00
parent b1e7b58e21
commit 10f004121d
Signed by: davidlt
GPG Key ID: 7108702C938B13C1
1 changed files with 9 additions and 9 deletions

View File

@ -1,10 +1,10 @@
diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt
index 2b2a97468..f8775b712 100644 index 0471bfd..811fdfa 100644
--- a/libphobos/configure.tgt --- a/libphobos/configure.tgt
+++ b/libphobos/configure.tgt +++ b/libphobos/configure.tgt
@@ -30,6 +30,8 @@ case "${target}" in @@ -32,6 +32,8 @@ case "${target}" in
;; ;;
x86_64-*-linux* | i?86-*-linux*) x86_64-*-netbsd* | i?86-*-netbsd*)
;; ;;
+ riscv*-*-linux*) + riscv*-*-linux*)
+ ;; + ;;
@ -12,7 +12,7 @@ index 2b2a97468..f8775b712 100644
UNSUPPORTED=1 UNSUPPORTED=1
;; ;;
diff --git a/libphobos/libdruntime/core/atomic.d b/libphobos/libdruntime/core/atomic.d diff --git a/libphobos/libdruntime/core/atomic.d b/libphobos/libdruntime/core/atomic.d
index 0b39cddb6..5a6c4b854 100644 index 0b39cdd..5a6c4b8 100644
--- a/libphobos/libdruntime/core/atomic.d --- a/libphobos/libdruntime/core/atomic.d
+++ b/libphobos/libdruntime/core/atomic.d +++ b/libphobos/libdruntime/core/atomic.d
@@ -1353,7 +1353,7 @@ else version (GNU) @@ -1353,7 +1353,7 @@ else version (GNU)
@ -43,7 +43,7 @@ index 0b39cddb6..5a6c4b854 100644
static if (T.sizeof == ubyte.sizeof) static if (T.sizeof == ubyte.sizeof)
{ {
diff --git a/libphobos/libdruntime/rt/sections_elf_shared.d b/libphobos/libdruntime/rt/sections_elf_shared.d diff --git a/libphobos/libdruntime/rt/sections_elf_shared.d b/libphobos/libdruntime/rt/sections_elf_shared.d
index 3f43bbd76..587380522 100644 index d4e1ff0..45c1dcb 100644
--- a/libphobos/libdruntime/rt/sections_elf_shared.d --- a/libphobos/libdruntime/rt/sections_elf_shared.d
+++ b/libphobos/libdruntime/rt/sections_elf_shared.d +++ b/libphobos/libdruntime/rt/sections_elf_shared.d
@@ -10,6 +10,9 @@ @@ -10,6 +10,9 @@
@ -56,7 +56,7 @@ index 3f43bbd76..587380522 100644
version (CRuntime_Glibc) enum SharedELF = true; version (CRuntime_Glibc) enum SharedELF = true;
else version (FreeBSD) enum SharedELF = true; else version (FreeBSD) enum SharedELF = true;
else version (NetBSD) enum SharedELF = true; else version (NetBSD) enum SharedELF = true;
@@ -672,7 +675,16 @@ version (Shared) @@ -671,7 +674,16 @@ version (Shared)
if (dyn.d_tag == DT_STRTAB) if (dyn.d_tag == DT_STRTAB)
{ {
version (linux) version (linux)
@ -75,10 +75,10 @@ index 3f43bbd76..587380522 100644
strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate strtab = cast(const(char)*)(info.dlpi_addr + dyn.d_un.d_ptr); // relocate
else version (NetBSD) else version (NetBSD)
diff --git a/libphobos/src/std/experimental/allocator/building_blocks/region.d b/libphobos/src/std/experimental/allocator/building_blocks/region.d diff --git a/libphobos/src/std/experimental/allocator/building_blocks/region.d b/libphobos/src/std/experimental/allocator/building_blocks/region.d
index 80157aee7..ad90d17df 100644 index dfcecce..cafe059 100644
--- a/libphobos/src/std/experimental/allocator/building_blocks/region.d --- a/libphobos/src/std/experimental/allocator/building_blocks/region.d
+++ b/libphobos/src/std/experimental/allocator/building_blocks/region.d +++ b/libphobos/src/std/experimental/allocator/building_blocks/region.d
@@ -390,7 +390,8 @@ struct InSituRegion(size_t size, size_t minAlign = platformAlignment) @@ -391,7 +391,8 @@ struct InSituRegion(size_t size, size_t minAlign = platformAlignment)
else version (PPC) enum growDownwards = Yes.growDownwards; else version (PPC) enum growDownwards = Yes.growDownwards;
else version (PPC64) enum growDownwards = Yes.growDownwards; else version (PPC64) enum growDownwards = Yes.growDownwards;
else version (MIPS32) enum growDownwards = Yes.growDownwards; else version (MIPS32) enum growDownwards = Yes.growDownwards;
@ -89,7 +89,7 @@ index 80157aee7..ad90d17df 100644
else version (SystemZ) enum growDownwards = Yes.growDownwards; else version (SystemZ) enum growDownwards = Yes.growDownwards;
else static assert(0, "Dunno how the stack grows on this architecture."); else static assert(0, "Dunno how the stack grows on this architecture.");
diff --git a/libphobos/src/std/math.d b/libphobos/src/std/math.d diff --git a/libphobos/src/std/math.d b/libphobos/src/std/math.d
index e98e746a8..9fe746501 100644 index e98e746..9fe7465 100644
--- a/libphobos/src/std/math.d --- a/libphobos/src/std/math.d
+++ b/libphobos/src/std/math.d +++ b/libphobos/src/std/math.d
@@ -162,6 +162,8 @@ version (AArch64) version = ARM_Any; @@ -162,6 +162,8 @@ version (AArch64) version = ARM_Any;