Fortran polymorphic class-type support for OpenACC
authorJulian Brown <julian@codesourcery.com>
Fri, 20 Dec 2019 01:39:49 +0000 (01:39 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Fri, 20 Dec 2019 01:39:49 +0000 (01:39 +0000)
commit9be3ac5d63f0f0d79d220bb3a10842b28a1e48ad
treec4426113e90ebe5b42363af5610987218e468d1b
parent02817027ca02f32cfd4fbaa71edf879a024089a3
Fortran polymorphic class-type support for OpenACC

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.

From-SVN: r279631
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-fortran/class-ptr-param.f95 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/classtypes-1.f95 [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/classtypes-2.f95 [new file with mode: 0644]