This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33862] New: Support .FTN file extension for Fortran fixed-format source files
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2007 16:37:26 -0000
- Subject: [Bug fortran/33862] New: Support .FTN file extension for Fortran fixed-format source files
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I encounted some .FTN files, which NAG f95, sunf95, openf95* and ifort
recognize as fixed-format Fortran files. (* well openf95 seems to accept any
extension.)
I think gfortran should also support the extension.
Something like the following patch plus a *texi update should be enough.
Index: lang-specs.h
===================================================================
--- lang-specs.h (Revision 129547)
+++ lang-specs.h (Arbeitskopie)
@@ -46,5 +46,7 @@
{".f", "@f77", 0, 0, 0},
{".for", "@f77", 0, 0, 0},
{".FOR", "@f77", 0, 0, 0},
+{".ftn", "@f77", 0, 0, 0},
+{".FTN", "@f77", 0, 0, 0},
{"@f77", "%{!E:f951 %i %{!ffree-form:-ffixed-form} %(cc1_options) %{J*} %{I*}\
%{!nostdinc:-fintrinsic-modules-path finclude%s}
%{!fsyntax-only:%(invoke_as)}}", 0, 0, 0},
--
Summary: Support .FTN file extension for Fortran fixed-format
source files
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33862