From patchwork Fri Aug 16 14:25:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mark Eggleston X-Patchwork-Id: 1148254 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-507128-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="jY5u6hwo"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4695FV1fsMz9sN1 for ; Sat, 17 Aug 2019 00:25:15 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=VSEgVjrFBIURZVB0+naRC+hCHgqvLkfw//1mXSw7fyLEF0fj74 rKts6urLC7nmKljXrbfyb1V+FJtCQ8sy+gMdb+L4WgeSLNAoJkWU0B6QYfkMEFiI OKIRyXEhocufAbJM1w6WqumUM3J9cpJlDrsHNNwAxd0yJ7/i3Z4bAEJ5g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=zA+1Q7apR/YG+QEfOz+1BExPAv4=; b=jY5u6hwoMM6wZhxFmDw/ qhK11zpaQZSEAGoDgdhEkO/9m15EDAOW3UPfzt0aazFi5bBMSZg3qdlfd061QLg3 bMZxiuEIj958XHbg1bHuYr43S3At4XOubPSaGGwceH19c8gBQnt8cmh/YBeFWY63 swGYtZH9d5k4ncNn9baifnE= Received: (qmail 15905 invoked by alias); 16 Aug 2019 14:25:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 15892 invoked by uid 89); 16 Aug 2019 14:25:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_COUK, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy=H*Ad:D*co.uk, Real, documents X-HELO: imap1.codethink.co.uk Received: from imap1.codethink.co.uk (HELO imap1.codethink.co.uk) (176.9.8.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 16 Aug 2019 14:25:06 +0000 Received: from [167.98.27.226] (helo=[10.35.6.226]) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1hydA8-0002DX-34; Fri, 16 Aug 2019 15:25:04 +0100 To: gcc-patches , fortran From: Mark Eggleston Subject: [PATCH] BOZ Documentation update Message-ID: <1b7decb2-7e3e-e98d-9dce-b07135aa11f2@codethink.co.uk> Date: Fri, 16 Aug 2019 15:25:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 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      * gfortran.texi: Delete paragraph about integer overload errors     when initialising integer variables with BOZ constants as these     no longer occur. From ac4020d699dac4585c801cd62e34db59d766cfca Mon Sep 17 00:00:00 2001 From: Mark Eggleston 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