]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran/OpenMP: Fix depend-clause handling
authorTobias Burnus <tobias@codesourcery.com>
Tue, 15 Feb 2022 11:26:48 +0000 (12:26 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 15 Feb 2022 11:26:48 +0000 (12:26 +0100)
commit3939c1b11279dc950d2f160eb940dd791f7b40f1
treeae7e9f7c6bc0869d3add8956f2016847f426cf47
parent0863d0ede34d21b2258686e6ccfd6dbb100bb754
Fortran/OpenMP: Fix depend-clause handling

gcc/fortran/ChangeLog:

* trans-openmp.cc (gfc_trans_omp_clauses, gfc_trans_omp_depobj):
Depend on the proper addr, for ptr/alloc depend on pointee.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/depend-4.f90: New test.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/depend-4.f90: New test.
* gfortran.dg/gomp/depend-5.f90: New test.
gcc/fortran/trans-openmp.cc
gcc/testsuite/gfortran.dg/gomp/depend-4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/depend-5.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/depend-4.f90 [new file with mode: 0644]