[git commit branch/0.9.33] Remove pragma weak for undeclared symbol
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Mar 22 14:32:12 UTC 2013
commit: http://git.uclibc.org/uClibc/commit/?id=9a7b71facfcaee5f3a45429358c55fcd5377c509
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33
pthread_initialize is a static function and should not be mentioned in a
header. The #pragma weak for it appears to confuse gcc-4.7.
see gcc PR middle-end/36282
Signed-off-by: Bernd Schmidt <bernds at codesourcery.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
.../sysdeps/pthread/bits/libc-lock.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h b/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
index 78593ac..f41375b 100644
--- a/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
+++ b/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
@@ -375,7 +375,6 @@ weak_extern (BP_SYM (__pthread_key_create))
weak_extern (BP_SYM (__pthread_setspecific))
weak_extern (BP_SYM (__pthread_getspecific))
weak_extern (BP_SYM (__pthread_once))
-weak_extern (__pthread_initialize)
weak_extern (__pthread_atfork)
weak_extern (BP_SYM (_pthread_cleanup_push))
weak_extern (BP_SYM (_pthread_cleanup_pop))
@@ -400,7 +399,6 @@ weak_extern (BP_SYM (_pthread_cleanup_pop_restore))
# pragma weak __pthread_setspecific
# pragma weak __pthread_getspecific
# pragma weak __pthread_once
-# pragma weak __pthread_initialize
# pragma weak __pthread_atfork
# pragma weak _pthread_cleanup_push_defer
# pragma weak _pthread_cleanup_pop_restore
More information about the uClibc-cvs
mailing list