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, wwwdocs] gcc-4.3/changes.html: Document changed interpretations of BOZ literal constants


Hi Gerald, hi gfortraners,

(Thanks for proof reading the changes; your suggestions were always
helpful.)

since today, gfortran interprets binary, octal and hexadecimal (BOZ)
literal constants differently. The change was necessary for better
compatibility with other compilers (and thus with legacy programs). It
additionally support Fortran 2003 BOZ.

OK for check in?

Tobias

2007-12-08  Tobias Burnus  <burnus@net-b.de>

	* gcc-4.3/changes.html (Fortran): Document change in the
	interpretation of BOZ literal constants.

Index: htdocs/gcc-4.3/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
retrieving revision 1.88
diff -u -r1.88 changes.html
--- htdocs/gcc-4.3/changes.html 4 Dec 2007 00:57:41 -0000       1.88
+++ htdocs/gcc-4.3/changes.html 8 Dec 2007 22:34:55 -0000
@@ -405,6 +405,15 @@
     href="http://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html";>
     <code>-fbackslash</code></a> GNU Fortran interprets backslashes as
     C-style escape characters.</li>
+    <li>The <a
+    href="http://gcc.gnu.org/onlinedocs/gfortran/BOZ-literal-constants.html";>
+    interpretation of binary, octal and hexadecimal (BOZ) literal constants</a>
+    has been changed; before they were always interpreted as integer. Now they
+    are bit-wise transferred as argument of INT, REAL, DBLE and CMPLX as
+    required by the Fortran 2003 standard, and for real and complex variables
+    in DATA statements or when directly assigned to real and complex variables.
+    Everywhere else and especially in expressions they are still regarded
+    as integer constants.</li>
     <li>Fortran 2003 support has been extended:
     <ul>
       <li>Intrinsic statements IMPORT, PROTECTED, VALUE and VOLATILE</li>
@@ -413,6 +422,7 @@
       <li>Interoperability with C (ISO C Bindings)</li>
       <li>ABSTRACT INTERFACES and PROCEDURE statements (without POINTER
       attribute)</li>
+      <li>Fortran 2003 BOZ</li>
     </ul></li>
   </ul>


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