aboutsummaryrefslogtreecommitdiff
path: root/glibc
diff options
context:
space:
mode:
authorDarius Rad <darius@bluespec.com>2015-03-02 13:41:55 -0500
committerDarius Rad <darius@bluespec.com>2015-03-03 09:24:07 -0500
commit2066afd83b37f62111aa8f097effdeb48f005e38 (patch)
treeefb2e91f3c2e6e1168dddd239ca1b8be150155a5 /glibc
parentbcb7b692d9de1db90d42b97bb50671e9b69ddff1 (diff)
downloadriscv-gnu-toolchain-2066afd83b37f62111aa8f097effdeb48f005e38.zip
riscv-gnu-toolchain-2066afd83b37f62111aa8f097effdeb48f005e38.tar.gz
riscv-gnu-toolchain-2066afd83b37f62111aa8f097effdeb48f005e38.tar.bz2
glibc: Cast macro return type to avoid compiler error.
Diffstat (limited to 'glibc')
-rw-r--r--glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h b/glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h
index 82b9006..f075d09 100644
--- a/glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h
+++ b/glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h
@@ -37,14 +37,14 @@
#define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
({ \
INTERNAL_SYSCALL_DECL (__err); \
- INTERNAL_SYSCALL (sysriscv, __err, 4, \
+ (__typeof (*mem)) INTERNAL_SYSCALL (sysriscv, __err, 4, \
RISCV_ATOMIC_CMPXCHG, mem, oldval, newval); \
})
#define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
({ \
INTERNAL_SYSCALL_DECL (__err); \
- INTERNAL_SYSCALL (sysriscv, __err, 4, \
+ (__typeof (*mem)) INTERNAL_SYSCALL (sysriscv, __err, 4, \
RISCV_ATOMIC_CMPXCHG64, mem, oldval, newval); \
})