Patchwork [Fortran,committed] PR46545 Update gfortran.texi for quadmath and F2008

login
register
mail settings
Submitter Tobias Burnus
Date Nov. 23, 2010, 8:55 p.m.
Message ID <4CEC2A24.4020701@net-b.de>
Download mbox | patch
Permalink /patch/72760/
State New
Headers show

Comments

Tobias Burnus - Nov. 23, 2010, 8:55 p.m.
The following patch updates the documentation due to libquadmath change, 
i.e. the kinds 10 and 16 can be available simultaneously. Additionally, 
I updated the documentation for the F2008 changes.

Committed as Rev. 167096.

Tobias

Patch

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

	PR fortran/46545
	* gfortran.texi (KIND Type Parameters): Quadmath and F2008 changes.

diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index 69eefa5..53f5c03 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -1067,10 +1067,10 @@  data types are:
 1, 2, 4, 8*, 16*, default: 4 (1)
 
 @item REAL
-4, 8, 10**, 16**, default: 4 (2)
+4, 8, 10*, 16*, default: 4 (2)
 
 @item COMPLEX
-4, 8, 10**, 16**, default: 4 (2)
+4, 8, 10*, 16*, default: 4 (2)
 
 @item CHARACTER
 1, 4, default: 1
@@ -1079,8 +1079,6 @@  data types are:
 
 @noindent
 * = not available on all systems @*
-** = not available on all systems; additionally 10 and 16 are never
-available at the same time @*
 (1) Unless -fdefault-integer-8 is used @*
 (2) Unless -fdefault-real-8 is used
 
@@ -1088,7 +1086,14 @@  available at the same time @*
 The @code{KIND} value matches the storage size in bytes, except for
 @code{COMPLEX} where the storage size is twice as much (or both real and
 imaginary part are a real value of the given size).  It is recommended to use
-the @code{SELECT_*_KIND} intrinsics instead of the concrete values.
+the @code{SELECTED_CHAR_KIND}, @code{SELECTED_INT_KIND} and
+@code{SELECTED_REAL_KIND} intrinsics or the @code{INT8}, @code{INT16},
+@code{INT32}, @code{INT64}, @code{REAL32}, @code{REAL64}, and @code{REAL128}
+parameters of the @code{ISO_FORTRAN_ENV} module instead of the concrete values.
+The available kind parameters can be found in the constant arrays
+@code{CHARACTER_KINDS}, @code{INTEGER_KINDS}, @code{LOGICAL_KINDS} and
+@code{REAL_KINDS} in the @code{ISO_FORTRAN_ENV} module
+(see @ref{ISO_FORTRAN_ENV}).
 
 
 @node Internal representation of LOGICAL variables