This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Should g77 accept file extensions .f90 and .f95 ?
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Subject: Re: Should g77 accept file extensions .f90 and .f95 ?
- From: Charlie Zender <zender at uci dot edu>
- Date: Tue, 05 Sep 2000 10:06:15 -0700
- CC: "g95 developer's mailing list" <g95-develop at lists dot sourceforge dot net>, gcc-bugs at gcc dot gnu dot org
- Organization: University of California at Irvine
- References: <39B0CF1B.D8E506B@moene.indiv.nluug.nl>
Toon,
Thanks for looking into this.
> 1. *Should* g77 support compiling Fortran source code in files with
> the extensions .f90 and .f95 (in the end, Fortran 77 is a subset
> of Fortran 90/95, so it is not unreasonable to have code that's
> compileable by g77 in files that end in .f90 or .f95).
Yes.
> 2. If so, should this code be assumed to be free format (i.e. the
> compile time option -ffree-form be passed to the compiler by
> default) ? I've checked that it is possible to override it by
> entering -fno-free-form.
Yes
> 3. Or should g77 refrain from even purporting it has anything to do
> with Fortran 90/95 and simply refuse to recognise extensions
> .f90 and .f95 given that GNU Fortran 95 is well under way ?
Of course not. Use g77 until g95 supercedes it.
This means using g77 on fixed-format *.F90 files.
It won't help me but it will help some people.
Thanks,
Charlie
--
Charlie Zender zender@uci.edu (949) 824-2987/FAX-3256, Department of
Earth System Science, University of California, Irvine CA 92697-3100
Visiting NCAR CGD CMS July 24--September 22: (303) 497-1616/FAX-1324