]> git.ipfire.org Git - people/ms/gcc.git/commit
Assumed-size arrays with non-lexical data mappings
authorJulian Brown <julian@codesourcery.com>
Fri, 5 Jul 2019 01:14:41 +0000 (18:14 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:49:59 +0000 (12:49 +0100)
commit1b331358057a3a94225b9dd0d00b56c6720c3162
tree38fbc65c8740aee696b940990140b7953fdc764a
parent5031a0790d1c95001eac4e487101e08c4af3382b
Assumed-size arrays with non-lexical data mappings

gcc/
* gimplify.c (gimplify_adjust_omp_clauses_1): Raise error for
assumed-size arrays in map clauses for Fortran/OpenMP.
* omp-low.c (lower_omp_target): Set the size of assumed-size Fortran
arrays to one to allow use of data already mapped on the offload device.

gcc/fortran/
* trans-openmp.c (gfc_omp_finish_clause): Change clauses mapping
assumed-size arrays to use the GOMP_MAP_FORCE_PRESENT map type.

(cherry picked from openacc-gcc-9-branch commit
cfc73bde082700240f0ac9560c2af884cc9930d1)
gcc/ChangeLog.omp
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-openmp.c
gcc/gimplify.c
gcc/omp-low.c