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 4BE81385783E; Mon, 31 Aug 2020 08:28:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4BE81385783E 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: BhWoUkC84GZOWDRGdkKP/GMsf0GTBPcS4HlQGwCifB88xKs5yx2q2aQz5u+3Qs0Fi4zBdcA19q TcLOuvVaIFuEKT5sswVuI4vBwyGpvMo0dBYN5sPPvroOMWHImj+EQ8K+xkCdbFhdGkOJwG/HBs yEqn+0XIK/seXkrACSI++2JJmuAysnlNY2tbm6KiTe3kejGAG4LB9nVVWyq31qgAsHl55HjEob G6c7Axagz96G4263E+uJK2eSRxlZe5s87Fb3Td018xPR1Ne5tg3xq+f3pvOpeklU5kXWT9DoxE tAU= X-IronPort-AV: E=Sophos;i="5.76,375,1592899200"; d="scan'208";a="52396084" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 31 Aug 2020 00:28:12 -0800 IronPort-SDR: GaL3VOOWIS+DR3gFccBGH7vpWj7HQUjqhcFSJQiR1yOvhIs/nF3Fb5aVeQBggjN7ENviKYJLbz VexRqWauXB9Zz88msGcWXs/ilF0+0BT7NXdQq1fCL5GCUJcxRFbVi2S2RVKN6Ih2BaHCNzgDnj LQxypY2+veiuRMOyrpoQE5jgR0TOlFl1eT+/6k5L1VyYuF6VeN7wuFf/txr25qCYmmykVUQGTU hIZmNhktx6tqoxw6I2F+ha+i6fhOfH233C/MmogOaxMntxOVglwgAlv5/lWoP2aLyq7N7xJZdp EVQ= Subject: Re: [Patch] OpenMP/Fortran: Handle polymorphic scalars in data-sharing FIRSTPRIVATE (PR86470) From: Tobias Burnus To: Jakub Jelinek , gcc-patches , fortran References: <8bcd00c3-9de5-c072-d893-9218a08a1c2f@codesourcery.com> Message-ID: <4d392886-4a31-fbbc-acdc-303f547f4967@codesourcery.com> Date: Mon, 31 Aug 2020 10:28:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <8bcd00c3-9de5-c072-d893-9218a08a1c2f@codesourcery.com> 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-04.mgc.mentorg.com (139.181.222.4) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham 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, 31 Aug 2020 08:28:14 -0000 *PING* =E2=80=94 For this part 1/n patch series. On 8/25/20 12:50 PM, Tobias Burnus wrote: > This patch adds support for polymorphic variables ("CLASS") > to OpenMP's data-sharing clause FIRSTPRIVATE. > > While the patch should be okay, there is more follow-up > work required, but one has to make a start :-) > > * PRIVATE =E2=80=93 as used in the testcase of the PR is not yet supporte= d, > only FIRSTPRIVATE. > * polymorphic arrays are not supported (see 'sorry'). > =E2=80=93 For nonallocatable arrays, the decl passed to the function > does contain much information; the LANG_SPECIFIC is non-NULL > its the pointer components contain garbage :-( > =E2=80=93 Handling noncharacter polymorphic arrays (hence: non-unlimited > polymorphic) seems to be simpler; the current patch seems to > work for some cases already, if the "sorry" is commented. > * ... > > OK for mainline? > > Tobias > > PS: Supporting *map*ing of polymorphic variables is another matter, > which is unfortunately even harder. > ----------------- 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