From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 54BF2386EC38 for ; Thu, 17 Mar 2022 18:38:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 54BF2386EC38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="75884319" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 17 Mar 2022 10:38:03 -0800 IronPort-SDR: JtJ3Pi0feGnyzvONAxEol87a6SGbDsBpocvT6/eIe8hZfx0lyY5cBO93XVAS4UnwC6jxsP6d99 79oB9iMobJMOP19ufVBhVEaKCg4BfknNpJMBA1C2ZWlrf63Qd+U2WaSNkrbWbPwO9YG0jUOpHY MZRlDLQ4DljjK/w/6ttcHnbu8NspDRjOkAE/rnjyuTMecad0mCpf3adBCoBFs93mZd7qynDtJe k+IbMU7f6Ai6Zpn4QDRu0gyXJsIw57BeNK7GlPg784ZlHjc303u/s2YTUvTXwIpd0c+RY93BoN z14= Date: Thu, 17 Mar 2022 18:37:58 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: "James K. Lowden" CC: Subject: Re: passing command-line arguments, still In-Reply-To: <20220317122136.d15c4fd4f6ea9fec2cbc0938@schemamania.org> Message-ID: References: <20220316143409.24cb3e7fd17c6b73acaee586@schemamania.org> <20220317122136.d15c4fd4f6ea9fec2cbc0938@schemamania.org> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3114.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2022 18:38:05 -0000 On Thu, 17 Mar 2022, James K. Lowden wrote: > That's good to know; at least you're not telling me it's horribly out > of date. I am puzzled, though, because AFAICT that document doen't > indicate why a leading "f" or trailing "=" controls whether or not an > option taking an argument is passed to the compiler. The .opt files control how options are parsed, both in the driver and in the compiler programs such as cc1. Passing of options from the driver to those compiler programs is based on specs in the driver; -f options are passed down because of the use of %{f*} in cc1_options (and the use of %(cc1_options) in the specs for most languages). If you want to pass down options from the driver that don't follow any existing naming convention, your language specs will need to contain the corresponding rules for passing down those options. -- Joseph S. Myers joseph@codesourcery.com