From patchwork Mon Mar 20 20:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harald Anlauf X-Patchwork-Id: 72434 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1412537wrt; Mon, 20 Mar 2023 13:06:13 -0700 (PDT) X-Google-Smtp-Source: AK7set988FtUTDb6yByXrOvKUTiZWX6+ou8mGwKpTifiKTQm6+taN7zun2WzNGDMOCy487DxxKPV X-Received: by 2002:a17:907:75e3:b0:931:54:f24d with SMTP id jz3-20020a17090775e300b009310054f24dmr9709524ejc.22.1679342773050; Mon, 20 Mar 2023 13:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679342773; cv=none; d=google.com; s=arc-20160816; b=jsL1SzMJk+HxugCpQfMvaSN7jY0PyLfyRBhUeeD6L3zRDzfY3rBtlrM6ksvFyybc0K ehiaDUwjWuQslLn5RVuQC/hHPYJPlWPNuxM+74098VBjZT7QII7tgwlloa/w6bcoL/xF RLCUBMaIMML/94IOnOJlz2U/i4KnppbWcR02zERRhFQ/zSoN0wk43CdqoPTxFSc8FIG1 WsYefm7MyZNiJ4EkObJCKwhlCcYukzmAHrzWwgKUMa+WOm1r+moUZxTa6saVHKyLsd8H ZZaOG0igt+rccOQpwfDXwnw2+DFfuHR1TSjLbrQ7lQfE71fLWqpC2Q34SqVqlOVLFhih nEEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:ui-outboundreport :sensitivity:importance:date:subject:to:message-id:mime-version :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=8Twpwnlye/e3XBMTLgr3r8BUJkDdKokdurmxqp0qGQY=; b=FPbFOdHaVyNKpPP0TzDAM2GtRV7OyQOd8y3SPiD6gZU5d8MHiXFhXB1p+t9wKMZrcW x3qPoV67f1pz21cHdYjAB1x9K+Pzfi+jq/tQiqcJJlGlFRJMJ9JLNay6RMNkfiQPXtf/ ruk2cBaVDrXmiKG54zfAFzIIkKHL4043evhQK8aekTXzf+IrTqZtsuq8Hj0KQW3xI2NW 53lzxor5O6nZY9L9ErR9TRc6UBAKu9KSeAD65ak84IUm/aftesbH3XdgsojbexZOiZgK Wm9hadDyIHSV9l3dUS/qjEoQWnBolmZiRxHpzcWMaALZk81ybWStKpcFQFyBVqYXll1x gU4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=clpYLVil; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ib5-20020a1709072c6500b0093346a7bf34si5842951ejc.406.2023.03.20.13.06.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 13:06:13 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=clpYLVil; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A4D638582AC for ; Mon, 20 Mar 2023 20:06:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A4D638582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679342772; bh=8Twpwnlye/e3XBMTLgr3r8BUJkDdKokdurmxqp0qGQY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=clpYLVilp1MvfgaDG5FH55MFA5tQ+qsbtsjiuySw96rislKHqr6uAlQ++WjJ/vjjf UpDymtQDV1SJJDesUNJIAwiMbZhyZbwIz01PF9UzgEPQrXaQbmD3PN8ND9FFIYH3Cg zJqr43hCNNkGX+3BWihEpyK+/E+s+DF6+bnpb9TQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by sourceware.org (Postfix) with ESMTPS id 4E99B3858C5E; Mon, 20 Mar 2023 20:05:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E99B3858C5E X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [93.207.84.34] ([93.207.84.34]) by web-mail.gmx.net (3c-app-gmx-bs21.server.lan [172.19.170.73]) (via HTTP); Mon, 20 Mar 2023 21:05:07 +0100 MIME-Version: 1.0 Message-ID: To: fortran , gcc-patches Subject: [PATCH] Fortran: fix documentation of -fno-underscoring [PR109216] Date: Mon, 20 Mar 2023 21:05:07 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:DRc6foSwhhp6EVh+84YRZwbQ87igjWA7xXtAGhUehNMY5+fCdz5kB0tahjOP1hzXXjb2s 7uA3TKcXP1taX7qcj0aFbTB/znEPNHbuPCzuHr3spRlvkyRU0/DcBGDG/7W3PBUjKWZWqUuabNm8 ruaQOwg9eXD7u5oQKQ3bB5G2ihVt5GeBB0yUDSusu2n4KTPAt2OkcNv/Yl26zwKrO0Ugkm0Z7qhy MUtT+/T/q2ruAyBvf6c+q0kg3aU97zZcOtLQG4IX7Bo7Ldpbk2BxpZDS+kVQYFqEmjkLXWyhvtT7 Sc= UI-OutboundReport: notjunk:1;M01:P0:nWTZ45C6/f4=;tFXUpOjgLXsEs/aBvRGp0JIk/82 +3/ou94G+ymaypi9IHuUOYxah/8tCycOrObvC+amZD8uDL1P3EZSCRN+098NPQ7jsr68tNlCs iHW1GzsSzV+xRAS/ddDZDAx5rYkq6Eon/m///XEgtdvFqfBZvN3neRzH3z5u96xv8XuwWwrat +VmTimPLTqkkLnwy+gIEal5oFKVnEgX2pLBVsmq3QRl3mgb3gZDjroTZKh+C9Bc635xfNfHbM TCjIZqAcNqh53GeQ0FqAZRz/08qxo/sILigUwlqKlR6ujGXMpm9nK0K7qyMHuqVqUBWD2JSPg +mDI9HhKSbu6yzx8fefol6YcZvPveZrAiIawoUvcmgNOHUd2mslFjSf5qPXEaZvjnfKRK1VaG Sd5KV+gDdGTqOZHRaDusYLhbUt1peyJmFxXQEnLTChp89YYkdgZMzbjRM6XyY9Z23Y5/hk1cc OyI0ggqcJ/XHfPS0c77SbeSSdHLkhLclJFlfyqr41yhuOVYaGHXJZMbZIBIABX2/2KJS7oSYC bh8Jx72pwIoQ+z7CHeu5F2oKVuKSSCmqi6+mRYOiJSOBuWk6QafUqWubFP4sscGl27tUz8QBX QjZ8iFw09u1DDj5dUal62265OUf6PFpWc8ZRwdLpU4iuhTcn1nA14qtz5ItP32qfigGhIsWv/ mMFNHumfhUMboSREIk1EjrJE3Hhwhnx2jkgu9LfS41JRGghVKNrg8CtU4oY4KMsbAbTJF3vcy cO7urFj+Lyw4ZNFgDLTSrbXLbk6tucPdBkTO2YTUojFfakflG5iAsYgztKzegDu/wHGUpc7+p FkwGBPYgKFjkweasABKlnjFg== X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Harald Anlauf via Gcc-patches From: Harald Anlauf Reply-To: Harald Anlauf Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760918527267403905?= X-GMAIL-MSGID: =?utf-8?q?1760918527267403905?= Dear all, as reported, the implicit documentation of -funderscoring, which is found under -fno-underscoring, has gone sideways long time ago. The attached patch should fix it. OK for mainline, or did I miss something? Thanks, Harald From c296196044248f974b4907bb2f5bdeeea24adb5b Mon Sep 17 00:00:00 2001 From: Harald Anlauf Date: Mon, 20 Mar 2023 20:55:00 +0100 Subject: [PATCH] Fortran: fix documentation of -fno-underscoring [PR109216] gcc/fortran/ChangeLog: PR fortran/109216 * invoke.texi: Correct documentation of how underscores are appended to external names. --- gcc/fortran/invoke.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 5679e2f2650..cbe7f377507 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -1573,7 +1573,7 @@ Do not transform names of entities specified in the Fortran source file by appending underscores to them. With @option{-funderscoring} in effect, GNU Fortran appends one -underscore to external names with no underscores. This is done to ensure +underscore to external names. This is done to ensure compatibility with code produced by many UNIX Fortran compilers. @emph{Caution}: The default behavior of GNU Fortran is @@ -1596,7 +1596,7 @@ I = J() + MAX_COUNT (MY_VAR, LVAR) @noindent is implemented as something akin to: @smallexample -i = j_() + max_count__(&my_var__, &lvar); +i = j_() + max_count_(&my_var, &lvar); @end smallexample With @option{-fno-underscoring}, the same statement is implemented as: -- 2.35.3