From: Florian Weimer Date: Fri, 13 Nov 2020 14:19:41 +0000 (+0100) Subject: powerpc: Eliminate UP macro conditionals X-Git-Tag: glibc-2.33~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5c4cce9c3eb82cb57d01a3ce3a0999e146abd63;p=thirdparty%2Fglibc.git powerpc: Eliminate UP macro conditionals The macro is never defined. Reviewed-by: Adhemerval Zanella --- diff --git a/sysdeps/powerpc/atomic-machine.h b/sysdeps/powerpc/atomic-machine.h index bd357a44a6d..4feb21532f7 100644 --- a/sysdeps/powerpc/atomic-machine.h +++ b/sysdeps/powerpc/atomic-machine.h @@ -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 diff --git a/sysdeps/powerpc/powerpc32/atomic-machine.h b/sysdeps/powerpc/powerpc32/atomic-machine.h index 61c794991cf..066759d097c 100644 --- a/sysdeps/powerpc/powerpc32/atomic-machine.h +++ b/sysdeps/powerpc/powerpc32/atomic-machine.h @@ -105,9 +105,7 @@ /* * "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 /* diff --git a/sysdeps/powerpc/powerpc64/atomic-machine.h b/sysdeps/powerpc/powerpc64/atomic-machine.h index 421dbd10c4c..c9372a8e9ed 100644 --- a/sysdeps/powerpc/powerpc64/atomic-machine.h +++ b/sysdeps/powerpc/powerpc64/atomic-machine.h @@ -230,9 +230,7 @@ /* * "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") /*