diff options
| author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-25 15:57:55 +0000 |
|---|---|---|
| committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-25 15:57:55 +0000 |
| commit | 434f038c3a95cceed65da15aa7962f91e0e4200e (patch) | |
| tree | 697bf2d28b2bd90d57dedd7c5ee8ea52a72d3f8c | |
| parent | e72f00109bbd9ceba3a6658bc2df0f8c8725b7b5 (diff) | |
| download | ppe42-gcc-434f038c3a95cceed65da15aa7962f91e0e4200e.tar.gz ppe42-gcc-434f038c3a95cceed65da15aa7962f91e0e4200e.zip | |
2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33152
* gfortran.texi: Document default forms assumed for various file
extensions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130409 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/fortran/gfortran.texi | 13 |
2 files changed, 16 insertions, 3 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 3f36021c0a1..fe0b54d0612 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR fortran/33152 + * gfortran.texi: Document default forms assumed for various file + extensions. + 2007-11-25 Paul Thomas <pault@gcc.gnu.org> PR fortran/33499 diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index f8e70d3a85c..095517d8452 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -374,6 +374,13 @@ and compile it accordingly. A @command{gfortran} driver program is also provided, which is identical to @command{gcc} except that it automatically links the Fortran runtime libraries into the compiled program. +Source files with @file{.f}, @file{.for}, @file{.fpp}, @file{.ftn}, @file{.F}, +@file{.FOR}, @file{.FPP}, and @file{.FTN} extensions are treated as fixed form. +Source files with @file{.f90}, @file{.f95}, @file{.f03}, @file{.F90}, +@file{.F95}, and @file{.F03} extensions are treated as free form. The +capitalized versions of either form are run through preprocessing. Source files +with the lower case @file{.fpp} extension are also run through preprocessing. + This manual specifically documents the Fortran front end, which handles the programming language's syntax and semantics. The aspects of GCC which relate to the optimization passes and the back-end code generation @@ -394,9 +401,9 @@ Fortran compiler. @cindex Conditional compilation @cindex Preprocessing -Many Fortran compilers including GNU Fortran allow to pass the source code -through a C preprocessor (CPP; sometimes also called Fortran preprocessor, -FPP) to allow for conditional compilation. In case of GNU Fortran +Many Fortran compilers including GNU Fortran allow passing the source code +through a C preprocessor (CPP; sometimes also called the Fortran preprocessor, +FPP) to allow for conditional compilation. In the case of GNU Fortran, this is the GNU C Preprocessor in the traditional mode. On systems with case-preserving file names, the preprocessor is automatically invoked if the file extension is @code{.F}, @code{.FOR}, @code{.FTN}, @code{.F90}, |

