about summary refs log tree commit diff
path: root/sysdeps/s390/atomic-machine.h
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2015-11-20 08:56:40 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-11-20 08:56:40 +0100
commit31cf39421bae23ffc7b6c6a229e14f8faa41608f (patch)
tree06c691d99784858f0ccd30133fed70f9362b91a5 /sysdeps/s390/atomic-machine.h
parent9695cb3e6528d9f6f5c7c7f96bd6c94e5ba0e2c4 (diff)
downloadglibc-31cf39421bae23ffc7b6c6a229e14f8faa41608f.tar.gz
glibc-31cf39421bae23ffc7b6c6a229e14f8faa41608f.tar.xz
glibc-31cf39421bae23ffc7b6c6a229e14f8faa41608f.zip
S390: Use __asm__ instead of asm.
	* sysdeps/s390/fpu/bits/mathinline.h:
	Use __asm__ [__volatile__] instead of asm [volatile].
	* sysdeps/s390/abort-instr.h: Likewise.
	* sysdeps/s390/atomic-machine.h: Likewise.
	* sysdeps/s390/bits/string.h: Likewise.
	* sysdeps/s390/dl-tls.h: Likewise.
	* sysdeps/s390/fpu/e_sqrt.c: Likewise.
	* sysdeps/s390/fpu/e_sqrtf.c: Likewise.
	* sysdeps/s390/fpu/e_sqrtl.c: Likewise.
	* sysdeps/s390/fpu/fesetround.c: Likewise.
	* sysdeps/s390/fpu/fpu_control.h: Likewise.
	* sysdeps/s390/fpu/s_fma.c: Likewise.
	* sysdeps/s390/fpu/s_fmaf.c: Likewise.
	* sysdeps/s390/memusage.h: Likewise.
	* sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
	* sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
	* sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
	* sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
	* sysdeps/s390/nptl/tls.h: Likewise.
	* sysdeps/s390/s390-32/__longjmp.c: Likewise.
	* sysdeps/s390/s390-32/backtrace.c: Likewise.
	* sysdeps/s390/s390-32/dl-machine.h: Likewise.
	* sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
	* sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
	* sysdeps/s390/s390-32/tls-macros.h: Likewise.
	* sysdeps/s390/s390-64/__longjmp.c: Likewise.
	* sysdeps/s390/s390-64/backtrace.c: Likewise.
	* sysdeps/s390/s390-64/dl-machine.h: Likewise.
	* sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
	* sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
	* sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
	* sysdeps/s390/s390-64/tls-macros.h: Likewise.
	* sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
	* sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
	* sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
Diffstat (limited to 'sysdeps/s390/atomic-machine.h')
-rw-r--r--sysdeps/s390/atomic-machine.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/sysdeps/s390/atomic-machine.h b/sysdeps/s390/atomic-machine.h
index 16c8c54b94..43d0b09fd5 100644
--- a/sysdeps/s390/atomic-machine.h
+++ b/sysdeps/s390/atomic-machine.h
@@ -55,9 +55,9 @@ typedef uintmax_t uatomic_max_t;
 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
   ({ __typeof (mem) __archmem = (mem);					      \
      __typeof (*mem) __archold = (oldval);				      \
-     __asm __volatile ("cs %0,%2,%1"					      \
-		       : "+d" (__archold), "=Q" (*__archmem)		      \
-		       : "d" (newval), "m" (*__archmem) : "cc", "memory" );	      \
+     __asm__ __volatile__ ("cs %0,%2,%1"				      \
+			   : "+d" (__archold), "=Q" (*__archmem)	      \
+			   : "d" (newval), "m" (*__archmem) : "cc", "memory" );	\
      __archold; })
 
 #ifdef __s390x__
@@ -65,9 +65,9 @@ typedef uintmax_t uatomic_max_t;
 # define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
   ({ __typeof (mem) __archmem = (mem);					      \
      __typeof (*mem) __archold = (oldval);				      \
-     __asm __volatile ("csg %0,%2,%1"					      \
-		       : "+d" (__archold), "=Q" (*__archmem)		      \
-		       : "d" ((long) (newval)), "m" (*__archmem) : "cc", "memory" );    \
+     __asm__ __volatile__ ("csg %0,%2,%1"				      \
+			   : "+d" (__archold), "=Q" (*__archmem)	      \
+			   : "d" ((long) (newval)), "m" (*__archmem) : "cc", "memory" ); \
      __archold; })
 #else
 # define __HAVE_64B_ATOMICS 0
@@ -89,17 +89,17 @@ typedef uintmax_t uatomic_max_t;
     __typeof (*(mem)) __atg5_oldval = *__atg5_memp;			\
     __typeof (*(mem)) __atg5_value = (newvalue);			\
     if (sizeof (*mem) == 4)						\
-      __asm __volatile ("0: cs %0,%2,%1\n"				\
-			"   jl 0b"					\
-			: "+d" (__atg5_oldval), "=Q" (*__atg5_memp)	\
-			: "d" (__atg5_value), "m" (*__atg5_memp)	\
-			: "cc", "memory" );				\
+      __asm__ __volatile__ ("0: cs %0,%2,%1\n"				\
+			    "   jl 0b"					\
+			    : "+d" (__atg5_oldval), "=Q" (*__atg5_memp)	\
+			    : "d" (__atg5_value), "m" (*__atg5_memp)	\
+			    : "cc", "memory" );				\
      else if (sizeof (*mem) == 8)					\
-       __asm __volatile ("0: csg %0,%2,%1\n"				\
-			 "   jl 0b"					\
-			 : "+d" ( __atg5_oldval), "=Q" (*__atg5_memp)	\
-			 : "d" ((long) __atg5_value), "m" (*__atg5_memp) \
-			 : "cc", "memory" );				\
+       __asm__ __volatile__ ("0: csg %0,%2,%1\n"			\
+			     "   jl 0b"					\
+			     : "+d" ( __atg5_oldval), "=Q" (*__atg5_memp) \
+			     : "d" ((long) __atg5_value), "m" (*__atg5_memp) \
+			     : "cc", "memory" );			\
      else								\
        abort ();							\
      __atg5_oldval; })
@@ -109,11 +109,11 @@ typedef uintmax_t uatomic_max_t;
     __typeof (*(mem)) __atg5_oldval = *__atg5_memp;			\
     __typeof (*(mem)) __atg5_value = (newvalue);			\
     if (sizeof (*mem) == 4)						\
-      __asm __volatile ("0: cs %0,%2,%1\n"				\
-			"   jl 0b"					\
-			: "+d" (__atg5_oldval), "=Q" (*__atg5_memp)	\
-			: "d" (__atg5_value), "m" (*__atg5_memp)	\
-			: "cc", "memory" );				\
+      __asm__ __volatile__ ("0: cs %0,%2,%1\n"				\
+			    "   jl 0b"					\
+			    : "+d" (__atg5_oldval), "=Q" (*__atg5_memp)	\
+			    : "d" (__atg5_value), "m" (*__atg5_memp)	\
+			    : "cc", "memory" );				\
     else								\
       abort ();								\
     __atg5_oldval; })