On Fri, May 13, 2022 at 07:21:02PM +0200, Tobias Burnus wrote:
> gcc/fortran/ChangeLog:
> 
>       * trans-openmp.cc (gfc_trans_omp_clauses): When mapping nondescriptor
>       array sections, use GOMP_MAP_FIRSTPRIVATE_POINTER instead of
>       GOMP_MAP_POINTER for the pointer attachment.
> 
> libgomp/ChangeLog:
> 
>       * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.

Not 100% sure if we want to add such a testcase into the testsuite given
that it is not valid OpenMP, but perhaps it is ok as we are testing a QoI.

> --- /dev/null
> +++ b/libgomp/testsuite/libgomp.fortran/target-nowait-array-section.f90
> @@ -0,0 +1,56 @@
> +! Runs the the target region asynchrolously and checks for it
> +!
> +! Note that  map(alloc: work(:, i)) + nowait  should be save

s/save/safe/

Otherwise LGTM.

        Jakub

Reply via email to