+2000-04-17 Ulrich Drepper <drepper@redhat.com>
+
+ * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
+
2000-04-15 Ulrich Drepper <drepper@redhat.com>
* csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
if (list[i] == map)
break;
- if (__builtin_expect (i, act) == act)
+ if (__builtin_expect (i == act, 1))
{
/* No normal dependency. See whether we already had to add it
to the special list of dynamic dependencies. */
2000-04-16 Ulrich Drepper <drepper@redhat.com>
+ * condvar.c (pthread_cond_timedwait_relative): Don't test for owner
+ if fast mutex is used. Don't initialize `already_canceled' twice.
+ Correctly test for return value of timedsuspend.
+
* pthread.c: Correct long-time braino. We never set SA_SIGINFO and
therefore don't need the _rt versions of the signal handlers.
pthread_extricate_if extr;
/* Check whether the mutex is locked and owned by this thread. */
- if (mutex->__m_owner != self)
+ if (mutex->__m_kind != PTHREAD_MUTEX_FAST_NP && mutex->__m_owner != self)
return EINVAL;
- already_canceled = 0;
-
/* Set up extrication interface */
extr.pu_object = cond;
extr.pu_extricate_func = cond_extricate_func;
pthread_mutex_unlock(mutex);
- if (!timedsuspend(self, abstime) == 0) {
+ if (!timedsuspend(self, abstime)) {
int was_on_queue;
/* __pthread_lock will queue back any spurious restarts that