aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-03-232003-03-23 Roland McGrath <roland@redhat.com>Roland McGrath
* tst-mutex4.c: Use test-skeleton.c. * tst-spin2.c: Likewise. * tst-sysconf.c: Likewise. * tst-barrier2.c: Likewise. * tst-cond4.c: Likewise. * tst-cond6.c: Likewise. * tst-rwlock4.c: Likewise. * tst-flock2.c (do_test): Use return instead of exit.
2003-03-23* sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns. * ↵Alexandre Oliva
sysdeps/unix/sysv/linux/configure: Rebuilt. 2003-03-22 Alexandre Oliva <aoliva@redhat.com> * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns. * sysdeps/unix/sysv/linux/configure: Rebuilt.
2003-03-23* sysdeps/alpha/fpu/libm-test-ulps: Update.Roland McGrath
* sysdeps/arm/libm-test-ulps: Update. * sysdeps/hppa/fpu/libm-test-ulps: Update. * sysdeps/ia64/fpu/libm-test-ulps: Update. * sysdeps/mips/fpu/libm-test-ulps: Update. * sysdeps/powerpc/nofpu/libm-test-ulps: Update. * sysdeps/powerpc/fpu/libm-test-ulps: Update. * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update. * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update. * sysdeps/sh/sh4/fpu/libm-test-ulps: Update. * sysdeps/s390/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2003-03-22* include/atomic.h: Put parens around all macro arguments.Roland McGrath
(__atomic_val_bysize, __atomic_bool_bysize): New macros. (atomic_compare_and_exchange_val_acq): Use it. (atomic_compare_and_exchange_bool_acq): Likewise. (atomic_increment_and_test): Invert sense of test. (atomic_decrement_and_test): Likewise. * csu/tst-atomic.c: Update those tests to match.
2003-03-22* include/atomic.h (atomic_increment_and_test): Invert sense of test.Roland McGrath
Add comment. (atomic_decrement_and_test): Add comment. 2003-03-22 Jakub Jelinek <jakub@redhat.com> * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment. Don't define if __arch_compare_and_exchange_val_32_acq is not defined. (atomic_compare_and_exchange_bool_acq): Add comment. Don't use __oldval variable in the macro, since it might be macro argument. (atomic_decrement_if_positive): Initialize __memp, remove setting of non-existent variable. (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting. * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement using atomic_compare_and_exchange_val_acq. (atomic_decrement_if_positive, atomic_bit_test_set): Define. * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq): Renamed from... (__arch_compare_and_exchange_bool_8_acq): ... this. (__arch_compare_and_exchange_val_16_acq): Renamed from... (__arch_compare_and_exchange_bool_16_acq): ... this. (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed from... (__arch_compare_and_exchange_bool_32_acq): ... this. (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed from... (__arch_compare_and_exchange_bool_64_acq): ... this. (__arch_compare_and_exchange_val_32_acq): Use __typeof for local variables types instead of assuming int. Change prefix of local variables to __arch. * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq): Remove. (atomic_compare_and_exchange_val_acq, atomic_compare_and_exchange_bool_acq): Define. * csu/tst-atomic.c: New test. * csu/tst-atomic-long.c: New test. * csu/Makefile (tests): Add tst-atomic and tst-atomic-long. * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong. * sysdeps/s390/Versions: Add trailing newline. * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2003-03-222003-03-22 Jakub Jelinek <jakub@redhat.com>Roland McGrath
* sysdeps/s390/Versions: Add trailing newline.
2003-03-22* sysdeps/m68k/fpu/libm-test-ulps: Update.Andreas Schwab
2003-03-22* sysdeps/m68k/m68020/bits/atomic.h: New file.Andreas Schwab
* sysdeps/m68k/m68020/atomicity.h: Removed.
2003-03-22Atomic operations for m68020 and up.Andreas Schwab
2003-03-22* sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation data ↵Alexandre Oliva
structures and macros. Protect from multiple inclusion. * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation data structures and macros. Protect from multiple inclusion.
2003-03-22* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless typo in ↵Alexandre Oliva
#if test. 2003-03-22 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless typo in #if test.
2003-03-22UpdateAndreas Jaeger
2003-03-21 Andreas Jaeger <aj@suse.de> * sysdeps/i386/fpu/libm-test-ulps: Update. * math/libm-test.inc (tgamma_test): Recompute some constants with 36 digits precision. (lgamma_test): Likewise. (ccos_test): Likewise. (ccosh_test): Likewise. (clog10_test): Likewise. (csin_test): Likewise. (csinh_test): Likewise. (ctan_test): Likewise. (ctanh_test): Likewise. 2003-03-19 Jakub Jelinek <jakub@redhat.com> * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2003-03-22* math/libm-test.inc (tgamma_test): Recompute some constants with Andreas Jaeger
36 digits precision. (lgamma_test): Likewise. (ccos_test): Likewise. (ccosh_test): Likewise. (clog10_test): Likewise. (csin_test): Likewise. (csinh_test): Likewise. (ctan_test): Likewise. (ctanh_test): Likewise.
2003-03-22* sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"Roland McGrath
constraint to permit non-constant BIT argument. (atomic_bit_test_set): Likewise. * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise. (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32. For quadword case, use "i" constraint if __builtin_constant_p and < 32 or "r" constraint otherwise. * configure.in: Move AC_PROG_CC and other program-finding before all the version checks. * configure: Regenerated.
2003-03-222003-03-21 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir" constraint to permit non-constant BIT argument. (atomic_bit_test_set): Likewise. * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise. (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32. For quadword case, use "i" constraint if __builtin_constant_p and < 32 or "r" constraint otherwise.
2003-03-21* sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke unaligned copying ↵Alexandre Oliva
of 8-15 bytes. From Chris Demetriou <cgd@broadcom.com>. Fix label names. * sysdeps/mips/mips64/memset.S: Fix label names. Make similar change as to memcpy.S. * sysdeps/mips/memcpy.S: Formatting changes. * sysdeps/mips/memset.S: Likewise. 2003-03-21 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke unaligned copying of 8-15 bytes. From Chris Demetriou <cgd@broadcom.com>. Fix label names. * sysdeps/mips/mips64/memset.S: Fix label names. Make similar change as to memcpy.S. * sysdeps/mips/memcpy.S: Formatting changes. * sysdeps/mips/memset.S: Likewise.
2003-03-21* sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.Roland McGrath
2003-03-21* sysdeps/i386/tls.h [__ASSUME_SET_THREAD_AREA_SYSCALL]Roland McGrath
(TLS_SETUP_GS_SEGMENT): Fix a typo.
2003-03-212003-03-21 Jakub Jelinek <jakub@redhat.com>Roland McGrath
* sysdeps/i386/tls.h [__ASSUME_SET_THREAD_AREA_SYSCALL] (TLS_SETUP_GS_SEGMENT): Fix a typo.
2003-03-21* sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New. * ↵Alexandre Oliva
sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments. 2003-03-21 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New. * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2003-03-21.Roland McGrath
2003-03-21* sysdeps/i386/i486/bits/atomic.hRoland McGrath
(__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling version of the macro to avoid compile-time warnings. [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above. (__arch_compare_and_exchange_bool_64_acq): New macro. (atomic_exchange_and_add, atomic_add): Fix name and usage of it. (atomic_increment, atomic_decrement): Likewise.
2003-03-212003-03-21 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/i386/i486/bits/atomic.h (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling version of the macro to avoid compile-time warnings. [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above. (__arch_compare_and_exchange_bool_64_acq): New macro. (atomic_exchange_and_add, atomic_add): Fix name and usage of it. (atomic_increment, atomic_decrement): Likewise.
2003-03-21Update.Ulrich Drepper
2003-03-21 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints. * sysdeps/i386/i486/bits/atomic.h: Likewise.
2003-03-21Don't use matching memory constraints.Ulrich Drepper
2003-03-21* include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.Roland McGrath
2003-03-212003-03-21 Roland McGrath <roland@redhat.com>Roland McGrath
* include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2003-03-21(__arch_compare_and_exchange_val_*_acq): Remove setne instruction.Ulrich Drepper
2003-03-21Update.Ulrich Drepper
2003-03-20 Ulrich Drepper <drepper@redhat.com> * include/atomic.h: Define atomic_compare_and_exchange_val_acq, atomic_compare_and_exchange_val_rel, atomic_compare_and_exchange_bool_acq, and atomic_compare_and_exchange_bool_rel instead of atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel. * sysdeps/i386/i486/bits/atomic.h: Define __arch_compare_and_exchange_val_*_acq instead of __arch_compare_and_exchange_*_acq. * sysdeps/x86_64/bits/atomic.h: Likewise. * sysdeps/ia64/bits/atomic.h: Define __arch_compare_and_exchange_bool_*_acq instead of __arch_compare_and_exchange_*_acq. * sysdeps/powerpc/bits/atomic.h: Likewise. * sysdeps/s390/bits/atomic.h: Likewise. * gmon/mcount.c: Adjust for new form of compare&exchange macros. * malloc/set-freeres.c: Likewise. * nscd/cache.c: Likewise. * stdlib/cxa_finalize.c: Likewise. * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2003-03-21Update.Ulrich Drepper
2003-03-21 Ulrich Drepper <drepper@redhat.com> * cancellation.c: Adjust for new form of compare&exchange macros. * cleanup_defer.c: Likewise. * init.c: Likewise. * libc-cancellation.c: Likewise. * old_pthread_cond_broadcast.c: Likewise. * old_pthread_cond_signal.c: Likewise. * old_pthread_cond_timedwait.c: Likewise. * old_pthread_cond_wait.c: Likewise. * pthread_cancel.c: Likewise. * pthread_create.c: Likewise. * pthread_detach.c: Likewise. * pthread_join.c: Likewise. * pthread_key_delete.c: Likewise. * pthread_setcancelstate.c: Likewise. * pthread_setcanceltype.c: Likewise. * pthread_timedjoin.c: Likewise. * pthread_tryjoin.c: Likewise. * sysdeps/pthread/createthread.c: Likewise.
2003-03-21Define atomic_compare_and_exchange_val_acq, ↵Ulrich Drepper
atomic_compare_and_exchange_val_rel, atomic_compare_and_exchange_bool_acq, and atomic_compare_and_exchange_bool_rel instead of atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2003-03-20* sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs. * ↵Alexandre Oliva
sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust. * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise. * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs. * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust. * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2003-03-20* sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset into high and ↵Alexandre Oliva
low halves on n64. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. 2003-03-20 Alexandre Oliva <aoliva@redhat.com> * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset into high and low halves on n64. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2003-03-20Update.Ulrich Drepper
2003-03-20 Ulrich Drepper <drepper@redhat.com> * include/atomic.h (atomic_decrement_if_positive): Adjust for the correct atomic_compare_and_exchange_acq semantics.
2003-03-20(atomic_decrement_if_positive): Adjust for the correct ↵Ulrich Drepper
atomic_compare_and_exchange_acq semantics.
2003-03-20* sysdeps/mips/ieee754.h: Remove excess #endif.Alexandre Oliva
2003-03-20 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/ieee754.h: Remove excess #endif.
2003-03-20* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unusedRoland McGrath
variable. Remove superfluous memory clobber. * include/atomic.h: Syntax braino fix. * posix/tst-nice.c (do_test): Use %m formats instead of printing errno in decimal. Don't bail if niced at start. Just check that nice call bumps the total at all.
2003-03-202003-03-20 Roland McGrath <roland@redhat.com>Roland McGrath
* posix/tst-nice.c (do_test): Use %m formats instead of printing errno in decimal. Don't bail if niced at start. Just check that nice call bumps the total at all.
2003-03-20Update.Ulrich Drepper
2003-03-20 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Include <atomic.h>. Remove __lll_add, __lll_dev_if_positive, and __lll_test_and_set definitions. Replace uses with calls to atomic_* functions. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/lowlevellock.c: Replace __lll_add and __lll_test_and_set calls with atomic_exchange_and_add and atomic_exchange calls respectively. * sysdeps/unix/sysv/linux/sem_post.c: Likewise. * sysdeps/unix/sysv/linux/sem_timedwait.c: Likewise. * sysdeps/unix/sysv/linux/sem_trywait.c: Likewise. * sysdeps/unix/sysv/linux/sem_wait.c: Likewise. * sysdeps/unix/sysv/linux/ia64/pthread_once.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sem_port.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Likewise. * allocatestack.c (allocate_stack): Assume atomic_exchange_and_add returns the old value.
2003-03-20Replace __lll_add calls with atomic_exchange_and_add calls respectively.Ulrich Drepper
2003-03-20* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers, including pc, ↵Alexandre Oliva
gp, sp and fp, as long long. * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux. * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments. Add gp argument, and set gp in the jmpbuf to it. * sysdeps/mips/setjmp_aux.c: Revert to o32-only. 2003-03-20 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers, including pc, gp, sp and fp, as long long. * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux. * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments. Add gp argument, and set gp in the jmpbuf to it. * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2003-03-20Replace __lll_add and __lll_test_and_set calls with atomic_exchange_and_add ↵Ulrich Drepper
and atomic_exchange call respectively.
2003-03-20Update.Ulrich Drepper
2003-03-20 Ulrich Drepper <drepper@redhat.com> * include/atomic.h: Define atomic_exchange and atomic_decrement_if_positive if not already defined. Add some __builtin_expect. * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange. * sysdeps/x86_64/bits/atomic.h: Likewise. * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange. * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define atomic_exchange, atomic_exchange_and_add, and atomic_decrement_if_positive
2003-03-20Define atomic_exchange and atomic_decrement_if_positive if not already ↵Ulrich Drepper
defined. Add some __builtin_expect.
2003-03-20* sysdeps/s390/pthread_spin_lock.c (pthread_spin_lock): Use typeRoland McGrath
int for variable OLDVAL and correct inline assembler contraint. * sysdeps/s390/pthread_spin_trylock.c (pthread_spin_trylock): Use type int for variable OLD. * sysdeps/s390/tls.h (TLS_MULTIPLE_THREADS_IN_TCB): Define it only for s390-32. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (SINGLE_THREAD_P): Use global variable __local_multiple_threads instead of multiple_threads field in the TCB.
2003-03-20Merged sh[34].*-.*-linux.* lists.Roland McGrath
2003-03-20Change atomic_exchange_and_add to return the old value.Ulrich Drepper
2003-03-20(allocate_stack): Assume atomic_exchange_and_add returns the old value.Ulrich Drepper
2003-03-20* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend with a single ↵Alexandre Oliva
instruction. * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend with a single instruction.
2003-03-20* sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define properly for ↵Alexandre Oliva
n64. (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr type. (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf Word before comparing with gotsym. Take reloc_addr argument as void*. Remove the code added for the compiler to drop any alignment assumptions. 2003-03-20 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define properly for n64. (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr type. (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf Word before comparing with gotsym. Take reloc_addr argument as void*. Remove the code added for the compiler to drop any alignment assumptions.