diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-03-22 08:29:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-03-22 08:29:10 +0000 |
commit | 32fe4a9320702ca48a812e60800bd3ec6f21418c (patch) | |
tree | 8a15d27c76209731af1e68c2501f2435a7b19a06 | |
parent | c7a9b6e2d3f2257ecd6fe1da6f4c0dfdd5521b29 (diff) | |
download | glibc-32fe4a9320702ca48a812e60800bd3ec6f21418c.tar.gz glibc-32fe4a9320702ca48a812e60800bd3ec6f21418c.tar.xz glibc-32fe4a9320702ca48a812e60800bd3ec6f21418c.zip |
Update.
2002-03-22 Ulrich Drepper <drepper@redhat.com> * internals.h (MEMORY_BARRIER): Define as asm with memory as clobber.
-rw-r--r-- | linuxthreads/ChangeLog | 4 | ||||
-rw-r--r-- | linuxthreads/internals.h | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 8ba4345f39..18c86f505d 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,7 @@ +2002-03-22 Ulrich Drepper <drepper@redhat.com> + + * internals.h (MEMORY_BARRIER): Define as asm with memory as clobber. + 2002-03-17 Andreas Jaeger <aj@suse.de> * sysdeps/i386/pt-machine.h: Add testandset and __compare_and_swap diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 8fef62f7bd..45a73ad194 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -193,12 +193,14 @@ static inline int nonexisting_handle(pthread_handle h, pthread_t id) #define THREAD_STACK_START_ADDRESS __pthread_initial_thread_bos #endif -/* If MEMORY_BARRIER isn't defined in pt-machine.h, assume the architecture - doesn't need a memory barrier instruction (e.g. Intel x86). Some - architectures distinguish between full, read and write barriers. */ +/* If MEMORY_BARRIER isn't defined in pt-machine.h, assume the + architecture doesn't need a memory barrier instruction (e.g. Intel + x86). Still we need the compiler to respect the barrier and emit + all outstanding operations which modify memory. Some architectures + distinguish between full, read and write barriers. */ #ifndef MEMORY_BARRIER -#define MEMORY_BARRIER() +#define MEMORY_BARRIER() asm ("" : : : "memory") #endif #ifndef READ_MEMORY_BARRIER #define READ_MEMORY_BARRIER() MEMORY_BARRIER() |