diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-05-05 18:24:09 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-05-05 18:24:09 +0000 |
commit | 4661a1534390784e32ce940ad05ebb8ea9cdb62d (patch) | |
tree | 386c3329673ecb68f5b957f708bdd3504df76b6e /sysdeps/sparc | |
parent | b2e2aa373936c76e1c5cf119d35b48ae64f9fbec (diff) | |
download | glibc-4661a1534390784e32ce940ad05ebb8ea9cdb62d.tar.gz glibc-4661a1534390784e32ce940ad05ebb8ea9cdb62d.tar.xz glibc-4661a1534390784e32ce940ad05ebb8ea9cdb62d.zip |
Update.
2003-05-05 Jakub Jelinek <jakub@redhat.com> * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq, __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type. * sysdeps/powerpc/powerpc32/bits/atomic.h (__arch_compare_and_exchange_val_64_acq): Likewise. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__arch_compare_and_exchange_val_8_acq, __arch_compare_and_exchange_val_16_acq, __arch_compare_and_exchange_val_64_acq): Likewise. * sysdeps/sparc/sparc64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq, __arch_compare_and_exchange_val_16_acq): Likewise. * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq, __arch_compare_and_exchange_val_16_acq, __arch_compare_and_exchange_val_64_acq): Likewise. * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__arch_compare_and_exchange_val_64_acq): Likewise. * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut up warning. * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0): Return long instead of int. (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace 0xfffff001u with -4095UL.
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r-- | sysdeps/sparc/sparc32/sparcv9/bits/atomic.h | 6 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/bits/atomic.h | 4 |
2 files changed, 5 insertions, 5 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; \ diff --git a/sysdeps/sparc/sparc64/bits/atomic.h b/sysdeps/sparc/sparc64/bits/atomic.h index bb3c91d8d0..4df3b2556a 100644 --- a/sysdeps/sparc/sparc64/bits/atomic.h +++ b/sysdeps/sparc/sparc64/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) \ ({ \ |