PR libgomp/93065
* oacc-init.c (goacc_runtime_deinitialize): New function.
From-SVN: r279803
+2019-12-31 Ayush Mittal <ayush.m@samsung.com>
+
+ PR libgomp/93065
+ * oacc-init.c (goacc_runtime_deinitialize): New function.
+
2019-12-28 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/93074
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