mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
Fix warnings from aborting MIPS atomic macros.
This commit is contained in:
parent
be14d48f5a
commit
bd077d205a
@ -1,3 +1,13 @@
|
||||
2012-11-20 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/mips/bits/atomic.h [!__GNUC_PREREQ (4, 8)]
|
||||
(__arch_compare_and_exchange_xxx_8_int): Separate assignments to
|
||||
__prev and __cmp. Cast __cmp to void.
|
||||
[!__GNUC_PREREQ (4, 8)] (__arch_compare_and_exchange_xxx_16_int):
|
||||
Likewise.
|
||||
[!__GNUC_PREREQ (4, 8) && _MIPS_SIM == _ABIO32]
|
||||
(__arch_compare_and_exchange_xxx_64_int): Likewise.
|
||||
|
||||
2012-11-19 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Declare VERSION
|
||||
|
@ -209,10 +209,10 @@ typedef uintmax_t uatomic_max_t;
|
||||
in which values are returned. */
|
||||
|
||||
# define __arch_compare_and_exchange_xxx_8_int(mem, newval, oldval, rel, acq) \
|
||||
(abort (), __prev = __cmp = 0)
|
||||
(abort (), __prev = 0, __cmp = 0, (void) __cmp)
|
||||
|
||||
# define __arch_compare_and_exchange_xxx_16_int(mem, newval, oldval, rel, acq) \
|
||||
(abort (), __prev = __cmp = 0)
|
||||
(abort (), __prev = 0, __cmp = 0, (void) __cmp)
|
||||
|
||||
# define __arch_compare_and_exchange_xxx_32_int(mem, newval, oldval, rel, acq) \
|
||||
__asm__ __volatile__ ( \
|
||||
@ -236,7 +236,7 @@ typedef uintmax_t uatomic_max_t;
|
||||
# if _MIPS_SIM == _ABIO32
|
||||
/* We can't do an atomic 64-bit operation in O32. */
|
||||
# define __arch_compare_and_exchange_xxx_64_int(mem, newval, oldval, rel, acq) \
|
||||
(abort (), __prev = __cmp = 0)
|
||||
(abort (), __prev = 0, __cmp = 0, (void) __cmp)
|
||||
# else
|
||||
# define __arch_compare_and_exchange_xxx_64_int(mem, newval, oldval, rel, acq) \
|
||||
__asm__ __volatile__ ("\n" \
|
||||
|
Loading…
Reference in New Issue
Block a user