]> granicus.if.org Git - libatomic_ops/commitdiff
Fix AO_fetch_compare_and_swap (PowerPC) inline asm syntax
authorAndreas Tobler <andreastt@gmail.com>
Fri, 18 Nov 2011 08:29:06 +0000 (12:29 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 18 Nov 2011 08:29:06 +0000 (12:29 +0400)
* src/atomic_ops/sysdeps/gcc/powerpc.h (AO_fetch_compare_and_swap):
Remove commas after "fetched_val" inline asm parameter.

src/atomic_ops/sysdeps/gcc/powerpc.h

index cc1aaa68da3bc088f3c597ecf29907a44c010745..b84369250807cbc5a50c6e8da8082d46e59725d8 100644 (file)
@@ -246,7 +246,7 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
       "stdcx. %2,0,%1\n"        /* else store conditional       */
       "bne- 1b\n"               /* retry if lost reservation    */
       "2:\n"
-      : "=&r"(fetched_val),
+      : "=&r"(fetched_val)
       : "r"(addr), "r"(new_val), "r"(old_val)
       : "memory", "cr0");
 # else
@@ -257,7 +257,7 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
       "stwcx. %2,0,%1\n"        /* else store conditional       */
       "bne- 1b\n"               /* retry if lost reservation    */
       "2:\n"
-      : "=&r"(fetched_val),
+      : "=&r"(fetched_val)
       : "r"(addr), "r"(new_val), "r"(old_val)
       : "memory", "cr0");
 # endif