From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by sourceware.org (Postfix) with ESMTPS id 570773894C26 for ; Wed, 7 Dec 2022 17:00:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 570773894C26 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-x829.google.com with SMTP id cg5so16620708qtb.12 for ; Wed, 07 Dec 2022 09:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=jJwiLeMNDibdb8IaWmUs7tZYV0qXe8ep3Ki71gBt8Q4=; b=EcvQaHeJCCTzaSeAaq78CqBSj+P09mHhCzyk/fonYAWjXuIuuHNx8gKe0j4L6fWk7r iZUz0H/kR4ej3fOk/A1Q1QpOvL02mmBKVk/wGyne0vj1o/lSYGTXSNT2JLxxF+zsENcs WbM+n76sx3jfFe5a/RPm94DkKVwgcZ3gWWG3VxcThCykjlTy9sNHUIFOP7nsSXqcDTw6 bCjUIasoDOkDtBKszNVsWo/2ds3Qgej2qvRkg9CcF9kmztaVhfohZJJNs66wDc8xqu4K 4RQ/9AFhofCEndZZrNUR0I8RjvaNO93LOEPHsJFupvZmmIh/zf5QSl+Gjad3gYCZM6aB eXiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jJwiLeMNDibdb8IaWmUs7tZYV0qXe8ep3Ki71gBt8Q4=; b=K/F3OOb7Lk/Okvitj5K+4xwg5A/a0WiWluDm2MubCSX+sIbFI/hcYCRV6GTYiJIyG1 C1Zm2n4a/6smwLAGbmude68DE1L/oEwPeRp0zZ3jp6nggUUWBQFYtku4vBefkKLQd5SW qZ9d/EABJYJGyA9sJSlSWMKl2v6pRwxTH0pDJl0o5rYvtOQxA/aonyeQTGjWuw/PLIIq hTKXZYHWJJ0RpVVfkW+tZDrCtKlSLB8JIJBjFNJNEjkepOVjBLbM8xYUKokyvpgVRDoW Irg4KM/YRO7xlfe9ysCs9R/ajbuaE/U68gGi6IFLx9qUhHJ5jM9fSJnVh+cn59lBKGFb UuQw== X-Gm-Message-State: ANoB5pl9eglZ/7LJu5YWzj9cfeSkZksoG3g4Dnu5D6AfZer/zW2ATl26 j1EKDGuU1X+WaKRhp358skMdn1kAXZQ= X-Google-Smtp-Source: AA0mqf5ZejMccFW/mlLseUT4/28eB0tSWCsXC15Lxb4yJHGDmq7LKzW9ZHIaGkhD6J0ahD8IIYdM4A== X-Received: by 2002:ac8:7288:0:b0:3a7:e8ab:2979 with SMTP id v8-20020ac87288000000b003a7e8ab2979mr1111986qto.64.1670432445523; Wed, 07 Dec 2022 09:00:45 -0800 (PST) Received: from ?IPV6:2601:19c:527f:bfd0:cb20:e74:ead7:4cfe? ([2601:19c:527f:bfd0:cb20:e74:ead7:4cfe]) by smtp.googlemail.com with ESMTPSA id q23-20020a37f717000000b006cbc00db595sm16725583qkj.23.2022.12.07.09.00.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Dec 2022 09:00:45 -0800 (PST) Sender: Nathan Sidwell Message-ID: <2f005f8a-5e96-aece-c654-ab4b090da409@acm.org> Date: Wed, 7 Dec 2022 12:00:44 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Naming flag for specifying the output file name for Binary Module Interface files Content-Language: en-US To: Iain Sandoe , GCC Development Cc: Jonathan Wakely , "chuanqi.xcq" , David Blaikie , "ben.boeckel" References: <96699ff0-f4d7-4276-8af7-5a4ce9735174@acm.org> <6CFAC937-F5FD-49B3-A5E3-4ED83B270DCC@sandoe.co.uk> From: Nathan Sidwell In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3031.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no 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 12/7/22 11:58, Iain Sandoe wrote: > > >> On 7 Dec 2022, at 16:52, Nathan Sidwell via Gcc wrote: >> >> On 12/7/22 11:18, Iain Sandoe wrote: >> >>> I think it is reasonable to include c++ in the spelling, since other languages supported by >>> GCC (and clang in due course) have modules. >> >> I disagree (about the reasonableness part). Other languages have modules, true, but if they want to name the output file, why not have the same option spelling? >> >> I.e. why are we considering: >> >> $compiler -fc++-module-file=bob foo.cc >> $compiler -ffortran-module-file=bob foo.f77 >> >> The language is being selected implicitly by the file suffix (or explictly via -X$lang). There's no reason for some other option controlling an aspect of the compilation to rename the language. We don't do it for language-specific warning options, and similar. (i.e. no -f[no-]c++-type-aliasing vs -fc-type-aliasing, nor -Wc++-extra vs -Wc-extra[*] > > Fair points. > > Unfortunately (in case it has not already been mentioned in this thread) ‘-fmodule-file=‘ is already taken and it means an input, not an output. So, whatever we choose it needs to be distinct from that. Yes, that's why I suggested -fmodule-output= nathan -- Nathan Sidwell