aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2003-03-20Update.Ulrich Drepper
2003-03-19 Ulrich Drepper <drepper@redhat.com> * Makefile (distribute): Add include/atomic.h and bits/atomic.h. * include/atomic.h: New file. * sysdeps/i386/i486/bits/atomic.h: New file. * sysdeps/x86_64/bits/atomic.h: New file. * sysdeps/s390/bits/atomic.h: New file. * sysdeps/sh/bits/atomic.h: New file. * sysdeps/ia64/bits/atomic.h: New file. * sysdeps/powerpc/bits/atomic.h: New file. * sysdeps/generic/bits/atomic.h: New file. * sysdeps/i386/i486/atomicity.h: Removed. * sysdeps/x86_64/atomicity.h: Removed. * sysdeps/s390/s390-32/atomicity.h: Removed. * sysdeps/s390/s390-64/atomicity.h: Removed. * sysdeps/ia64/atomicity.h: Removed. * sysdeps/powerpc/powerpc32/atomicity.h: Removed. * sysdeps/powerpc/powerpc64/atomicity.h: Removed. * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust use of macros from atomicity.h to new names and semantics. * gmon_mcount.c: Likewise. * malloc/set-freeres.c: Likewise. * nscd/cache.c: Likewise. * stdlib/cxa_finalize.c: Likewise. * sysdeps/unix/sysv/linux/getsysstats.c: Likewise. * sysdeps/mips/ieee754.h: New file, suitable to replace both * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2003-03-20Update.Ulrich Drepper
* stdlib/strtod.c (INTERNAL): While eating trailing zeros handling hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>. * stdlib/tst-strtod.c: Add test for the bug.
2003-03-20(INTERNAL): While eating trailing zeros handling hexdigits correctly.Ulrich Drepper
2003-03-20* sysdeps/mips/ieee754.h: New file, suitable to replace both ↵Alexandre Oliva
../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept mips-specific for now. 2003-03-19 Alexandre Oliva <aoliva@redhat.com> * sysdeps/mips/ieee754.h: New file, suitable to replace both ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept mips-specific for now.
2003-03-19Update.Ulrich Drepper
2003-03-19 Ulrich Drepper <drepper@redhat.com> * posix/tst-nice.c (do_test): Remove invalid of return value. Don't run test if initial level != 0.
2003-03-19Update.Ulrich Drepper
2003-03-19 Amos Waterland <apw@us.ibm.com> * posix/tst-nice.c: New file. * posix/Makefile (tests): Add tst-nice.
2003-03-19Update.Ulrich Drepper
2003-03-19 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/Makefile: Fix cut&paste error.
2003-03-19Update.Ulrich Drepper
2003-03-19 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/pthread_cond_broadcast.c: Release lock before signalling waiters.
2003-03-19(__pthread_cond_broadcast): Release lock before waking waiters.Ulrich Drepper
2003-03-19(__lll_test_and_set): Fix typos.Roland McGrath
2003-03-19* abilist: New directory of libfoo.abilist files maintained usingRoland McGrath
scripts/merge-abilist.awk and "make update-abi" rules. * Makefile (distribute): Add abilist/*.abilist. * Makerules [$(build-shared) = yes] [$(subdir)] (tests): Depend on check-abi.
2003-03-19* Versions (libpthread: GLIBC_2.2): RemoveRoland McGrath
pthread_barrierattr_getpshared, never really existed. (libpthread: GLIBC_2.0): Move __pthread_initialize to ... (libpthread: GLIBC_PRIVATE): ... here.
2003-03-192003-03-18 Roland McGrath <roland@redhat.com>Roland McGrath
* Versions (libpthread: GLIBC_2.3.2): Move pthread_tryjoin_np and pthread_timedjoin_np to ... (libpthread: GLIBC_2.3.3): ... here. (libpthread: GLIBC_2.2): Move pthread_barrierattr_getpshared there too.
2003-03-19Remove unnecessary instruction in case clock_gettime isn't available.Ulrich Drepper
2003-03-19Update.Ulrich Drepper
* Makefile (tests): Add tst-cond11. * tst-cond11.c: New file.
2003-03-19Test pthread_condattr_[sg]etclock.Ulrich Drepper
2003-03-19* configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.Roland McGrath
* configure: Regenerated. * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2003-03-192003-03-18 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2003-03-18Update.Ulrich Drepper
2003-03-18 Ulrich Drepper <drepper@redhat.com> * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK correctly.
2003-03-18Update.Ulrich Drepper
2003-03-18 Steven Munroe <sjmunroe@us.ibm.com> * sysdeps/powerpc/powerpc64/memcpy.S: New file.
2003-03-18Reorder struct passed to cleanup handler to eliminate one more instruction.Ulrich Drepper
2003-03-18* td_thr_event_getmsg.c (td_thr_event_getmsg): Splice the thread outRoland McGrath
of the ->nextevent linkage. * td_ta_event_getmsg.c (td_ta_event_getmsg): Runtime error instead of assert for reading TD_EVENT_NONE. Clear the event buffer after reading it. Add a sanity check for foo->nextevent = foo.
2003-03-182003-03-18 Roland McGrath <roland@redhat.com>Roland McGrath
* td_thr_event_getmsg.c (td_thr_event_getmsg): Splice the thread out of the ->nextevent linkage.
2003-03-18(__pthread_cond_init): Handle NULL cond_attr parameter.Ulrich Drepper
2003-03-18Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthrad_cond_t): Replace __unused field with __clock. * sysdeps/pthread/pthread_cond_wait.c: Release condvar lock before waken all waiters in cleanup handler. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
2003-03-18Update.Ulrich Drepper
2003-03-18 Ulrich Drepper <drepper@redhat.com> * Versions.def: Add GLIBC_2.3.3 for libpthread.
2003-03-18Update.Ulrich Drepper
2003-03-18 Ulrich Drepper <drepper@redhat.com> * pthread_condattr_getclock.c: New file. * pthread_condattr_setclock.c: New file. * sysdeps/pthread/pthread.h: Declare these new functions. * Versions [GLIBC_2.3.3] (libpthread): Add the new functions. * Makefile (libpthread-routines): Add the new functions. * sysdeps/unix/sysv/linux/internaltypes.h (struct pthread_condattr): Renamed field to value. Document use of the bits. * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr change. * pthread_condattr_setpshared.c: Likewise. * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol. * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): Add __clock field. * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Implement clock selection. * sysdeps/pthread/pthread_cond_timedwait.c: Likewise. * pthread-errnos.sym: Add ENOSYS. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define _POSIX_CLOCK_SELECTION. * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove invalid .size directive.
2003-03-18Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/ia64/pthread_once.c: Use __builtin_expect. Use __lll_add instead of spelling it out. Use protected symbol names. * sysdeps/unix/sysv/linux/ia64/sem_post.c: Use __builtin_expect. Use __lll_add. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (__lll_compare_and_swap): Renamed from lll_compare_and_swap. Use new name where necessary. (__lll_add): Defined. (__lll_dec_if_positive): Defined. (__lll_test_and_set): Defined. * sysdeps/ia64/pthread_spin_init.c: Removed. * sysdeps/unix/sysv/linux/ia64/lowlevelmutex.c: Removed. * sysdeps/unix/sysv/linux/ia64/sem_trywait.c: Removed. * sysdeps/unix/sysv/linux/ia64/sem_wait.c: Removed. * sysdeps/unix/sysv/linux/ia64/lowlevellock.c: Removed. * sysdeps/unix/sysv/linux/ia64/libc-lowlevellock.c: Removed. * sysdeps/unix/sysv/linux/ia64/libc-lowlevelmutex.c: Removed. * sysdeps/unix/sysv/linux/ia64/sem_timedwait.c: Removed.
2003-03-18Update.Ulrich Drepper
2003-03-17 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/libc-start.c [!SHARED && !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
2003-03-18pthread_spin_unlock implementation for Linux/i386.Ulrich Drepper
2003-03-18* include/ctype.h: Revert last change.Roland McGrath
2003-03-182003-03-17 Roland McGrath <roland@redhat.com>Roland McGrath
* sysdeps/unix/sysv/linux/lowlevellock.c (__lll_lock_wait): Formatting tweaks.
2003-03-18(lll_unlock_wake_cb): Correct last patch. (__lll_timedwait_tid): Don't check ↵Ulrich Drepper
abstime for NULL pointer.
2003-03-18Update.Ulrich Drepper
2003-03-17 Ulrich Drepper <drepper@redhat.com> * sysdeps/ia64/bits/atomic.h: Add __builtin_expect where appropriate. * sysdeps/ia64/pthread_spin_unlock.c (pthread_spin_unlock): Use __sync_lock_release_si. Patch by Jakub Jelinek. * sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait): Fix timeout handling. (__lll_timedwait_tid): Likewise. (lll_unlock_wake_cb): Wake up other waiters if necessary. Patch by Jakub Jelinek. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Pretty printing.
2003-03-182003-03-17 Roland McGrath <roland@redhat.com>Roland McGrath
* include/ctype.h: Revert last change.
2003-03-18Add __builtin_expect where appropriate.Ulrich Drepper
2003-03-17Update.Ulrich Drepper
2003-03-17 Ulrich Drepper <drepper@redhat.com> * argp/tst-argp1.c: Use test-skeleton.c. * locale/tst-C-locale.c: Likewise.
2003-03-17Use test-skeleton.c.Ulrich Drepper
2003-03-17* sysdeps/mips/mips64/Implies: Move wordsize-64 to... * ↵Alexandre Oliva
sysdeps/mips/mips64/n64/Implies: New file. * sysdeps/mips/mips64/n64/Makefile: New file. * sysdeps/mips/mips64/n64/el/bits/endian.h: New file. * sysdeps/mips/mips64/n32/Implies: New file. * sysdeps/mips/mips64/n32/Makefile: New file. * sysdeps/mips/mips64/n32/el/bits/endian.h: New file. * sysdeps/unix/mips/mips64/n32/sysdep.h: New file. * sysdeps/unix/mips/mips64/n64/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file. * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file. * sysdeps/mips/mips64/Implies: Move wordsize-64 to... * sysdeps/mips/mips64/n64/Implies: New file. * sysdeps/mips/mips64/n64/Makefile: New file. * sysdeps/mips/mips64/n64/el/bits/endian.h: New file. * sysdeps/mips/mips64/n32/Implies: New file. * sysdeps/mips/mips64/n32/Makefile: New file. * sysdeps/mips/mips64/n32/el/bits/endian.h: New file. * sysdeps/unix/mips/mips64/n32/sysdep.h: New file. * sysdeps/unix/mips/mips64/n64/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file. * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file. * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2003-03-17* sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use lib64 for ↵Alexandre Oliva
mips64/n64 and lib32 for mips64/n32. (ldd_rewrite_script): Needed for all mips64 configurations. * sysdeps/unix/sysv/linux/configure: Rebuilt. * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file. * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file. * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use lib64 for mips64/n64 and lib32 for mips64/n32. (ldd_rewrite_script): Needed for all mips64 configurations. * sysdeps/unix/sysv/linux/configure: Rebuilt. * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file. * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2003-03-17* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as well.Alexandre Oliva
* sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as well.