summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/sh/pthread_spin_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sysdeps/sh/pthread_spin_lock.c')
-rw-r--r--libpthread/nptl/sysdeps/sh/pthread_spin_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/sh/pthread_spin_lock.c b/libpthread/nptl/sysdeps/sh/pthread_spin_lock.c
index 2c72eb610..74fad3388 100644
--- a/libpthread/nptl/sysdeps/sh/pthread_spin_lock.c
+++ b/libpthread/nptl/sysdeps/sh/pthread_spin_lock.c
@@ -24,7 +24,7 @@ pthread_spin_lock (pthread_spinlock_t *lock)
unsigned int val;
do
- __asm__ volatile ("tas.b @%1; movt %0"
+ __asm__ __volatile__ ("tas.b @%1; movt %0"
: "=&r" (val)
: "r" (lock)
: "memory");