From: Andreas Jaeger Date: Tue, 27 Mar 2012 19:35:36 +0000 (+0200) Subject: Merge branch 'elf-move' X-Git-Tag: glibc-2.16-tps~710 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e3cdfda7486316198ec0587a8aa96f50e88b3bc;p=thirdparty%2Fglibc.git Merge branch 'elf-move' Conflicts: debug/backtracesymsfd.c sysdeps/generic/elf/backtracesymsfd.c sysdeps/i386/configure.in --- 1e3cdfda7486316198ec0587a8aa96f50e88b3bc diff --cc ChangeLog index 069888defcb,e806afcbca6..7fd0ea8b5f0 --- a/ChangeLog +++ b/ChangeLog @@@ -1,405 -1,3 +1,522 @@@ ++2012-03-27 David S. Miller ++ ++ * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before ++ have-as-vis3 check. ++ ++2012-03-27 Andreas Jaeger ++ ++ * sysdeps/x86_64/elf/configure.in: Moved to ... ++ * sysdeps/x86_64/configure.in: ... here. ++ * sysdeps/x86_64/elf/start.S: Moved to ... ++ * sysdeps/x86_64/start.S: ... here. ++ * sysdeps/x86_64/elf/configure: Delete. ++ ++ * sysdeps/x86_64/configure.in: Merge contents from ++ sysdeps/i386/configure.in (without i686 check). ++ ++ * sysdeps/i386/elf/Versions: Merge into ... ++ * sysdeps/i386/Versions: ... this. ++ * sysdeps/i386/elf/Versions: Delete file. ++ * sysdeps/i386/elf/start.S: Moved to ... ++ * sysdeps/i386/start.S: ...here. ++ * sysdeps/i386/elf/configure.in: Merge into... ++ * sysdeps/i386/configure.in: ...here. ++ * sysdeps/i386/elf/configure.in: Delete file. ++ * sysdeps/i386/elf/configure: Delete file. ++ ++ * sysdeps/generic/elf/backtracesyms.c: Moved to ... ++ * debug/backtracesyms.c: ... here. ++ * sysdeps/generic/elf/backtracesymsfd.c: Moved to ... ++ * debug/backtracesymsfd.c: ... here. ++ * sysdeps/generic/elf/ifunc-sel.h: Moved to ... ++ * sysdeps/generic/ifunc-sel.h: ... here. ++ ++ * sysdeps/unix/i386/start.c: Delete file. ++ * sysdeps/unix/sparc/start.c: Delete file. ++ * sysdeps/unix/start.c: Delete file. ++ ++ * sysdeps/sh/elf/configure.in: Moved to ... ++ * sysdeps/sh/configure.in: ... here. ++ * sysdeps/sh/elf/start.S: Moved to ... ++ * sysdeps/sh/start.S: ... here. ++ * sysdeps/sh/elf/configure: Delete file. ++ ++ * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ... ++ * sysdeps/powerpc/powerpc64/bzero.S: ... here. ++ * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ... ++ * sysdeps/powerpc/powerpc64/entry.h: ... here. ++ * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ... ++ * sysdeps/powerpc/powerpc64/start.S: here. ++ * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ... ++ * sysdeps/powerpc/powerpc64/Makefile: ... this. ++ * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ... ++ * sysdeps/powerpc/powerpc64/configure.in: ... this. ++ * sysdeps/powerpc/powerpc64/elf/configure: Delete file. ++ ++ * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ... ++ * sysdeps/powerpc/powerpc32/bzero.S: ... here. ++ * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ... ++ * sysdeps/powerpc/powerpc32/start.S: ... here. ++ * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ... ++ * sysdeps/powerpc/powerpc32/configure.in: ... this. ++ * sysdeps/powerpc/powerpc32/elf/configure: Delete file. ++ ++ * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ... ++ * sysdeps/powerpc/ifunc-sel.h: ... here. ++ * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ... ++ * sysdeps/powerpc/rtld-global-offsets.sym: ... here. ++ ++ * sysdeps/sparc/elf/configure.in: Moved to ... ++ * sysdeps/sparc/configure.in: ... here. ++ * sysdeps/sparc/elf/configure: Delete file. ++ * sysdeps/sparc/sparc32/elf/start.S: Moved to ... ++ * sysdeps/sparc/sparc32/start.S: ... here. ++ * sysdeps/sparc/sparc64/elf/start.S: Moved to ... ++ * sysdeps/sparc/sparc64/start.S: ... here. ++ * sysdeps/sparc/sparc32/elf/Makefile: Merged into ... ++ * sysdeps/sparc/sparc32/Makefile: ... this. ++ * sysdeps/sparc/sparc64/elf/Makefile: Merged into ... ++ * sysdeps/sparc/sparc64/Makefile: ... this. ++ ++ * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ... ++ * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here. ++ * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ... ++ * sysdeps/s390/s390-32/bsd-setjmp.S: ... here. ++ * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ... ++ * sysdeps/s390/s390-32/setjmp.S: ... here. ++ * sysdeps/s390/s390-32/elf/configure.in: Moved to ... ++ * sysdeps/s390/s390-32/configure.in: ... here. ++ * sysdeps/s390/s390-32/elf/configure: Delete file. ++ * sysdeps/s390/s390-32/elf/start.S: Moved to ... ++ * sysdeps/s390/s390-32/start.S: ... here. ++ ++ * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ... ++ * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here. ++ * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ... ++ * sysdeps/s390/s390-64/bsd-setjmp.S: ... here. ++ * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ... ++ * sysdeps/s390/s390-64/setjmp.S: ... here. ++ * sysdeps/s390/s390-64/elf/configure.in: Moved to ... ++ * sysdeps/s390/s390-64/configure.in: ... here ++ * sysdeps/s390/s390-64/elf/configure: Delete file. ++ * sysdeps/s390/s390-64/elf/start.S: Moved to ... ++ * sysdeps/s390/s390-64/start.S: ... here. ++ * sysdeps/s390/s390-64/elf/configure: Delete. ++ ++ * configure.in: Remove support for elf directories in sysdeps. ++ ++ * configure: Regenerated. ++ * sysdeps/i386/configure: Regenerated. ++ * sysdeps/powerpc/powerpc32/configure: Regenerated. ++ * sysdeps/powerpc/powerpc64/configure: Regenerated. ++ * sysdeps/s390/s390-32/configure: Regenerated. ++ * sysdeps/s390/s390-64/configure: Regenerated. ++ * sysdeps/sh/configure: Regenerated. ++ * sysdeps/sparc/configure: Regenerated. ++ * sysdeps/x86_64/configure: Regenerated. ++ +2012-03-26 Andreas Schwab + + * sysdeps/powerpc/fpu/libm-test-ulps: Update. + + * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take + denormal result into account. + +2012-03-25 Roland McGrath + + * posix/confstr.c (confstr): Lift RESTENVS definition to function scope. + Reported by Allan McRae . + +2012-03-23 Jeff Law + + * nss/getnssent.c (__nss_getent): Fix typo. + +2012-03-23 David S. Miller + + * sysdeps/sparc/fpu/libm-test-ulps: Update. + +2012-03-23 H.J. Lu + + * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union + to pad to uint64_t for each field. + (dl_tls_index): Replace unsigned long with uint64_t. + +2012-03-23 Daniel Jacobowitz + Paul Pluzhnikov + + [BZ #6528] + * grp/Makefile (otherlibs): Don't set it. + * inet/Makefile (otherlibs): Likewise. + * login/Makefile (otherlibs): Likewise. + * nscd/Makefile (otherlibs): Likewise. + * posix/Makefile (otherlibs): Likewise. + * pwd/Makefile (otherlibs): Likewise. + * rt/Makefile (otherlibs): Likewise. + * sunrpc/Makefile (otherlibs): Likewise. + * nss/Makefile (otherlibs): Likewise. + Add libnss_files to routines and static-only-routines. + ($(objpfx)getent): Remove rule. + * resolv/Makefile: Add libnss_dns and libresolv to routines and + static-only-routines. + +2012-03-22 Joseph Myers + + [BZ #13892] + * math/s_cexp.c: Include . + (__cexp): Handle exp result overflowing not necessarily + overflowing both real and imaginary parts of result. + * math/s_cexpf.c: Likewise. + * math/s_cexpl.c: Likewise. + * math/libm-test.inc (cexp_test): Add more tests. + * sysdeps/i386/fpu/libm-test-ulps: Update. + * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. + +2012-03-22 H.J. Lu + + * include/link.h (ELFW): New macro. + * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX). + Replace ELF64_R_TYPE with ELFW(R_TYPE). + +2012-03-22 H.J. Lu + + * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long + with uint64_t. + +2012-03-22 H.J. Lu + + * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward + declaration. + (struct La_x32_retval): Likewise. + +2012-03-22 H.J. Lu + + * sysdeps/x86_64/preconfigure.in: New file. + * sysdeps/x86_64/preconfigure: New generated file. + +2012-03-22 Joseph Myers + + [BZ #13824] + * math/e_exp2l.c: Include . + (__ieee754_exp2l): Handle overflow and underflow cases + separately. Only pass fractional part of argument to + __ieee754_expl. + * math/libm-test.inc (exp2_test): Add more tests. + + * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if + negating x to take absolute value. + * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl): + Likewise. + * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise. + * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): + Likewise. + * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when + computing low part if x was negated. + * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise. + +2012-03-21 H.J. Lu + + * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and + la_x32_gnu_pltexit. + (pltexit): Cast int_retval to ptrdiff_t. + * elf/tst-auditmod3b.c: Likewise. + * elf/tst-auditmod4b.c: Likewise. + * elf/tst-auditmod5b.c: Likewise. + * elf/tst-auditmod6b.c: Likewise. + * elf/tst-auditmod6c.c: Likewise. + * elf/tst-auditmod7b.c: Likewise. + + * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter + and x32_gnu_pltexit. + + * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of + __ELF_NATIVE_CLASS. + (La_x32_regs): New macro. + (La_x32_retval): Likewise. + (la_x32_gnu_pltenter): New function prototype. + (la_x32_gnu_pltexit): Likewise. + +2012-03-21 Andreas Schwab + + * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct + exponent. + + * sysdeps/powerpc/fpu/libm-test-ulps: Update. + + * configure.in (libc_cv_cc_nofma): Check for option to disable + generation of FMA instructions. + * configure: Regenerate. + * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma. + * sysdeps/ieee754/dbl-64/Makefile: New file. + * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines): + Remove brandred-fma4. + (CFLAGS-brandred-fma4.c): Remove. + * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove. + * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't + define. + * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't + define. + +2012-03-21 H.J. Lu + + * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of + LLONG_MAX != LONG_MAX. + (_itoa_word): Use _ITOA_WORD_TYPE on value. + (_fitoa_word): Likewise. + * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of + LLONG_MAX != LONG_MAX. + * stdio-common/_itowa.h: Include <_itoa.h>. + (_itowa_word): Use _ITOA_WORD_TYPE on value. + (_itowa): New macro. Defined only if _ITOA_NEEDED is false. + * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro. Defined + only if not defined. + (_ITOA_WORD_TYPE): Likewise. + (_itoa_word): Use _ITOA_WORD_TYPE on value. + Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX. + +2012-03-21 David S. Miller + + * sysdeps/sparc/fpu/libm-test-ulps: Update. + +2012-03-21 H.J. Lu + + * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead + of x86_64 when setting libc_cv_slibdir, libdir and + libc_cv_localedir. + * sysdeps/unix/sysv/linux/configure: Regenerated. + +2012-03-21 Joseph Myers + + * manual/lang.texi (Old Varargs): Remove section. + (How Variadic): Update menu. + (va_start): Do not mention varargs.h. + +2012-03-21 Thomas Schwinge + Joseph Myers + + * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a + link test. + * configure: Regenerated. + +2012-03-21 Thomas Schwinge + + * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp. + * conform/run-conformtest.sh: Pass --tmpdir argument when invoking + conformtest.pl + +2012-03-21 Joseph Myers + + * NOTES: Remove. + * Makefile (files-for-dist): Remove NOTES. + (NOTES): Remove rule. + * README: Don't refer to NOTES. + * manual/creature.texi: Don't include macros.texi. + * manual/intro.texi (creature.texi): Remove comment referring to + NOTES. + + * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro. + * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION. + * configure: Regenerated. + * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use + LIBC_TRY_CC_OPTION. + (libc_cv_as_i686): Likewise. + (libc_cv_cc_avx): Likewise. + (libc_cv_cc_sse2avx): Likewise. + (libc_cv_cc_fma4): Likewise. + (libc_cv_cc_novzeroupper): Likewise. + * sysdeps/i386/configure: Regenerated. + + [BZ #13883] + * sysdeps/i386/fpu/s_cexp.S: Remove. + * sysdeps/i386/fpu/s_cexpf.S: Likewise. + * sysdeps/i386/fpu/s_cexpl.S: Likewise. + * math/libm-test.inc (cexp_test): Add more tests. + * sysdeps/i386/fpu/libm-test-ulps: Update. + * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. + +2012-03-21 Allan McRae + + * timezone/Makefile: Do not install iso3166.tab and zone.tab + +2012-03-21 Joseph Myers + + [BZ #13871] + * math/w_exp2.c: Do not include . + (o_threshold, u_threshold): Remove. + (__exp2): Calculate result before checking finiteness and calling + __kernel_standard. + * math/w_exp2f.c: Likewise. + * math/w_exp2l.c: Likewise. + * math/libm-test.inc (exp2_test): Require overflow exception for + 1e6 input. + + [BZ #3866] + * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the + range of signed 64-bit integers before using fistpll. Remove + checks for whether integers fit in mantissa bits. + * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside + the range of signed 32-bit integers before using fistpl. Remove + checks for whether integers fit in mantissa bits. + * sysdeps/i386/fpu/e_powl.S (p64): New object. + (__ieee754_powl): Test for y outside the range of signed 64-bit + integers before using fistpll. Reduce 64-bit values to 63-bit + ones as needed. + * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure + divide-by-zero is raised for zero to large negative powers. + * sysdeps/x86_64/fpu/e_powl.S (p64): New object. + (__ieee754_powl): Test for y outside the range of signed 64-bit + integers before using fistpll. Reduce 64-bit values to 63-bit + ones as needed. + * math/libm-test.inc (pow_test): Add more tests. + +2012-03-20 H.J. Lu + + * debug/backtracesymsfd.c: Include <_itoa.h> instead of + . + * debug/segfault.c: Likewise. + * elf/dl-cache.c: Likewise. + * elf/dl-minimal.c: Likewise. + * elf/dl-misc.c: Likewise. + * elf/dl-sysdep.c: Likewise. + * elf/dl-version.c: Likewise. + * elf/rtld.c: Likewise. + * hurd/hurdsock.c: Likewise. + * hurd/lookup-retry.c: Likewise. + * malloc/malloc.c: Likewise. + * malloc/mtrace.c: Likewise. + * nscd/nscd_getgr_r.c: Likewise. + * nscd/nscd_getpw_r.c: Likewise. + * nscd/nscd_getserv_r.c: Likewise. + * posix/getopt_init.c: Likewise. + * posix/wordexp.c: Likewise. + * stdio-common/_itoa.c: Likewise. + * stdio-common/printf_fphex.c: Likewise. + * stdio-common/vfprintf.c: Likewise. + * string/_strerror.c: Likewise. + * sysdeps/generic/elf/backtracesymsfd.c: Likewise. + * sysdeps/i386/i686/hp-timing.h: Likewise. + * sysdeps/mach/_strerror.c: Likewise. + * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise. + * sysdeps/mach/hurd/sethostid.c: Likewise. + * sysdeps/mach/hurd/xmknodat.c: Likewise. + * sysdeps/mach/xpg-strerror.c: Likewise. + * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise. + * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise. + * sysdeps/powerpc/powerpc32/register-dump.h: Likewise. + * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise. + * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise. + * sysdeps/powerpc/powerpc64/register-dump.h: Likewise. + * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise. + * sysdeps/sparc/sparc64/hp-timing.h: Likewise. + * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise. + * sysdeps/unix/sysv/linux/futimes.c: Likewise. + * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/ptsname.c: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise. + * sysdeps/unix/sysv/linux/ttyname.c: Likewise. + * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise. + * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise. + + * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h". + + * stdio-common/_itoa.h: Moved to ... + * sysdeps/generic/_itoa.h: Here. + + * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h". + + * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h> + instead of "_itoa.h" and "_itowa.h". + * stdio-common/vfprintf.: Likewise. + +2012-03-20 H.J. Lu + + * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include + . + (__signbitf): Check __x86_64__ instead of __WORDSIZE. + (__signbit): Likwise. + (llrintf): Likwise. + (llrint): Likwise. + +2012-03-20 H.J. Lu + + * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with + __WORDSIZE != 64. + +2012-03-20 Joseph Myers + + * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and + OVERFLOW_EXCEPTION_OK. + * math/libm-test.inc ("Philosophy"): Update comment about + exception testing. + (OVERFLOW_EXCEPTION): Define. + (OVERFLOW_EXCEPTION_OK): Likewise. + (INVALID_EXCEPTION_OK): Renumber. + (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise. + (IGNORE_ZERO_INF_SIGN): Likewise. + (test_exceptions): Handle FE_OVERFLOW. + (exp10_test): Expect overflow exceptions. + (exp2_test): Likewise. + (expm1_test): Likewise. + (nextafter_test): Likewise. + (pow_test): Likewise. + (scalbn_test): Likewise. + (scalbln_test): Likewise. + +2012-03-19 H.J. Lu + + * sysdeps/x86_64/bits/atomic.h + (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on + 64bit integer. + (atomic_exchange_acq): Likewise. + (__arch_exchange_and_add_body): Likewise. + (__arch_add_body): Likewise. + (atomic_add_negative): Likewise. + (atomic_add_zero): Likewise. + +2012-03-19 H.J. Lu + + * sysdeps/x86_64/fpu/bits/fenv.h: Don't include . + (fenv_t): Check __x86_64__ instead of __WORDSIZE. + +2012-03-19 H.J. Lu + + * sysdeps/x86_64/bits/mathdef.h: Don't include . + Check __x86_64__ instead of __WORDSIZE. + +2012-03-19 H.J. Lu + + * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32. + +2012-03-19 David S. Miller + + * sysdeps/sparc/fpu/libm-test-ulps: Update. + + * sysdeps/sparc/fpu/fenv_private.h: New file. + * sysdeps/sparc/fpu/math_private.h: Use it. + (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl): + Remove. + (libc_feholdexcept_setround, libc_feholdexcept_setroundf, + (libc_feholdexcept_setroundl): Remove. + (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): + Remove. + (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove. + (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove. + +2012-03-19 H.J. Lu + + * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use + int64_t instead of long int. + (INSERT_WORDS64): Likwise. + +2012-03-19 H.J. Lu + + * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast + _Unwind_GetCFA return to _Unwind_Ptr first. + 2012-03-19 Joseph Myers [BZ #13629] diff --cc debug/backtracesyms.c index a0106647f18,d75ce0a321b..3fabf26a8be --- a/debug/backtracesyms.c +++ b/debug/backtracesyms.c @@@ -1,5 -1,5 +1,5 @@@ /* Return list with names for address in backtrace. - Copyright (C) 1998, 2000 Free Software Foundation, Inc. - Copyright (C) 1998,1999,2000,2001,2003,2009 Free Software Foundation, Inc. ++ Copyright (C) 1998-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. diff --cc debug/backtracesymsfd.c index 2345853d805,8b4a836ce9c..297e32d6ba8 --- a/debug/backtracesymsfd.c +++ b/debug/backtracesymsfd.c @@@ -1,5 -1,5 +1,5 @@@ /* Write formatted list with names for addresses in backtrace to a file. - Copyright (C) 1998, 2003, 2005 Free Software Foundation, Inc. - Copyright (C) 1998,2000,2003,2005,2009,2011 Free Software Foundation, Inc. ++ Copyright (C) 1998-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@@ -21,8 -21,8 +21,8 @@@ #include #include -#include +#include <_itoa.h> - #include + #include #if __ELF_NATIVE_CLASS == 32 # define WORD_WIDTH 8 diff --cc sysdeps/i386/configure index baa66096a62,49330e389d6..e60b4982e48 --- a/sysdeps/i386/configure +++ b/sysdeps/i386/configure @@@ -348,3 -342,3 +348,47 @@@ f fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_novzeroupper" >&5 $as_echo "$libc_cv_cc_novzeroupper" >&6; } ++ ++# Check for support of thread-local storage handling in assembler and ++# linker. ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386 TLS support" >&5 ++$as_echo_n "checking for i386 TLS support... " >&6; } ++if ${libc_cv_386_tls+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ cat > conftest.s <<\EOF ++ .section ".tdata", "awT", @progbits ++ .globl foo ++foo: .long 1 ++ .section ".tbss", "awT", @nobits ++ .globl bar ++bar: .skip 4 ++ .text ++baz: leal bar@TLSLDM(%ebx), %eax ++ leal bar@DTPOFF(%eax), %edx ++ subl foo@GOTTPOFF(%edx), %eax ++ subl $bar@TPOFF, %eax ++ movl foo@GOTNTPOFF(%edx), %ecx ++ movl %gs:(%ecx), %eax ++ movl %gs:bar@NTPOFF, %eax ++EOF ++if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' ++ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; }; then ++ libc_cv_386_tls=yes ++else ++ libc_cv_386_tls=no ++fi ++rm -f conftest* ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_386_tls" >&5 ++$as_echo "$libc_cv_386_tls" >&6; } ++if test $libc_cv_386_tls = no; then ++ as_fn_error $? "the assembler must support TLS" "$LINENO" 5 ++fi ++ ++$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h ++ diff --cc sysdeps/i386/configure.in index 7b4879d54a4,ec69080eb6c..b9e6f9eef43 --- a/sysdeps/i386/configure.in +++ b/sysdeps/i386/configure.in @@@ -81,7 -92,42 +81,41 @@@ f dnl Check if -mno-vzeroupper works. AC_CACHE_CHECK(for -mno-vzeroupper support, libc_cv_cc_novzeroupper, [dnl -if AC_TRY_COMMAND([${CC-cc} -mno-vzeroupper -xc /dev/null -S -o /dev/null]); then - libc_cv_cc_novzeroupper=yes -else - libc_cv_cc_novzeroupper=no -fi]) +LIBC_TRY_CC_OPTION([-mno-vzeroupper], + [libc_cv_cc_novzeroupper=yes], + [libc_cv_cc_novzeroupper=no]) +]) + + # Check for support of thread-local storage handling in assembler and + # linker. + AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl + cat > conftest.s <<\EOF + .section ".tdata", "awT", @progbits + .globl foo + foo: .long 1 + .section ".tbss", "awT", @nobits + .globl bar + bar: .skip 4 + .text + baz: leal bar@TLSLDM(%ebx), %eax + leal bar@DTPOFF(%eax), %edx + subl foo@GOTTPOFF(%edx), %eax + subl $bar@TPOFF, %eax + movl foo@GOTNTPOFF(%edx), %ecx + movl %gs:(%ecx), %eax + movl %gs:bar@NTPOFF, %eax + EOF + dnl + if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then + libc_cv_386_tls=yes + else + libc_cv_386_tls=no + fi + rm -f conftest*]) + if test $libc_cv_386_tls = no; then + AC_MSG_ERROR([the assembler must support TLS]) + fi + + dnl It is always possible to access static and hidden symbols in an + dnl position independent way. + AC_DEFINE(PI_STATIC_AND_HIDDEN) diff --cc sysdeps/i386/start.S index 992c358c07e,992c358c07e..990f3715d59 --- a/sysdeps/i386/start.S +++ b/sysdeps/i386/start.S @@@ -1,6 -1,6 +1,5 @@@ /* Startup code compliant to the ELF i386 ABI. -- Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004 -- Free Software Foundation, Inc. ++ Copyright (C) 1995-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or