]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran/OpenMP: Fix depend-clause handling for c_ptr
authorTobias Burnus <tobias@codesourcery.com>
Tue, 15 Feb 2022 20:42:33 +0000 (21:42 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Sun, 27 Feb 2022 21:34:16 +0000 (22:34 +0100)
commit6d5663d17460d668d285a2b9552ae5b071f92584
tree80e2877ca1fb9b62128b401d3bc31c1f5a7bc165
parente57fcf7a5276e68600f13a38f32f104b7817b697
Fortran/OpenMP: Fix depend-clause handling for c_ptr

gcc/fortran/ChangeLog:

* trans-openmp.cc (gfc_trans_omp_depobj): Fix to alloc/ptr dummy
and for c_ptr.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/depend-4.f90: Add VALUE test, update scan test.
* gfortran.dg/gomp/depend-5.f90: Fix scan tree for -m32.
* gfortran.dg/gomp/depend-6.f90: New test.

(cherry picked from commit 4d74ea551734694c225643c4069b1b4d4d2b05ed)
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/gomp/depend-4.f90
gcc/testsuite/gfortran.dg/gomp/depend-5.f90
gcc/testsuite/gfortran.dg/gomp/depend-6.f90 [new file with mode: 0644]