diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-08-31 17:23:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-08-31 17:23:45 +0000 |
commit | 7afab53d438e9fdc3060c20cf855235aa5ef6f49 (patch) | |
tree | 2e6dcf9891303ea88e048c86faab6c4a1377a9e8 /linuxthreads/sysdeps/i386/i686/pt-machine.h | |
parent | bfce746a87e205a682b85e144e056029a8a30d07 (diff) | |
download | glibc-7afab53d438e9fdc3060c20cf855235aa5ef6f49.tar.gz glibc-7afab53d438e9fdc3060c20cf855235aa5ef6f49.tar.xz glibc-7afab53d438e9fdc3060c20cf855235aa5ef6f49.zip |
Update.
1998-08-31 Ulrich Drepper <drepper@cygnus.com> * elf/dl-close.c (_dl_close): Update _dl_loaded if the first object on the list is removed. Don't use this code for PIC. Reported by HJ Lu [PR libc/770].
Diffstat (limited to 'linuxthreads/sysdeps/i386/i686/pt-machine.h')
-rw-r--r-- | linuxthreads/sysdeps/i386/i686/pt-machine.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linuxthreads/sysdeps/i386/i686/pt-machine.h b/linuxthreads/sysdeps/i386/i686/pt-machine.h index a4b3a63f1c..d01e6cf368 100644 --- a/linuxthreads/sysdeps/i386/i686/pt-machine.h +++ b/linuxthreads/sysdeps/i386/i686/pt-machine.h @@ -26,9 +26,11 @@ testandset (int *spinlock) { int ret; - __asm__ __volatile__("xchgl %0, %1" + __asm__ __volatile__ ( + "xchgl %0, %1" : "=r"(ret), "=m"(*spinlock) - : "0"(1), "m"(*spinlock)); + : "0"(1), "m"(*spinlock) + : "memory"); return ret; } |