From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id BB1C63846433 for ; Wed, 26 Oct 2022 08:16:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BB1C63846433 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-x433.google.com with SMTP id k8so16391231wrh.1 for ; Wed, 26 Oct 2022 01:16:11 -0700 (PDT) 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=bEdqPZXq/EePHokhX/psGAivxo6rSYFJFeyiuVImZwg=; b=DFexFf1NCy0yFfV6V5StRkBpnCqWClL4y6ihZuM5rR7d6TgmYWdcLmz7/SNGnXPQau nAhqbwwSuHL7ssGQ2KIOIAIJKiM1fU1eYFKptrPmafW4xk594ifKEtX8ZuQAwyuwPHdu Xgv2hGa4hwgPqgbtvkOevMVQy2Uyd45zM/pAZ94m+tUGhwgShESOBTTnCjWH3n+h1Qnb Nc10AYxt7YYL2QbEWsrEaVJe3/DWHvd8HAZcRVS/IX3KirXEl5PsbQT7peXRK9EQUEAO es6JT1nuahvey2ZEXOf2mB1tlZ5/OOiXKBZ6MJW68sK1NbCw7hJ+m2bh0jO5eUV3si7v fVIQ== 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=bEdqPZXq/EePHokhX/psGAivxo6rSYFJFeyiuVImZwg=; b=omeJK4h7gWa1A0z3p//cAWDD7zD9UTlIoe6mJWJ8r7o5woYSgqXPDhjezv0aT5F2j5 GQ/Y2opytkxzImS6rMLm1+AzuD4LJkS2cxO14Eg+hGxuEFrJnFg/wl1TkZ9r9XbZ6GFl 0fe5cx+7he3oxH8Gu6+y2I+kDyU2gCn+BHBN9YcoN3yzIy99eoE4F5k68GGq3Z8wqoAp 7PoaS19SAAutKbZKyrhObIm+7BAR/aaeDH5MYWMeeQsvb0VUU4aMCBl50nEV9/h8y/aS PJE42HuYBEqglqBeEm0JsK53/WnZx3NF+i0dikOA4DnLi1krsDSr76BUbMjJGJlzkhN0 QPdA== X-Gm-Message-State: ACrzQf2ZaXBKuhHVsXrVRJF3hFnj9OrwjdBydQadZ47PvvJ5HtbU+uHD EUYEXkWRPzmusZY3Wj6KNs10I71IHqkCzzWG2A== X-Google-Smtp-Source: AMsMyM4X27OWF+q4G5DgvPvTIpX8jkmUb+y3V0EeP9UhaLDV478wKzbI0xhVqMfBXH4uIxnMVG0VEQ== X-Received: by 2002:adf:f98a:0:b0:236:677c:2407 with SMTP id f10-20020adff98a000000b00236677c2407mr12787361wrr.578.1666772170596; Wed, 26 Oct 2022 01:16:10 -0700 (PDT) Received: from platypus.lan ([2001:861:5e4c:3bb0:6424:328a:1734:3249]) by smtp.googlemail.com with ESMTPSA id q16-20020a05600c46d000b003c6f426467fsm1134310wmo.40.2022.10.26.01.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 01:16:10 -0700 (PDT) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org Subject: [PATCH Rust front-end v3 42/46] gccrs: Add lang-spec.h Date: Wed, 26 Oct 2022 10:18:07 +0200 Message-Id: <20221026081811.602573-43-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221026081811.602573-1-arthur.cohen@embecosm.com> References: <20221026081811.602573-1-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.4 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=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: 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}, -- 2.37.2