From patchwork Sun Nov 21 10:58:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Trofimovich X-Patchwork-Id: 47973 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85746385842B for ; Sun, 21 Nov 2021 10:59:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85746385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637492367; bh=osmbmmB8bS/SS5DLdGzEA2iS3YflQaUP7X5Ny2hMoRk=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Y11gMthISzuEkP5gRyzEe8ZmDvlU/ZP3IPk6NYWiJ5f+HfG9Wy76GbMKcnfy79DlN IFN92kmRJf/hyq+Fn7TqyZTrI/hXoUf/zxJwvTM7ML92gnZvAJlwbL093NTt+gFP+b 6cSUBkX+kHriStUq1oXMz1VTv14GI+HpC2bFl8sM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 1508C3858C27 for ; Sun, 21 Nov 2021 10:58:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1508C3858C27 Received: by mail-wr1-x430.google.com with SMTP id t30so26895466wra.10 for ; Sun, 21 Nov 2021 02:58:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=osmbmmB8bS/SS5DLdGzEA2iS3YflQaUP7X5Ny2hMoRk=; b=XjpUbmXxRuFT0OGSC5HFYgusUVL+Xjk14Q6iX2ROOjPsWBD2Yw4mrv2I+QAVJdkFYe q+MCPr8p4dL8IgwsEW2GbQ1tXxMyMQ2YcZeafL9ReUQ75H4SXk4NPqQcLCaRqCUSKQLN d8Fxqd+IEgh1MIq7mMXo437hf+L3mDzSRGPXx6E1iLlWWbhZ1kC7Q9VzkaoNpjxbi752 oxHodF155RsKkUN4ltRDLIl+eirsnSr5utcq4BKw3FZa8FsACJcAQHBfqLjmFmoKh3u8 0tQBM/FtDaJQ9Pod22L7pc5XycLPnqkXWj66EHtN1P6U1zk9VXl5YsiQzI3aUM3RURnk 30Mw== X-Gm-Message-State: AOAM530hI8y2m5XcYyxoI4DTtZQDLey9tsNrN+XqQtbDe5mVenUBGrDb 8nhJhHnKBrmUkuEJExnx/eC9UygEzCI= X-Google-Smtp-Source: ABdhPJzKbIt7Ie2cLcf5BnR5YqhujsLDYcWb0kMUxx3YMs3v6RYD0ILqrqk7Hi2lTzqdjGl093LACQ== X-Received: by 2002:adf:cf0a:: with SMTP id o10mr26664196wrj.84.1637492336619; Sun, 21 Nov 2021 02:58:56 -0800 (PST) Received: from nz.home (host81-147-8-123.range81-147.btcentralplus.com. [81.147.8.123]) by smtp.gmail.com with ESMTPSA id c4sm5521370wrr.37.2021.11.21.02.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 02:58:56 -0800 (PST) Received: by nz.home (Postfix, from userid 1000) id 8255E102131D0; Sun, 21 Nov 2021 10:58:54 +0000 (GMT) To: gcc-patches@gcc.gnu.org Subject: [PATCH v2] Fortran manual: extend deprecated BOZ examples with X'ABC' Date: Sun, 21 Nov 2021 10:58:51 +0000 Message-Id: <20211121105851.3202796-1-slyich@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211121104751.3190936-1-slyich@gmail.com> References: <20211121104751.3190936-1-slyich@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergei Trofimovich via Gcc-patches From: Sergei Trofimovich Reply-To: Sergei Trofimovich Cc: Sergei Trofimovich Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" From: Sergei Trofimovich gcc/fortran/ * gfortran.texi (BOZ literal constants): add X'ABC' to the list of valid examples. --- gcc/fortran/gfortran.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 326470964b0..f7184147a82 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -1465,10 +1465,10 @@ dependent. Gfortran interprets the sign bit as a user would expect. As a deprecated extension, GNU Fortran allows hexadecimal BOZ literal constants to be specified using the @code{X} prefix. That the BOZ literal constant can also be specified by adding a suffix to the string, for -example, @code{Z'ABC'} and @code{'ABC'X} are equivalent. Additionally, -as extension, BOZ literals are permitted in some contexts outside of -@code{DATA} and the intrinsic functions listed in the Fortran standard. -Use @option{-fallow-invalid-boz} to enable the extension. +example, @code{Z'ABC'}, @code{'ABC'X} and @code{X'ABC'} are equivalent. +Additionally, as extension, BOZ literals are permitted in some contexts +outside of @code{DATA} and the intrinsic functions listed in the Fortran +standard. Use @option{-fallow-invalid-boz} to enable the extension. @node Real array indices @subsection Real array indices