gcc/libgomp/testsuite
Tobias Burnus f20fe2cb21 OpenMP: Fix 'omp declare target' handling for vars [PR99509]
For variables with 'declare target' attribute,
varpool_node::get_create marks variables as offload; however,
if the node already exists, it is not updated. C/C++ may tag
decl with 'declare target implicit', which may only be after
varpool creation turned into 'declare target' or 'declare target link';
in this case, the tagging has to happen in the FE.

gcc/c/ChangeLog:

	PR c++/99509
	* c-decl.c (finish_decl): For 'omp declare target implicit' vars,
	ensure that the varpool node is marked as offloadable.

gcc/cp/ChangeLog:

	PR c++/99509
	* decl.c (cp_finish_decl): For 'omp declare target implicit' vars,
	ensure that the varpool node is marked as offloadable.

libgomp/ChangeLog:

	PR c++/99509
	* testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
2021-03-15 10:12:58 +01:00
..
config Update copyright years. 2021-01-04 10:26:59 +01:00
lib libgomp testsuite: tell warning from error diagnostics, etc. [PR80219, PR85303] 2020-11-02 14:14:43 +01:00
libgomp.c Update copyright years. 2021-01-04 10:26:59 +01:00
libgomp.c++ openmp: Add support for non-VLA {,first}private allocate on omp task 2020-11-14 01:46:16 +01:00
libgomp.c-c++-common OpenMP: Fix 'omp declare target' handling for vars [PR99509] 2021-03-15 10:12:58 +01:00
libgomp.fortran Fortran/OpenMP: Fix use_device_{ptr,addr} with assumed-size array [PR98858] 2021-03-12 16:33:02 +01:00
libgomp.graphite Update copyright years. 2021-01-04 10:26:59 +01:00
libgomp.oacc-c [testsuite] Unset 'offload_target' after use 2020-07-24 14:00:43 +02:00
libgomp.oacc-c++ Fix templatized C++ OpenACC 'cache' directive ICEs 2020-11-25 19:57:39 +01:00
libgomp.oacc-c-c++-common Fix templatized C++ OpenACC 'cache' directive ICEs 2020-11-25 19:57:39 +01:00
libgomp.oacc-fortran openacc: Strided array sections and components of derived-type arrays 2021-02-17 06:13:55 -08:00
libgomp-site-extra.exp.in libgomp/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00
libgomp-test-support.exp.in libgomp/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00
Makefile.am libgomp/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00
Makefile.in libgomp: Regenerate configure files with automake 1.15.1 2020-10-02 12:08:47 +02:00