From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF44D384F725; Fri, 9 Dec 2022 13:25:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF44D384F725 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670592326; bh=bMouGrAbemXRpOTdhBYwGf4ZNXacqpWqIvQ2Bj5/his=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F/fWpUY6ZmdNZ1CdrpdC/UIw/HLfhjk9R/3+4q0wdSCT+n5oqOOcWbi/QwDBACJqq 5kU+hzLu0NtQ2wpnzPM7whHB5Y5ISawmckyTVepviiOtR5nwjzoTYgxbobJWMh93/e HVkMhSoBhMrxwHdF5e0UGlGoiCn7OVTbuDaeOtTE= From: "barrowes at alum dot mit.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/81615] save-temps and gfortran produces *.f90 files instead of *.i or *i90 files Date: Fri, 09 Dec 2022 13:25:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: barrowes at alum dot mit.edu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81615 --- Comment #12 from Ben Barrowes --- I use these intermediate files during the software analysis process, but th= en delete them later. They are useful for me to have. When I am given a makefile, it is often 1000's loc. I am not sure I want to= go in and modify it such as you suggest below and tell the customer it is for their own good. I'd rather be able to set a couple of switches to the preprocessor and get what I want. gfortran already allows to create a *.d file in each directory for each fil= e. Is that poor software design as well? And when gfortran files are preproces= sed all into a *.f90 file, except when they are not (see Thomas's email below),= is that poor software design? ifort allows for the creation of these intermediate preprocessed files, creating *.i and *.i90 files. IBM XL allows this as well using the -d switch: https://www.ibm.com/docs/en/xl-fortran-aix/16.1.0?topic=3Dpreprocessor-pass= ing-fortran-files-through-c And the intermediate filename becomes Ffilename.f* Can gfortran be modified to have the option to do this as well?=