[OpenMP] Fix 'omp exit data' for Fortran arrays (PR 94635)
authorTobias Burnus <tobias@codesourcery.com>
Fri, 15 May 2020 09:50:34 +0000 (11:50 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 15 May 2020 09:54:02 +0000 (11:54 +0200)
commit9f0f7da9aa98eec28b4e5e34ade0aa0028df161d
tree26d791efaa7de1a551f66e682ff7617f69f5a6af
parent3a55774f0b67645efc54fa1ac8f0053053d566dd
[OpenMP] Fix 'omp exit data' for Fortran arrays (PR 94635)

gcc/
PR middle-end/94635
* gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
item is 'delete:'.

gcc/testsuite
PR middle-end/94635
* gfortran.dg/gomp/target-exit-data.f90: New.
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/target-exit-data.f90 [new file with mode: 0644]