diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 7ce0cdb42e1..99417ef62cf 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2018-12-09 Thomas Schwinge + Jakub Jelinek + + * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of + devicep->host2dev_func. + 2018-12-08 Jakub Jelinek PR libgomp/87995 diff --git a/libgomp/target.c b/libgomp/target.c index 8ebc2a370a1..a62ae2c3e4b 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -957,9 +957,10 @@ gomp_map_vars (struct gomp_device_descr *devicep, size_t mapnum, /* Set link pointer on target to the device address of the mapped object. */ void *tgt_addr = (void *) (tgt->tgt_start + k->tgt_offset); - devicep->host2dev_func (devicep->target_id, - (void *) n->tgt_offset, - &tgt_addr, sizeof (void *)); + /* We intentionally do not use coalescing here, as it's not + data allocated by the current call to this function. */ + gomp_copy_host2dev (devicep, (void *) n->tgt_offset, + &tgt_addr, sizeof (void *), NULL); } array++; }