gcc/libgomp/testsuite/libgomp.oacc-c-c++-common
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
..
2015-11-03 12:28:22 +01:00
2015-11-03 12:28:22 +01:00
2015-11-03 12:28:22 +01:00
2016-03-30 17:08:47 +02:00
2018-06-22 12:04:14 +02:00
2016-03-30 17:08:47 +02:00
2018-06-22 12:04:14 +02:00
2016-03-30 17:08:47 +02:00
2016-03-30 17:08:47 +02:00
2018-06-22 12:04:14 +02:00
2015-12-02 16:53:34 +01:00
2015-12-02 16:53:34 +01:00
2015-12-02 16:53:34 +01:00
2016-03-30 17:08:47 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2019-10-02 21:05:35 +02:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2018-06-22 12:04:14 +02:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2016-03-30 17:08:47 +02:00
2018-08-02 15:59:01 +00:00
2016-03-30 17:08:47 +02:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2020-01-20 16:51:06 +00:00
2016-03-30 17:08:47 +02:00