diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-17 02:03:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-17 02:03:18 +0000 |
commit | bd499a3b46304d4900a6a6ba809f9b7f2c5a4afa (patch) | |
tree | 375cd9b66d7216238f0033c6e6a88e4ba11298d7 /nptl/sysdeps | |
parent | 64ab2317a89b3965e7d7230bb99cfc99a61f895f (diff) | |
download | glibc-bd499a3b46304d4900a6a6ba809f9b7f2c5a4afa.tar glibc-bd499a3b46304d4900a6a6ba809f9b7f2c5a4afa.tar.gz glibc-bd499a3b46304d4900a6a6ba809f9b7f2c5a4afa.tar.bz2 glibc-bd499a3b46304d4900a6a6ba809f9b7f2c5a4afa.zip |
Update.
2002-12-17 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
* iconvdata/iso-ir-165.c: Likewise.
* iconvdata/jis0208.c: Likewise.
* iconvdata/jis0212.c: Likewise.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h b/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h index 39bdfbea1d..82b9ec8b0c 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h +++ b/nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h @@ -76,11 +76,15 @@ # define POPCARGS_4 POPCARGS_2 # define POPCARGS_5 POPCARGS_2 -# define SINGLE_THREAD_P \ +# ifndef ASSEMBLER +# define SINGLE_THREAD_P \ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ header.data.multiple_threads) == 0, 1) +# else +# define SINGLE_THREAD_P cmpl $0, %gs:MULTIPLE_THREADS_OFFSET +# endif -#else +#elif !defined ASSEMBLER /* This code should never be used but we define it anyhow. */ # define SINGLE_THREAD_P (1) |