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] Improve GFORTRAN_CONVERT_UNIT documentation


:ADDPATCH fortran:

The following was undocumented:
   GFORTRAN_CONVERT_UNIT="swap:13-45"
i.e. specification of an exception without specifying a default.

A note that GFORTRAN_CONVERT_UNIT overwrites also the convert specifier.
The note is copied over from the convert specifier section.

Ok for the trunk? And maybe also for 4.2.1?

(This is independing of my GFORTRAN_CONVERT_UNIT patch as that one fixes
setting default conversion.)

Tobias
2007-05-15  Tobias Burnus  <burnus@net-b.de>

	* gfortran.texi (GFORTRAN_CONVERT_UNIT): Improve documentation.

Index: gcc/fortran/gfortran.texi
===================================================================
--- gcc/fortran/gfortran.texi	(Revision 124742)
+++ gcc/fortran/gfortran.texi	(Arbeitskopie)
@@ -611,7 +611,7 @@
 to change the representation of data for unformatted files.
 The syntax for the @env{GFORTRAN_CONVERT_UNIT} variable is:
 @smallexample
-GFORTRAN_CONVERT_UNIT: mode | mode ';' exception ;
+GFORTRAN_CONVERT_UNIT: mode | mode ';' exception | exception ;
 mode: 'native' | 'swap' | 'big_endian' | 'little_endian' ;
 exception: mode ':' unit_list | unit_list ;
 unit_list: unit_spec | unit_list unit_spec ;
@@ -668,7 +668,12 @@
 setting a default data representation for the whole program.  The
 @code{CONVERT} specifier overrides the @option{-fconvert} compile options.
 
+@emph{Note that the values specified via the GFORTRAN_CONVERT_UNIT
+environment variable will override the CONVERT specifier in the
+open statement}.  This is to give control over data formats to
+users who do not have the source code of their program available.
 
+
 @c =====================================================================
 @c PART II: LANGUAGE REFERENCE
 @c =====================================================================

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