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: 61534 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DBFCB3AA8032 for ; Tue, 6 Dec 2022 10:25:09 +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-Google-Smtp-Source: AA0mqf7HDS9CoSsveucAEb81RjErfEF/toI3Lcd6kPpaabZycoarNqDcYkbR79x50IMXQnXBOUWx8g== 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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},