From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id B54C63856DD9; Wed, 14 Sep 2022 13:41:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B54C63856DD9 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-ed1-x533.google.com with SMTP id m1so22261262edb.7; Wed, 14 Sep 2022 06:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=vBYNz3kBcBQzOoaTmMJNxz9uVio1I51B7jrPYEQ8WUk=; b=gxZY4RY4UKe1sKz/QslrjAMYBoDiBfSNwYscxSKMme+F7TZWgIqD9y9rrjQelkULkA /DzL+c2sN27A8AtLKPYmREIMvvUKalUgVR6vjDqWQ/Pu06NTSg/EDiK0nBavyBImnSnA rmT9vN8b+rEps635SK60W6wVf0Re/6ri291xnDeghO3EUP+/UqkaCVkfMcKzxKSvKoO6 RXpOfBkvWT+x/I1k4ThuDhumet/mQFPRb8aPhYXpQBDx5xIhJK9RslcfkHvIid78C8ra 0baSxgNar2p5wqi1V4ij9JgM8YqsHawTG3/wmbceCkfwUli9M+0j71zGJcJYl+pU5W7F kAyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=vBYNz3kBcBQzOoaTmMJNxz9uVio1I51B7jrPYEQ8WUk=; b=XGJGKOttP4lzGhrl+5C8iZ4alVtL52hq83SwZJhPpr8+GXm6nJmrttDmjszhKWmvbe USSYGCO7Nk8oq9o3olBLVAyIfYV64e4zKi6Cy4J6KlKKqbd6f42Rxrc8C0cr38lEpFDc zbW/V1I1mDlo2bRez4/KGw04CGEZSmPb8Z9J2viXBIC25iGNd+FOrLHTuKK733sgIp/5 0FeGcZxGWpYp0hC14I/HN6N+kjdPt0SCSDbRI+NJRwrK3Uk0w+5zoWeMas6x7rr16fC9 3+Su/VS5Okcl6pMsr86+3fEMuRam4u6G21pGDk8z0oUBDrUR2kRaFUh5OKY8bJyS5WtO 6+pA== X-Gm-Message-State: ACgBeo3Dd7Pg8QLaSVciq5dlYp4WZ/aeB8dsCovJ9OLCAbc+P5A/ee0P Z+0wzrLqGhauaLkSBV8lTnX6Bu8z5vUnpEFYCoA= X-Google-Smtp-Source: AA6agR62EQouHQvCxgTjsXwEXShXQiI3+fqVcIRKg9Xif0K6RNba1xbR/7mPxae70ju7pUXlcTSGGE0rgaHWzGwxYlA= X-Received: by 2002:a05:6402:1f02:b0:445:f674:eac0 with SMTP id b2-20020a0564021f0200b00445f674eac0mr29559953edb.370.1663162865520; Wed, 14 Sep 2022 06:41:05 -0700 (PDT) MIME-Version: 1.0 References: <20220824115956.737931-1-philip.herron@embecosm.com> <20220824115956.737931-34-philip.herron@embecosm.com> In-Reply-To: <20220824115956.737931-34-philip.herron@embecosm.com> From: Richard Biener Date: Wed, 14 Sep 2022 15:40:53 +0200 Message-ID: Subject: Re: [PATCH Rust front-end v2 33/37] gccrs: add lang-spec.h To: philip.herron@embecosm.com Cc: gcc-patches@gcc.gnu.org, gcc-rust@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.9 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 List-Id: On Wed, Aug 24, 2022 at 2:20 PM wrote: > > From: Philip Herron > > This specifies the extensions of the Rust language. LGTM > --- > 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}, > -- > 2.25.1 >