This patch adds the LoongArch64 support for GCC D frontend.
The runtime support is submitted as a separate patch here:
https://github.com/dlang/dmd/pull/15628.
You can find more information about the LoongArch architecture on this
website:
https://loongson.github.io/LoongArch-Documentation/README-EN.html.
Zixing Liu (1):
gcc/d: add LoongArch64 support for D frontend
gcc/config.gcc | 1 +
gcc/config/loongarch/loongarch-d.cc | 82 ++++++++++++++++
gcc/config/loongarch/loongarch-d.h | 26 +++++
gcc/config/loongarch/t-loongarch | 4 +
.../fail_compilation/reserved_version.d | 98 +++++++++++--------
.../reserved_version_switch.d | 12 +++
libphobos/configure.tgt | 3 +
libphobos/libdruntime/gcc/sections/elf.d | 2 +
libphobos/libdruntime/gcc/unwind/generic.d | 1 +
9 files changed, 186 insertions(+), 43 deletions(-)
create mode 100644 gcc/config/loongarch/loongarch-d.cc
create mode 100644 gcc/config/loongarch/loongarch-d.h
--
2.42.0