Message ID | a2a9634b-e748-42d9-9808-65b09b49713c@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 r8csp409563vqu; Sat, 23 Sep 2023 16:21:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYGkFGuIJnLvjWsyYxDQgH0lTZHhnzqsR6mcP5sDTI1gKFLyOIf/A+cNoSIarV71L2fpJk X-Received: by 2002:a05:6402:2036:b0:533:87c9:4a7d with SMTP id ay22-20020a056402203600b0053387c94a7dmr2606400edb.35.1695511311271; Sat, 23 Sep 2023 16:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695511311; cv=none; d=google.com; s=arc-20160816; b=lrY1lIfr2S62MmjCJMsXAVgTNLmDxW/j8UHxE8PgwyWuaLfWRz79DnM3KxGtK9Apoz he7pN0TdpOffP2Up5bHB3P/TXQWv9c27yNSvfuQQnk699M4JBaghDBNIvBq4ikWVLcWl oU+Gcgr+PjjKTk4ZNIo67yJykIcs5rzxWEVwrv+TOzIHat7vxLiNzVlSN8TYpeNtO3jW vNLeOYQwBS/dT9DOaIE9SopKJJnbfszqoMvDJsexnT5ixu2CfbAiFv67JbVNuT5yq3mU z+mQj1HP0StMCRIA5wBnsZh+5DG9Zl4poNuSSCOB0Un8tDJltxSqskh1HPjLZo+yF6vG ChHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:content-language:references:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature:dmarc-filter :delivered-to; bh=2Steq67FLZ6jW473N9FRPxbhm0l71NyjBPTZ3svALX8=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=R/iMKmYaSyvWFBB2zGREwAZIa+kAjuGT0nZtV0yzW6tJO6BJ30bfQKP0qQyv7VQZYZ wAAkWc+l2pFB6IhJGLJcVDKKLFxIb2bdrLSnigvyVFfulXD+p03wTts8SIPsnbpkGwgD 2FUCTv0IqaXgfIn/7Sz2UWaqCmm1WMeit1F/q93av0conQvBT6Lwp1C7+wus90ISSlGZ t9qcIP5xCJV1wTDB+HeXOI0o54AjfymxGSEQd+Wvy/2HbNmmoOPUBUz9yvPK+zJQdHKU NJJq8sraeLr3//n3a7BBwOnROVjvHIy+n/Yb80zI458zS2g2n23y+oz6Pp3P2xAjx8ew 70WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JYwnKscr; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o10-20020a056402038a00b005330b2d1902si6429313edv.478.2023.09.23.16.21.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 16:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JYwnKscr; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 98705385C6EE for <ouuuleilei@gmail.com>; Sat, 23 Sep 2023 23:21:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 749D03858CDB for <gcc-patches@gcc.gnu.org>; Sat, 23 Sep 2023 23:21:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 749D03858CDB 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-x634.google.com with SMTP id d9443c01a7336-1c4456d595cso7534725ad.1 for <gcc-patches@gcc.gnu.org>; Sat, 23 Sep 2023 16:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695511260; x=1696116060; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:reply-to:subject:from:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=2Steq67FLZ6jW473N9FRPxbhm0l71NyjBPTZ3svALX8=; b=JYwnKscrgBO/M0FewNNP8n+VEmAqZCuFQjTA6YIPhauyxpmYCoQ7nZnW/xNa7UX7Av 0C7SgUkkTBoeyOS3mlWT36zmMpDTplguMwcCmK9Dm3b1XfiUa0/eeG2wG8VHYpNk34G9 /5kBlE6Ubq2FuAjpLbckxtaLtZGVfE9RPwNzFY4O6BtsGU2kfxewtUIBkghx3A078C4X lM/gqHW0MTlPkjGgQDrS8JFE7mOPnkf1WHdMwp3/4KIt9bFmMHBI/AT2Gr643ewrw8R9 0Tq2TFqDanvbocdytXnCCdj4n0YK0Fbs4EyOW9XCtM2twwsvQMlEux+2EO91IpKfFXk4 08hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695511260; x=1696116060; h=content-transfer-encoding:in-reply-to:content-language:references :to:reply-to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2Steq67FLZ6jW473N9FRPxbhm0l71NyjBPTZ3svALX8=; b=Z1gHCwRbd1mrbbLkoX902Sond4mxbrZaQxQ+buT1SSSjrOvZRUR5iuxLqfjMbEiJEr /WnQvp9cVtanttX5VbphzUlGUpBdY/8Zjz71Fuv+HSCBnPH2N6WJDEnGhMp9wUIT+5BN orwULpxxCUkOT0cK2hGP4tsC7LMKs7XPFCHZaV8HhyZrlJhVViZ+a3No/chkZ25817/5 KWlQtkUJN+UlUPePqlUq6rKIcYKGHM+Yt2oke99sM949bi3E5KJjdTCAZjhjquz/kfYf a2oaT59My0BN/ssuyfQOHddygc08ZXj2x+RI4VmrnQYjyBSDaxNf3V+h4Z8tNdfMq0/H pH+A== X-Gm-Message-State: AOJu0Yw5GrKrxGcLQoe+dZitzUWn4Xl57bum++aYa+rrgfZGvVv4Rr0p x3uEeReh+DWfaDm6YQs9ljVNsqbhFraokA== X-Received: by 2002:a17:902:f548:b0:1c0:bf60:ba82 with SMTP id h8-20020a170902f54800b001c0bf60ba82mr4073593plf.5.1695511259916; Sat, 23 Sep 2023 16:20:59 -0700 (PDT) Received: from ?IPV6:2001:56a:fa55:2000:5f51:4954:51e1:8176? ([2001:56a:fa55:2000:5f51:4954:51e1:8176]) by smtp.gmail.com with ESMTPSA id jh5-20020a170903328500b001bb9bc8d232sm5896003plb.61.2023.09.23.16.20.59 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Sep 2023 16:20:59 -0700 (PDT) Message-ID: <a2a9634b-e748-42d9-9808-65b09b49713c@gmail.com> Date: Sat, 23 Sep 2023 17:20:58 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: liushuyu <liushuyu011@gmail.com> Subject: [PATCH 0/1] Add LoongArch64 support for D frontend To: gcc-patches@gcc.gnu.org References: <> Content-Language: en-US In-Reply-To: <> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, FREEMAIL_REPLYTO_END_DIGIT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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> Reply-To: Zixing Liu <liushuyu011@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777872468402649912 X-GMAIL-MSGID: 1777872468402649912 |
Series |
Add LoongArch64 support for D frontend
|
|
Message
liushuyu
Sept. 23, 2023, 11:20 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. 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