From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 ; 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-Google-Smtp-Source: AGHT+IGqcg2ifTCXlbCezg19rcmdzgxe8qiUosfK0ao4N0KG62Mbwqc2AdbWCu19/uymZxk9j5RQrg== 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 To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw , Zixing Liu 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 List-Id: 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