In 'libgomp/target.c:gomp_exit_data', remove open-coded 'gomp_remove_var'
libgomp/ * target.c (gomp_exit_data): Use 'gomp_remove_var'. From-SVN: r279118
This commit is contained in:
parent
11586ed9c9
commit
b5859e4002
2 changed files with 5 additions and 10 deletions
|
@ -1,3 +1,7 @@
|
|||
2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* target.c (gomp_exit_data): Use 'gomp_remove_var'.
|
||||
|
||||
2019-12-09 Tobias Burnus <tobias@codesourcery.com>
|
||||
|
||||
* testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
|
||||
|
|
|
@ -2095,16 +2095,7 @@ gomp_exit_data (struct gomp_device_descr *devicep, size_t mapnum,
|
|||
- k->host_start),
|
||||
cur_node.host_end - cur_node.host_start);
|
||||
if (k->refcount == 0)
|
||||
{
|
||||
splay_tree_remove (&devicep->mem_map, k);
|
||||
if (k->link_key)
|
||||
splay_tree_insert (&devicep->mem_map,
|
||||
(splay_tree_node) k->link_key);
|
||||
if (k->tgt->refcount > 1)
|
||||
k->tgt->refcount--;
|
||||
else
|
||||
gomp_unmap_tgt (k->tgt);
|
||||
}
|
||||
gomp_remove_var (devicep, k);
|
||||
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue