19a06473c6960ca9b720bad683048d4df484fa2a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0045-Remove-pragma-weak-for-undeclared-symbol.patch
1 From 9a7b71facfcaee5f3a45429358c55fcd5377c509 Mon Sep 17 00:00:00 2001
2 From: Bernd Schmidt <bernds@codesourcery.com>
3 Date: Tue, 24 Jul 2012 15:39:48 +0200
4 Subject: [PATCH] Remove pragma weak for undeclared symbol
5
6 pthread_initialize is a static function and should not be mentioned in a
7 header.  The #pragma weak for it appears to confuse gcc-4.7.
8
9 see gcc PR middle-end/36282
10
11 Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
12 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
13 ---
14  libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h |    2 --
15  1 file changed, 2 deletions(-)
16
17 diff --git a/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h b/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
18 index 78593ac..f41375b 100644
19 --- a/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
20 +++ b/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
21 @@ -375,7 +375,6 @@ weak_extern (BP_SYM (__pthread_key_create))
22  weak_extern (BP_SYM (__pthread_setspecific))
23  weak_extern (BP_SYM (__pthread_getspecific))
24  weak_extern (BP_SYM (__pthread_once))
25 -weak_extern (__pthread_initialize)
26  weak_extern (__pthread_atfork)
27  weak_extern (BP_SYM (_pthread_cleanup_push))
28  weak_extern (BP_SYM (_pthread_cleanup_pop))
29 @@ -400,7 +399,6 @@ weak_extern (BP_SYM (_pthread_cleanup_pop_restore))
30  #  pragma weak __pthread_setspecific
31  #  pragma weak __pthread_getspecific
32  #  pragma weak __pthread_once
33 -#  pragma weak __pthread_initialize
34  #  pragma weak __pthread_atfork
35  #  pragma weak _pthread_cleanup_push_defer
36  #  pragma weak _pthread_cleanup_pop_restore
37 -- 
38 1.7.10.4
39