From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 514A8385803C; Fri, 12 Feb 2021 15:47:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 514A8385803C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Julian_Brown@mentor.com IronPort-SDR: HqOx0aDhHS4bEm1QcS+EMgIEqJWMhLJnS+kCTAhP1XU0rWcJjlLbptcP/t+UADfszY6HdIm0u0 t6r9ABJIQKE5mthEzUlDax0wJqjyDUCAfV0/9GInGQf9AsL1uJxWbAq7SY6ztuMNZQbO4nXTuz R25mB7fCXLRhziAgYP+Rm5HBWwtcVlvoOOGH310dVnAa2UsuAXnFgVaNxh07KXiqLEAI8kRKfH dMovbKcHLNEC7mlFdefK0ougR1kxoB+TKMS5tbMCdjSz6r876GCLL4S0PrNtaKd9KVPF41lqU3 IEE= X-IronPort-AV: E=Sophos;i="5.81,174,1610438400"; d="scan'208";a="60365602" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 12 Feb 2021 07:47:04 -0800 IronPort-SDR: HNSzERccqK9e7y/Mnzbtv8kZHjcLLVWslNW4uHlMs/3kqDf/aGSESKoAKtFjAWn+zjag9UZJp4 XotOFCB51Qk5Y8DcuGDJoYQGCoQQz1fxElzApO2uU8PbmHQHeuuGKLIGVZuo/VwTK9dpS/Ycqi 4RAQ1/UNkoBYsKhkkW2aOQRCBMP6KQ+1jAGH7IF+pOBr2cwrrv2Mrb/PS5BwI+cMjsbR5OMY1Q QUV/ExL4cV5an2/F5mPJFau0K0QNqVyd0/BlJYSi+in46r1TH7sYpqq4jsmFghzM8CHS+ZpGyg HHc= From: Julian Brown To: CC: , Jakub Jelinek , Tobias Burnus , Thomas Schwinge Subject: [PATCH 0/2] openacc: Mixing array elements and derived types (mk2) Date: Fri, 12 Feb 2021 07:46:47 -0800 Message-ID: <20210212154649.96393-1-julian@codesourcery.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, 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: Fri, 12 Feb 2021 15:47:10 -0000 This series contains an updated version of the "3/4" patch from this series: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/564711.html together with bits that undo the reversions in: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565093.html and a new approach to handling components of array sections of derived types, since those are actually already explicitly disallowed by the spec (OpenACC 3.0). (Actually the 1/2 patch is the same as the previously-posted version, apart from testsuite changes.) Re-tested with offloading to AMD GCN. Further commentary on individual patches. OK? Thanks, Julian Julian Brown (2): openacc: Fix lowering for derived-type mappings through array elements openacc: Strided array sections and components of derived-type arrays gcc/fortran/openmp.c | 55 ++--- gcc/fortran/trans-openmp.c | 192 ++++++++++-------- gcc/gimplify.c | 12 ++ .../gfortran.dg/goacc/array-with-dt-1.f90 | 11 + .../gfortran.dg/goacc/array-with-dt-2.f90 | 5 +- .../gfortran.dg/goacc/array-with-dt-3.f90 | 14 ++ .../gfortran.dg/goacc/array-with-dt-4.f90 | 18 ++ .../gfortran.dg/goacc/array-with-dt-5.f90 | 12 ++ .../gfortran.dg/goacc/array-with-dt-6.f90 | 10 + .../gfortran.dg/goacc/derived-chartypes-1.f90 | 3 - .../gfortran.dg/goacc/derived-chartypes-2.f90 | 3 - .../goacc/derived-classtypes-1.f95 | 8 +- .../gfortran.dg/goacc/mapping-tests-2.f90 | 4 +- .../array-stride-dt-1.f90 | 5 +- .../derivedtypes-arrays-1.f90 | 109 ++++++++++ .../libgomp.oacc-fortran/update-dt-array.f90 | 53 +++++ 16 files changed, 392 insertions(+), 122 deletions(-) create mode 100644 gcc/testsuite/gfortran.dg/goacc/array-with-dt-1.f90 create mode 100644 gcc/testsuite/gfortran.dg/goacc/array-with-dt-3.f90 create mode 100644 gcc/testsuite/gfortran.dg/goacc/array-with-dt-4.f90 create mode 100644 gcc/testsuite/gfortran.dg/goacc/array-with-dt-5.f90 create mode 100644 gcc/testsuite/gfortran.dg/goacc/array-with-dt-6.f90 create mode 100644 libgomp/testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90 create mode 100644 libgomp/testsuite/libgomp.oacc-fortran/update-dt-array.f90 -- 2.29.2