gcc/libgomp/testsuite
Chung-Lin Tang b0af8e3a50 OpenMP: Fix nested use_device_ptr
This patch fixes a bug in lower_omp_target, where for Fortran arrays,
the expanded sender assignment is wrongly using the variable in the
current ctx, instead of the one looked-up outside, which is causing
use_device_ptr/addr to fail to work when used inside an omp-parallel
(where the omp child_fn is split away from the original).

The fix is inside omp-low.cc, though because the omp_array_data langhook
is used only by Fortran, this is essentially Fortran-specific.

2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>

gcc/ChangeLog:

	* omp-low.cc (lower_omp_target): Use outer context looked-up 'var' as
	argument to lang_hooks.decls.omp_array_data, instead of 'ovar' from
	current clause.

libgomp/ChangeLog:

	* testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2022-04-05 08:31:34 -07:00
..
config
lib
libgomp.c [nvptx] Add warp sync at simt exit 2022-03-22 14:35:34 +01:00
libgomp.c-c++-common LTO: Fixes for renaming issues with offload/OpenMP [PR104285] 2022-03-23 09:44:39 +01:00
libgomp.c++ LTO: Fixes for renaming issues with offload/OpenMP [PR104285] 2022-03-23 09:44:39 +01:00
libgomp.fortran OpenMP: Fix nested use_device_ptr 2022-04-05 08:31:34 -07:00
libgomp.graphite
libgomp.oacc-c
libgomp.oacc-c-c++-common [libgomp, testsuite, nvptx] Fix dg-output test in vector-length-128-7.c 2022-04-01 13:22:07 +02:00
libgomp.oacc-c++
libgomp.oacc-fortran [libgomp, testsuite] Scale down some OpenACC test-cases 2022-03-25 13:51:48 +01:00
libgomp-site-extra.exp.in
libgomp-test-support.exp.in
Makefile.am
Makefile.in