public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PR 54805:  __gthread_tsd* in vxlib-tls.c
@ 2012-11-05 17:58 rbmj
  2012-11-14  3:23 ` [PING] " rbmj
  0 siblings, 1 reply; 16+ messages in thread
From: rbmj @ 2012-11-05 17:58 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

Hello all,

Since nobody has commented on bug 54805, and I'm pretty sure this is 
valid (and obvious), I'm just submitting it to the list.

This removes warnings about implicit declarations and fixes one of the 
function calls in vxlib-tls.c for vxworks targets.

I got the old prototypes from 
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01314.html

See bug for further details.

Someone please comment or commit :)

--
Robert Mason

[-- Attachment #2: gthread.patch --]
[-- Type: text/x-patch, Size: 1533 bytes --]

From d008e235167796417cf6a8f68f7206dc4351b5c3 Mon Sep 17 00:00:00 2001
From: rbmj <rbmj@verizon.net>
Date: Wed, 26 Sep 2012 20:12:52 -0400
Subject: [PATCH] [libgcc] 	* config/vxlib-tls.c: Put declarations for
 kernel space TSD

---
 libgcc/config/vxlib-tls.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/libgcc/config/vxlib-tls.c b/libgcc/config/vxlib-tls.c
index c469676..a2f5e34 100644
--- a/libgcc/config/vxlib-tls.c
+++ b/libgcc/config/vxlib-tls.c
@@ -102,6 +102,14 @@ extern void __gthread_set_tls_data (void
 extern void __gthread_enter_tls_dtor_context (void);
 extern void __gthread_leave_tls_dtor_context (void);
 
+#ifndef __RTP__
+
+extern void *__gthread_get_tsd_data(WIND_TCB *tcb);
+extern void __gthread_set_tsd_data(WIND_TCB *tcb, void *data);
+extern void __gthread_enter_tsd_dtor_context(WIND_TCB *tcb);
+extern void __gthread_leave_tsd_dtor_context(WIND_TCB *tcb);
+
+#endif /* __RTP__ */
 
 /* This is a global structure which records all of the active keys.
 
@@ -150,7 +158,7 @@ static __gthread_once_t tls_init_guard =
    need to read tls_keys.dtor[key] atomically.  */
 
 static void
-tls_delete_hook (void *tcb ATTRIBUTE_UNUSED)
+tls_delete_hook (void *tcb)
 {
   struct tls_data *data;
   __gthread_key_t key;
@@ -185,7 +193,7 @@ tls_delete_hook (void *tcb ATTRIBUTE_UNU
 #ifdef __RTP__
       __gthread_leave_tls_dtor_context ();
 #else
-      __gthread_leave_tsd_dtor_context ();
+      __gthread_leave_tsd_dtor_context (tcb);
 #endif
 
 #ifdef __RTP__

-- 1.7.10.4 

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-03-26 22:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 17:58 PR 54805: __gthread_tsd* in vxlib-tls.c rbmj
2012-11-14  3:23 ` [PING] " rbmj
2012-11-26 18:27   ` [PING^2] " rbmj
2012-12-06 15:15     ` rbmj
2013-01-06  4:19       ` [PING^4] " rbmj
2013-01-18  1:06         ` [PING^5] " rbmj
2013-01-18  1:18           ` Mike Stump
2013-01-18  2:15             ` Maxim Kuvyrkov
2013-01-18 20:19               ` rbmj
2013-01-19  1:35                 ` Maxim Kuvyrkov
2013-02-13 21:19                   ` rbmj
2013-02-17  4:21                     ` Maxim Kuvyrkov
     [not found]                       ` <5147CFA4.4010909@verizon.net>
     [not found]                         ` <34C52E41-8F68-4398-9D0D-DC1350E810FF@kugelworks.com>
2013-03-20 12:42                           ` rbmj
     [not found]                           ` <51485B7B.10901@verizon.net>
2013-03-20 23:22                             ` Maxim Kuvyrkov
2013-03-25  9:15                               ` Richard Biener
2013-03-26 22:07                                 ` Maxim Kuvyrkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).