From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 86F643858CDA for ; Mon, 25 Sep 2023 10:04:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 86F643858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8BxNuhAWxFl4ycsAA--.30810S3; Mon, 25 Sep 2023 18:04:48 +0800 (CST) Received: from 3a5000 (unknown [192.168.100.1]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxPC89WxFlCmIRAA--.1807S2; Mon, 25 Sep 2023 18:04:46 +0800 (CST) Date: Mon, 25 Sep 2023 18:04:46 +0800 From: Yang Yujie To: Zixing Liu Cc: gcc-patches@gcc.gnu.org, Iain Buclaw Subject: Re: [PATCH v2 0/1] Add LoongArch64 support for D frontend Message-ID: References: <20230924214038.30221-1-liushuyu011@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230924214038.30221-1-liushuyu011@gmail.com> X-CM-TRANSID:AQAAf8DxPC89WxFlCmIRAA--.1807S2 Authentication-Results: localhost.localdomain; spf=neutral smtp.mail=y angyujie@loongson.cn; X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Zr1fKr4rJw1fJFy3Wr1fZrc_yoW8Wr43pF W3uwn8GF48trs3KrsxJ34xXws5Jr93Gry7X3W3tr18CrW5XryDur1Fgr9avFn8u34fAr9F qFyrK3WrWayUAagCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUk0b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv 67AKxVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxAIw28IcxkI7V AKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCj r7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUXVWUAwCIc40Y0x0EwIxGrwCI42IY6x IIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAI w20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x 0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUzku4UUUUU X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Zixing, We are also working on a patch series that could pass the libphobos regression tests. Will post this later once all failed items are fixed. Yujie On Sun, Sep 24, 2023 at 03:40:32PM -0600, Zixing Liu wrote: > 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. > > ------ > > Changes since the last revision of the patch: > > * Corrected copyright years in loongarch-d.cc and loongarch-d.h. > * Removed changes to the tests, the changes have been rolled into the DMD > changes in: > https://github.com/dlang/dmd/pull/15628/commits/eb84b8a2bc86aa751ad6f472422e8abad63ff500 > . > * Removed D_LP32 and D_LP64 bits. Since LoongArch ABIs are somewhat > complicated, we may introduce the ABI information in the form of target > traits in the future. > > Zixing Liu (1): > > gcc/config.gcc | 1 + > gcc/config/loongarch/loongarch-d.cc | 77 ++++++++++++++++++++++ > gcc/config/loongarch/loongarch-d.h | 26 ++++++++ > gcc/config/loongarch/t-loongarch | 4 ++ > libphobos/configure.tgt | 3 + > libphobos/libdruntime/gcc/sections/elf.d | 2 + > libphobos/libdruntime/gcc/unwind/generic.d | 1 + > 7 files changed, 114 insertions(+) > create mode 100644 gcc/config/loongarch/loongarch-d.cc > create mode 100644 gcc/config/loongarch/loongarch-d.h > > -- > 2.42.0