diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2019-12-09 12:39:57 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2019-12-09 12:39:57 +0100 |
commit | b5859e400219c891b81e0788e7e58422706e4a49 (patch) | |
tree | edf0befd21ccb9c373cdf73d4afca2852e6c5623 | |
parent | 11586ed9c96870a14fb417fe26eebe4504c3d60a (diff) | |
download | gcc-b5859e400219c891b81e0788e7e58422706e4a49.zip gcc-b5859e400219c891b81e0788e7e58422706e4a49.tar.gz gcc-b5859e400219c891b81e0788e7e58422706e4a49.tar.bz2 |
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
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/target.c | 11 |
2 files changed, 5 insertions, 10 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index a0bd251..c5541bc 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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 diff --git a/libgomp/target.c b/libgomp/target.c index 84d6daa..13f7921 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -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: |