From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by sourceware.org (Postfix) with ESMTPS id 64E743855151 for ; Mon, 12 Dec 2022 14:30:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 64E743855151 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-x836.google.com with SMTP id x11so3673734qtv.13 for ; Mon, 12 Dec 2022 06:30:51 -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=v8E0Iy+CG3V0F7aeTfcAqGnfbEpHJds7gzGbEnxp/E0=; b=MPKj0Mf4Uw8Tq8jsfn7Eqt1caMHrky7VCB/J2TdnawONzQ5wSoZr1s5sZeYjYRv9l0 09c61Bx1Exr/YUQZN4M3gmJ74FtWypSGNy7Sv3UNxYmpM3Vu6EGi68QhvGcqclURLMyG kuz3wmFvmyr7Jhcj7cvn+Epkbb8MXo6vKjzu1dTMrvTWWLy1cAwT3wPXAYQu07zD8rg/ 4OgA0TPLdAw1tdBJENaV3BBAPDI2foR4WAVWcJU8MAvYUw9uEk/xmaXVMwmLCWSpNe3d I4xC7qRYr3rhqFmI+uynA/ZVSVcUWaDfe/En4tVOObm1qpr+ssZCakXIKH1UggUFaukI 3Wqw== 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=v8E0Iy+CG3V0F7aeTfcAqGnfbEpHJds7gzGbEnxp/E0=; b=SLesvmc1Co2/Ir6D2py4EUId4w1JyT0x8dsa8OoRioEuWq2VuSMsVy0BfZNwidDGsq X6UeMp3XlQwWduZZjHvIC+eQKhNAS0YksZOTU+dX7iH2X0h779RhC6cQsfRm1YlfUl7M lt9FNm2/ktSIWClQnyhOFFWn+SotgoKL3awOJgIqOR7RNHQfOGbefIOPYopwfqTh9WkO oVaENLKqcvm8SYbiiUoXSDxyZ3AmhM+dEFLkEW5rZ6oa8KrOT+iNql8txf/ty6kTKrFZ pnYCXDKo/8Atq/fxEycOd2S/jsygESbkMA5tjH3V9Um5h14pXBUnYb+XhxH4H8/xB+wJ 8Aeg== X-Gm-Message-State: ANoB5plfVDW3nn2xqXuD9Cp8h1kbyQcDsqCfVtAqNA3sYRxg57XaDufw qgkrW8k4SHdwJ/sfaBxYzY4= X-Google-Smtp-Source: AA0mqf4NT2sh4CtAWVKnzl2Hje4iZGRC4QsRmTMKhluuGJ5MUm6iwEJU8Zj0iSYO73O2dB9rYXXMcw== X-Received: by 2002:a05:622a:590f:b0:3a5:f9f8:3ec4 with SMTP id ga15-20020a05622a590f00b003a5f9f83ec4mr24922683qtb.30.1670855450646; Mon, 12 Dec 2022 06:30:50 -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 c17-20020ac86611000000b0035d432f5ba3sm5889366qtp.17.2022.12.12.06.30.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Dec 2022 06:30:50 -0800 (PST) Sender: Nathan Sidwell Message-ID: <3c9bfafd-9898-ca67-b629-5a23fec58792@acm.org> Date: Mon, 12 Dec 2022 09:30:46 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 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: Nathan Sidwell , Jonathan Wakely , David Blaikie , "ben.boeckel" , "chuanqi.xcq" 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> From: Nathan Sidwell In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3031.4 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/9/22 12:33, Iain Sandoe wrote: > Hello all. > >> On 9 Dec 2022, at 01:58, chuanqi.xcq wrote: >> >> It looks like `-fmodule-file` is better from the discussion. So let's take 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 source file and a suffix of .pcm. > > -fmodule-output= > > - this causes the BMI to be saved at the path specified. > 1) Are these flags silently ignored, if no module output is to be generated? Or is some kind of diagnostic generated? 2) what happens if you specify both -- do you get two outputs, a diagnostic, or is one silently selected? 3) What is the behaviour if compilation fails? Does nothing happen to the file indicated (potentially leaving an older version there), or does the equivalent of 'rm -f $MODULE.pcm' happen? nathan -- Nathan Sidwell