[Bug fortran/23862] New: Select Fortran source form appropriately for "-pipe"

macro at linux-mips dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 16:05:00 GMT 2005


When "-pipe" is used for .F90 and .F95 sources this warning is produced:

Warning: Reading file '<stdin>' as free form.

The reason is the compiler cannot deduce the form from the file name 
suffix as in this case it's only known to the preprocessor.

 Here is an obvious patch following the approach used for .F/.fpp/.FPP and 
.f/.for/.FOR files.

2005-08-22  Maciej W. Rozycki  <macro@linux-mips.org>

	* fortran/lang-specs.h: Pass "-ffree-form" by default for Fortran 
	90 sources.

 Tested successfully in a native bootstrap for "i386-linux-gnu" for GCC
4.0.1.  Inspection of sources shows it is needed for HEAD as well.

-- 
           Summary: Select Fortran source form appropriately for "-pipe"
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: macro at linux-mips dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23862



More information about the Gcc-bugs mailing list