summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2010-07-20 07:45:19 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2010-09-16 12:31:50 +0200
commitf3149e573862ffa69297abd2934b48617415c97d (patch)
treee7d4ce768ec0b11ac41f7e7a1ea46cb6c07dae5f /libc/sysdeps/linux/sh
parent26606098c2eb57d288b2e0edca471c71d0d7fa51 (diff)
nptl_sh: Fix compiler warning due to shadowed variable
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/sysdeps/linux/sh')
-rw-r--r--libc/sysdeps/linux/sh/bits/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/sh/bits/atomic.h b/libc/sysdeps/linux/sh/bits/atomic.h
index bc79b29b7..fa6d0de96 100644
--- a/libc/sysdeps/linux/sh/bits/atomic.h
+++ b/libc/sysdeps/linux/sh/bits/atomic.h
@@ -79,7 +79,7 @@ typedef uintmax_t uatomic_max_t;
*/
#define __arch_compare_and_exchange_n(mem, newval, oldval, bwl, version) \
- ({ signed long __result; \
+ ({ signed long __arch_result; \
__asm__ __volatile__ ("\
.align 2\n\
mova 1f,r0\n\
@@ -94,10 +94,10 @@ typedef uintmax_t uatomic_max_t;
.ifeqs \"bool\",\"" #version "\"\n\
movt %0\n\
.endif\n" \
- : "=&r" (__result) \
+ : "=&r" (__arch_result) \
: "r" (mem), "r" (newval), "r" (oldval) \
: "r0", "r1", "t", "memory"); \
- __result; })
+ __arch_result; })
#define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
__arch_compare_and_exchange_n(mem, newval, (int8_t)(oldval), b, val)