diff options
author | midipix <writeonce@midipix.org> | 2015-03-19 22:00:05 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-03-19 22:00:05 -0400 |
commit | 2fe6f141f8f33a4f733341568eca3de6c060a938 (patch) | |
tree | 4c7a354da7863dba44dc54178f3085f6ca4f7664 /libgcc/generic-morestack-thread.c | |
parent | 06f22dbfc4888828fb6bd41f3eca41ebad9e8b41 (diff) | |
download | cbb-gcc-4.6.4-2fe6f141f8f33a4f733341568eca3de6c060a938.tar.bz2 cbb-gcc-4.6.4-2fe6f141f8f33a4f733341568eca3de6c060a938.tar.xz |
gcc/gthr.h, libgcc/morestack:
+ require pthread to be present;
+ require all pthread symbols to be strongly defined.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'libgcc/generic-morestack-thread.c')
-rw-r--r-- | libgcc/generic-morestack-thread.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/libgcc/generic-morestack-thread.c b/libgcc/generic-morestack-thread.c index bc237957e..2096ab347 100644 --- a/libgcc/generic-morestack-thread.c +++ b/libgcc/generic-morestack-thread.c @@ -40,17 +40,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "generic-morestack.h" -/* We declare the pthread functions we need as weak, so that - libgcc_s.so does not need to be linked against -lpthread. */ - -extern int pthread_once (pthread_once_t *, void (*) (void)) - __attribute__ ((weak)); - -extern int pthread_key_create (pthread_key_t *, void (*) (void *)) - __attribute__ ((weak)); - -extern int pthread_setspecific (pthread_key_t, const void *) - __attribute__ ((weak)); +extern int pthread_once (pthread_once_t *, void (*) (void)); +extern int pthread_key_create (pthread_key_t *, void (*) (void *)); +extern int pthread_setspecific (pthread_key_t, const void *); /* The key for the list of stack segments to free when the thread exits. This is created by pthread_key_create. */ @@ -134,8 +126,7 @@ int __wrap_pthread_create (pthread_t *, const pthread_attr_t *, __attribute__ ((visibility ("hidden"))); extern int __real_pthread_create (pthread_t *, const pthread_attr_t *, - void *(*start_routine) (void *), void *) - __attribute__ ((weak)); + void *(*start_routine) (void *), void *); int __wrap_pthread_create (pthread_t *tid, const pthread_attr_t *attr, |