gcc/libgomp/testsuite
Julian Brown 0d00fe404c openacc: Set bias to zero for explicit attach/detach clauses in C and C++
This is a fix for the pointer (or array) size inadvertently being used
for the bias with attach and detach mapping kinds, for both C and C++.

2020-07-09  Julian Brown  <julian@codesourcery.com>
	    Thomas Schwinge  <thomas@codesourcery.com>

gcc/c/
	PR middle-end/95270
	* c-typeck.c (c_finish_omp_clauses): Set OMP_CLAUSE_SIZE (bias) to zero
	for standalone attach/detach clauses.

gcc/cp/
	PR middle-end/95270
	* semantics.c (finish_omp_clauses): Likewise.

include/
	PR middle-end/95270
	* gomp-constants.h (gomp_map_kind): Expand comment for attach/detach
	mapping kinds.

gcc/testsuite/
	PR middle-end/95270
	* c-c++-common/goacc/mdc-1.c: Update expected dump output for zero
	bias.

libgomp/
	PR middle-end/95270
	* testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
	* testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2020-07-09 15:17:52 -07:00
..
config Update copyright years. 2020-01-01 12:51:42 +01:00
lib handle dumpbase in offloading, adjust testsuite 2020-06-23 06:31:18 -03:00
libgomp.c openmp: Optimize triangular loop logical iterator to actual iterators computation using search for quadratic equation root(s) 2020-07-09 12:07:17 +02:00
libgomp.c-c++-common openmp: omp_alloc(0, ...) should return NULL. 2020-05-30 14:02:56 +02:00
libgomp.c++ c++: Change the default dialect to C++17. 2020-06-26 15:29:07 -04:00
libgomp.fortran Add 'dg-do run' to 'libgomp.fortran/use_device_ptr-optional-3.f90' [PR94848] 2020-06-18 00:14:46 +02:00
libgomp.graphite Update copyright years. 2020-01-01 12:51:42 +01:00
libgomp.hsa.c
libgomp.oacc-c [gcn] Use 'radeon' for the environment variable 'ACC_DEVICE_TYPE' 2020-04-29 09:24:07 +02:00
libgomp.oacc-c-c++-common openacc: Set bias to zero for explicit attach/detach clauses in C and C++ 2020-07-09 15:17:52 -07:00
libgomp.oacc-c++ [gcn] Use 'radeon' for the environment variable 'ACC_DEVICE_TYPE' 2020-04-29 09:24:07 +02:00
libgomp.oacc-fortran OpenACC/Fortran: permit 'routine' inside PURE 2020-06-16 20:23:58 +02: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/test: Remove a build sysroot fix regression 2020-04-06 23:32:45 +01:00