]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(INIT_THREAD_SELF): Added __volatile__ qualifier to be safe.
authorUlrich Drepper <drepper@redhat.com>
Wed, 12 Dec 2001 18:01:23 +0000 (18:01 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 12 Dec 2001 18:01:23 +0000 (18:01 +0000)
linuxthreads/sysdeps/sh/pt-machine.h

index 7287dc936b1227cf4e53c307f88ff7c901219c27..ae74c475bd017ae76faed42c503c656136fbfd11 100644 (file)
@@ -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));})