From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 230B9383E81D for ; Mon, 1 Feb 2021 11:52:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 230B9383E81D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Tobias_Burnus@mentor.com IronPort-SDR: fM+eO1Ay6a3o9RdqOIsPsYHbt+00bHuGi4v0MbTG5TQ95SAVrCJ/2LxuPht+JO+4MqD2J6Wq+m kn95/9ZAEDMRK/ZfpMihaZfPbwEuFMSYJTIEEdoFlK54z3KEb446HHdylIwIcasYTgFoWeXD68 Ll257CO7nqTZAHhzSGNBEtMrJPfVB2MaELHfmawKYfZeAcUKW7ieRLNaJZz240o0aXXg4fvRz7 hYlS5JKp4QElSlUlbuextfkaGwqkLWBml35RuAzXsTQx0oR3/me2O8GfroOVsyS2rQBi2JNlMS tKk= X-IronPort-AV: E=Sophos;i="5.79,392,1602576000"; d="scan'208";a="57627629" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 01 Feb 2021 03:52:28 -0800 IronPort-SDR: 4xVymdxzWX3rj9lsx9MqfYHxkQBP3H0rw4ky77SmRgz1EfPBTwAXAFFNFzYr63lAbildahWsSg 0C3eeCxefYsGaKsKzZi9cKg/+XKuQs6WiQ6WpBQzGqDwmApmYosMz1YvgQi4yi3/Bjh8bx7lco 8z3E+fEqiCYs12RJx0x3apKbREoqEEdqD8jQ80oVM/gpgDSDHH0MwBofKiNGwxrunSMio/x+eo MGSikzW22yhVBkybWp/QYW5vZH6L21gf/kWQzL1qTnw4ZyXYKkBJfUHAfHH0rbCOQsN3HSYHKp ygo= Subject: Re: A question about coarrays and -Warray-temporaries To: Thomas Koenig , Jorge D'Elia , Gfortran List References: <121178681.597.1612108263047.JavaMail.zimbra@intec.unl.edu.ar> <9d298701-38a5-c2c5-1daf-7a2dad754369@netcologne.de> From: Tobias Burnus Message-ID: Date: Mon, 1 Feb 2021 12:52:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <9d298701-38a5-c2c5-1daf-7a2dad754369@netcologne.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2021 11:52:31 -0000 Hi Thomas & Jorge, On 01.02.21 08:42, Thomas Koenig via Fortran wrote: >> I have a question with -Warray-temporaries in the test below. >> With the AA coarray that warning appears in the first loop (on its >> local part), >> but not with the BB array with the same task, i.e. [...] > It seems that dependency checking does not detect that no overlap > can exist in that case, and so generates a temporary. Probably, > dependency checking was not updated when coarrays were introduced. > This is a missed optimization, not a correctness issue. I have now filled https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98913 Tobias ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstra=C3=9Fe 201, 80634 M=C3=BCnch= en / Germany Registergericht M=C3=BCnchen HRB 106955, Gesch=C3=A4ftsf=C3=BChrer: Thomas = Heurung, Alexander Walter