aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.target/arm/pr53447-2.c
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-06-04 14:35:57 -0700
committerRyan Prichard <rprichard@google.com>2018-06-05 21:10:07 -0700
commit89b2029895df0a3f3587eeba0a519091c3f7a1b5 (patch)
tree2206d3174a4c79cf148fab6c8916cc9e3c62e084 /gcc-4.8.1/gcc/testsuite/gcc.target/arm/pr53447-2.c
parent81788f3d99d2c5952fa9a6d673e8d6a53b76d511 (diff)
downloadtoolchain_gcc-89b2029895df0a3f3587eeba0a519091c3f7a1b5.tar.gz
toolchain_gcc-89b2029895df0a3f3587eeba0a519091c3f7a1b5.tar.bz2
toolchain_gcc-89b2029895df0a3f3587eeba0a519091c3f7a1b5.zip
Add __emutls_unregister_key function
Replace the existing __attribute__((destructor)) function, unregister_emutls_key, with a function that something else must call explicitly. We don't want the pthread key deleted at program exit, because it's unnecessary and because it may delete the key before other tls-using cleanup code runs. Exposing __emutls_unregister_key allows limiting the cleanup to dlclose (e.g. by calling it only from crtbegin_so.c). Reset emutls_key_created so multiple calls to __emutls_unregister_key are safe. Bug: b/80453944 Test: manual Change-Id: I82d13614ae8042d0501fd2ca64f0ef6189669905
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.target/arm/pr53447-2.c')
0 files changed, 0 insertions, 0 deletions