]> sourceware.org Git - glibc.git/commitdiff
powerpc: Eliminate UP macro conditionals
authorFlorian Weimer <fweimer@redhat.com>
Fri, 13 Nov 2020 14:19:41 +0000 (15:19 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 13 Nov 2020 14:20:07 +0000 (15:20 +0100)
The macro is never defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/powerpc/atomic-machine.h
sysdeps/powerpc/powerpc32/atomic-machine.h
sysdeps/powerpc/powerpc64/atomic-machine.h

index bd357a44a6d166bf576b6f29468182111a30b188..4feb21532f791ff2f283688c83ab106d2feba044 100644 (file)
@@ -53,14 +53,9 @@ typedef uintmax_t uatomic_max_t;
 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \
   (abort (), 0)
 
-#ifdef UP
-# define __ARCH_ACQ_INSTR      ""
-# define __ARCH_REL_INSTR      ""
-#else
-# define __ARCH_ACQ_INSTR      "isync"
-# ifndef __ARCH_REL_INSTR
-#  define __ARCH_REL_INSTR     "sync"
-# endif
+#define __ARCH_ACQ_INSTR       "isync"
+#ifndef __ARCH_REL_INSTR
+# define __ARCH_REL_INSTR      "sync"
 #endif
 
 #ifndef MUTEX_HINT_ACQ
index 61c794991cf1f1b21b5e2789a3e3e34e7361d298..066759d097c17a0e89d55bf758295c3c5569a1db 100644 (file)
 /*
  * "light weight" sync can also be used for the release barrier.
  */
-# ifndef UP
-#  define __ARCH_REL_INSTR     "lwsync"
-# endif
+# define __ARCH_REL_INSTR      "lwsync"
 # define atomic_write_barrier()        __asm ("lwsync" ::: "memory")
 #else
 /*
index 421dbd10c4caab22b66946933840fc25137e6cbc..c9372a8e9edb00688f9c18a4fb487fb09df2ea35 100644 (file)
 /*
  * "light weight" sync can also be used for the release barrier.
  */
-#ifndef UP
-# define __ARCH_REL_INSTR      "lwsync"
-#endif
+#define __ARCH_REL_INSTR       "lwsync"
 #define atomic_write_barrier() __asm ("lwsync" ::: "memory")
 
 /*
This page took 0.045328 seconds and 5 git commands to generate.