about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-12-12 18:01:23 +0000
committerUlrich Drepper <drepper@redhat.com>2001-12-12 18:01:23 +0000
commit0a9b637e8ae475e1976ed3f94e40eb9626a5c58b (patch)
tree9d7cc450b16af29a91c98bcbb7a6722e8058e509 /linuxthreads
parentfa231011fca191c126e54129cb5aae483fbb9ebd (diff)
downloadglibc-0a9b637e8ae475e1976ed3f94e40eb9626a5c58b.tar.gz
glibc-0a9b637e8ae475e1976ed3f94e40eb9626a5c58b.tar.xz
glibc-0a9b637e8ae475e1976ed3f94e40eb9626a5c58b.zip
(INIT_THREAD_SELF): Added __volatile__ qualifier to be safe.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/sysdeps/sh/pt-machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/sh/pt-machine.h b/linuxthreads/sysdeps/sh/pt-machine.h
index 7287dc936b..ae74c475bd 100644
--- a/linuxthreads/sysdeps/sh/pt-machine.h
+++ b/linuxthreads/sysdeps/sh/pt-machine.h
@@ -53,4 +53,4 @@ struct _pthread_descr_struct;
 
 /* Initialize the thread-unique value.  */
 #define INIT_THREAD_SELF(descr, nr) \
-  ({ __asm__("ldc %0,gbr" : : "r" (descr));})
+  ({ __asm__ __volatile__("ldc %0,gbr" : : "r" (descr));})