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]

[Patch,Fortran] intrinsic.texi patch


I recently encountered two questions:
a) Which items in ISO_FORTRAN_ENV are F2003?
b) Why does .XOR. not work?

Regarding (b): In my understanding, .xor. is for logical's equivalent to
.neqv. As someone might search the manual for XOR, referencing to .neqv.
seemed to be logical.

Bootstrapped, make html checked.
OK for the trunk?

Tobias
2009-11-11  Tobias Burnus  <burnus@net-b.de>

	* intrinsic.texi (XOR): Refer also to .NEQV.
	(ISO_FORTRAN_ENV): State which parameters are F2008.

Index: gcc/fortran/intrinsic.texi
===================================================================
--- gcc/fortran/intrinsic.texi	(revision 154060)
+++ gcc/fortran/intrinsic.texi	(working copy)
@@ -11174,21 +11174,22 @@
 @fnindex XOR
 @cindex bitwise logical exclusive or
 @cindex logical exclusive or, bitwise
 
 @table @asis
 @item @emph{Description}:
 Bitwise logical exclusive or. 
 
 This intrinsic routine is provided for backwards compatibility with 
 GNU Fortran 77.  For integer arguments, programmers should consider
-the use of the @ref{IEOR} intrinsic defined by the Fortran standard.
+the use of the @ref{IEOR} intrinsic and for logical arguments the
+@code{.NEQV.} operator, which are both defined by the Fortran standard.
 
 @item @emph{Standard}:
 GNU extension
 
 @item @emph{Class}:
 Function
 
 @item @emph{Syntax}:
 @code{RESULT = XOR(I, J)}
 
@@ -11230,21 +11231,22 @@
 @menu
 * ISO_FORTRAN_ENV::
 * ISO_C_BINDING::
 * OpenMP Modules OMP_LIB and OMP_LIB_KINDS::
 @end menu
 
 @node ISO_FORTRAN_ENV
 @section @code{ISO_FORTRAN_ENV}
 @table @asis
 @item @emph{Standard}:
-Fortran 2003 and later
+Fortran 2003 and later; @code{INT8}, @code{INT16}, @code{INT32}, @code{INT64},
+@code{REAL32}, @code{REAL64}, @code{REAL128} are Fortran 2008 or later
 @end table
 
 The @code{ISO_FORTRAN_ENV} module provides the following scalar default-integer
 named constants:
 
 @table @asis
 @item @code{CHARACTER_STORAGE_SIZE}:
 Size in bits of the character storage unit.
 
 @item @code{ERROR_UNIT}:

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