From 934f2fc45e37745bf53db383d0ea11dc3ad4c152 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 19 Mar 2011 00:49:00 +0100 Subject: change __asm to __asm__ and __volatile to __volatile__ Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.c | 2 +- libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libpthread/nptl/sysdeps/sparc/sparc64') diff --git a/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.c b/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.c index 53a3eab04..ebf8b1850 100644 --- a/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.c +++ b/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.c @@ -22,7 +22,7 @@ int pthread_spin_lock (pthread_spinlock_t *lock) { - __asm__ __volatile + __asm__ __volatile__ ("1: ldstub [%0], %%g5\n" " brnz,pn %%g5, 2f\n" " membar #StoreLoad | #StoreStore\n" diff --git a/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.c b/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.c index a8ef1c216..282f1cd79 100644 --- a/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.c +++ b/libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.c @@ -24,7 +24,7 @@ int pthread_spin_trylock (pthread_spinlock_t *lock) { int res; - __asm__ __volatile + __asm__ __volatile__ ("ldstub [%1], %0\n" "membar #StoreLoad | #StoreStore" : "=r" (res) -- cgit v1.2.3