Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/external/gpl3/gcc/dist/libgomp Apply patch, requested by ...
details: https://anonhg.NetBSD.org/src/rev/66f869d302d9
branches: netbsd-9
changeset: 988189:66f869d302d9
user: martin <martin%NetBSD.org@localhost>
date: Sat Oct 02 11:02:46 2021 +0000
description:
Apply patch, requested by manu in ticket #1349:
external/gpl3/gcc/dist/libgomp/oacc-init.c (apply patch)
Fix a pthread_key leak in libgomp. Cherry picked from -current where
it was solved by the GCC 8.4 import.
diffstat:
external/gpl3/gcc/dist/libgomp/oacc-init.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r a98557c59f17 -r 66f869d302d9 external/gpl3/gcc/dist/libgomp/oacc-init.c
--- a/external/gpl3/gcc/dist/libgomp/oacc-init.c Thu Sep 23 10:13:28 2021 +0000
+++ b/external/gpl3/gcc/dist/libgomp/oacc-init.c Sat Oct 02 11:02:46 2021 +0000
@@ -657,6 +657,15 @@
goacc_host_init ();
}
+static void __attribute__((destructor))
+goacc_runtime_deinitialize (void)
+{
+#if !(defined HAVE_TLS || defined USE_EMUTLS)
+ pthread_key_delete (goacc_tls_key);
+#endif
+ pthread_key_delete (goacc_cleanup_key);
+}
+
/* Compiler helper functions */
attribute_hidden void
Home |
Main Index |
Thread Index |
Old Index