From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01on2095.outbound.protection.outlook.com [40.107.107.95]) by sourceware.org (Postfix) with ESMTPS id 27274385500C for ; Thu, 29 Jul 2021 10:58:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 27274385500C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=unsw.edu.au Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=unsw.edu.au ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C9gPW1QusJp3q6dVATmkd/Jq+M4NPAZA7LtaLWUvXmcmSs/hlSg93iLdzoblqiKoF4aK+ZsxkbXAspxZid0q1xRDnMQsGvnl5IY9uHv/QL5k7JvVDkDJ8SH5mvTMcdB/UaR+1dlZFXTjk7Nn7FUIqBIq2f3SyoJlx7MsgUIgA7M+f8HVAjdDbwlTIQ31SZ2t4Wt3zfuVwm/uPy3KlMPWfeLqgDrxsPRzQhBeGn9KFVSXbrWJBwHegiQmmgZURsXovCTAu28Cvt9v++kp3zekuF6YRxPua0GkGUr/YzD8+dezGfyKjW+xFeATVY3+y10ldfhPuZOH+cL7lTJIWzZx4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+ed8NwfSS4FtPtNxYCdip5nBMjf4tb/k7ZNutOpidkE=; b=DUh+6BTt4uAKwefRYLFoAvFOfL4Ym8pL66DwQBXdF6dwSLRoWc0U2ryWb4JEmABJvGBBX3uJnruLk/3U9KHnmE4xhP65pDrZhLU9vHl81TC5qBDNE5DslDnFmqH7bxUkezIHpCcSJORz96Ixw4S3AH/WfYtK6Wb5N/i60z1pJFtMYAk0XGAxLHlU5ia8Jpt78wcXptl5LF9G+5SqnV3k/vvydtYvSqZadYfMEwuC9jzA2BlGd2x4gJBO87VlY5iub6/uPN8+bymQU2FVGy/uADHBFCG7t1Zo/I6F5cyNJ+/HqhJEIWq6Cynz//iV+6FIH3BxYBpfG1vVr6BErP46lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=unsw.edu.au; dmarc=pass action=none header.from=unsw.edu.au; dkim=pass header.d=unsw.edu.au; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unsw.edu.au; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+ed8NwfSS4FtPtNxYCdip5nBMjf4tb/k7ZNutOpidkE=; b=H6DqOkROBJW7ga7wrkoro3rjOzlKtq/tOEBKkbpitBOkIxyI5LnziJ5mFsH4qEqpHpgwlQWEDHsBU+2bKhUf+X8ox1VVhKkpfzmFw36gcn/Ev8Ev9CC8bxg5soVxBT8CKV6fmlBI5skkwHDXEKKxhJIZMpLC7XzXLPxJKRkS1MY= Received: from SYBPR01MB4348.ausprd01.prod.outlook.com (2603:10c6:10:54::22) by SYBPR01MB6843.ausprd01.prod.outlook.com (2603:10c6:10:116::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18; Thu, 29 Jul 2021 10:58:40 +0000 Received: from SYBPR01MB4348.ausprd01.prod.outlook.com ([fe80::6110:e262:9aad:7f6e]) by SYBPR01MB4348.ausprd01.prod.outlook.com ([fe80::6110:e262:9aad:7f6e%5]) with mapi id 15.20.4373.021; Thu, 29 Jul 2021 10:58:40 +0000 From: Lawrence Doctors To: "gcc@gcc.gnu.org" CC: Lawrence Doctors Subject: Curious Behavior with Fortran gfortran-10.2-catalina.dmg on macOS Big Sur Version 11.4 Thread-Topic: Curious Behavior with Fortran gfortran-10.2-catalina.dmg on macOS Big Sur Version 11.4 Thread-Index: AQHXhGFlv7SsrAZqyUC/uSmMExoC5g== Date: Thu, 29 Jul 2021 10:58:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=unsw.edu.au; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 30e3f57b-3163-4fb9-745a-08d9527fd33b x-ms-traffictypediagnostic: SYBPR01MB6843: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: b59ajPuac9aWi8yfnJwVeVnXyY9rmj2Z/jwIqZbnYLZJ4KPUXLXIdPQ7WpgyqLxJR7xRf1i2Rqt4SltIGrdrKHTKV7Xdjt802bz268t2EMbOByvHDGh9mRsPGfS4WdfbmlAv9XlOta7j8nQWzt41ZjWsWZD1BoQUe4Rg1eBi2G1SounMgzMIUI+pCh+jXqxtweozmOIpuvAOzw0KPE37AK3yP05j+MfsH5jAO9BWSsqp4cmulY6R6yU3mfYG959aHZdHlFQaT2LgcaC9B1nVZW/rD9hDt36ktTVMn5OqlElfkrlkQqs0TvxHpKHu+vCedkCiHkiK3UIqJ2MR8CcqNSpSks68d6pWY6QyQkJ8xBgbkS5zGT9MiFVXWXKGYbZC+/fXQ44T/pEpHeg3LpPphO8gdd3iR6UkW8oBWmNHbgs8yHRvGWvkwfwJBOU9x9ZzRk3ZtojCjppjRBoqnxCrysOp8noAxbrfK0AypThlysnVjJOEIKMMTEpcNlRuglv4r4bY0p83KJLSZ1aYznlfnRYRR/P1XEYq41H6iG0kgNYj/j6Nuvvjx+nlMjFstjf7S1+66tx3J00yYQL3S6j3REE5zO7wY/eSKt4/OZJnzhC3YLh6ImjIUYG5UZALLlKYj3efUjiQi+SK0pykWtgy87SKLSEvrO5t4dAnYLMmqSXUg9WBEtya6P4DSpy4itK7KbbmGmZI4sQeizVwN0ROgQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SYBPR01MB4348.ausprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(366004)(376002)(39860400002)(136003)(71200400001)(38100700002)(6506007)(64756008)(86362001)(478600001)(55016002)(66476007)(66556008)(66446008)(9686003)(6916009)(66946007)(33656002)(38070700005)(107886003)(8936002)(2906002)(76116006)(786003)(5660300002)(52536014)(122000001)(8676002)(186003)(4326008)(83380400001)(7696005)(316002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?kRPponkCNDUWxoHvh2KIuXxamaG3aCO8qLhyxSKQvewpUxGE7b24oP3f?= =?Windows-1252?Q?Y86gEKbMo/X2v5AogPI0I6qM4ZPyUMfV1xZ5LTr84O8bDwiYWCD7sP6h?= =?Windows-1252?Q?P4rvWshTcwKLE2/CFVNM4vWwjbnRuL1rj6UWraLcnlMml2gxK7LBEc+o?= =?Windows-1252?Q?IIIGckwf4dtfzAH+BBIQLLin2upR+XVj9ChsT3+p4Q//bxQL4OpQjVi2?= =?Windows-1252?Q?vSsRaU9NL6R9CbYqwvqq0LeD/slG6rfbP3X/uhX6FKjqH6cnweH6R3rK?= =?Windows-1252?Q?2VkX8G5udjXVEH1MjMTCVg4OCm1m/AyIujSKkZHS8Gf9c75bEjcVvme2?= =?Windows-1252?Q?7ONvGZH4p9Igz3bjoBt84pTp1P6sHo2XeLfUBYOyMZ041/T4DufLpGVm?= =?Windows-1252?Q?KuPt9bhNnQztJS02hlmtxVs92Kxuu8qpEyEfGul+VMEPmwXx/v8w5FmJ?= =?Windows-1252?Q?g2Xvyb3NGHCq8Lf90ZSbOqDnqgEWmK/W/fCFxFxTYM98NJkaG2VX2cDC?= =?Windows-1252?Q?m//nFyDQdCNyb6DUpOMtVpa9Uasl9TcrXkEULkGCwKrpLq2lD9Yqq8xG?= =?Windows-1252?Q?37n+Ri4NiP2aLDwFB29Q7EiWcjgtwzx3Pfb5PCPGngM6C+1ewsvg990D?= =?Windows-1252?Q?e3eZdyhHYejJem5qqWX1xg2uo1Sa61+EcxX7wKTdsUy9fUNwTpYRADYO?= =?Windows-1252?Q?HJQoWMPfc3kZcIJWu9shTXf+FYUkU1Zc/yUEGFBmIHnzOoCJ4hB+oBhk?= =?Windows-1252?Q?yvVaHjyjW/mtZdSEmmaCuAFzSw+1Mk1q8QhiHKFTOkVj0LHLtuov+RY6?= =?Windows-1252?Q?9o9IXWWWatoyR1Xr0m7Um/AmbiE+RnCkUnwxMLr+vLgsZMHwK82awob0?= =?Windows-1252?Q?YOZsEHTXgxEfYS4r4ZmYcFjjAeb2KkopTHXWrdYAnVb3wzAAE1SMo1JM?= =?Windows-1252?Q?JGFsAxs4KxFdExPsTfAO2p9gjbnZ8mjOmM5gjr1+6AFc+xqvcy5M3P1Y?= =?Windows-1252?Q?sCL2J6IQ2bcIX/8zjI8eNzPcl/PouNlJIeuM3N2H3gZvuhq8Mez6PAIK?= =?Windows-1252?Q?w+vU2gD0Ynq06/b7eJCLoZ+hAvsvD6gouKJ0JniXma6ctlrYHk1TlTQ0?= =?Windows-1252?Q?aS0fWOOiJZLN/ZdkFdMHV3Zy8c94j2C37ZrKgNjiVHojHT9YE+y3yq1I?= =?Windows-1252?Q?LCGQMlXNIc+o42d1sEuW1c77biS4oCBj9uvAMCeNXEpcX4JTAZYZsURJ?= =?Windows-1252?Q?ygxziwtFOVMQ6FC0Cplt9dIn5E/oZCDabi8K0hSXbD31gknEV0Q7P3Sf?= =?Windows-1252?Q?V8pIXHWSI8RilLn6fMuRU8wH0jXD24C8E46PSzO9TOS1Tf+WvzNH2/lB?= =?Windows-1252?Q?mS+3llroINHghmd6OJY19SweG69geMzgHGAN6EEDZ5iowJ01MdtzD+Dn?= =?Windows-1252?Q?hSgQzFNrRnrxKChlmpkpSRmmar0ccXmz6+lTBQ7KzjnmsopVPVW+Fc67?= =?Windows-1252?Q?tzsPnM2D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: unsw.edu.au X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SYBPR01MB4348.ausprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30e3f57b-3163-4fb9-745a-08d9527fd33b X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2021 10:58:40.7359 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3ff6cfa4-e715-48db-b8e1-0867b9f9fba3 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: F/m5DAsi41aQoMg3EOVoIwUYNXNmKuhdGtlU00REtkRFlGYiKivvP8ZO6PooxijrosYETOO25xYOQkrGsAMcKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SYBPR01MB6843 X-Spam-Status: No, score=3.1 required=5.0 tests=BAYES_50, DEAR_SOMETHING, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2021 10:58:48 -0000 Dear Sir/Madam:=0A= =0A= I would firstly like to thank the folks at GCC for their fine work on devel= oping the Fortran compilers, which I have been using for about 12 years now= , on a series of four MacBook Pro computers. In total, I have had over 50 y= ears experience using Fortran, this being on a variety of different platfor= ms. I therefore do consider myself as being a very experienced programmer.= =0A= =0A= I have recently installed your gfortran-10.2-catalina.dmg on macOS Big Sur = Version 11.4 with a 2.4 GHz 8-core Intel Core i9 processor. The computer ha= s 64 GB 2667 MHz DDR4 of memory, with a disk capacity of 8 TB. During my pr= evious experience, when I switched to a new computer on about six or seven = occasions, most of my programs (now 553 in number) compiled successfully th= e first time, but some of the programs required minor modifications. On thi= s occasion, I encountered the following new challenges:=0A= =0A= (1) I see that you now check consistency of the argument types and rank, in= CALL statements. Thus, if an argument would normally be an array, but is u= nused in some CALL statements, my practice was to use a dummy argument with= a short name, such as "d". This has worked for over 50 years without troub= le. However, you now check for consistency. Obviously this was easy to fix,= as I simple declared a dummy array in a DIMENSION statement with the name = "d (1)", which solved the problem. On reflection, I would say that this is = an improvement, because it forces the programmer to think carefully when wr= iting the CALL statement.=0A= =0A= (2) I encountered a curious failure on compilation with the following state= ment using integer arithmetic:=0A= n=3D (m + 4)/5=0A= with the message=0A= Error: Integer division truncated to constant =912=92 at (1) [-Werror=3Dint= eger-division]=0A= f951: all warnings being treated as errors=0A= =0A= This error only occurs if both (a) the value of "m" would lead to a trunca= tion (say 7 but not 6), and ALSO if (b) the value of "m" was set in a PARAM= ETER statement. I can work my way around this difficulty by rewriting the s= tatement as:=0A= n=3D int ((1.0*m + 4)/5)=0A= but it does seem clumsy.=0A= =0A= (3) The new compiler seems to dislike large fixed DIMENSION statements, suc= h as the following at the beginning of the program unit:=0A= parameter (n=3D 1050000)=0A= dimension a (n)=0A= =0A= The compiler then issues the following message:=0A= 3 | dimension a (n)=0A= | 1=0A= Error: Array =91a=92 at (1) is larger than limit set by =91-fmax-stack-var-= size=3D=92, moved from stack to static storage. This makes the procedure un= safe when called recursively, or concurrently from multiple threads. Consid= er using =91-frecursive=92, or increase the =91-fmax-stack-var-size=3D=92 l= imit, or change the code to use an ALLOCATABLE array. [-Werror=3Dsurprising= ]=0A= f951: all warnings being treated as errors=0A= =0A= I agree that the message is clear and I was able to follow the suggestion t= o use an ALLOCATABLE statement, but I still wonder why you consider the pro= gram unsatisfactory in the first place. I can understand (to some degree) w= hy such a large array is frowned upon, because one should economize on the = size of arrays. On the other hand, if the use of a large array makes the ta= sk of the programmer easier, it should be allowed. Furthermore, an array si= ze of 1000000 elements or so is very small, considering the size of the RAM= and the disk available nowadays.=0A= =0A= I would be pleased if you have the time to respond and I would like to expr= ess my appreciation again for the considerable effort that your group has i= nvested in the Fortran compilers over the years.=0A= =0A= Sincerely,=0A= =0A= Larry=0A= =0A= Lawrence J. Doctors=0A= Emeritus Professor=0A= Naval Architecture Program=0A= School of Mechanical and Manufacturing Engineering=0A= The University of New South Wales=0A= Sydney, NSW 2052, Australia=0A= Email: L.Doctors@UNSW.edu.au=0A= Telephone: +61-2-9371 4158=0A= =0A=