aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
AgeCommit message (Collapse)AuthorFilesLines
2014-06-12Move i386 code out of nptl/ subdirectory.Roland McGrath13-1/+792
2014-06-12Move SH code out of nptl/ subdirectory.Roland McGrath31-0/+6483
2014-06-11Move x86_64 code out of nptl/ subdirectory.Roland McGrath13-0/+738
2014-06-11Update powerpc-fpu ULPs.Adhemerval Zanella1-0/+24
2014-06-11tile: Consolidate NPTL/non versions of vforkChris Metcalf3-6/+2
2014-06-11Tile: Define TLS_DEFINE_INIT_TPRoland McGrath2-24/+4
2014-06-11Alpha: Define TLS_DEFINE_INIT_TPRoland McGrath2-22/+3
2014-06-11PowerPC: Define TLS_DEFINE_INIT_TPRoland McGrath1-24/+0
2014-06-11AArch64: Define TLS_DEFINE_INIT_TPRoland McGrath2-23/+3
2014-06-11PowerPC: Optimized strcmp for PPC64/POWER7Vidya Ranganathan6-1/+317
Optimization is achieved on 8 byte aligned strings with double word comparison using cmpb instruction. On unaligned strings loop unrolling is applied for Power7 gain.
2014-06-10tile: move sysdeps/unix/sysv/linux/tile nptl files.Chris Metcalf53-2/+5
2014-06-10Fix log2 (1) in round-downward mode (bug 17042).Joseph Myers8-4/+72
As with other issues of this kind, bug 17042 is log2 (1) wrongly returning -0 instead of +0 in round-downward mode because of implementations effectively in terms of log1p (x - 1). This patch fixes the issue in the same way used for log and log10. Tested x86_64 and x86 and ulps updated accordingly. Also tested for mips64 to confirm a fix was needed for ldbl-128 and to validate that fix (also applied to ldbl-128ibm since that version of log2l is essentially the same as the ldbl-128 one). [BZ #17042] * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value when x - 1 is zero. * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise. * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise. * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return 0.0L for an argument of 1.0L. * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise. * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute value when x - 1 is zero. * math/libm-test.inc (log2_test): Use ALL_RM_TEST. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2014-06-09hppa: Remove lowlevellock.c.Bernard Ogden1-126/+0
The hppa port has no need of a custom lowlevellock.c, it should use the generic version which is updated and correct. This similarly fixes bug 15119 for hppa.
2014-06-09m68k: Define TLS_DEFINE_INIT_TPRoland McGrath2-24/+3
2014-06-09HPPA: Define TLS_DEFINE_INIT_TPRoland McGrath2-22/+3
2014-06-09MIPS: Define TLS_DEFINE_INIT_TPRoland McGrath2-23/+4
2014-06-09ARM: Define TLS_DEFINE_INIT_TPRoland McGrath2-22/+2
2014-06-09Start cleaning up TLS initial value for pthread_create.Roland McGrath1-48/+0
2014-06-07Remove redundant C locale settings.Joseph Myers1-1/+1
Various glibc build / install / test code has C locale settings that are redundant with LC_ALL=C. LC_ALL takes precedence over LANG, so anywhere that sets LC_ALL=C (explicitly, or through it being in the default environment for running tests) does not need to set LANG=C. LC_ALL=C also takes precedence over LANGUAGE, since 2001-01-02 Ulrich Drepper <drepper@redhat.com> * intl/dcigettext.c (guess_category_value): Rewrite so that LANGUAGE value is ignored if the selected locale is the C locale. * intl/tst-gettext.c: Set locale for above change. * intl/tst-translit.c: Likewise. and so settings of LANGUAGE=C are also redundant when LC_ALL=C is set. One test also had LC_ALL=C in its -ENV setting, although it's part of the default environment used for tests. This patch removes the redundant settings. It removes a suggestion in install.texi of setting LANGUAGE=C LC_ALL=C for "make install"; the Makefile.in target "install" already sets LC_ALL_C so there's no need for the user to set it (and nor should there be any need for the user to set it). If some build machine tool used by "make install" uses a version of libintl predating that 2001 change, and the user has LANGUAGE set, the removal of LANGUAGE=C from the Makefile.in "install" rule could in principle affect the user's installation. However, I don't think we need to be concerned about pre-2001 build tools. Tested x86_64. * Makefile (install): Don't set LANGUAGE. * Makefile.in (install): Likewise. * assert/Makefile (test-assert-ENV): Remove variable. (test-assert-perr-ENV): Likewise. * elf/Makefile (neededtest4-ENV): Likewise. * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Don't set LANGUAGE. * io/ftwtest-sh (LANG): Remove variable. * libio/Makefile (tst-widetext-ENV): Likewise. * manual/install.texi (Running make install): Don't refer to environment settings for make install. * INSTALL: Regenerated. * nptl/tst-tls6.sh: Don't set LANG. * posix/globtest.sh (LANG): Remove variable. * string/Makefile (tester-ENV): Likewise. (inl-tester-ENV): Likewise. (noinl-tester-ENV): Likewise. * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Don't set LANGUAGE. * timezone/Makefile (build-testdata): Use $(built-program-cmd) without explicit environment settings. localedata/ChangeLog: * tst-fmon.sh: Don't set LANGUAGE. * tst-locale.sh: Likewise.
2014-06-06Move NPTL public ABI headers for SH to sysdeps/sh/nptl/.Roland McGrath2-0/+222
2014-06-06PowerPC: Fix optimized strncat strlen callAdhemerval Zanella1-1/+5
This patch fixes the optimized ppc64/power7 strncat strlen call for static build without ifunc enabled. The strlen symbol to call in such situation is just strlen, instead of __GI_strlen (since the __GI_ alias is just created for shared objects).
2014-06-05Fix memory overrun in getifaddrs_internal. Fixes bug 15698.Ondřej Bílka1-2/+2
2014-06-03aarch64: Remove nptl/vfork.SRichard Henderson1-37/+0
2014-06-03S/390: Regenerate ULPs.Stefan Liebler1-0/+85
2014-06-03aarch64: Consolidate NPTL/non versions of vforkRichard Henderson3-44/+74
At the same time, incorporate the 0 -> 0x80000000 mapping of the pid expected by raise.c.
2014-06-03aarch64: Consolidate NPTL/non versions of cloneRichard Henderson2-53/+24
At the same time, rely on non-clobbered registers across syscall so that we eliminate the stack frame that we previously ignored in the unwind info.
2014-06-03[AArch64] Regenerate libm-test-ulpsMarcus Shawcroft1-0/+85
2014-06-03[AArch64] Switch from FE_TOWARDZERO to _FPU_FPCR_RM_MASKWilco2-6/+6
2014-06-03[AArch64] Cleanup declarations in math_private.h.Wilco1-8/+22
2014-06-02SH: Consolidate NPTL/non versions of vforkRoland McGrath2-29/+33
2014-06-02[AArch64] Remove ISB after FPCR write.Wilco1-5/+2
2014-06-02[AArch64] Rewrite feupdateenv (BZ 17009).Wilco1-5/+54
2014-06-01Update Sparc ULPS.David S. Miller1-0/+85
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2014-05-31Fix excessive ULP for y1_upward (0x2p+0) in test-float and test-ifloat.David S. Miller1-0/+1
* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations to occur in round to nearest mode when |x| >= 2.0
2014-05-30aarch64: Remove PSEUDO_RETRichard Henderson1-20/+3
2014-05-30aarch64: Fix error return from __ioctlRichard Henderson1-6/+7
Forgotten in ca3cfa40c16ef34c74951a07a57cfcbcd58898b1 where the error branch was moved from PSEUDO_RET.
2014-05-30Replace __int128 with __int128_tMarko Myllynen1-1/+1
* sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128 with __int128_t.
2014-05-30m68k: Convert fork.c to arch-fork.hRoland McGrath1-3/+2
2014-05-29aarch64: Rely on syscalls preserving registersRichard Henderson1-24/+12
In several cases we've had asm routines rely on syscalls not clobbering call-clobbered registers, and that's now deemed ABI. So take advantage of this in the INLINE_SYSCALL path as well. Shrinks libc.so by about 1k.
2014-05-29aarch64: Use tpidr_el0 rather than __errno_location in librtRichard Henderson2-15/+5
2014-05-29aarch64: Use tpidr_el0 rather than __read_tp in librtRichard Henderson1-11/+3
2014-05-29aarch64: Improve syscall-cancel stack frameRichard Henderson1-86/+26
One push instead of N; use stp/ldp to halve the insns.
2014-05-29aarch64: Pass regno parameter to SINGLE_THREAD_PRichard Henderson1-10/+8
Use cbz instead of cmp+b.eq.
2014-05-29aarch64: Share code in syscall-cancel.hRichard Henderson1-14/+14
Fold nocancel and error handling paths.
2014-05-29aarch64: Tabify sysdep-cancel.hRichard Henderson1-51/+51
2014-05-29Avoid stat/fstat in statvfs/fstatvfs (BZ #15132)Eric Wong5-27/+18
Delay the use of stat/fstat until stat data is required. When the kernel returns ST_VALID, stat data is not used by __internal_statvfs.
2014-05-28SH: Consolidate NPTL/non versions of cloneRoland McGrath1-6/+1
2014-05-28tile: Convert fork.c to arch-fork.hRoland McGrath1-4/+2
2014-05-27IA64: Convert fork.c to arch-fork.hRoland McGrath1-0/+29
2014-05-27SH: Convert fork.c to arch-fork.hRoland McGrath1-0/+28