[PATCH, OpenACC] (2/2) Fix implicit mapping for array slices on lexically-enclosing data constructs (PR70828)
Julian Brown
julian@codesourcery.com
Tue Aug 28 19:19:00 GMT 2018
This follow-up patch enables the "inheritance" of mappings for OpenACC
data constructs to work also for Fortran assumed-size arrays.
Otherwise, such arrays are (arguably, prematurely) bailed out on in the
Fortran front-end.
Tested alongside the previous patch with offloading to nvptx.
OK to apply?
Thanks,
Julian
2018-08-28 Julian Brown <julian@codesourcery.com>
gcc/fortran/
* trans-openmp.c (gfc_omp_finish_clause): Don't raise error for
assumed-size array if present in a lexically-enclosing data construct.
libgomp/
* testsuite/libgomp.oacc-fortran/pr70828-4.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Assumed-size-array-fix.patch
Type: text/x-patch
Size: 2630 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180828/b85bdbd0/attachment.bin>
More information about the Gcc-patches
mailing list