From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id AA24B3858D37 for ; Wed, 27 Dec 2023 20:34:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA24B3858D37 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AA24B3858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=116.202.254.214 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703709276; cv=none; b=G22PsRzPRMxRi07lH4F3SaeHIgHdaOqRQ4Lt+/GPoWP0Ipygzv5GaJsST8AYSLtZwc7MpEpRu5x8/MWdB+x5NyVavP04CIYBpAfOnVvkRqIOaEVNGmRDQ044rN20aSY88Y8z4YWEz7Hs7dSFvyr5F/wobKgMkwVUZFgcuxg1liI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703709276; c=relaxed/simple; bh=BFSfPC9GdLCD8UTfgt/lku48XVQFfjbmPBdzk9r+vWs=; h=To:From:Subject:Date:Message-ID:Mime-Version; b=xRxIcePKDB+Z/bLXHqvztrydyoptmDwhWbDPJ4+PiJUIxpLzw8GX95WBAV8t6JNpMUqD4rtQBlWH99lD7uyluv3y4Jl3RnioRpZxpXnPkOVLDlWgIyg9+SpVpEdIAaS+yG7M4fdexTTWBsNFGHgj4WYLqSYZ0kbaaISkAzQDl/U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rIabp-0004Tu-AD for gcc-patches@gcc.gnu.org; Wed, 27 Dec 2023 21:34:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gcc-patches@gcc.gnu.org From: Harald Anlauf Subject: Re: Fortran: Use non conflicting file extensions for intermediates [PR81615] Date: Wed, 27 Dec 2023 21:34:26 +0100 Message-ID: <295e0172-68b9-4b05-bded-95c418b690fa@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: Cc: fortran@gcc.gnu.org X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Message-ID: <20231227203426.Xz21_RYfQTSdCO2uNZ5nhKKcGLL9gyWv-3Zi8OKWrbk@z> Hi Rimvydas! Am 24.12.23 um 02:33 schrieb Rimvydas Jasinskas: > Documentation part. > The makeinfo gcc/fortran/gfortran.texi does not seem to have any new warnings. The patch is almost fine, except for a strange wording here: +@smallexample +gfortran -save-temps -c foo.F90 +@end smallexample + +preprocesses to in @file{foo.fii}, compiles to an intermediate +@file{foo.s}, and then assembles to the (implied) output file +@file{foo.o}, whereas: I understand the formulation is copied from gcc/doc/invoke.texi, where it does not fully make sense to me either. How about: "preprocesses input file @file{foo.F90} to @file{foo.fii}, ..." Furthermore, +@smallexample +gfortran -save-temps -S foo.F +@end smallexample + +saves the (no longer) temporary preprocessed file in @file{foo.fi}, and +then compiles to the (implied) output file @file{foo.s}. Even if this is copied from the gcc texinfo file, how about: "saves the preprocessor output in @file{foo.fi}, ..." which I find easier to read. Can you also add a reference to the PR number in the commit message? > Is there a specific reason thy -fc-prototypes (Interoperability > Options section) is excluded from manpage? Can you be more specific? I get here (since gcc-9): % man /opt/gcc/14/share/man/man1/gfortran.1 |grep -A 1 "Interoperability Options" Interoperability Options -fc-prototypes -fc-prototypes-external although no detailed explanation (-> gfortran.info). > Regards, > Rimvydas Thanks, Harald