From patchwork Wed Aug 24 11:59:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: herron.philip@googlemail.com X-Patchwork-Id: 725 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp1391163wro; Wed, 24 Aug 2022 05:20:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yNzh+yRF3q2SkdXEumq8Nj78C8QrLlWMXl8iRJF93b2P/tOKhIJmyFr5AvBnnfNL/MrTg X-Received: by 2002:a17:907:1de8:b0:73d:65a5:e99a with SMTP id og40-20020a1709071de800b0073d65a5e99amr2642037ejc.135.1661343637006; Wed, 24 Aug 2022 05:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661343637; cv=none; d=google.com; s=arc-20160816; b=ym988etoArdJvu/eoJJRE0NtbNikt6XjBKI/FwMxKL39259Dnwp+EqEDpLsDjirtLA FN1qS+erAoINg/ICXmE96IFmcfE+3hdst0TU4/6CnRMyUBt9tn+dibyvVv6URmAmyHON ZIrbOj8tk9b6vZl3V9Watq1IAl/hjDkpJ2LGxP6ohcWdGtj57VY/5lyxCAlJUNWaOtaH K48FJwwDrd1ASKPS2mStKLYe471RYI6LLLMnUod5LGjs5iE7K3kFeZMjEnCzYg3LD4Jg EIyCf3eBZm/qSm+8IB2FTufuvfD1wr2Qe6rdQCkg/FTZ9xNeVwCPKPSoo0FzP31Ov0yB IbBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature:dmarc-filter :delivered-to; bh=PLHaFofDCBIcsZEJ2vDNrxPPfrseoaLObVA5Vu3MuoM=; b=i1rUP1jog31q0Y1ecf6OOqRpElT1RsUCxnPI2SAL3NyntZ1Qx2fGkgd+/62n0QIeUe w/ZdoxEwy4k0+e6T+HMt9dDMu8bND1/61XEwTLQDk8cNdPqgIg/Jh4g1o3os8LKgR5bt JvuoWv3qRLdkfwgm7l0dRJ+PUuHWuX5lXNQamTS55UQXdBxHxB7gqbAYLfsdLM7Ud7hY M2fp5Sofa+RXUU3VcGItB0hjWquHUBZOrv5CZIRCohF7bVq51TFQgnaVx3d8oMHdRjSM X0GgxLWpRjugJGw2UJGSVybxx6EeySXlUp/tn1aStcFm51r4u/AXWURAHtQiZ85XPnE3 BMIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=A85rN9LT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hp8-20020a1709073e0800b0073d83260df4si2157328ejc.672.2022.08.24.05.20.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 05:20:36 -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=@googlemail.com header.s=20210112 header.b=A85rN9LT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 837A53884F19 for ; Wed, 24 Aug 2022 12:07:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 44E6B393BA5E; Wed, 24 Aug 2022 12:01:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 44E6B393BA5E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=googlemail.com Received: by mail-wr1-x436.google.com with SMTP id z16so1691801wrh.10; Wed, 24 Aug 2022 05:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc; bh=PLHaFofDCBIcsZEJ2vDNrxPPfrseoaLObVA5Vu3MuoM=; b=A85rN9LTvfGjlx2drSlpAiVfwAZrZ+6S8bEilfWRvDrYiUKgehJ2qGgxmCzbgUR9jU rqIhPC5V7GlQJkfulj1LTy+JD7ljlChXfLg+WqKV1osQpoD9MHJSmy0le9Tc932kwgs8 MIcKryS7ya6dDYLrG6+Hz7htt4ZotC3kYm7L3pBUbDKZhMFctx+OA4ID6bl4GVM/C1D2 zAdh0tFc7gF2EGeutJOcBpU9pLKAzBcUAjVni5Cre+wR+1d7/N6EcJ+voCYmOhzU9Shg uUS5HH+MTfq2YcFgg8ZDdZIuZ5pBR+4lWlFOnR/cCOwE20cm5Ma/JPyIl/AYlfYOcisQ KZ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=PLHaFofDCBIcsZEJ2vDNrxPPfrseoaLObVA5Vu3MuoM=; b=ICi+tqB9S0LpDYqsEU8YDnTtKtVT5vKBayh7bk9HsNwB6BQaBYxJFJCyfzKTIG6Zo1 AEM5dxYC2edYkXbn9BK6E5DFuu12RL75S2trPIS/zr+Jf4t7qrO+ScFOQleoHpFs0RSL QI1H4EOcQt+1yi+oHQr5+34g5z9RC1vV3bEMSzKmVIzb6FnudBXpDaiiWoothq13z9fm IJq8WFeEMiS4Yr9HiriZemcxkhMGwYHG12w0dhRBtigg+Qj9ZYjbVRzOAthiPpLAurH2 o9V/L3zekcw7zmZwV9Xxoxwl+T448LiHaMGCTPF/Zom2y+tAF7qh7zNTelPD7bTY1vY+ qPUQ== X-Gm-Message-State: ACgBeo0W9p+x8mlZrebEbp/kF0BpAITOW3T0yPajfw1lG2UW4OiANvfU W5lxmg6JE2UYc93NwWqmbm781YgLuq0= X-Received: by 2002:a5d:634e:0:b0:225:3719:3f37 with SMTP id b14-20020a5d634e000000b0022537193f37mr13363796wrw.446.1661342479616; Wed, 24 Aug 2022 05:01:19 -0700 (PDT) Received: from localhost.localdomain ([86.14.124.218]) by smtp.gmail.com with ESMTPSA id cc19-20020a5d5c13000000b0022571d43d32sm1697676wrb.21.2022.08.24.05.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 05:01:19 -0700 (PDT) From: herron.philip@googlemail.com X-Google-Original-From: philip.herron@embecosm.com To: gcc-patches@gcc.gnu.org Subject: [PATCH Rust front-end v2 33/37] gccrs: add lang-spec.h Date: Wed, 24 Aug 2022 12:59:52 +0100 Message-Id: <20220824115956.737931-34-philip.herron@embecosm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220824115956.737931-1-philip.herron@embecosm.com> References: <20220824115956.737931-1-philip.herron@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: philip.herron@embecosm.com Cc: gcc-rust@gcc.gnu.org, Philip Herron Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1742045065565470265?= X-GMAIL-MSGID: =?utf-8?q?1742045065565470265?= From: Philip Herron This specifies the extensions of the Rust language. --- gcc/rust/lang-specs.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gcc/rust/lang-specs.h diff --git a/gcc/rust/lang-specs.h b/gcc/rust/lang-specs.h new file mode 100644 index 00000000000..9b14a559dd6 --- /dev/null +++ b/gcc/rust/lang-specs.h @@ -0,0 +1,26 @@ +/* lang-specs.h -- gcc driver specs for Rust frontend. + Copyright (C) 2009-2022 Free Software Foundation, Inc. + + This file is part of GCC. + + GCC is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 3, or (at your option) any later + version. + + GCC is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with GCC; see the file COPYING3. If not see + . */ + +/* This is the contribution to the `default_compilers' array in gcc.cc + for the Rust language. */ + +{".rs", "@rs", 0, 1, 0}, + {"@rs", + "rust1 %i %(cc1_options) %{I*} %{L*} %D %{!fsyntax-only:%(invoke_as)}", 0, 1, + 0},