summaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/sparc32/sparcv9/bits/atomic.h')
-rw-r--r--sysdeps/sparc/sparc32/sparcv9/bits/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/sparc/sparc32/sparcv9/bits/atomic.h b/sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
index edab3bca16..bb4e2db961 100644
--- a/sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
+++ b/sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
@@ -47,10 +47,10 @@ typedef uintmax_t uatomic_max_t;
#define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
- (abort (), 0)
+ (abort (), (__typeof (*mem)) 0)
#define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
- (abort (), 0)
+ (abort (), (__typeof (*mem)) 0)
#define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
({ \
@@ -64,7 +64,7 @@ typedef uintmax_t uatomic_max_t;
/* This can be implemented if needed. */
#define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
- (abort (), 0)
+ (abort (), (__typeof (*mem)) 0)
#define atomic_exchange(mem, newvalue) \
({ __typeof (*(mem)) __oldval; \