[v3,0/3] LoongArch D support

Message ID 20231201100827.227376-1-yangyujie@loongson.cn
Headers
Series LoongArch D support |

Message

Yang Yujie Dec. 1, 2023, 10:08 a.m. UTC
  This patchset is based on Zixing Liu's initial support patch:
https://gcc.gnu.org/pipermail/gcc-patches/2023-September/631260.html

Update v1 -> v3:
Rebased onto the dmd/druntime upstream state.

Regtested on loongarch64-linux-gnu with the following result:

                === libphobos Summary ===

FAIL: libphobos.config/test22523.d -- --DRT-testmode=run-main execution test
FAIL: libphobos.gc/precisegc.d execution test
FAIL: libphobos.phobos/std/datetime/systime.d (test for excess errors)
UNRESOLVED: libphobos.phobos/std/datetime/systime.d compilation failed to produce executable
UNSUPPORTED: libphobos.phobos/std/net/curl.d: skipped test
UNSUPPORTED: libphobos.phobos_shared/std/net/curl.d: skipped test
FAIL: libphobos.shared/loadDR.c -ldl -pthread -g execution test (out-of-tree testing)

# of expected passes            1024
# of unexpected failures        4
# of unresolved testcases       1
# of unsupported tests          2

                === gdc Summary ===

FAIL: gdc.test/runnable/testaa.d   execution test
FAIL: gdc.test/runnable/testaa.d -fPIC   execution test

# of expected passes            10353
# of unexpected failures        2
# of unsupported tests          631


Yang Yujie (3):
  LoongArch: Adjust D version strings.
  libphobos: Update build scripts for LoongArch64.
  libruntime: Add fiber context switch code for LoongArch.

 gcc/config/loongarch/loongarch-d.cc           |  27 ++--
 gcc/d/dmd/cond.d                              |   6 +-
 gcc/d/implement-d.texi                        |   6 +
 libphobos/configure                           |  21 ++-
 libphobos/libdruntime/Makefile.am             |   3 +
 libphobos/libdruntime/Makefile.in             |  98 ++++++++-----
 .../config/loongarch/switchcontext.S          | 133 ++++++++++++++++++
 libphobos/m4/druntime/cpu.m4                  |   5 +
 8 files changed, 243 insertions(+), 56 deletions(-)
 create mode 100644 libphobos/libdruntime/config/loongarch/switchcontext.S