diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-20 19:30:16 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-20 19:30:16 +0000 |
commit | 143fdd3a3bccca45ff05d104df9faebeb02af792 (patch) | |
tree | c3e8c86a28d8073b0c436833e8221fa7a4992c6f /libpthread/linuxthreads.old/forward.c | |
parent | e969404db043d2e96f3cd425157930651dbc3a52 (diff) |
suppress "asm declaration ignored due to conflict with previous rename"
warning. It seems to be bogus. Comment contains extended description.
Diffstat (limited to 'libpthread/linuxthreads.old/forward.c')
-rw-r--r-- | libpthread/linuxthreads.old/forward.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/forward.c b/libpthread/linuxthreads.old/forward.c index 2cd019651..6bb21c255 100644 --- a/libpthread/linuxthreads.old/forward.c +++ b/libpthread/linuxthreads.old/forward.c @@ -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" |