Use aux struct in libgomp for infrequently-used/API-specific data
authorJulian Brown <julian@codesourcery.com>
Fri, 20 Dec 2019 01:20:13 +0000 (01:20 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Fri, 20 Dec 2019 01:20:13 +0000 (01:20 +0000)
commit2a656a93597d9ba2444cf5f4b2954734c97fe06d
tree7c855a38f4c937efdb01078056ec89930fa3caf3
parent8cce8b850470ba92287ffea9b53a46b69ec7dd8e
Use aux struct in libgomp for infrequently-used/API-specific data

libgomp/
* libgomp.h (struct splay_tree_aux): New.
(struct splay_tree_key_s): Replace link_key field with aux pointer.
* target.c (gomp_map_vars_internal): Adjust for link_key being moved
to aux struct.
(gomp_remove_var_internal): Free aux block if present.
(gomp_load_image_to_device): Zero-initialise aux field instead of
link_key field.
(omp_target_associate_pointer): Zero-initialise aux field.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
From-SVN: r279620
libgomp/ChangeLog
libgomp/libgomp.h
libgomp/target.c