]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix references declared in lexically-enclosing OpenACC data region
authorJulian Brown <julian@codesourcery.com>
Sun, 19 May 2019 17:42:20 +0000 (10:42 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:17:49 +0000 (12:17 +0100)
commitb0e35852e8603f1edbee0fe3e9a035a2841f11f5
treed36bd4071fcba52d568d3c91c66212d63172e9e9
parentf6ddcaeddf0bcb7999ac81c384707c06b1cb49af
Fix references declared in lexically-enclosing OpenACC data region

gcc/fortran/
* trans-openmp.c (gfc_omp_finish_clause): Guard addition of clauses for
pointers with DECL_P.

gcc/
* gimplify.c (oacc_array_mapping_info): Add REF field.
(gimplify_scan_omp_clauses): Initialise above field for data blocks
passed by reference.
(gomp_oacc_needs_data_present): Handle references.
(gimplify_adjust_omp_clauses_1): Handle references and optional
arguments for variables declared in lexically-enclosing OpenACC data
region.

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