This is the mail archive of the gcc-patches@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]

gcc/docs/cpp.texi: Add __GFORTRAN__


The following patch addes __GFORTRAN__ to the CPP documentation;
__GFORTRAN__ is defined if CPP is invoked by gfortran (this happens
automatically for files with the extension .F, .F90, .F95, .F03).

Syntax checked by running make pdf and building the compiler (which
creates the .info files / manpages).

Ok for the trunk?

Tobias
2007-09-06  Tobias Burnus  <burnus@net-b.de>

	PR fortran/33303
	* doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.

Index: gcc/doc/cpp.texi
===================================================================
--- gcc/doc/cpp.texi	(Revision 128199)
+++ gcc/doc/cpp.texi	(Arbeitskopie)
@@ -1912,8 +1912,8 @@
 
 The common predefined macros are GNU C extensions.  They are available
 with the same meanings regardless of the machine or operating system on
-which you are using GNU C@.  Their names all start with double
-underscores.
+which you are using GNU C or GNU Fortran.  Their names all start with
+double underscores.
 
 @table @code
 
@@ -1924,11 +1924,14 @@
 @code{__COUNTER__} is not expanded prior to inclusion of precompiled headers
 which use it.  Otherwise, the precompiled headers will not be used.
 
+@item __GFORTRAN__
+The GNU Fortran compiler defines this. 
+
 @item __GNUC__
 @itemx __GNUC_MINOR__
 @itemx __GNUC_PATCHLEVEL__
 These macros are defined by all GNU compilers that use the C
-preprocessor: C, C++, and Objective-C@.  Their values are the major
+preprocessor: C, C++, Objective-C and Fortran.  Their values are the major
 version, minor version, and patch level of the compiler, as integer
 constants.  For example, GCC 3.2.1 will define @code{__GNUC__} to 3,
 @code{__GNUC_MINOR__} to 2, and @code{__GNUC_PATCHLEVEL__} to 1.  These

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