openacc: GOMP_MAP_ATTACH handling in find_group_last
authorJulian Brown <julian@codesourcery.com>
Thu, 11 Jun 2020 13:43:59 +0000 (06:43 -0700)
committerJulian Brown <julian@codesourcery.com>
Thu, 9 Jul 2020 21:16:00 +0000 (14:16 -0700)
commit8d2e5026d22b3f30e7df7adfd4ebf4ebc1e77e2d
tree4268828dd54b623b130d77b2d1def6fc6226ca8c
parentac8996edb14eef0a15cd0ce850fde2be5e227e69
openacc: GOMP_MAP_ATTACH handling in find_group_last

Arrange for GOMP_MAP_ATTACH to be grouped together with a preceding
GOMP_MAP_TO_PSET or other "to" data movement clause, except in cases
where an explicit "attach" clause is used.

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

include/
* gomp-constants.h (gomp_map_kind): Update comment for GOMP_MAP_TO_PSET.

libgomp/
* oacc-mem.c (find_group_last): Group data-movement clauses
(GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
include/gomp-constants.h
libgomp/oacc-mem.c