diff options
author | Daniel Franke <franke.daniel@gmail.com> | 2008-08-18 16:46:08 -0400 |
---|---|---|
committer | Daniel Franke <dfranke@gcc.gnu.org> | 2008-08-18 16:46:08 -0400 |
commit | f34cf28d62a251f4a129f141b8b21ba8d7effda6 (patch) | |
tree | 6cad10fcbd8fcb77872ecea14af22539feb070f8 /gcc | |
parent | 468756c55a84cd5c4900ef70162069bde4e228bb (diff) | |
download | gcc-f34cf28d62a251f4a129f141b8b21ba8d7effda6.zip gcc-f34cf28d62a251f4a129f141b8b21ba8d7effda6.tar.gz gcc-f34cf28d62a251f4a129f141b8b21ba8d7effda6.tar.bz2 |
re PR fortran/37032 (including "file.F90" - no CPP processing)
2008-08-18 Daniel Franke <franke.daniel@gmail.com>
PR fortran/37032
* gfortran.texi: Document decision on include file handling in
preprocessed files.
From-SVN: r139215
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/gfortran.texi | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 8ca3f84..494e610 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2008-08-18 Daniel Franke <franke.daniel@gmail.com> + + PR fortran/37032 + * gfortran.texi: Document decision on include file handling in + preprocessed files. + 2008-08-16 Tobias Burnus <burnus@net-b.de> PR fortran/36825 diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index c79a70a..933ed45 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -401,6 +401,7 @@ Fortran compiler. @cindex FPP @cindex Conditional compilation @cindex Preprocessing +@cindex preprocessor, include file handling Many Fortran compilers including GNU Fortran allow passing the source code through a C preprocessor (CPP; sometimes also called the Fortran preprocessor, @@ -413,7 +414,11 @@ invoke the preprocessor on any file, use @option{-cpp}, to disable preprocessing on files where the preprocessor is run automatically, use @option{-nocpp}. -If the GNU Fortran invoked the preprocessor, @code{__GFORTRAN__} +If a preprocessed file includes another file with the Fortran @code{INCLUDE} +statement, the included file is not preprocessed. To preprocess included +files, use the equivalent preprocessor statement @code{#include}. + +If GNU Fortran invokes the preprocessor, @code{__GFORTRAN__} is defined and @code{__GNUC__}, @code{__GNUC_MINOR__} and @code{__GNUC_PATCHLEVEL__} can be used to determine the version of the compiler. See @ref{Top,,Overview,cpp,The C Preprocessor} for details. |