OSDN Git Service

change __asm to __asm__ and __volatile to __volatile__
authorPeter S. Mazinger <ps.m@gmx.net>
Fri, 18 Mar 2011 23:49:00 +0000 (00:49 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:28 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/c6x/bits/syscalls.h
libpthread/nptl/sysdeps/sparc/sparc32/pthread_spin_lock.c
libpthread/nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.c
libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_lock.c
libpthread/nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.c

index 504d0c3..1bebb00 100644 (file)
        register long __B6 __asm__ ("B6") = (long)(arg4);               \
        register long __A8 __asm__ ("A8") = (long)(arg5);               \
        register long __g1 __asm__ ("g1") = __NR_clone;                 \
-       __asm __volatile (__CLONE_SYSCALL_STRING :                      \
+       __asm__ __volatile__ (__CLONE_SYSCALL_STRING :                  \
                          "=r" (__g1), "=r" (__A4), "=r" (__B4) :       \
                          "0" (__g1), "1" (__A4), "2" (__B4),           \
                          "r" (__A6), "r" (__B6), "r" (__A8) :          \
index c263bb7..0c28d8e 100644 (file)
@@ -22,7 +22,7 @@
 int
 pthread_spin_lock (pthread_spinlock_t *lock)
 {
-  __asm__ __volatile
+  __asm__ __volatile__
     ("1: ldstub [%0], %%g2\n"
      "   orcc   %%g2, 0x0, %%g0\n"
      "   bne,a  2f\n"
index 0e18621..6506e4f 100644 (file)
@@ -22,7 +22,7 @@
 int
 pthread_spin_lock (pthread_spinlock_t *lock)
 {
-  __asm__ __volatile
+  __asm__ __volatile__
     ("1: ldstub  [%0], %%g2\n"
      "   brnz,pn %%g2, 2f\n"
      "    membar #StoreLoad | #StoreStore\n"
index 53a3eab..ebf8b18 100644 (file)
@@ -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"
index a8ef1c2..282f1cd 100644 (file)
@@ -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)