This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/33862] New: Support .FTN file extension for Fortran fixed-format source files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]