From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 1DBC53858C54 for ; Fri, 17 Nov 2023 19:07:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1DBC53858C54 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1DBC53858C54 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=116.202.254.214 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700248058; cv=none; b=EwGmUy8MZHWDJDIN0P5a6zAxvl6h+1ikLn1HjiwkqxRLli8qux9AzeCIMMKdrCmfraOZXpCwQwxHH0xd/PO1B0U/zvptWjvfoTStu88EcUX986OvpDvzs57c6hQBk+LgPKzjWOeiZK2ymThp67X3f4Hbmv+6zoksH9x84P3oBWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700248058; c=relaxed/simple; bh=AYDv6FRVjstLiuUfYnoLvYXTLfROe20G41+wb7KvB9w=; h=To:From:Subject:Date:Message-ID:Mime-Version; b=hnQjpgn4oDU5mrJs3HYi4BRO4dS0Cfoh8/+kUcf64PgT496FiwAzxjH/nB2+iZLRnFGpR11msut7NZvMEWG6H9mXIcvobjj/TJuAbWRTxB7CfgudB30OYniNOF7l8q+y8xI7LM9RsVQ/F9qF1F9x7meUzrhmqd/zCr6UXj8UnbM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1r44Bk-0005VX-1e for gcc-patches@gcc.gnu.org; Fri, 17 Nov 2023 20:07:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gcc-patches@gcc.gnu.org From: Harald Anlauf Subject: Re: [Patch] Fortran: Accept -std=f2023, update line-length for Fortran 2023 Date: Fri, 17 Nov 2023 20:07:31 +0100 Message-ID: <8473b1ba-b29f-47a2-bc49-427838db5625@gmx.de> References: <750b022e-0291-4d35-9cd1-0957023cbb4a@gmx.de> <6b62f178-e3c4-4bdb-b7cc-eb57477cd27d@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <6b62f178-e3c4-4bdb-b7cc-eb57477cd27d@codesourcery.com> Cc: fortran@gcc.gnu.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Tobias, On 11/17/23 12:38, Tobias Burnus wrote: > Hi Harald, hi all, > > On 16.11.23 20:30, Harald Anlauf wrote: >> According to the standard one can have 999999 lines with only >> "&" and then an ";", but then only 100 lines with 10000 characters. > > I believe a single '&' is not valid, you either need '&&' or something > else + '&'; thus, you can have only half a million lines + 1. after looking at the F2023 standard again I wonder why they did such a disservice to compiler developers... You are right: a single '&' is not valid. 6.3.2.4 also has: "When used for continuation, the “&” is not part of the statement" And 6.3.2.5 (also 6.3.3.4): "The “;” is not part of the statement". So a million "&"-continued lines is possible in free form. For fixed form, 6.3.3.1 has: "If a source line contains only characters of default kind, it shall contain exactly 72 characters; otherwise, its maximum number of characters is processor dependent." I wonder what I should make out of this... > In the code, I still use 1,000,000 but now with a comment. Yeah, for the time being this is the most reasonable solution. Let's claim that the 10^6 line limit is the new GNU standard ;-) Cheers, Harald From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by sourceware.org (Postfix) with ESMTPS id CAB6C3858C5F; Fri, 17 Nov 2023 19:07:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAB6C3858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CAB6C3858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.22 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700248061; cv=none; b=sdmHucBk4Qdqlh096sCCELL9x9V8EiaMMXWQT5ft/MYalYisTCkkEsfFCMgPfDs5uIvHUGi2AwBvBc/s9xloxBwfLy+qLpTeoXoFcsbdlRJW54PkmBC3MxIdzQwlhqRbGg8DrskpAlGNWFwTJ+g5tc4cm12xoc/AEkh40Axxhec= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700248061; c=relaxed/simple; bh=RCwHjdmhKzaTQKTRJ1rjUYvXMU5OVR4TLhic9bDkn3Q=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=v52Hc9fy578T6FGEHRqZbbpORgqTfUaF3LtDiLJoCm40/JwS+SRIDRuktc1BM/JGRP1+zv3d6OZdz8ZG5LUFQuPKpgw8su+VuhmpzdumI1ZCVbRMlqFf6a1QOpC/e/enXMKS7l28+2GfQAR0Xmo2kIM1E+CZPSNgpMZTUQzBXtE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1700248052; x=1700852852; i=anlauf@gmx.de; bh=RCwHjdmhKzaTQKTRJ1rjUYvXMU5OVR4TLhic9bDkn3Q=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=blLba82qRmI2d+Y2Q6vjTXNy1S4UjlAs4UfE76D6ELFJUBI5Ah2lDAqWuorB38qp 0t918yfs0DxHgdouQW0lFyDR8dtnkK5A7IkBnHOXhvU+IeduDoDNfXSmgznuQliw6 wIXMe7frk7pMrrw/jGK1HP7HU/e1i+usHNoiYi8TqfMa89QDV0A/3zexOavE4rmRY 3ljfLy3E44ngD/IJ+8DYWRlsBjzylvMDD9SGwTXg0nBgRrRGLeVLN7De+7eS2BlY8 WptjvBkuARLINJiLFCf/52a0fP6Eb8Shs6BNYvN4Sade9BkhKxzZF1EXHR349Hag3 /g5Mp2mQZng7Au+Izw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.29] ([79.232.154.237]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mplbx-1riIHJ1lKn-00q9To; Fri, 17 Nov 2023 20:07:32 +0100 Message-ID: <8473b1ba-b29f-47a2-bc49-427838db5625@gmx.de> Date: Fri, 17 Nov 2023 20:07:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Patch] Fortran: Accept -std=f2023, update line-length for Fortran 2023 To: Tobias Burnus , gcc-patches , fortran Newsgroups: gmane.comp.gcc.patches,gmane.comp.gcc.fortran References: <750b022e-0291-4d35-9cd1-0957023cbb4a@gmx.de> <6b62f178-e3c4-4bdb-b7cc-eb57477cd27d@codesourcery.com> Content-Language: en-US From: Harald Anlauf In-Reply-To: <6b62f178-e3c4-4bdb-b7cc-eb57477cd27d@codesourcery.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0A1jzKKl2B2/IHo/5MCMyADzVzxQm3kC4/grkiabVVXbj5eIm+u i44TxwuaZe2Epu48gLI0GMQ2Q71Fq5CNxXoxdFfpIEOmccHJEVztoh8JFiclW/gn+9r0DGo PNX8o+Dt0cXYbHdIT+7Wn8sQ4OiqnFSXVBU2k65PqttUZ9LIEnRmMYJr+UtqQXelN9jZKqp m/OjVdqCRMQxGUi5MUgzg== UI-OutboundReport: notjunk:1;M01:P0:3Py6lczsly4=;jpAUeVjHO0MEVw9IUtKknJrT5la 7+sftChKbxgFexYXH29xUP7D6LyWDxlWj96Mx4wymnpBk4SkcDheUg86q1Gsur2Tq3BuNzHk3 tfbqBEByCgD0wjAmcPw4zwbQS53IhQzalpT1JVOCduu5yw7mNa/gMH1K5hrprAGViS60zM035 JG6cBeraT0I6fsv1/fS8yb58TerTfXsL44U/KtkhMp+pcyUQWu5y6O98Uu8imAly98lqxKzMJ nwso/HTHik2UKEHBqUq1TXd4Wt6J6BbgGiImRtRAJliKHvFhcBuNx73+B+UiWfLP+wCn3tXxO YnfKtaET/bf2h9p13LGg0C0vvmKq+mUn8sjCZHgiZyuHuk/7rVOwVuS4e5FOLJT3Yt6y8voYZ uNlIli/ll03VRzn+T64PoKypjPf/LNkyWLHwKu/K+YUU75ANJG1vhx9KAibRi5r+o7F7z3hjs wFvjt2O0BSSukGp5Nwvdq2I//WYEKbtxlJfYRurX2yYvSEVIZYYra5pVSR0KFtcaV7ILnLraY /r053HBuZnL5Sm/0aQv0FBAC4xMRLtcSog4UiSrN7oALAwvMKiA+ioW3PbGvKaBSKzjD6qZ02 sGsFSxwnBauKaL3rMVbAU5gWzR4BJSHE4xw8EkVYLyVRHT8V7P5ta4GDJ7x/xJ/PKbigLOFMk lQKvmjgtHWJ4yAnk3nDuCUc7V/3JpUE6agxJ4redqyAU6jdKVyHiL3tCECbydL7tLlSL7bdA6 HkiTbtCU8FFI/yJLoNJ6LjByt7wuldO7rwakX44Hv0qUNdLt5+vFTFock0eJsj2LdbyJBtAoA kMjs5sf6jvVTNH+WYS31SiGrDXcxeweJCvwpdby4X/2CfoIs9qBfAsoV/leS/7gb4qYM33eRQ DaBiQaLaImIkUOdzjNA+u7EHMzNX+uN/0AuTvpeWnTMstqfktseMdOIfkNnaogWFN4kIxCcCx DSyuIEyc8ow10h81DKROB/CTwOk= X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Message-ID: <20231117190731.lVduNtRBbrNVEzVZgCEcjep2qMp35T5Yu_kZ0OSZ5n0@z> Hi Tobias, On 11/17/23 12:38, Tobias Burnus wrote: > Hi Harald, hi all, > > On 16.11.23 20:30, Harald Anlauf wrote: >> According to the standard one can have 999999 lines with only >> "&" and then an ";", but then only 100 lines with 10000 characters. > > I believe a single '&' is not valid, you either need '&&' or something > else + '&'; thus, you can have only half a million lines + 1. after looking at the F2023 standard again I wonder why they did such a disservice to compiler developers... You are right: a single '&' is not valid. 6.3.2.4 also has: "When used for continuation, the =E2=80=9C&=E2=80=9D is not part of the st= atement" And 6.3.2.5 (also 6.3.3.4): "The =E2=80=9C;=E2=80=9D is not part of the st= atement". So a million "&"-continued lines is possible in free form. For fixed form, 6.3.3.1 has: "If a source line contains only characters of default kind, it shall contain exactly 72 characters; otherwise, its maximum number of characters is processor dependent." I wonder what I should make out of this... > In the code, I still use 1,000,000 but now with a comment. Yeah, for the time being this is the most reasonable solution. Let's claim that the 10^6 line limit is the new GNU standard ;-) Cheers, Harald