From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0ABF2387054E; Thu, 8 Dec 2022 16:44:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0ABF2387054E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670517869; bh=2ix3nqCLAOzImdRiFAi9UYMYBqzlzPNDXhUJqgneiS0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oH8yrjDKjK3xfQRY3ddHEC20yaR50y74keqK1juhOQ2rq2a0WA9kNN+9tfPwTRH6q 8oQjliqAlB0LAS++oObr5X1QTRL/mb/XRXbpOKlALMMEyReLYC6WPZDo2YY2ssfBjA huFB8U/7PorvPk3rfW3v2ktQH1iT8qmx1QRm0Gq0= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/81615] save-temps and gfortran produces *.f90 files instead of *.i or *i90 files Date: Thu, 08 Dec 2022 16:44:28 +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: jakub at gcc dot gnu.org 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: cc 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 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- If you use test.F90 extension, -save-temps will produce test.f90 with preprocessed source, that is how it should behave. Now, for *.F or *.F08 etc. extensions it still creates *.f90, I'd say it sh= ould create *.f, *.f08 etc. instead. And finally for the -cpp case where the source contains an extension that is meant for files that don't need preprocessing, either we could use a temporary filename, or say append suffix to the filen= ame instead of removing its suffix and appending a new extension.=