svn commit: trunk/uClibc/libpthread/linuxthreads.old

vda at uclibc.org vda at uclibc.org
Tue May 20 19:30:16 UTC 2008


Author: vda
Date: 2008-05-20 12:30:16 -0700 (Tue, 20 May 2008)
New Revision: 22024

Log:
suppress "asm declaration ignored due to conflict with previous rename"
warning. It seems to be bogus. Comment contains extended description.



Modified:
   trunk/uClibc/libpthread/linuxthreads.old/forward.c


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/forward.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/forward.c	2008-05-20 18:57:35 UTC (rev 22023)
+++ trunk/uClibc/libpthread/linuxthreads.old/forward.c	2008-05-20 19:30:16 UTC (rev 22024)
@@ -23,6 +23,26 @@
 
 /* psm: keep this before internals.h */
 libc_hidden_proto(exit)
+/* vda: here's why:
+In libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
+adding libc_hidden_proto(foo) just before weak_extern (__pthread_initialize)
+will not warn:
+    //libc_hidden_proto(foo)
+    weak_extern (__pthread_initialize)
+    //libc_hidden_proto(foo)
+but adding after will! Which is extremely strange -
+weak_extern expands into just "#pragma weak __pthread_initialize".
+TODO: determine whether it is a gcc bug or what...
+for now, just include all headers before internals.h
+(they are again included in internals.h - maybe remove them there later)
+*/
+#include <string.h>
+#include <limits.h>
+#include <setjmp.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 
 #include "internals.h"
 




More information about the uClibc-cvs mailing list