aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-17 02:03:18 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-17 02:03:18 +0000
commitbd499a3b46304d4900a6a6ba809f9b7f2c5a4afa (patch)
tree375cd9b66d7216238f0033c6e6a88e4ba11298d7 /nptl/sysdeps
parent64ab2317a89b3965e7d7230bb99cfc99a61f895f (diff)
downloadglibc-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.h8
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)