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] BOZ Documentation update


In section 6.1.10 BOZ literal constants of the gfortran manual (gfortran.pdf) the final paragraph refers to integer overflow error. As a result of Steve Kargl's work on BOZ constants these errors no longer occur.

This patch deletes the paragraph. I've checked info, pdf, dvi and HTML documents.

OK to commit?

ChangeLog:

gcc/fortran

    Mark Eggleston  <mark.eggleston@codethink.com>

    * gfortran.texi: Delete paragraph about integer overload errors
    when initialising integer variables with BOZ constants as these
    no longer occur.

--
https://www.codethink.co.uk/privacy.html

>From ac4020d699dac4585c801cd62e34db59d766cfca Mon Sep 17 00:00:00 2001
From: Mark Eggleston <markeggleston@codethink.com>
Date: Thu, 15 Aug 2019 14:34:28 +0100
Subject: [PATCH 3/3] BOZ documentation update

Remove paragraph referring to integer overflow messages as it is no longer
the case.
---
 gcc/fortran/gfortran.texi | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index 16be9e05b43..4515b9d02e4 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -1882,13 +1882,6 @@ with @code{2.0}.) As different compilers implement the extension
 differently, one should be careful when doing bitwise initialization
 of non-integer variables.
 
-Note that initializing an @code{INTEGER} variable with a statement such
-as @code{DATA i/Z'FFFFFFFF'/} will give an integer overflow error rather
-than the desired result of @math{-1} when @code{i} is a 32-bit integer
-on a system that supports 64-bit integers.  The @samp{-fno-range-check}
-option can be used as a workaround for legacy code that initializes
-integers in this manner.
-
 @node Real array indices
 @subsection Real array indices
 @cindex array, indices of type real
-- 
2.11.0


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