Fortran polymorphic class-type support for OpenACC

Programming / Compilers / GCC - jules [138bc75d-0d04-0410-961f-82ee72b054a4] - 20 December 2019 01:39 EST

gcc/fortran/
- openmp.c (resolve_oacc_data_clauses): Don't disallow allocatable polymorphic types for OpenACC.
- trans-openmp.c (gfc_trans_omp_clauses): Support polymorphic class types.

libgomp/
- testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
- testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
- testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.

db94173dd18 Fortran polymorphic class-type support for OpenACC
gcc/fortran/ChangeLog | 7 ++
gcc/fortran/openmp.c | 6 --
gcc/fortran/trans-openmp.c | 69 +++++++++++---
libgomp/ChangeLog | 6 ++
.../libgomp.oacc-fortran/class-ptr-param.f95 | 34 +++++++
.../libgomp.oacc-fortran/classtypes-1.f95 | 48 ++++++++++
.../libgomp.oacc-fortran/classtypes-2.f95 | 106 +++++++++++++++++++++
7 files changed, 257 insertions(+), 19 deletions(-)

Upstream: gcc.gnu.org


  • Share