From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by sourceware.org (Postfix) with ESMTPS id 084FE382FAE6 for ; Fri, 9 Dec 2022 17:43:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 084FE382FAE6 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-oa1-x2e.google.com with SMTP id 586e51a60fabf-144b21f5e5fso545138fac.12 for ; Fri, 09 Dec 2022 09:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cGALiB7a2zNUf1BIO5m6RDAOVT8+RQodMf98EPXX7q8=; b=eruiTjRZ/1o/CICGjlwd5VIpaTgx/Dc6TUWnS2VPUoI3ACS/X4Mz3h14udG8JVX3yb w9MDafl0Sl6sWSl6fNmt+9IrrQIckr2aeRFq94rTtuFYzODN/W+51YaI0t/o6KOvWMyY ULOThDJxn0OSjdkkHzBo9CG1wcWHcQjraFfpYWvOfJc6pszn6CEO2hnn+D9UhwLPBmcV 7lln/Umr5FHnOS3oaik9WEcmOKhJv17dCHizGiuRH6daCsvjKO9vAZJ7o+84gp2Phoui ak4s+zOukPibdgaKTMHcvAVFDKHnP8J8AFH4pJqzOSEkrSyJYlSekGBQk7hbRAExSoNR EjWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cGALiB7a2zNUf1BIO5m6RDAOVT8+RQodMf98EPXX7q8=; b=6S6jUwmHJFTRrWPICGtaHHqH4rSi6s+30/ZDE735qT1ZiwmfJz5lRkosDz+hPbF2/t X19qGzl3uL7LPEXXTPNP2DDQVVDOmK0uapuhRiBjnhRSCpsZMsIfOZwbUeJ9cs6dzJGf He5ngptrJePyICxdURbcJ607H76avgOqyEBlGkwtBZ1kO2URxY10ODc+lFlLw/Q5i+GY Fxnrl7Q6KzC9Yaq70S7czkJQl90KRZnYIMWnt4V5Bxw4UTVy2AZ8H5mgoSkPiIfPc4Hv ccEwvbUDW+mVY8iP3Z2Fo9QARx7u0KsY6Zxc5fvR8a0MsbcK1vVGHlP/3X49cfsCXtSo Q0Dw== X-Gm-Message-State: ANoB5plxZRfPj1hZa9zK3m01+NVqqAfKPGch4Wpz8oKr3s3dglc0m81A /tRRivWLkY7SkAjQbtE2dqxYzHN9CW8Y96wtn+4= X-Google-Smtp-Source: AA0mqf7NMAJDXmenN1vlzS9A6ajTEDb1QdBaMSFQ8zqyekrBaxlm0HVJffxw/x/5K5AbFTFdQ+bfS27RF/ha/PcqkdQ= X-Received: by 2002:a05:6870:ed9b:b0:144:cbae:bdad with SMTP id fz27-20020a056870ed9b00b00144cbaebdadmr5255124oab.177.1670607821240; Fri, 09 Dec 2022 09:43:41 -0800 (PST) MIME-Version: 1.0 References: <96699ff0-f4d7-4276-8af7-5a4ce9735174@acm.org> <6CFAC937-F5FD-49B3-A5E3-4ED83B270DCC@sandoe.co.uk> <2f005f8a-5e96-aece-c654-ab4b090da409@acm.org> <29c9ff1a-2c88-4e02-81e0-9780020b8e77.yedeng.yd@linux.alibaba.com> In-Reply-To: From: David Blaikie Date: Fri, 9 Dec 2022 09:43:23 -0800 Message-ID: Subject: Re: Naming flag for specifying the output file name for Binary Module Interface files To: Iain Sandoe Cc: GCC Development , Nathan Sidwell , Jonathan Wakely , "ben.boeckel" , "chuanqi.xcq" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Thanks Iain for the summary/thanks everyone for the discussion! On Fri, Dec 9, 2022 at 9:33 AM Iain Sandoe wrote: > > Hello all. > > > On 9 Dec 2022, at 01:58, chuanqi.xcq wrot= e: > > > > It looks like `-fmodule-file` is better from the discussion. So let's t= ake it. Thanks for everyone here > > So FAOD (after this discussion) Chuanqi's current patchset implements the= following in clang: > > -fmodule-output > > - this causes the BMI to be saved in the CWG with the basename of the s= ource file and a suffix of .pcm. > > -fmodule-output=3D > > - this causes the BMI to be saved at the path specified. > > =3D=3D=3D > > These facilities support build systems that do not use the P1184 interfac= e to map between module names and paths. > > cheers > Iain > > > > > Thanks, > > Chuanqi > > ------------------------------------------------------------------ > > From:Nathan Sidwell > > Send Time:2022=E5=B9=B412=E6=9C=888=E6=97=A5(=E6=98=9F=E6=9C=9F=E5=9B= =9B) 01:00 > > To:Iain Sandoe ; GCC Development > > Cc:Jonathan Wakely ; chuanqi.xcq ; David Blaikie ; ben.boeckel > > Subject:Re: Naming flag for specifying the output file name for Binary = Module Interface files > > > > On 12/7/22 11:58, Iain Sandoe wrote: > > > > > > > > >> On 7 Dec 2022, at 16:52, Nathan Sidwell via Gcc wr= ote: > > >> > > >> On 12/7/22 11:18, Iain Sandoe wrote: > > >> > > >>> I think it is reasonable to include c++ in the spelling, since othe= r languages supported by > > >>> GCC (and clang in due course) have modules. > > >> > > >> I disagree (about the reasonableness part). Other languages have mo= dules, true, but if they want to name the output file, why not have the sam= e option spelling? > > >> > > >> I.e. why are we considering: > > >> > > >> $compiler -fc++-module-file=3Dbob foo.cc > > >> $compiler -ffortran-module-file=3Dbob foo.f77 > > >> > > >> The language is being selected implicitly by the file suffix (or exp= lictly via -X$lang). There's no reason for some other option controlling a= n aspect of the compilation to rename the language. We don't do it for lan= guage-specific warning options, and similar. (i.e. no -f[no-]c++-type-alia= sing vs -fc-type-aliasing, nor -Wc++-extra vs -Wc-extra[*] > > > > > > Fair points. > > > > > > Unfortunately (in case it has not already been mentioned in this thre= ad) =E2=80=98-fmodule-file=3D=E2=80=98 is already taken and it means an inp= ut, not an output. So, whatever we choose it needs to be distinct from tha= t. > > > > Yes, that's why I suggested -fmodule-output=3D > > > > nathan > > > > -- > > Nathan Sidwell >