diff options
author | Julian Brown <julian@codesourcery.com> | 2025-04-23 03:11:29 +0000 |
---|---|---|
committer | Sandra Loosemore <sloosemore@baylibre.com> | 2025-05-15 20:25:48 +0000 |
commit | 693be70f589682c0c65ce92c4602d481aa7f16e3 (patch) | |
tree | 76ff6f9fa507bb0b9db8325b680a4a4098e42aaa /gcc/c/c-parser.cc | |
parent | ed4a45ac95375fac7166cff38dc9a81bd3868abd (diff) | |
download | gcc-693be70f589682c0c65ce92c4602d481aa7f16e3.zip gcc-693be70f589682c0c65ce92c4602d481aa7f16e3.tar.gz gcc-693be70f589682c0c65ce92c4602d481aa7f16e3.tar.bz2 |
OpenACC: Allow implicit uses of assumed-size arrays in offload regions
This patch reimplements the functionality of the previously-reverted
patch "Assumed-size arrays with non-lexical data mappings". The purpose
is to support implicit uses of assumed-size arrays for Fortran when those
arrays have already been mapped on the target some other way (e.g. by
"acc enter data").
This relates to upstream OpenACC issue 489 (not yet resolved).
gcc/fortran/
* trans-openmp.cc (gfc_omp_finish_clause): Treat implicitly-mapped
assumed-size arrays as zero-sized for OpenACC, rather than an error.
gcc/testsuite/
* gfortran.dg/goacc/assumed-size.f90: Don't expect error.
libgomp/
* testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90: New
test.
* testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90: New
test.
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions