From e138a80033905ff82025155c00405da998aa07d3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 26 Jun 1998 09:51:29 +0000 Subject: [PATCH] Update. 1998-06-26 Ulrich Drepper * spinlock.c: Correct test whether to compile __pthread_compare_and_swap or not. --- libc.map | 4 ++++ linuxthreads/ChangeLog | 5 +++++ linuxthreads/spinlock.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libc.map b/libc.map index 3024bbd4af..0def83f777 100644 --- a/libc.map +++ b/libc.map @@ -20,6 +20,10 @@ GLIBC_2.0 { # This is for sparc only. .div; .mul; .rem; .udiv; .umul; .urem; + # For alpha, unfortunately in wider use. + _inb; _inw; _inl; _outb; _outw; _outl; _bus_base; _bus_base_sparse; + _hae_shift; + # helper functions __errno_location; __libc_init_first; __h_errno_location; __libc_start_main; diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 2bbeb928e9..b4f2ae61b3 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +1998-06-26 Ulrich Drepper + + * spinlock.c: Correct test whether to compile + __pthread_compare_and_swap or not. + 1998-06-25 19:27 Ulrich Drepper * attr.c: Finish user stack support. Change locking code to be safe diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c index dba5d38fd2..df30c35e6c 100644 --- a/linuxthreads/spinlock.c +++ b/linuxthreads/spinlock.c @@ -116,7 +116,7 @@ again: int __pthread_has_cas = 0; #endif -#ifndef HAS_COMPARE_AND_SWAP +#if !defined HAS_COMPARE_AND_SWAP || defined TEST_FOR_COMPARE_AND_SWAP static void __pthread_acquire(int * spinlock);