From patchwork Tue Dec 6 10:14:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 30223 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2745175wrr; Tue, 6 Dec 2022 02:40:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf766SApnIrg1DtS3/Ys5QGXtWAr7PtxvmuJNfjjeN0iJUpMgv0nhzQcYu4E2/TKYZMJPVT+ X-Received: by 2002:aa7:cac2:0:b0:461:caa4:4ad3 with SMTP id l2-20020aa7cac2000000b00461caa44ad3mr42185965edt.392.1670323226182; Tue, 06 Dec 2022 02:40:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670323226; cv=none; d=google.com; s=arc-20160816; b=jkElDrhOngGvQ1x1ADaOiS05VnfJ42Iit/PYzKlB248Du5hMu141+EzXAv8kkiaYnP KwbhdtDH6DxPVr1jBbIJSwrW+d0czrS+oX2AXuEftyj31zbAxINE7EvBcb28yosrz9dR 7KWdVUyyymfGLfWh1+SM3sPyW2B0279tHsYUH4LmRGEKvyQ1jPs9U6S8Qb68Zqx7R/k3 hRvVLcSs7svofqp2VnwnmiKZv2zdtxC1VFpdzg+Ji0FgTVdx12pwW7VOd7iQDwHc8T6q hes9tZG8abiai7uM3cwlTELbaL1EZSMG4UqYbEK8SN/Tn+KaHBJONhlvdhxZby/JrcB5 SiKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=VpRhON2XcsQQpVhxyXVGvs4Qgg44Sfxw3GN5tCOOzP0=; b=awMAy53Cw/oUr8sAPBe6KMeTCY37ezNdjxKauHsT/eRRhHx1UX2SszKkYCrP2gys+X EQnNmEXwfg/iZmC+yoWNshSbWVVk4B4phKbGlUpClvppGWbKVmpSnDieuwrk9XbP+oBh Mje+3QzsJph5LZ4OQgEA/h13mJOds7aSDFoa0q6KfCik4mvQ/Jg+Ex0oAL2VoZgKtfgr 0/WWUNa7MGAm7NnJYah0XKeiv5EZpRhrwIXJ+8zoM6ASpzQH/1ftClwVhxwqm2hox8Nw 9HQjw262Ro49jt4uuS8wlUhABJHKvcWvXxtj7kNGqsyiONAJtp6ts9RLNdymmvSJOALM 5lYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=EopjqCi8; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id t20-20020a170906179400b007c0e15d36b8si4745211eje.732.2022.12.06.02.40.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 02:40:26 -0800 (PST) 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=@embecosm.com header.s=google header.b=EopjqCi8; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4F4AA3837847 for ; Tue, 6 Dec 2022 10:25:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id F4219396E437 for ; Tue, 6 Dec 2022 10:14:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F4219396E437 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x429.google.com with SMTP id m14so22735833wrh.7 for ; Tue, 06 Dec 2022 02:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=VpRhON2XcsQQpVhxyXVGvs4Qgg44Sfxw3GN5tCOOzP0=; b=EopjqCi8KREzPus7iQfJ0pcYauwXcRgwUBGPs7uKfaXf9cJeq5lnyM6cLAnGbJE0w5 j9SyBp4ZVxpHK6pslZKJ3ZIIfq0Z6a/UXiIaLMZ9Hgxhrrzt+S6DQASKexI1WDRiVX0a GK2zoWc3AUf+T0LgHHCSNnVy1mYmGIJprR1uR7GaiYYXyltt+tifeduwmabyknJgFP+x dR8Il/aCiz9z3Fj/g7nEOESPzGg26kKQiHuyuP0bCS63l/6/VNmTasswfcOS382I4WLi eXOpolZGgvYidpAnjzWZbKUwBnXQcGxVkU2oKlGUykKcA/VBni1bbeK6nSmA0Y3QUg0z 5p+w== 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:subject:date:message-id:reply-to; bh=VpRhON2XcsQQpVhxyXVGvs4Qgg44Sfxw3GN5tCOOzP0=; b=Iqbu74QbIzKjtE7GLnSYMzneKQU7bivJbsYx8XNisJzkS1HEHtRZaDa70mdMbNsgm+ RQsViAiIqrOCx5Yzwj/PwgAnwbuyL6EzFYWJBVTytiNZNyPeYlHKGQQX/lHGNOWtONAl rmOt1r/bHqlkzOPpGdxm5zcvhIN/7eJr7XbITqeHE7ty2ogvHsnsUEdDbvqXay1PP04u EGyQ9hwtaGRnxiVQySMqN023bBY9umsVaMkQ6q3IdWsvYM9OT2Oqgcjz8UQ5lnYKuCkP o9/7n9k2QfUrbic6EpAM4GYlTcXxzqdjiPUB8jjy2VDsWUoMw1rZa/bQhgyBezyqy1kx PmyA== X-Gm-Message-State: ANoB5plpuwrh39927N4PhGJyr0CVfl+cb7yEwYiIUOV6WAB7RkB8SEFn Z9xKlHuGdpHvQCOucFx5hhaL18FrriWOyk8j2Q== X-Received: by 2002:a5d:5d0f:0:b0:236:6f6f:8dd7 with SMTP id ch15-20020a5d5d0f000000b002366f6f8dd7mr43015183wrb.4.1670321650480; Tue, 06 Dec 2022 02:14:10 -0800 (PST) Received: from platypus.lan ([2001:861:5e4c:3bb0:6424:328a:1734:3249]) by smtp.googlemail.com with ESMTPSA id r10-20020a05600c458a00b003cfd4a50d5asm27052699wmo.34.2022.12.06.02.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 02:14:10 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Philip Herron Subject: [PATCH Rust front-end v4 42/46] gccrs: Add lang-spec.h Date: Tue, 6 Dec 2022 11:14:20 +0100 Message-Id: <20221206101417.778807-43-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206101417.778807-1-arthur.cohen@embecosm.com> References: <20221206101417.778807-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-17.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable 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: arthur.cohen@embecosm.com 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?1751460847234822801?= X-GMAIL-MSGID: =?utf-8?q?1751460847234822801?= 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..eed28b1eb06 --- /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", "@rust", 0, 1, 0}, + {"@rust", + "rust1 %i %(cc1_options) %{I*} %{L*} %D %{!fsyntax-only:%(invoke_as)}", 0, 1, + 0},