[0/1] Add LoongArch64 support for D frontend

Message ID 20230923233056.1879184-1-liushuyu011@gmail.com
Headers
Series Add LoongArch64 support for D frontend |

Message

liushuyu Sept. 23, 2023, 11:30 p.m. UTC
  From: Zixing Liu <liushuyu011@gmail.com>

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