Message ID | 20230924214038.30221-1-liushuyu011@gmail.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp849660vqu; Sun, 24 Sep 2023 14:41:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpVqyyW7IDxClsU5hwBv/kgN4CQ5ODudipMIoUp3VqQO9y8qdqC5Kh/eK+aUrl6l6+RdMH X-Received: by 2002:ac2:5298:0:b0:500:9a45:63b with SMTP id q24-20020ac25298000000b005009a45063bmr3646179lfm.13.1695591705442; Sun, 24 Sep 2023 14:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695591705; cv=none; d=google.com; s=arc-20160816; b=mmfe6cDvJo8PMixKlBj1Qy4Jsm1uDg3PECMbfi7KDgbqOkfxPTZADCNnKmJn5XsEv2 vPTwRqH4IAhauf8jWiRRPtCboPf3VNiN7aOW3iLLEbxCxU5irZdpik/F4R5BaM3raMea BvcqLka7euR0DBDEk96IXXJ1jPeqGCp19T/ZLyjzH2k9Tz8Wi2ubnaoQvlJM5SO+BYsa E8e9p+khuZADkKy7rpZFQ6CnsASmaL+UeyCDUbC8Kk4Puy5FPFRLhNQ6pa24tI604ZsK 6A+z8kC+l+yH3iUJbG4Jb77UvIPVHy60WnjMhBX2rRzL0d2sDWwx9RgIE+HgCefJcyvP gJmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=iwe5xwDS0l7Pn4Euq9BZiHjlbk9xnxdr+bkppoDCcUM=; fh=GLhfC6uSoKlQoQFxk4G3p+HuTS5jYh3P8Z+exisoETw=; b=zZP8OevLNAW6emKvQYa1F7otqWkFxO4nPOjF6fXeyt3ioQCtxtYjqW1kF9F8u5XpJC xvfUfjqp+vuCUIDWFlxfEB11qyrem90hANcQdB7PIuEw7tMmXeLa2sKso2JzlUAPWiEu bfMG8suj6qn/Eb4U8NJGS5DJBUXr+iZxx8qqFJR+O+MpEYFEdxuJfZRLHRD3FfW0I/Gf Wu4Av3lezwy5f1wWyGmT+eept02Ecl6Imp5aYwWPGMInGAwqMMFjVo9TV/PZGXVuXtEF 06xXKpMImyCLaxOcGWTjwrSNqkvw9H2w03OePA83hE5+WMQK/1MY83hSy4YiZG54hiKF 9BZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PrqOLysi; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g19-20020a50ee13000000b0053320ab5d77si3775998eds.238.2023.09.24.14.41.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 14:41:45 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PrqOLysi; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F89D385C423 for <ouuuleilei@gmail.com>; Sun, 24 Sep 2023 21:41:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 579793858C5F for <gcc-patches@gcc.gnu.org>; Sun, 24 Sep 2023 21:40:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 579793858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1c5faa2af60so4106195ad.0 for <gcc-patches@gcc.gnu.org>; Sun, 24 Sep 2023 14:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695591655; x=1696196455; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iwe5xwDS0l7Pn4Euq9BZiHjlbk9xnxdr+bkppoDCcUM=; b=PrqOLysizjDX969Jhm01eAmVhtSaZSuspgYTh+LuDaoHxYXUAJMNtBDUXbnXTF5lKP cyKEo0XslmFag0AFXbvKZSxtk/fAcIFa4xqtUUZqCWN0ZGyuas2M9JnAcwKoxs/iyaa+ Lr/r80NVu20d3/Aqx08L/mZs22r7jm4hVHt8ygUnx5e6U5iSA1cjU65AFC1attkV9wbZ H4I1v58pUxBI0rDq11hN4mN+aX7jeIzi9wwmvqGtN4UfB9fEm8rGK6Zj398DLdh6IEu1 h9fzY5hEbWirrr00ioXAzkT5din/RlWlfObNfBa8TG+EY5oW3mQQ+lcL/S4C3e/FveTv JNIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695591655; x=1696196455; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iwe5xwDS0l7Pn4Euq9BZiHjlbk9xnxdr+bkppoDCcUM=; b=s8Yxs08T59LUnZpzdazTeAg82l19wt/5ATXibbTQBrUaJiZ88ur/ZMNUFDHlavrNwZ qayVwiZv45tnvZ3nOb3s06mjLrpNyvdmgO9WuApAtX0msJZ6AvhNTPSntXxtsDWn5PWo 0+oAuzp/4utWfQk6ORaTss2DUxa2BC/YoYKFDLxyaLzw5Lxh7ZmcD9Z5n3AEsrcuCJK3 tdTN16Ofy2cdpSSpoP8KxELOcrC1p4FAw+ewuqPoeVEEQdPEcJGRmcNA0adc5hSmJBIy x4vc3tMe0cRf+Ql131qM7aDKr6hTHaTORxTFAC2h1KaUvEXciltjUwmhRG5EysZUrCDp 91iA== X-Gm-Message-State: AOJu0YwhFji6JdU9amlNQuWGrOnXLSV/sNmHOSu3NbfTLo8nr96vAqTb yHi2P0wx83ch1oD9gMudZe+XWVjXEBRoj7vl X-Received: by 2002:a17:902:d2ce:b0:1c3:8dbe:aecb with SMTP id n14-20020a170902d2ce00b001c38dbeaecbmr7048110plc.2.1695591654697; Sun, 24 Sep 2023 14:40:54 -0700 (PDT) Received: from liushuyu-p15.lan ([2001:56a:fa55:2000:5f51:4954:51e1:8176]) by smtp.gmail.com with ESMTPSA id jc6-20020a17090325c600b001c5de42c185sm1477844plb.253.2023.09.24.14.40.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 14:40:54 -0700 (PDT) From: Zixing Liu <liushuyu011@gmail.com> To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw <ibuclaw@gdcproject.org>, Zixing Liu <liushuyu011@gmail.com> Subject: [PATCH v2 0/1] Add LoongArch64 support for D frontend Date: Sun, 24 Sep 2023 15:40:32 -0600 Message-ID: <20230924214038.30221-1-liushuyu011@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777956768095914102 X-GMAIL-MSGID: 1777956768095914102 |
Series |
Add LoongArch64 support for D frontend
|
|
Message
liushuyu
Sept. 24, 2023, 9:40 p.m. UTC
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
Comments
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
Hi Yujie, Sorry, I did not know Loongson Technologies is also working on this. However, you can jump onto that GitHub pull request to review my changes so that they align with your implementation and nobody's effort would go to waste. Thanks, Zixing On 2023/9/25 04:04, Yang Yujie wrote: > 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