aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/bits/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/bits/atomic.h')
-rw-r--r--sysdeps/powerpc/bits/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/bits/atomic.h b/sysdeps/powerpc/bits/atomic.h
index 13001cb3c0..956272c482 100644
--- a/sysdeps/powerpc/bits/atomic.h
+++ b/sysdeps/powerpc/bits/atomic.h
@@ -111,14 +111,14 @@ typedef uintmax_t uatomic_max_t;
#define atomic_exchange(mem, value) \
({ if (sizeof (*mem) != 4) \
abort (); \
- int __val, __tmp; \
+ int __val; \
__asm __volatile (__ARCH_REL_INSTR "\n" \
"1: lwarx %0,0,%2\n" \
" stwcx. %3,0,%2\n" \
" bne- 1b" \
: "=&r" (__val), "=m" (*mem) \
: "r" (mem), "r" (value), "1" (*mem) \
- : "cr0", "memory"); \
+ : "cr0"); \
__val; })