2016-02-18 Adhemerval Zanella * version.h (RELEASE): Set to "stable". (VERSION): Set to 2.23. * include/feature.h (__GLIBC_MINOR__): Set to 23. * NEWS: Updated fixed bugs. 2016-02-18 H.J. Lu Wilco Dijkstra [BZ #19462] * bits/string.h (_STRING_ARCH_unaligned): Renamed to ... (_STRING_INLINE_unaligned): This. * include/string.h: Include . * string/bits/string2.h: Replace _STRING_ARCH_unaligned with _STRING_INLINE_unaligned. * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed. (_STRING_INLINE_unaligned): New. * sysdeps/aarch64/string_private.h: New file. * sysdeps/generic/string_private.h: Likewise. * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise. * sysdeps/s390/string_private.h: Likewise. * sysdeps/x86/string_private.h: Likewise. * sysdeps/m68k/m680x0/m68020/bits/string.h (_STRING_ARCH_unaligned): Renamed to ... (_STRING_INLINE_unaligned): This. * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed to ... (_STRING_INLINE_unaligned): This. * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed to ... (_STRING_INLINE_unaligned): This. * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed to ... (_STRING_INLINE_unaligned): This. 2016-02-17 Andrew Senkevich H.J. Lu [BZ #19590] * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC relocation. 2016-02-15 Carlos O'Donell [BZ #18665] * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set *herrno_p. (gaih_getanswer): Document functional behviour. Return tryagain if any result is tryagain. * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero when freed. * resolv/res_send.c: Add copyright text. (__libc_res_nsend): Document that MAXPACKET is expected. (send_vc): Document. Remove buffer reuse. (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the size of the buffer. Add Dprint for truncated UDP buffer. 2016-02-14 Carlos O'Donell * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk 4.1.3, and sed 4.2.2. Remove po2test.sed comments. * INSTALL: Regenerate. 2016-02-14 Jakub Jelinek Jonathan Wakely Carlos O'Donell [BZ 19439] * math/Makefile (tests): Add test-math-isinff. (CFLAGS-test-math-isinff.cc): Use -std=gnu++11. * math/bits/mathcalls.h [__USE_MISC]: Use '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of functions not in C++11 and which don't conflict e.g. isinff, isinfl etc. * math/test-math-isinff.cc: New file. 2016-02-12 Florian Weimer * misc/bug18240.c (do_test): Set RLIMIT_AS. 2016-02-11 Szabolcs Nagy [BZ #19529] * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables. 2016-02-04 Rajalakshmi Srinivasaraghavan * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated. 2016-02-01 Joseph Myers [BZ #19550] * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to .... * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64): New syscall entry. * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap): New syscall entry. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove syscall entry. 2016-01-27 Paul Eggert [BZ #18240] * misc/hsearch_r.c (isprime, __hcreate_r): Protect against unsigned int wraparound. 2016-01-27 Florian Weimer [BZ #18240] * misc/bug18240.c: New test. * misc/Makefile (tests): Add it. 2016-01-28 Steve Ellcey Joseph Myers * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word load in branch delay slot when less than a word of input left. 2016-01-27 Andreas Schwab * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove. * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove. * sysdeps/powerpc/fpu/s_cosf.c (one): Remove. * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove. 2016-01-26 David S. Miller * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp. 2016-01-25 David S. Miller * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for __sqrtl_finite. * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define instead using versioned_symbol. * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering of entries. * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move __sqrtl_finite to GLIBC_2.23 2016-01-25 Ricchard Henderson * sysdeps/alpha/fpu/libm-test-ulps: Update. 2016-01-25 Andreas Schwab [BZ #17514] * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock) : Don't do lock elision. * nptl/Makefile (tests): Add tst-mutex-errorcheck. * nptl/tst-mutex-errorcheck.c: New file. 2016-01-25 Paul E. Murphy [BZ #18560] * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove. (IPCOP_semop): Likewise. (IPCOP_semget): Likewise. (IPCOP_semctl): Likewise. (IPCOP_msgsnd): Likewise. (IPCOP_msgrcv): Likewise. (IPCOP_msgget): Likewise. (IPCOP_msgctl): Likewise. (IPCOP_shmat): Likewise. (IPCOP_shmdt): Likewise. (IPCOP_shmget): Likewise. (IPCOP_shmctl): Likewise. 2016-01-22 Stefan Liebler * string/tst-endian.c: Include . (do_test): Ignore tautological-compare warnings around "htobeXX (beXXtoh (i)) != i" and "htoleXX (leXXtoh (i)) != i" if-statements. 2016-01-24 David S. Miller * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file. * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove alias. * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add __sqrtl_finite. * sysdeps/sparc/fpu/libm-test-ulps: Update. 2016-01-25 Maciej W. Rozycki * sysdeps/unix/sysv/linux/mips/configure.ac: Set `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. 2016-01-22 Paul E. Murphy * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function. (thread_func): Use new function to simplify barrier check. (do_test): Use new function to simplify checking barrier exit code, and actually join the child thread. 2016-01-22 Paul E. Murphy * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove semicolon. (__libc_tend): Likewise. (__libc_tabort): Likewise. 2016-01-22 Chung-Lin Tang * sysdeps/nios2/libm-test-ulps: Update. * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add. (__gtsf2): Likewise. (__unorddf2): Likewise. (__unordsf2): Likewise. (__ledf2): Likewise. 2016-01-20 Chris Metcalf * nis/nis_table.c (__follow_path): Disable diagnostic for uninitialized variable that is a false positive for gcc 4.7. * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise. 2016-01-20 Roland McGrath * sysdeps/nacl/lowlevellock-futex.h (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake): Always evaluate PRIVATE argument. 2016-01-20 Paul Pluzhnikov [BZ #19490] * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S (pthread_cond_broadcast): Use ENTRY/END * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S (pthread_cond_signal): Likewise * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock): Likewise * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock): Likewise * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock): Likewise 2016-01-20 Joseph Myers * sysdeps/ieee754/dbl-64/s_finite.c [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in SHLIB_COMPAT condition for libm, not GLIBC_2_0. * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data (__gtsf2): Add as optional for libc.so. (__unordsf2): Likewise. (__signbit): Remove for libc.so. (__signbitl): Likewise. 2016-01-19 Stefan Liebler * iconvdata/bug-iconv11.c (test_ibm93x): Use %zu printf format specifier for size_t argument. 2016-01-19 Joseph Myers * math/gen-libm-test.pl (parse_ulps): Do not reduce already-recorded ulps. * sysdeps/arm/libm-test-ulps: Regenerated. * sysdeps/mips/mips32/libm-test-ulps: Likewise. * sysdeps/mips/mips64/libm-test-ulps: Likewise. * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise. 2016-01-19 Andrew Senkevich Paul Pluzhnikov * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with assembler not supporting AVX-512. 2016-01-18 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerated. 2016-01-18 Joseph Myers * sysdeps/mips/mips32/libm-test-ulps: Regenerated. * sysdeps/mips/mips64/libm-test-ulps: Likewise. * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated. * sysdeps/arm/libm-test-ulps: Regenerated. 2016-01-18 Paul Pluzhnikov [BZ #19451] * math/Makefile (libm-vec-tests): Move libraries after wrappers.o 2016-01-15 Stefan Liebler [BZ #19486] * sysdeps/s390/fix-fp-int-convert-overflow.h: New File. * sysdeps/generic/fix-fp-int-convert-overflow.h (FIX_LDBL_LONG_CONVERT_OVERFLOW, FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define. * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise. * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: Likewise. * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Avoid conversions to long int where inexact exceptions could be raised. * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise. * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Avoid conversions to long long int where inexact exceptions could be raised. * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise. 2016-01-17 Mike Frysinger * configure.ac: Rewrite error comment and use AC_MSG_ERROR. * configure: Regenerated. 2016-01-16 Andrew Senkevich * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos. 2016-01-16 Mike Frysinger * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move outside of comment. 2016-01-15 Torvald Riegel * nptl/tst-barrier1.c: Add description on first line. * nptl/tst-barrier2.c: Likewise. * nptl/tst-barrier3.c: Likewise. * nptl/tst-barrier4.c: Likewise. * nptl/tst-barrier5.c: Likewise. 2016-01-15 Torvald Riegel [BZ #18868] * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix. 2016-01-16 Andrew Senkevich * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files. * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests. * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file. * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise. * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise. * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch. * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise. * sysdeps/x86_64/multiarch/memmove.c: Likewise. * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise. * sysdeps/x86_64/multiarch/mempcpy.S: Likewise. * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise. 2016-01-15 Torvald Riegel [BZ #13065] * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with new implementation. * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise. * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt. * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt. (BARRIER_IN_THRESHOLD): New macro. * nptl/pthread_barrierattr_setpshared.c (pthread_barrierattr_setpshared): Clean up. * nptl/tst-barrier4.c: Correct comment. * nptl/tst-barrier5.c: New file. * nptl/Makefile (tests): Add nptl/tst-barrier5.c. (gen-as-const-headers): Remove lowlevelbarrier.sym. * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove. * nptl/lowlevelbarrier.sym: Remove. * nptl/DESIGN-barrier.txt: Remove. * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove. * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove. * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove. * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build error. * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic implementation. 2016-01-15 Paul E. Murphy * rt/tst-mqueue5.c (thr): Cleanup misleading comment. (do_child): Mask SIGRTMIN while thr is running. 2016-01-15 Martin Sebor [BZ #19432] * iconvdata/Makefile: Add bug-iconv11. * iconvdata/bug-iconv11.c: New test. * iconvdata/ibm930.c: Do not reject redundant shift sequences. * iconvdata/ibm933.c: Same. * iconvdata/ibm935.c: Same. * iconvdata/ibm937.c: Same. * iconvdata/ibm939.c: Same. 2016-01-15 Martin Sebor [BZ #19443] * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string. [DEBUG] (_ufc_set_bits): Declare used. * iconv/gconv_dl.c [DEBUG]: Add a missing include directive. [DEBUG] (print_all): Declare used. * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert operands of the ternary ?: expression to target type. * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of calling the undeclared abort. * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME. 2016-01-15 Martin Sebor [BZ #18755] * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable warnings. * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same. (__gai_create_helper_thread): Same. * nscd/nscd.c (do_exit): Suppress -Wunused-variable. * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable to suppress -Wmaybe-uninitialized warnings. 2016-01-15 H.J. Lu [BZ #19465] * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier inside if. * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise. * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise. * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise. 2016-01-14 H.J. Lu [BZ #19466] * time/tst-mktime2.c (time_t_max): Removed. (time_t_min): Likewise. (TYPE_SIGNED): New. (TYPE_MINIMUM): Likewise. (TYPE_MAXIMUM): Likewise. (TIME_T_MIN): Likewise. (TIME_T_MAX): Likewise. (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX and TIME_T_MIN. (do_test): Likewise. 2016-01-14 Amit Pawar [BZ #19467] * sysdeps/x86/cpu-features.c (init_cpu_features): Set index_Fast_Unaligned_Load flag for Excavator family CPUs. 2016-01-02 Marcin Kościelnicki * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field. 2016-01-13 Carlos O'Donell * benchtests/Makefile (PYTHON): Define. (bench-func): Use $(PYTHON) to run python scripts. ($(objpfx)bench-%.c): Likewise. 2016-01-13 Flavio Cruz * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove leading slash when `file_name' is "/". 2016-01-12 Joseph Myers * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro. * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT): Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Likewise. * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New enum constant and macro. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. 2016-01-11 Jonathan Wakely Adhemerval Zanella [BZ #19439] * math/bits/mathcalls.h [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare prototype. [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise. 2016-01-11 Andreas Schwab [BZ #19253] * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute cache when TZDEFRULES was used. * time/tst-tzname.c: New file. * time/Makefile (test): Add tst-tzname. (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define. * timezone/Makefile (test-zones): Add $(posixrules-file). ($(testdata)/$(posixrules-file)): New rule. 2016-01-10 Paul Eggert Fix doc quoting problems with Texinfo 5 Without this change, in the info file output, Texinfo 5 quotes code in text with undirected single quotes 'like this' and generates code examples that with many PDF readers cannot be cut out of PDFs and pasted into code. * manual/libc.texinfo: Configure the libc manual like the GNU Emacs manual, by using @documentencoding and setting txicodequoteundirected and txicodequotebacktick. This way, Texinfo 5 quotes code in text with directed single quotes ‘like this’ and produces examples that can be cut out of PDFs. This change causes Texinfo 5 to generate info files that contain UTF-8 characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−', '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays. 2016-01-08 Tulio Magno Quites Machado Filho * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin, __libc_tabort, __libc_tend): New wrappers that enforce compiler barriers to their respective compiler built-ins. * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK, ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers. * sysdeps/powerpc/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise. 2016-01-08 Marko Myllynen * scripts/config.guess: Revert previous shebang change. * scripts/config.sub: Likewise. * scripts/mkinstalldirs: Likewise. 2016-01-08 Carlos Eduardo Seo * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_HAS_IEEE128. * sysdeps/powerpc/dl-procinfo.c: (_dl_powerpc_cap_flags): Add corresponding names to new capabilities. 2016-01-08 John David Anglin [BZ #19415] * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare. (elf_machine_resolve): New. Return address of _dl_runtime_resolve. (_dl_lookup_address): Rewrite using function resolver trampoline. * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom two bits in address. 2016-01-07 Mike Frysinger * longlong.h: Change !__SHMEDIA__ to (!defined (__SHMEDIA__) || !__SHMEDIA__). Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__. 2016-01-07 Daniel Jacobowitz Joseph Myers Mark Shinwell Andrew Stubbs Rich Felker * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH. 2016-01-07 Richard Henderson * longlong.h [__alpha] (umul_ppmm): Disable for c++. 2016-01-07 Mike Frysinger * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT. * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise. * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise. * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise. 2016-01-07 Paul Eggert Joseph Myers * timezone/private.h: Update from tzcode 2015g. * timezone/tzfile.h: Likewise. * timezone/tzselect.ksh: Likewise. * timezone/zdump.c: Likewise. * timezone/zic.c: Likewise. * timezone/ialloc.c: Remove file. * timezone/scheck.c: Likewise. * timezone/Makefile (extra-objs): Remove variable. ($(objpfx)zic): Do not depend on scheck.o and ialloc.o. (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0 -Wno-maybe-uninitialized. (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT. (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT. (CFLAGS-ialloc.c): Remove variable. (CFLAGS-scheck.c): Likewise. * timezone/README: Update list of files from tzcode. 2016-01-07 Khem Raj * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked instead of __fxprintf when _LIBC is undefined. 2016-01-07 Marko Myllynen * catgets/test-gencat.sh: Remove space after shebang. * conform/GlibcConform.pm: Likewise. * conform/check-header-lists.sh: Likewise. * conform/conformtest.pl: Likewise. * conform/linknamespace.pl: Likewise. * conform/list-header-symbols.pl: Likewise. * debug/catchsegv.sh: Likewise. * elf/genrtldtbl.awk: Likewise. * elf/tst-pathopt.sh: Likewise. * elf/tst-rtld-load-self.sh: Likewise. * grp/tst_fgetgrent.sh: Likewise. * iconvdata/gen-8bit-gap-1.sh: Likewise. * iconvdata/gen-8bit-gap.sh: Likewise. * iconvdata/gen-8bit.sh: Likewise. * iconvdata/run-iconv-test.sh: Likewise. * intl/tst-gettext.sh: Likewise. * intl/tst-gettext2.sh: Likewise. * intl/tst-gettext4.sh: Likewise. * intl/tst-gettext6.sh: Likewise. * intl/tst-translit.sh: Likewise. * io/ftwtest-sh: Likewise. * libio/test-freopen.sh: Likewise. * locale/gen-translit.pl: Likewise. * malloc/tst-mtrace.sh: Likewise. * manual/check-safety.sh: Likewise. * manual/libc-texinfo.sh: Likewise. * manual/tsort.awk: Likewise. * manual/xtract-typefun.awk: Likewise. * nptl/tst-cancel-wrappers.sh: Likewise. * nptl/tst-tls6.sh: Likewise. * posix/globtest.sh: Likewise. * posix/tst-getconf.sh: Likewise. * posix/wordexp-tst.sh: Likewise. * scripts/check-c++-types.sh: Likewise. * scripts/check-local-headers.sh: Likewise. * scripts/config.guess: Likewise. * scripts/config.sub: Likewise. * scripts/cpp: Likewise. * scripts/cross-test-ssh.sh: Likewise. * scripts/documented.sh: Likewise. * scripts/evaluate-test.sh: Likewise. * scripts/gen-libc-abis: Likewise. * scripts/gen-sorted.awk: Likewise. * scripts/list-fixed-bugs.py: Likewise. * scripts/merge-test-results.sh: Likewise. * scripts/mkinstalldirs: Likewise. * scripts/rellns-sh: Likewise. * scripts/test-installation.pl: Likewise. * scripts/update-copyrights: Likewise. * stdio-common/tst-printf.sh: Likewise. * stdio-common/tst-unbputc.sh: Likewise. * stdlib/tst-fmtmsg.sh: Likewise. * stdlib/tst-setcontext3.sh: Likewise. * sysdeps/i386/tst-ld-sse-use.sh: Likewise. * sysdeps/unix/make-syscalls.sh: Likewise. 2016-01-06 John David Anglin * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace asm stw with atomic_exchange_rel. Add explanatory comment. * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock): Likewise. 2016-01-05 H.J. Lu [BZ #19122] * include/unistd.h [IS_IN (rtld)]: Include . * sysdeps/generic/dl-unistd.h: New file. * sysdeps/mach/hurd/dl-unistd.h: Likewise. 2016-01-05 H.J. Lu [BZ #19122] * include/sys/mman.h [IS_IN (rtld)]: Include . * sysdeps/generic/dl-mman.h: New file. * sysdeps/mach/hurd/dl-mman.h: Likewise. 2016-01-05 Joseph Myers * manual/texinfo.tex: Update to version 2016-01-04.21 with trailing whitespace removed. * scripts/config.guess: Update to version 2016-01-01. * scripts/config.sub: Update to version 2016-01-01. * scripts/move-if-change: Update from gnulib. 2016-01-04 Anton Blanchard * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int for array indices. * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise. 2016-01-04 Joseph Myers * NEWS: Update copyright dates. * catgets/gencat.c (print_version): Likewise. * csu/version.c (banner): Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c (print_version): Likewise. * debug/xtrace.sh (do_version): Likewise. * elf/ldconfig.c (print_version): Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c (print_version): Likewise. * elf/sotruss.sh: Likewise. * elf/sprof.c (print_version): Likewise. * iconv/iconv_prog.c (print_version): Likewise. * iconv/iconvconfig.c (print_version): Likewise. * locale/programs/locale.c (print_version): Likewise. * locale/programs/localedef.c (print_version): Likewise. * login/programs/pt_chown.c (print_version): Likewise. * malloc/memusage.sh (do_version): Likewise. * malloc/memusagestat.c (print_version): Likewise. * malloc/mtrace.pl: Likewise. * manual/libc.texinfo: Likewise. * nptl/version.c (banner): Likewise. * nscd/nscd.c (print_version): Likewise. * nss/getent.c (print_version): Likewise. * nss/makedb.c (print_version): Likewise. * posix/getconf.c (main): Likewise. * scripts/test-installation.pl: Likewise. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise. * All files with FSF copyright notices: Update copyright dates using scripts/update-copyrights. * intl/plural.c: Regenerated. * locale/programs/charmap-kw.h: Likewise. * locale/programs/locfile-kw.h: Likewise. 2016-01-02 Helge Deller [BZ #19285] * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define. (MAP_HUGETLB, MCL_ONFAULT): Likewise. (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise. (MADV_xxK_PAGES): Remove. 2016-01-01 Mike Frysinger [BZ #15421] * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h. [BUILD_LGAMMA]: Wrap all code by define. Re-indent sub-preprocessor. * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise. * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise. 2015-12-30 Dmitry V. Levin [BZ #19408] * sysdeps/unix/sysv/linux/personality.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise. * sysdeps/unix/sysv/linux/tst-personality.c: Likewise. * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc] (sysdep_routines): Add personality. (tests): Add tst-personality. * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ... * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here. * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry. * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality): Likewise. 2015-12-30 Aurelien Jarno * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include . (PATH_ARM_SYSTYPE): Remove. (PATH_CPUINFO): Likewise. (IO_BASE_FOOTBRIDGE): Likewise. (IO_SHIFT_FOOTBRIDGE): Likewise. (struct platform): Likewise. (init_iosys): Remove compatibility code for 2.4 kernels. * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf. 2015-12-29 Florian Weimer * malloc/tst-malloc-thread-fail.c: New file. * malloc/Makefile (tests): Add tst-malloc-thread-fail. (tst-malloc-thread-fail): Link against libpthread. 2015-12-29 Mike Frysinger * scripts/list-fixed-bugs.py: Import argparse. Call main instead. (get_parser): New function. (main): New function. 2015-12-29 Rob Wu [BZ #19369] * resolv/res_init.c (__res_vinit): Reset defdname before use. 2015-12-29 John David Anglin [BZ #19270] * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define. 2015-12-28 Mike Frysinger [BZ #15421] * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma. 2015-12-23 Torvald Riegel [BZ #13690] * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock after releasing it. (__lll_robust_unlock): Likewise. * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise. (lll_robust_unlock): Likewise. * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag): Prevent warnings in callers. 2015-12-23 Florian Weimer * malloc/arena.c (list_lock): Update comment. 2015-12-22 Carlos Eduardo Seo * sysdeps/powerpc/hwcapinfo.c: Export symbol __parse_hwcap_and_convert_at_platform to libc.a. 2015-12-22 Carlos Eduardo Seo * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added platform and feature support for POWER9. * sysdeps/powerpc/dl-procinfo.h: Likewise. * sysdeps/powerpc/powerpc32/power9/Implies: New file. * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise. * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise. * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64. * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise. * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise. * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise. 2015-12-22 Samuel Thibault Harmonize generic stdio-lock support with nptl This fixes build when _IO_funlockfile is a macro, fixes build where _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected stack unwind. * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock, _IO_release_lock ): Use cleanup attribute on new _IO_acquire_lock_file variable instead of assuming that _IO_release_lock will be called. [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing _IO_acquire_lock_needs_exceptions_enabled. (_IO_acquire_lock_clear_flags2): New macro. 2015-12-22 Adhemerval Zanella * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated. 2015-12-21 Florian Weimer [BZ #19182] * malloc/arena.c (list_lock): Document lock ordering requirements. (free_list_lock): New lock. (ptmalloc_lock_all): Comment on free_list_lock. (ptmalloc_unlock_all2): Reinitialize free_list_lock. (detach_arena): Update comment. free_list_lock is now needed. (_int_new_arena): Use free_list_lock around detach_arena call. Acquire arena lock after list_lock. Add comment, including FIXME about incorrect synchronization. (get_free_list): Switch to free_list_lock. (reused_arena): Acquire free_list_lock around detach_arena call and attached threads counter update. Add two FIXMEs about incorrect synchronization. (arena_thread_freeres): Switch to free_list_lock. * malloc/malloc.c (struct malloc_state): Update comments to mention free_list_lock. 2015-12-21 Siddhesh Poyarekar * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2): Remove functions. (sloww, sloww1): Accept argument to offset quadrant. (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on quadrant. (__sin, __cos): Consolidate common code into new functions. (reduce_sincos_1, do_sincos_1): New functions. * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them. * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common code to new functions. (reduce_sincos_2, do_sincos_2): New functions. * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them. * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip common code for sincos. (__cos) [!IN_SINCOS]: Likewise. * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos): New function. (__sincos): Use it. 2015-12-20 Aurelien Jarno * sysdeps/i386/fpu/libm-test-ulps: Move to .... * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here. * sysdeps/i386/fpu/libm-test-ulps: Regenerate. 2015-12-19 Andrew Senkevich * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file. * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file. * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests. * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch. * sysdeps/x86_64/multiarch/memset_chk.S: Likewise. * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER, index_Prefer_No_VZEROUPPER): New feature. * sysdeps/x86/cpu-features.c (init_cpu_features): Set the Prefer_No_VZEROUPPER for Knights Landing. 015-12-18 Torvald Riegel * math/atest-exp2.c (mp_exp_m1): Remove. 2015-12-17 Adhemerval Zanella * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument syscalls. (__SYSCALL0): New macro. (__SYSCALL1): Likewise. (__SYSCALL2): Likewise. (__SYSCALL3): Likewise. (__SYSCALL4): Likewise. (__SYSCALL5): Likewise. (__SYSCALL6): Likewise. (__SYSCALL_CONCAT_X): Likewise. (__SYSCALL_CONCAT): Likewise. (__SYSCALL_DIST): Likewise. (__SYSCALL_CALL): Likewise. 2015-12-17 H.J. Lu [BZ #19363] * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file. 2015-12-17 Adhemerval Zanella [BZ #19375] * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for negative subnormals. 2015-12-16 H.J. Lu * sysdeps/unix/sysv/linux/x86_64/sysdep.h (REGISTERS_CLOBBERED_BY_SYSCALL): New. (INTERNAL_SYSCALL_NCS): Use it. (INTERNAL_SYSCALL_NCS_TYPES): Likewise. 2015-12-16 Florian Weimer [BZ #19243] * malloc/arena.c (get_free_list): Remove assert and adjust reference count handling. Add comment about reused_arena interaction. (reused_arena): Add comments abount get_free_list interaction. * malloc/tst-malloc-thread-exit.c: New file. * malloc/Makefile (tests): Add tst-malloc-thread-exit. (tst-malloc-thread-exit): Link against libpthread. 2015-12-15 H.J. Lu [BZ #19367] * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file. * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise. * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New. (index_Prefer_MAP_32BIT_EXEC): Likewise. 2015-12-15 H.J. Lu * sysdeps/x86/cpu-features.c (init_cpu_features): Enable Silvermont optimizations for Knights Landing. 2015-12-15 Andreas Schwab [BZ #17197] * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state immediately after emitting SI. * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise. * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise. * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise. * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise. * iconvdata/bug-iconv10.c: New file. * iconvdata/Makefile (tests): Add bug-iconv10. ($(objpfx)bug-iconv10.out): New rule. 2015-12-15 Florian Weimer * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an aliasing violation. 2015-12-14 Joseph Myers [BZ #18472] * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT conditionals for them. * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise. * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file. * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove sys/kdaemon.h. * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into compat-only syscall, obsoleted in glibc 2.23. (create_module): Likewise. (get_kernel_syms): Likewise. (query_module): Likewise. (uselib): Likewise. * manual/sysinfo.texi (System Parameters): Do not mention bdflush. 2015-12-11 Aurelien Jarno * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include . [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove conditional code. (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name and ioshift_name initialization. 2015-12-11 Steve Ellcey * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Fix indentation. 2015-12-11 Steve Ellcey * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation. 2015-12-11 Steve Ellcey * stdlib/strtol_l.c (__strtol_l): Fix indentation. 2015-12-10 Aurelien Jarno Jakub Wilk [BZ #19347] * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try to change the group of the device to the tty group. 2015-12-10 Paul Eggert Split large string section; add truncation advice * manual/examples/strncat.c: Remove. This example was misleading, as the code would have undefined behavior if "hello" was longer than SIZE. Anyway, the manual shouldn't encourage strncpy+strncat for this sort of thing. * manual/string.texi (Copying Strings and Arrays): Split into three sections Copying Strings and Arrays, Concatenating Strings, and Truncating Strings, as this section was way too long. All cross-referenced changed. Add advice about string-truncation functions. Remove misleading strncat example. 2015-12-10 Carlos O'Donell * manual/nss.texi (NSS Modules Interface): Document NSS_STATUS_NOTFOUND and SUCCESS. 2015-12-09 Mike FABIAN [BZ 18568] * include/stdc-predef.h (__STDC_ISO_10646__): Update to 201505L, for Unicode 8. 2015-12-09 Carlos O'Donell * locale/C-translit.h: Regenerate. 2015-12-09 Mike FABIAN * locale/C-translit.h.in: Remove duplicate transliterations for U+0152 and U+0153. 2015-12-09 Joseph Myers [BZ #19351] * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When expanding log(1+z), compare z rather than its square with epsilon to determine when to avoid evaluating the expansion. [BZ #19350] * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Increase overflow threshold. [BZ #19349] * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument when small. * sysdeps/unix/sysv/linux/i386/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL): New macro. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKETPAIR_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_GETSOCKOPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SETSOCKOPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_GETSOCKNAME_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_GETPEERNAME_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/m68k/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKETPAIR_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_GETSOCKOPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SETSOCKOPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_GETSOCKNAME_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_GETPEERNAME_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/microblaze/kernel-features.h (__ASSUME_SOCKET_SYSCALL): Likewise. (__ASSUME_BIND_SYSCALL): Likewise. (__ASSUME_CONNECT_SYSCALL): Likewise. (__ASSUME_LISTEN_SYSCALL): Likewise. (__ASSUME_ACCEPT_SYSCALL): Likewise. (__ASSUME_GETSOCKNAME_SYSCALL): Likewise. (__ASSUME_GETPEERNAME_SYSCALL): Likewise. (__ASSUME_SOCKETPAIR_SYSCALL): Likewise. (__ASSUME_SEND_SYSCALL): Likewise. (__ASSUME_SENDTO_SYSCALL): Likewise. (__ASSUME_RECV_SYSCALL): Likewise. (__ASSUME_RECVFROM_SYSCALL): Likewise. (__ASSUME_SHUTDOWN_SYSCALL): Likewise. (__ASSUME_GETSOCKOPT_SYSCALL): Likewise. (__ASSUME_SETSOCKOPT_SYSCALL): Likewise. (__ASSUME_SENDMSG_SYSCALL): Likewise. (__ASSUME_RECVMSG_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/sh/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_GETSOCKNAME_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_GETPEERNAME_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKETPAIR_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_GETSOCKOPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SETSOCKOPT_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL): Likewise. 2015-12-09 Aurelien Jarno * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to record the current if the current ABI and CPU support the FP64 extension. (has-modd-spreg): Define to record the current if the current ABI and CPU support 32-bit floating point values in odd FPU registers. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when $(has-modd-spreg) equals yes. (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes. (tst-abi-fp64mod): Only build when both $(has-mpf64) and $(has-modd-spreg) equal yes. 2015-12-09 Aurelien Jarno * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of basename. 2015-12-08 Siddhesh Poyarekar * benchtests/Makefile (bench-math): Move ffs and ffsll... (bench-string): ... here. (bench): Add bench-string. (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename to *-benchset to reflect what they are. (benchset): Adjust. * benchtests/sincos-inputs: Add inputs from sin-inputs and cos-inputs. 2015-12-07 Andrew Senkevich * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.* __attribute__ ((__simd__)) for vector math function declarations. 2015-12-04 Paul Eggert Fix typo in strncat, wcsncat manual entries * manual/string.texi (Copying and Concatenation): Fix typos in sample implementations of strncat and wcsncat, by having them use the old value of the destination length, not the new one. 2015-12-04 Joseph Myers [BZ #16961] [BZ #16962] * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a string on the stack for strtod. * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing a string on the stack for strtof. * math/s_nanl.c (__nanl): Use __strtold_nan instead of constructing a string on the stack for strtold. * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and __strtold_nan to GLIBC_PRIVATE. * math/test-nan-overflow.c: New file. * math/test-nan-payload.c: Likewise. * math/Makefile (tests): Add test-nan-overflow and test-nan-payload. 2015-12-04 Paul Eggert Consistency about byte vs character in string.texi * manual/string.texi (String and Array Utilities): Distinguish more carefully among bytes, multibyte characters, and wide characters. Use "byte" when talking about C 'char', to distinguish it more clearly from multibyte characters. Say "wide character" or "multibyte character" instead of "character", when a wide or multibyte character is intended. Similarly for "multibyte string" versus "string". Define these terms more carefully. 2015-12-03 Chris Metcalf * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol. * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise. * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise. * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise. * sysdeps/sh/math_private.h: New file. * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise. * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE && defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal long double function name. * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise. * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise. * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise. * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise. * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Remove __finitel, __isinfl, and __isnanl. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Remove __finitel. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise. 2015-12-03 Andrew Senkevich * math/Makefile ($(inst_libdir)/libm.so): Corrected path to installed libmvec_nonshared.a. 2015-12-03 Carlos Eduardo Seo * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo. (sysdep_routines): Likewise. (sysdep-rtld-routines): Likewise. [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static [$(subdir) = nptl](tests-static): test-get_hwcap-static * sysdeps/powerpc/Versions: Added new __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23. * sysdeps/powerpc/hwcapinfo.c: New file. (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize and parse hwcap, hwcap2 and platform number information. * sysdeps/powerpc/hwcapinfo.h: New file. Creates global variables to store HWCAP+HWCAP2 and platform number. * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets for HWCAP+HWCAP2 and platform number in the TCB. * sysdeps/powerpc/nptl/tls.h: New functionality. Stores the HWCAP, HWCAP2 and platform number in the TCB. (dtv): Added new fields for HWCAP+HWCAP2 and platform number. (TLS_INIT_TP): Included calls to add the hwcap and at_platform values in the TCB in TP initialization. (TLS_DEFINE_INIT_TP): Likewise. (THREAD_GET_HWCAP): New macro. (THREAD_SET_HWCAP): Likewise. (THREAD_GET_AT_PLATFORM): Likewise. (THREAD_SET_AT_PLATFORM): Likewise. * sysdeps/powerpc/powerpc32/dl-machine.h: (dl_platform_init): New function that calls __parse_hwcap_and_convert_at_platform for the dymanic linking case for powerpc32. * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64. * sysdeps/powerpc/test-get_hwcap-static.c: New file. Testcase for this functionality, static linking case. * sysdeps/powerpc/test-get_hwcap.c: New file. Likewise, dynamic linking case. * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to __parse_hwcap_and_convert_at_platform for the static linking case. * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Included the new __parse_hwcap_and_convert_at_platform symbol in the ABI list for GLIBC 2.23. * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise. 2015-12-02 Ludovic Courtès * configure.ac: Use 'pwd -P' instead of '/bin/pwd'. * configure: Regenerate. * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'. * scripts/rellns-sh: Likewise. Remove 'pwd' variable. 2015-12-02 Carlos O'Donell * iconvdata/ibm930.c: Add comment explaining encoding uses. * iconvdata/ibm933.c: Likewise. * iconvdata/ibm935.c: Likewise. * iconvdata/ibm937.c: Likewise. * iconvdata/ibm939.c: Likewise. 2015-12-02 Adhemerval Zanella * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after pthread_join. * nptl/tst-cancel21.c (tf): Likewise. 2015-12-01 H.J. Lu [BZ #19313] * bits/typesizes.h (__CPU_MASK_TYPE): New. * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise. * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise. * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE): Likewise. * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE): Likewise. * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE): Likewise. * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE): * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace unsigned long int with __CPU_MASK_TYPE. 2015-12-01 Szabolcs Nagy * sysdeps/aarch64/libm-test-ulps: Regenerated. 2015-12-01 Joseph Myers * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h. (__ieee754_sqrt): Use hex float constants instead of tm256.x and t512.x. * sysdeps/ieee754/dbl-64/uroot.h: Remove file. 2015-11-30 Amit Pawar [BZ #19214] * sysdeps/x86/cpu-features.c (get_common_indeces): Add an argument to return extended model. Update family and model with extended family and model when family == 0x0f. (init_cpu_features): Updated. 2015-11-29 Samuel Thibault The RPC interface used by mmap uses the unsigned vm_offset_t, not the signed off_t, so 32bit bigger than 2GiB values are fine actually. * sysdeps/mach/hurd/mmap64.c: New file. 2015-11-29 Thomas Schwinge * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send rights for its main user thread in NEWTASK. 2015-11-28 Maciej W. Rozycki * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008. (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008. 2015-11-27 Carlos O'Donell [BZ #14259] * Makeconfig: Rename localedir to complocaledir. Rename inst_localedir to inst_complocaledir. * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir. * config.make.in: Use complocaledir and libc_cv_complocaledir. * configure.ac: Use libc_cv_complocaledir. * configure: Regenerate. * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to -DCOMPLOCALEDIR. * locale/findlocale.c: Use COMPLOCALEDIR. * locale/loadarchive.c: Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * locale/programs/locarchive.c: Likewise. * localedata/Makefile: Use inst_complocaledir. * sysdeps/gnu/configure: Regenerate. * sysdeps/hppa/configure: Regenerate. * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate. * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate. * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate. * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate. * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate. 2015-11-27 Andrew Senkevich [BZ #19058] * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to AS_NEEDED. * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases workaround. * sysdeps/x86_64/fpu/Makefile (libmvec-support, libmvec-static-only-routines): Added new file. * sysdeps/x86_64/fpu/svml_finite_alias.S: New file. 2015-11-25 Samuel Thibault * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port of interrupted RPC instead of restoring it. * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def. * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove libc_hidden_def. * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get into initialized data instead of common. Define rtld_hidden_data_def. * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def. * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add libc_hidden_def. (if_freenameindex): Add libc_hidden_weak. (if_nameindex): Add libc_hidden_weak. * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into __open64. * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def. * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def. * sysdeps/mach/nanosleep.c: Include (__nanosleep): Rename to __libc_nanosleep. (__nanosleep): Add weak_alias. (nanosleep): Update alias. 2015-11-24 Joseph Myers * stdlib/strtod_nan.c: New file. * stdlib/strtod_nan_double.h: Likewise. * stdlib/strtod_nan_float.h: Likewise. * stdlib/strtod_nan_main.c: Likewise. * stdlib/strtod_nan_narrow.h: Likewise. * stdlib/strtod_nan_wide.h: Likewise. * stdlib/strtof_nan.c: Likewise. * stdlib/strtold_nan.c: Likewise. * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise. * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise. * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise. * wcsmbs/wcstod_nan.c: Likewise. * wcsmbs/wcstof_nan.c: Likewise. * wcsmbs/wcstold_nan.c: Likewise. * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and strtold_nan. * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and wcstof_nan. * include/stdlib.h (__strtof_nan): Declare and use libc_hidden_proto. (__strtod_nan): Likewise. (__strtold_nan): Likewise. (__wcstof_nan): Likewise. (__wcstod_nan): Likewise. (__wcstold_nan): Likewise. * include/wchar.h (____wcstoull_l_internal): Declare. * stdlib/strtod_l.c: Do not include . (____strtoull_l_internal): Remove declaration. (STRTOF_NAN): Define macro. (SET_MANTISSA): Remove macro. (STRTOULL): Likewise. (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload. * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration. (STRTOF_NAN): Define macro. (SET_MANTISSA): Remove macro. * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro. (SET_MANTISSA): Remove macro. * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define macro. (SET_MANTISSA): Remove macro. * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define macro. (SET_MANTISSA): Remove macro. * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro. (SET_MANTISSA): Remove macro. * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration. * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise. * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise. [BZ #19266] * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for upper case and lower case letters inside NAN(), not using TOLOWER. * stdlib/tst-strtod-nan-locale-main.c: New file. * stdlib/tst-strtod-nan-locale.c: Likewise. * stdlib/Makefile (tests): Add tst-strtod-nan-locale. [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out): Depend on $(gen-locales). ($(objpfx)tst-strtod-nan-locale): Depend on $(libm). * wcsmbs/tst-wcstod-nan-locale.c: New file. * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale. [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out): Depend on $(gen-locales). ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm). 2015-11-24 Chris Metcalf * misc/tst-tsearch.c (TIMEOUT): Set to 10. * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add __finitel, __isinfl, and __isnanl. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add __finitel. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise. 2015-11-24 Gleb Fotengauer-Malinovskiy * malloc/memusage.c (me): Remove redundant getenv call. 2015-10-24 Florian Weimer [BZ #19143] [BZ #19164] * nptl/check-cpuset.h: Remove. * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new): Remove CPU set size check. * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np): Likewise. * sysdeps/unix/sysv/linux/check-cpuset.h: Remove. * sysdeps/unix/sysv/linux/pthread_setaffinity.c (__kernel_cpumask_size, __determine_cpumask_size): Remove. (__pthread_setaffinity_new): Remove CPU set size check. * sysdeps/unix/sysv/linux/sched_setaffinity.c (__kernel_cpumask_size): Remove. (__sched_setaffinity_new): Remove CPU set size check. * manual/threads.texi (Default Thread Attributes): Remove stale reference to check_cpuset_attr, determine_cpumask_size in comment. * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests): Remove tst-getcpu. Add tst-affinity, tst-affinity-pid. [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread, tst-thread-affinity-pthread2, tst-thread-affinity-sched. * sysdeps/unix/sysv/linux/tst-affinity.c: New file. * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file. * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file. * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file. * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file. * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file. * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New skeleton test file. * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove. Superseded by tst-affinity-pid. 2015-11-24 Florian Weimer * scripts/update-abilist.sh: New file. * Makefile (+subdir_targets): Add subdir_update-all-abi. * Makerules (update-all-abi-%, update-all-abi) (subdir_update-all-abi): New targets. * elf/Makefile (update-all-abi): New target. 2015-11-24 Florian Weimer Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code. * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define. (__libc_lock_define_initialized): Use it. * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define. * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER. * malloc/malloc.c (main_arena): Likewise. * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove. * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove. 2015-11-23 Joseph Myers * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions. (PTRACE_O_SUSPEND_SECCOMP): Likewise. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions. (PTRACE_O_SUSPEND_SECCOMP): Likewise. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions. (PTRACE_O_SUSPEND_SECCOMP): Likewise. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH): New macro. (PACKET_AUXDATA): Likewise. (PACKET_ORIGDEV): Likewise. (PACKET_VERSION): Likewise. (PACKET_HDRLEN): Likewise. (PACKET_RESERVE): Likewise. (PACKET_TX_RING): Likewise. (PACKET_LOSS): Likewise. (PACKET_VNET_HDR): Likewise. (PACKET_TX_TIMESTAMP): Likewise. (PACKET_TIMESTAMP): Likewise. (PACKET_FANOUT): Likewise. (PACKET_TX_HAS_OFF): Likewise. (PACKET_QDISC_BYPASS): Likewise. (PACKET_ROLLOVER_STATS): Likewise. (PACKET_FANOUT_DATA): Likewise. (PACKET_MR_UNICAST): Likewise. [BZ #19242] * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale. (TOUPPER): Likewise. * stdlib/tst-strtol-locale-main.c: New file. * stdlib/tst-strtol-locale.c: Likewise. * stdlib/Makefile (tests): Add tst-strtol-locale. [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9. [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out): Depend on $(gen-locales). * wcsmbs/tst-wcstol-locale.c: New file. * wcsmbs/Makefile (tests): Add tst-wcstol-locale. [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and tr_TR.ISO-8859-9. [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out): Depend on $(gen-locales). 2015-11-20 Roland McGrath * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use __glibc_likely instead of __builtin_expect. After falling back to dyncode_create in a non-ET_DYN case, use the allocate_code_data system interface to register the code pages as occupied. 2015-11-20 Joseph Myers * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!ARM_MATH_PRIVATE_H]. [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro. * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!HPPA_MATH_PRIVATE_H]. [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro. * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!I386_MATH_PRIVATE_H]. [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro. * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!M68K_MATH_PRIVATE_H]. [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro. * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!MICROBLAZE_MATH_PRIVATE_H]. [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define macro. * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!MIPS_MATH_PRIVATE_H]. [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro. * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!NIO2_MATH_PRIVATE_H]. [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro. * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to [!TILE_MATH_PRIVATE_H]. [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro. [BZ #15421] * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam, initialize with 0 and define as weak alias of __signgam. * include/math.h [!_ISOMAC] (__signgam): Declare. * math/Makefile (libm-calls): Add w_lgamma_compat. (tests): Add test-signgam-uchar, test-signgam-uchar-init, test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and test-signgam-ullong-init. (tests-static): Add test-signgam-uchar-static, test-signgam-uchar-init-static, test-signgam-uint-static, test-signgam-uint-init-static, test-signgam-ullong-static and test-signgam-ullong-init-static. (CFLAGS-test-signgam-uchar.c): New variable. (CFLAGS-test-signgam-uchar-init.c): Likewise. (CFLAGS-test-signgam-uchar-static.c): Likewise. (CFLAGS-test-signgam-uchar-init-static.c): Likewise. (CFLAGS-test-signgam-uint.c): Likewise. (CFLAGS-test-signgam-uint-init.c): Likewise. (CFLAGS-test-signgam-uint-static.c): Likewise. (CFLAGS-test-signgam-uint-init-static.c): Likewise. (CFLAGS-test-signgam-ullong.c): Likewise. (CFLAGS-test-signgam-ullong-init.c): Likewise. (CFLAGS-test-signgam-ullong-static.c): Likewise. (CFLAGS-test-signgam-ullong-init-static.c): Likewise. * math/Versions (libm): Add GLIBC_2.23. * math/lgamma-compat.h: New file. * math/test-signgam-main.c: Likewise. * math/test-signgam-uchar-init-static.c: Likewise. * math/test-signgam-uchar-init.c: Likewise. * math/test-signgam-uchar-static.c: Likewise. * math/test-signgam-uchar.c: Likewise. * math/test-signgam-uint-init-static.c: Likewise. * math/test-signgam-uint-init.c: Likewise. * math/test-signgam-uint-static.c: Likewise. * math/test-signgam-uint.c: Likewise. * math/test-signgam-ullong-init-static.c: Likewise. * math/test-signgam-ullong-init.c: Likewise. * math/test-signgam-ullong-static.c: Likewise. * math/test-signgam-ullong.c: Likewise. * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by wrapper of w_lgamma_main.c. * math/w_lgamma_compat.c: New file. * math/w_lgamma_compatf.c: Likewise. * math/w_lgamma_compatl.c: Likewise. * math/w_lgamma_main.c: New file. Based on w_lgamma.c. Include . Condition contents on [BUILD_LGAMMA]. Support defining compatibility symbols. (__lgamma): Change to LGFUNC (__lgamma). Use CALL_LGAMMA. * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by wrapper of w_lgammaf_main.c. * math/w_lgammaf_main.c: New file. Based on w_lgammaf.c. Include . Condition contents on [BUILD_LGAMMA]. Support defining compatibility symbols. (__lgammaf): Change to LGFUNC (__lgammaf). Use CALL_LGAMMA. * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by wrapper of w_lgammal_main.c. * math/w_lgammal_main.c: New file. Based on w_lgammal.c. Include . Condition contents on [BUILD_LGAMMA]. Support defining compatibility symbols. (__lgammal): Change to LGFUNC (__lgammal). Use CALL_LGAMMA. * sysdeps/ia64/fpu/lgamma-compat.h: New file. * sysdeps/ia64/fpu/w_lgamma.c: Move to .... * sysdeps/ia64/fpu/w_lgamma_main.c: ...here. Include . (__ieee754_lgamma): Change to LGFUNC (lgamma). Use CALL_LGAMMA. (__ieee754_gamma): Define as alias. * sysdeps/ia64/fpu/w_lgammaf.c: Move to .... * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here. Include . (__ieee754_lgammaf): Change to LGFUNC (lgammaf). Use CALL_LGAMMA. (__ieee754_gammaf): Define as alias. * sysdeps/ia64/fpu/w_lgammal.c: Move to .... * sysdeps/ia64/fpu/w_lgammal_main.c: ...here. Include . (__ieee754_lgammal): Change to LGFUNC (lgammal). Use CALL_LGAMMA. (__ieee754_gammal): Define as alias. * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to .... * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here. Include . [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat): Define as alias of __lgamma_compat and use in defining lgammal. * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to .... * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here. Include and . (USE_AS_COMPAT): New macro. (LGAMMA_OLD_VER): Undefine and redefine. (lgammal): Do not define here. (gammal): Only define here if [GAMMA_ALIAS]. * conform/linknamespace.pl (@whitelist): Remove signgam. * sysdeps/nacl/libm.abilist: Update. * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise. 2015-11-20 Adhemerval Zanella [BZ #16364] * sysdeps/unix/sysv/linux/sleep.c: Remove file. * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling. 2015-11-20 Stefan Liebler * sysdeps/s390/fpu/bits/mathinline.h: Use __asm__ [__volatile__] instead of asm [volatile]. * sysdeps/s390/abort-instr.h: Likewise. * sysdeps/s390/atomic-machine.h: Likewise. * sysdeps/s390/bits/string.h: Likewise. * sysdeps/s390/dl-tls.h: Likewise. * sysdeps/s390/fpu/e_sqrt.c: Likewise. * sysdeps/s390/fpu/e_sqrtf.c: Likewise. * sysdeps/s390/fpu/e_sqrtl.c: Likewise. * sysdeps/s390/fpu/fesetround.c: Likewise. * sysdeps/s390/fpu/fpu_control.h: Likewise. * sysdeps/s390/fpu/s_fma.c: Likewise. * sysdeps/s390/fpu/s_fmaf.c: Likewise. * sysdeps/s390/memusage.h: Likewise. * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise. * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise. * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise. * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise. * sysdeps/s390/nptl/tls.h: Likewise. * sysdeps/s390/s390-32/__longjmp.c: Likewise. * sysdeps/s390/s390-32/backtrace.c: Likewise. * sysdeps/s390/s390-32/dl-machine.h: Likewise. * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise. * sysdeps/s390/s390-32/stackguard-macros.h: Likewise. * sysdeps/s390/s390-32/tls-macros.h: Likewise. * sysdeps/s390/s390-64/__longjmp.c: Likewise. * sysdeps/s390/s390-64/backtrace.c: Likewise. * sysdeps/s390/s390-64/dl-machine.h: Likewise. * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise. * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise. * sysdeps/s390/s390-64/stackguard-macros.h: Likewise. * sysdeps/s390/s390-64/tls-macros.h: Likewise. * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise. * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise. * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise. * sysdeps/unix/sysv/linux/s390/brk.c: Likewise. * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise. 2015-11-19 Adhemerval Zanella Paul E. Murphy * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock): Add lwarx hint, and use macro for acquire instruction. * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ... * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and update to use new atomic macros. 2015-11-19 Paul E. Murphy * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c (__lll_trylock_elision): Fix setting of adapt_count. * sysdeps/unix/sysv/linux/powerpc/htm.h (_ABORT_PERSISTENT): Define to clarify persistent aborts. (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent. (_ABORT_SYSCALL): Renumber, and clarify definition. (_ABORT_LOCK_BUSY): Renumber, make non-persistent. 2015-11-19 Paul E. Murphy * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers after system headers to prevent MIN/MAX redefinition. Define HAVE_ALLOCA to preserve builtin alloca usage. 2015-11-17 Siddhesh Poyarekar * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function static and don't set or restore rounding. (__cos)[IN_SINCOS]: Likewise. * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c. (__sincos): Set and restore rounding mode. Remove check for infinite or NaN input. * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses. * benchtests/scripts/bench.py (_print_arg_data): Mark output variables as used. 2015-11-16 Florian Weimer * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine. 2015-11-14 H.J. Lu * config.make.in (have-glob-dat-reloc): New. * configure.ac (libc_cv_has_glob_dat): New. Set to yes if target supports GLOB_DAT relocaton. AC_SUBST. * configure: Regenerated. * elf/Makefile (tests): Add tst-prelink. (tests-special): Add $(objpfx)tst-prelink-cmp.out. (tst-prelink-ENV): New. ($(objpfx)tst-prelink-conflict.out): Likewise. ($(objpfx)tst-prelink-cmp.out): Likewise. * sysdeps/x86/tst-prelink.c: Moved to ... * elf/tst-prelink.c: Here. * sysdeps/x86/tst-prelink.exp: Moved to ... * elf/tst-prelink.exp: Here. * sysdeps/x86/Makefile (tests): Don't add tst-prelink. (tst-prelink-ENV): Removed. ($(objpfx)tst-prelink-conflict.out): Likewise. ($(objpfx)tst-prelink-cmp.out): Likewise. (tests-special): Don't add $(objpfx)tst-prelink-cmp.out. 2015-11-13 Joseph Myers [BZ #14551] * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include . (__mpn_construct_long_double): If high part overflows to infinity, set errno and recompute overflowed result of the correct sign. * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm. [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on $(libm). * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file. 2015-11-12 Joseph Myers [BZ #15479] [BZ #19238] * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save floating-point state after first operation on input. Restore full state rather than just rounding mode. * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise. * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise. * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise. [BZ #19235] * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not add 0.5 to integer arguments. * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise. (.LC2): New object. 2015-11-11 Mike Frysinger * scripts/pylintrc (reports): Set to no. 2015-11-10 Roland McGrath * elf/dl-load.c (open_verify): Take new argument FD. Skip __open call if passed FD is not -1. (_dl_map_object, open_path): Update callers. * elf/dl-sysdep-open.h: New file. * elf/dl-load.c: Include it. (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache. * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function. * sysdeps/nacl/dl-sysdep-open.h: New file. * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open from libc to rtld. 2015-11-10 Joseph Myers [BZ #19228] * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save and restore full floating-point state. * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf): Likewise. * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint): Likewise. * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise. * math/test-nearbyint-except-2.c: New file. * math/Makefile (tests): Add test-nearbyint-except-2. 2015-11-10 H.J. Lu [BZ #19178] * sysdeps/x86/Makefile (tests): Add tst-prelink. (tst-prelink-ENV): New. ($(objpfx)tst-prelink-conflict.out): Likewise. ($(objpfx)tst-prelink-cmp.out): Likewise. (tests-special): Add $(objpfx)tst-prelink-cmp.out. * sysdeps/x86/tst-prelink.c: New file. * sysdeps/x86/tst-prelink.exp: Likewise. 2015-11-10 Joseph Myers * math/auto-libm-test-in: Add another test of pow. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (pow_test_data): Add another test. 2015-11-10 Adhemerval Zanella [BZ #19219] * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and weak_alias to nearbyintl. 2015-11-10 Wilco Dijkstra * sysdeps/aarch64/bits/string.h: New file. (_STRING_ARCH_unaligned): Define. 2015-11-10 Wilco Dijkstra * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*. * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise. * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise. * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise. 2015-11-09 Ulrich Drepper * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter for original name of the DSO. Add it to the name list of the DSO if it is actually given. (_dl_map_object): Keep track of whether an audit module rewrote the file name. If yes, pass the original name to _dl_map_object_from_fd in a new parameter, otherwise NULL. When debugging is enabled, log the change of the file name. * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to _dl_map_object_from_fd. * elf/Makefile: Build and run tst-audit11 and tst-audit12. * elf/tst-audit11.c: New file * elf/tst-auditmod11.c: New file. * elf/tst-audit11mod1.c: New file. * elf/tst-audit11mod2.c: New file. * elf/tst-audit11mod2.map: New file. * elf/tst-audit12.c: New file * elf/tst-auditmod12.c: New file. * elf/tst-audit12mod1.c: New file. * elf/tst-audit12mod2.c: New file. * elf/tst-audit12mod2.map: New file. * elf/tst-audit12mod3.c: New file. 2015-11-09 Stefan Liebler * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp): Don't create weak aliases, because versioned symbols are created later. * sysdeps/s390/s390-32/setjmp.S (setjmp, _setjmp): Remove weak and rename to an unique name in SHARED case due to existing versioned symbols. * sysdeps/s390/s390-64/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (getcontext): Create weak alias only in non SHARED case. * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise. 2015-11-09 Stefan Liebler * sysdeps/unix/sysv/linux/s390/kernel-features.h: (__ASSUME_*_SYSCALL) Define new macros. * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove socketcall syscalls. * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL. * sysdeps/unix/sysv/linux/recv.c (__libc_recv): Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL. * sysdeps/unix/sysv/linux/send.c (__libc_send): Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL. 2015-11-09 Florian Weimer [BZ #12926] Terminate process on invalid netlink response. * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_assert_response): Declare. * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file. * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet] (sysdep_routines): Add netlink_assert_response. * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call __netlink_assert_response. * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise. * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise. * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add __netlink_assert_response. 2015-11-07 H.J. Lu [BZ #19178] * elf/dl-lookup.c (RTYPE_CLASS_VALID): New. (RTYPE_CLASS_PLT): Likewise. (RTYPE_CLASS_COPY): Likewise. (RTYPE_CLASS_TLS): Likewise. (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID to set relocation type class for DL_DEBUG_PRELINK. Keep only ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for DL_DEBUG_PRELINK. 2015-11-06 Joseph Myers * math/test-signgam-finite.c (RUN_TESTS): Correct messages about calls with argument -0.5. * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise. * configure.ac (libc_cv_z_nodelete): Remove configure test. (libc_cv_z_nodlopen): Likewise. (libc_cv_z_initfirst): Likewise. * configure: Regenerated. 2015-11-06 Florian Weimer Simplify abilist format to be line-based. * scripts/abilist.awk: Collect descriptors in the descs variable. (emit): Write descs variable and sort it externally, with sort. * sysdeps/**/*.abilist: Convert to new format. 2015-11-06 Mark Wielaard [BZ #11460] * io/Makefile (routines): Add fts64. (tests): Add tst-fts and tst-fts-lfs. (CFLAGS-fts64.c): New. * io/Versions (GLIBC_2.23): New. * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary. * io/fts.h (FTS64): New if _USE_LARGEFILE64. (FTSENT64): Likewise. (fts64_children): Likewise. (fts64_close): Likewise. (fts64_open): Likewise. (fts64_read): Likewise. (fts64_set): Likewise. * io/fts64.c: New file. * io/tst-fts.c: New test. * io/tst-fts-lfs.c: Likewise. * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and fts64_set. * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise. * sysdeps/wordsize-64/fts.c: New file. * sysdeps/wordsize-64/fts64.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise. * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise. 2015-11-05 Joseph Myers * math/libm-test.inc (NON_FINITE): New macro. (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE. * math/gen-libm-test.pl (show_exceptions): Add argument $non_finite. (parse_args): Update call to show_exceptions. * math/test-math-finite.h: New file. * math/test-math-no-finite.h: Likewise. * math/test-double-finite.c: Likewise. * math/test-float-finite.c: Likewise. * math/test-ldouble-finite.c: Likewise. * math/test-double.c: Include "test-math-no-finite.h". * math/test-float.c: Include "test-math-no-finite.h". * math/test-ldouble.c: Include "test-math-no-finite.h". * math/test-math-inline.h (TEST_FINITE): New macro. * math/test-math-vector.h (TEST_FINITE): Likewise. * math/Makefile (test-longdouble-yes): Add test-ldouble-finite. (libm-tests): Add test-float-finite and test-double-finite. ($(objpfx)test-float-finite.o): New dependency on $(objpfx)libm-test.stmp. ($(objpfx)test-double-finite.o): Likewise. ($(objpfx)test-ldouble-finite.o): Likewise. (libm-test-no-inline-cflags): New variable. (libm-test-finite-cflags): Likewise. (CFLAGS-test-float-finite.c): Likewise. (CFLAGS-test-double-finite.c): Likewise. (CFLAGS-test-ldouble-finite.c): Likewise. (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags). (CFLAGS-test-double.c): Likewise. (CFLAGS-test-ldouble.c): Likewise. 2015-11-05 Roland McGrath * io/fcntl.c (__fcntl): Add ... to prototype. * misc/ioctl.c (__ioctl): Likewise. * misc/syscall.c (syscall): Likewise. 2015-11-05 Joseph Myers * scripts/list-fixed-bugs.py: New file. [BZ #19213] * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always returned for argument 1. * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise. * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise. * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise. * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise. * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise. * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise. [BZ #19211] * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC || __USE_XOPEN], not if [!__USE_ISOC99]. (lgammaf): Likewise. (lgammal): Likewise. (gamma): Set signgam unconditionally, not if [!__USE_ISOC99]. (gammaf): Likewise. (gammal): Likewise. * math/test-signgam-finite-c11.c: New file. * math/test-signgam-finite-c99.c: Likewise. * math/test-signgam-finite.c: Likewise. * math/Makefile (tests): Add test-signgam-finite, test-signgam-finite-c99 and test-signgam-finite-c11. (CFLAGS-test-signgam-finite.c): New variable. (CFLAGS-test-signgam-finite-c99.c): Likewise. (CFLAGS-test-signgam-finite-c11.c): Likewise. [BZ #19212] * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >= 500]. [_POSIX_C_SOURCE >= 1]: Change conditional to [defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1]. [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L]. [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L]. [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L]. [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L]. [BZ #19209] * math/bits/math-finite.h (ldexp): Remove declaration. (ldexpf): Likewise. (ldexpl): Likewise. [BZ #19205] * math/bits/math-finite.h (acosf): Condition declaration on [__USE_ISOC99]. (acosl): Likewise. (acoshf): Likewise. (acoshl): Likewise. (asinf): Likewise. (asinl): Likewise. (atan2f): Likewise. (atan2l): Likewise. (atanhf): Likewise. (atanhl): Likewise. (coshf): Likewise. (coshl): Likewise. (expf): Likewise. (expl): Likewise. (fmodf): Likewise. (fmodl): Likewise. (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99]. (j0f): Change condition to [__USE_MISC && __USE_ISOC99]. (j0l): Likewise. (y0f): Likewise. (y0l): Likewise. (j1f): Likewise. (j1l): Likewise. (y1f): Likewise. (y1l): Likewise. (jnf): Likewise. (jnl): Likewise. (ynf): Likewise. (ynl): Likewise. (lgammaf_r): Condition declaration on [__USE_ISOC99]. (lgammal_r): Likewise. (__lgamma_r_finite): New declaration. (__lgammaf_r_finite): Likewise. (__lgammal_r_finite): Likewise. (lgamma): Use __lgamma_r_finite. (lgammaf): Condition definition on [__USE_ISOC99]. Use __lgammaf_r_finite. (lgammal): Condition definition on [__USE_ISOC99]. Use __lgammal_r_finite. (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K]. Use __lgamma_r_finite. (gammaf): Condition definition on [__USE_ISOC99]. Use __lgammaf_r_finite. (gammal): Condition definition on [__USE_ISOC99]. Use __lgammal_r_finite. (logf): Condition declaration on [__USE_ISOC99]. (logl): Likewise. (log10f): Likewise. (log10l): Likewise. (ldexpf): Likewise. (ldexpl): Likewise. (powf): Likewise. (powl): Likewise. (remainder): Condition declaration on [__USE_XOPEN_EXTENDED || __USE_ISOC99]. (remainderf): Condition declaration on [__USE_ISOC99]. (remainderl): Likewise. (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8]. (scalbf): Change condition to [__USE_MISC && __USE_ISOC99]. (scalbl): Likewise. (sinhf): Condition declaration on [__USE_ISOC99]. (sinhl): Likewise. (sqrtf): Likewise. (sqrtl): Likewise. 2015-11-04 Joseph Myers * sysdeps/arm/atomic-machine.h [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]: Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]. [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]: Remove conditional code. [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]: Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]. * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to [__ASSEMBLER__]. [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code. [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to [!__ASSEMBLER__]. [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code. * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove conditional macro definitions. (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP. (__arch_compare_and_exchange_val_16_acq): Likewise. (__arch_compare_and_exchange_val_32_acq): Likewise. (atomic_exchange_and_add): Likewise. (atomic_add): Likewise. (atomic_add_negative): Likewise. (atomic_add_zero): Likewise. (atomic_bit_set): Likewise. (atomic_bit_test_set): Likewise. * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make code unconditional. [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * math/test-math-errno.h: New file. * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of empty. (TEST_ERRNO): New macro. (TEST_EXCEPTIONS): Likewise. * math/test-math-no-inline.h (TEST_INLINE): Likewise. (TEST_EXCEPTIONS): Likewise. * math/test-math-vector.h (TEST_ERRNO): Likewise. * math/test-double.c: Include "test-math-errno.h". * math/test-float.c: Likewise. * math/test-ldouble.c: Likewise. * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make code unconditional. (test_exceptions): Only run code if TEST_EXCEPTIONS. (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code unconditional. (test_errno): Only run code if TEST_ERRNO. (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef. 2015-11-04 Florian Weimer * nptl/tst-once5.cc: Remove attribution. 2015-11-04 Joseph Myers * math/auto-libm-test-in: Add more tests of sin, sincos, sinh, sqrt, tan, tanh, y0, y1 and yn. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (scalb_test_data): Add more tests. (scalbn_test_data): Likewise. (scalbln_test_data): Likewise. (signbit_test_data): Likewise. (sin_test_data): Likewise. (sincos_test_data): Likewise. (sinh_test_data): Likewise. (sqrt_test_data): Likewise. (tan_test_data): Likewise. (tanh_test_data): Likewise. (tgamma_test_data): Likewise. (y0_test_data): Likewise. (y1_test_data): Likewise. (yn_test_data): Likewise. (significand_test_data): Likewise. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-11-03 David Kastrup [BZ #18604] * assert/assert.h (assert): Don't macro-expand failed assertion expression in error message. * malloc/malloc.c (assert): Likewise. 2015-11-03 Joseph Myers * configure.ac (libc_cv_ld_no_whole_archive): Remove configure test. * configure: Regenerated. 2015-11-02 Joseph Myers * math/libm-test.inc (modf_test_data): Add more tests. (nearbyint_test_data): Likewise. (nextafter_test_data): Likewise. (nexttoward_test_data): Likewise. (pow_test_data): Likewise. (remainder_test_data): Likewise. (remquo_test_data): Likewise. (rint_test_data): Likewise. [BZ #19201] * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Check for zero remainder in case of large exponents and ensure correct sign of result in that case. * math/libm-test.inc (remainder_test_data): Add more tests. [BZ #6799] * math/s_nextafter.c: Include . (__nextafter): Set errno on overflow and underflow. * math/s_nexttowardf.c: Include . (__nexttowardf): Set errno on overflow and underflow. * sysdeps/i386/fpu/s_nextafterl.c: Include . (__nextafterl): Set errno on overflow and underflow. * sysdeps/i386/fpu/s_nexttoward.c: Include . (__nexttoward): Set errno on overflow and underflow. * sysdeps/i386/fpu/s_nexttowardf.c: Include . (__nexttowardf): Set errno on overflow and underflow. * sysdeps/ieee754/flt-32/s_nextafterf.c: Include . (__nextafterf): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include . (__nextafterl): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include . (__nexttoward): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include . (__nexttowardf): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include . (__nextafterl): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include . (__nexttoward): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include . (__nexttowardf): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include . (__nexttoward): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include . (__nexttowardf): Set errno on overflow and underflow. * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include . (__nldbl_nexttowardf): Set errno on overflow and underflow. * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include . (__nextafterl): Set errno on overflow and underflow. * math/libm-test.inc (nextafter_test_data): Do not allow errno setting to be missing on overflow. Add more tests. (nexttoward_test_data): Likewise. * configure.ac (libc_cv_initfini_array): Remove configure test. * configure: Regenerated. 2015-10-29 Joseph Myers [BZ #19189] * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for non-finite argument handle arguments with negative sign. * math/libm-test.inc (j0_test_data): Do not test sign of zero result from infinite argument. (j1_test_data): Likewise. (jn_test_data): Likewise. (y0_test_data): Likewise. (y1_test_data): Likewise. (yn_test_data): Likewise. [BZ #16171] * math/w_remainder.c (drem): Define as weak alias of __remainder. [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder. * math/w_remainderf.c (dremf): Define as weak alias of __remainderf. * math/w_remainderl.c (dreml): Define as weak alias of __remainderl. * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of __remainder. * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of __remainderf. * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of __remainderl. * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as weak alias of remainderl. * sysdeps/ieee754/ldbl-opt/w_remainder.c [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong alias of __remainder. [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol. * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as strong alias of __remainderl. (dreml): Use long_double_symbol. * math/Makefile (libm-calls): Remove w_drem. * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem. (CFLAGS-nldbl-drem.c): Remove variable. (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml. * math/w_drem.c: Remove file. * math/w_dremf.c: Likewise. * math/w_dreml.c: Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise. * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise. * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise. * sysdeps/i386/configure.ac (cpuid.h): Do not test for header. * sysdeps/i386/configure: Regenerated. * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header. * sysdeps/x86_64/configure: Regenerated. * configure.ac (libc_cv_asm_protected_directive): Remove configure test. (libc_cv_visibility_attribute): Likewise. (libc_cv_protected_data): Test unconditionally. (libc_cv_broken_visibility_attribute): Remove configure test. (libc_cv_have_sdata_section): Test unconditionally. * configure: Regenerated. * include/libc-internal.h (libc_max_align_t): Remove typedef. * include/scratch_buffer.h: Include instead of . (struct scratch_buffer): Use max_align_t instead of libc_max_align_t. 2015-10-29 Florian Weimer * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array instead of extend_alloca. Change control flow to avoid a goto. Remove assert which is trivially always true. 2015-10-28 Joseph Myers [BZ #16068] * sysdeps/i386/fpu/fesetenv.c: Include . (FE_ALL_EXCEPT_X86): New macro. (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of FE_ALL_EXCEPT. Ensure precision control is included in floating-point state. Ensure that FE_DFL_ENV and FE_NOMASK_ENV handle "denormal operand exception" and clear FZ and DAZ bits. * sysdeps/x86_64/fpu/fesetenv.c: Include . (FE_ALL_EXCEPT_X86): New macro. (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of FE_ALL_EXCEPT. Ensure precision control is included in floating-point state. Ensure that FE_DFL_ENV and FE_NOMASK_ENV handle "denormal operand exception" and clear FZ and DAZ bits. * sysdeps/x86/fpu/test-fenv-sse-2.c: New file. * sysdeps/x86/fpu/test-fenv-x87.c: Likewise. * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add test-fenv-x87 and test-fenv-sse-2. [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable. * math/libm-test.inc (BUILD_COMPLEX): Remove macro. * math/test-double.h (BUILD_COMPLEX): New macro. * math/test-float.h (BUILD_COMPLEX): Likewise. * math/test-ldouble.h (BUILD_COMPLEX): Likewise. * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN, DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__, __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__. * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN instead of DBL_DENORM_MIN in comment. * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment. * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include . (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__. * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment. 2015-10-28 Florian Weimer [BZ# 19048] * malloc/malloc.c (struct malloc_state): Update comment. Add attached_threads member. (main_arena): Initialize attached_threads. * malloc/arena.c (list_lock): Update comment. (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise. (ptmalloc_unlock_all2): Reinitialize arena reference counts. (deattach_arena): New function. (_int_new_arena): Initialize arena reference count and deattach replaced arena. (get_free_list, reused_arena): Update reference count and deattach replaced arena. (arena_thread_freeres): Update arena reference count and only put unreferenced arenas on the free list. 2015-10-28 Joseph Myers [BZ #19181] * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV. * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise. * math/test-fenv-clear-main.c: New file. * math/test-fenv-clear.c: Likewise. * math/Makefile (tests): Add test-fenv-clear. * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file. * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add test-fenv-clear-sse. [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable. * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG, DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__, __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__. 2015-10-28 Carlos Eduardo Seo * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in static libc. 2015-10-28 Joseph Myers * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure test. * sysdeps/i386/configure: Regenerated. * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure test. * sysdeps/x86_64/configure: Regenerated. * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef. * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add memset-avx2 unconditionally instead of conditionally on [$(config-cflags-avx2) = yes]. * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code unconditional. * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise. * sysdeps/x86_64/multiarch/memset_chk.S [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional to [IS_IN (libc) && SHARED]. 2015-10-27 Joseph Myers * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove configure test. * sysdeps/arm/configure: Regenerated. * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc): Define variable if not already defined. [BZ #17404] * sysdeps/mips/atomic-machine.h [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]: Change conditional to [__GNUC_PREREQ (4, 8) || __mips16]. [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code. * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code unconditional. * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise. [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code unconditional. [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code unconditional. [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * stdlib/setenv.c [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make code unconditional. [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]: Remove conditional code. * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code unconditional. (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code unconditional. (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional. (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional. (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code unconditional. (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional. (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code. * nptl/tst-initializers1-c11.c: New file. * nptl/tst-initializers1-gnu11.c: Likewise. * nptl/Makefile (tests): Add these new tests. (CFLAGS-tst-initializers1-c11.c): New variable. (CFLAGS-tst-initializers1-gnu11.c): Likewise. * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99. * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11 instead of -std=gnu99. * configure.ac (systemtap): Test with -std=gnu11 instead of -std=gnu99. * configure: Regenerated. * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99 in compilation command in comment. * sysdeps/nptl/configure.ac: Remove file. * sysdeps/nptl/configure: Remove generated file. * configure.ac (libc_cv_forced_unwind): Do not substitute. * configure: Regenerated. * config.h.in (HAVE_FORCED_UNWIND): Remove #undef. * config.make.in (have-forced-unwind): Remove variable. * nptl/Makefile [$(have-forced-unwind) = yes]: Make code unconditional. * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise. * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise. (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code. * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional. * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code unconditional. 2015-10-27 Paul E. Murphy [BZ #19174] * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of .skip_lock_out_of_tbegin_retries. * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision): Likewise, and respect a value of try_tbegin <= 0. 2015-10-27 Carlos Eduardo Seo * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case statement. 2015-10-27 Joseph Myers * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove variable. (test-xfail-ISO11/stdalign.h/conform): Likewise. (test-xfail-ISO11/stdnoreturn.h/conform): Likewise. * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead of -std=c1x -D_ISOC11_SOURCE. * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later. * configure: Regenerated. * manual/install.texi (Tools for Compilation): Document requirement for GCC 4.7 or later. * INSTALL: Regenerated. 2015-10-27 Ludovic Courtès * locale/loadlocale.c (_nl_intern_locale_data): Change assertion on CNT to a conditional jump to 'puntdata'. 2015-10-27 Joseph Myers * configure.ac (libc_cv_gcc___thread): Remove configure test. (libc_cv_gcc_tls_model_attr): Likewise. * configure: Regenerated. * configure.ac (libc_cv_need_minus_P): Remove configure test. * configure: Regenerated. * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment. 2015-10-26 Joseph Myers * configure.ac (old_glibc_headers): Remove configure test. * configure: Regenerated. * config.make.in (old-glibc-headers): Remove variable. * Makefile [!$(install_root) && $(old-glibc-headers) = yes] (install): Remove dependency on remove-old-headers. (headers2_0): Remove variable. (remove-old-headers): Remove rule. * configure.ac (libc_cv_dot_text): Remove configure test. (libc_cv_asm_set_directive): Use .text instead of ${libc_cv_dot_text} in configure test. * configure: Regenerated. 2015-10-26 Florian Weimer [BZ #19168] * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. 2015-10-26 Florian Weimer * configure.ac (CXX): Clear the variable if the C++ toolchain does not support static linking. * configure: Regenerate. 2015-10-23 Joseph Myers * math/libm-test.inc (check_float_internal): Do not special-case errors up to 0.5 ulp. * math/auto-libm-test-in: Add more tests of log, log10, log1p and log2. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (MAX_EXP): New macro. (ilogb_test_data): Add more tests. (isfinite_test_data): Likewise. (isgreater_test_data): Likewise. (isgreaterequal_test_data): Likewise. (isinf_test_data): Likewise. (isless_test_data): Likewise. (islessequal_test_data): Likewise. (islessgreater_test_data): Likewise. (isnan_test_data): Likewise. (isnormal_test_data): Likewise. (issignaling_test_data): Likewise. (isunordered_test_data): Likewise. (j0_test_data): Likewise. (j1_test_data): Likewise. (jn_test_data): Likewise. (lgamma_test_data): Likewise. (log_test_data): Likewise. (log10_test_data): Likewise. (log1p_test_data): Likewise. (log2_test_data): Likewise. (logb_test_data): Likewise. * sysdeps/x86_64/fpu/libm-test-ulps: Update. [BZ #18611] * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and avoid excess range and precision on underflow. * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise. * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise. * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise. * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on underflow. * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise. * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise. * math/auto-libm-test-in: Do not allow missing errno setting for tests of j1 and jn. * math/auto-libm-test-out: Regenerated. 2015-10-22 Joseph Myers [BZ #15491] * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore floating-point environment instead of clearing all exceptions. * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise. * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise, merging in "invalid" exceptions from frndint. * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise. * math/test-nearbyint-except.c: New file. * math/Makefile (tests): Add test-nearbyint-except. 2015-10-22 Chris Metcalf * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0. * sysdeps/tile/libm-test-ulps: Regenerated. 2015-10-22 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c (__NR_sync_file_range2): Assume it is always defined. * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c (__NR_sync_file_range): Assume it is always defined. 2015-10-22 Andreas Schwab * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use INTERNAL_SYSCALL_ERRNO. * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise. * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise. * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise. * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise. 2015-10-21 Joseph Myers * io/tst-fcntl.c (fd): New static variable. (do_prepare): Open temporary file here.... (do_test): ...not here. * io/ftwtest-sh: Also trap on exit to remove temporary files. 2015-10-21 H.J. Lu * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5. * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5): Moved before "#ifdef __ASSEMBLER__". 2015-10-21 Joseph Myers [BZ #19156] * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for arguments very close to 0. 2015-10-21 Chris Metcalf * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END) (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining. 2015-10-21 H.J. Lu * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5): New. Defined for GCC 5 and above when not compiling for profiling. Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5. * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c): Renamed to ... (CFLAGS-epoll_pwait.o): This. (CFLAGS-mmap.c): Renamed to ... (CFLAGS-mmap.o): This. (CFLAGS-mmap64.c): Renamed to ... (CFLAGS-mmap64.o): This. (CFLAGS-epoll_pwait.os): New. (CFLAGS-mmap.os): Likewise. (CFLAGS-mmap64.os): Likewise. (CFLAGS-semtimedop.os): Likewise. (CFLAGS-semtimedop.c): Renamed to ... (CFLAGS-semtimedop.o): This. 2015-10-21 Tulio Magno Quites Machado Filho * debug/tst-backtrace4.c (handle_signal): Fix a comment and warning message. 2015-10-21 Joseph Myers * Makeconfig (+gccwarn-c): Add -Wold-style-definition. * Makefile ($(objpfx)c++-types-check.out): Filter out $(+gccwarn-c) instead of -Wstrict-prototypes. * io/fts.c (fts_open): Convert to prototype-style function definition. * malloc/mcheck.c (mcheck): Likewise. (mcheck_pedantic): Likewise. * posix/regexec.c (re_search_2_stub): Likewise. Use internal_function. (re_search_internal): Likewise. * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to prototype-style function definition. * sunrpc/clnt_udp.c (clntudp_call): Likewise. * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise. * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise. (xdr_utmpptr): Likewise. (xdr_utmparr): Likewise. (xdr_utmpidle): Likewise. (xdr_utmpidleptr): Likewise. (xdr_utmpidlearr): Likewise. * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn, log, log10 and log2. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (fmod_test_data): Add more tests. (fpclassify_test_data): Likewise. (frexp_test_data): Likewise. (hypot_test_data): Likewise. (ilogb_test_data): Likewise. 2015-10-20 Joseph Myers * debug/fortify_fail.c (__fortify_fail): Convert to prototype-style function definition. Use internal_function. * libio/genops.c (save_for_backup): Convert to prototype-style function definition. * libio/wgenops.c (save_for_wbackup): Likewise. * login/grantpt.c (grantpt): Likewise. * login/ptsname.c (ptsname): Likewise. (__ptsname_r): Likewise. * login/unlockpt.c (unlockpt): Likewise. * mach/msgserver.c (__mach_msg_server): Likewise. * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise. (__APPEND (FUNC_PREFIX, ecvt)): Likewise. (__APPEND (FUNC_PREFIX, gcvt)): Likewise. * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise. (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise. * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise. * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer): Likewise. * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise. Use internal_function. * nptl/pthread_atfork.c (__pthread_atfork): Convert to prototype-style function definition. * nptl/pthread_create.c (__pthread_create_2_1): Likewise. [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)] (__pthread_create_2_0): Likewise. * nptl/pthread_key_create.c (__pthread_key_create): Likewise. * nptl/register-atfork.c (__register_atfork): Likewise. * posix/glob.c (glob): Likewise. * posix/regcomp.c (re_comp): Likewise. * posix/regexec.c (re_exec): Likewise. * stdlib/add_n.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/cmp.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/divmod_1.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/divrem.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/lshift.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/mod_1.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/mul.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/mul_n.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/rshift.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style function definition. (STRTOF): Likewise. * stdlib/strtod_l.c (__STRTOF): Likewise. * stdlib/strtol.c (INTERNAL (strtol)): Likewise. * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise. (__strtol_l): Likewise. * stdlib/sub_n.c [__STDC__]: Make code unconditional. [!__STDC__]: Remove conditional code. * string/memrchr.c (MEMRCHR): Convert to prototype-style function definition. * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro. [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument type. (__strcasecmp): Convert to prototype-style function definition. * string/strncase.c (LOCALE_PARAM_DECL): Remove macro. [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument type. (__strncasecmp): Convert to prototype-style function definition. * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise. * sunrpc/xdr.c (xdr_union): Likewise. * sunrpc/xdr_array.c (xdr_array): Likewise. * sunrpc/xdr_ref.c (xdr_reference): Likewise. * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise. * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)): Likewise. * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix): Likewise. * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise. * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64): Likewise. * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro. (LOCALE_PARAM_PROTO): Likewise. [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument type. (ut_argument_spec): Remove macro. (ut_argument_spec_iso): Rename to ut_argument_spec. (memcpy_lowcase): Use LOCALE_PARAM in declaration. Convert to prototype-style function definition. (memcpy_uppcase): Likewise. (__strftime_internal): Likewise. (my_strftime): Likewise. * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro. (LOCALE_PARAM_DECL): Likewise. [_LIBC] (LOCALE_PARAM): Include argument type. (__strptime_internal): Convert to prototype-style function definition. (strptime): Likewise. * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro. [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument type. (__wcscasecmp): Convert to prototype-style function definition. * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro. [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument type. (__wcsncasecmp): Convert to prototype-style function definition. * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style function definition. * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise. * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise. * debug/backtracesyms.c (__backtrace_symbols): Likewise. * elf/dl-minimal.c (_itoa): Likewise. * hurd/hurdmalloc.c (malloc): Likewise. (free): Likewise. (realloc): Likewise. * inet/inet6_option.c (inet6_option_space): Likewise. (inet6_option_init): Likewise. (inet6_option_append): Likewise. (inet6_option_alloc): Likewise. (inet6_option_next): Likewise. (inet6_option_find): Likewise. * io/ftw.c (FTW_NAME): Likewise. (NFTW_NAME): Likewise. (NFTW_NEW_NAME): Likewise. (NFTW_OLD_NAME): Likewise. * libio/iofwide.c (_IO_fwide): Likewise. * libio/strops.c (_IO_str_init_static_internal): Likewise. (_IO_str_init_static): Likewise. (_IO_str_init_readonly): Likewise. (_IO_str_overflow): Likewise. (_IO_str_underflow): Likewise. (_IO_str_count): Likewise. (_IO_str_seekoff): Likewise. (_IO_str_pbackfail): Likewise. (_IO_str_finish): Likewise. * libio/wstrops.c (_IO_wstr_init_static): Likewise. (_IO_wstr_overflow): Likewise. (_IO_wstr_underflow): Likewise. (_IO_wstr_count): Likewise. (_IO_wstr_seekoff): Likewise. (_IO_wstr_pbackfail): Likewise. (_IO_wstr_finish): Likewise. * locale/programs/localedef.c (normalize_codeset): Likewise. * locale/programs/locarchive.c (add_locale_to_archive): Likewise. (add_locales_to_archive): Likewise. (delete_locales_from_archive): Likewise. * malloc/malloc.c (__libc_mallinfo): Likewise. * math/gen-auto-libm-tests.c (init_fp_formats): Likewise. * misc/tsearch.c (__tfind): Likewise. * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise. * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate): Likewise. * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize): Likewise. * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched): Likewise. * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam): Likewise. * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy): Likewise. * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise. * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise. * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr): Likewise. * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize): Likewise. * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise. (__pthread_attr_init_2_0): Likewise. * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate): Likewise. * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize): Likewise. * nptl/pthread_attr_setinheritsched.c (__pthread_attr_setinheritsched): Likewise. * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam): Likewise. * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy): Likewise. * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise. * nptl/pthread_attr_setstack.c (__pthread_attr_setstack): Likewise. * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr): Likewise. * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize): Likewise. * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock): Likewise. * nptl/pthread_create.c (__find_in_stack_list): Likewise. * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise. * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to use internal_function. * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to prototype-style function definition. * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise. (__pthread_mutex_cond_lock_adjust): Likewise. Use internal_function. * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Convert to prototype-style function definition. * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise. * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt): Likewise. (__pthread_mutex_unlock): Likewise. * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise. * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise. * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise. * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise. * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise. * nss/makedb.c (process_input): Likewise. * posix/fnmatch.c (__strchrnul): Likewise. (__wcschrnul): Likewise. (fnmatch): Likewise. * posix/fnmatch_loop.c (FCT): Likewise. * posix/glob.c (globfree): Likewise. (__glob_pattern_type): Likewise. (__glob_pattern_p): Likewise. * posix/regcomp.c (re_compile_pattern): Likewise. (re_set_syntax): Likewise. (re_compile_fastmap): Likewise. (regcomp): Likewise. (regerror): Likewise. (regfree): Likewise. * posix/regexec.c (regexec): Likewise. (re_match): Likewise. (re_search): Likewise. (re_match_2): Likewise. (re_search_2): Likewise. (re_search_stub): Likewise. Use internal_function (re_copy_regs): Likewise. (re_set_registers): Convert to prototype-style function definition. (prune_impossible_nodes): Likewise. Use internal_function. * resolv/inet_net_pton.c (inet_net_pton): Convert to prototype-style function definition. (inet_net_pton_ipv4): Likewise. * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise. * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise. * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise. * sysdeps/pthread/timer_delete.c (timer_delete): Likewise. * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise. Make variadic. * time/strptime_l.c (localtime_r): Convert to prototype-style function definition. * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise. * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise. * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise. * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise. * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function definition. (_ufc_doit_r): Likewise. * crypt/crypt_util.c (_ufc_copymem): Likewise. (_ufc_output_conversion_r): Likewise. * inet/inet_mkadr.c (__inet_makeaddr): Likewise. * inet/rcmd.c (rcmd_af): Likewise. (rcmd): Likewise. (ruserok_af): Likewise. (ruserok): Likewise. (ruserok2_sa): Likewise. (ruserok_sa): Likewise. (iruserok_af): Likewise. (iruserok): Likewise. (__ivaliduser): Likewise. (__validuser2_sa): Likewise. * inet/rexec.c (rexec_af): Likewise. (rexec): Likewise. * inet/ruserpass.c (ruserpass): Likewise. * locale/programs/xmalloc.c (xcalloc): Likewise. * manual/examples/timeval_subtract.c (timeval_subtract): Likewise. * math/w_drem.c (__drem): Likewise. * math/w_dremf.c (__dremf): Likewise. * math/w_dreml.c (__dreml): Likewise. * misc/daemon.c (daemon): Likewise. * resolv/res_debug.c (p_fqnname): Likewise. * stdlib/div.c (div): Likewise. * string/memcmp.c (memcmp_bytes): Likewise. * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise. * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise. * crypt/cert.c (main): Convert to prototype-style function definition. * io/pipe.c (__pipe): Likewise. * io/pipe2.c (__pipe2): Likewise. * misc/futimesat.c (futimesat): Likewise. * misc/utimes.c (__utimes): Likewise. * posix/execve.c (__execve): Likewise. * posix/execvp.c (execvp): Likewise. * posix/execvpe.c (__execvpe): Likewise. * posix/fexecve.c (fexecve): Likewise. * socket/socketpair.c (socketpair): Likewise. * stdlib/drand48-iter.c (__drand48_iterate): Likewise. * stdlib/erand48.c (erand48): Likewise. * stdlib/erand48_r.c (__erand48_r): Likewise. * stdlib/jrand48.c (jrand48): Likewise. * stdlib/jrand48_r.c (__jrand48_r): Likewise. * stdlib/lcong48.c (lcong48): Likewise. * stdlib/lcong48_r.c (__lcong48_r): Likewise. * stdlib/nrand48.c (nrand48): Likewise. * stdlib/nrand48_r.c (__nrand48_r): Likewise. * stdlib/seed48.c (seed48): Likewise. * stdlib/seed48_r.c (__seed48_r): Likewise. * sysdeps/mach/hurd/execve.c (__execve): Likewise. * sysdeps/mach/hurd/utimes.c (__utimes): Likewise. * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise. 2015-10-19 Joseph Myers * configure.ac (libc_cv_asm_unique_object): Remove configure test. * configure: Regenerated. * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef. * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code unconditional. * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise. * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise. * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise. (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code. * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code unconditional. * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise. * posix/Makefile (CFLAGS-regex.c): Remove variable. * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes. * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style function definition. * crypt/crypt_util.c (__encrypt_r): Likewise. * libio/genops.c (_IO_no_init): Likewise. * libio/iofopncook.c (_IO_fopencookie): Likewise. (_IO_old_fopencookie): Likewise. * libio/iofwrite_u.c (fwrite_unlocked): Likewise. * libio/iogetline.c (_IO_getline): Likewise. (_IO_getline_info): Likewise. * libio/iogetwline.c (_IO_getwline): Likewise. (_IO_getwline_info): Likewise. * libio/vsnprintf.c (_IO_vsnprintf): Likewise. * libio/vswprintf.c (_IO_vswprintf): Likewise. * locale/programs/simple-hash.c (insert_entry_2): Likewise. (find_entry): Likewise. (iterate_table): Likewise. (lookup): Likewise. * login/forkpty.c (forkpty): Likewise. * misc/hsearch_r.c (__hsearch_r): Likewise. * misc/select.c (__select): Likewise. * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore): Likewise. * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0): Likewise. * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0): Likewise. * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise. * nptl/pthread_barrierattr_getpshared.c (pthread_barrierattr_getpshared): Likewise. * nptl/pthread_getschedparam.c (__pthread_getschedparam): Likewise. * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Likewise. * nptl/pthread_mutexattr_getprioceiling.c (pthread_mutexattr_getprioceiling): Likewise. * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise. * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise. * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise. * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise. * socket/recvfrom.c (__recvfrom): Likewise. * socket/sendto.c (__sendto): Likewise. * socket/setsockopt.c (__setsockopt): Likewise. * stdio-common/_itoa.c (_itoa): Likewise. * stdio-common/_itowa.c (_itowa): Likewise. * stdio-common/reg-printf.c (__register_printf_specifier): Likewise. (__register_printf_function): Likewise. * stdio-common/tempname.c (__path_search): Likewise. * stdlib/addmul_1.c (mpn_addmul_1): Likewise. * stdlib/mul_1.c (mpn_mul_1): Likewise. * stdlib/random_r.c (__initstate_r): Likewise. * stdlib/setenv.c (__add_to_environ): Likewise. * stdlib/submul_1.c (mpn_submul_1): Likewise. * streams/getpmsg.c (getpmsg): Likewise. * streams/putmsg.c (putmsg): Likewise. * streams/putpmsg.c (putpmsg): Likewise. * sunrpc/clnt_raw.c (clntraw_call): Likewise. * sunrpc/clnt_tcp.c (clnttcp_call): Likewise. * sunrpc/clnt_udp.c (clntudp_create): Likewise. * sunrpc/clnt_unix.c (clntunix_call): Likewise. * sunrpc/pm_getport.c (pmap_getport): Likewise. * sunrpc/svc_udp.c (cache_get): Likewise. * sunrpc/xdr_array.c (xdr_vector): Likewise. * sysdeps/mach/hurd/getcwd.c (__canonicalize_directory_name_internal): Likewise. * sysdeps/mach/hurd/pselect.c (__pselect): Likewise. * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise. * sysdeps/mach/hurd/select.c (__select): Likewise. * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise. * sysdeps/pthread/timer_settime.c (timer_settime): Likewise. * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise. * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise. * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Likewise. * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise. * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime): Likewise. * sysvipc/semtimedop.c (semtimedop): Likewise. * time/setitimer.c (__setitimer): Likewise. * time/strftime_l.c (emacs_strftime): Likewise. 2015-10-19 Mike Frysinger * config.make.in (have-ssp): Delete. (stack-protector): New variable. * configure.ac: Delete libc_cv_ssp export. Add libc_cv_ssp_strong cache test for -fstack-protector-strong. Export stack_protector to the best ssp flag. * configure: Regenerated. * login/Makefile (pt_chown-cflags): Always add $(stack-protector). * nscd/Makefile (CFLAGS-nscd): Likewise. * resolv/Makefile (CFLAGS-libresolv): Likewise. 2015-10-16 H.J. Lu [BZ #19122] * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add attribute_hidden. 2015-10-19 Tulio Magno Quites Machado Filho [BZ #18743] * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this code to... (ELIDE_LOCK): ...here. (__get_new_count): New function with part of the code from __elide_lock that updates the value of adapt_count after a transaction abort. (__elided_trylock): Moved this code to... (ELIDE_TRYLOCK): ...here. 2015-10-19 Mike Frysinger * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing. * configure: Regenerate. * INSTALL: Regenerate. * manual/install.texi (--disable-timezone-tools): Use @theglibc{} and tweak grammar. 2015-10-19 Geoffrey Thomas * login/programs/pt_chown.c: Include signal.h (main): Clear any signal mask from the parent process. 2015-10-19 Joseph Myers * configure.ac (libc_cv_gnu89_inline): Remove configure test. * configure: Regenerated. * config.make.in (gnu89-inline-CFLAGS): Remove variable. * Makeconfig (CFLAGS): Use -fgnu89-inline instead of $(gnu89-inline-CFLAGS). * configure.ac (libc_cv_asm_weak_directive): Remove configure test. (libc_cv_asm_weakext_directive): Likewise. * configure: Regenerated. * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef. (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise. * include/libc-symbols.h [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove #error. [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code. [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional. * sysdeps/arm/backtrace.c (__backtrace): Convert to prototype-style function definition. * sysdeps/i386/backtrace.c (__backtrace): Likewise. * sysdeps/i386/ffs.c (__ffs): Likewise. * sysdeps/i386/i686/ffs.c (__ffs): Likewise. * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise. * sysdeps/m68k/ffs.c (__ffs): Likewise. * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise. * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise. * sysdeps/mach/adjtime.c (__adjtime): Likewise. * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise. * sysdeps/mach/hurd/_exit.c (_exit): Likewise. * sysdeps/mach/hurd/access.c (__access): Likewise. * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise. * sysdeps/mach/hurd/chdir.c (__chdir): Likewise. * sysdeps/mach/hurd/chmod.c (__chmod): Likewise. * sysdeps/mach/hurd/chown.c (__chown): Likewise. * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise. (cthread_getspecific): Likewise. (cthread_setspecific): Likewise. (__libc_getspecific): Likewise. * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise. * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise. * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise. * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise. * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise. * sysdeps/mach/hurd/fchown.c (__fchown): Likewise. * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise. * sysdeps/mach/hurd/flock.c (__flock): Likewise. * sysdeps/mach/hurd/fsync.c (fsync): Likewise. * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise. * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise. * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise. * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise. * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise. * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise. * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise. * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise. * sysdeps/mach/hurd/group_member.c (__group_member): Likewise. * sysdeps/mach/hurd/isatty.c (__isatty): Likewise. * sysdeps/mach/hurd/lchown.c (__lchown): Likewise. * sysdeps/mach/hurd/link.c (__link): Likewise. * sysdeps/mach/hurd/linkat.c (linkat): Likewise. * sysdeps/mach/hurd/listen.c (__listen): Likewise. * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise. * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise. * sysdeps/mach/hurd/openat.c (__openat): Likewise. * sysdeps/mach/hurd/poll.c (__poll): Likewise. * sysdeps/mach/hurd/readlink.c (__readlink): Likewise. * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise. * sysdeps/mach/hurd/recv.c (__recv): Likewise. * sysdeps/mach/hurd/rename.c (rename): Likewise. * sysdeps/mach/hurd/renameat.c (renameat): Likewise. * sysdeps/mach/hurd/revoke.c (revoke): Likewise. * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise. * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise. * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise. * sysdeps/mach/hurd/send.c (__send): Likewise. * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise. * sysdeps/mach/hurd/setegid.c (setegid): Likewise. * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise. * sysdeps/mach/hurd/setgid.c (__setgid): Likewise. * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise. * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise. * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise. * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise. * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise. * sysdeps/mach/hurd/setregid.c (__setregid): Likewise. * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise. * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise. * sysdeps/mach/hurd/setuid.c (__setuid): Likewise. * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise. * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise. * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise. * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise. * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise. * sysdeps/mach/hurd/socket.c (__socket): Likewise. * sysdeps/mach/hurd/symlink.c (__symlink): Likewise. * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise. * sysdeps/mach/hurd/telldir.c (telldir): Likewise. * sysdeps/mach/hurd/truncate.c (__truncate): Likewise. * sysdeps/mach/hurd/umask.c (__umask): Likewise. * sysdeps/mach/hurd/unlink.c (__unlink): Likewise. * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise. * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise. * sysdeps/posix/alarm.c (alarm): Likewise. * sysdeps/posix/cuserid.c (cuserid): Likewise. * sysdeps/posix/dirfd.c (dirfd): Likewise. * sysdeps/posix/dup.c (__dup): Likewise. * sysdeps/posix/dup2.c (__dup2): Likewise. * sysdeps/posix/euidaccess.c (euidaccess): Likewise. (main): Likewise. * sysdeps/posix/flock.c (__flock): Likewise. * sysdeps/posix/fpathconf.c (__fpathconf): Likewise. * sysdeps/posix/getcwd.c (__getcwd): Likewise. * sysdeps/posix/gethostname.c (__gethostname): Likewise. * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise. * sysdeps/posix/isatty.c (__isatty): Likewise. * sysdeps/posix/killpg.c (killpg): Likewise. * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise. * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise. * sysdeps/posix/raise.c (raise): Likewise. * sysdeps/posix/remove.c (remove): Likewise. * sysdeps/posix/rename.c (rename): Likewise. * sysdeps/posix/rewinddir.c (__rewinddir): Likewise. * sysdeps/posix/seekdir.c (seekdir): Likewise. * sysdeps/posix/sigblock.c (__sigblock): Likewise. * sysdeps/posix/sigignore.c (sigignore): Likewise. * sysdeps/posix/sigintr.c (siginterrupt): Likewise. * sysdeps/posix/signal.c (__bsd_signal): Likewise. * sysdeps/posix/sigset.c (sigset): Likewise. * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise. * sysdeps/posix/sysconf.c (__sysconf): Likewise. * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise. * sysdeps/posix/time.c (time): Likewise. * sysdeps/posix/ttyname.c (getttyname): Likewise. (ttyname): Likewise. * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise. * sysdeps/posix/utime.c (utime): Likewise. * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise. * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdeps/pthread/aio_error.c (aio_error): Likewise. * sysdeps/pthread/aio_read.c (aio_read): Likewise. * sysdeps/pthread/aio_read64.c (aio_read64): Likewise. * sysdeps/pthread/aio_write.c (aio_write): Likewise. * sysdeps/pthread/aio_write64.c (aio_write64): Likewise. * sysdeps/pthread/flockfile.c (__flockfile): Likewise. * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise. * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise. * sysdeps/pthread/timer_create.c (timer_create): Likewise. * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise. * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise. * sysdeps/s390/ffs.c (__ffs): Likewise. * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/sparc/nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise. * sysdeps/sparc/nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise. * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise. * sysdeps/sparc/sparc32/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise. * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise. * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise. (memcmp_not_common_alignment): Likewise. (MEMCMP): Likewise. * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise. (_wordcopy_fwd_dest_aligned): Likewise. (_wordcopy_bwd_aligned): Likewise. (_wordcopy_bwd_dest_aligned): Likewise. * sysdeps/unix/bsd/ftime.c (ftime): Likewise. * sysdeps/unix/bsd/gtty.c (gtty): Likewise. * sysdeps/unix/bsd/stty.c (stty): Likewise. * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise. * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise. * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise. * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise. * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise. * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise. * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise. * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise. * sysdeps/unix/bsd/wait3.c (__wait3): Likewise. * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise. * sysdeps/unix/sockatmark.c (sockatmark): Likewise. * sysdeps/unix/stime.c (stime): Likewise. * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise. * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise. Use internal_function. * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction): Convert to prototype-style function definition. * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise. * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise. * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise. * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Likewise. Use internal_function. * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to prototype-style function definition * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Likewise. (__getlogin_r): Likewise. * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c (__pthread_cond_broadcast): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c (__pthread_cond_init): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c (__pthread_cond_signal): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c (__pthread_cond_wait): Likewise. * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise. * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise. * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c (__ftruncate64): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c (truncate64): Likewise. * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise. * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np): Likewise. * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np): Likewise. * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask): Likewise. * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue): Likewise. * sysdeps/unix/sysv/linux/raise.c (raise): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/semget.c (semget): Likewise. * sysdeps/unix/sysv/linux/semop.c (semop): Likewise. * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise. * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise. * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise. * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise. * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise. * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise. (cfgetispeed): Likewise. (cfsetospeed): Likewise. (cfsetispeed): Likewise. * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise. * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise. * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise. * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise. * sysdeps/unix/sysv/linux/time.c (time): Likewise. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise. * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun): Likewise. * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Likewise. * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/x86_64/backtrace.c (__backtrace): Likewise. 2015-10-17 Florian Weimer sunrpc: Rewrite with explicit TLS access using __thread. * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable. (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars directly. (__rpc_thread_variables): Access thread_rpc_vars directly. Eliminate redundant assignment of the tvp variable. 2015-10-17 Florian Weimer malloc: Rewrite with explicit TLS access using __thread. * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create) (tsd_setspecific, tsd_getspecific): Remove. * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create) (tsd_setspecific, tsd_getspecific): Likewise. * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create) (tsd_setspecific, tsd_getspecific): Likewise. * malloc/arena.c (thread_arena): New TLS variable. (arena_key): Remove variable. (arena_get): Use thread_arena. (arena_lookup): Remove macro. (malloc_atfork, free_atfork, ptmalloc_lock_all) (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init) (_int_new_arena, get_free_list, reused_arena) (arena_thread_freeres): Use thread_arena. * manual/memory.texi (Basic Allocation): Remove arena_lookup, tsd_getspecific, tsd_setspecific from safety annotations. (Allocating Cleared Space): Remove arena_lookup from safety annotations. 2015-10-17 Florian Weimer * stdio-common/vfprintf.c (printf_positional): Rewrite to use struct scratch_buffer instead of extend_alloca. 2015-10-17 Florian Weimer * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SOCK_CLOEXEC): Remove. * include/sys/socket.h (__have_sock_cloexec): Remove declaration. (__have_paccept): Remove unused macro. * include/unistd.h (__have_sock_cloexec): Remove declaration. * misc/syslog.c (openlog_internal): Remove fallback code for !__ASSUME_SOCK_CLOEXEC. * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for missing SOCK_CLOEXEC. * nscd/connections.c (have_sock_cloexec): Remove definition. (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC. * nscd/nscd_helper.c (open_socket): Remove fallback code for !__ASSUME_SOCK_CLOEXEC. * resolv/res_send.c (__have_o_nonblock): Remove definition. (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC. * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove definition. * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback code for !__ASSUME_SOCK_CLOEXEC. 2015-10-17 Florian Weimer [BZ #18982] * manual/stdio.texi (Variable Arguments Output): Add portability note, explaining that vfprintf clobbers the va_list pointer. 2015-10-16 Joseph Myers * math/libm-test.inc (fabs_test_data): Add more tests. (fdim_test_data): Likewise. (fma_test_data): Likewise. (fmax_test_data): Likewise. (fmin_test_data): Likewise. (fmod_test_data): Likewise. 2015-10-16 Steve Ellcey * sysdeps/mips/memcpy.S (memcpy): Add word copies for small aligned data. 2015-10-16 Joseph Myers * math/libm-test.inc (ceil_test_data): Add more tests and more expectations for "inexact". (floor_test_data): Add more tests. (round_test_data): Likewise. (trunc_test_data): Likewise. * crypt/cert.c (good_bye): Convert to prototype-style function definition. (get8): Likewise. (put8): Likewise. * crypt/crypt-entry.c (crypt): Likewise. (__fcrypt): Likewise. * crypt/crypt_util.c (_ufc_prbits): Likewise. (_ufc_set_bits): Likewise. (_ufc_clearmem): Likewise. (__init_des_r): Likewise. (shuffle_sb): Likewise. (shuffle_sb): Likewise. (_ufc_setup_salt_r): Likewise. (_ufc_mk_keytab_r): Likewise. (_ufc_dofinalperm_r): Likewise. (encrypt): Likewise. (__setkey_r): Likewise. (setkey): Likewise. * crypt/md5.c (md5_init_ctx): Likewise. (md5_read_ctx): Likewise. (md5_finish_ctx): Likewise. (md5_stream): Likewise. (md5_buffer): Likewise. (md5_process_bytes): Likewise. * crypt/sha256.c (__sha256_init_ctx): Likewise. (__sha256_finish_ctx): Likewise. (__sha256_process_bytes): Likewise. * crypt/sha512.c (__sha512_init_ctx): Likewise. (__sha512_finish_ctx): Likewise. (__sha512_process_bytes): Likewise. * ctype/isctype.c (__isctype): Likewise. * debug/backtrace.c (__backtrace): Likewise. * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise. * debug/fgets_chk.c (__fgets_chk): Likewise. * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise. * debug/memcpy_chk.c (__memcpy_chk): Likewise. * debug/memmove_chk.c (MEMMOVE_CHK): Likewise. * debug/mempcpy_chk.c (__mempcpy_chk): Likewise. * debug/memset_chk.c (__memset_chk): Likewise. * debug/strcat_chk.c (__strcat_chk): Likewise. * debug/strncat_chk.c (__strncat_chk): Likewise. * debug/strncpy_chk.c (__strncpy_chk): Likewise. * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise. * dirent/dirfd.c (dirfd): Likewise. * dirent/getdents.c (__getdirentries): Likewise. * dirent/getdents64.c (getdirentries64): Likewise. * dirent/rewinddir.c (__rewinddir): Likewise. * dirent/seekdir.c (seekdir): Likewise. * dirent/telldir.c (telldir): Likewise. * elf/sln.c (makesymlinks): Likewise. (makesymlink): Likewise. * gmon/gmon.c (__moncontrol): Likewise. (__monstartup): Likewise. (write_hist): Likewise. (write_call_graph): Likewise. (write_bb_counts): Likewise. * grp/setgroups.c (setgroups): Likewise. * inet/inet_lnaof.c (inet_lnaof): Likewise. * inet/inet_net.c (inet_network): Likewise. * inet/inet_netof.c (inet_netof): Likewise. * inet/rcmd.c (rresvport_af): Likewise. (rresvport): Likewise. * io/access.c (__access): Likewise. * io/chdir.c (__chdir): Likewise. * io/chmod.c (__chmod): Likewise. * io/chown.c (__chown): Likewise. * io/close.c (__close): Likewise. * io/creat.c (creat): Likewise. * io/creat64.c (creat64): Likewise. * io/dup.c (__dup): Likewise. * io/dup2.c (__dup2): Likewise. * io/dup3.c (__dup3): Likewise. * io/euidaccess.c (__euidaccess): Likewise. * io/faccessat.c (faccessat): Likewise. * io/fchmod.c (__fchmod): Likewise. * io/fchmodat.c (fchmodat): Likewise. * io/fchown.c (__fchown): Likewise. * io/fchownat.c (fchownat): Likewise. * io/fcntl.c (__fcntl): Likewise. * io/flock.c (__flock): Likewise. * io/fts.c (fts_load): Likewise. (fts_close): Likewise. (fts_read): Likewise. (fts_set): Likewise. (fts_children): Likewise. (fts_build): Likewise. (fts_stat): Likewise. (fts_sort): Likewise. (fts_alloc): Likewise. (fts_lfree): Likewise. (fts_palloc): Likewise. (fts_padjust): Likewise. (fts_maxarglen): Likewise. (fts_safe_changedir): Likewise. * io/getwd.c (getwd): Likewise. * io/isatty.c (__isatty): Likewise. * io/lchown.c (__lchown): Likewise. * io/link.c (__link): Likewise. * io/linkat.c (linkat): Likewise. * io/lseek.c (__libc_lseek): Likewise. * io/mkdir.c (__mkdir): Likewise. * io/mkdirat.c (mkdirat): Likewise. * io/mkfifo.c (mkfifo): Likewise. * io/mkfifoat.c (mkfifoat): Likewise. * io/open.c (__libc_open): Likewise. * io/open64.c (__libc_open64): Likewise. * io/readlink.c (__readlink): Likewise. * io/readlinkat.c (readlinkat): Likewise. * io/rmdir.c (__rmdir): Likewise. * io/symlink.c (__symlink): Likewise. * io/symlinkat.c (symlinkat): Likewise. * io/ttyname.c (ttyname): Likewise. * io/ttyname_r.c (__ttyname_r): Likewise. * io/umask.c (__umask): Likewise. * io/unlink.c (__unlink): Likewise. * io/unlinkat.c (unlinkat): Likewise. * io/utime.c (utime): Likewise. * libio/clearerr.c (clearerr): Likewise. * libio/clearerr_u.c (clearerr_unlocked): Likewise. * libio/feof.c (_IO_feof): Likewise. * libio/feof_u.c (feof_unlocked): Likewise. * libio/ferror.c (_IO_ferror): Likewise. * libio/ferror_u.c (ferror_unlocked): Likewise. * libio/filedoalloc.c (_IO_file_doallocate): Likewise. * libio/fileno.c (__fileno): Likewise. * libio/fputc.c (fputc): Likewise. * libio/fputc_u.c (fputc_unlocked): Likewise. * libio/fputwc.c (fputwc): Likewise. * libio/fputwc_u.c (fputwc_unlocked): Likewise. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. * libio/fseek.c (fseek): Likewise. * libio/fseeko.c (fseeko): Likewise. * libio/fseeko64.c (fseeko64): Likewise. * libio/ftello.c (__ftello): Likewise. * libio/ftello64.c (ftello64): Likewise. * libio/fwide.c (fwide): Likewise. * libio/genops.c (_IO_un_link): Likewise. (_IO_link_in): Likewise. (_IO_least_marker): Likewise. (_IO_switch_to_main_get_area): Likewise. (_IO_switch_to_backup_area): Likewise. (_IO_switch_to_get_mode): Likewise. (_IO_free_backup_area): Likewise. (_IO_switch_to_put_mode): Likewise. (__overflow): Likewise. (__underflow): Likewise. (__uflow): Likewise. (_IO_setb): Likewise. (_IO_doallocbuf): Likewise. (_IO_default_underflow): Likewise. (_IO_default_uflow): Likewise. (_IO_default_xsputn): Likewise. (_IO_sgetn): Likewise. (_IO_default_xsgetn): Likewise. (_IO_sync): Likewise. (_IO_default_setbuf): Likewise. (_IO_default_seekpos): Likewise. (_IO_default_doallocate): Likewise. (_IO_init): Likewise. (_IO_old_init): Likewise. (_IO_default_sync): Likewise. (_IO_default_finish): Likewise. (_IO_default_seekoff): Likewise. (_IO_sputbackc): Likewise. (_IO_sungetc): Likewise. (_IO_set_column): Likewise. (_IO_set_column): Likewise. (_IO_adjust_column): Likewise. (_IO_get_column): Likewise. (_IO_init_marker): Likewise. (_IO_remove_marker): Likewise. (_IO_marker_difference): Likewise. (_IO_marker_delta): Likewise. (_IO_seekmark): Likewise. (_IO_unsave_markers): Likewise. (_IO_nobackup_pbackfail): Likewise. (_IO_default_pbackfail): Likewise. (_IO_default_seek): Likewise. (_IO_default_stat): Likewise. (_IO_default_read): Likewise. (_IO_default_write): Likewise. (_IO_default_showmanyc): Likewise. (_IO_default_imbue): Likewise. (_IO_iter_next): Likewise. (_IO_iter_file): Likewise. * libio/getc.c (_IO_getc): Likewise. * libio/getwc.c (_IO_getwc): Likewise. * libio/iofclose.c (_IO_new_fclose): Likewise. * libio/iofdopen.c (_IO_new_fdopen): Likewise. * libio/iofflush.c (_IO_fflush): Likewise. * libio/iofflush_u.c (__fflush_unlocked): Likewise. * libio/iofgetpos.c (_IO_new_fgetpos): Likewise. * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise. * libio/iofgets.c (_IO_fgets): Likewise. * libio/iofgets_u.c (__fgets_unlocked): Likewise. * libio/iofgetws.c (fgetws): Likewise. * libio/iofgetws_u.c (fgetws_unlocked): Likewise. * libio/iofopen64.c (_IO_fopen64): Likewise. * libio/iofopncook.c (_IO_cookie_read): Likewise. (_IO_cookie_write): Likewise. (_IO_cookie_seek): Likewise. (_IO_cookie_close): Likewise. (_IO_cookie_seekoff): Likewise. (_IO_old_cookie_seek): Likewise. * libio/iofputs.c (_IO_fputs): Likewise. * libio/iofputs_u.c (__fputs_unlocked): Likewise. * libio/iofputws.c (fputws): Likewise. * libio/iofputws_u.c (fputws_unlocked): Likewise. * libio/iofread.c (_IO_fread): Likewise. * libio/iofread_u.c (__fread_unlocked): Likewise. * libio/iofsetpos.c (_IO_new_fsetpos): Likewise. * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise. * libio/ioftell.c (_IO_ftell): Likewise. * libio/iofwrite.c (_IO_fwrite): Likewise. * libio/iogetdelim.c (_IO_getdelim): Likewise. * libio/iogets.c (_IO_gets): Likewise. * libio/iopadn.c (_IO_padn): Likewise. * libio/iopopen.c (_IO_new_proc_open): Likewise. (_IO_new_popen): Likewise. (_IO_new_proc_close): Likewise. * libio/ioputs.c (_IO_puts): Likewise. * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise. (_IO_seekoff): Likewise. * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise. (_IO_seekpos): Likewise. * libio/iosetbuffer.c (_IO_setbuffer): Likewise. * libio/iosetvbuf.c (_IO_setvbuf): Likewise. * libio/ioungetc.c (_IO_ungetc): Likewise. * libio/ioungetwc.c (ungetwc): Likewise. * libio/iovdprintf.c (_IO_vdprintf): Likewise. * libio/iovsscanf.c (_IO_vsscanf): Likewise. * libio/iowpadn.c (_IO_wpadn): Likewise. * libio/libc_fatal.c (__libc_fatal): Likewise. * libio/memstream.c (__open_memstream): Likewise. (_IO_mem_sync): Likewise. (_IO_mem_finish): Likewise. * libio/oldfileops.c (_IO_old_file_init): Likewise. (_IO_old_file_close_it): Likewise. (_IO_old_file_finish): Likewise. (_IO_old_file_fopen): Likewise. (_IO_old_file_attach): Likewise. (_IO_old_file_setbuf): Likewise. (_IO_old_do_write): Likewise. (old_do_write): Likewise. (_IO_old_file_underflow): Likewise. (_IO_old_file_overflow): Likewise. (_IO_old_file_sync): Likewise. (_IO_old_file_seekoff): Likewise. (_IO_old_file_write): Likewise. (_IO_old_file_xsputn): Likewise. * libio/oldiofclose.c (_IO_old_fclose): Likewise. * libio/oldiofdopen.c (_IO_old_fdopen): Likewise. * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise. * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise. * libio/oldiofopen.c (_IO_old_fopen): Likewise. * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise. * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise. * libio/oldiopopen.c (_IO_old_proc_open): Likewise. (_IO_old_popen): Likewise. (_IO_old_proc_close): Likewise. * libio/oldpclose.c (__old_pclose): Likewise. * libio/pclose.c (__new_pclose): Likewise. * libio/peekc.c (_IO_peekc_locked): Likewise. * libio/putc.c (_IO_putc): Likewise. * libio/putc_u.c (putc_unlocked): Likewise. * libio/putchar.c (putchar): Likewise. * libio/putchar_u.c (putchar_unlocked): Likewise. * libio/putwc.c (putwc): Likewise. * libio/putwc_u.c (putwc_unlocked): Likewise. * libio/putwchar.c (putwchar): Likewise. * libio/putwchar_u.c (putwchar_unlocked): Likewise. * libio/rewind.c (rewind): Likewise. * libio/setbuf.c (setbuf): Likewise. * libio/setlinebuf.c (setlinebuf): Likewise. * libio/vasprintf.c (_IO_vasprintf): Likewise. * libio/vscanf.c (_IO_vscanf): Likewise. * libio/vsnprintf.c (_IO_strn_overflow): Likewise. * libio/vswprintf.c (_IO_wstrn_overflow): Likewise. * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise. * libio/wgenops.c (_IO_least_wmarker): Likewise. (_IO_switch_to_main_wget_area): Likewise. (_IO_switch_to_wbackup_area): Likewise. (_IO_wsetb): Likewise. (_IO_wdefault_pbackfail): Likewise. (_IO_wdefault_finish): Likewise. (_IO_wdefault_uflow): Likewise. (__woverflow): Likewise. (__wuflow): Likewise. (__wunderflow): Likewise. (_IO_wdefault_xsputn): Likewise. (_IO_wdefault_xsgetn): Likewise. (_IO_wdoallocbuf): Likewise. (_IO_wdefault_doallocate): Likewise. (_IO_switch_to_wget_mode): Likewise. (_IO_free_wbackup_area): Likewise. (_IO_switch_to_wput_mode): Likewise. (_IO_sputbackwc): Likewise. (_IO_sungetwc): Likewise. (_IO_adjust_wcolumn): Likewise. (_IO_init_wmarker): Likewise. (_IO_wmarker_delta): Likewise. (_IO_seekwmark): Likewise. (_IO_unsave_wmarkers): Likewise. * libio/wmemstream.c (open_wmemstream): Likewise. (_IO_wmem_sync): Likewise. (_IO_wmem_finish): Likewise. * locale/nl_langinfo.c (nl_langinfo): Likewise. * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise. * locale/programs/simple-hash.c (init_hash): Likewise. (delete_hash): Likewise. (insert_entry): Likewise. (set_entry): Likewise. (next_prime): Likewise. (is_prime): Likewise. * locale/programs/xmalloc.c (fixup_null_alloc): Likewise. (xmalloc): Likewise. (xrealloc): Likewise. * locale/programs/xstrdup.c (xstrdup): Likewise. * localedata/collate-test.c (xstrcoll): Likewise. * localedata/xfrm-test.c (xstrcmp): Likewise. * login/getlogin_r.c (__getlogin_r): Likewise. * login/getpt.c (__posix_openpt): Likewise. * login/login_tty.c (login_tty): Likewise. * login/setlogin.c (setlogin): Likewise. * mach/msg-destroy.c (__mach_msg_destroy): Likewise. (mach_msg_destroy_port): Likewise. (mach_msg_destroy_memory): Likewise. * malloc/mcheck.c (flood): Likewise. * misc/acct.c (acct): Likewise. * misc/brk.c (__brk): Likewise. * misc/chflags.c (chflags): Likewise. * misc/chroot.c (chroot): Likewise. * misc/fchflags.c (fchflags): Likewise. * misc/fstab.c (getfsspec): Likewise. (getfsfile): Likewise. * misc/fsync.c (fsync): Likewise. * misc/ftruncate.c (__ftruncate): Likewise. * misc/ftruncate64.c (__ftruncate64): Likewise. * misc/getdomain.c (getdomainname): Likewise. (getdomainname): Likewise. * misc/gethostname.c (__gethostname): Likewise. * misc/getpass.c (getpass): Likewise. * misc/getttyent.c (skip): Likewise. (value): Likewise. * misc/gtty.c (gtty): Likewise. * misc/hsearch.c (hsearch): Likewise. (hcreate): Likewise. * misc/hsearch_r.c (__hcreate_r): Likewise. (__hdestroy_r): Likewise. * misc/ioctl.c (__ioctl): Likewise. * misc/mkdtemp.c (mkdtemp): Likewise. * misc/mkostemp.c (mkostemp): Likewise. * misc/mkostemp64.c (mkostemp64): Likewise. * misc/mkostemps.c (mkostemps): Likewise. * misc/mkostemps64.c (mkostemps64): Likewise. * misc/mkstemp.c (mkstemp): Likewise. * misc/mkstemp64.c (mkstemp64): Likewise. * misc/mkstemps.c (mkstemps): Likewise. * misc/mkstemps64.c (mkstemps64): Likewise. * misc/mktemp.c (__mktemp): Likewise. * misc/preadv.c (preadv): Likewise. * misc/preadv64.c (preadv64): Likewise. * misc/pwritev.c (pwritev): Likewise. * misc/pwritev64.c (pwritev64): Likewise. * misc/readv.c (__readv): Likewise. * misc/revoke.c (revoke): Likewise. * misc/setdomain.c (setdomainname): Likewise. * misc/setegid.c (setegid): Likewise. * misc/seteuid.c (seteuid): Likewise. * misc/sethostid.c (sethostid): Likewise. * misc/sethostname.c (sethostname): Likewise. * misc/setregid.c (__setregid): Likewise. * misc/setreuid.c (__setreuid): Likewise. * misc/sstk.c (sstk): Likewise. * misc/stty.c (stty): Likewise. * misc/syscall.c (syscall): Likewise. * misc/syslog.c (setlogmask): Likewise. * misc/truncate.c (__truncate): Likewise. * misc/truncate64.c (truncate64): Likewise. * misc/ualarm.c (ualarm): Likewise. * misc/usleep.c (usleep): Likewise. * misc/ustat.c (ustat): Likewise. * misc/writev.c (__writev): Likewise. * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise. * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0): Likewise. * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0): Likewise. * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise. * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise. * nptl/pt-raise.c (raise): Likewise. * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise. * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise. * nptl/pthread_barrierattr_destroy.c (pthread_barrierattr_destroy): Likewise. * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init): Likewise. * nptl/pthread_barrierattr_setpshared.c (pthread_barrierattr_setpshared): Likewise. * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Likewise. * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise. * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise. * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise. * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy): Likewise. * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock): Likewise. * nptl/pthread_condattr_getpshared.c (pthread_condattr_getpshared): Likewise. * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise. * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared): Likewise. * nptl/pthread_detach.c (pthread_detach): Likewise. * nptl/pthread_equal.c (__pthread_equal): Likewise. * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise. * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise. * nptl/pthread_key_delete.c (pthread_key_delete): Likewise. * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise. * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy): Likewise. * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling): Likewise. * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy): Likewise. * nptl/pthread_mutexattr_getprotocol.c (pthread_mutexattr_getprotocol): Likewise. * nptl/pthread_mutexattr_getpshared.c (pthread_mutexattr_getpshared): Likewise. * nptl/pthread_mutexattr_getrobust.c (pthread_mutexattr_getrobust): Likewise. * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise. * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise. * nptl/pthread_mutexattr_setprioceiling.c (pthread_mutexattr_setprioceiling): Likewise. * nptl/pthread_mutexattr_setprotocol.c (pthread_mutexattr_setprotocol): Likewise. * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared): Likewise. * nptl/pthread_mutexattr_setrobust.c (pthread_mutexattr_setrobust): Likewise. * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise. * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy): Likewise. * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy): Likewise. * nptl/pthread_rwlockattr_getkind_np.c (pthread_rwlockattr_getkind_np): Likewise. * nptl/pthread_rwlockattr_getpshared.c (pthread_rwlockattr_getpshared): Likewise. * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise. * nptl/pthread_rwlockattr_setkind_np.c (pthread_rwlockattr_setkind_np): Likewise. * nptl/pthread_rwlockattr_setpshared.c (pthread_rwlockattr_setpshared): Likewise. * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Likewise. * nptl/pthread_setcanceltype.c (__pthread_setcanceltype): Likewise. * nptl/pthread_setconcurrency.c (pthread_setconcurrency): Likewise. * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise. * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise. * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise. * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise. * nptl/sem_close.c (sem_close): Likewise. * nptl/sem_destroy.c (__new_sem_destroy): Likewise. * nptl/sem_init.c (__old_sem_init): Likewise. * nptl/sigaction.c (__sigaction): Likewise. * nptl/unregister-atfork.c (__unregister_atfork): Likewise. * posix/_exit.c (_exit): Likewise. * posix/alarm.c (alarm): Likewise. * posix/confstr.c (confstr): Likewise. * posix/fpathconf.c (__fpathconf): Likewise. * posix/getgroups.c (__getgroups): Likewise. * posix/getpgid.c (__getpgid): Likewise. * posix/group_member.c (__group_member): Likewise. * posix/pathconf.c (__pathconf): Likewise. * posix/sched_getaffinity.c (sched_getaffinity): Likewise. * posix/sched_setaffinity.c (sched_setaffinity): Likewise. * posix/setgid.c (__setgid): Likewise. * posix/setpgid.c (__setpgid): Likewise. * posix/setuid.c (__setuid): Likewise. * posix/sleep.c (__sleep): Likewise. * posix/sysconf.c (__sysconf): Likewise. * posix/times.c (__times): Likewise. * posix/uname.c (__uname): Likewise. * posix/waitid.c (__waitid): Likewise. * pwd/getpw.c (__getpw): Likewise. * resolv/base64.c (b64_pton): Likewise. * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise. * resolv/gethnamaddr.c (Dprintf): Likewise. (gethostbyname): Likewise. (gethostbyname2): Likewise. (gethostbyaddr): Likewise. (_sethtent): Likewise. (_gethtbyname): Likewise. (_gethtbyname2): Likewise. (_gethtbyaddr): Likewise. (map_v4v6_address): Likewise. (map_v4v6_hostent): Likewise. (addrsort): Likewise. (ht_sethostent): Likewise. (ht_gethostbyname): Likewise. (ht_gethostbyaddr): Likewise. * resolv/inet_net_ntop.c (inet_net_ntop): Likewise. (inet_net_ntop_ipv4): Likewise. * resolv/inet_neta.c (inet_neta): Likewise. * resolv/inet_ntop.c (inet_ntop): Likewise. (inet_ntop4): Likewise. (inet_ntop6): Likewise. * resolv/inet_pton.c (__inet_pton): Likewise. (inet_pton4): Likewise. (inet_pton6): Likewise. * resolv/res_debug.c (loc_aton): Likewise. (loc_ntoa): Likewise. * resource/getpriority.c (__getpriority): Likewise. * resource/getrusage.c (__getrusage): Likewise. * resource/nice.c (nice): Likewise. * resource/setpriority.c (__setpriority): Likewise. * resource/setrlimit64.c (setrlimit64): Likewise. * resource/vlimit.c (vlimit): Likewise. * resource/vtimes.c (vtimes): Likewise. * rt/aio_error.c (aio_error): Likewise. * rt/aio_return.c (aio_return): Likewise. * rt/aio_sigqueue.c (__aio_sigqueue): Likewise. * signal/kill.c (__kill): Likewise. * signal/killpg.c (killpg): Likewise. * signal/raise.c (raise): Likewise. * signal/sigaction.c (__sigaction): Likewise. * signal/sigaddset.c (sigaddset): Likewise. * signal/sigaltstack.c (sigaltstack): Likewise. * signal/sigandset.c (sigandset): Likewise. * signal/sigblock.c (__sigblock): Likewise. * signal/sigdelset.c (sigdelset): Likewise. * signal/sigempty.c (sigemptyset): Likewise. * signal/sigfillset.c (sigfillset): Likewise. * signal/sighold.c (sighold): Likewise. * signal/sigignore.c (sigignore): Likewise. * signal/sigintr.c (siginterrupt): Likewise. * signal/sigisempty.c (sigisemptyset): Likewise. * signal/sigismem.c (sigismember): Likewise. * signal/signal.c (signal): Likewise. * signal/sigorset.c (sigorset): Likewise. * signal/sigpause.c (__sigpause): Likewise. * signal/sigpending.c (sigpending): Likewise. * signal/sigprocmask.c (__sigprocmask): Likewise. * signal/sigrelse.c (sigrelse): Likewise. * signal/sigreturn.c (__sigreturn): Likewise. * signal/sigset.c (sigset): Likewise. * signal/sigsetmask.c (__sigsetmask): Likewise. * signal/sigstack.c (sigstack): Likewise. * signal/sigsuspend.c (__sigsuspend): Likewise. * signal/sigvec.c (sigvec_wrapper_handler): Likewise. * signal/sysv_signal.c (__sysv_signal): Likewise. * socket/accept.c (accept): Likewise. * socket/accept4.c (__libc_accept4): Likewise. * socket/bind.c (__bind): Likewise. * socket/connect.c (__connect): Likewise. * socket/getpeername.c (getpeername): Likewise. * socket/getsockname.c (__getsockname): Likewise. * socket/getsockopt.c (getsockopt): Likewise. * socket/listen.c (__listen): Likewise. * socket/recv.c (__recv): Likewise. * socket/recvmsg.c (__recvmsg): Likewise. * socket/send.c (__send): Likewise. * socket/sendmsg.c (__sendmsg): Likewise. * socket/shutdown.c (shutdown): Likewise. * socket/sockatmark.c (sockatmark): Likewise. * socket/socket.c (__socket): Likewise. * stdio-common/ctermid.c (ctermid): Likewise. * stdio-common/cuserid.c (cuserid): Likewise. * stdio-common/printf-prs.c (parse_printf_format): Likewise. * stdio-common/remove.c (remove): Likewise. * stdio-common/rename.c (rename): Likewise. * stdio-common/renameat.c (renameat): Likewise. * stdio-common/tempname.c (__gen_tempname): Likewise. * stdio-common/xbug.c (InitBuffer): Likewise. (AppendToBuffer): Likewise. (ReadFile): Likewise. * stdlib/a64l.c (a64l): Likewise. * stdlib/drand48_r.c (drand48_r): Likewise. * stdlib/getcontext.c (getcontext): Likewise. * stdlib/getenv.c (getenv): Likewise. * stdlib/l64a.c (l64a): Likewise. * stdlib/llabs.c (llabs): Likewise. * stdlib/lldiv.c (lldiv): Likewise. * stdlib/lrand48_r.c (lrand48_r): Likewise. * stdlib/mrand48_r.c (mrand48_r): Likewise. * stdlib/putenv.c (putenv): Likewise. * stdlib/random.c (__srandom): Likewise. (__initstate): Likewise. (__setstate): Likewise. * stdlib/random_r.c (__srandom_r): Likewise. (__setstate_r): Likewise. (__random_r): Likewise. * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise. * stdlib/setcontext.c (setcontext): Likewise. * stdlib/setenv.c (setenv): Likewise. (unsetenv): Likewise. * stdlib/srand48.c (srand48): Likewise. * stdlib/srand48_r.c (__srand48_r): Likewise. * stdlib/swapcontext.c (swapcontext): Likewise. * stdlib/system.c (__libc_system): Likewise. * stdlib/tst-strtod.c (expand): Likewise. * stdlib/tst-strtol.c (expand): Likewise. * stdlib/tst-strtoll.c (expand): Likewise. * streams/fattach.c (fattach): Likewise. * streams/fdetach.c (fdetach): Likewise. * streams/getmsg.c (getmsg): Likewise. * streams/isastream.c (isastream): Likewise. * string/ffs.c (__ffs): Likewise. * string/ffsll.c (ffsll): Likewise. * string/memcmp.c (memcmp_common_alignment): Likewise. (memcmp_not_common_alignment): Likewise. (MEMCMP): Likewise. * string/memcpy.c (memcpy): Likewise. * string/memmove.c (MEMMOVE): Likewise. * string/memset.c (memset): Likewise. * string/rawmemchr.c (RAWMEMCHR): Likewise. * string/strchrnul.c (STRCHRNUL): Likewise. * string/strerror.c (strerror): Likewise. * string/strndup.c (__strndup): Likewise. * string/strverscmp.c (__strverscmp): Likewise. * sunrpc/clnt_raw.c (clntraw_freeres): Likewise. * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise. (clnttcp_freeres): Likewise. * sunrpc/clnt_unix.c (clntunix_freeres): Likewise. * sunrpc/pmap_prot.c (xdr_pmap): Likewise. * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise. * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise. * sunrpc/rpc_prot.c (xdr_replymsg): Likewise. (xdr_callhdr): Likewise. * sunrpc/rpcinfo.c (udpping): Likewise. (tcpping): Likewise. (pstatus): Likewise. (pmapdump): Likewise. (brdcst): Likewise. (deletereg): Likewise. (getprognum): Likewise. (getvers): Likewise. (get_inet_address): Likewise. * sunrpc/svc_raw.c (svcraw_recv): Likewise. * sunrpc/svc_udp.c (svcudp_create): Likewise. (svcudp_stat): Likewise. (svcudp_recv): Likewise. (svcudp_reply): Likewise. (svcudp_getargs): Likewise. (svcudp_freeargs): Likewise. (svcudp_destroy): Likewise. * sunrpc/xdr.c (xdr_bytes): Likewise. (xdr_netobj): Likewise. (xdr_string): Likewise. (xdr_wrapstring): Likewise. * sunrpc/xdr_float.c (xdr_float): Likewise. (xdr_double): Likewise. * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise. * sunrpc/xdr_ref.c (xdr_pointer): Likewise. * sysvipc/ftok.c (ftok): Likewise. * sysvipc/msgctl.c (msgctl): Likewise. * sysvipc/msgget.c (msgget): Likewise. * sysvipc/msgrcv.c (msgrcv): Likewise. * sysvipc/msgsnd.c (msgsnd): Likewise. * sysvipc/semget.c (semget): Likewise. * sysvipc/semop.c (semop): Likewise. * sysvipc/shmat.c (shmat): Likewise. * sysvipc/shmctl.c (shmctl): Likewise. * sysvipc/shmdt.c (shmdt): Likewise. * sysvipc/shmget.c (shmget): Likewise. * termios/cfmakeraw.c (cfmakeraw): Likewise. * termios/speed.c (cfgetospeed): Likewise. (cfgetispeed): Likewise. (cfsetospeed): Likewise. (cfsetispeed): Likewise. * termios/tcflow.c (tcflow): Likewise. * termios/tcflush.c (tcflush): Likewise. * termios/tcgetattr.c (__tcgetattr): Likewise. * termios/tcgetpgrp.c (tcgetpgrp): Likewise. * termios/tcgetsid.c (tcgetsid): Likewise. * termios/tcsendbrk.c (tcsendbreak): Likewise. * termios/tcsetpgrp.c (tcsetpgrp): Likewise. * time/adjtime.c (__adjtime): Likewise. * time/dysize.c (dysize): Likewise. * time/ftime.c (ftime): Likewise. * time/getitimer.c (__getitimer): Likewise. * time/gettimeofday.c (__gettimeofday): Likewise. * time/gmtime.c (__gmtime_r): Likewise. (gmtime): Likewise. * time/localtime.c (__localtime_r): Likewise. (localtime): Likewise. * time/offtime.c (__offtime): Likewise. * time/settimeofday.c (__settimeofday): Likewise. * time/stime.c (stime): Likewise. * time/strftime_l.c (tm_diff): Likewise. (iso_week_days): Likewise. * time/strptime.c (strptime): Likewise. * time/time.c (time): Likewise. * time/timespec_get.c (timespec_get): Likewise. * time/tzset.c (tzset_internal): Likewise. (compute_change): Likewise. (__tz_compute): Likewise. * wcsmbs/btowc.c (__btowc): Likewise. * wcsmbs/mbrlen.c (__mbrlen): Likewise. * wcsmbs/mbsinit.c (__mbsinit): Likewise. * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise. * wcsmbs/wcpcpy.c (__wcpcpy): Likewise. * wcsmbs/wcpncpy.c (__wcpncpy): Likewise. * wcsmbs/wcscat.c (__wcscat): Likewise. * wcsmbs/wcschrnul.c (__wcschrnul): Likewise. * wcsmbs/wcscmp.c (WCSCMP): Likewise. * wcsmbs/wcscpy.c (WCSCPY): Likewise. * wcsmbs/wcscspn.c (wcscspn): Likewise. * wcsmbs/wcsdup.c (wcsdup): Likewise. * wcsmbs/wcslen.c (__wcslen): Likewise. * wcsmbs/wcsncat.c (WCSNCAT): Likewise. * wcsmbs/wcsncmp.c (WCSNCMP): Likewise. * wcsmbs/wcsncpy.c (__wcsncpy): Likewise. * wcsmbs/wcsnlen.c (__wcsnlen): Likewise. * wcsmbs/wcspbrk.c (wcspbrk): Likewise. * wcsmbs/wcsrchr.c (WCSRCHR): Likewise. * wcsmbs/wcsspn.c (wcsspn): Likewise. * wcsmbs/wcsstr.c (wcsstr): Likewise. * wcsmbs/wcstok.c (wcstok): Likewise. * wcsmbs/wctob.c (wctob): Likewise. * wcsmbs/wmemchr.c (__wmemchr): Likewise. * wcsmbs/wmemcmp.c (WMEMCMP): Likewise. * wcsmbs/wmemcpy.c (__wmemcpy): Likewise. * wcsmbs/wmemmove.c (__wmemmove): Likewise. * wcsmbs/wmempcpy.c (__wmempcpy): Likewise. * wcsmbs/wmemset.c (__wmemset): Likewise. * wctype/wcfuncs.c (__towlower): Likewise. (__towupper): Likewise. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_unlock_elision): Add adapt_count parameter. 2015-10-15 Joseph Myers * sysdeps/nptl/configure.ac: Do not give errors based on the results of top-level configure tests. * sysdeps/nptl/configure: Regenerated. * configure.ac (libc_cv_Bgroup): Remove configure test. * configure: Regenerated. * config.make.in (have-Bgroup): Remove variable. * configure.ac (sizeof_long_double): Remove configure test. * configure: Regenerated. * config.make.in (sizeof-long-double): Remove variable. * configure.ac (libc_cv_gcc_exceptions): Remove configure test. * configure: Regenerated. * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set variable. (exceptions): Likewise. * sysdeps/arm/configure: Regenerated. * config.make.in (exceptions): Remove variable. * Makeconfig (uses-callbacks): Use -fexceptions instead of $(exceptions). * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise. (CFLAGS-vdprintf_chk.c): Likewise. (CFLAGS-printf_chk.c): Likewise. (CFLAGS-fprintf_chk.c): Likewise. (CFLAGS-vprintf_chk.c): Likewise. (CFLAGS-vfprintf_chk.c): Likewise. (CFLAGS-gets_chk.c): Likewise. (CFLAGS-fgets_chk.c): Likewise. (CFLAGS-fgets_u_chk.c): Likewise. (CFLAGS-fread_chk.c): Likewise. (CFLAGS-fread_u_chk.c): Likewise. (CFLAGS-wprintf_chk.c): Likewise. (CFLAGS-fwprintf_chk.c): Likewise. (CFLAGS-vwprintf_chk.c): Likewise. (CFLAGS-vfwprintf_chk.c): Likewise. (CFLAGS-fgetws_chk.c): Likewise. (CFLAGS-fgetws_u_chk.c): Likewise. * libio/Makefile (CFLAGS-fileops.c): Likewise. (CFLAGS-fputc.c): Likewise. (CFLAGS-fputwc.c): Likewise. (CFLAGS-freopen64.c): Likewise. (CFLAGS-freopen.c): Likewise. (CFLAGS-fseek.c): Likewise. (CFLAGS-fseeko64.c): Likewise. (CFLAGS-fseeko.c): Likewise. (CFLAGS-ftello64.c): Likewise. (CFLAGS-ftello.c): Likewise. (CFLAGS-fwide.c): Likewise. (CFLAGS-genops.c): Likewise. (CFLAGS-getc.c): Likewise. (CFLAGS-getchar.c): Likewise. (CFLAGS-getwc.c): Likewise. (CFLAGS-getwchar.c): Likewise. (CFLAGS-iofclose.c): Likewise. (CFLAGS-iofflush.c): Likewise. (CFLAGS-iofgetpos64.c): Likewise. (CFLAGS-iofgetpos.c): Likewise. (CFLAGS-iofgets.c): Likewise. (CFLAGS-iofgetws.c): Likewise. (CFLAGS-iofputs.c): Likewise. (CFLAGS-iofputws.c): Likewise. (CFLAGS-iofread.c): Likewise. (CFLAGS-iofsetpos64.c): Likewise. (CFLAGS-iofsetpos.c): Likewise. (CFLAGS-ioftell.c): Likewise. (CFLAGS-iofwrite.c): Likewise. (CFLAGS-iogetdelim.c): Likewise. (CFLAGS-iogetline.c): Likewise. (CFLAGS-iogets.c): Likewise. (CFLAGS-iogetwline.c): Likewise. (CFLAGS-ioputs.c): Likewise. (CFLAGS-ioseekoff.c): Likewise. (CFLAGS-ioseekpos.c): Likewise. (CFLAGS-iosetbuffer.c): Likewise. (CFLAGS-iosetvbuf.c): Likewise. (CFLAGS-ioungetc.c): Likewise. (CFLAGS-ioungetwc.c): Likewise. (CFLAGS-oldfileops.c): Likewise. (CFLAGS-oldiofclose.c): Likewise. (CFLAGS-oldiofgetpos64.c): Likewise. (CFLAGS-oldiofgetpos.c): Likewise. (CFLAGS-oldiofsetpos64.c): Likewise. (CFLAGS-oldiofsetpos.c): Likewise. (CFLAGS-peekc.c): Likewise. (CFLAGS-putc.c): Likewise. (CFLAGS-putchar.c): Likewise. (CFLAGS-putwc.c): Likewise. (CFLAGS-putwchar.c): Likewise. (CFLAGS-rewind.c): Likewise. (CFLAGS-wfileops.c): Likewise. (CFLAGS-wgenops.c): Likewise. (CFLAGS-oldiofopen.c): Likewise. (CFLAGS-iofopen.c): Likewise. (CFLAGS-iofopen64.c): Likewise. (CFLAGS-oldtmpfile.c): Likewise. * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise. (CFLAGS-fprintf.c): Likewise. (CFLAGS-printf.c): Likewise. (CFLAGS-vfwprintf.c): Likewise. (CFLAGS-vfscanf.c): Likewise. (CFLAGS-vfwscanf.c): Likewise. (CFLAGS-fscanf.c): Likewise. (CFLAGS-scanf.c): Likewise. (CFLAGS-isoc99_vfscanf.c): Likewise. (CFLAGS-isoc99_vscanf.c): Likewise. (CFLAGS-isoc99_fscanf.c): Likewise. (CFLAGS-isoc99_scanf.c): Likewise. * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise. (CFLAGS-isoc99_fwscanf.c): Likewise. (CFLAGS-isoc99_vwscanf.c): Likewise. (CFLAGS-isoc99_vfwscanf.c): Likewise. * io/test-lfs.c (do_prepare): Do not call add_temp_file until after mkstemp64. * login/tst-utmp.c (do_prepare): Likewise. * rt/tst-aio.c (do_prepare): Likewise. * rt/tst-aio64.c (do_prepare): Likewise. 2015-10-15 Paul E. Murphy * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision): Remove adapt_count decrement... * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c (__lll_trylock_elision): Likewise. * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c (__lll_unlock_elision): ... to here. And utilize new adapt_count parameter. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_unlock_elision): Update to include adapt_count parameter. (lll_unlock_elision): Pass pointer to adapt_count variable. 2015-10-15 Paul E. Murphy * nptl/pthread_mutex_unlock.c (lll_unlock_elision): Add elision adapt_count parameter to list of arguments. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (lll_unlock_elision): Update with new parameter list * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_unlock_elision): Likewise * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock_elision): Likewise 2015-10-15 H.J. Lu [BZ #19122] * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add attribute_hidden. * include/string.h [IS_IN (rtld)] (__stpcpy): Add attribute_hidden. [IS_IN (rtld)] (__strdup): Likewise. [IS_IN (rtld)] (__strerror_r): Likewise. [IS_IN (rtld)] (__strsep_g): Likewise. [IS_IN (rtld)] (memchr): Likewise. [IS_IN (rtld)] (memcmp): Likewise. [IS_IN (rtld)] (memcpy): Likewise. [IS_IN (rtld)] (memmove): Likewise. [IS_IN (rtld)] (memset): Likewise. [IS_IN (rtld)] (rawmemchr): Likewise. [IS_IN (rtld)] (stpcpy): Likewise. [IS_IN (rtld)] (strchr): Likewise. [IS_IN (rtld)] (strcmp): Likewise. [IS_IN (rtld)] (strlen): Likewise. [IS_IN (rtld)] (strnlen): Likewise. [IS_IN (rtld)] (strsep): Likewise. * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add attribute_hidden. [IS_IN (rtld)] (__strtoul_internal): Likewise. * include/signal.h [IS_IN (rtld)] (__sigaction): Add attribute_hidden. [IS_IN (rtld)] (__libc_sigaction): Likewise. * include/setjmp.h (__longjmp): Add attribute_hidden. [IS_IN (rtld)] (__sigsetjmp): Likewise. * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency): Add attribute_hidden. * include/fcntl.h (__libc_fcntl): Add attribute_hidden. [IS_IN (rtld)] (__open): Likewise. [IS_IN (rtld)] (__fcntl): Likewise. * include/dirent.h (__opendirat): Add attribute_hidden. (__getdents): Likewise. (__getdents64): Likewise. (__alloc_dir): Likewise. [IS_IN (rtld)] (__closedir): Likewise. [IS_IN (rtld)] (__fdopendir): Likewise. [IS_IN (rtld)] (__readdir): Likewise. [IS_IN (rtld)] (__readdir64): Likewise. [IS_IN (rtld)] (__rewinddir): Likewise. * include/dlfcn.h (_dl_catch_error): Moved to ... * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add attribute_hidden. * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden. (_itoa_word): Likewise. * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden. * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise. * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise. * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise. (_dl_higher_prime_number): Likewise. (_dl_debug_printf_c): Likewise. (_dl_signal_cerror): Likewise. (_dl_receive_error): Likewise. (_dl_reloc_bad_type): Likewise. (_dl_resolve_conflicts): Likewise. (_dl_check_all_versions): Likewise. (_dl_check_map_versions): Likewise. (_dl_sort_fini): Likewise. (_dl_debug_initialize): Likewise. (_dl_init_paths): Likewise. (_dl_show_auxv): Likewise. (_dl_next_ld_env_entry): Likewise. (_dl_important_hwcaps): Likewise. (_dl_load_cache_lookup): Likewise. (_dl_update_slotinfo): Likewise. (_dl_show_scope): Likewise. * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add attribute_hidden. (_wordcopy_fwd_dest_aligned): Likewise. (_wordcopy_bwd_aligned): Likewise. (_wordcopy_bwd_dest_aligned): Likewise. * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden. * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise. * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise. * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise. 2015-10-15 H.J. Lu * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for GCC 5 requirement. 2015-10-15 Joseph Myers * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure test. * sysdeps/i386/configure: Regenerated. * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make code unconditional. * configure.ac (libc_cv_asm_previous_directive): Remove configure test. (libc_cv_asm_popsection_directive): Likewise. * configure: Regenerated. * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef. (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise. * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE] (__make_section_unallocated): Make definition unconditional. [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated): Remove conditional definition. [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated): Likewise. * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test. * configure: Regenerated. * config.make.in (static-libgcc): Remove variable. * Makerules (build-shlib-helper): Use -static-libgcc instead of $(static-libgcc). (build-module-helper): Likewise. * configure.ac (libc_cv_friendly_stddef): Remove configure test. * configure: Regenerated. 2015-10-15 Florian Weimer * stdio-common/vfscanf.c (MEMCPY): Remove macro. (struct char_buffer): New type. (char_buffer_start, char_buffer_size, char_buffer_error) (char_buffer_rewind, char_buffer_add): New functions. (ADDW): Remove macro, replaced by the char_buffer_add function. (_IO_vfscanf_internal): Rewrite using struct char_buffer instead of extend_alloca. Make control flow more explicit. 2015-10-15 H.J. Lu [BZ #19137] * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c): Add -fomit-frame-pointer. * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file. 2015-10-15 H.J. Lu * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0). * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros only if !__GNUC_PREREQ (5,0). (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5. (INTERNAL_SYSCALL_MAIN_INLINE): Likewise. (INTERNAL_SYSCALL_NCS): Likewise. (LOADREGS_0): New macro for GCC 5. (ASMARGS_0): Likewise. (LOADREGS_1): Likewise. (ASMARGS_1): Likewise. (LOADREGS_2): Likewise. (ASMARGS_2): Likewise. (LOADREGS_3): Likewise. (ASMARGS_3): Likewise. (LOADREGS_4): Likewise. (ASMARGS_4): Likewise. (LOADREGS_5): Likewise. (ASMARGS_5): Likewise. (LOADREGS_6): Likewise. (ASMARGS_6): Likewise. 2015-10-15 H.J. Lu * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add -fomit-frame-pointer. (CFLAGS-mmap64.c): Likewise. (CFLAGS-semtimedop.c): Likewise. * sysdeps/unix/sysv/linux/i386/mmap.c: New file. * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file. * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise. * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise. 2015-10-15 Florian Weimer [BZ #18928] * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove _dl_pointer_guard member. * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard initializer. (security_init): Always set up pointer guard. (process_envvars): Do not process LD_POINTER_GUARD. 2015-10-14 Joseph Myers [BZ #19134] * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object. (.LC2): Likewise. (.LC3): Likewise. (__lround): Do not add 0.5 to integer or out-of-range arguments. 2015-10-14 Szabolcs Nagy [BZ #19129] * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore r0 and r1. 2015-10-14 Namhyung Kim * manaual/argp.texi (Specifying Argp Parsers): Fix typo. 2015-10-14 Carlos O'Donell * include/stap-probe.h: Fix macro definition formatting. 2015-10-14 Florian Weimer [BZ #19074] * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to load and store num_ifs. 2015-10-14 H.J. Lu [BZ #18822] * sysdeps/unix/sysv/linux/sched_getaffinity.c (__sched_getaffinity_new): Add libc_hidden_proto and libc_hidden_def. 2015-10-14 H.J. Lu [BZ #19007] * scripts/localplt.awk: Also allow GOT references. * sysdeps/unix/sysv/linux/i386/localplt.data: Mark _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign with "+ REL R_386_GLOB_DAT". * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT". 2015-10-14 H.J. Lu * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INLINE_SYSCALL_ERROR_RETURN_VALUE. * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise. * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise. * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise. * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use INTERNAL_SYSCALLINTERNAL_SYSCALL and INLINE_SYSCALL_ERROR_RETURN_VALUE. * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise. * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise. * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise. 2015-10-13 Joseph Myers [BZ #19125] * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include , and . (__llround): Avoid conversions to and from long long int, and subtractions, where those might raise spurious exceptions. * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include and . (__llroundf): Avoid conversions to and from long long int, and subtractions, where those might raise spurious exceptions. 2015-10-13 H.J. Lu * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use INLINE_SYSCALL_ERROR_RETURN_VALUE. * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise. * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise. * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise. * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise. * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise. * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise. * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise. * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise. * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise. * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise. * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise. * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise. * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise. * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise. * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise. * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise. * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise. * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise. * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise. * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise. * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise. * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise. * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise. * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise. * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise. * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise. * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise. * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise. (__xstat64_conv): Likewise. (__xstat32_conv): Likewise. 2015-10-13 H.J. Lu * sysdeps/unix/sysv/linux/sysdep.h: New file. * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise. * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include . * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu] (sysdep-dl-routines): Add sysdep. [$(subdir) == nptl] (libpthread-routines): Likewise. [$(subdir) == rt] (librt-routines): Likewise. * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check PIC when branching to SYSCALL_ERROR_LABEL. * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed. * sysdeps/unix/sysv/linux/i386/sysdep.h: Include . (SYSCALL_ERROR_LABEL): Changed to __syscall_error. (SYSCALL_ERROR_ERRNO): Removed. (SYSCALL_ERROR_HANDLER): Changed to empty. (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise. (__syscall_error): New prototype. [IS_IN (libc)] (INLINE_SYSCALL): New macro. (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise. 2015-10-13 H.J. Lu [BZ #19124] * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT] (_dl_runtime_resolve_avx512): Make it a hidden alias of _dl_runtime_resolve_avx. (_dl_runtime_profile_avx512): Make it a hidden alias of _dl_runtime_profile_avx. 2015-10-13 Joseph Myers * sysdeps/powerpc/fpu/s_llround.c: Move to .... * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here. * sysdeps/powerpc/fpu/s_llroundf.c: Move to .... * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here. [BZ #16422] * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz): New configure test. * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated. * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro. * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include , and . (__llrint): Avoid conversions to long long int where those might raise spurious exceptions. * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include and . (__llrintf): Avoid conversions to long long int where those might raise spurious exceptions. 2015-10-12 Andreas Schwab [BZ #18969] * debug/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)tst-chk1.out): Depend on $(gen-locales). * iconvdata/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on $(gen-locales). * intl/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out) ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out) ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out) ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on $(gen-locales). * libio/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out) ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out) ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out) ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out) ($(objpfx)tst-ftell-active-handler.out) ($(objpfx)tst-ftell-append.out) ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out) ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out) ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out) ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales). * posix/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out) ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out) ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out) ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out) ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out) ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out) ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out) ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out) ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out) ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out) ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out) ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out) ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales). * stdio-common/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)bug14.out, $(objpfx)scanf13.out) ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out) ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out) ($(objpfx)tst-swprintf.out): Depend on $(gen-locales). * stdlib/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out) ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out) ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on $(gen-locales). * time/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on $(gen-locales). * wcsmbs/Makefile (LOCALES): Define. Include gen-locales.mk. ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out) ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out) ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on $(gen-locales). * libio/tst_wprintf2.c (main): Use explicit locale. * wcsmbs/wcsmbs-tst1.c (main): Likewise. 2015-10-10 Samuel Thibault * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by __msg_sig_post. * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type. 2015-10-09 Joseph Myers * sysdeps/mips/mips32/libm-test-ulps: Regenerated. * sysdeps/mips/mips64/libm-test-ulps: Likewise. * sysdeps/arm/libm-test-ulps: Regenerated. [BZ #15470] * sysdeps/arm/fix-fp-int-convert-overflow.h: New file. [BZ #16399] * sysdeps/generic/fix-fp-int-convert-overflow.h: New file. * sysdeps/ieee754/dbl-64/s_llrint.c: Include , and . (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/dbl-64/s_llround.c: Include , and . (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/dbl-64/s_lrint.c: Include . (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/dbl-64/s_lround.c: Include . (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/flt-32/s_llrintf.c: Include , and . (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/flt-32/s_llroundf.c: Include , and . (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/flt-32/s_lrintf.c: Include , and . (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/ieee754/flt-32/s_lroundf.c: Include , and . (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if FIX_DBL_LLONG_CONVERT_OVERFLOW. * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file. 2015-10-09 Carlos O'Donell [BZ #18589] * string/bug-strcoll2.c: Adjust copyright, and remove contributed by. * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on $(gen-locales). 2015-10-09 Adhemerval Zanella Phil Blundell * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c. * nptl/tst-cancel26.c: New file. * nptl/tst-cancel27.c: Likewise. 2015-10-09 H.J. Lu * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if __ILP32__ isn't defined. (lrint): Likewise. * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise. (lrintf): Likewise. * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise. (lrintl): Likewise. * sysdeps/x86_64/x32/fpu/s_lrint.S: New file. * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise. * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise. 2015-10-09 Adhemerval Zanella * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove file. * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise. 2015-10-09 Joseph Myers * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove configure test. * sysdeps/i386/configure: Regenerated. * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove configure test. * sysdeps/x86_64/configure: Regenerated. * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]: Make code unconditional. * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure test. * sysdeps/i386/configure: Regenerated. * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure test. * sysdeps/x86_64/configure: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]: Make code unconditional. * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]: Likewise. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make code unconditional. * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef. [BZ #19095] * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of mantissa to long int before shifting left. 2015-10-08 Joseph Myers [BZ #19094] * sysdeps/ieee754/dbl-64/s_lrint.c: Include and . (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include and . (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include and . (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include and . (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include and . (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception when result overflows but exception would not result from cast. * math/libm-test.inc (lrint_test_data): Add more tests. (llrint_test_data): Likewise. 2015-10-08 Roland McGrath [BZ #18872] * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Move out from under [$(run-built-tests) = yes] conditional. ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise. ($(objpfx)tst-printf-bz18872-mem.out): Likewise. 2015-10-08 Carlos O'Donell [BZ #18589] * string/Makefile (tests): Add bug-strcoll2. (LOCALES): Add cs_CZ.UTF-8. * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string. [BZ #18589] * string/bug-strcoll2.c: New file. * locale/categories.def: Revert commit f13c2a8dff2329c6692a80176262ceaaf8a6f74e. * locale/langinfo.h: Likewise. * locale/localeinfo.h: Likewise. * locale/C-collate.c: Likewise. * locale/programs/ld-collate.c (collate_output): Likewise. * string/strcoll_l.c (STRDIFF): Likewise. (STRCOLL): Likewise. * wcsmbs/wcscoll_l.c: Likewise. 2015-10-08 Joseph Myers * math/libm-test.inc (lround_test_data): Do not expect the absence of "inexact" for some tests with non-integer arguments. (llround_test_data): Likewise. * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure test. (libc_cv_cc_sse2avx): Likewise. * sysdeps/i386/configure: Regenerated. * sysdeps/i386/i686/multiarch/Makefile [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to [$(subdir) = math]. * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make code unconditional. * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]: Likewise. * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]: Likewise. * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure test. (libc_cv_cc_sse2avx): Likewise. * sysdeps/x86_64/configure: Regenerated. * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code unconditional. * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile) [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code unconditional. (_dl_runtime_profile) [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/Makefile [$(config-cflags-sse2avx) = yes]: Make code unconditional. * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise. * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise. * config.h.in (HAVE_AVX_SUPPORT): Remove #undef. (HAVE_SSE2AVX_SUPPORT): Likewise. 2015-10-07 Paul Pluzhnikov * stdio-common/tst-printf-bz18872.sh: Use attribute optimize instead of #pragma optimize. 2015-10-07 Carlos O'Donell [BZ #17195] * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size, as is similarly done in systrim and _int_free already. 2015-10-08 Samuel Thibault * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify. 2015-10-07 Joseph Myers [BZ #19088] * sysdeps/ieee754/dbl-64/s_lround.c: Include and . (__lround) [FE_INVALID]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include and . (__lround) [FE_INVALID]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include and . (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include and . (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include and . (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result overflows but exception would not result from cast. * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include and . (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result overflows but exception would not result from cast. * math/libm-test.inc (lround_test_data): Add more tests. (llround_test_data): Likewise. 2015-10-07 Steve Ellcey * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable. (CFLAGS-ialloc.c): Ditto. (CFLAGS-scheck.c): Ditto. 2015-10-07 Carlos O'Donell [BZ #19086] * manual/filesys.texi (Storage Allocation): Fix argument order for posix_fallocate64. 2015-10-07 Joseph Myers [BZ #19085] * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for exponent below 48 inside case for non-overflowing exponent. * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise. 2015-10-07 Florian Weimer * iconvdata/cp737.h (from_idx): Add const. * iconvdata/cp775.h (from_idx): Likewise. 2015-10-07 Joseph Myers * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64. * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error. [BZ #19079] * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous file, conditioned on [!_LP64]. * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!_LP64] (__lround): Do not define as function or alias. [!_LP64] (lround): Likewise. [!_LP64] (__lroundl): Likewise. [!_LP64] (lroundl): Likewise. * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove macro. * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Likewise. 2015-10-06 Joseph Myers * math/libm-test.inc (lrint_test_data): Add more tests. (llrint_test_data): Likewise. (lround_test_data): Likewise. (llround_test_data): Likewise. * math/libm-test.inc (lrint_test_data): Add tests used for llrint. (llrint_test_data): Add tests used for lrint. * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure test. * sysdeps/i386/configure: Regenerated. * sysdeps/i386/i686/multiarch/Makefile [$(config-cflags-sse4) = yes]: Make code unconditional. * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]: Likewise. * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise. * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure test. * sysdeps/x86_64/configure: Regenerated. * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]: Make code unconditional. * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]: Likewise. * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise. * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef. * scripts/rpm2dynsym.sh: Remove file. 2015-10-06 Florian Weimer * configure.ac (libc_cv_cxx_thread_local): Define. * configure: Regenerate. * config.make.in (have-cxx-thread_local): Define. * nptl/Makefile (CFLAGS-tst-thread_local1.o): (LDLIBS-tst-thread_local1): Define. (tests): Add tst-thread_local1. [have-cxx-thread_local != yes] (tests-unsupported): Add tst-thread_local1. * nptl/tst-thread_local1.cc: New file. 2015-10-06 Joseph Myers [BZ #19078] * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable. (u_thres): Likewise. (__expl): Determine whether to call __kernel_standard_l based on value of result, not argument. * math/libm-test.inc (scalb_test_data): Add more expectations for the "inexact" exception. [BZ #19077] * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return 0.0L for argument 1.0L. [BZ #19076] * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by constant 0.0L when computing infinite result. 2015-10-06 Florian Weimer [BZ #10432] * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to malloc_usable_size. 2015-10-06 Florian Weimer [BZ #19018] * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl): Mangle function pointer before storing it. (__call_tls_dtors): Demangle function pointer before calling it. 2015-10-05 Paul Pluzhnikov [BZ #19012] * iconv/gconv_db.c (gen_steps): Check for additional errors. Clean up on failure. 2015-10-05 Joseph Myers [BZ #19071] * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned long int variable to store possibly incremented high part of mantissa. * math/libm-test.inc (lround_test_data): Add tests used for llround. Use [LONG_MAX > 0x7fffffff] consistently as condition for tests requiring 64-bit long. Do not condition tests on [TEST_FLOAT] unnecessarily. (llround_test_data): Add tests used for lround. Add another expectation for the "inexact" exception. Do not condition tests on [TEST_FLOAT] unnecessarily. [BZ #887] [BZ #19049] [BZ #19050] * sysdeps/generic/fix-int-fp-convert-zero.h: New file. * sysdeps/ieee754/dbl-64/e_log10.c: Include . (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/dbl-64/e_log2.c: Include . (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/dbl-64/s_erf.c: Include . (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/dbl-64/s_logb.c: Include . (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/flt-32/e_log10f.c: Include . (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/flt-32/e_log2f.c: Include . (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/flt-32/s_erff.c: Include . (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/flt-32/s_logbf.c: Include . (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include . (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include . (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO. * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file. * sysdeps/powerpc/powerpc32/fpu/configure: New generated file. * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New file. * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro. 2015-10-03 Paul Pluzhnikov * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. 2015-10-02 Joseph Myers [BZ #19059] * math/s_nexttowardf.c (__nexttowardf): Do not return value from overflowing computation. * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf): Likewise. * math/libm-test.inc (nexttoward_test_data): Add more tests. * nss/rewrite_field.c (__nss_rewrite_field): Use internal_function. * nss/valid_field.c (__nss_valid_field): Likewise. * nss/valid_list_field.c (__nss_valid_list_field): Likewise. 2015-10-02 Florian Weimer [BZ #18724] * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define. (__nss_invalid_field_characters, __nss_valid_field) (__nss_valid_list_field, __nss_rewrite_field): Declare. * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c, tst-field.c: New file. * nss/Makefile (routines): Add valid_field, rewrite_field. (tests-static): Define unconditionally. (tests): Include tests-static. [build-static-nss] (tests-static): Use append. [build-static-nss] (tests): Remove modification. * nss/getent.c (print_group): Call putgrent. Report error. (print_gshadow): Call putsgent. Report error. (print_passwd): Call putpwent. Report error. (print_shadow): Call putspent. Report error. * include/pwd.h: Include instead of . * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute. * pwd/putpwent.c (putpwent): Use ISO function definition. Check name, password, directory, shell fields for valid syntax. Rewrite GECOS field to match syntax. * pwd/Makefile (tests): Add tst-putpwent. * pwd/tst-putpwent.c: New file. * grp/putgrent.c (putgrent): Convert to ISO function definition. Check grName, grpasswd, gr_mem fields for valid syntax. Change loop variable i to size_t. * grp/Makefile (tests): Add tst-putgrent. * grp/tst-putgrent.c: New file. * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for valid syntax. * shadow/Makefile (tests): Add tst-putspent. * shadow/tst-putspent.c: New file. * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm, sg_mem fields for valid syntax. * gshadow/Makefile (tests): Add tst-putsgent. * gshadow/tst-putsgent.c: New file. 2015-10-01 Gabriel F. T. Gomes * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some assembly instructions. 2015-10-01 Gabriel F. T. Gomes * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register prefix from operands. 2015-10-01 Joseph Myers [BZ #16347] [BZ #19046] * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include . (MAXLGM): Do not use diagnostic control macros. [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow threshold for ldbl-128ibm. (__ieee754_lgammal_r): For large arguments, multiply by log - 1 instead of multiplying by log then subtracting. * math/auto-libm-test-in: Add more tests of lgamma. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro. (TYPE_HEX_DIG): Likewise. (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as precisions when printing floating-point numbers. (check_float_internal): Likewise. 2015-09-30 Joseph Myers [BZ #16620] * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value of log (10) rounded downward to 48 bits. (log10_low): Use corresponding low part of log (10). [BZ #19032] * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1, compute result as (x - x) / (x - x) not as 0 / 0. * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise. * math/libm-test.inc (acosh_test_data): Add another test of acosh. * math/auto-libm-test-in: Add more tests of acos, acosh, asin, atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2 and expm1. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (acos_test_data): Add more tests. (asin_test_data): Likewise. (asinh_test_data): Likewise. (atan_test_data): Likewise. (atanh_test_data): Likewise. (atan2_test_data): Likewise. (cbrt_test_data): Likewise. (ceil_test_data): Likewise. (copysign_test_data): Likewise. (cos_test_data): Likewise. (cosh_test_data): Likewise. (erf_test_data): Likewise. (erfc_test_data): Likewise. (exp_test_data): Likewise. (exp10_test_data): Likewise. (exp2_test_data): Likewise. (expm1_test_data): Likewise. * sysdeps/x86_64/fpu/libm-test-ulps: Update. 2015-09-30 H.J. Lu [BZ #19006] * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved to ... * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here. * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved to ... * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here. * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved to ... * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ... * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here. * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved to ... * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Moved to ... * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Moved to ... * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved to ... * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Moved to ... * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved to ... * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here. * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Removed. * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: Likewise. * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: Likewise. * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: Likewise. * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: Likewise. * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Replace ../i486/pthread_cond_timedwait.S with ../pthread_cond_timedwait.S. 2015-09-30 Joseph Myers * math/libm-test.inc (acos_test_data): Refine expectations for errno and "inexact" exceptions. (acosh_test_data): Likewise. (asin_test_data): Likewise. (asinh_test_data): Likewise. (atan_test_data): Likewise. (atanh_test_data): Likewise. (atan2_test_data): Likewise. (cbrt_test_data): Likewise. (ceil_test_data): Likewise. (copysign_test_data): Likewise. (cosh_test_data): Likewise. (erf_test_data): Likewise. (erfc_test_data): Likewise. (exp_test_data): Likewise. (exp10_test_data): Likewise. (exp2_test_data): Likewise. (expm1_test_data): Likewise. (fabs_test_data): Likewise. (floor_test_data): Likewise. (fma_test_data): Likewise. (fmax_test_data): Likewise. (fmin_test_data): Likewise. (fmod_test_data): Likewise. (fpclassify_test_data): Likewise. (frexp_test_data): Likewise. (hypot_test_data): Likewise. (ilogb_test_data): Likewise. (isgreater_test_data): Likewise. (isgreaterequal_test_data): Likewise. (isinf_test_data): Likewise. (isless_test_data): Likewise. (islessequal_test_data): Likewise. (islessgreater_test_data): Likewise. (isnan_test_data): Likewise. (isnormal_test_data): Likewise. (issignaling_test_data): Likewise. (isunordered_test_data): Likewise. (j0_test_data): Likewise. (j1_test_data): Likewise. (jn_test_data): Likewise. (lgamma_test_data): Likewise. (lrint_test_data): Likewise. (llrint_test_data): Likewise. (log_test_data): Likewise. (log10_test_data): Likewise. (log1p_test_data): Likewise. (log2_test_data): Likewise. (logb_test_data): Likewise. (lround_test_data): Likewise. (llround_test_data): Likewise. (modf_test_data): Likewise. (nearbyint_test_data): Likewise. (nextafter_test_data): Likewise. (nexttoward_test_data): Likewise. (pow_test_data): Likewise. (remainder_test_data): Likewise. (remquo_test_data): Likewise. (rint_test_data): Likewise. (round_test_data): Likewise. (signbit_test_data): Likewise. (sinh_test_data): Likewise. (sqrt_test_data): Likewise. (tanh_test_data): Likewise. (tgamma_test_data): Likewise. (trunc_test_data): Likewise. (y0_test_data): Likewise. (y1_test_data): Likewise. (yn_test_data): Likewise. (significand_test_data): Likewise. 2015-09-29 Carlos O'Donell * manual/filesys.texi (Storage Allocation): Document that posix_fallocate emulation fails when fd is open with O_WRONLY. 2015-09-28 Joseph Myers [BZ #19016] * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to allow more cases with X^2 + Y^2 >= 0.5. * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise. Add -1 as normal element in sum instead of special-casing based on values of arguments. * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment. * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise. Add -1 as normal element in sum instead of special-casing based on values of arguments. * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise. * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0] (__x2y2m1): Update comment. * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise. Add -1 as normal element in sum instead of special-casing based on values of arguments. * math/s_clog.c (__clog): Handle more cases using log1p without hypot. * math/s_clog10.c (__clog10): Likewise. * math/s_clog10f.c (__clog10f): Likewise. * math/s_clog10l.c (__clog10l): Likewise. * math/s_clogf.c (__clogf): Likewise. * math/s_clogl.c (__clogl): Likewise. * math/auto-libm-test-in: Add more tests of clog and clog10. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-09-28 Martin Sebor [BZ #18969] * string/Makefile (LOCALES): Define. (gen-locales.mk): Include. (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out) (tst-strxfrm2.out): Add deppendency on $(gen-locales). * string/tst-strxfrm2.c (do_test): Print the name of the locale on setlocale failure. 2015-09-26 Paul Pluzhnikov [BZ #18985] * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check. (__strftime_internal): Likewise. * time/tst-strftime.c (do_bz18985): New test. (do_test): Call it. 2015-09-26 Joseph Myers [BZ #18956] * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000 not 0x0040000 for high bit of mantissa. Mask with 0xfffff000 when extracting high part. * math/auto-libm-test-in: Add another test of pow. * math/auto-libm-test-out: Regenerated. * sysdeps/x86_64/fpu/libm-test-ulps: Update. 2015-09-25 Joseph Myers [BZ #18825] * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN): New macro. (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise. (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise. * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN. (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of DBL_NARROW_EVAL, reloading the PIC register as needed. * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN. (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of FLT_NARROW_EVAL. Use separate return path for case when first argument is NaN. * sysdeps/i386/fpu/e_powl.S: Include . Use DEFINE_LDBL_MIN. (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the PIC register. * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force underflow for subnormal result. * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use math_check_force_underflow_nonneg. * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use math_check_force_underflow. * sysdeps/x86_64/fpu/x86_64-math-asm.h (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro. * sysdeps/x86_64/fpu/e_powl.S: Include . Use DEFINE_LDBL_MIN. (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN. * math/auto-libm-test-in: Add more tests of pow. * math/auto-libm-test-out: Regenerated. 2015-09-25 Florian Weimer * nss/bug17079.c (init_test_items): Add diagnostic for inconsistent entries. (test_buffer_size): Skip inconsistent entries. 2015-09-25 Joseph Myers [BZ #13304] * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file. * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise. * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise. [BZ #13304] * sysdeps/microblaze/s_fma.c: New file. * sysdeps/microblaze/s_fmaf.c: Likewise. * sysdeps/microblaze/sfp-machine.h: Likewise. 2015-09-25 Maciej W. Rozycki [BZ #17250] * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1 member. 2015-09-24 Joseph Myers [BZ #18803] * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN. (MO): New macro. (__ieee754_hypot) [PIC]: Load PIC register. (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of DBL_NARROW_EVAL. * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use math_check_force_underflow_nonneg in case where result might be tiny. * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise. * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise. * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise. * math/auto-libm-test-in: Add more tests of hypot. * math/auto-libm-test-out: Regenerated. 2015-09-24 Steve Ellcey * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused. 2015-09-24 Joseph Myers * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file. * sysdeps/x86_64/fpu/e_exp2l.S: Include . (ldbl_min): Replace with use of DEFINE_LDBL_MIN. (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN. * sysdeps/x86_64/fpu/e_expl.S: Include . [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN. (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG. * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use LOAD_PIC_REG. * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro. (FLT_CHECK_FORCE_UFLOW): Likewise. (DBL_CHECK_FORCE_UFLOW): Likewise. (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise. (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise. (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise. (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise. (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise. (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise. (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise. (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise. * sysdeps/i386/fpu/e_asin.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW. * sysdeps/i386/fpu/e_asinf.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW. * sysdeps/i386/fpu/e_atan2.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW. * sysdeps/i386/fpu/e_atan2f.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW. * sysdeps/i386/fpu/e_atanh.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG. * sysdeps/i386/fpu/e_atanhf.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG. * sysdeps/i386/fpu/e_exp2l.S: Include . (ldbl_min): Replace with use of DEFINE_LDBL_MIN. (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN. * sysdeps/i386/fpu/e_expl.S: Include . [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN. (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG. * sysdeps/i386/fpu/s_atan.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__atan): Use DBL_CHECK_FORCE_UFLOW. * sysdeps/i386/fpu/s_atanf.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__atanf): Use FLT_CHECK_FORCE_UFLOW. * sysdeps/i386/fpu/s_expm1.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__expm1): Use DBL_CHECK_FORCE_UFLOW. Move underflow check after main computation. * sysdeps/i386/fpu/s_expm1f.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__expm1f): Use FLT_CHECK_FORCE_UFLOW. Move underflow check after main computation. * sysdeps/i386/fpu/s_log1p.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (MO): New macro. (__log1p): Use MO. Use DBL_CHECK_FORCE_UFLOW_NONNAN. * sysdeps/i386/fpu/s_log1pf.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (MO): New macro. (__log1pf): Use MO. Use FLT_CHECK_FORCE_UFLOW_NONNAN. * sysdeps/i386/fpu/s_log1pl.S (MO): New macro. (__log1pl): Use MO. [BZ #19003] * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add $(config-cflags-nofma). 2015-09-24 Szabolcs Nagy * sysdeps/aarch64/libm-test-ulps: Regenerated. 2015-09-23 Joseph Myers * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile. (TWO127): Likewise. * sysdeps/generic/math_private.h (fabs_tg): New macro. (min_of_type): Likewise. (math_check_force_underflow): Likewise. (math_check_force_underflow_nonneg): Likewise. (math_check_force_underflow_complex): Likewise. * math/e_exp2l.c (__ieee754_exp2l): Use math_check_force_underflow_nonneg. * math/k_casinh.c (__kernel_casinh): Likewise. * math/k_casinhf.c (__kernel_casinhf): Likewise. * math/k_casinhl.c (__kernel_casinhl): Likewise. * math/s_catan.c (__catan): Use math_check_force_underflow_complex. * math/s_catanf.c (__catanf): Likewise. * math/s_catanh.c (__catanh): Likewise. * math/s_catanhf.c (__catanhf): Likewise. * math/s_catanhl.c (__catanhl): Likewise. * math/s_catanl.c (__catanl): Likewise. * math/s_ccosh.c (__ccosh): Likewise. * math/s_ccoshf.c (__ccoshf): Likewise. * math/s_ccoshl.c (__ccoshl): Likewise. * math/s_cexp.c (__cexp): Likewise. * math/s_cexpf.c (__cexpf): Likewise. * math/s_cexpl.c (__cexpl): Likewise. * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg. * math/s_clog10.c (__clog10): Likewise. * math/s_clog10f.c (__clog10f): Likewise. * math/s_clog10l.c (__clog10l): Likewise. * math/s_clogf.c (__clogf): Likewise. * math/s_clogl.c (__clogl): Likewise. * math/s_csin.c (__csin): Use math_check_force_underflow_complex. * math/s_csinf.c (__csinf): Likewise. * math/s_csinh.c (__csinh): Likewise. * math/s_csinhf.c (__csinhf): Likewise. * math/s_csinhl.c (__csinhl): Likewise. * math/s_csinl.c (__csinl): Likewise. * math/s_csqrt.c (__csqrt): Use math_check_force_underflow. * math/s_csqrtf.c (__csqrtf): Likewise. * math/s_csqrtl.c (__csqrtl): Likewise. * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex. * math/s_ctanf.c (__ctanf): Likewise. * math/s_ctanh.c (__ctanh): Likewise. * math/s_ctanhf.c (__ctanhf): Likewise. * math/s_ctanhl.c (__ctanhl): Likewise. * math/s_ctanl.c (__ctanl): Likewise. * stdlib/strtod_l.c (round_and_return): Use math_force_eval instead of volatile. * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use math_check_force_underflow. * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise. * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use volatile when forcing underflow. * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise. * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use math_check_force_underflow. * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise. * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise. * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise. * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use math_check_force_underflow. * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise. * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval instead of volatile. * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use math_check_force_underflow. * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise. * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use math_check_force_underflow. * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise. * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise. * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise. * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use math_check_force_underflow. * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise. * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise. * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise. * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise. * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise. * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise. * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise. * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise. * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise. * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise. * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise. * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl): Likewise. * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r): Likewise. * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use math_check_force_underflow. * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise. * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl): Likewise. * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise. * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise. * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise. * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise. * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise. * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise. * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval instead of volatile. * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use math_check_force_underflow. * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use math_check_force_underflow. * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use math_check_force_underflow. * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise. * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise. * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise. * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise. * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise. * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise. * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use math_check_force_underflow. * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise. * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise. * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use math_check_force_underflow_nonneg. * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use math_check_force_underflow. * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise. * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval instead of volatile. * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use math_check_force_underflow. * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval. * stdlib/strtod_l.c: Include . (overflow_value): Use math_narrow_eval. (underflow_value): Likewise. * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise. (__ieee754_gamma_r): Likewise. * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf): Likewise. * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Likewise. * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise. * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise. * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise. * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise. * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise. (__ieee754_gammaf_r): Likewise. * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Likewise. * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise. * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise. * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise. * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise. * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use volatile. * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise. * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use math_narrow_eval. * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product): Likewise. * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use volatile. * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise. * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use math_narrow_eval. * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf): Likewise. * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf): Likewise. 2015-09-22 H.J. Lu * nptl/Versions: Remove ignored symbols. 2015-09-22 Florian Weimer * nss/bug17079.c: Renamed from nss/bug18287.c. Add description. * nss/Makefile (tests): Update. 2015-09-22 Florian Weimer * nss/bug18287.c: New file. * nss/Makefile (tests): Add bug18287. 2015-09-22 Samuel Thibault * mach/Versions (__mach_host_self_): Add symbol. 2015-09-21 Samuel Thibault * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of vm_page_size. 2015-09-19 Samuel Thibault Really fix sysdeps/i386/fpu/s_scalbn.S build * math/Versions (libc: GLIBC_2_20): New (empty) version set. (libc: GLIBC_2_22): Remove unused version set. 2015-09-18 Mike Frysinger * config.make.in (enable-timezone-tools): New variable. * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag. (enable_timezone_tools): Export to generated files. * configure: Regenerate. * INSTALL: Regenerate. * manual/install.texi (--disable-timezone-tools): Document new flag. * timezone/Makefile (install-sbin, install-bin-script): Wrap in a ifeq ($(enable-timezone-tools),yes) check. 2015-09-18 Joseph Myers * timezone/Makefile: Revert previous change. [BZ #18980] * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro. (DEFINE_DBL_MIN): Likewise. (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise. (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise. (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise. (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise. * sysdeps/i386/fpu/e_exp.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN. (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG. * sysdeps/i386/fpu/e_exp10.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN. * sysdeps/i386/fpu/e_exp10f.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN. * sysdeps/i386/fpu/e_exp2.S: Include . (dbl_min): Replace with use of DEFINE_DBL_MIN. (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN. * sysdeps/i386/fpu/e_exp2f.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN. * sysdeps/i386/fpu/e_expf.S: Include . (flt_min): Replace with use of DEFINE_FLT_MIN. (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN. (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG. * sysdeps/i386/fpu/e_hypot.S: Include . (__ieee754_hypot): Use DBL_NARROW_EVAL. * sysdeps/i386/fpu/e_hypotf.S: Include . (__ieee754_hypotf): Use FLT_NARROW_EVAL. * sysdeps/i386/fpu/e_pow.S: Include . (__ieee754_pow): Use DBL_NARROW_EVAL. * sysdeps/i386/fpu/e_powf.S: Include . (__ieee754_powf): Use FLT_NARROW_EVAL. * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S (__ieee754_expf_sse2): Convert double-precision result to single precision. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-09-18 Wilco Dijkstra * timezone/Makefile: Ignore unused variable errors due to private.h (time_t_min) and (time_t_max). * timezone/private.h (time_t_min): Revert removal. (time_t_max): Likewise. 2015-09-18 Joseph Myers [BZ #18981] * sysdeps/i386/fpu/i386-math-asm.h: New file. * sysdeps/i386/fpu/e_scalb.S: Include . (__ieee754_scalb): Use DBL_NARROW_EVAL. * sysdeps/i386/fpu/e_scalbf.S: Include . (__ieee754_scalbf): Use FLT_NARROW_EVAL. * sysdeps/i386/fpu/s_scalbn.S: Include . (__scalbn): Use DBL_NARROW_EVAL. * sysdeps/i386/fpu/s_scalbnf.S: Include . (__scalbnf): Use FLT_NARROW_EVAL. 2015-09-18 Wilco Dijkstra * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check. * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise. * math/w_tgammal.c (__ieee754_gammal_r): Likewise. * stdio-common/printf_fp.c (___printf_fp): Use signbit to get the sign. Use isinf macro to allow inlining. * stdio-common/printf_fphex.c (__printf_fphex): Likewise. * stdio-common/printf_size.c (__printf_size): Likewise. 2015-09-18 Mike Frysinger * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory). 2015-09-18 Joseph Myers [BZ #18980] * sysdeps/generic/math_private.h: Include . (math_narrow_eval): New macro. [FLT_EVAL_METHOD != 0] (excess_precision): Likewise. * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use math_narrow_eval on overflowing return value. * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Likewise. * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise. * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise. * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise. * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise. 2015-09-18 Wilco Dijkstra * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl. * math/Makefile: Remove isinf_ns.c. * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf. * math/multc3.c (__multc3): Likewise. * math/s_casin.c (__casin): Likewise. * math/s_casinf.c (__casinf): Likewise. * math/s_casinl.c (__casinl): Likewise. * math/s_cproj.c (__cproj): Likewise. * math/s_cprojf.c (__cprojf): Likewise. * math/s_cprojl.c (__cprofl): Likewise. * math/s_ctan.c (__ctan): Likewise. * math/s_ctanf.c (__ctanf): Likewise. * math/s_ctanh.c (__ctanh): Likewise. * math/s_ctanhf.c (__ctanhf): Likewise. * math/s_ctanhl.c (__ctanhl): Likewise. * math/s_ctanl.c (__ctanl): Likewise. * math/w_fmod.c (__fmod): Likewise. * math/w_fmodf.c (__fmodf): Likewise. * math/w_fmodl.c (_fmodl): Likewise. * math/w_remainder.c (__remainder): Likewise. * math/w_remainderf.c (__remainderf): Likewise. * math/w_remainderl.c (__remainderl): Likewise. * math/w_scalb.c (__scalb): Likewise. * math/w_scalbf.c (__scalbf): Likewise. * math/w_scalbl.c (__scalbl): Likewise. * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file. * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns with isinf. * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file. * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file. * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace __isinf_nsf with isinf. * sysdeps/ieee754/flt-32/math_private.h: Deleted file. * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file. * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file. * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl with isinf. * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace __isinf_nsl with isinf. * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl with isinf. * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file. * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace __isinf_nsl with isinf. * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file. * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl with isinf. 2015-09-18 Wilco Dijkstra * resolv/base64.c (rcsid): Remove unused static. * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused static. (tqpi1): Likewise. * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise. * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise. * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise. * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise. * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise. * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise. * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise. * timezone/private.h (time_t_min): Likewise. (time_t_max): Likewise. 2015-09-18 H.J. Lu * sysdeps/nptl/jmp-unwind.c: Include instead of . (_longjmp_unwind): Use __libc_ptf_call. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise. 2015-09-18 David Lamparter * sysdeps/arm/setjmp.S: Change PIC to SHARED. * sysdeps/arm/__longjmp.S: Likewise 2015-09-18 Wilco Dijkstra * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit): Use __builtin_signbit. * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf): Use __builtin_signbitf. * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl): Use __builtin_signbitl. * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise. * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise. 2015-09-18 Wilco Dijkstra [BZ #15367] [BZ #17441] * math/Makefile: Build test-snan.c with -fsignaling-nans. * math/math.h (fpclassify): Use __builtin_fpclassify when available. (signbit): Use __builtin_signbit(f/l). (isfinite): Use__builtin_isfinite. (isnormal): Use __builtin_isnormal. (isnan): Use __builtin_isnan. (isinf): Use __builtin_isinf_sign. 2015-09-18 Wilco Dijkstra * benchtests/Makefile: Add bench-math-inlines, link with libm. * benchtests/bench-math-inlines.c: New benchmark. * benchtests/bench-util.h: New file. * benchtests/bench-util.c: New file. * benchtests/bench-skeleton.c: Add include of bench-util.c/h. 2015-09-18 Carlos O'Donell * elf/tst-dlmopen1.c: Define TEST_SO. (do_test): Use TEST_SO. * elf/dl-load.c: Include libc-internal.h. (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN. 2015-09-18 Vincent Bernat [BZ #17887] * time/strptime_l.c (__strptime_internal): Make %z accept [+-]HH:MM time zones. 2015-09-18 Vincent Bernat [BZ #17886] * time/strptime_l.c (__strptime_internal): Make %z accept Z as a valid time zone. 2015-09-17 Mike Frysinger * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete. * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete. * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__ASSUME_FDATASYNC): Delete. 2015-09-17 Joseph Myers * conform/linknamespace.pl: Require weak undefined symbols to be in the standard namespace. (%strong_syms): Rename to %seen_syms. (%strong_seen): Rename to %seen_where. 2015-09-17 H.J. Lu [BZ #18970] * misc/error.c (error): Replace pthread_setcancelstate with __pthread_setcancelstate. (error_at_line): Likewise. * posix/wordexp.c (parse_comm): Likewise. * stdlib/fmtmsg.c (fmtmsg): Likewise. * nptl/forward.c (pthread_setcancelstate): Renamed to ... (__pthread_setcancelstate): This. (pthread_setcancelstate): Add an alias. * nptl/nptl-init.c (pthread_functions): Replace ptr_pthread_setcancelstate with ptr___pthread_setcancelstate. * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise. * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with hidden_proto. * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark it with hidden_def. * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New. (pthread_setcancelstate): Renamed to ... (__pthread_setcancelstate): This. * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use __libc_ptf_call with __pthread_setcancelstate. 2015-09-17 Joseph Myers Andreas Schwab [BZ #17118] * math/s_ctan.c (__ctan): Determine sign of zero real part of result when imaginary part of argument is infinite using sine and cosine. * math/s_ctanf.c (__ctanf): Likewise. * math/s_ctanl.c (__ctanl): Likewise. * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part of result when real part of argument is infinite using sine and cosine. * math/s_ctanhf.c (__ctanhf): Likewise. * math/s_ctanhl.c (__ctanhl): Likewise. * math/libm-test.inc (ctan_test_data): Add more tests of ctan. (ctanh_test_data): Add more tests of ctanh. 2015-09-17 Joseph Myers [BZ #15384] * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as bit-mask as in subtraction. * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite): Likewise. * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise. * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise. [BZ #18951] * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force underflow exception for small results. * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise. * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r): Likewise. * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Likewise. * math/auto-libm-test-in: Add more tests of tgamma. * math/auto-libm-test-out: Regenerated. 2015-09-17 Andreas Schwab * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd. 2015-09-16 Joseph Myers [BZ #18977] * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do not declare. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1): Likewise. [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn): Likewise. * conform/data/math.h-data [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect function. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise. [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise. [BZ #6803] * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp. [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp. * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf. * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl. * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias. * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise. * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise. * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise. [NO_LONG_DOUBLE] (scalbnl): Likewise. * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn): Likewise. [NO_LONG_DOUBLE] (scalbnl): Likewise. * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise. * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove long_double_symbol calls. * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise. * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as strong alias of __ldexpl. (scalbnl): Define using long_double_symbol. * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)): Remove alias. * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise. * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise. * math/libm-test.inc (scalbn_test_data): Add errno expectations. (scalbln_test_data): Add more errno expectations. 2015-09-16 Justus Winter <4winter@informatik.uni-hamburg.de> Cache the host port like we cache the task port. This way we do not need to call the kernel just to get the port. Furthermore, we no longer increase the reference count on every invocation of `mach_host_self'. * mach/mach/mach_traps.h (__mach_host_self, mach_host_self): Protect declarations against the macro expansion. * mach/mach_init.c (__mach_host_self_): New variable. (mach_init): Initialize `__mach_host_self_'. * mach/mach_init.h (__mach_host_self_): New declaration. (__mach_host_self, mach_host_self): New macros. * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Release reference. 2015-09-16 Joseph Myers [BZ #4404] * po/de.po: Update from Translation Project. [BZ #16415] * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable. (__expm1l): Remove code to handle positive infinity and overflow. * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove variable. (__expm1l): Remove code to handle positive infinity and overflow. 2015-09-16 Paul Eggert Paul Pluzhnikov [BZ #18872] * stdio-common/Makefile (tst-printf-bz18872): New test. (tst-printf-bz18872-mem.out): Likewise. * stdio-common/tst-printf-bz18872.sh: Generate new test. * stdio-common/vfprintf.c: Fix memory leaks. 2015-09-16 Andreas Schwab [BZ #17244] * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl): Remove extra va_start/va_end calls. [BZ #17243] * posix/execl.c (execl): Add missing va_end. * posix/execle.c (execle): Likewise. * posix/execlp.c (execlp): Likewise. 2015-09-15 Roland McGrath * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX] (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX. 2015-09-15 Joseph Myers [BZ #18967] * math/math.h (__MATH_DECLARING_DOUBLE): New macro. Define and undefine around includes of . * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do not declare function. [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise. [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)] (scalb): Likewise. * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do not define macro. * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove variable. (test-xfail-XOPEN2K/tgmath.h/conform): Likewise. (test-xfail-XOPEN2K8/math.h/conform): Likewise. (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise. [BZ #18857] * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just return non-finite argument without doing ordered comparisons on it. [BZ #16296] * math/fenv.h (fegetround): Use __attribute_pure__. * include/fenv.h (__fegetround): Likewise. [BZ #18595] * math/s_ctan.c (__ctan): Force underflow exception for results whose real or imaginary part has small absolute value. * math/s_ctanf.c (__ctanf): Likewise. * math/s_ctanh.c (__ctanh): Likewise. * math/s_ctanhf.c (__ctanhf): Likewise. * math/s_ctanhl.c (__ctanhl): Likewise. * math/s_ctanl.c (__ctanl): Likewise. * math/auto-libm-test-in: Do not allow missing underflow for ctan and ctanh. Add more tests of ctan and ctanh. [BZ #15918] * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify handling of cases where one argument is an infinity. [BZ #18875] [BZ #18966] * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object. (MO): New macro. (__ieee754_exp10): For small results, force underflow exception and remove excess range and precision from return value. * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object. (MO): New macro. (__ieee754_exp10f): For small results, force underflow exception and remove excess range and precision from return value. * math/auto-libm-test-in: Add more tests of exp10. * math/auto-libm-test-out: Regenerated. 2015-09-14 Joseph Myers [BZ #18875] [BZ #18961] * sysdeps/i386/fpu/e_exp.S (dbl_min): New object. (MO): New macro. (__ieee754_exp): For small results, force underflow exception and remove excess range and precision from return value. (__exp_finite): Likewise. * sysdeps/i386/fpu/e_expf.S (flt_min): New object. (MO): New macro. (__ieee754_expf): For small results, force underflow exception and remove excess range and precision from return value. (__expf_finite): Likewise. * math/auto-libm-test-in: Add more tests of exp. * math/auto-libm-test-out: Regenerated. [BZ #16521] [BZ #18875] * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for small results. * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object. (MO): New macro. (__ieee754_exp2): For small results, force underflow exception and remove excess range and precision from return value. * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object. (MO): New macro. (__ieee754_exp2f): For small results, force underflow exception and remove excess range and precision from return value. * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object. (MO): New macro. (__ieee754_exp2l): Force underflow exception for small results. * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise. * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise. * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object. (MO): New macro. (__ieee754_exp2l): Force underflow exception for small results. * math/auto-libm-test-in: Add more tests or exp2. * math/auto-libm-test-out: Regenerated. 2015-09-14 Carlos O'Donell * malloc/malloc.c (systrim): Use ALIGN_DOWN. * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from /dev/null. 2015-09-13 Samuel Thibault * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process)): Drop spurious backslash. 2015-09-12 Rasmus Villemoes * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages): Use sysinfo system call instead of parsing /proc/meminfo. * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages): Likewise. 2015-09-11 Mike Frysinger [BZ #16985] * programs/localedef.c (main): Display argv[remaining] when output_path is NULL. 2015-09-11 Joseph Myers * math/auto-libm-test-in: Add more tests of acos, acosh, asin, asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp, exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and tanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/mips/mips32/libm-test-ulps: Likewise. * sysdeps/mips/mips64/libm-test-ulps: Likewise. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-09-11 Roland McGrath * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers): Use 'override' keyword to freeze the value here, preventing the addition of sys/mtio.h by sysdeps/gnu/Makefile. 2015-09-11 Joseph Myers [BZ #14912] * sysdeps/aarch64/bits/atomic.h: Move to ... * sysdeps/aarch64/atomic-machine.h: ...here. (_AARCH64_BITS_ATOMIC_H): Rename macro to _AARCH64_ATOMIC_MACHINE_H. * sysdeps/alpha/bits/atomic.h: Move to ... * sysdeps/alpha/atomic-machine.h: ...here. * sysdeps/arm/bits/atomic.h: Move to ... * sysdeps/arm/atomic-machine.h: ...here. Update comments. * bits/atomic.h: Move to ... * sysdeps/generic/atomic-machine.h: ...here. (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/i386/bits/atomic.h: Move to ... * sysdeps/i386/atomic-machine.h: ...here. * sysdeps/ia64/bits/atomic.h: Move to ... * sysdeps/ia64/atomic-machine.h: ...here. * sysdeps/m68k/coldfire/bits/atomic.h: Move to ... * sysdeps/m68k/coldfire/atomic-machine.h: ...here. (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ... * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here. * sysdeps/microblaze/bits/atomic.h: Move to ... * sysdeps/microblaze/atomic-machine.h: ...here. * sysdeps/mips/bits/atomic.h: Move to ... * sysdeps/mips/atomic-machine.h: ...here. (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H. * sysdeps/powerpc/bits/atomic.h: Move to ... * sysdeps/powerpc/atomic-machine.h: ...here. Update comments. * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ... * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here. Update comments. Include instead of . * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ... * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here. Include instead of . * sysdeps/s390/bits/atomic.h: Move to ... * sysdeps/s390/atomic-machine.h: ...here. * sysdeps/sparc/sparc32/bits/atomic.h: Move to ... * sysdeps/sparc/sparc32/atomic-machine.h: ...here. (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ... * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here. * sysdeps/sparc/sparc64/bits/atomic.h: Move to ... * sysdeps/sparc/sparc64/atomic-machine.h: ...here. * sysdeps/tile/bits/atomic.h: Move to ... * sysdeps/tile/atomic-machine.h: ...here. * sysdeps/tile/tilegx/bits/atomic.h: Move to ... * sysdeps/tile/tilegx/atomic-machine.h: ...here. Include instead of . (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/tile/tilepro/bits/atomic.h: Move to ... * sysdeps/tile/tilepro/atomic-machine.h: ...here. Include instead of . (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ... * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here. Include instead of . * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ... * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here. (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ... * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here. (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H. * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ... * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here. (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H. * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ... * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here. * sysdeps/x86_64/bits/atomic.h: Move to ... * sysdeps/x86_64/atomic-machine.h: ...here. * include/atomic.h: Include instead of . * sysdeps/mips/mips32/libm-test-ulps: Update. * sysdeps/mips/mips64/libm-test-ulps: Likewise. [BZ #18952] * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do not convert non-integer negative arguments to int to determine the value of signgam. * math/auto-libm-test-in: Add more tests of lgamma. * math/auto-libm-test-out: Regenerated. * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt, cosh, csqrt, erfc, expm1 and lgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-09-10 Joseph Myers [BZ #2542] [BZ #2543] [BZ #2558] * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call __lgamma_neg for arguments from -28.0 to -2.0. * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call __lgamma_negf for arguments from -15.0 to -2.0. * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0. * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r): Call __lgamma_negl for arguments from -33.0 to -2.0. * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file. * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise. * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise. * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise. * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise. * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise. * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise. * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise. * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise. * sysdeps/generic/math_private.h (__lgamma_negf): New prototype. (__lgamma_neg): Likewise. (__lgamma_negl): Likewise. (__lgamma_product): Likewise. (__lgamma_productl): Likewise. * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product. * math/auto-libm-test-in: Add more tests of lgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-09-09 Justin Maggard [BZ #18675] * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64. 2015-09-08 Joseph Myers [BZ #14912] * bits/libc-lock.h: Move to ... * sysdeps/generic/libc-lock.h: ...here. (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H. * sysdeps/mach/hurd/bits/libc-lock.h: Move to ... * sysdeps/mach/hurd/libc-lock.h: ...here. (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H. [_LIBC]: Include instead of . * sysdeps/mach/bits/libc-lock.h: Move to ... * sysdeps/mach/libc-lock.h: ...here. (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H. * sysdeps/nptl/bits/libc-lock.h: Move to ... * sysdeps/nptl/libc-lock.h: ...here. (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H. * sysdeps/nptl/bits/libc-lockP.h: Move to ... * sysdeps/nptl/libc-lockP.h: ...here. (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H. * crypt/crypt_util.c: Include instead of . * dirent/scandir-tail.c: Likewise. * dlfcn/dlerror.c: Likewise. * elf/dl-close.c: Likewise. * elf/dl-iteratephdr.c: Likewise. * elf/dl-lookup.c: Likewise. * elf/dl-open.c: Likewise. * elf/dl-support.c: Likewise. * elf/dl-writev.h: Likewise. * elf/rtld.c: Likewise. * grp/fgetgrent.c: Likewise. * gshadow/fgetsgent.c: Likewise. * gshadow/sgetsgent.c: Likewise. * iconv/gconv_conf.c: Likewise. * iconv/gconv_db.c: Likewise. * iconv/gconv_dl.c: Likewise. * iconv/gconv_int.h: Likewise. * iconv/gconv_trans.c: Likewise. * include/link.h: Likewise. * inet/getnameinfo.c: Likewise. * inet/getnetgrent.c: Likewise. * inet/getnetgrent_r.c: Likewise. * intl/bindtextdom.c: Likewise. * intl/dcigettext.c: Likewise. * intl/finddomain.c: Likewise. * intl/gettextP.h: Likewise. * intl/loadmsgcat.c: Likewise. * intl/localealias.c: Likewise. * intl/textdomain.c: Likewise. * libidn/idn-stub.c: Likewise. * libio/libioP.h: Likewise. * locale/duplocale.c: Likewise. * locale/freelocale.c: Likewise. * locale/newlocale.c: Likewise. * locale/setlocale.c: Likewise. * login/getutent_r.c: Likewise. * login/getutid_r.c: Likewise. * login/getutline_r.c: Likewise. * login/utmp-private.h: Likewise. * login/utmpname.c: Likewise. * malloc/mtrace.c: Likewise. * misc/efgcvt.c: Likewise. * misc/error.c: Likewise. * misc/fstab.c: Likewise. * misc/getpass.c: Likewise. * misc/mntent.c: Likewise. * misc/syslog.c: Likewise. * nis/nis_call.c: Likewise. * nis/nis_callback.c: Likewise. * nis/nss-default.c: Likewise. * nis/nss_compat/compat-grp.c: Likewise. * nis/nss_compat/compat-initgroups.c: Likewise. * nis/nss_compat/compat-pwd.c: Likewise. * nis/nss_compat/compat-spwd.c: Likewise. * nis/nss_nis/nis-alias.c: Likewise. * nis/nss_nis/nis-ethers.c: Likewise. * nis/nss_nis/nis-grp.c: Likewise. * nis/nss_nis/nis-hosts.c: Likewise. * nis/nss_nis/nis-network.c: Likewise. * nis/nss_nis/nis-proto.c: Likewise. * nis/nss_nis/nis-pwd.c: Likewise. * nis/nss_nis/nis-rpc.c: Likewise. * nis/nss_nis/nis-service.c: Likewise. * nis/nss_nis/nis-spwd.c: Likewise. * nis/nss_nisplus/nisplus-alias.c: Likewise. * nis/nss_nisplus/nisplus-ethers.c: Likewise. * nis/nss_nisplus/nisplus-grp.c: Likewise. * nis/nss_nisplus/nisplus-hosts.c: Likewise. * nis/nss_nisplus/nisplus-initgroups.c: Likewise. * nis/nss_nisplus/nisplus-network.c: Likewise. * nis/nss_nisplus/nisplus-proto.c: Likewise. * nis/nss_nisplus/nisplus-pwd.c: Likewise. * nis/nss_nisplus/nisplus-rpc.c: Likewise. * nis/nss_nisplus/nisplus-service.c: Likewise. * nis/nss_nisplus/nisplus-spwd.c: Likewise. * nis/ypclnt.c: Likewise. * nptl/libc_pthread_init.c: Likewise. * nss/getXXbyYY.c: Likewise. * nss/getXXent.c: Likewise. * nss/getXXent_r.c: Likewise. * nss/nss_db/db-XXX.c: Likewise. * nss/nss_db/db-netgrp.c: Likewise. * nss/nss_db/nss_db.h: Likewise. * nss/nss_files/files-XXX.c: Likewise. * nss/nss_files/files-alias.c: Likewise. * nss/nsswitch.c: Likewise. * posix/regex_internal.h: Likewise. * posix/wordexp.c: Likewise. * pwd/fgetpwent.c: Likewise. * resolv/res_hconf.c: Likewise. * resolv/res_libc.c: Likewise. * shadow/fgetspent.c: Likewise. * shadow/lckpwdf.c: Likewise. * shadow/sgetspent.c: Likewise. * socket/opensock.c: Likewise. * stdio-common/reg-modifier.c: Likewise. * stdio-common/reg-printf.c: Likewise. * stdio-common/reg-type.c: Likewise. * stdio-common/vfprintf.c: Likewise. * stdio-common/vfscanf.c: Likewise. * stdlib/abort.c: Likewise. * stdlib/cxa_atexit.c: Likewise. * stdlib/fmtmsg.c: Likewise. * stdlib/random.c: Likewise. * stdlib/setenv.c: Likewise. * string/strsignal.c: Likewise. * sunrpc/auth_none.c: Likewise. * sunrpc/bindrsvprt.c: Likewise. * sunrpc/create_xid.c: Likewise. * sunrpc/key_call.c: Likewise. * sunrpc/rpc_thread.c: Likewise. * sysdeps/arm/backtrace.c: Likewise. * sysdeps/generic/ldsodefs.h: Likewise. * sysdeps/generic/stdio-lock.h: Likewise. * sysdeps/generic/unwind-dw2-fde.c: Likewise. * sysdeps/i386/backtrace.c: Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise. * sysdeps/m68k/backtrace.c: Likewise. * sysdeps/mach/hurd/cthreads.c: Likewise. * sysdeps/mach/hurd/dirstream.h: Likewise. * sysdeps/mach/hurd/malloc-machine.h: Likewise. * sysdeps/nptl/malloc-machine.h: Likewise. * sysdeps/nptl/stdio-lock.h: Likewise. * sysdeps/posix/dirstream.h: Likewise. * sysdeps/posix/getaddrinfo.c: Likewise. * sysdeps/posix/system.c: Likewise. * sysdeps/pthread/aio_suspend.c: Likewise. * sysdeps/s390/s390-32/backtrace.c: Likewise. * sysdeps/s390/s390-64/backtrace.c: Likewise. * sysdeps/unix/sysv/linux/check_pf.c: Likewise. * sysdeps/unix/sysv/linux/if_index.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise. * sysdeps/unix/sysv/linux/shm-directory.c: Likewise. * sysdeps/unix/sysv/linux/system.c: Likewise. * sysdeps/x86_64/backtrace.c: Likewise. * time/alt_digit.c: Likewise. * time/era.c: Likewise. * time/tzset.c: Likewise. * wcsmbs/wcsmbsload.c: Likewise. * nptl/tst-initializers1.c (do_test): Refer to instead of in comment. 2015-09-08 Andrew Bennett * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2): Only use .set mips2 if the current ISA is below mips2. * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set): Likewise. * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set mips32r2 if the current ISA is below mips32r2. * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define. (TLS_IE): Updated to use the TLD_RDHWR macro. (TLS_LE): Likewise. * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef __ASSEMBLER__ condition. 2015-09-08 Samuel Thibault Fix parallel build of before-compile targets. * sysdeps/mach/Makefile ($(patsubst mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated mach-before-compile target. * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process)): Move rule to dedicated hurd-before-compile target. 2015-09-06 Samuel Thibault Fix rules generating headers in hurd/ and mach/ when initial make call has subdir= explicitly set. * sysdeps/mach/Makefile ($(patsubst mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when calling $(MAKE). * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process)): Force subdir to hurd when calling $(MAKE). ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force subdir to mach when calling $(MAKE). 2015-09-06 Manolis Ragkousis Check sysheaders when looking for Mach and Hurd headers * sysdeps/mach/configure.ac: Add sysheaders check. * sysdeps/mach/configure: Regenerate. * sysdeps/mach/hurd/configure.ac: Add sysheaders check. * sysdeps/mach/hurd/configure: Regenerate. 2015-09-04 Roland McGrath [BZ #18921] * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]: Fix inverted sense of test of 'o_directory_works' value. Reported by Pádraig Brady , diagnosed by Bernhard Voelker . 2015-09-04 Joseph Myers [BZ #14912] * bits/linkmap.h: Move to ... * sysdeps/generic/linkmap.h: ...here. * sysdeps/aarch64/bits/linkmap.h: Move to ... * sysdeps/aarch64/linkmap.h: ...here. * sysdeps/arm/bits/linkmap.h: Move to ... * sysdeps/arm/linkmap.h: ...here. * sysdeps/hppa/bits/linkmap.h: Move to ... * sysdeps/hppa/linkmap.h: ...here. * sysdeps/ia64/bits/linkmap.h: Move to ... * sysdeps/ia64/linkmap.h: ...here. * sysdeps/mips/bits/linkmap.h: Move to ... * sysdeps/mips/linkmap.h: ...here. * sysdeps/s390/bits/linkmap.h: Move to ... * sysdeps/s390/linkmap.h: ...here. * sysdeps/sh/bits/linkmap.h: Move to ... * sysdeps/sh/linkmap.h: ...here. * sysdeps/x86/bits/linkmap.h: Move to ... * sysdeps/x86/linkmap.h: ...here. * include/link.h: Include instead of . 2015-09-04 Andreas Schwab [BZ #18635] * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S (__makecontext): Terminate FDE before return label. (__novec_makecontext): Likewise. 2015-09-04 Carlos Eduardo Seo * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the first member of struct sv in syscall macro. 2015-09-04 Joseph Myers [BZ #14912] * bits/stdio-lock.h: Move to ... * sysdeps/generic/stdio-lock.h: ...here. (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H. * sysdeps/nptl/bits/stdio-lock.h: Move to ... * sysdeps/nptl/stdio-lock.h: ...here. (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H. * include/libio.h: Include instead of . * sysdeps/nptl/fork.c: Likewise. * sysdeps/pthread/flockfile.c: Likewise. * sysdeps/pthread/ftrylockfile.c: Likewise. * sysdeps/pthread/funlockfile.c: Likewise. [BZ #14912] * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ... * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here. * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include instead of . * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise. * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise. * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise. 2015-09-03 Roland McGrath * elf/Makefile (test-xfail-tst-protected1a): New variable. (test-xfail-tst-protected1b): New variable. 2015-09-03 Joseph Myers [BZ #14912] * bits/libc-tsd.h: Move to ... * sysdeps/generic/libc-tsd.h: ...here. (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H. * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ... * sysdeps/mach/hurd/libc-tsd.h: ...here. (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H. * include/ctype.h: Include instead of . * include/rpc/rpc.h: Likewise. * locale/localeinfo.h: Likewise. * sunrpc/rpc_thread.c: Likewise. * sysdeps/mach/hurd/malloc-machine.h: Likewise. * sysdeps/nptl/malloc-machine.h: Likewise. * Makefile (headers): Remove bits/libc-lock.h. * libio/Makefile (headers): Remove bits/stdio-lock.h. * libio/libio.h [_IO_MTSAFE_IO]: Remove include of and commented-out include of . * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include . * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine. * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise. 2015-09-01 Paul Pluzhnikov [BZ #18757] * libio/iofopncook.c (_IO_fopencookie): Set errno on failure. * libio/test-fmemopen.c (do_bz18820): Extend the test to cover BZ #18757. 2015-09-01 Paul Pluzhnikov * malloc/mtrace.pl: Filter out NULL entries. 2015-09-01 Joseph Myers * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro. * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New macro. * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro. (TCP_CC_INFO): Likewise. (TCP_SAVE_SYN): Likewise. (TCP_SAVED_SYN): Likewise. 2015-08-31 Brett Neumeier [BZ #18870] * sysdeps/sparc/sparc32/sem_open.c: Add missing #include 2015-08-31 Paul Eggert [BZ #18873] Fix broken overflow check in posix_fallocate * sysdeps/posix/posix_fallocate.c (posix_fallocate): * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64): Fix parenthesization typo. 2015-08-28 Mike Frysinger [BZ #18887] * misc/Makefile (tests): Add tst-mntent-blank-corrupt and tst-mntent-blank-passno. * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0]. * misc/tst-mntent-blank-corrupt.c: New test. * misc/tst-mntent-blank-passno.c: New test ripped from ... * misc/tst-mntent.c (do_test): ... here. 2015-08-29 Mike Frysinger [BZ #4404] * po/de.po: Fix SIGALRM typo. 2015-08-28 James Perkins * time/tst-strptime2.c (tests): Replace short list of test strings for strptime %z specifier with code which exhaustively tests every combination of sign and 0 to 5 digits. Tests for rejection of invalid strings. 2015-08-28 James Perkins [BZ #16141] * time/strptime_l.c (__strptime_internal): Fix %z minutes calculation, removing incorrect decimal time rounding, so that all minute values result in a valid seconds value. * time/strptime_l.c (__strptime_internal): Extend %z time zone offset range limits to UTC-99:59 through UTC+99:59 to parse current and historical use cases. * time/tst-strptime2.c (tests): Modify and add tests for the strptime %z input field descriptor, specifically conversion of minutes to seconds and validating an offset range of -9959 to +9959. 2015-08-27 Adhemerval Zanella Dmitry V. Levin [BZ #18877] * posix/Makefile (tests): Add tst-mmap-offset. * posix/tst-mmap.c: New file. * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix offset calculation for negative values. 2015-08-27 H.J. Lu * sysdeps/i386/init-arch.h: New file. * sysdeps/i386/i586/init-arch.h: Likewise. * sysdeps/i386/i686/init-arch.h: Likewise. * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586 bit if CX8 is available. Set bit_I686 bit if CMOV is available. * sysdeps/x86/cpu-features.h (bit_I586): New. (bit_I686): Likewise. (bit_CX8): Likewise. (bit_CMOV): Likewise. (index_CX8): Likewise. (index_CMOV): Likewise. (index_I586): Likewise. (index_I686): Likewise. (reg_CX8): Likewise. (reg_CMOV): Likewise. (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't available at compile-time. (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't available at compile-time. * sysdeps/x86/init-arch.h (USE_I586): New macro. (USE_I686): Likewise. 2015-08-27 H.J. Lu * sysdeps/i386/bcopy.S: New file. * sysdeps/i386/bzero.S: Likewise. * sysdeps/i386/memcpy.S: Likewise. * sysdeps/i386/memmove.S: Likewise. * sysdeps/i386/mempcpy.S: Likewise. * sysdeps/i386/memset.S: Likewise. * sysdeps/i386/bzero.c: Removed. * sysdeps/i386/memset.c: Likewise. * sysdeps/i386/i586/memcpy_chk.S: Likewise. * sysdeps/i386/i586/mempcpy_chk.S: Likewise. * sysdeps/i386/i586/memset_chk.S: Likewise. * sysdeps/i386/i686/memcpy_chk.S: Moved to ... * sysdeps/i386/memcpy_chk.S: Here. * sysdeps/i386/i686/memmove_chk.S: Moved to ... * sysdeps/i386/memmove_chk.S: Here. * sysdeps/i386/i686/mempcpy_chk.S: Moved to ... * sysdeps/i386/mempcpy_chk.S: Likewise. * sysdeps/i386/i686/memset_chk.S: Moved to ... * sysdeps/i386/memset_chk.S: Likewise. 2015-08-27 Steve Ellcey * soft-fp/fmasf4.c: Add include of sys/cdefs.h. Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of file, move DIAG_POP_NEEDS_COMMENT to end of file. * soft-fp/fmadf4.c: Ditto. * soft-fp/fmatf4.c: Ditto. 2015-08-27 H.J. Lu * sysdeps/i386/i586/Implies: Removed. * sysdeps/i386/i686/Implies: Likewise. 2015-08-27 H.J. Lu * sysdeps/i386/i486/strlen.S: Moved to ... * sysdeps/i386/strlen.S: Here. 2015-08-27 H.J. Lu * sysdeps/i386/i486/strcat.S: Moved to ... * sysdeps/i386/strcat.S: Here. 2015-08-27 H.J. Lu * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ... * sysdeps/i386/pthread_spin_trylock.S: Here. * sysdeps/i386/i586/pthread_spin_trylock.S: Removed. * sysdeps/i386/i686/pthread_spin_trylock.S: Updated. 2015-08-27 H.J. Lu * sysdeps/i386/i486/string-inlines.c: Moved to ... * sysdeps/i386/string-inlines.c: Here. 2015-08-27 H.J. Lu * sysdeps/i386/i486/htonl.S: Moved ... * sysdeps/i386/htonl.S: here. 2015-08-27 H.J. Lu * sysdeps/i386/i486/bits/atomic.h: Moved to ... * sysdeps/i386/bits/atomic.h: Here. 2015-08-27 H.J. Lu * sysdeps/i386/i486/Versions: Removed. 2015-08-27 Gleb Fotengauer-Malinovskiy [BZ #2898] * misc/mktemp.c: Add mkdtemp to the link_warning message. Based on patch by Aurelien Jarno. 2015-08-26 Stan Shebs * sysdeps/ieee754/ldbl-96/k_tanl.c: Include . (__kernel_tanl): Ignore uninitialized warnings around use of SIGN. 2015-08-26 Carlos Eduardo Seo * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC. * sysdeps/powerpc/dl-procinfo.c: (_dl_powerpc_cap_flags): Added descriptor for this hwcap feature so it shows when LD_SHOW_AUXV=1. 2015-08-26 Paul E. Murphy * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__arch_compare_and_exchange_val_32_acq): Remove and use common definition. ISA 2.07B no longer requires full sync. 2015-08-26 Mike Frysinger [BZ #18863] * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys. (si_call_addr): Define. (si_syscall): Define. (si_arch): Define. 2015-08-26 H.J. Lu * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New. * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise. * sysdeps/i386/i586/memset.S (BZERO_P): Removed. Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC. (__memset_zero_constant_len_parameter): New. * sysdeps/i386/i686/memset.S (BZERO_P): Removed. Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC. (__memset_zero_constant_len_parameter): Don't define if __memset_chk or USE_AS_BZERO are defined. * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed. Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC. * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New. * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os, tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ... * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os, tests-special, $(objpfx)tst-ld-sse-use.out): Here. Update comments. * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add -mno-mmx for $(all-rtld-routines). * sysdeps/x86/tst-ld-sse-use.sh: Moved to ... * sysdeps/i386/tst-ld-sse-use.sh: Here. Replace x86-64 with i386. 2015-08-26 Stefan Liebler * sysdeps/generic/unwind.h (_Unwind_Word): Use __mode__(__unwind_word__) instead of __mode__(__word__). (_Unwind_Sword): Likewise. * sysdeps/s390/s390-64/utf8-utf16-z9.c (MAX_NEEDED_INPUT): New define. (MAX_NEEDED_OUTPUT): New define. * NEWS: New item for IBM z13 string optimizations. * sysdeps/s390/multiarch/memrchr-c.c: New File. * sysdeps/s390/multiarch/memrchr-vx.S: Likewise. * sysdeps/s390/multiarch/memrchr.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memrchr functions. * sysdeps/s390/multiarch/ifunc-impl-list-common.c (__libc_ifunc_impl_list_common): Add ifunc test for memrchr. * sysdeps/s390/multiarch/wmemcmp-c.c: New File. * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise. * sysdeps/s390/multiarch/wmemcmp.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add wmemcmp functions. * sysdeps/s390/multiarch/ifunc-impl-list-common.c (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp. * benchtests/bench-wmemcmp.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wmemcmp. * sysdeps/s390/multiarch/wmemset-c.c: New File. * sysdeps/s390/multiarch/wmemset-vx.S: Likewise. * sysdeps/s390/multiarch/wmemset.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add wmemset functions. * sysdeps/s390/multiarch/ifunc-impl-list-common.c (__libc_ifunc_impl_list_common): Add ifunc test for wmemset. * wcsmbs/wmemset.c: Use WMEMSET if defined. * string/test-memset.c: Add wmemset support. * wcsmbs/test-wmemset.c: New File. * wcsmbs/Makefile (strop-tests): Add wmemset. * benchtests/bench-memset.c: Add wmemset support. * benchtests/bench-wmemset.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wmemset. * sysdeps/s390/multiarch/memccpy-c.c: New File. * sysdeps/s390/multiarch/memccpy-vx.S: Likewise. * sysdeps/s390/multiarch/memccpy.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memccpy functions. * sysdeps/s390/multiarch/ifunc-impl-list-common.c (__libc_ifunc_impl_list_common): Add ifunc test for memccpy. * string/memccpy.c: Use MEMCCPY if defined. * sysdeps/s390/multiarch/memchr-vx.S: New File. * sysdeps/s390/multiarch/memchr.c: Likewise. * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise. * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise. * sysdeps/s390/multiarch/rawmemchr.c: Likewise. * sysdeps/s390/multiarch/wmemchr-c.c: Likewise. * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise. * sysdeps/s390/multiarch/wmemchr.c: Likewise. * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise. * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr and rawmemchr functions. * sysdeps/s390/multiarch/ifunc-impl-list-common.c (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr and wmemchr. * wcsmbs/wmemchr.c: Use WMEMCHR if defined. * string/test-memchr.c: Add wmemchr support. * wcsmbs/test-wmemchr.c: New File. * wcsmbs/Makefile (strop-tests): Add wmemchr. * benchtests/bench-memchr.c: Add wmemchr support. * benchtests/bench-wmemchr.c: New File. * benchtests/Makefile (wcsmbs-bench): wmemchr. * sysdeps/s390/multiarch/strcspn-c.c: New File. * sysdeps/s390/multiarch/strcspn-vx.S: Likewise. * sysdeps/s390/multiarch/strcspn.c: Likewise. * sysdeps/s390/multiarch/wcscspn-c.c: Likewise. * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise. * sysdeps/s390/multiarch/wcscspn.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and wcscspn functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn. * wcsmbs/wcscspn.c: Use WCSCSPN if defined. * string/test-strcspn.c: Add wcscspn support. * wcsmbs/test-wcscspn.c: New File. * wcsmbs/Makefile (strop-tests): Add wcscspn. * benchtests/bench-strcspn.c: Add wcscspn support. * benchtests/bench-wcscspn.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcscspn. * sysdeps/s390/multiarch/strpbrk-c.c: New File. * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise. * sysdeps/s390/multiarch/strpbrk.c: Likewise. * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise. * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise. * sysdeps/s390/multiarch/wcspbrk.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and wcspbrk functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk. * wcsmbs/wcspbrk.c: Use WCSPBRK if defined. * string/test-strpbrk.c: Add wcspbrk support. * wcsmbs/test-wcspbrk.c: New File. * wcsmbs/Makefile (strop-tests): Add wcspbrk. * benchtests/bench-strpbrk.c: Add wcspbrk support. * benchtests/bench-wcspbrk.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcspbrk. * sysdeps/s390/multiarch/strspn-c.c: New File. * sysdeps/s390/multiarch/strspn-vx.S: Likewise. * sysdeps/s390/multiarch/strspn.c: Likewise. * sysdeps/s390/multiarch/wcsspn-c.c: Likewise. * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise. * sysdeps/s390/multiarch/wcsspn.c: Likewise. * wcsmbs/wcsspn.c: Use WCSSPN if defined. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and wcsspn functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn. * string/test-strspn.c: Add wcsspn support. * wcsmbs/test-wcsspn.c: New File. * wcsmbs/Makefile (strop-tests): Add wcsspn. * benchtests/bench-strspn.c: Add wcsspn support. * benchtests/bench-wcsspn.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcsspn. * sysdeps/s390/multiarch/strrchr-c.c: New File. * sysdeps/s390/multiarch/strrchr-vx.S: Likewise. * sysdeps/s390/multiarch/strrchr.c: Likewise. * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise. * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise. * sysdeps/s390/multiarch/wcsrchr.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and wcsrchr functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr. * benchtests/bench-wcsrchr.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcsrchr. * sysdeps/s390/multiarch/strchrnul-c.c: New File. * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise. * sysdeps/s390/multiarch/strchrnul.c: Likewise. * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise. * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise. * sysdeps/s390/multiarch/wcschrnul.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and wcschrnul functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul. * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined. * string/test-strchr.c: Add wcschrnul support. * wcsmbs/test-wcschrnul.c: New File. * wcsmbs/Makefile (strop-tests): Add wcschrnul. * benchtests/bench-strchr.c: Add wcschrnul support. * benchtests/bench-wcschrnul.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcschrnul. * sysdeps/s390/multiarch/strchr-c.c: New File. * sysdeps/s390/multiarch/strchr-vx.S: Likewise. * sysdeps/s390/multiarch/strchr.c: Likewise. * sysdeps/s390/multiarch/wcschr-c.c: Likewise. * sysdeps/s390/multiarch/wcschr-vx.S: Likewise. * sysdeps/s390/multiarch/wcschr.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and wcschr functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr. * string/strchr.c (STRCHR): Define and use macro. * benchtests/bench-wcschr.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcschr. * sysdeps/s390/multiarch/strncmp-c.c: New File. * sysdeps/s390/multiarch/strncmp-vx.S: Likewise. * sysdeps/s390/multiarch/strncmp.c: Likewise. * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise. * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise. * sysdeps/s390/multiarch/wcsncmp.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and wcsncmp functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp. * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro. * benchtests/bench-strncmp.c: Add wcsncmp support. * benchtests/bench-wcsncmp.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcsncmp. * sysdeps/s390/multiarch/strcmp-vx.S: New File. * sysdeps/s390/multiarch/strcmp.c: Likewise. * sysdeps/s390/multiarch/wcscmp-c.c: Likewise. * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise. * sysdeps/s390/multiarch/wcscmp.c: Likewise. * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise. * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and wcscmp functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp. * string/strcmp.c (STRCMP): Define and use macro. * benchtests/bench-wcscmp.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcscmp. * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp instead of _HAVE_STRING_ARCH_memchr. * sysdeps/s390/multiarch/strncat-c.c: New File. * sysdeps/s390/multiarch/strncat-vx.S: Likewise. * sysdeps/s390/multiarch/strncat.c: Likewise. * sysdeps/s390/multiarch/wcsncat-c.c: Likewise. * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise. * sysdeps/s390/multiarch/wcsncat.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and wcsncat functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat. * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro. * string/test-strncat.c: Add wcsncat support. * wcsmbs/test-wcsncat.c: New File. * wcsmbs/Makefile (strop-tests): Add wcsncat. * benchtests/bench-strncat.c: Add wcsncat support. * benchtests/bench-wcsncat.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcsncat. * sysdeps/s390/multiarch/strcat-c.c: New File. * sysdeps/s390/multiarch/strcat-vx.S: Likewise. * sysdeps/s390/multiarch/strcat.c: Likewise. * sysdeps/s390/multiarch/wcscat-c.c: Likewise. * sysdeps/s390/multiarch/wcscat-vx.S: Likewise. * sysdeps/s390/multiarch/wcscat.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and wcscat functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat. * string/strcat.c (STRCAT): Define and use macro. * wcsmbs/wcscat.c: Use WCSCAT if defined. * string/test-strcat.c: Add wcscat support. * wcsmbs/test-wcscat.c: New File. * wcsmbs/Makefile (strop-tests): Add wcscat. * benchtests/bench-strcat.c: Add wcscat support. * benchtests/bench-wcscat.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcscat. * sysdeps/s390/multiarch/stpncpy-c.c: New File. * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise. * sysdeps/s390/multiarch/stpncpy.c: Likewise. * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise. * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise. * sysdeps/s390/multiarch/wcpncpy.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and wcpncpy functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy. * wcsmbs/wcpncpy.c: Use WCPNCPY if defined. * string/test-stpncpy.c: Add wcpncpy support. * wcsmbs/test-wcpncpy.c: New File. * wcsmbs/Makefile (strop-tests): Add wcpncpy. * benchtests/bench-stpncpy.c: Add wcpncpy support. * benchtests/bench-wcpncpy.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcpncpy. * sysdeps/s390/multiarch/strncpy-vx.S: New File. * sysdeps/s390/multiarch/strncpy.c: Likewise. * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise. * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise. * sysdeps/s390/multiarch/wcsncpy.c: Likewise. * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise. * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and wcsncpy functions. * wcsmbs/wcsncpy.c: Use WCSNCPY if defined. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy. * string/test-strncpy.c: Add wcsncpy support. * wcsmbs/test-wcsncpy.c: New File. * wcsmbs/Makefile (strop-tests): Add wcsncpy. * benchtests/bench-strncpy.c: Add wcsncpy support. * benchtests/bench-wcsncpy.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcsncpy * sysdeps/s390/multiarch/stpcpy-c.c: New File. * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise. * sysdeps/s390/multiarch/stpcpy.c: Likewise. * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise. * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise. * sysdeps/s390/multiarch/wcpcpy.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and wcpcpy functions. * string/stpcpy.c: Use STPCPY if defined. * wcsmbs/wcpcpy.c: Use WCPCPY if defined. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy. * string/test-stpcpy.c: Add wcpcpy support. * wcsmbs/test-wcpcpy.c: New File. * wcsmbs/Makefile (strop-tests): Add wcpcpy. * benchtests/bench-stpcpy.c: Add wcpcpy support. * benchtests/bench-wcpcpy.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcpcpy. * sysdeps/s390/multiarch/strcpy-vx.S: New File. * sysdeps/s390/multiarch/strcpy.c: Likewise. * sysdeps/s390/multiarch/wcscpy-c.c: Likewise. * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise. * sysdeps/s390/multiarch/wcscpy.c: Likewise. * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise. * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and wcscpy functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy. * benchtests/bench-wcscpy.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcscpy. * sysdeps/s390/multiarch/strnlen-c.c: New File. * sysdeps/s390/multiarch/strnlen-vx.S: Likewise. * sysdeps/s390/multiarch/strnlen.c: Likewise. * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise. * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise. * sysdeps/s390/multiarch/wcsnlen.c: Likewise. * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and wcsnlen functions. * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen. * wcsmbs/wcsnlen.c: Use WCSNLEN if defined. * string/test-strnlen.c: Add wcsnlen support. * wcsmbs/test-wcsnlen.c: New File. * wcsmbs/Makefile (strop-tests): Add wcsnlen. * benchtests/bench-strnlen.c: Add wcsnlen support. * benchtests/bench-wcsnlen.c: New File. * benchtests/Makefile (wcsmbs-bench): Add wcsnlen. * sysdeps/s390/multiarch/Makefile: New File. * sysdeps/s390/multiarch/strlen-c.c: Likewise. * sysdeps/s390/multiarch/strlen-vx.S: Likewise. * sysdeps/s390/multiarch/strlen.c: Likewise. * sysdeps/s390/multiarch/wcslen-c.c: Likewise. * sysdeps/s390/multiarch/wcslen-vx.S: Likewise. * sysdeps/s390/multiarch/wcslen.c: Likewise. * string/strlen.c (STRLEN): Define and use macro. * sysdeps/s390/multiarch/ifunc-impl-list.c (IFUNC_VX_IMPL): New macro function. (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen. * benchtests/Makefile (wcsmbs-bench): New variable. (string-bench-all): Added wcsmbs-bench. * benchtests/bench-wcslen.c: New File. * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc, s390_vx_libc_ifunc2): New macro function. * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine. * sysdeps/s390/configure.ac: Add test for S390 vector instruction assembler support. * sysdeps/s390/configure: Regenerated. * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13. * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased. * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag. * sysdeps/s390/dl-procinfo.h: Add vector capability. * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define. * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines): Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390. * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File. * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ... * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here. (memcmp, bcmp): Use __memcmp_default as alias source. * sysdeps/s390/s390-32/multiarch/memcmp.c: New File. * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5): Rename to __memcmp_default. * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ... * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here. (memcpy): Use __memcpy_default as alias source. * sysdeps/s390/s390-32/multiarch/memcpy.c: New File. * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5): Rename to __memcpy_default. * sysdeps/s390/s390-32/multiarch/memset.S: Move to ... * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here. (memset): Use __memset_default as alias source. * sysdeps/s390/s390-32/multiarch/memset.c: New File. * sysdeps/s390/s390-32/memset.S (__memset_g5): Rename to __memset_default. * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines): Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x. * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File. * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ... * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here. (memcmp, bcmp): Use __memcmp_default as alias source. * sysdeps/s390/s390-64/multiarch/memcmp.c: New File. * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900): Rename to __memcmp_default. * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ... * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here. (memcpy): Use __memcpy_default as alias source. * sysdeps/s390/s390-64/multiarch/memcpy.c: New File. * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900): Rename to __memcpy_default. * sysdeps/s390/s390-64/multiarch/memset.S: Move to ... * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here. (memset): Use __memset_default as alias source. * sysdeps/s390/s390-64/multiarch/memset.c: New File. * sysdeps/s390/s390-64/memset.S (__memset_z900): Rename to __memset_default. * sysdeps/s390/multiarch/ifunc-resolve.h: New File. * sysdeps/s390/multiarch/ifunc-impl-list.c: New File. [BZ #18610] * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename __ieee_instruction_pointer to __unused. * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of __ieee_instruction_pointer. * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling. * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise. * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise. * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise. * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED): Mark dxc-field as reserved. 2015-08-25 Roland McGrath * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main if the weak reference is not null. 2015-08-25 H.J. Lu * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)". [BZ #11214] * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed. 2015-08-25 Rajalakshmi Srinivasaraghavan * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros. * sysdeps/unix/sysv/linux/accept.c: Call direct system call. * sysdeps/unix/sysv/linux/bind.c: Call direct system call. * sysdeps/unix/sysv/linux/connect.c: Call direct system call. * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call. * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call. * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call. * sysdeps/unix/sysv/linux/listen.c: Call direct system call. * sysdeps/unix/sysv/linux/recv.c: Call direct system call. * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call. * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call. * sysdeps/unix/sysv/linux/send.c: Call direct system call. * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call. * sysdeps/unix/sysv/linux/sendto.c: Call direct system call. * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call. * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call. * sysdeps/unix/sysv/linux/socket.c: Call direct system call. * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call. 2015-08-25 Paul E. Murphy * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use register other than r0 for tabort, it has special meaning. * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort transaction before starting syscall. 2015-08-25 Rajalakshmi Srinivasaraghavan * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case. 2015-08-25 H.J. Lu * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4]. * sysdeps/x86_64/rtld-memcmp.c: Removed. * sysdeps/x86_64/rtld-memset.S: Likewise. * sysdeps/x86_64/rtld-strchr.S: Likewise. * sysdeps/x86_64/rtld-strlen.S: Likewise. * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise. * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise. * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0. 2015-08-25 Ondřej Bílka * debug/strcpy_chk.c: Improve performance. * debug/stpcpy_chk.c: Likewise. * sysdeps/x86_64/strcpy_chk.S: Remove. * sysdeps/x86_64/stpcpy_chk.S: Remove. [BZ #18240] * misc/hsearch_r.c (__hcreate_r): Handle overflow. 2015-08-25 H.J. Lu [BZ #15128] * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add ifuncmain8. (modules-names): Add ifuncmod8. ($(objpfx)ifuncmain8): New rule. * sysdeps/x86_64/dl-machine.h: Include and . (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse, _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512, _dl_runtime_profile_sse, _dl_runtime_profile_avx, or _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE. * sysdeps/x86_64/dl-trampoline.S: Rewrite. * sysdeps/x86_64/dl-trampoline.h: Likewise. * sysdeps/x86_64/ifuncmain8.c: New file. * sysdeps/x86_64/ifuncmod8.c: Likewise. * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE): Removed. * sysdeps/x86_64/nptl/tls.h (__128bits): Removed. (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1. Change rtld_savespace_sse to __glibc_unused2. (RTLD_CHECK_FOREIGN_CALL): Removed. (RTLD_ENABLE_FOREIGN_CALL): Likewise. (RTLD_PREPARE_FOREIGN_CALL): Likewise. (RTLD_FINALIZE_FOREIGN_CALL): Likewise. 2015-08-24 Wilco Dijkstra * sysdeps/aarch64/bzero.S (__bzero): Remove. 2015-08-24 Wilco Dijkstra * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx): Unconditionally set __fpcr to avoid uninialized warning. (libc_feholdsetround_noex_aarch64_ctx): Likewise. 2015-08-24 Siddhesh Poyarekar * malloc/arena.c (arena_get_retry): Don't use main_arena if it is corrupt. * malloc/arena.c (arena_get2): Drop unused argument. (arena_lock): Adjust. (arena_get_retry): Likewise. 2015-08-24 Andreas Schwab * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64): Don't define. * sysdeps/unix/sysv/linux/powerpc/kernel-features.h (__ASSUME_IPC64): Don't undef. * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64. * sysdeps/unix/sysv/linux/semctl.c: Likewise. * sysdeps/unix/sysv/linux/shmctl.c: Likewise. * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove. * sysdeps/unix/sysv/linux/i386/semctl.c: Remove. * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove. * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove. * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove. * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove. * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove. * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove. * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove. * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove. * sysdeps/unix/sysv/linux/sh/semctl.c: Remove. * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove. * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove. * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove. * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove. * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove. * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove. * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove. 2015-08-21 Mike Frysinger * manual/Makefile (install): Only build manual when perl is available. 2015-08-21 Carlos Eduardo Seo * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace '#undef memcpy' by '#undef memchr'. 2015-08-21 Carlos Eduardo Seo * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make memchr not point to the internal __GI_memchr implementation. 2015-08-20 Joseph Myers * timezone/Makefile (CFLAGS-zdump.c): Remove -Wno-strict-prototypes. (CFLAGS-zic.c): Likewise. (CFLAGS-ialloc.c): Likewise. (CFLAGS-scheck.c): Likewise. * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add -Wno-error=undef. 2015-08-20 H.J. Lu * i386/i686/multiarch/strcasestr-c.c: Removed. * x86_64/multiarch/strcasestr.c: Likewise. * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Remove strcasestr. 2015-08-20 Joseph Myers * math/Makefile (CFLAGS): Don't add -Wno-uninitialized. * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize variables for high and low parts before possibly modifying them. 2015-08-20 H.J. Lu * sysdeps/i386/i686/multiarch/init-arch.h: Removed. * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise. * sysdeps/x86_64/cacheinfo.c: Include instead of "multiarch/init-arch.h". * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ... * sysdeps/x86/init-arch.h: This. 2015-08-20 H.J. Lu * sysdeps/i386/i686/multiarch/init-arch.c: Removed. * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise. 2015-08-20 Ondřej Bílka [BZ #17787] * manual/macros.texi: Add twoexp macro. * manual/filesys.texi: Fix exponents. * manual/llio.texi: Likewise. * manual/stdio.texi: Likewise. 2015-08-20 Florian Weimer * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to incorrect use. 2015-08-19 Joseph Myers [BZ #18370] * math/s_csqrt.c (__csqrt): Force underflow exception for results whose real or imaginary part has small absolute value. * math/s_csqrtf.c (__csqrtf): Likewise. * math/s_csqrtl.c (__csqrtl): Likewise. * math/auto-libm-test-in: Add more tests of csqrt. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-08-19 Gabriel F. T. Gomes * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high, __ppc_set_ppr_very_low): New functions. * manual/platform.texi: Add documentation about __ppc_set_ppr_med_high and __ppc_set_ppr_very_low. 2015-08-19 Wilco Dijkstra * string/stpncpy.c (stpncpy): Improve performance using __strnlen/memcpy/memset. 2015-08-19 Andrew Senkevich [BZ #18796] * scripts/test-installation.pl: Don't add -lmvec to build options if libmvec wasn't built. 2015-08-19 Petar Jovanovic [BZ #14341] * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the case when there is a gap between DT_REL and DT_JMPREL sections. * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc. (LDFLAGS-tst-split-dynreloc): New. (tst-split-dynreloc-ENV): Likewise. * sysdeps/x86_64/tst-split-dynreloc.c: New file. * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise. 2015-08-19 H.J. Lu [BZ #18822] * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add attribute_hidden. (__xstat64_conv): Likewise. (__xstat32_conv): Likewise. 2015-08-19 H.J. Lu [BZ #18822] * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Don't load %ebx when calling __setcontext. Call __setcontext with HIDDEN_JUMPTARGET. * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add libc_hidden_def. 2015-08-19 H.J. Lu * sysdeps/i386/i686/Makefile [$(subdir) == string] (sysdep_routines): Moved to ... * sysdeps/i386/Makefile: Here. * sysdeps/i386/i686/cacheinfo.c: Moved to ... * sysdeps/i386/cacheinfo.c: Here. * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed. * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ... * sysdeps/unix/sysv/linux/x86/sysconf.c: Here. 2015-08-19 H.J. Lu * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if __i586__ is defined. (HAS_I686): Defined to 1 if __i686__ is defined. 2015-08-19 Joseph Myers * elf/Makefile [$(have-z-execstack) = yes] (CPPFLAGS-tst-execstack.c): New variable. * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change conditional to [defined UTMPX || _HAVE_UT_TYPE]. [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined UTMPX || _HAVE_UT_TV]. [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined UTMPX || _HAVE_UT_TV - 0]. 2015-08-18 Joseph Myers * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6]. * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise. 2015-08-18 Carlos Eduardo Seo * sysdeps/powerpc/dl-procinfo.c: (_dl_powerpc_cap_flags): Added missing strings for some hwcap features. * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count. 2015-08-18 Paul Eggert Port the 0x7efe...feff pattern to GCC 6. See Steve Ellcey's bug report in: https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html * string/memrchr.c (MEMRCHR): * string/rawmemchr.c (RAWMEMCHR): * string/strchr.c (strchr): * string/strchrnul.c (STRCHRNUL): Rewrite code to avoid issues with signed shift overflow. 2015-08-18 H.J. Lu * sysdeps/x86/cpu-features.c (init_cpu_features): Check whether cpuid is available only if HAS_CPUID is 0. * sysdeps/x86/cpu-features.h (HAS_CPUID): New. (HAS_I586): Likewise. (HAS_I686): Likewise. 2015-08-18 Zack Weinberg * misc/Versions (libc): Add GLIBC_2.23. 2015-08-18 Alan Modra [BZ #18421] * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define .Lp__global. (_start): Load %dp via .Lp__global. [!SHARED]: Use .section .rodata. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file. * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file. * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file. * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file. * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file. * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND, SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define. 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete kernel-features.h include. Delete __ASSUME_LWS_CAS checks. * sysdeps/unix/sysv/linux/hppa/kernel-features.h (__ASSUME_LWS_CAS): Delete. 2015-08-18 Mike Frysinger * sysdeps/hppa/configure.ac: Delete binutils tls checks. * sysdeps/hppa/configure: Regenerated. * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks. * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks. * sysdeps/hppa/nptl/tls.h: Likewise. 2015-08-17 Joseph Myers [BZ #18823] * math/s_csqrt.c (__csqrt): Increase threshold and scale factor for scaling up small arguments. * math/s_csqrtf.c (__csqrtf): Likewise. * math/s_csqrtl.c (__csqrtl): Likewise. * math/auto-libm-test-in: Add more tests of csqrt. * math/auto-libm-test-out: Regenerated. 2015-08-17 Andreas Schwab * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty version set GLIBC_2.19. 2015-08-16 Zack Weinberg [BZ #18681] * misc/regexp.h: This interface is no longer supported. Remove all contents, leaving only an #error directive. * misc/regexp.c (loc1, loc2, locs, step, advance): Demote to compatibility symbols. 2015-08-15 Paul Pluzhnikov [BZ #18084] * debug/tst-backtrace2.c (do_test): Add test for BZ #18084. * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0. * sysdeps/i386/backtrace.c (__backtrace): Likewise. * sysdeps/m68k/backtrace.c (__backtrace): Likewise. * sysdeps/microblaze/backtrace.c (__backtrace): Likewise. * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise. * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise. * sysdeps/sparc/backtrace.c (__backtrace): Likewise. * sysdeps/x86_64/backtrace.c (__backtrace): Likewise. 2015-08-15 Zack Weinberg [BZ #18795] * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the buffer length is known to be too large, not if it's known to be small enough. * debug/tst-chk1.c (do_test): Do all tests for catching a buffer overflow at runtime, involving a length parameter, twice: once with a compile-time constant length parameter, once without. 2015-08-14 Joseph Myers [BZ #18824] * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for scaling x * y up instead of down. * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise. * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise. * math/auto-libm-test-in: Add more tests of fma. * math/auto-libm-test-out: Regenerated. 2015-08-14 Paul Pluzhnikov * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. 2015-08-14 Siddhesh Poyarekar * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove unnecessary movq. * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint): Likewise. 2015-08-13 Joseph Myers * math/auto-libm-test-in: Add more tests of acos, acosh, asin, asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc, exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh and tgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. [BZ #16520] * sysdeps/ieee754/dbl-64/s_tanh.c: Include . (__tanh): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/s_tanhf.c: Include . (__tanhf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include . (__tanhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include . (__tanhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include . (__tanhl): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Add more tests of tanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-08-13 H.J. Lu * sysdeps/x86/cpu-features.c (init_cpu_features): Call __get_cpuid_max if not compiling for i586, i686 nor x86-64. 2015-08-13 H.J. Lu * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include . 2015-08-13 H.J. Lu * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init): Replace HAS_RTM with HAS_CPU_FEATURE (RTM). 2015-08-13 H.J. Lu * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))): Remove $(objpfx)init-arch.o. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove init-arch. * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed. (INIT_ARCH_EXT): Defined as empty. (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX). * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove __init_cpu_features call. Replace HAS_XXX with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX). * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise. 2015-08-13 H.J. Lu * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX). * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise. * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise. * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise. * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise. * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise. * sysdeps/i386/i686/multiarch/s_fma.c: Likewise. * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise. * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features call. Merge SHARED and !SHARED. Add LOAD_GOT_AND_RTLD_GLOBAL_RO. Use LOAD_FUNC_GOT_EAX to load function address. Replace HAS_XXX with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX). * sysdeps/i386/i686/multiarch/bzero.S: Likewise. * sysdeps/i386/i686/multiarch/memchr.S: Likewise. * sysdeps/i386/i686/multiarch/memcmp.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise. * sysdeps/i386/i686/multiarch/memmove.S: Likewise. * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise. * sysdeps/i386/i686/multiarch/memrchr.S: Likewise. * sysdeps/i386/i686/multiarch/memset.S: Likewise. * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise. * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise. * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise. * sysdeps/i386/i686/multiarch/strcat.S: Likewise. * sysdeps/i386/i686/multiarch/strchr.S: Likewise. * sysdeps/i386/i686/multiarch/strcmp.S: Likewise. * sysdeps/i386/i686/multiarch/strcpy.S: Likewise. * sysdeps/i386/i686/multiarch/strcspn.S: Likewise. * sysdeps/i386/i686/multiarch/strlen.S: Likewise. * sysdeps/i386/i686/multiarch/strncase.S: Likewise. * sysdeps/i386/i686/multiarch/strnlen.S: Likewise. * sysdeps/i386/i686/multiarch/strrchr.S: Likewise. * sysdeps/i386/i686/multiarch/strspn.S: Likewise. * sysdeps/i386/i686/multiarch/wcschr.S: Likewise. * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise. * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise. * sysdeps/i386/i686/multiarch/wcslen.S: Likewise. * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise. * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise. 2015-08-13 H.J. Lu * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX). * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise. * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise. * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise. * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise. * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise. * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise. * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise. * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise. * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise. * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1). * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise. * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise. * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise. * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise. * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise. * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise. * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise. * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise. * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise. * sysdeps/x86_64/multiarch/strstr.c: Likewise. * sysdeps/x86_64/multiarch/memmove.c: Likewise. * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise. * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise. * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features call. Add LOAD_RTLD_GLOBAL_RO_RDX. Replace HAS_XXX with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX). * sysdeps/x86_64/multiarch/memcpy.S: Likewise. * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise. * sysdeps/x86_64/multiarch/mempcpy.S: Likewise. * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise. * sysdeps/x86_64/multiarch/memset.S: Likewise. * sysdeps/x86_64/multiarch/memset_chk.S: Likewise. * sysdeps/x86_64/multiarch/strcat.S: Likewise. * sysdeps/x86_64/multiarch/strchr.S: Likewise. * sysdeps/x86_64/multiarch/strcmp.S: Likewise. * sysdeps/x86_64/multiarch/strcpy.S: Likewise. * sysdeps/x86_64/multiarch/strcspn.S: Likewise. * sysdeps/x86_64/multiarch/strspn.S: Likewise. * sysdeps/x86_64/multiarch/wcscpy.S: Likewise. * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise. 2015-08-13 H.J. Lu * sysdeps/i386/dl-machine.h: Include . (dl_platform_init): Call init_cpu_features. * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New. * sysdeps/i386/i686/cacheinfo.c (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed. * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch. * sysdeps/i386/i686/multiarch/Versions: Removed. * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET): Removed. * sysdeps/i386/ldsodefs.h: Include . * sysdeps/unix/sysv/linux/x86/Makefile (libpthread-sysdep_routines): Remove init-arch. * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include instead of sysdeps/generic/dl-procinfo.c>. * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers): Add cpu-features-offsets.sym and rtld-global-offsets.sym. [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features. [$(subdir) == elf] (tests): Add tst-get-cpu-features. [$(subdir) == elf] (tests-static): Add tst-get-cpu-features-static. * sysdeps/x86/Versions: New file. * sysdeps/x86/cpu-features-offsets.sym: Likewise. * sysdeps/x86/cpu-features.c: Likewise. * sysdeps/x86/cpu-features.h: Likewise. * sysdeps/x86/dl-get-cpu-features.c: Likewise. * sysdeps/x86/libc-start.c: Likewise. * sysdeps/x86/rtld-global-offsets.sym: Likewise. * sysdeps/x86/tst-get-cpu-features-static.c: Likewise. * sysdeps/x86/tst-get-cpu-features.c: Likewise. * sysdeps/x86_64/dl-procinfo.c: Likewise. * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed. Assume USE_MULTIARCH is defined and don't check it. (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features). (is_amd): Likewise. (max_cpuid): Likewise. (intel_check_word): Likewise. (__cache_sysconf): Don't call __init_cpu_features. (__x86_preferred_memory_instruction): Removed. (init_cacheinfo): Don't call __init_cpu_features. Replace __cpu_features with GLRO(dl_x86_cpu_features). * sysdeps/x86_64/dl-machine.h: . (dl_platform_init): Call init_cpu_features. * sysdeps/x86_64/ldsodefs.h: Include . * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch. * sysdeps/x86_64/multiarch/Versions: Removed. * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise. * sysdeps/x86_64/multiarch/init-arch.c: Likewise. * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET): Removed. * sysdeps/x86_64/multiarch/init-arch.h: Rewrite. 2015-08-12 Paul Pluzhnikov [BZ #18820] * libio/Makefile (test-fmemopen-mem): New test. * libio/test-fmemopen.c (do_bz18820): New test. * libio/fmemopen.c (__fmemopen): Fix memory leak. * libio/oldfmemopen.c (__old_fmemopen): Likewise. 2015-08-12 Paul Pluzhnikov [BZ #16734] * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete. (FREE_BUF): Delete. * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size. * libio/genops.c (_IO_setb): Use malloc and free directly. (_IO_default_doallocate, _IO_default_finish): Likewise. ( _IO_unbuffer_all): Likewise. ( libc_freeres_fn): Likewise. * libio/filedoalloc.c (_IO_file_doallocate): Likewise. * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise. * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise. (_IO_wdefault_doallocate): Likewise. 2015-08-11 Paul Pluzhnikov [BZ #18086] * sysdeps/posix/nice.c (nice): Restore old errno. * posix/tst-nice.c (do_test): Add test for BZ #18086. 2015-08-10 Ondrej Bilka * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc. 2015-08-10 Adhemerval Zanella * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to __bcopy and add a weak_alias to bcopy. * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen for static build. * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and cleanup macro usage. * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name. * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file. * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise. * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise. * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise. * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise. * sysdeps/powerpc/powerpc64/strcpy.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c [SHARED && IS_IN (libc)]: Include . * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c [SHARED && IS_IN (libc)]: Include . * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file. * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise. * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add libc_hidden_def. (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def. * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string] (sysdep_routines): Add strstr-ppc64. * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file. 2015-08-10 Maxim Ostapenko [BZ #18778] * elf/Makefile (tests): Add Add tst-nodelete2. (modules-names): Add tst-nodelete2mod. (tst-nodelete2mod.so-no-z-defs): New. ($(objpfx)tst-nodelete2): Likewise. ($(objpfx)tst-nodelete2.out): Likewise. (LDFLAGS-tst-nodelete2): Likewise. * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing out of loop through all loaded libraries. * elf/tst-nodelete2.c: New file. * elf/tst-nodelete2mod.c: Likewise. * elf/tst-znodelete-zlib.cc: Delete. 2015-08-11 Andreas Schwab * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define. * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat64_nocancel): Likewise. 2015-08-11 Joseph Myers * math/auto-libm-test-in: Add more tests of acosh, asin, asinh, atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10, expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-08-10 Joseph Myers [BZ #18790] * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase threshold for returning +/- 1. * math/auto-libm-test-in: Add more tests of tanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-08-10 Andreas Schwab [BZ #18781] * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add MORE_OFLAGS to oflag. * io/test-lfs.c (do_test): Test openat64. 2015-08-10 Joseph Myers [BZ #18789] * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use smaller threshold for returning the argument. * math/auto-libm-test-in: Add more tests of sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-08-09 H.J. Lu [BZ #18674] * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing break. 2015-08-09 Andreas Schwab * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define. (generated): Don't add $(addprefix z.,$(tzfiles)). 2015-08-09 Mike Frysinger * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1. * scripts/sysd-rules.awk: Likewise. 2015-08-09 Mike Frysinger * iconvdata/tst-tables.sh: Change echo -n to printf. * nss/db-Makefile: Likewise. * posix/tst-getconf.sh: Likewise. * stdio-common/tst-unbputc.sh: Likewise. 2015-08-09 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all MADV_*_PAGES defines behind this feature check. 2015-08-09 John David Anglin [BZ #18480] * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6): Define. (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4, LOAD_REGS_5, LOAD_REGS_6): Update. (INTERNAL_SYSCALL): Update using new LOAD defines. (INTERNAL_SYSCALL_NCS): Likewise. * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise. 2015-08-08 Paul Pluzhnikov [BZ #16734] * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well. 2015-08-08 Paul Pluzhnikov [BZ #17905] * catgets/Makefile (tst-catgets-mem): New test. * catgets/catgets.c (catopen): Don't use unbounded alloca. * catgets/open_catalog.c (__open_catalog): Likewise. * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca. 2015-08-08 John David Anglin [BZ #18787] * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise clobber registers. (atomic_compare_and_exchange_val_acq): Use register asms to assign operand registers. Use register %r20 for EAGAIN and EDEADLOCK checks. Cast return to __typeof (oldval). 2015-08-08 Mike Frysinger * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file in _LINUX_MICROBLAZE_SYSDEP_H defines. Include sysdeps/unix/sysdep.h and delete sys/syscall.h include. 2015-08-07 Joseph Myers [BZ #16517] * sysdeps/ieee754/dbl-64/s_tan.c: Include . (tan): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/k_tanf.c: Include . (__kernel_tanf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/k_tanl.c: Include . (__kernel_tanl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include . (__kernel_tanl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/k_tanl.c: Include . (__kernel_tanl): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Add more tests of tan. * math/auto-libm-test-out: Regenerated. 2015-08-07 Samuel Thibault Fix sysdeps/i386/fpu/s_scalbn.S build * math/Versions (libc: GLIBC_2_22): New (empty) version set. 2015-08-07 Mike Frysinger * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def. 2015-08-07 Samuel Thibault Fix gcrt0.o compilation When static-start-installed-name is different from start-installed-name, we must not use the shared objects. * csu/Makefile (extra-objs): Add gmon-start.o when building shared library and $(static-start-installed-name) is different from $(start-installed-name). $(objpfx)g$(static-start-installed-name): When building shared library and $(static-start-installed-name) is different from $(static-start-installed-name), revert to non-shared rule, i.e. using $(objpfx)% and gmon-start.o. 2015-08-06 Joseph Myers [BZ #16519] * sysdeps/ieee754/dbl-64/e_sinh.c: Include . (__ieee754_sinh): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/e_sinhf.c: Include . (__ieee754_sinhf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include . (__ieee754_sinhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include . (__ieee754_sinhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include . (__ieee754_sinhl): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Add more tests of sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-08-06 Paul Pluzhnikov * libio/oldfileops.c: Include unistd.h. 2015-08-06 Mike Frysinger * stdlib/isomac.c: Include ctype.h. 2015-08-06 Arjun Shankar * dirent/tst-seekdir.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * elf/tst-dlmodcount.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * elf/tst-order-main.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * elf/tst-pie2.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * inet/tst-ether_aton.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * misc/tst-mntent.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * misc/tst-tsearch.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * posix/tst-regexloc.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * resolv/tst-aton.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdio-common/test-fwrite.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdio-common/tst-ferror.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdio-common/tst-printf.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdio-common/tst-printfsz.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdlib/tst-strtod.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * string/tst-strlen.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * string/tst-svc.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * time/tst-strptime.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * timezone/tst-timezone.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. 2015-08-05 Zack Weinberg * misc/regexp.h: Update comments. 2015-08-05 Andreas Schwab [BZ #18635] * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop before return label. 2015-08-05 H.J. Lu [BZ #18661] * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes when calling __errno_location. * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise. * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise. 2015-08-05 H.J. Lu [BZ #18661] * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedwait_tid): Align stack to 16 bytes when calling __gettimeofday. 2015-08-05 H.J. Lu [BZ #18661] * sysdeps/unix/sysv/linux/x86_64/__start_context.S (__start_context): Don't use pop to restore %rdi so that stack is aligned to 16 bytes when calling __setcontext. 2015-08-05 H.J. Lu * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile only for libc. * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise. 2015-08-05 Wilco Dijkstra * string/string.h: (mempcpy): Redirect to __mempcpy_inline. (__mempcpy): Likewise. (__mempcpy_inline): New inline function. * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define. 2015-08-05 Wilco Dijkstra * string/memccpy.c (memccpy): Improve performance by using memchr/memcpy/__mempcpy. 2015-08-05 Wilco Dijkstra * string/strncpy.c (strncpy): Improve performance by using __strnlen/memcpy. 2015-08-05 Wilco Dijkstra * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Optimize to avoid an unnecessary FPCR read. 2015-08-05 Wilco Dijkstra * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Optimize to reduce FPCR/FPSR accesses. 2015-08-05 H.J. Lu * locale/loadarchive.c (_nl_archive_subfreeres): Also check dead->data[category] != NULL. 2015-08-05 Joseph Myers [BZ #18647] * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y and |x| close to 1, use absolute value of x when computing log. * math/auto-libm-test-in: Add more tests of pow. * math/auto-libm-test-out: Regenerated. 2015-08-05 Adhemerval Zanella * sysdeps/unix/sysv/linux/arm/mmap.c: Add file. * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file. * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise. 2015-08-05 Marko Myllynen [BZ #18525] * locales/km_KH: Remove timezone definition. * locales/lo_LA: Likewise. * locales/my_MM: Likewise. * locales/nan_TW@latin: Likewise. * locales/th_TH: Likewise. * locales/uk_UA: Likewise. 2015-08-05 Daniel Marjamäki [BZ #18265] * wcsmbs/wchar.h (wcscat): Add __nonnull attribute. (wcsncat): Likewise. (wcscmp): Likewise. (wcsncmp): Likewise. 2015-08-05 Mike Frysinger * test-skeleton.c (usage): New function. (main): Call usage when opt is '?'. 2015-08-05 Mike Frysinger * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define before first use. 2015-08-05 Mike Frysinger * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to bottom and under _STACK_GROWS_DOWN. Move the stacktop assignment in there too. 2015-08-05 Carlos O'Donell * version.h (RELEASE): Set to "development". (VERSION): Set to "2.22.90" * version.h (RELEASE): Set to "stable". (VERSION): Set to "2.22" * include/features.h (__GLIBC_MINOR__): Set to 22. 2015-08-04 Chris Metcalf * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update): Restructure macro to avoid "value computed is not used" warning. (atomic_compare_and_exchange_val_acq): Likewise. 2015-08-04 Andreas Schwab [BZ #18635] * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before ret. * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove. 2015-08-01 Carlos O'Donell * po/pl.po: Updated translation. * po/uk.po: Likewise. * po/fi.po: Likewise. * po/ko.po: Likewise. * po/ru.po: Likewise. * po/vi.po: Likewise. 2015-07-31 Zack Weinberg [BZ #18681] * regexp.h: Add unconditional #warning stating that this header will be removed soon. Revise banner comment to match. (compile): Consistently use ERROR instead of RETURN to report errors (partial fix for bz#18681). * regexp.c: Don't include regexp.h. Remove some unnecessary declarations. 2015-07-31 Carlos O'Donell * po/libc.pot: Regenerated. 2015-07-30 Andrew Senkevich [BZ #18740] * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags, float-vlen4-arch-ext-cflags): Removed. * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c, CFLAGS-test-float-vlen4-wrappers.c): Likewise. 2015-07-30 Mike Frysinger [BZ #14113] * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change aligned to __aligned__. (pthread_cond_t, pthread_rwlock_t): Likewise. 2015-07-30 Torvald Riegel * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file. 2015-07-30 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h. (struct sigaction): Change sa_flags from a long to an int, and add __glibc_reserved0 before it for padding when __WORDSIZE is 64. 2015-07-30 Mike Frysinger * hppa/sysdep.h: Delete sys/syscall.h and config.h includes. * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete sysdeps/generic/sysdep.h include. * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in _LINUX_HPPA_SYSDEP_H defines. Include sysdeps/unix/sysdep.h and sysdeps/hppa/sysdep.h. (ENTRY, PSEUDO): Undefine before defining. 2015-07-30 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite from scratch to use INTERNAL_SYSCALL. 2015-07-29 H.J. Lu [BZ #18078] * scripts/check-localplt.awk: Support alternate relocations. * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL sections. * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and malloc entries with + REL R_386_GLOB_DAT. * sysdeps/x86_64/localplt.data: New file. 2015-07-29 Andrew Senkevich [BZ #18731] * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check. * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise. 2015-07-27 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr. 2015-07-27 Mike Frysinger * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define directly in terms of __sync_fetch_and_add and delete (int) cast. 2015-07-27 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete the -D_ASM_IA64_CURRENT_H flag. 2015-07-27 Mike Frysinger [BZ #18641] * pwd/pwd.h (putpwent): Delete __nonnull markings. 2015-07-27 Andreas Schwab * conform/conformtest.pl (checknamespace): Filter out string literals while tokenizing. 2015-07-26 Chung-Lin Tang * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define. * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA. 2015-07-26 Chung-Lin Tang * nptl/tst-join7mod.c: Add #include . 2015-07-25 Chung-Lin Tang * sysdeps/nios2/libm-test-ulps: Update. 2015-07-25 Chung-Lin Tang * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext): Fix order of arguments to the rt_sigprocmask syscall. * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext): Likewise. 2015-07-24 Roland McGrath * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed. 2015-07-24 Siddhesh Poyarekar [BZ #18457] * nptl/Makefile (tests): New test case tst-join7. (modules-names): New test case module tst-join7mod. * nptl/tst-join7.c: New file. * nptl/tst-join7mod.c: New file. * Makeconfig (tls-model): Pass -ftls-model=initial-exec for all translation units in libc.so, libpthread.so and rtld. 2015-07-24 Adhemerval Zanella * sysdeps/powerpc/fpu/libm-test-ulps: Update. 2015-07-24 Andrew Senkevich * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC. * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise. * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2. * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL implementation. 2015-07-24 Szabolcs Nagy [BZ #17711] * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define. * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA. * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define. * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA. 2015-07-24 Siddhesh Poyarekar * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock instead of just saying load lock in the comments. 2015-07-23 Roland McGrath * sysdeps/unix/Subdirs: Moved ... * sysdeps/posix/Subdirs: ... here. * login/pty.h (struct termios, struct winsize): Add forward decls. * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ]. * sysdeps/nacl/glob.c: Just #include . * sysdeps/arm/nacl/libc.abilist: Updated. * sysdeps/nacl/libutil.abilist: New file. * bits/signum.h: Update comments to mention 1003.1-2013 too. (SIGWINCH): New macro. * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias. * sysdeps/arm/nacl/libc.abilist: Add it. 2015-07-23 Mike Frysinger * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl. 2015-07-23 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction): Swap __glibc_reserved0 and sa_flags order. 2015-07-23 Siddhesh Poyarekar [BZ #18657] * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there are pending TLS destructor calls. * include/link.h (struct link_map): Add concurrency note for L_TLS_DTOR_COUNT. * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl): Don't touch the link map flag. Atomically increment l_tls_dtor_count. (__call_tls_dtors): Atomically decrement l_tls_dtor_count. Avoid taking the load lock and don't touch the link map flag. * stdlib/tst-tls-atexit-nodelete.c: New test case. * stdlib/Makefile (tests): Use it. * stdlib/tst-tls-atexit.c (do_test): dlopen tst-tls-atexit-lib.so again before dlclose. Add conditionals to allow tst-tls-atexit-nodelete test case to use it. 2015-07-22 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include to bits/types.h. (msgqnum_t): New typedef. (msglen_t): Likewise. (struct msqid_ds): Update comment. Change msg_qnum type to msgqnum_t and msg_qbytes type to msglen_t. 2015-07-22 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename pad0 to __glibc_reserved0. (struct stat64): Likewise. 2015-07-22 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction): Change sa_flags from a long to an int and add __glibc_reserved0 before it for padding. 2015-07-22 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct anonymous by deleting "siginfo" name. 2015-07-21 Roland McGrath * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename. * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename rather than __nacl_irt_filename. * sysdeps/nacl/xstat.c (__xstat): Likewise. * NEWS: New item for arm-nacl port. * sysdeps/arm/nacl/libc.abilist: New file. * sysdeps/nacl/ld.abilist: New file. * sysdeps/nacl/libBrokenLocale.abilist: New file. * sysdeps/nacl/libanl.abilist: New file. * sysdeps/nacl/libcrypt.abilist: New file. * sysdeps/nacl/libdl.abilist: New file. * sysdeps/nacl/libm.abilist: New file. * sysdeps/nacl/libpthread.abilist: New file. * sysdeps/nacl/libresolv.abilist: New file. * sysdeps/nacl/librt.abilist: New file. 2015-07-21 Chris Metcalf * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call __startcontext to initialize the new context. * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set up CFI directive to forbid further backtracing. 2015-07-21 Marko Myllynen * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map reference. * charmaps/ANSI_X3.4-1968: Likewise. * charmaps/BS_4730: Likewise. * charmaps/BS_VIEWDATA: Likewise. * charmaps/CP1250: Likewise. * charmaps/CP1251: Likewise. * charmaps/CP1252: Likewise. * charmaps/CP1253: Likewise. * charmaps/CP1254: Likewise. * charmaps/CP1255: Likewise. * charmaps/CP1256: Likewise. * charmaps/CSN_369103: Likewise. * charmaps/EBCDIC-DK-NO: Likewise. * charmaps/GB_1988-80: Likewise. * charmaps/GREEK-CCITT: Likewise. * charmaps/GREEK7: Likewise. * charmaps/INIS-8: Likewise. * charmaps/ISIRI-3342: Likewise. * charmaps/ISO_2033-1983: Likewise. * charmaps/ISO_5427-EXT: Likewise. * locales/POSIX: Likewise. * locales/ar_SA: Likewise. * locales/be_BY: Likewise. * locales/be_BY@latin: Likewise. * locales/ca_ES: Likewise. * locales/cs_CZ: Likewise. * locales/da_DK: Likewise. * locales/de_BE: Likewise. * locales/de_CH: Likewise. * locales/de_LU: Likewise. * locales/en_AU: Likewise. * locales/en_BW: Likewise. * locales/en_CA: Likewise. * locales/en_DK: Likewise. * locales/en_GB: Likewise. * locales/en_IE: Likewise. * locales/en_NZ: Likewise. * locales/en_ZA: Likewise. * locales/en_ZW: Likewise. * locales/es_AR: Likewise. * locales/es_BO: Likewise. * locales/es_CL: Likewise. * locales/es_CO: Likewise. * locales/es_DO: Likewise. * locales/es_EC: Likewise. * locales/es_ES: Likewise. * locales/es_HN: Likewise. * locales/es_MX: Likewise. * locales/es_PA: Likewise. * locales/es_PE: Likewise. * locales/es_PY: Likewise. * locales/es_SV: Likewise. * locales/es_US: Likewise. * locales/es_UY: Likewise. * locales/es_VE: Likewise. * locales/et_EE: Likewise. * locales/fa_IR: Likewise. * locales/fo_FO: Likewise. * locales/fr_CA: Likewise. * locales/fr_CH: Likewise. * locales/gv_GB: Likewise. * locales/he_IL: Likewise. * locales/hr_HR: Likewise. * locales/id_ID: Likewise. * locales/is_IS: Likewise. * locales/it_CH: Likewise. * locales/iw_IL: Likewise. * locales/kl_GL: Likewise. * locales/ko_KR: Likewise. * locales/kw_GB: Likewise. * locales/lg_UG: Likewise. * locales/lt_LT: Likewise. * locales/lv_LV: Likewise. * locales/mi_NZ: Likewise. * locales/nhn_MX: Likewise. * locales/nl_BE: Likewise. * locales/pl_PL: Likewise. * locales/sk_SK: Likewise. * locales/sl_SI: Likewise. * locales/sv_FI: Likewise. * locales/tl_PH: Likewise. * locales/tr_TR: Likewise. * locales/vi_VN: Likewise. 2015-07-21 Khem Raj [BZ #17475] * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename of tu_IN and bh_IN. 2015-07-21 Mike Frysinger [BZ #18694] * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include bits/wordsize.h. (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64. 2015-07-21 Siddhesh Poyarekar * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor. * stdlib/tst-tls-atexit.c: (is_loaded): New function. (spawn_thread): New function. (load): Rename to reg_dtor_and_close. Move dlopen to... (do_test): ... here. Use IS_LOADED to test for its availability. 2015-07-21 Andreas Schwab * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update. 2015-07-20 H.J. Lu [BZ #18696] * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add si_addr_bnd. (si_lower): New. (si_upper): Likewise. 2015-07-16 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Regenerated. 2015-07-16 Adhemerval Zanella * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided buffer. * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and fail output information. 2015-07-16 Rajalakshmi Srinivasaraghavan * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7 and strstr-ppc64.. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise. * sysdeps/powerpc/powerpc64/power7/strstr.S: New File. * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File. * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File. * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File. 2015-07-16 Mike Frysinger * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap. * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden. * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap. * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden. 2015-07-16 Mike Frysinger * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def. * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add rtld_hidden_proto. * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise. 2015-07-16 Siddhesh Poyarekar * tst-nodelete-opened.c (do_test): Add comment to clarify how the test can fail. * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup. [BZ #18676] * elf/tst-nodelete-opened.c: New test case. * elf/tst-nodelete-opened-lib.c: New test case module. * elf/Makefile (tests, modules-names): Use them. * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag early. 2015-07-15 David S. Miller * sysdeps/sparc/nptl/pthread_barrier_init.c: Include futex-intenal.h * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax. * sysdeps/sparc/sparc64/Makefile: Likewise. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop): Remove space from macro define. * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise. 2015-07-15 Pravin Satpute [BZ #17475] * locale/iso-639.def: Update Bhili and Tulu language codes as per iso639-3. 2015-07-15 Arjun Shankar * elf/tst-leaks1.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * localedata/tst-langinfo.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * math/test-fpucw.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * math/test-tgmath.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * math/test-tgmath2.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * setjmp/tst-setjmp.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * stdio-common/tst-sscanf.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * sysdeps/x86_64/tst-audit6.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * elf/tst-audit9.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. 2015-07-15 Mike Frysinger * timezone/tst-tzset.c (TIMEOUT): Define to 5. 2015-07-15 Stefan Liebler * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): New variable. 2015-07-15 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerated. 2015-07-14 Roland McGrath * sysdeps/generic/dl-fileid.h: New file. * sysdeps/posix/dl-fileid.h: New file. * sysdeps/nacl/dl-fileid.h: New file. * include/link.h: Include . (struct link_map): Replace l_dev and l_ino with l_file_id. * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather than __fxstat64. Use _dl_file_id_match_p rather than comparing l_dev and l_ino directly. Initialize l_file_id rather than l_dev and l_ino. 2015-07-14 Siddhesh Poyarekar * stdlib/tst-tls-atexit.c (do_test): Fix typo. 2015-07-14 Adhemerval Zanella * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete): Add iff $CXX is set. [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod): Likewise. (tst-nodelete-zmodiff): Likewise. * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5. 2015-07-14 Siddhesh Poyarekar * stdlib/tst-tls-atexit.c (load): Fix up whitespace. 2015-07-13 Wilco Dijkstra * sysdeps/aarch64/fpu/math_private.h (define math_opt_barrier): Add AArch64 version. (math_force_eval): Likewise. 2015-07-13 Wilco Dijkstra * sysdeps/aarch64/strlen.S (strlen): Optimize strlen. 2015-07-11 H.J. Lu * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace %ld with %jd and cast to intmax_t. (do_test_length_zero): Likewise. 2015-07-10 Roland McGrath * sysdeps/nacl/pthread_condattr_setclock.c: New file. 2015-07-10 Chris Metcalf * sysdeps/tile/libm-test-ulps: Regenerated. * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]: Comment out the whole function, not just its body. 2015-07-10 Siddhesh Poyarekar * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex locks. * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion. 2015-07-10 Torvald Riegel * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments. (sem_assume_only_signals_cause_futex_EINTR): Remove. 2015-07-10 Torvald Riegel * sysdeps/nptl/futex-internal.h: New file. * sysdeps/nacl/futex-internal.h: New file. * sysdeps/unix/sysv/linux/futex-internal.h: New file. * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with error checking. (setxid_unmark_thread): Likewise. (__nptl_setxid): Likewise. (__wait_lookup_done): Likewise. * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise. * nptl/nptl-init.c (sighandler_setxid): Likewise. * nptl/pthread_create.c (START_THREAD_DEFN): Likewise. * nptl/pthread_once.c (clear_once_control): Likewise. (__pthread_once_slow): Likewise. * nptl/unregister-atfork.c (__unregister_atfork): Likewise. * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise. * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise. * sysdeps/nptl/fork.c (__libc_fork): Likewise. * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise. * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Likewise. (__pthread_rwlock_rdlock): Likewise. * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise. * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise. * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise. * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise. * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow: Likewise. * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove __ASSUME_PRIVATE_FUTEX check. * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared): Check that shared futexes are supported. * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex wrappers with error checking. * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments, remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check. * nptl/pthread_barrierattr_setpshared.c (pthread_barrierattr_setpshared): Check that shared futexes are supported. * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared): Likewise. * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared): Likewise. * nptl/sem_init.c (futex_private_if_supported): Remove. (__new_sem_init): Adapt and check that shared futexes are supported. * nptl/sem_open.c (sem_open): Likewise. * nptl/sem_post.c (futex_wake): Remove. * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove. (do_futex_wait): Use futex wrappers with error checking. * nptl/sem_wait.c: Include lowlevellock.h. * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init): Use futex_supports_pshared. * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex wrappers with error checking. * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait): Likewise. * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove. * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise. * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED. * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove. (futex_wake): Likewise. (sem_assume_only_signals_cause_futex_EINTR): Likewise. (do_futex_wait): Use futex wrappers with error checking. (__new_sem_wait_slow): Update EINTR handling. * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h. 2015-07-09 Martin Sebor [BZ #18435] * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop): Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54. * nptl/Makefile (test-xfail-tst-once5): Define. 2015-07-09 Roland McGrath * include/stdio.h: Add rtld_hidden_proto (__libc_fatal). * elf/dl-minimal.c: For readability, reorder some definitions and introduce more page breaks. Include . (__libc_fatal): New function. * include/unistd.h: Add rtld_hidden_proto for _exit. * posix/_exit.c: Add rtld_hidden_def. * sysdeps/mach/hurd/_exit.c: Likewise. * sysdeps/nacl/_exit.c: Likewise. * sysdeps/unix/sysv/linux/_exit.c: Likewise. * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise. 2015-07-09 H.J. Lu * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve bndmov encoding with zero displacement. 2015-07-09 Igor Zamyatin H.J. Lu [BZ #18134] * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT. * sysdeps/i386/configure: Regenerated. * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New. (_dl_runtime_profile): Save and restore Intel MPX return bound registers when calling _dl_call_pltexit. Add PRESERVE_BND_REGS_PREFIX before return. * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New. (LRV_BND1_OFFSET): Likewise. * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and lrv_bnd1. * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix typo in bndmov encoding. * sysdeps/x86_64/dl-trampoline.h: Properly save and restore Intel MPX bound registers. Add PRESERVE_BND_REGS_PREFIX before branch instructions to preserve bounds. 2015-07-09 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist [GLIBC_2.22]: Add fmemopen. 2015-07-09 Samuel Thibault * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports returns an error, also try to use host port from __mach_host_self for the __vm_wire call. * sysdeps/mach/hurd/munlock.c (munlock): Likewise. 2015-07-09 Szabolcs Nagy [BZ #18400] [BZ #18648] * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo): Fix pr_uid and pr_gid members. * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the definition to elf_greg_t. 2015-07-08 Roland McGrath [BZ #18383] * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check. Emit test-xfail-tst-tlsalign{,-static}=yes if it fails. * sysdeps/arm/configure: Regenerated. * elf/Makefile (test-xfail-tst-tlsalign): Variable removed. (test-xfail-tst-tlsalign-static): Variable removed. * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'. * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link) rather than explicit 'ln -s'. * resolv/rpc/netdb.h: New file. * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it. 2015-07-08 Adhemerval Zanella * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero length buffers. * stdio-common/tst-fmemopen.c (do_test): Refactor to use test-skeleton.c. [BZ #6544] [BZ #11216] [BZ #12836] [BZ #13151] [BZ #13152] [BZ #14292] * include/stdio.h (fmemopen): Remove hidden prototype. (__fmemopen): Add new hidden prototype. * libio/Makefile: Add oldfmemopen object. * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol. * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX compliance. * libio/oldfmemopen.c: New file: old fmemopen implementation for symbol compatibility. * stdio-common/Makefile [tests]: Add new tst-fmemopen3. * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of fmemopen. * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus on append and read mode. * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add fmemopen. * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise. * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise. 2015-07-08 Carlos O'Donell [BZ #18643] * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU, IPV6_PATHMTU, and IPV6_DONTFRAG. 2015-07-08 Feng Gao * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF and _IO_UNBUFFERED. * libio/oldfileops.c: Likewise. * libio/wfileops.c: Likewise. 2015-07-08 Mike Frysinger * nscd/selinux.c: Delete selinux/flask.h include. 2015-07-08 Mike Frysinger [BZ #18641] * pwd/pwd.h (fgetpwent): Add __nonnull markings. (putpwent): Likewise. (getpwnam): Likewise. (getpwent_r): Likewise. (getpwuid_r): Likewise. (getpwnam_r): Likewise. (fgetpwent_r): Likewise. 2015-07-08 Carlos O'Donell [BZ #18557] * inet/rcmd.c (__validuser2_sa): Check user first to short-circuit host check. 2015-07-07 Pavel Kopyl Mikhail Ilin [BZ #17833] * elf/Makefile (tests): Add tst-nodelete. (modules-names): Add tst-nodelete-uniquemod. (tst-nodelete-uniquemod.so-no-z-defs): New. (tst-nodelete-rtldmod.so-no-z-defs): Likewise. (tst-nodelete-zmod.so-no-z-defs): Likewise. ($(objpfx)tst-nodelete): Likewise. ($(objpfx)tst-nodelete.out): Likewise. (LDFLAGS-tst-nodelete): Likewise. (LDFLAGS-tst-nodelete-zmod.so): Likewise. * elf/dl-close.c (_dl_close_worker): Add a parameter to implement forced object deletion. (_dl_close): Pass false to _dl_close_worker. * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker. * elf/tst-nodelete.cc: New file. * elf/tst-nodeletelib.cc: Likewise. * elf/tst-znodeletelib.cc: Likewise. * include/dlfcn.h (_dl_close_worker): Add a new parameter. 2015-07-07 Stefan Liebler [BZ #18508] * stdlib/Makefile ($(objpfx)tst-makecontext3): Depend on $(libdl). * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace is not called infinitely times. (backtrace_helper): New function. (trace_arg): New struct. (st1): Enlarge stack size. * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S: (__makecontext_ret): Omit cfi_startproc and cfi_endproc. * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S: Likewise. 2015-07-07 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerated. 2015-07-07 Stefan Liebler * sysdeps/unix/sysv/linux/s390/bits/sem.h: Include sys/types.h instead of bits/types.h. Remove inclusion of bits/wordsize.h. 2015-07-07 H.J. Lu * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New. * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise. * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise. * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise. * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise. * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise. 2015-07-07 H.J. Lu * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add link-defines.sym. * sysdeps/i386/dl-trampoline.S: Include . (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE, LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET and LR_SIZE. * sysdeps/i386/link-defines.sym: New file. 2015-07-07 H.J. Lu * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3. (modules-names): Add tst-auditmod3a tst-auditmod3b. ($(objpfx)tst-audit3): New rule. ($(objpfx)tst-audit3.out): Likewise. * sysdeps/i386/tst-audit3.c: New file. * sysdeps/i386/tst-audit3.h: Likewise. * sysdeps/i386/tst-auditmod3a.c: Likewise. * sysdeps/i386/tst-auditmod3b.c: Likewise. 2015-07-07 Torvald Riegel [BZ #18633] * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid pointer in C code. (__strcat_c): Likewise. (__strcat_g): Likewise. 2015-07-07 Cyril Hrubis [BZ #18592] * misc/sbrk.c: Set errno to ENOMEM on overflow. 2015-07-06 Wilco Dijkstra * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): New function. (__ieee754_sqrtf): New function. * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt): New function. * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf): New function. 2015-07-06 Wilco Dijkstra * sysdeps/ieee754/support.c: Remove unused file. 2015-07-06 Szabolcs Nagy * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q registers instead of d ones so the layout is kernel abi compatible. * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise. * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Likewise. 2015-07-02 Szabolcs Nagy * sysdeps/aarch64/libm-test-ulps: Regenerated. 2015-07-01 Joseph Myers [BZ #18619] * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow and return argument in case of subnormal argument. 2015-07-01 Martin Sebor [BZ #18435] * nptl/Makefile: Add tst-once5.cc. * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop): Remove macro redefinitions. * nptl/tst-once5.cc: New test. 2015-07-01 Joseph Myers * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated. * sysdeps/arm/libm-test-ulps: Regenerated. * sysdeps/mips/mips32/libm-test-ulps: Regenerated. * sysdeps/mips/mips64/libm-test-ulps: Likewise. 2015-06-30 Torvald Riegel * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait, lll_lock_wait_private and lll_futex_wake probes. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP): Likewise. * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to atomic_spin_nop. * sysdeps/x86_64/bits/atomic.h: Likewise. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename to atomic_spin_nop and move ... * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop): ... here and ... * sysdeps/sparc/sparc64/bits/atomic.h: ... here. * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use atomic_spin_nop instead of BUSY_WAIT_NOP. * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise. * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise. * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove. (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP. * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop instead of atomic_delay. 2015-06-29 Joseph Myers [BZ #18613] * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of X_ADJ not X when adjusting exponent. (__ieee754_gamma_r): Do intermediate computations in round-to-nearest then adjust overflowing and underflowing results as needed. * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log of X_ADJ not X when adjusting exponent. (__ieee754_gammaf_r): Do intermediate computations in round-to-nearest then adjust overflowing and underflowing results as needed. * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take log of X_ADJ not X when adjusting exponent. (__ieee754_gammal_r): Do intermediate computations in round-to-nearest then adjust overflowing and underflowing results as needed. Use 1.0L not 1.0f as numerator of division. * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take log of X_ADJ not X when adjusting exponent. (__ieee754_gammal_r): Do intermediate computations in round-to-nearest then adjust overflowing and underflowing results as needed. Use 1.0L not 1.0f as numerator of division. * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log of X_ADJ not X when adjusting exponent. (__ieee754_gammal_r): Do intermediate computations in round-to-nearest then adjust overflowing and underflowing results as needed. Use 1.0L not 1.0f as numerator of division. * math/libm-test.inc (tgamma_test_data): Remove one test. Moved to auto-libm-test-in. (tgamma_test): Use ALL_RM_TEST. * math/auto-libm-test-in: Add one test of tgamma. Mark some other tests of tgamma with spurious-overflow. * math/auto-libm-test-out: Regenerated. * math/gen-libm-have-vector-test.sh: Do not check for START. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. [BZ #18612] * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small arguments, just return 0.5 times the argument, with underflow forced as needed. * math/auto-libm-test-in: Add more tests of j1. * math/auto-libm-test-out: Regenerated. [BZ #16559] * sysdeps/ieee754/dbl-64/e_j1.c: Include . (__ieee754_j1): Force underflow exception for small results. * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise. * sysdeps/ieee754/flt-32/e_j1f.c: Include . (__ieee754_j1f): Force underflow exception for small results. * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise. * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-96/e_j1l.c: Include . (__ieee754_j1l): Force underflow exception for small results. * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise. * math/auto-libm-test-in: Add more tests of j1 and jn. * math/auto-libm-test-out: Regenerated. * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro. * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise. (PF_MPLS): Likewise. (AF_IB): Likewise. (AF_MPLS): Likewise. * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum value and macro. (MS_RMT_MASK): Include MS_LAZYTIME. 2015-06-26 Mel Gorman [BZ #18502] * malloc/arena.c (heap_trim): Don't try to shrink a heap that is already minimal. 2015-06-26 Matthew Fortune * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro. (DT_MIPS_NUM): Update. * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle DT_MIPS_RLD_MAP_REL. 2015-06-25 Joseph Myers [BZ #16559] [BZ #18602] * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set round-to-nearest internally then recompute results that underflowed to zero in the original rounding mode. * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise. * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise. * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise * math/libm-test.inc (jn_test): Use ALL_RM_TEST. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-06-25 Andrew Senkevich * NEWS: Fixed description of link with vector math library. 2015-06-25 Andreas Schwab [BZ #18549] * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC. * libio/test-fmemopen.c (do_test): Add test for it. 2015-06-25 H.J. Lu [BZ #17841] * Makeconfig (no-pie-ldflag): New. (+link): Set to $(+link-pie) if default to PIE. (+link-tests): Set to $(+link-pie-tests) if default to PIE. * config.make.in (build-pie-default): New. * configure.ac (libc_cv_pie_default): New. Set to yes if -fPIE is default. AC_SUBST. * configure: Regenerated. * elf/Makefile (LDFLAGS-tst-dlopen-aout): New. 2015-06-24 Roland McGrath * nptl/descr.h (struct pthread): Change type of field setxid_futex to 'unsigned int'. * resolv/gai_misc.h (struct waitlist): Change type of field counterp to 'volatile unsigned int *'. * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for FUTEXADDR and OLDVAL. * resolv/getaddrinfo_a.c (getaddrinfo_a): Give local variable TOTAL type 'volatile unsigned int'. (struct async_waitlist): Change type of field counter to 'unsigned int'. * resolv/gai_suspend.c (gai_suspend): Give local variable CNTR type 'unsigned int'. * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field counterp to 'volatile unsigned int *'. * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND] (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'. (aio_suspend): Give local variable CNTR type 'unsigned int'. * sysdeps/pthread/lio_listio.c (lio_listio_internal): Give local variable TOTAL type 'volatile unsigned int'. (struct async_waitlist): Change type of field counter to 'unsigned int'. 2015-06-24 H.J. Lu [BZ #18383] * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align TCB_OFFSET to MAX_ALIGN, not just TCBALIGN. Add comment. * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove comment for i386/x86-64. (test-xfail-tst-tlsalign-extern-static): Removed. 2015-06-24 Joseph Myers * math/test-double.h: New file. * math/test-float.h: Likewise. * math/test-ldouble.h: Likewise. * math/test-math-inline.h: Likewise. * math/test-math-no-inline.h: Likewise. * math/test-math-scalar.h: Likewise. * math/test-math-vector.h: Likewise. * math/test-vec-loop.h: Remove file. Contents moved into test-math-vector.h. * math/libm-test.inc (MATHCONST): Do not document macro. * math/test-double.c: Include test-double.h, test-math-no-inline.h and test-math-scalar.h. (FUNC): Remove macro. (FUNC_TEST): Likewise. (FLOAT): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_DOUBLE): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. * math/test-float.c: Include test-float.h, test-math-no-inline.h and test-math-scalar.h. (FUNC): Remove macro. (FUNC_TEST): Likewise. (FLOAT): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_FLOAT): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. * math/test-idouble.c: Include test-double.h, test-math-inline.h and test-math-scalar.h. (FUNC): Remove macro. (FUNC_TEST): Likewise. (FLOAT): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_DOUBLE): Likewise. (TEST_MATHVEC): Likewise. (TEST_INLINE): Likewise. (__NO_MATH_INLINES): Likewise. * math/test-ifloat.c: Include test-float.h, test-math-inline.h and test-math-scalar.h. (FUNC): Remove macro. (FUNC_TEST): Likewise. (FLOAT): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_FLOAT): Likewise. (TEST_MATHVEC): Likewise. (TEST_INLINE): Likewise. (__NO_MATH_INLINES): Likewise. * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h and test-math-scalar.h. (FUNC): Remove macro. (FUNC_TEST): Likewise. (FLOAT): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_LDOUBLE): Likewise. (TEST_MATHVEC): Likewise. (TEST_INLINE): Likewise. (__NO_MATH_INLINES): Likewise. * math/test-ldouble.c: Include test-ldouble.h, test-math-no-inline.h and test-math-scalar.h. (FUNC): Remove macro. (FUNC_TEST): Likewise. (FLOAT): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_LDOUBLE): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. * math/test-double-vlen2.h: Include test-double.h, test-math-no-inline.h and test-math-vector.h. (FLOAT): Remove macro. (FUNC): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_DOUBLE): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. (CNCT): Likewise. (CONCAT): Likewise. (WRAPPER_NAME): Likewise. (WRAPPER_DECL): Likewise. (WRAPPER_DECL_ff): Likewise. (WRAPPER_DECL_fFF): Likewise. (VECTOR_WRAPPER): Likewise. (VECTOR_WRAPPER_ff): Likewise. (VECTOR_WRAPPER_fFF): Likewise. (VEC_LEN): New macro. * math/test-double-vlen4.h: Include test-double.h, test-math-no-inline.h and test-math-vector.h. (FLOAT): Remove macro. (FUNC): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_DOUBLE): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. (CNCT): Likewise. (CONCAT): Likewise. (WRAPPER_NAME): Likewise. (WRAPPER_DECL): Likewise. (WRAPPER_DECL_ff): Likewise. (WRAPPER_DECL_fFF): Likewise. (VECTOR_WRAPPER): Likewise. (VECTOR_WRAPPER_ff): Likewise. (VECTOR_WRAPPER_fFF): Likewise. (VEC_LEN): New macro. * math/test-double-vlen8.h: Include test-double.h, test-math-no-inline.h and test-math-vector.h. (FLOAT): Remove macro. (FUNC): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_DOUBLE): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. (CNCT): Likewise. (CONCAT): Likewise. (WRAPPER_NAME): Likewise. (WRAPPER_DECL): Likewise. (WRAPPER_DECL_ff): Likewise. (WRAPPER_DECL_fFF): Likewise. (VECTOR_WRAPPER): Likewise. (VECTOR_WRAPPER_ff): Likewise. (VECTOR_WRAPPER_fFF): Likewise. (VEC_LEN): New macro. * math/test-float-vlen4.h: Include test-float.h, test-math-no-inline.h and test-math-vector.h. (FLOAT): Remove macro. (FUNC): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_FLOAT): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. (CNCT): Likewise. (CONCAT): Likewise. (WRAPPER_NAME): Likewise. (WRAPPER_DECL): Likewise. (WRAPPER_DECL_ff): Likewise. (WRAPPER_DECL_fFF): Likewise. (VECTOR_WRAPPER): Likewise. (VECTOR_WRAPPER_ff): Likewise. (VECTOR_WRAPPER_fFF): Likewise. (VEC_LEN): New macro. * math/test-float-vlen8.h: Include test-float.h, test-math-no-inline.h and test-math-vector.h. (FLOAT): Remove macro. (FUNC): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_FLOAT): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. (CNCT): Likewise. (CONCAT): Likewise. (WRAPPER_NAME): Likewise. (WRAPPER_DECL): Likewise. (WRAPPER_DECL_ff): Likewise. (WRAPPER_DECL_fFF): Likewise. (VECTOR_WRAPPER): Likewise. (VECTOR_WRAPPER_ff): Likewise. (VECTOR_WRAPPER_fFF): Likewise. (VEC_LEN): New macro. * math/test-float-vlen16.h: Include test-float.h, test-math-no-inline.h and test-math-vector.h. (FLOAT): Remove macro. (FUNC): Likewise. (MATHCONST): Likewise. (PRINTF_EXPR): Likewise. (PRINTF_XEXPR): Likewise. (PRINTF_NEXPR): Likewise. (TEST_FLOAT): Likewise. (TEST_MATHVEC): Likewise. (__NO_MATH_INLINES): Likewise. (CNCT): Likewise. (CONCAT): Likewise. (WRAPPER_NAME): Likewise. (WRAPPER_DECL): Likewise. (WRAPPER_DECL_ff): Likewise. (WRAPPER_DECL_fFF): Likewise. (VECTOR_WRAPPER): Likewise. (VECTOR_WRAPPER_ff): Likewise. (VECTOR_WRAPPER_fFF): Likewise. (VEC_LEN): New macro. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include test-vec-loop.h. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise. 2015-06-24 Roland McGrath * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ... (__getlogin_r): ... this. 2015-06-24 Joseph Myers [BZ #18594] * math/s_ccosh.c (__ccosh): Compare with least normal value instead of comparing class with FP_SUBNORMAL. * math/s_ccoshf.c (__ccoshf): Likewise. * math/s_ccoshl.c (__ccoshl): Likewise. * math/s_cexp.c (__cexp): Likewise. * math/s_cexpf.c (__cexpf): Likewise. * math/s_cexpl.c (__cexpl): Likewise. * math/s_csin.c (__csin): Likewise. * math/s_csinf.c (__csinf): Likewise. * math/s_csinh.c (__csinh): Likewise. * math/s_csinhf.c (__csinhf): Likewise. * math/s_csinhl.c (__csinhl): Likewise. * math/s_csinl.c (__csinl): Likewise. * math/s_ctan.c (__ctan): Likewise. * math/s_ctanf.c (__ctanf): Likewise. * math/s_ctanh.c (__ctanh): Likewise. * math/s_ctanhf.c (__ctanhf): Likewise. * math/s_ctanhl.c (__ctanhl): Likewise. * math/s_ctanl.c (__ctanl): Likewise. * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp, csin, csinh, ctan and ctanh. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (cexp_test): Use ALL_RM_TEST. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-06-24 Roland McGrath * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu return value is wrong, print the expected value too. 2015-06-24 H.J. Lu [BZ #18585] * elf/readlib.c (is_gdb_python_file): New. (process_file): Don't issue errors on filenames with -gdb.py suffix. 2015-06-24 Joseph Myers * math/auto-libm-test-in: Add more tests of csin and csinh. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (csin_test_data): Remove tests moved to auto-libm-test-in. (csinh_test_data): Likewise. [BZ #18593] * math/s_csin.c (__csin): Negate before rather than after possibly overflowing multiplication. * math/s_csinf.c (__csinf): Likewise. * math/s_csinh.c (__csinh): Likewise. * math/s_csinhf.c (__csinhf): Likewise. * math/s_csinhl.c (__csinhl): Likewise. * math/s_csinl.c (__csinl): Likewise. * math/auto-libm-test-in: Add some tests of csin and csinh. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c. (csinh_test_data): Likewise. * sysdeps/x86_64/fpu/libm-test-ulps: Update. [BZ #18586] * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force underflow exception for small results. 2015-06-24 Andrew Senkevich * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed variable and included header. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise. * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file. * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise. * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file. * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise. * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise. * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise. * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise. * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise. 2015-06-23 Joseph Myers [BZ #16526] [BZ #16538] * sysdeps/ieee754/dbl-64/s_sin.c: Include . (__sin): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/k_sinf.c: Include . (__kernel_sinf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include . (__kernel_sincosl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/k_sinl.c: Include . (__kernel_sinl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include . (__kernel_sincosl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include . (__kernel_sinl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/k_sinl.c: Include . (__kernel_sinl): Force underflow exception for arguments with small absolute value. * sysdeps/powerpc/fpu/k_sinf.c: Include . (__kernel_sinf): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Add more tests of sin and sincos. * math/auto-libm-test-out: Regenerated. [BZ #18245] [BZ #18583] * sysdeps/ieee754/k_standardl.c: Include . (__kernel_standard_l): Use feholdexcept and fesetenv around conversion to double instead of special-casing overflow and underflow. * math/libm-test.inc (fmod_test_data): Add more tests. (remainder_test_data): Likewise. (sqrt_test_data): Likewise. 2015-06-23 Torvald Riegel [BZ #17403] * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier): Define. * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier): Define. 2015-06-23 Joseph Myers * math/Makefile [$(PERL) != no] ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move dependency on libm-test.stmp below the inclusion of Rules. 2015-06-23 Andrew Senkevich * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list. * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable and included header. * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise. * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file. * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise. * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include. * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise. * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise. * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file. * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise. * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise. * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise. * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise. * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise. 2015-06-23 Joseph Myers [BZ #18371] * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where intermediate but not final result might underflow. * math/s_csqrtf.c (__csqrtf): Likewise. * math/s_csqrtl.c (__csqrtl): Likewise. * math/auto-libm-test-in: Add more tests of csqrt. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. [BZ #18219] * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce threshold on absolute value of exponent for which scaling is used. * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise. * math/auto-libm-test-in: Add more tests of exp2. * math/auto-libm-test-out: Regenerated. 2015-06-23 Dmitry V. Levin [BZ #17977] * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking when initializing interface list, based on the bug analysis and the patch proposed by Eric Newton. * resolv/tst-res_hconf_reorder.c: New test. * resolv/Makefile [$(have-thread-library) = yes] (tests): Add tst-res_hconf_reorder. ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl) and $(shared-thread-library). (tst-res_hconf_reorder-ENV): New variable. * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo in comment. 2015-06-22 Joseph Myers [BZ #16353] * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object. (__expm1): Force underflow exception for arguments with small absolute value. * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object. (__expm1f): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/dbl-64/s_expm1.c: Include . (__expm1): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/s_expm1f.c: Include . (__expm1f): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh): Check for small arguments before calling __expm1. * math/auto-libm-test-in: Do not mark underflow exceptions as possibly missing for bug 16353. * math/auto-libm-test-out: Regenerated. 2015-06-22 Andreas Schwab [BZ #18513] * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for PTR queries. 2015-06-22 Leonhard Holz * string/strcoll_l.c (STRCOLL): Remove unnecessary memset. * string/strcoll_l.c: Remove unused struct element idxnow. 2015-06-21 Joseph Myers [BZ #18569] * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force underflow and return argument in case of subnormal argument. * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Likewise. * math/auto-libm-test-in: Add more tests of expm1. * math/auto-libm-test-out: Regenerated. [BZ #16361] * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object. (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for tiny results. * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object. (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for tiny results. * math/auto-libm-test-in: Add more tests of exp and exp10. Do not mark underflow exceptions as possibly missing for bug 16361. * math/auto-libm-test-out: Regenerated. 2015-06-19 Joseph Myers * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect. * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform): Remove variable. (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise. (test-xfail-XOPEN2K8/utmpx.h/conform). * conform/conformtest.pl ($xerrors): New variable. (note_error): New function. (compiletest): New argument $xfail. Use not_error. (runtest): Likewise. (top level): Handle xfail- lines. Update calls to compiletest and runtest. Handle xfail- and optional- in headers listed with allow-header. * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-. (O_EXEC): Likewise. (O_SEARCH): Likewise. * conform/data/stropts.h-data (ioctl): Likewise. * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise. * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise. * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise. (msghdr.msg_controllen): Likewise. (cmsghdr.cmsg_len): Likewise. * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise. * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove variable. (test-xfail-XPG3/sys/sem.h/conform): Likewise. (test-xfail-XPG4/stropts.h/conform): Likewise. (test-xfail-XPG4/sys/ipc.h/conform): Likewise. (test-xfail-XPG4/sys/sem.h/conform): Likewise. (test-xfail-XPG4/sys/socket.h/conform): Likewise. (test-xfail-UNIX98/stropts.h/conform): Likewise. (test-xfail-UNIX98/sys/ipc.h/conform): Likewise. (test-xfail-UNIX98/sys/sem.h/conform): Likewise. (test-xfail-UNIX98/sys/socket.h/conform): Likewise. (test-xfail-XOPEN2K/stropts.h/conform): Likewise. (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise. (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise. (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise. (test-xfail-XOPEN2K/utmpx.h/conform): Likewise. (test-xfail-POSIX2008/fcntl.h/conform): Likewise. (test-xfail-POSIX2008/stropts.h/conform): Likewise. (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise. (test-xfail-XOPEN2K8/stropts.h/conform): Likewise. (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise. (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise. (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise. 2015-06-19 Andrew Senkevich * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable, __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty definitions for proper unfolding of __MATHDECL_VEC. 2015-06-19 Stefan Liebler * benchtests/bench-strcoll.c: Include string.h. (main): Remove unused variable res. 2015-06-19 Stefan Liebler * timezone/Makefile (%/UTC %/Universal): Generate test-result files for UTC and Universal. 2015-06-19 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerated. 2015-06-18 Joseph Myers [BZ #16350] * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception for arguments with small absolute value. * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise. * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise. * sysdeps/ieee754/dbl-64/s_asinh.c: Include . (__asinh): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/s_asinhf.c: Include . (__asinhf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include . (__asinhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include . (__asinhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include . (__asinhl): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Do not mark underflow exceptions as possibly missing for bug 16350. * math/auto-libm-test-out: Regenerated. * include/bits/ipc.h: Remove file. * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove variable. (test-xfail-XPG3/sys/shm.h/conform): Likewise. (test-xfail-XPG4/sys/msg.h/conform): Likewise. (test-xfail-XPG4/sys/shm.h/conform): Likewise. (test-xfail-UNIX98/sys/msg.h/conform): Likewise. (test-xfail-UNIX98/sys/shm.h/conform): Likewise. (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise. (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise. (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise. (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise. * math/auto-libm-test-in: Remove spurious underflow allowance for tests of cexp. * math/auto-libm-test-out: Regenerated. [BZ #18558] * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove unconditional definition. (MCAST_BLOCK_SOURCE): Likewise. (MCAST_UNBLOCK_SOURCE): Likewise. (MCAST_LEAVE_GROUP): Likewise. (MCAST_JOIN_SOURCE_GROUP): Likewise. (MCAST_LEAVE_SOURCE_GROUP): Likewise. (MCAST_MSFILTER): Likewise. * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform): Remove variable. (test-xfail-XOPEN2K/netdb.h/conform): Likewise. (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise. (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise. (test-xfail-XOPEN2K8/netdb.h/conform): Likewise. (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise. 2015-06-18 Andrew Senkevich * NEWS: Mention addition of x86_64 vector sincosf. * math/test-float-vlen16.h: Added wrapper for sincosf tests. * math/test-float-vlen4.h: Likewise. * math/test-float-vlen8.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added. * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file. * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file. * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers. * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector sincos. * bits/libm-simd-decl-stubs.h: Added stubs for sincos. * math/math.h (__MATHDECL_VEC): New macro. * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC. * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper declaration under condition. * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored. * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected TEST_VEC_LOOP change. * math/test-double-vlen4.h: Likewise. * math/test-double-vlen8.h: Likewise. * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change. * math/test-float-vlen4.h: Likewise. * math/test-float-vlen8.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added. * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file. * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file. * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file. * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file. * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file. * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file. * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests. * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm redirections for powf. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers. * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file. * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file. * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file. * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file. * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file. * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests. * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise. * math/test-float-vlen16.h: Fixed 2 argument macro. * math/test-float-vlen4.h: Likewise. * math/test-float-vlen8.h: Likewise. * NEWS: Mention addition of x86_64 vector powf. 2015-06-17 Joseph Myers * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine. * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine. * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file. * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise. [BZ #18553] * resource/getpriority.c (getpriority): Rename to __getpriority and define as weak alias of __getpriority. * resource/setpriority.c (setpriority): Rename to __setpriority and define as weak alias of __setpriority. * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to __getpriority and define as weak alias of __getpriority. * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to __setpriority and define as weak alias of __setpriority. * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as strong name. (setpriority): Use __setpriority as strong name. * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to __getpriority and define as weak alias of __getpriority. * include/sys/resource.h (__getpriority): Declare. Use libc_hidden_proto. (__setpriority): Likewise. (getpriority): Don't use libc_hidden_proto. (setpriority): Likewise. * sysdeps/posix/nice.c (nice): Call __getpriority instead of getpriority. Call __setpriority instead of setpriority. * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace): Remove variable. [BZ #18547] * misc/getttyent.c (getttynam): Rename to __getttynam and define as weak alias of __getttynam. Use prototype function definition. Call __setttyent, __getttyent and __endttyent instead of setttyent, getttyent and endttyent. (getttyent): Rename to __getttyent and define as weak alias of __getttyent. Call __setttyent instead of setttyent. Call __fgets_unlocked instead of fgets_unlocked. (setttyent): Rename to __setttyent and define as weak alias of __setttyent. (endttyent): Rename to __endttyent and define as weak alias of __endttyent. * include/ttyent.h (__getttyent): Declare. Use libc_hidden_proto. (__setttyent): Likewise. (__endttyent): Likewise. (getttyent): Don't use libc_hidden_proto. (setttyent): Likewise. (endttyent): Likewise. * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and __endttyent instead of setttyent, getttyent and endttyent. * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace): Remove variable. [BZ #18546] * socket/recv.c (__recv): Use libc_hidden_def. * socket/socket.c (__socket): Likewise. * sysdeps/mach/hurd/recv.c (__recv): Likewise. * sysdeps/mach/hurd/socket.c (__socket): Likewise. * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise. * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak. * sysdeps/unix/sysv/linux/socket.c (__socket): Use libc_hidden_def. * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use libc_hidden_weak. * include/sys/socket.h (__socket): Do not use attribute_hidden. Use libc_hidden_proto. (__recv): Likewise. * socket/Versions (libc): Export __recv and __socket at version GLIBC_PRIVATE. * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv instead of recv. (init_mq_netlink): Call __socket instead of socket. * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace): Remove variable. [BZ #18545] * rt/mq_timedreceive.c (mq_timedreceive): Rename to __mq_timedreceive and define as alias of __mq_timedreceive. Use hidden_weak. * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and define as alias of __mq_timedsend. Use hidden_weak. * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use __mq_timedsend as strong name. (mq_timedreceive): Use __mq_timedreceive as strong name. * include/mqueue.h (__mq_timedsend): Declare. Use hidden_proto. (__mq_timedreceive): Likewise. * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call __mq_timedreceive instead of mq_timedreceive. * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend instead of mq_timedsend. * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace): Remove variable. * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use hidden_def and hidden_weak instead of libc_hidden_def and libc_hidden_weak. (top level): Refer to hidden_def in comment. * sysdeps/unix/syscall-template.S (syscall_hidden_def): New macro. Use it instead of libc_hidden_def. * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not specify __GI_* name explicitly. (mq_timedreceive): Likewise. (mq_setattr): Likewise. [BZ #18544] * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to __pthread_barrier_init and define as weak alias of __pthread_barrier_init. * sysdeps/sparc/nptl/pthread_barrier_init.c (pthread_barrier_init): Likewise. * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to __pthread_barrier_wait and define as weak alias of __pthread_barrier_wait. * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait): Likewise. * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait): Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S (pthread_barrier_wait): Likewise. * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S (pthread_barrier_wait): Likewise. * nptl/Versions (libpthread): Export __pthread_barrier_init and __pthread_barrier_wait at version GLIBC_PRIVATE. * include/pthread.h (__pthread_barrier_init): Declare. (__pthread_barrier_wait): Likewise. * sysdeps/unix/sysv/linux/mq_notify.c (notification_function): Call __pthread_barrier_wait instead of pthread_barrier_wait. (helper_thread): Likewise. (init_mq_netlink): Call __pthread_barrier_init instead of pthread_barrier_init. [BZ #18542] * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def. (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias * include/wchar.h (__vswscanf): Declare. Use libc_hidden_proto. * libio/swscanf.c (__swscanf): Call __vswscanf instead of vswscanf. * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace): Remove variable. [BZ #18540] * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as strong alias of _IO_fflush. Use libc_hidden_def. * libio/iofflush_u.c (fflush_unlocked): Rename to __fflush_unlocked and define as weak alias of __fflush_unlocked. Use libc_hidden_weak. * include/stdio.h (__fflush_unlocked): Declare. Use libc_hidden_proto. * misc/getpass.c (getpass): Call __fflush_unlocked instead of fflush_unlocked. * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace): Remove variable. [BZ #18539] * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and define as weak alias of __addseverity. * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace): Remove variable. (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise. (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise. [BZ #18536] * misc/tsearch.c (__tsearch): Use libc_hidden_def. (__tfind): Likewise. (__tdelete): Likewise. (__twalk): Likewise. * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and __twalk to GLIBC_PRIVATE. * include/search.h (__tsearch): Use libc_hidden_proto. (__tfind): Likewise. (__tdelete): Likewise. (__twalk): Likewise. * nptl/sem_close.c (sem_close): Call __twalk instead of twalk. Call __tdelete instead of tdelete. * nptl/sem_open.c (check_add_mapping): Call __tfind instead of tfind. Call __tsearch instead of tsearch. * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise. * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace): Remove variable. (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise. [BZ #18534] * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def. (dprintf): Define as a weak alias of __dprintf, not a strong alias. * include/stdio.h (__dprintf): Declare. Use libc_hidden_proto. * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of dprintf. * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace): Remove variable. (test-xfail-UNIX98/syslog.h/linknamespace): Likewise. (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise. [BZ #18533] * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog, not a strong alias. * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace): Remove variable. [BZ #18532] * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and define as weak alias of __in6addr_any. Use libc_hidden_data_weak. (in6addr_loopback): Rename to __in6addr_loopback and define as weak alias of __in6addr_loopback. Use libc_hidden_data_weak. * include/netinet/in.h (__in6addr_loopback): Declare. Use libc_hidden_proto. (__in6addr_any): Likewise. * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of in6addr_any. * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove variable. (test-xfail-UNIX98/netdb.h/linknamespace): Likewise. 2015-06-17 Andrew Senkevich * bits/libm-simd-decl-stubs.h: Added stubs for pow. * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm redirections for pow. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers. * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file. * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file. * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file. * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file. * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file. * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test. * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector pow. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm redirections for expf. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file. * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file. * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file. * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file. * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file. * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests. * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector expf. * bits/libm-simd-decl-stubs.h: Added stubs for exp. * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm redirections for exp. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file. * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file. * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file. * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file. * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file. * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test. * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector exp. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm redirections for logf. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file. * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file. * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file. * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file. * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file. * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests. * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector logf. * bits/libm-simd-decl-stubs.h: Added stubs for log. * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm redirections for log. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file. * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file. * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file. * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file. * sysdeps/x86_64/fpu/svml_d_log_data.S: New file. * sysdeps/x86_64/fpu/svml_d_log_data.h: New file. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log test. * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector log. 2015-06-17 Szabolcs Nagy * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix cfi_adjust_cfa_offset argument. (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise. (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise. [BZ #18034] * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare. * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define. (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load ordering using ldar. (_dl_tlsdesc_dynamic): Likewise. (_dl_tlsdesc_return_lazy): Likewise. * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use relaxed atomics instead of volatile and synchronize with release store. (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of volatile. * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise. 2015-06-15 Andrew Senkevich * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file. * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file. * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file. * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file. * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file. * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests. * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector sinf. 2015-06-14 Joseph Myers * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008. * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace): Remove variable. (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise. 2015-06-12 Joseph Myers [BZ #18530] * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as strong alias of _IO_fputs. Use libc_hidden_def. * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked and define as weak alias of __fputs_unlocked. Use libc_hidden_weak. * include/stdio.h (__fputs_unlocked): Declare. Use libc_hidden_proto. * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of fputs_unlocked. [BZ #18529] * resolv/netdb.h [__USE_POSIX]: Change condition to [__USE_XOPEN2K]. * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do not expect. [XPG4 || UNIX98] (AI_PASSIVE): Likewise. [XPG4 || UNIX98] (AI_CANONNAME): Likewise. [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise. [XPG4 || UNIX98] (AI_V4MAPPED): Likewise. [XPG4 || UNIX98] (AI_ALL): Likewise. [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise. [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise. [XPG4 || UNIX98] (NI_NOFQDN): Likewise. [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise. [XPG4 || UNIX98] (NI_NAMEREQD): Likewise. [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise. [XPG4 || UNIX98] (NI_DGRAM): Likewise. [XPG4 || UNIX98] (EAI_AGAIN): Likewise. [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise. [XPG4 || UNIX98] (EAI_FAIL): Likewise. [XPG4 || UNIX98] (EAI_FAMILY): Likewise. [XPG4 || UNIX98] (EAI_MEMORY): Likewise. [XPG4 || UNIX98] (EAI_NONAME): Likewise. [XPG4 || UNIX98] (EAI_SERVICE): Likewise. [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise. [XPG4 || UNIX98] (EAI_SYSTEM): Likewise. [XPG4 || UNIX98] (EAI_SYSTEM): Likewise. [XPG4 || UNIX98] (freeaddrinfo): Likewise. [XPG4 || UNIX98] (gai_strerror): Likewise. [XPG4 || UNIX98] (getaddrinfo): Likewise. [XPG4 || UNIX98] (getnameinfo): Likewise. [BZ #18528] * grp/grp.h (endgrent): Condition on [__USE_MISC || __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8]. (getgrent): Likewise. * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not expect. [XPG3 || POSIX2008] (endgrent): Likewise. [XPG3] (setgrent): Likewise. * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove variable. (test-xfail-POSIX2008/grp.h/linknamespace): Likewise. [BZ #18527] * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and define as weak alias of __getlogin_r. Use libc_hidden_weak. * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise. * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise. * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise. * include/unistd.h (__getlogin_r): Declare. Use libc_hidden_proto. * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r. * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove variable. (test-xfail-XPG3/wordexp.h/linknamespace): Likewise. (test-xfail-XPG4/glob.h/linknamespace): Likewise. (test-xfail-XPG4/wordexp.h/linknamespace): Likewise. 2015-06-12 Martin Sebor [BZ #18512] * Makerules (check-install-supported): New target. (install): Add check-install-supported as a dependency. * manual/install.texi (Installing the C Library): Document that overriding prefix and exec_prefix is not supported. Mention DESTDIR. * INSTALL: Regenerate from the above. 2015-06-12 Joseph Myers [BZ #18519] * posix/Versions (libc): Export __libc_pread at version GLIBC_PRIVATE. * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread instead of pread. * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove variable. [BZ #18522] * misc/efgcvt_r.c [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT] (cvt_symbol): Use weak_alias instead of strong_alias. [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise. * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace): Remove variable. (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise. (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise. [BZ #18520] * inet/herrno.c (h_errno): Rename to __h_errno. (__libc_h_errno): Define as alias of __h_errno not h_errno. * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define to __h_errno instead of h_errno. * nptl/herrno.c (h_errno): Rename to __h_errno. (__h_errno_location): Refer to __h_errno not h_errno. * resolv/Versions (h_errno): Rename to __h_errno. * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace): Remove variable. (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise. 2015-06-11 Andrew Senkevich * configure.ac: More strict check for AVX512 assembler support. * configure: Regenerated. * bits/libm-simd-decl-stubs.h: Added stubs for sin. * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added. * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file. * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file. * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file. * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file. * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file. * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin test. * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise. * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise. * NEWS: Mention addition of x86_64 vector sin. 2015-06-11 Florian Weimer * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in comment. 2015-06-10 Gleb Fotengauer-Malinovskiy [BZ #18479] * nptl/pt-interp.c: New file. * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines): Add pt-interp. [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on $(common-objpfx)runtime-linker.h. 2015-06-10 Dmitry V. Levin * Makeconfig (+interp): Remove unused variable. * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes] only. Depend on $(common-objpfx)runtime-linker.h instead of $(elf-objpfx)runtime-linker.h. ($(elf-objpfx)runtime-linker.h): Rename to $(common-objpfx)runtime-linker.h and move ... * Makerules [$(build-shared) = yes]: ... here. * elf/interp.c: Include instead of . 2015-06-09 Adhemerval Zanella * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday_syscall): Remove vsyscall fallback. * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise. * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall): Add syscall fallback function. (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism if vDSO is not present. * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall fallback function. (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not present. * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file. * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise. 2015-06-09 Joseph Myers [BZ #18497] * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead of wcscmp. (wcscmp): Define as weak alias of WCSCMP. * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of wcscoll. (USE_HIDDEN_DEF): Define. [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of __wcscoll. Don't use libc_hidden_weak. * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of wcscmp. * sysdeps/i386/i686/multiarch/wcscmp-c.c [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of __GI_wcscmp. (weak_alias): Undefine and redefine. * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to __wcscmp and define as weak alias of __wcscmp. * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise. * include/wchar.h (__wcscmp): Declare. Use libc_hidden_proto. (__wcscoll): Likewise. (wcscmp): Don't use libc_hidden_proto. (wcscoll): Likewise. * posix/regcomp.c (build_range_exp): Call __wcscoll instead of wcscoll. * posix/regexec.c (check_node_accept_bytes): Likewise. * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove variable. (test-xfail-XPG4/regex.h/linknamespace): Likewise. (test-xfail-POSIX/regex.h/linknamespace): Likewise. [BZ #18507] * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to __fstatvfs and define as weak alias of __fstatvfs. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs and define as weak alias of __statvfs. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64): Define as alias of __fstatvfs, not fstatvfs. (fstatvfs64): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64): Define as alias of __statvfs, not statvfs. (statvfs64): Likewise. * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace): Remove variable. 2015-06-09 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (HAVE_GETCPU_VSYSCALL): Define. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (HAVE_GETCPU_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file. * sysdeps/unix/sysv/linux/sched_getcpu.c (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define. (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL. * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO prototype. * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup): Remove vsyscall getcpu fallback. * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file. * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL): Define. * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file. * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise. 2015-06-09 Andrew Senkevich * sysdeps/x86_64/fpu/Makefile: New file. * sysdeps/x86_64/fpu/Versions: New file. * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file. * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file. * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file. * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file. * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file. * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos. * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC. * sysdeps/x86_64/configure.ac: Options for libmvec build. * sysdeps/x86_64/configure: Regenerated. * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file. * manual/install.texi (Configuring and compiling): Document --disable-mathvec. * INSTALL: Regenerated. * NEWS: Mention addition of libmvec and x86_64 vector cos. * math/Makefile: Added rules for vector tests. * math/gen-libm-have-vector-test.sh: Added generation of wrapper declaration under condition. * math/test-double-vlen2.h: New file. * math/test-double-vlen4.h: New file. * math/test-double-vlen8.h: New file. * math/test-vec-loop.h: Added initialization macro. * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests. * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated. * sysdeps/x86_64/fpu/math-tests-arch.h: New file. * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file. * sysdeps/x86_64/fpu/test-double-vlen2.c: New file. * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file. * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file. * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file. * sysdeps/x86_64/fpu/test-double-vlen4.c: New file. * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file. * sysdeps/x86_64/fpu/test-double-vlen8.c: New file. * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files. * sysdeps/x86_64/fpu/Versions: New versions added. * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file. * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file. * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file. * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file. * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file. * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file. * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file. * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file. * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added build of SSE, AVX2 and AVX512 IFUNC versions. * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added. * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf. * NEWS: Mention addition of x86_64 vector cosf. * math/Makefile: Added CFLAGS for new tests. * math/test-float-vlen16.h: New file. * math/test-float-vlen4.h: New file. * math/test-float-vlen8.h: New file. * math/test-double-vlen2.h: Fixed 2 argument macro and comment. * sysdeps/x86_64/fpu/Makefile: Added new tests and variables. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen16.c: New file. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen4.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8.c: New file. 2015-06-09 Marko Myllynen * locale/C-ctype.c (PREDEFINED_CLASSES): Remove. * locale/programs/ld-ctype.c: Likewise. 2015-06-08 Andrew Senkevich * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable, bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state, bit_ZMM16_31_state): New macro. * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable. 2015-06-08 Joseph Myers * include/stdio.h (__open_memstream): Say "C++ tests" in comment. 2015-06-06 Justus Winter <4winter@informatik.uni-hamburg.de> * mach/mach/mach_traps.h (thread_switch): Fix typo in comment. 2015-06-05 Joseph Myers [BZ #18498] * libio/memstream.c (open_memstream): Rename to __open_memstream and define as weak alias of __open_memstream. * include/stdio.h (__open_memstream): Declare. Use libc_hidden_proto. (open_memstream): Don't use libc_hidden_proto. * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of open_memstream. * posix/getopt.c (_getopt_internal_r): Likewise. * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove variable. (test-xfail-XPG4/stdio.h/linknamespace): Likewise. (test-xfail-UNIX98/stdio.h/linknamespace): Likewise. (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise. [BZ #18496] * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb instead of wcrtomb. [BZ #18483] * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to [__USE_XOPEN2K8]. Remove redundant #endif. [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8]. Remove redundant #if. * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise. (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise. [BZ #18495] * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def. (__iswlower): Likewise. * include/wctype.h (__iswalnum): Declare. Use libc_hidden_proto. (__iswlower): Likewise. * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower instead of towlower. * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower instead of iswlower. Call __towupper instead of towupper. * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum instead of iswalnum. 2015-06-05 Tulio Magno Quites Machado Filho * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal errors to stderr. 2015-06-05 Florian Weimer [BZ #15661] [BZ #17322] * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64): Check for overflow properly. Check for O_APPEND. Ignore large file system block sizes. Add comments about problems. * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise. * manual/filesys.texi (Storage Allocation): New node. 2015-06-04 Adhemerval Zanella * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define cancellable syscalls. (SYS_ify): Add guard to no redefine it. (INLINE_SYSCALL): Likewise. * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use SYSCALL_CANCEL instead. * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise. * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise. * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise. * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise. * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise. * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise. * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise. * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise. * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise. * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise. * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c (__libc_preadv): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c (__libc_readv64): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c (__libc_pwritev): Likewise. * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c (__libc_pwritev64): Likewise. * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise. * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c (sync_file_range): Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate): Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64): Likewise. * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise. * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise. * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise. * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c (__libc_read64): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c (sync_file_range): Likewise. * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise. * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise. * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise. * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise. * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise. * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise. * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise. * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise. * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise. * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv): Likewise. * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Likewise. * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise. * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread): Likewise. * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise. * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise. * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise. * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise. * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise. * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise. 2015-06-04 Nathan Lynch * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines): Include dl-vdso. * sysdeps/unix/sysv/linux/arm/init-first.c: New file: Use VDSO routines for gettimeofday, clock_gettime if available. * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file: Declare VDSO symbols. * sysdeps/unix/sysv/linux/arm/sysdep.h: [HAVE_GETTIMEOFDAY_VSYSCALL]: Define. [HAVE_CLOCK_GETTIME_VSYSCALL]: Define. * sysdeps/unix/sysv/linux/arm/Versions: Add __vdso_clock_gettime. 2015-06-04 Adhemerval Zanella * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to be an inline implementation regardless of library is built within. (open_not_cancel_2): Likewise. (__read_nocancel): Likewise. (__write_nocancel): Likewise. (openat_not_cancel): Likewise. (openat_not_cancel_3): Likewise. (openat64_not_cancel): Likewise. (openat64_not_cancel_3): Likewise. (__close_nocancel): Likewise. (pause_not_cancel): Likewise. (nanosleep_not_cancel): Likewise. (sigsuspend_not_cancel): Likewise. 2015-06-04 Torvald Riegel [BZ #14958] * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing wake-up. (__pthread_rwlock_rdlock_slow): Likewise. * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise. * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): Likewise. * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments. * nptl/tst-rwlock16.c: New file. * nptl/Makefile (tests): Add new test. 2015-06-04 Torvald Riegel [BZ #18324] * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add missing wake-up of readers. * nptl/tst-rwlock15.c: New file. * nptl/Makefile (tests): Add new test. 2015-06-03 Roland McGrath * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function. (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function. * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc and __nacl_supply_interface_rtld. * sysdeps/nacl/nacl_interface_ext_supply.c: New file. * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it. * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE): Add __nacl_supply_interface_rtld. (libc: GLIBC_2.22): Add nacl_interface_ext_supply. 2015-06-03 Wilco Dijkstra * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with isfinite. * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise. 2015-06-03 Wilco Dijkstra * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and __signbit* with standard C99 macros. * math/e_exp10l.c: Likewise. * math/e_exp2l.c: Likewise. * math/e_scalb.c: Likewise. * math/e_scalbf.c: Likewise. * math/e_scalbl.c: Likewise. * math/s_ldexp.c: Likewise. * math/s_ldexpf.c: Likewise. * math/s_ldexpl.c: Likewise. * math/w_atan2.c: Likewise. * math/w_atan2f.c: Likewise. * math/w_atan2l.c: Likewise. * math/w_cosh.c: Likewise. * math/w_coshf.c: Likewise. * math/w_coshl.c: Likewise. * math/w_exp10.c: Likewise. * math/w_exp10f.c: Likewise. * math/w_exp10l.c: Likewise. * math/w_exp2.c: Likewise. * math/w_exp2f.c: Likewise. * math/w_exp2l.c: Likewise. * math/w_fmod.c: Likewise. * math/w_fmodf.c: Likewise. * math/w_fmodl.c: Likewise. * math/w_hypot.c: Likewise. * math/w_hypotf.c: Likewise. * math/w_hypotl.c: Likewise. * math/w_jnl.c: Likewise. * math/w_lgamma.c: Likewise. * math/w_lgamma_r.c: Likewise. * math/w_lgammaf.c: Likewise. * math/w_lgammaf_r.c: Likewise. * math/w_lgammal.c: Likewise. * math/w_lgammal_r.c: Likewise. * math/w_pow.c: Likewise. * math/w_powf.c: Likewise. * math/w_powl.c: Likewise. * math/w_remainder.c: Likewise. * math/w_remainderf.c: Likewise. * math/w_remainderl.c: Likewise. * math/w_scalb.c: Likewise. * math/w_scalbf.c: Likewise. * math/w_scalbl.c: Likewise. * math/w_scalbln.c: Likewise. * math/w_scalblnf.c: Likewise. * math/w_scalblnl.c: Likewise. * math/w_sinh.c: Likewise. * math/w_sinhf.c: Likewise. * math/w_sinhl.c: Likewise. * math/w_tgamma.c: Likewise. * math/w_tgammaf.c: Likewise. * math/w_tgammal.c: Likewise. * sysdeps/ieee754/dbl-64/e_exp.c: Likewise. * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise. * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise. * sysdeps/ieee754/dbl-64/e_j1.c: Likewise. * sysdeps/ieee754/dbl-64/e_jn.c: Likewise. * sysdeps/ieee754/dbl-64/e_pow.c: Likewise. * sysdeps/ieee754/dbl-64/w_exp.c: Likewise. * sysdeps/ieee754/flt-32/e_expf.c: Likewise. * sysdeps/ieee754/flt-32/e_j1f.c: Likewise. * sysdeps/ieee754/flt-32/e_jnf.c: Likewise. * sysdeps/ieee754/flt-32/w_expf.c: Likewise. * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise. * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise. * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise. * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise. * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise. * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise. * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise. * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise. * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise. * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise. * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise. * stdio-common/printf_fp.c: Likewise. * stdio-common/printf_fphex.c: Likewise. * stdio-common/printf_size.c: Likewise. 2015-06-03 Joseph Myers [BZ #18470] * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of strnlen. * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace): Remove variable. (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise. (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise. (test-xfail-POSIX/glob.h/linknamespace): Likewise. (test-xfail-POSIX/wordexp.h/linknamespace): Likewise. (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise. (test-xfail-UNIX98/glob.h/linknamespace): Likewise. (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise. (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise. (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise. (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise. [BZ #18468] * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as weak alias of __wmemchr. Use libc_hidden_weak. * include/wchar.h (__wmemchr): Declare. Use libc_hidden_proto. * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr instead of wmemchr. 2015-06-02 Roland McGrath [BZ #18383] * elf/tst-tlsalign-extern.c: New file. * elf/tst-tlsalign-extern-static.c: New file. * elf/tst-tlsalign-vars.c: New file. * elf/Makefile (tests-static): Add tst-tlsalign-extern-static. [$(build-shared) = yes] (tests): Add tst-tlsalign-extern. ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o. ($(objpfx)tst-tlsalign-extern-static): Likewise. (test-xfail-tst-tlsalign-extern-static): New variable. 2015-06-02 Joseph Myers * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL): Use variable name _sc_err instead of err. [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret instead of ret. * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (INLINE_SYSCALL): Use variable name _sc_err instead of err. * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (INLINE_SYSCALL): Likewise. * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def. * include/string.h (__strnlen): Use libc_hidden_proto. * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def. * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED] (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen. * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S (libc_hidden_def): Undefine and redefine. * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c [SHARED] (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen. * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use libc_hidden_def. * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise. [BZ #18469] * wctype/wcfuncs.c (towlower): Rename to __towlower and define as weak alias of __towlower. Use libc_hidden_weak. (towupper): Rename to __towupper and define as weak alias of __towupper. Use libc_hidden_weak. * include/wctype.h (__towlower): Declare. Use libc_hidden_proto. (__towupper): Likewise. * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use __towlower instead of towlower. 2015-06-02 Roland McGrath * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma. 2015-06-02 Szabolcs Nagy * sysdeps/aarch64/libm-test-ulps: Update. 2015-06-01 Adhemerval Zanella * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL): Define. (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise. (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h. * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file. * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise. 2015-06-01 Martin Sebor [BZ #18116] * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S (__setcontext): Use extended four-operand version of mtsf whenever possible. * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S (__novec_swapcontext): Likewise. 2015-06-01 Siddhesh Poyarekar * benchtests/scripts/compare_bench.py: New file. * benchtests/scripts/import_bench.py (mean): New function. (split_list): Likewise. (do_for_all_timings): Likewise. (compress_timings): Likewise. * benchtests/scripts/import_bench.py: New file. * benchtests/scripts/validate_benchout.py: Import import_bench instead of jsonschema. (validate_bench): Remove function. (main): Use import_bench. 2015-06-01 Steve Ellcey * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask. 2015-05-29 Adhemerval Zanella * sysdeps/powerpc/fpu/libm-test-ulps: Update. 2015-05-28 Roland McGrath * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached, set THREAD_SELF->tid to a magic value and futex-wake it. Pass its address to the thread_exit system call. * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low bit is clear. * sysdeps/nacl/lowlevellock.h: New file. * sysdeps/nacl/lll_timedwait_tid.c: New file. * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait): Add TIMEOUT to current time, don't subtract it. 2015-05-28 H.J. Lu [BZ #2981] [BZ #18422] * Makefile ($(objpfx)tst-audit2): Depend on $(libdl). ($(objpfx)tst-audit2.out): Also depend on $(objpfx)tst-auditmod9b.so. * elf/tst-audit2.c: Include . (calloc_called): New. (calloc): Allow to be called more than once. (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so. 2015-05-28 Wilco Dijkstra * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs. * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise. 2015-05-27 Marko Myllynen * stdlib/monetary.h: Fix comment. 2015-05-26 Chris Metcalf * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL): Avoid using variables in #defines that might cause shadowing. (INTERNAL_VSYSCALL_CALL): Likewise. 2015-05-26 Roland McGrath * sysdeps/nacl/lll_timedlock_wait.c: New file. * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ... * nptl/lll_timedlock_wait.c: ... to this new file. * nptl/Makefile (libpthread-routines): Add it. * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ... * nptl/lll_timedwait_tid.c: ... to this new file. * nptl/Makefile (libpthread-routines): Add it. * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file. * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file. * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file. * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file. * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file. * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file. * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file. * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file. * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file. * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file. 2015-05-26 Adhemerval Zanella * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file. * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise. * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep.h (HAVE_GETTIMEOFDAY_VSYSCALL): Define. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/tile/sysdep.h (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday using vDSO syscall macro. 2015-05-26 Andriy Rysin [BZ #17293] * uk_UA: Fix sorting order for Ukrainian locale 2015-05-26 Marko Myllynen * stdlib/monetary.h: Fix comment. 2015-05-26 Szabolcs Nagy [BZ #18234] * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim, st_mtim and st_ctim members. * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only. * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,): (struct stat64): Likewise. * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,): (struct stat64): Likewise. * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,): (struct stat64): Likewise. 2015-05-26 Adhemerval Zanella * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL): Define and include sysdep-vdso.h. * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday): Define with VDSO_SYMBOL and use PTR_MANGLE. (__vdso_clock_gettime): Likewise. (__vdso_clock_getres): Likewise. (_libc_vdso_platform_setup): Likewise. * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime): Likewise. (_libc_vdso_platform_setup): Likewise. * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday): Likewise. (__vdso_clock_gettime): Likewise. (__vdso_clock_getres): Likewise. (__vdso_get_tbfreq): Likewise. (__vdso_getcpu): Likewise. (__vdso_time): Likewise. (__vdso_sigtramp_rt64): Likewise. (__vdso_signtramp32): Likewise. (__vdso_sigtramp_rt32): Likewise. (_libc_vdso_platform_setup): Likewise. * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay): Likewise. (__vdso_clock_gettime): Likewise. (__vdso_clock_getres): Likewise. (_libc_vdso_platform_setup): Likewise. * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday): Likewise. (__vdso_clock_gettime): Likewise. (_libc_vdso_platform_setup): Likewise. * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime): Likewise. (__vdso_getcpu): Likewise. * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday): Use VDSO_SYMBOL macro to define. (__vdso_clock_gettime): Likewise. (__vdso_clock_getres): Likewise. * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday): Likewise. (__vdso_clock_gettime): Likewise. (__vdso_clock_getres): Likewise. (__vdso_get_tbfreq): Likewise. (__vdso_getcpu): Likewise. (__vdso_time): Likewise. (__vdso_sigtramp_rt64): Likewise. (__vdso_signtramp32): Likewise. (__vdso_sigtramp_rt32): Likewise. * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday): Likewise. (__vdso_clock_gettime): Likewise. (__vdso_clock_getres): Likewise. * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday): Likewise. (__vdso_clock_gettime): Likewise. * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime): Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL): Remove macro. (INTERNAL_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL): Remove macro. (INTERNAL_VSYSCALL): Likewise. (INTERNAL_VSYSCALL_NCS): Likewise. (INTERNAL_VSYSCALL_CALL): New macro. (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL): Likewise. (INTERNAL_VSYSCALL): Likewise. (INTERNAL_VSYSCALL_NCS): Likewise. (INTERNAL_VSYSCALL_CALL): New macro. (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_VSYSCALL): Remove macro. (INTERNAL_VSYSCALL): Remove macro. (INTERNAL_VSYSCALL_NCS): Remove macro. (INTERNAL_VSYSCALL_CALL): New macro. (INTERNAL_VSYSCALL_CALL_TYPE): New macro. (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL. (INTERNAL_VSYSCALL_NCS_TYPE): Likewise. (HAVE_CLOCK_GETRES_VSYSCALL): New define. (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_VSYSCALL): Remove macro. (INTERNAL_VSYSCALL): Likewise. (INTERNAL_VSYSCALL_NCS): Likewise. (INTERNAL_VSYSCALL_CALL): New macro. (INTERNAL_VSYSCALL_CALL_TYPE): Likewise. (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and PTR_DEMANGLE on vDSO pointer. (INTERNAL_VSYSCALL_NCS_TYPE): Likewise. * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove macro. (INTERNAL_SYSCALL): Likewise. (INTERNAL_VSYSCALL_NCS): Remove macro. (INTERNAL_VSYSCALL_CALL): New macro. * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL): Remove macro. (INTERNAL_VSYSCALL): Likewise. * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include sysdep-vdso.h instead of libc-vdso.h. * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove definition. (INLINE_VSYSCALL): Likewise. (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define. * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove definition. (INLINE_VSYSCALL): Likewise. (INTERNAL_VSYSCALL): Likewise. (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define. * sysdeps/unix/sysv/linux/timespec_get.c (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define. (timespec_get): Use ANSI prototype. * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros and definition for Linux. 2015-05-25 Andrew Senkevich * elf/Makefile (localplt-built-dso): libmvec added to localplt test. * include/libc-symbols.h: libmvec_hidden_* macro series added. 2015-05-22 H.J. Lu [BZ #2981] [BZ #18410] * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error for missing DT_PLTRELSZ. 2015-05-22 Paul Eggert Remove obsolete aliases that broke 'locale -a' [BZ #18412] * intl/locale.alias: Remove obsolete aliases "bokmål" and "français" which caused 'locale -a' to output Latin-1 data in UTF-8 locales, breaking some applications that use 'locale -a' output. Change the encoding of this file from Latin-1 to ASCII to avoid other potential problems with people grepping this file. 2015-05-22 Adhemerval Zanella * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and -fasynchronous-unwind-tables. (CFLAGS-sendto.c): Likewise. (CFLAGS-sendmsg.c): Likewise. (CFLAGS-connect.c): Likewise. (CFLAGS-recvmsg.c): Likewise. (CFLAGS-recvfrom.c): Likewise. * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define. (SOCKETCALL): New macro: non-cancellable socketcall. (SOCKETCALL_CANCEL): New macro: cancellable socketcall. * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove internal_accept4, internal_recvmmsg, and internal_sendmmsg rules. * sysdeps/unix/sysv/linux/accept.c: New file. * sysdeps/unix/sysv/linux/bind.c: Likewise. * sysdeps/unix/sysv/linux/connect.c: Likewise. * sysdeps/unix/sysv/linux/getpeername.c: Likewise. * sysdeps/unix/sysv/linux/getsockname.c: Likewise. * sysdeps/unix/sysv/linux/getsockopt.c: Likewise. * sysdeps/unix/sysv/linux/listen.c: Likewise. * sysdeps/unix/sysv/linux/recv.c: Likewise. * sysdeps/unix/sysv/linux/recvfrom.c: Likewise. * sysdeps/unix/sysv/linux/recvmsg.c: Likewise. * sysdeps/unix/sysv/linux/send.c: Likewise. * sysdeps/unix/sysv/linux/sendmsg.c: Likewise. * sysdeps/unix/sysv/linux/sendto.c: Likewise. * sysdeps/unix/sysv/linux/setsockopt.c: Likewise. * sysdeps/unix/sysv/linux/shutdown.c: Likewise. * sysdeps/unix/sysv/linux/socket.c: Likewise. * sysdeps/unix/sysv/linux/socketpair.c: Likewise. * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove prototype. (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation. (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro instead of __internal_xxx function. * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove prototype. (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation. (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro instead of __internal_xxx function. * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove prototype. (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation. (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro instead of __internal_xxx function. * sysdeps/unix/sysv/linux/accept.S: Remove file. * sysdeps/unix/sysv/linux/bind.S: Likewise. * sysdeps/unix/sysv/linux/connect.S: Likewise. * sysdeps/unix/sysv/linux/getpeername.S: Likewise. * sysdeps/unix/sysv/linux/getsockname.S: Likewise. * sysdeps/unix/sysv/linux/getsockopt.S: Likewise. * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise. * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise. * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise. * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise. * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise. * sysdeps/unix/sysv/linux/i386/socket.S: Likewise. * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise. * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise. * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise. * sysdeps/unix/sysv/linux/listen.S: Likewise. * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise. * sysdeps/unix/sysv/linux/recv.S: Likewise. * sysdeps/unix/sysv/linux/recvfrom.S: Likewise. * sysdeps/unix/sysv/linux/recvmsg.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise. * sysdeps/unix/sysv/linux/send.S: Likewise. * sysdeps/unix/sysv/linux/sendmsg.S: Likewise. * sysdeps/unix/sysv/linux/sendto.S: Likewise. * sysdeps/unix/sysv/linux/setsockopt.S: Likewise. * sysdeps/unix/sysv/linux/sh/socket.S: Likewise. * sysdeps/unix/sysv/linux/shutdown.S: Likewise. * sysdeps/unix/sysv/linux/socketpair.S: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise. * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise. * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how socketcall is implemented in GLIBC. 2015-05-22 Joseph Myers * soft-fp/fmadf4.c: Include . (__fma): Ignore uninitialized warnings around packing. * soft-fp/fmasf4.c: Include . (__fmaf): Ignore uninitialized warnings around packing. * soft-fp/fmatf4.c: Include . (__fmal): Ignore uninitialized warnings around packing. * sysdeps/ieee754/ldbl-128/k_tanl.c: Include . (__kernel_tanl): Ignore uninitialized warnings around use of SIGN. * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include . (__kernel_tanl): Ignore uninitialized warnings around use of SIGN. * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in switch statement into default case. * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise. * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use a conditional in forcing "inexact". * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise. 2015-05-22 Roland McGrath * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope for each INTERNAL_SYSCALL use. 2015-05-22 Joseph Myers [BZ #438] * posix/unistd.h (_POSIX2_C_VERSION): New macro. * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove variable. [BZ #18444] * string/basename.c (basename): Rename to __basename and define as weak alias of __basename. Use libc_hidden_weak. * include/string.h (__basename): Declare. Use libc_hidden_proto. * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call __basename instead of basename. * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace): Remove variable. (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise. 2015-05-18 Florian Weimer * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS) (_IO_JUMPS_FILE_plus): New. (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use _IO_CAST_FIELD_ACCESS. * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap, mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. * libio/iofopen.c (__fopen_maybe_mmap): Likewise. * libio/iofopncook.c (_IO_old_fopencookie): Likewise. * libio/iofwide.c (_IO_fwide): Likewise. * libio/memstream.c (open_memstream): Likewise. * libio/oldiofdopen.c (_IO_old_fdopen): Likewise. * libio/oldiofopen.c (_IO_old_fopen): Likewise. * libio/oldiopopen.c (_IO_old_popen): Likewise. 2015-05-21 Joseph Myers * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include . (__ieee754_lgamma_r): Ignore uninitialized warnings around use of NADJ. * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include . (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of NADJ. * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include . (__ieee754_lgammal_r): Ignore uninitialized warnings around use of NADJ. * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on (p == 4) case. * conform/linknamespace.pl (@whitelist): Add re_syntax_options. * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise. (test-xfail-POSIX2008/regex.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise. 2015-05-21 Florian Weimer * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF): Adjust jump table label generation macros. 2015-05-21 Florian Weimer * stdio-common/vfprintf.c (vfprintf): Move local variables args_malloced, specs, specs_malloced, and the code after do_positional to the printf_positional function. (printf_positional): New function. 2015-05-21 Florian Weimer * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf function. (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE, STEP4_TABLE, process_arg): Move macro definitions out of the vfprintf function. (Cosmetic change only.) 2015-05-21 Carlos O'Donell * benchtests/Makefile (stdio-common-bench): Define. (benchset): Add stdio-common-bench. * sprintf-inputs: New file. * sprintf-source.c: New file. 2015-05-21 Andreas Schwab [BZ #13028] [BZ #17053] * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member of struct __res_state. * resolv/res_send.c (__libc_res_nsend): Likewise. (get_nsaddr): New function. (res_ourserver_p, send_vc, reopen): Use it instead of accessing statp directly. 2015-05-20 Joseph Myers * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use -D_POSIX_C_SOURCE=199506L. * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require. * conform/data/unistd.h-data (_POSIX_VERSION): Require. (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98]. Do not mention otherwise. [POSIX] (_XOPEN_VERSION): Do not expect. [POSIX] (_XOPEN_XCU_VERSION): Likewise. [POSIX] (_POSIX2_C_BIND): Likewise. [POSIX] (_POSIX2_VERSION): Likewise. [POSIX] (_XOPEN_XPG2): Likewise. [POSIX] (_XOPEN_XPG3): Likewise. [POSIX] (_XOPEN_XPG4): Likewise. [POSIX] (_XOPEN_UNIX): Likewise. [POSIX] (_POSIX_ADVISORY_INFO): Likewise. [POSIX] (_POSIX_BARRIERS): Likewise. [POSIX] (_POSIX_CLOCK_SELECTION): Likewise. [POSIX] (_POSIX_CPUTIME): Likewise. [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise. [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise. [POSIX] (_POSIX_SHELL): Likewise. [POSIX] (_POSIX_SPAWN): Likewise. [POSIX] (_POSIX_SPIN_LOCKS): Likewise. [POSIX] (_POSIX_SPORADIC_SERVER): Likewise. [POSIX] (_POSIX_THREAD_CPUTIME): Likewise. [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise. [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise. [POSIX] (_XBS5_ILP32_OFF32): Likewise. [POSIX] (_XBS5_ILP32_OFBIG): Likewise. [POSIX] (_XBS5_LP64_OFF64): Likewise. [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise. [POSIX] (_POSIX_TIMEOUTS): Likewise. [POSIX] (_POSIX2_PBS): Likewise. [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise. [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise. [POSIX] (_POSIX2_PBS_LOCATE): Likewise. [POSIX] (_POSIX2_PBS_MESSAGE): Likewise. [POSIX] (_POSIX2_PBS_TRACK): Likewise. [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise. [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise. [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise. [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise. [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise. [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise. [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise. [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise. [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise. [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise. [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise. [POSIX] (_SC_2_C_BIND): Likewise. [POSIX] (_SC_2_C_VERSION): Likewise. [POSIX] (_SC_2_PBS): Likewise. [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise. [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise. [POSIX] (_SC_2_PBS_LOCATE): Likewise. [POSIX] (_SC_2_PBS_MESSAGE): Likewise. [POSIX] (_SC_2_PBS_TRACK): Likewise. [POSIX] (_SC_ATEXIT_MAX): Likewise. [POSIX] (_SC_BARRIERS): Likewise. [POSIX] (_SC_BASE): Likewise. [POSIX] (_SC_CLOCK_SELECTION): Likewise. [POSIX] (_SC_DEVICE_IO): Likewise. [POSIX] (_SC_DEVICE_SPECIFIC): Likewise. [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise. [POSIX] (_SC_FD_MGMT): Likewise. [POSIX] (_SC_FIFO): Likewise. [POSIX] (_SC_FILE_ATTRIBUTES): Likewise. [POSIX] (_SC_FILE_LOCKING): Likewise. [POSIX] (_SC_FILE_SYSTEM): Likewise. [POSIX] (_SC_IOV_MAX): Likewise. [POSIX] (_SC_MONOTONIC_CLOCK): Likewise. [POSIX] (_SC_NETWORKING): Likewise. [POSIX] (_SC_PAGE_SIZE): Likewise. [POSIX] (_SC_PASS_MAX): Likewise. [POSIX] (_SC_PIPE): Likewise. [POSIX] (_SC_READER_WRITER_LOCKS): Likewise. [POSIX] (_SC_REGEXP): Likewise. [POSIX] (_SC_SHELL): Likewise. [POSIX] (_SC_SIGNALS): Likewise. [POSIX] (_SC_SINGLE_PROCESS): Likewise. [POSIX] (_SC_SPIN_LOCKS): Likewise. [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise. [POSIX] (_SC_USER_GROUPS): Likewise. [POSIX] (_SC_USER_GROUPS_R): Likewise. [POSIX] (_SC_STREAMS): Likewise. [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise. [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise. [POSIX] (_SC_XBS5_LP64_OFF64): Likewise. [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise. [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise. [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise. [POSIX] (_PC_FILESIZEBITS): Likewise. [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise. [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise. [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise. [POSIX] (_PC_REC_XFER_ALIGN): Likewise. [POSIX] (uid_t): Likewise. [POSIX] (gid_t): Likewise. [POSIX] (off_t): Likewise. [POSIX] (pid_t): Likewise. [POSIX] (cuserid): Allow. (_SC_2_CHAR_TERM): Require constant. (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant. * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New variable. 2015-05-20 Roland McGrath * sysdeps/nacl/pthread-pids.h: New file. * sysdeps/nacl/createthread.c: Include . (create_thread): Use __nacl_get_tid to initialize PD->tid. * nptl/pthread-pids.h: New file. * sysdeps/unix/sysv/linux/pthread-pids.h: New file. * nptl/nptl-init.c: Include . (__pthread_initialize_minimal_internal): Call __pthread_initialize_pids instead of set_tid_address syscall. * sysdeps/unix/sysv/linux/usleep.c: Moved to ... * sysdeps/posix/usleep.c: ... here. 2015-05-20 Adhemerval Zanella * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove call_pselect6 object. [$(subdir) = io]: Remove call_sync_file_range object. * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file. * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file. * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file. * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file. 2015-05-20 Wilco Dijkstra * math/s_cproj.c: Add include "math_private.h". * math/s_cprojf.c: Likewise. * math/s_cprojl.c: Likewise. 2015-05-19 Joseph Myers [BZ #18244] * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit high mantissa bit when testing whether P is a NaN. * math/libm-test.inc (remainder_test_data): Add more tests. (remquo_test_data): Likewise. [BZ #18049] * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents below -32, return the argument, with underflow if subnormal. * math/auto-libm-test-in: Add more tests of atanh. * math/auto-libm-test-out: Regenerated. 2015-05-19 Roland McGrath [BZ #18434] * nptl/tst-sem15.c: New file. * nptl/Makefile (tests): Add it. * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]: s/<>/ to fix typo in EOVERFLOW check. * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise. 2015-05-19 Siddhesh Poyarekar * manual/strings.texi (envz_remove): Fix typo in safety annotations. 2015-05-19 Paul Eggert Steve Ellcey * inet/rcmd.c (rresvport_af): Change ss to anonymous union in order to avoid strict alias warnings. (iruserok_af): Ditto for ra. 2015-05-19 James Lemke [BZ #17581] * malloc/hooks.c (magicbyte): Convert to a function and avoid returning 0x01. (mem2mem_check): Avoid using a length byte equal to the magic byte. (mem2chunk_check): Fix unsigned comparisons to zero. Hoist defs of sz and magic. 2015-05-19 Richard Henderson * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R. * sysdeps/alpha/fpu/libm-test-ulps: Update. 2015-05-19 Siddhesh Poyarekar [BZ #16159] * malloc/Makefile (tests): New test case tst-malloc-backtrace. * malloc/arena.c (arena_lock): Check if arena is corrupt. (reused_arena): Find a non-corrupt arena. (heap_trim): Pass arena to unlink. * malloc/hooks.c (malloc_check_get_size): Pass arena to malloc_printerr. (top_check): Likewise. (free_check): Likewise. (realloc_check): Likewise. * malloc/malloc.c (malloc_printerr): Add arena argument. (unlink): Likewise. (munmap_chunk): Adjust. (ARENA_CORRUPTION_BIT): New macro. (arena_is_corrupt): Likewise. (set_arena_corrupt): Likewise. (sysmalloc): Use mmap if there are no usable arenas. (_int_malloc): Likewise. (__libc_malloc): Don't fail if arena_get returns NULL. (_mid_memalign): Likewise. (__libc_calloc): Likewise. (__libc_realloc): Adjust for additional argument to malloc_printerr. (_int_free): Likewise. (malloc_consolidate): Likewise. (_int_realloc): Likewise. (_int_memalign): Don't touch corrupt arenas. * malloc/tst-malloc-backtrace.c: New test case. * Makefile (summarize-tests): Fix return value on success. * manual/string.texi (Envz Functions): Add envz_remove. 2015-05-18 Roland McGrath * sysdeps/posix/opendir.c: Include . (invalid_name): New function, broken out of ... (__opendirat): ... here. Call it. (need_isdir_precheck): New function, broken out of ... (__opendirat): ... here. Call it. Use __fxstatat64, not __xstatat64. (opendir_oflags): New function, broken out of ... (__opendirat): ... here. Call it. (opendir_tail): New function, broken out of ... (__opendirat): ... here. Call it. (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and opendir_tail, rather than punting to __opendirat. (__opendirat): Conditionalize function definition on [IS_IN (libc)]. 2015-05-18 Siddhesh Poyarekar * .gitignore: Ignore generated *.pyc. 2015-05-18 Arjun Shankar * include/stdio.h: Define __need_wint_t. * test-skeleton.c: Avoid `for' loop initial declaration. * nptl/tst-initializers1.c: Use test-skeleton.c. 2015-05-17 Adhemerval Zanella [BZ #18418] * stdlib/tst-setcontext3.sh: Remove non-portable array use. 2015-05-15 Joseph Myers [BZ #16352] * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object. (__ieee754_atanh): Force underflow exception for results with small absolute value. * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object. (__ieee754_atanhf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/dbl-64/e_atanh.c: Include . (__ieee754_atanh): Force underflow exception for results with small absolute value. * sysdeps/ieee754/flt-32/e_atanhf.c: Include . (__ieee754_atanhf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include . (__ieee754_atanhl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include . (__ieee754_atanhl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include . (__ieee754_atanhl): Force underflow exception for results with small absolute value. * math/auto-libm-test-in: Do not allow missing underflow exceptions from atanh. * math/auto-libm-test-out: Regenerated. [BZ #18221] * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not 2**-28 as threshold for returning x or +/- 1/x. * math/auto-libm-test-in: Add more tests of tan. * math/auto-libm-test-out: Regenerated. [BZ #18220] * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use 2**26 not 2**58 as threshold for returning x * (log (x) - 1). * math/auto-libm-test-in: Add another test of lgamma. * math/auto-libm-test-out: Regenerated. 2015-05-15 Wilco Dijkstra * stdio-common/printf_fp.c (___printf_fp): Use abs. * stdlib/gmp-impl.h (ABS): Remove define. (ABSIZ): Remove. * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs. * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs. (ESUB): Use fabs. (ADD2): Use fabs. (SUB2): Use fabs. (ADD2A): Use fabs. (SUB2A): Use fabs. * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs. * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs. * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs. (log1): Use fabs. (my_log2): Use fabs. * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs. * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define. * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs. * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define. * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs. (__cos): Use fabs. (slow): Use fabs. (slow2): Use fabs. (sloww): Use fabs. (sloww1): Use fabs. (sloww2): Use fabs. (bslow1): Use fabs. (bslow2): Use fabs. (cslow2): Use fabs. (csloww): Use fabs. (csloww1): Use fabs. (csloww2): Use fabs. * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs. * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include. 2015-05-15 Joseph Myers [BZ #18217] * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56 as threshold for returning 1 - x. * math/auto-libm-test-in: Add more tests of erfc. * math/auto-libm-test-out: Regenerated. 2015-05-14 Joseph Myers [BZ #18196] * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as threshold for large arguments. * math/auto-libm-test-in: Add another test of atan. * math/auto-libm-test-out: Regenerated. [BZ #16339] * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object. (__log1p): Force underflow exception for results with small absolute value. * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object. (__log1pf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/dbl-64/s_log1p.c: Include . (__log1p): Force underflow exception for results with small absolute value. * sysdeps/ieee754/flt-32/s_log1pf.c: Include . (__log1pf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include . (__log1pl): Force underflow exception for results with small absolute value. * math/auto-libm-test-in: Do not allow missing underflow exceptions from log1p. * math/auto-libm-test-out: Regenerated. 2015-05-14 Jakub Bogusz Adhemerval Zanella [BZ #16704] * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage. 2015-05-14 Andrew Senkevich * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder. (libmvec): New variable. * configure.ac: Added option for mathvec build. * configure: Regenerated. * mathvec/Depend: New file. * mathvec/Makefile: New file. * shlib-versions: Added libmvec. * math/Makefile: Added rule for libm.so installation. * bits/math-vector.h: New file. * bits/libm-simd-decl-stubs.h: New header. * math/Makefile (headers): Added new header libm-simd-decl-stubs.h. * math/math.h (__MATHCALL_VEC): New macro. * math/gen-libm-have-vector-test.sh: Script generates series of macros for conditions in testing functions. * math/Makefile: Added call of libm-have-vector-test.sh. * math/libm-test.inc (HAVE_VECTOR): New macros. * math/libm-test.inc: START refactored. * math/test-double.c (TEST_MATHVEC): Add define. * math/test-float.c: Likewise. * math/test-idouble.c: Likewise. * math/test-ifloat.c: Likewise. * math/test-ildoubl.c: Likewise. * math/test-ldouble.c: Likewise. * sysdeps/generic/math-tests-arch.h (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime architecture check. * math/test-double.c (FUNC_TEST): New macro. * math/test-float.c: Likewise. * math/test-idouble.c: Likewise. * math/test-ifloat.c: Likewise. * math/test-ildoubl.c: Likewise. * math/test-ldouble.c: Likewise. * math/libm-test.inc: Use FUNC_TEST for name of tested functions. 2015-05-13 Roland McGrath * sysdeps/nacl/fdopendir.c: New file. * dirent/scandir-tail.c: New file. * dirent/scandir64-tail.c: New file. * dirent/Makefile (routines): Add them. (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables. * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them. * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed. [!SCANDIR] (SCANDIR_TAIL): New macro. (SCANDIR): Call __opendir and __scandir_tail, not __scandirat. * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64] (SCANDIRAT): Macro removed. (SCANDIR_TAIL): New macro. * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed. [!SCANDIRAT] (SCANDIR_TAIL): New macro. (SCANDIRAT): Just call __opendirat and __scandir_tail. * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64] (READDIR): Macro removed. (SCANDIR_TAIL): New macro. * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed. (SCANDIR_TAIL): New macro. * dirent/scandirat.c (__scandir_cancel_handler): Function moved ... * dirent/scandir-cancel.c: ... to this new file. * dirent/Makefile (routines): Add it. * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed. * sysdeps/unix/sysv/linux/i386/scandir64.c (SKIP_SCANDIR_CANCEL): Macro removed. * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden. * dirent/tst-scandir.c: New file. * dirent/tst-scandir64.c: New file. * dirent/Makefile (tests): Add them. 2015-05-13 H.J. Lu [BZ #18409] * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'. 2015-05-13 Szabolcs Nagy * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber list. 2015-05-13 Leonhard Holz * benchtests/bench-strcoll.c: New benchmark. * benchtests/Makefile: Generate locales and run benchmark. * benchtests/strcoll-inputs/filelist#C: New benchmark input file. * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise. * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise. 2015-05-12 Ondřej Bílka * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection. * sysdeps/x86_64/multiarch/strspn.S: Likewise. 2015-05-12 Roland McGrath * posix/uname-values.h: New file. * posix/uname.c: Include that instead of . * sysdeps/nacl/uname-values.h: New file. * sysdeps/arm/nacl/uname-values.h: New file. 2015-05-12 Joseph Myers * conform/linknamespace.pl (list_syms): Remove \[.*?\] before splitting into fields. 2015-05-12 Leonhard Holz * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE. * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list. * locale/localeinfo.h: Add enum collation_encoding_type. * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit. * programs/ld-collate.c (collate_output): Add encoding type info. * string/strcoll_l.c (STRDIFF): New function. * (STRCOLL): Use STRDIFF to skip over equal prefix. * wcsmbs/wcscoll_l.c: Define STRDIFF. 2015-05-11 Joseph Myers [BZ #18397] * sysdeps/mips/mips32/fpu/fpu_control.c: Move to .... * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here. Include instead of . * sysdeps/mips/mips32/fpu/Makefile: New file. 2015-05-11 Andreas Schwab [BZ #18007] * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call nss_endgrent. (_nss_compat_endgrent): Call nss_endgrent. * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call nss_endpwent. (_nss_compat_endpwent): Call nss_endpwent. * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter needent, call nss_setspent only if non-zero. (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero. (internal_endspent): Don't call nss_endspent. (_nss_compat_endspent): Call nss_endspent. * nss/nss_files/files-XXX.c (position, last_use, keep_stream): Remove. All uses removed. (internal_setent): Remove parameter stayopen, add parameter stream. Use it instead of global variable. (CONCAT(_nss_files_set,ENTNAME)): Pass global stream. (internal_endent, internal_getent): Add parameter stream. Use it instead of global variable. (CONCAT(_nss_files_end,ENTNAME)) (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream. (_nss_files_get##name##_r): Pass local stream. Remove locking. * nss/nss_files/files-alias.c (position, last_use): Remove. All uses removed. (internal_setent, internal_endent): Add parameter stream. Use it instead of global variable. (_nss_files_setaliasent, _nss_files_endaliasent): Pass global stream. (get_next_alias): Add parameter stream. (_nss_files_getaliasent_r): Pass global stream. (_nss_files_getaliasbyname_r): Pass local stream. Remove locking. * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r) (_nss_files_gethostbyname4_r): Pass local stream to internal_setent, internal_getent and internal_endent. Remove locking. 2015-05-11 Stefan Liebler * tst-strfmon1.c (tests): Update expected currency symbol. 2015-05-08 Roland McGrath * sysdeps/nacl/gethostname.c: New file. 2015-05-08 Joseph Myers * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10 and sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-05-08 Carlos O'Donell [BZ #18125] * stdlib/tst-setcontext3.c: New file. * stdlib/tst-setcontext3.sh: New file. * stdlib/Makefile (tests): Add tst-setcontext3. (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh to verify test program created output file. * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit. * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise. * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise. * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise. 2015-05-06 Roland McGrath [BZ #18383] * elf/tst-tlsalign.c: New file. * elf/tst-tlsalign-static.c: New file. * elf/tst-tlsalign-lib.c: New file. * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign. (tests-static): Add tst-tlsalign-static. (modules-names): Add tst-tlsalign-lib. (test-xfail-tst-tlsalign): New variable. (test-xfail-tst-tlsalign-static): New variable. * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER): Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe. 2015-05-06 Joseph Myers * math/auto-libm-test-in: Add more tests of acosh, atanh, cos, csqrt, erfc, sin and sincos. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-05-06 Szabolcs Nagy * sysdeps/aarch64/libm-test-ulps: Update. 2015-05-05 Joseph Myers * math/auto-libm-test-in: Add more tests of acosh, atanh, clog, clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-04-30 Daniel Marjamäki [BZ #18265] * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute. (wcsncpy): Likewise. 2015-05-05 Florian Weimer * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Assume __ASSUME_FALLOCATE is always true. * sysdeps/unix/sysv/linux/posix_fallocate64.c (__posix_fallocate64_l64): Likweise. * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c (posix_fallocate): Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c (__posix_fallocate64_l64): Likewise. * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c [!__ASSUME_FALLOCATE]: Add comment. 2015-05-05 Florian Weimer * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate. (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall. * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove. * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise. * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise. * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise. * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise. 2015-05-02 Joseph Myers * math/auto-libm-test-in: Add more tests of atan, clog, clog10, cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and tgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-05-01 Joseph Myers * math/auto-libm-test-in: Add more tests of tgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of tanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of tan. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of cos, sin and sincos. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add another test of pow. * math/auto-libm-test-out: Regenerated. * sysdeps/x86_64/fpu/libm-test-ulps: Update. * math/auto-libm-test-in: Add more tests of lgamma. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of log, log10, log2 and log1p. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-05-01 Mark Wielaard * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and Elf64_Chdr structs and ELFCOMPRESS constants. 2015-05-01 Joseph Myers * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and expm1. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of erf and erfc. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-05-01 Szabolcs Nagy * config.h.in (HAVE_AARCH64_BE): Add. 2015-04-30 Joseph Myers * math/auto-libm-test-in: Add more tests of csqrt. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of cosh and sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file. 2015-04-29 Roland McGrath * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE. * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t. * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess. (euidaccess, eaccess): Define as weak aliases. * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use __SLONGWORD_TYPE rather than __S32_TYPE. They are the same size, but __suseconds_t is often 'long int' so some sources assume that type is being used (e.g. they use %ld to print tv_usec). 2015-04-29 Florian Weimer [BZ #18007] * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen. (CVE-2014-8121) * nss/tst-nss-getpwent.c: New file. * nss/Makefile (tests): Add new test. 2015-04-28 Joseph Myers [BZ #18346] * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all exponents less than 48 as cases where high part of mantissa needs examining to determine whether argument is integral. * math/libm-test.inc (round_test_data): Add more tests. 2015-04-28 Mark Wielaard * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift. 2015-04-27 David S. Miller * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove __tls_get_addr. * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise. 2015-04-27 H.J. Lu [BZ#18333] * time/tzset.c (__tzfile_read): Check tzspec_len == 0. 2015-04-27 Florian Weimer [BZ#18333] * time/tzset.c (parse_tzname): Return error on memory allocation failure. * test-skeleton.c (struct temp_name_list): Change type of name member to non-const. (add_temp_file): Create a copy of the file name. (delete_temp_files): Deallocate memory. (create_temp_file): Add comment. 2015-04-24 Florian Weimer * io/posix_fallocate.c (posix_fallocate): Do not set errno. * io/posix_fallocate64.c (posix_fallocate64): Likewise. 2015-04-24 Roland McGrath * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it. * sysdeps/arm/configure: Regenerated. 2015-04-24 Florian Weimer [BZ #17715] * time/tzfile.c (__tzfile_read): Check for large values of tzh_ttisstdcnt and tzh_ttisgmtcnt. Use malloc instead of alloca. * time/tzset.c (__tzstring_len): New function, based on the old __tzstring function. (__tzstring): Call __tzstring_len. (parse_tzname): New helper function extracted from __tzset_parse_tz. Call __tzstring_len, without making a copy of the input string. (parse_offset): New helper function extracted from __tzset_parse_tz. Replace switch with fallthrough with initialization before sscanf. (parse_rule): Likewise. (__tzset_parse_tz): Rewrite using the new helper functions. Use new-style function definition. * timezone/Makefile (tests): Add tst-tzset. (tst-tzset.out): Dependencies on time zone files. (tst-tzset-ENV): Set TZDIR. (testdata/XT%): Copy crafted time zone files. * timezone/README: Mention crafted time zone files. * timezone/testdata/XT1, timezone/testdata/XT2, timezone/testdata/XT3, timezone/testdata/XT4: New time zone test files. * timezone/tst-tzset.c: New test. 2015-04-24 Florian Weimer * Makeconfig (+gccwarn): Remove -Winline. 2015-04-24 Stefan Liebler * sysdeps/s390/fpu/libm-test-upls: Regenerate. 2015-04-24 Stefan Liebler * NEWS: Mention sysconf() cache information support for s390. * sysdeps/unix/sysv/linux/s390/sysconf.c: New File. 2015-04-22 Wilco Dijkstra * math/k_casinh.c (__kernel_casinh): Use __copysign. * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint): Likewise. * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise. 2015-04-21 Arjun Shankar [BZ #18287] * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length based on padding. (CVE-2015-1781) 2015-04-20 Adhemerval Zanella * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just libc-vdso.h. * sysdeps/powerpc/powerpc32/backtrace.c: Likewise. * sysdeps/powerpc/powerpc64/backtrace.c: Likewise. * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise. * sysdeps/unix/sysv/linux/clock_getres.c: Likewise. * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise. * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise. * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise. * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise. * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise. * sysdeps/unix/sysv/linux/timespec_get.c: Likewise. * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ... * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here. * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ... * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here. * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ... * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here. * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ... * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here. 2015-04-19 Paul Eggert * stdlib/setenv.c (__add_to_environ): Dump core quickly if setenv (..., NULL, ...) is called. This time, do it the right way, and pacify GCC with a pragma. 2015-04-17 Roland McGrath * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that IMAP->l_prev cannot be null, and #if out the code for the contrary case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler believe that NS (&_dl_ns[NSID]) could point outside the array. * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace check. Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1, before using NSID as an index. 2015-04-17 Il'ya Malakhov [BZ #17825] * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length. * sysdeps/sparc/sparc64/memcmp.S: Likewise. * sysdeps/sparc/sparc64/strncmp.S: Likewise. 2015-04-17 Roland McGrath Add preliminary port to Google Native Client on ARM. * abi-tags (.*-.*-nacl.*): New entry. * sysdeps/arm/nacl: New directory. * sysdeps/nacl: New directory. 2015-04-16 David S. Miller * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of lowlevellock-futex.h 2015-04-16 Chris Metcalf * sysdeps/tile/configure.ac: New file. * sysdeps/tile/configure: Regenerated. 2015-04-15 Adhemerval Zanella * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr. Remove conditionals for weak_alias and libc_hidden_weak. * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine libc_hidden_weak and weak_alias. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]: Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds and weak_alias for static one. 2015-04-15 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch. 2015-04-13 Stefan Liebler [BZ #18206] * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t. Use signed comparision instead of substraction to avoid overflow bug. * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp): Take the sign of ret. * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc): Do not expect precise return values. Only the sign matters. * wcsmbs/Makefile (strop-tests): Add wcsncmp. * wcsmbs/test-wcsncmp.c: New File. * string/test-strncmp.c: Add wcsncmp support. 2015-04-13 Stefan Liebler [BZ #6792] * math/w_log1p.c: New file. * math/w_log1pf.c: Likewise. * math/w_log1pl.c: Likewise. * math/Makefile (libm-calls): Add w_log1p. * math/s_log1pl.c (log1pl): Remove weak_alias. * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise. * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise. * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise. * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise. * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise. [NO_LONG_DOUBLE] (log1pl): Likewise. * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise. * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise. * sysdeps/ieee754/ldbl-64-128/s_log1pl.c (log1p): Remove long_double_symbol. * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise. * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file. * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise. * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to remove weak_alias for corresponding log1p function. * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise. * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise. * sysdeps/ia64/fpu/w_log1p.c: New file. * sysdeps/ia64/fpu/w_log1pf.c: Likewise. * sysdeps/ia64/fpu/w_log1pl.c: Likewise. * math/libm-test.inc (log1p_test_data): Add errno expectations. 2015-04-10 Joseph Myers [BZ #18247] * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum decimal exponent by 1. * stdlib/tst-strtod-round-data: Add more tests. * stdlib/tst-strtod-round.c (tests): Regenerated. 2015-04-09 Joseph Myers * math/auto-libm-test-in: Add more tests of clog and clog10. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-04-09 Roland McGrath * Makeconfig (module-cppflags): Exclude all .v.i files. (skip-module-cppflags): Variable removed. * configure.ac (libc_config_ok): Initialize before reading preconfigure scripts, not after. * configure: Regenerated. * test-skeleton.c (TIMEOUT): Move #define to top level. (main): Grok environment variable TEST_DIRECT. If set, print test expectation details into that file and then behave as if given --direct. 2015-04-09 Florian Weimer * malloc/tst-scratch_buffer.c (do_test): Suppress truncation warning on 32-bit. 2015-04-08 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. 2015-04-08 Joseph Myers * math/auto-libm-test-in: Add more tests of atanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of atan. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-04-08 Florian Weimer * elf/pldd.c (main): Rewrite to use struct scratch_buffer instead of extend_alloca. * elf/pldd-xx.c (find_maps): Likewise. * grp/initgroups.c: Include instead of . * grp/compat-initgroups.c (compat_call): Rewrite to use struct scratch_buffer instead of extend_alloca. * nscd/initgrcache.c: Include , now needed by grp/compat-initgroups.c. * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn): Rewrite to use struct scratch_buffer instead of extend_alloca. * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise. * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. 2015-04-08 Joseph Myers * math/auto-libm-test-in: Add more tests of cbrt. * math/auto-libm-test-out: Regenerated. * sysdeps/x86_64/fpu/libm-test-ulps: Update. * math/auto-libm-test-in: Add more tests of cabs. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. [BZ #18210] [BZ #18211] * sysdeps/ieee754/dbl-64/e_atan2.c: Include . (__ieee754_atan2): Set FE_TONEAREST mode for internal computations. * math/auto-libm-test-in: Add more tests of atan2, carg, clog and clog10. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. [BZ #18197] * sysdeps/ieee754/dbl-64/s_atan.c: Include . (atan): Set FE_TONEAREST mode for internal computations. * math/auto-libm-test-in: Add more tests of atan. * math/auto-libm-test-out: Regenerated. 2015-04-07 James Cowgill [BZ #17930] * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define. 2015-04-07 Florian Weimer * malloc/scratch_buffer_grow_preserve.c: Include 2015-04-07 Florian Weimer * include/scratch_buffer.h: New file. * malloc/scratch_buffer_grow.c: Likewise. * malloc/scratch_buffer_grow_preserve.c: Likewise. * malloc/scratch_buffer_set_array_size.c: Likewise. * malloc/tst-scratch_buffer.c: Likewise. * malloc/Makefile (routines): Add scratch_buffer_grow. (tests): Add test case. * malloc/Versions (GLIBC_PRIVATE): Export __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve, __libc_scratch_buffer_set_array_size. 2015-04-06 Richard Henderson * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h. * sysdeps/alpha/fpu/libm-test-ulps: Update. * math/test-fenvinline.c (feenable_test): Cast fe_exc to unsigned int before printing. 2015-04-03 Rajalakshmi Srinivasaraghavan [BZ #17596] * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0. * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise. 2015-04-02 Florian Weimer * include/libc-internal.h (libc_max_align_t): Define. 2015-04-02 Andreas Schwab [BZ #16850] * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file. 2015-04-02 Mel Gorman [BZ #17195] * malloc/arena.c (free): Apply trim threshold to per-thread heaps as well as the main arena. 2015-03-31 H.J. Lu [BZ #18185] * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads sharing L2 cache to 2 for Silvermont/Knights Landing. 2015-03-31 H.J. Lu [BZ #17711] * config.make.in (have-protected-data): New. * configure.ac: Check linker support for protected data symbol. * configure: Regenerated. * elf/Makefile (modules-names): Add tst-protected1moda and tst-protected1modb if $(have-protected-data) is yes. (tests): Add tst-protected1a and tst-protected1b if $(have-protected-data) is yes. ($(objpfx)tst-protected1a): New. ($(objpfx)tst-protected1b): Likewise. (tst-protected1modb.so-no-z-defs): Likewise. * elf/tst-protected1a.c: New file. * elf/tst-protected1b.c: Likewise. * elf/tst-protected1mod.h: Likewise. * elf/tst-protected1moda.c: Likewise. * elf/tst-protected1modb.c: Likewise. 2015-03-31 H.J. Lu [BZ #17711] * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which indicates it is called from do_lookup_x on relocation against protected data, skip the data definion in the executable from copy reloc. (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA, instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol. * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA): New. Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined, otherwise to 0. * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New. * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT. * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New. * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT. 2015-03-28 Martin Galvan * sysdeps/nptl/pthread.h: Remove duplicate definition of PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP. 2015-03-27 Martin Galvan * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and THREAD_SETMEM_NC. * sysdeps/x86_64/nptl/tls.h: Ditto. 2015-03-27 Roland McGrath * dlfcn/tststatic.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. 2015-03-26 Alan Modra * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt): Don't segfault if ifunc resolver returns a NULL. Do set plt to zero for undefined weak. (elf_machine_plt_conflict): Similarly. 2015-03-25 Joseph Myers * math/auto-libm-test-in: Add more tests of acosh, asinh and atanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add another test of asin. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD): Remove macro. (LLL_EBX_REG): Likewise. (LLL_ENTER_KERNEL): Likewise. * math/auto-libm-test-in: Add more tests of asin. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. [BZ #18138] * sysdeps/unix/sysv/linux/i386/sysdep.h (struct libc_do_syscall_args): New structure. (INTERNAL_SYSCALL_MAIN_0): New macro. (INTERNAL_SYSCALL_MAIN_1): Likewise. (INTERNAL_SYSCALL_MAIN_2): Likewise. (INTERNAL_SYSCALL_MAIN_3): Likewise. (INTERNAL_SYSCALL_MAIN_4): Likewise. (INTERNAL_SYSCALL_MAIN_5): Likewise. (INTERNAL_SYSCALL_MAIN_6): Likewise. Call __libc_do_syscall. (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr. Replace conditional definitions by conditional definitions of .... (INTERNAL_SYSCALL_MAIN_INLINE): ... this. New macro. * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file. * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl] (libpthread-sysdep_routines): Add libc-do-syscall. * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file. * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define to __NR_futex not 240. 2015-03-25 Alan Modra * NEWS: Advertise TLS optimization. * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define. (DT_PPC_NUM): Increment. * elf/dynamic-link.h (HAVE_STATIC_TLS): Define. (CHECK_STATIC_TLS): Use here. * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize TLS descriptors. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise. * sysdeps/powerpc/dl-tls.c: New file. * sysdeps/powerpc/Versions: Add __tls_get_addr_opt. * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test. * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test. Build tst-tlsmod2.so with --no-tls-get-addr-optimize. * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update. * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise. 2015-03-25 Alan Modra * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support for overlapping .opd entries" to "support...". * sysdeps/powerpc/powerpc64/configure: Regenerate 2015-03-25 Joseph Myers * math/auto-libm-test-in: Add more tests of acos. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of expm1. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-03-24 Joseph Myers * math/auto-libm-test-in: Add more tests of cosh and sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * sysdeps/i386/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. * math/auto-libm-test-in: Add more tests of log2. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-03-23 Roland McGrath * libio/iofdopen.c: Move FD_FLAGS declaration into its first use, inside [F_GETFL]. Remove POSIX_MODE local variable, just test the _IO_IS_APPENDING bit in READ_WRITE instead. 2015-03-23 Florian Weimer * sysdeps/unix/sysv/linux/pthread_setaffinity.c (__determine_cpumask_size): Replace extend_alloca with a variable-length array. Do not treat res == 0 as an error. 2015-03-23 Florian Weimer [BZ #18100] * posix/wordexp.c (eval_expr_multdiv): Check for division by zero and integer overflow. * posix/wordexp-test.c (test_case): Add divide-by-zero test. (main): Add integer overflow tests. * manual/pattern.texi (Calling Wordexp): Document additional use for WRDE_SYNTAX. 2015-03-23 Alan Modra * config.h.in: Remove HAVE_ASM_PPC_REL16. * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16 and false branch of conditional. * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise. 2015-03-21 Samuel Thibault . * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for comparisons with mapaddr. * nscd/nscd-client.h: Include . * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy 9th parameter to __vm_region instead of int. * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define. * scripts/check-local-headers.sh (exclude): Add device/, hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs, cthreads.h. 2015-03-19 Roland McGrath * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations to account for alignment padding. * sysdeps/arm/memmove.S: Likewise. 2015-03-19 Chris Metcalf * sysdeps/unix/sysv/linux/generic/README: New file. 2015-03-18 Joseph Myers [BZ #18138] * nptl/sem_waitcommon.c: Include . (futex_abstimed_wait) [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]: Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead of lll_futex_timed_wait. 2015-03-18 Brad Hubbard [BZ #17542] * sunrpc/svc.c (xprt_register): Use calloc to allocate xports. 2015-03-17 Alexandre Oliva [BZ #17090] [BZ #17620] [BZ #17621] [BZ #17628] * NEWS: Update. * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV entries with Static TLS too. Skip entries past the end of the allocated DTV, from Alan Modra. (tls_get_addr_tail): Update to glibc_likely/unlikely. Move Static TLS DTV entry set up from... (_dl_allocate_tls_init): ... here (fix modid assertion), ... * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here... * nptl/allocatestack.c (init_one_static_tls): ... and here... * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound for Static TLS. * elf/tlsdeschtab.h (map_generation): Return size_t. Check that the slot we find is associated with the given map before using its generation count. * nptl_db/db_info.c: Include ldsodefs.h. (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs. * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro. (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise. (link_map::l_tls_offset): New struct field. (dtv_t::counter): Likewise. (rtld_global): New struct. (_rtld_global): New rtld variable. (dl_tls_dtv_slotinfo_list): New rtld global field. (dtv_slotinfo_list): New struct. (dtv_slotinfo): Likewise. * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include. (td_lookup): Rename to... (td_mod_lookup): ... this. Use new mod parameter instead of LIBPTHREAD_SO. * nptl_db/td_thr_tlsbase.c: Include link.h. (dtv_slotinfo_list, dtv_slotinfo): New functions. (td_thr_tlsbase): Check DTV generation. Compute Static TLS addresses even if the DTV is out of date or missing them. * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to index zero-length arrays. * nptl_db/thread_dbP.h: Include gnu/lib-names.h. (td_lookup): Make it a macro implemented in terms of... (td_mod_lookup): ... this declaration. * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override. (DB_MAIN_VARIABLE): Likewise. 2015-03-16 H.J. Lu [BZ #18134] * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New. 2015-03-15 Paul Eggert * stdlib/setenv.c (__add_to_environ): Revert previous change. 2015-03-14 Andreas Schwab [BZ #18128] * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add) (atomic_add, atomic_increment_and_test) (atomic_decrement_and_test): Fix 64-bit arithmetic. 2015-03-13 Paul Eggert * stdlib/setenv.c (__add_to_environ): Dump core quickly if setenv (..., NULL, ...) is called. 2015-03-13 Roland McGrath * sysdeps/arm/tls-macros.h: Include . (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate all the necessary asm magic in one place. (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions using those. 2015-03-13 Carlos O'Donell [BZ #14906] * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update traced file mtime. Use consistent log message. * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function. (register_traced_file): Call install_watches. Always set mtime. (invalidate_cache): Iterate over all trace files. Call install_watches. (inotify_check_files): Don't inline. Handle watching parent directories and configuration file movement in and out. (handle_inotify_events): New function. (main_loop_poll): Call handle_inotify_events. (main_loop_epoll): Likewise. * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX. (struct traced_file): Use array of inotify fds. Add parent directory, and basename. (struct database_dyn): Remove unused file_mtime. (init_traced_file): New inline function. (define_traced_file): New macro. * nss/nss_db/db-init.c: Use define_traced_file. (_nss_db_init): Use init_traced_file. * nss/nss_files/files-init.c: Use define_traced_file. (_nss_files_init): Use init_traced_file. 2015-03-12 Joseph Myers * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro. [_LIBC]: Do not include . [!_LIBC] (abort): Remove declaration. * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use _FP_STATIC_ASSERT instead of conditionally calling abort. * soft-fp/op-common.h (_FP_FROM_INT): Likewise. (_FP_EXTEND_CNAN): Likewise. (FP_TRUNC): Likewise. (__FP_CLZ): Likewise. * sysdeps/powerpc/nofpu/flt-rounds.c: Include . 2015-03-12 Yaakov Selkowitz * manual/string.texi (XPG basename): Fix prototype. 2015-03-12 Stefan Liebler [BZ #18080] * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK. * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK. Call rt_sigprocmask syscall one time to set new signal mask and retrieve the current signal mask instead of two calls. * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S (__swapcontext): Likewise. * stdlib/Makefile (tests): Add new testcase tst-setcontext2. * stdlib/tst-setcontext2.c: New file. 2015-03-12 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerate. 2015-03-11 Aurelien Jarno [BZ #18093] * elf/cache.c (load_aux_cache): Regenerate the cache if it has the wrong size. 2015-03-11 Paul Pluzhnikov [BZ #18043] * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1). 2015-03-11 Adhemerval Zanellla * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define. * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Remove define. [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise. [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise. [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise. [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise. [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise. * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove define. * nptl_db/td_symbol_list.c (td_lookup): Remove HAVE_ASM_GLOBAL_DOT_NAME code. * sysdeps/powerpc/powerpc64/configure.ac: Remove HAVE_ASM_GLOBAL_DOT_NAME check. * sysdeps/powerpc/powerpc64/configure: Regenerate. * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT_LABEL): Remove define. [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise. [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise. [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise. * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME] (__TLS_GET_ADDR): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise. 2015-03-11 Carlos O'Donell [BZ #18111] * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define. (_FPU_SETCW): Initialize cw from fpsr before storing. * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h (fesetexceptflag): Rewrite using fpu_control.h. * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV. 2015-03-11 John David Anglin [BZ #18110] * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in asms. * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise. 2015-03-11 Joseph Myers * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro. * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of abort. (_FP_FMA): Likewise. (_FP_DIV): Likewise. 2015-03-10 Roland McGrath * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit with 0 in that case. * Makefile (summarize-tests): New canned sequence, factored out of commands for targets tests and xtests. Display summary lines that don't start with PASS: or XFAIL: rather than ones that do start with ERROR: or FAIL:. Make the commands fail if any summary lines fail to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any do start with ERROR: or FAIL:. * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally (except for [$(build-shared) = yes]). (tests-unsupported) [$(CXX) empty]: Add bug-atexit3. (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty]. ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise. * nptl/Makefile: Revert 2015-03-04 changes. [$(CXX) empty] (tests-unsupported): New variable. * debug/Makefile: Likewise. * posix/regcomp.c: Fix comment typos and formatting to harmonize with gnulib file. Replace __attribute with __attribute__ throughout. 2015-03-10 Carlos O'Donell * sysdeps/hppa/fpu/libm-test-ulps: Update. 2015-03-10 Joseph Myers [BZ #18104] * math/auto-libm-test-in: Add another test of pow. * math/auto-libm-test-out: Regenerated. 2015-03-10 Adhemerval Zanella * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add $(config-cflags-nofma). 2015-03-10 Joseph Myers * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard. * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise. * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise. * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise. * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise. * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise. * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise. * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise. * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise. * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty. Add comment on closing #endif. 2015-03-09 Paul Pluzhnikov * posix/wordexp.c (CHAR_IN_SET): New macro. (parse_param): Use it. 2015-03-09 Adhemerval Zanella * sysdeps/powerpc/fpu/libm-test-ulps: update. 2015-03-09 Paul Pluzhnikov [BZ #18043] * posix/wordexp.c (parse_param): Fix buffer overflow. * posix/wordexp-test.c (test_case): Add test case. 2015-03-09 Paul Pluzhnikov [BZ #18042] * posix/wordexp.c (parse_backtick): Fix off-by-one. * posix/wordexp-test.c (test_case): Add test for BZ #18042. 2015-03-09 Paul Pluzhnikov [BZ #18043] * posix/wordexp-test.c (test_case): Add test for BZ #18043 (do_bz18043): Delete. (at_page_end): New. (testit): Refactor to have words at the edge of unreadable page. 2015-03-08 Paul Pluzhnikov [BZ #16734] * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write. Cleanup read-only streams as well. (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write. 2015-03-08 Samuel Thibault * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include 2015-03-07 Joseph Myers * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro. Define depending on [__KERNEL__]. * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT. * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise. * soft-fp/op-common.h (_FP_DECL): Likewise. 2015-03-06 H.J. Lu * elf/ifuncdep2.c (global): Replace __attribute__((visibility("protected"))) with asm (".protected global"). * elf/ifuncmod1.c (global): Likewise. * elf/ifuncmod5.c (global): Likewise. 2015-03-06 Joseph Myers * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include instead of . 2015-03-06 Roland McGrath * manual/install.texi (Configuring and compiling): Document test-wrapper-env-only. * INSTALL: Regenerated. 2015-03-06 Paul Pluzhnikov [BZ #18043] * posix/wordexp.c (parse_param): Fix buffer overflow. * posix/wordexp-test.c (do_bz18043): Add test case. 2015-03-06 Vincent Bernat * time/tst-strptime2.c (do_test): Ensure failing tests are reported correctly. * time/tst-strptime3.c (do_test): Likewise. 2015-03-06 Samuel Thibault Fix aio_error thread-safety. * sysdeps/pthread/aio_error.c: New file * sysdeps/pthread/aio_misc.c: Remove optimistic comment about synchronization. 2015-03-06 Florian Weimer * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef. (group_number, vfprintf): Use it. (JUMP_TABLE_BASE_LABEL): New preprocessor macro. (JUMP, REF): Use it. (WORK_BUFFER_SIZE): New enum constant. (process_arg, vfprintf): Use it. 2015-03-06 Rical Jasan * manual/errno.texi (Error Messages): Complete example function by adding missing #define. (program_invocation_name): Add statement indicating GNU extension and reference which header file declares the variable. (program_invocation_short_name): Likewise. 2015-03-06 Mike Frysinger * manual/errno.texi (Error Messages): Delete strerror ISO C89 compatibility note. 2015-03-05 Roland McGrath * Makeconfig (test-wrapper-env-only): New variable. * Rules (make-test-out): If variable $*-ENV-only is nonempty, then use that with $(test-wrapper-env-only) rather than using $(test-wrapper-env) $(run-program-env) $($*-ENV). 2015-03-05 H.J. Lu [BZ #18082] * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments. * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/microblaze/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise. * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise. 2015-03-04 Roland McGrath * sysdeps/generic/netinet/if_ether.h: Don't #include . (ETH_ALEN): New macro. (struct ether_addr): Use it for length of ether_addr_octet. * nss/test-netdb.c: Don't #include . (setdb): Don't call __nss_configure_lookup for "rpc". (do_test): Don't call test_rpc. (output_rpcent, test_rpc): Functions moved ... * sunrpc/test-rpcent.c: ... to this new file. * sunrpc/Makefile (tests): Add it. * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of __xpg_sigpause. * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN]. * nptl/tst-signal6.c: Likewise. * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO]. * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO]. * configure.ac (libc_cv_cxx_link_ok): New check. Reset CXX to empty if it fails to link. * configure: Regenerated. * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and bug-atexit3-lib only if $(CXX) is nonempty. * nptl/Makefile (tests): Likewise for tst-cancel24. (tests, tests-static): Likewise for tst-cancel24-static. * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6, tst-lfschk4, tst-lfschk5, and tst-lfschk6. * elf/Makefile (tests, modules-names): Likewise for tst-unique3, tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib. 2015-03-04 Andreas Schwab [BZ #17631] * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define for non-GCC compilers. * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO): Likewise. 2015-03-03 Adhemerval Zanellla [BZ #17776] * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to integer before bitwise and assembly operations. (feclearexcept): Likewise. * math/test-fenvinline.c: New file. * math/Makefile: Add test-fenvinline test. 2015-03-03 Alan Modra [BZ #16512] * scripts/localplt.awk: Strip off symbol version. * NEWS: Mention bug fix. 2015-03-02 Roland McGrath * sysdeps/pthread/timer_routines.c (timer_free_list, thread_free_list, thread_active_list): Make static. 2015-03-02 Joseph Myers [BZ #17779] * sysdeps/unix/sysv/linux/hppa/kernel-features.h [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64): Undefine. * sysdeps/unix/sysv/linux/microblaze/kernel-features.h [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64): Likewise. * sysdeps/unix/sysv/linux/sh/kernel-features.h [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64): Likewise. 2015-03-02 Paul Pluzhnikov [BZ #18036] * posix/fnmatch_loop.c (END): Detect invalid pattern. * posix/tst-fnmatch3.c (do_bz18036): Add test case. 2015-03-02 Andreas Schwab * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in variable name. 2015-03-02 Florian Weimer * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return error status. 2015-02-27 Alexandre Oliva [BZ #15969] * locale/findlocale.c (_nl_find_locale): Introduce const version of loc_name and drop unsafe type casts. 2015-02-27 Roland McGrath * dlfcn/tststatic2.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. 2015-02-27 H.J. Lu [BZ #17711] * elf/Makefile (tests): Add vismain only if PIE is enabled. (tests-pie): Add vismain. (CFLAGS-vismain.c): New. * elf/vismain.c: Add comments for PIE requirement. 2015-02-27 Joseph Myers [BZ #18046] [BZ #18047] * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use 0x1p-56L as threshold for just returning the argument. * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use 0x1p-32L as threshold for just returning the argument. * math/auto-libm-test-in: Add more tests of atanh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulp: Likewise. 2015-02-27 Wilco Dijkstra wdijkstr@arm.com * string/bcopy.c (bcopy): Call memmove for performance. 2015-02-27 Wilco Dijkstra wdijkstr@arm.com * string/bzero.c (__bzero): Call memset for performance. 2015-02-27 John David Anglin [BZ #18068] * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change to 00100000. 2015-02-27 Joseph Myers * sysdeps/ieee754/k_standard.c (CSTR): Add comment. 2015-02-26 Joseph Myers * sysdeps/ieee754/k_standard.c (CSTR): New macro. (__kernel_standard): Use CSTR macro when setting exc.name. * sysdeps/ieee754/Makefile [$(subdir) = math] (CFLAGS-k_standard.c): Remove variable. * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for setting p and q from "else if" to "else". (qzero): Likewise. * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise. (qone): Likewise. * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise. (qzerof): Likewise. * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise. (qonef): Likewise. * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise. (qzero): Likewise. * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise. (qone): Likewise. [BZ #18038] [BZ #18039] * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only return pi/2 for arguments below 0x1p-113L. * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only return pi/2 for arguments below 0x1p-106L. * math/auto-libm-test-in: Add more tests of acos. * math/auto-libm-test-out: Regenerated. [BZ #16351] * sysdeps/i386/fpu/e_asin.S (dbl_min): New object. (MO): New macro. (__ieee754_asin): Force underflow exception for results with small absolute value. * sysdeps/i386/fpu/e_asinf.S (flt_min): New object. (MO): New macro. (__ieee754_asinf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/dbl-64/e_asin.c: Include and . (__ieee754_asin): Force underflow exception for results with small absolute value. * sysdeps/ieee754/flt-32/e_asinf.c: Include . (__ieee754_asinf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128/e_asinl.c: Include . (__ieee754_asinl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include . (__ieee754_asinl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-96/e_asinl.c: Include . (__ieee754_asinl): Force underflow exception for results with small absolute value. * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]: Include . * math/auto-libm-test-in: Do not mark underflow exceptions as possibly missing for bug 16351. * math/auto-libm-test-out: Regenerated. [BZ #18030] * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent of power of 2 down when low part has opposite sign. * math/libm-test.inc (logb_test_data): Add more tests. 2015-02-26 Andreas Schwab [BZ #18032] * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping over collating symbol inside a bracket expression. Minor cleanup. * posix/tst-fnmatch3.c (do_test): Add test case. 2015-02-26 Joseph Myers [BZ #18029] * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Adjust exponent of power of 2 down when low part has opposite sign. * math/libm-test.inc (ilogb_test_data): Add more tests. 2015-02-26 Alexandre Oliva [BZ #15969] * locale/findlocale.c (_nl_find_locale): Fix constness error in the previous change. [BZ #15969] * locale/findlocale.c (_nl_find_locale): Retry archive search after alias expansion. 2015-02-25 Roland McGrath * iconv/tst-iconv3.c (main): Converted to ... (do_test): ... this. (TEST_FUNCTION): New macro. Include test-skeleton.c. * iconv/tst-iconv5.c (testcode, number): Make variables static const. (convert): Make function static. (test_unalign): Likewise. Add const to argument pointee types. (main): Replace with static function do_test. Print "Succeeded." only if RET is zero. (TEST_FUNCTION): New macro. Include test-skeleton.c. * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd returns a null pointer. 2015-02-25 Adhemerval Zanella * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy to __memcpy_ppc only for static builds. 2015-02-25 Joseph Myers [BZ #18020] * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and 2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas. * math/auto-libm-test-in: Add more tests of asinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-02-25 Cong Wang [BZ #15850] * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo and ip6_mtuinfo definitions here. * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code in this define too. Update comment. 2015-02-24 Benno Schulenberg * elf/sprof.c (load_shobj): Tweak error message to match others. 2015-02-24 Kevin Easton [BZ #16145] (partial fix) * time/tzset.c (__tz_convert): Unlock tzset_lock earlier to reduce lock contention. 2015-02-24 Miroslav Lichvar * sysdeps/unix/sysv/linux/bits/timex.h: Update version. (struct timex): Update time comment. (ADJ_SETOFFSET): Define. 2015-02-24 Joseph Myers [BZ #18019] * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use 2**56 not 2**28 as threshold for log (2x) formula. * math/auto-libm-test-in: Add more tests of acosh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2015-02-24 Mike Frysinger * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add parenthesis around the buf assignment. [_STACK_GROWS_UP] (extend_alloca): Add a char* cast. 2015-02-24 Joseph Myers [BZ #16783] * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle arguments (NaN, -Inf) the same as (+/-Inf, -Inf). * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise. * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise. * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise. * math/libm-test.inc (scalb_test_data): Add more tests. 2015-02-24 Paul Pluzhnikov [BZ #17916] * libio/fileops.c (_IO_new_file_fopen): Limit stack use * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test 2015-02-24 Eric Rannaud [BZ #17523] * io/fcntl.h (__OPEN_NEEDS_MODE): New macro. * io/bits/fcntl2.h (open): Use it. (openat): Likewise. * io/open.c (__libc_open): Likewise. * io/open64.c (__libc_open64): Likewise. * io/open64_2.c (__open64_2): Likewise. * io/open_2.c (__open_2): Likewise. * io/openat.c (__openat): Likewise. * io/openat64.c (__openat64): Likewise. * io/openat64_2.c (__openat64_2): Likewise. * io/openat_2.c (__openat_2): Likewise. * sysdeps/mach/hurd/open.c (__libc_open): Likewise. * sysdeps/mach/hurd/openat.c (__openat): Likewise. * sysdeps/posix/open64.c (__libc_open64): Likewise. * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise. * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise. (__open_nocancel): Likewise. * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise. * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise. * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise. 2015-02-24 Siddhesh Poyarekar [BZ #14841] * resolv/gethnamaddr.c (getanswer): Skip logging if RES_USE_DNSSEC is set. * resolv/nss_dns/dns-host.c (getanswer_r): Likewise. 2015-02-24 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h. 2015-02-23 Alexandre Oliva * include/stdc-predef.h (__STDC_ISO_10646__): Update to 201304L, for Unicode 7. 2015-02-23 H.J. Lu [BZ #17836] * csu/Makefile (extra-objs): Add gmon-start.o if not builing shared library. Add gmon-start.os otherwise. ($(objpfx)g$(start-installed-name)): Use $(objpfx)S% $(objpfx)gmon-start.os if builing shared library. ($(objpfx)g$(static-start-installed-name)): Likewise. 2015-02-23 Andreas Schwab * elf/Makefile (CFLAGS-tst-audit2.c): Define. 2015-02-22 Paul Pluzhnikov [BZ #17269] * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow (enlarge_userbuf): Likewise. 2015-02-22 Chung-Lin Tang * libio/tst-memstream2.c (TIMEOUT): Define as 100. * math/atest-exp.c (TIMEOUT): Adjust to 200. * math/atest-exp2.c (TIMEOUT): Adjust to 300. * math/atest-sincos.c (TIMEOUT): Adjust to 600. 2015-02-20 Joseph Myers * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in expression inside statement expression. 2015-02-20 Stefan Liebler * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include and remove macros and functions that are now defined there. (SYS_futex): Remove. (lll_compare_and_swap): Remove. * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define. 2015-02-19 Joseph Myers [BZ #17999] * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat instead of scandirat. * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise. [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define. [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of __scandirat. * include/dirent.h (scandirat): Do not use libc_hidden_proto. (__scandirat): Declare. Use libc_hidden_proto. * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace): Remove variable. (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise. 2015-02-18 Joseph Myers [BZ #15319] * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object. (MO): New macro. (__ieee754_atan2): For results with small absolute value, force underflow exception and remove excess range and precision from return value. * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object. (MO): New macro. (__ieee754_atan2f): For results with small absolute value, force underflow exception and remove excess range and precision from return value. * sysdeps/i386/fpu/s_atan.S (dbl_min): New object. (MO): New macro. (__atan): For results with small absolute value, force underflow exception and remove excess range and precision from return value. * sysdeps/i386/fpu/s_atanf.S (flt_min): New object. (MO): New macro. (__atanf): For results with small absolute value, force underflow exception and remove excess range and precision from return value. * sysdeps/ieee754/dbl-64/e_atan2.c: Include and . (__ieee754_atan2): Force underflow exception for results with small absolute value. * sysdeps/ieee754/dbl-64/s_atan.c: Include and . (atan): Force underflow exception for results with small absolute value. * sysdeps/ieee754/flt-32/s_atanf.c: Include . (__atanf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128/s_atanl.c: Include and . (__atanl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include . (__atanl): Force underflow exception for results with small absolute value. * sysdeps/x86/fpu/bits/mathinline.h [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES] (__ieee754_atan2): Only define inline for long double. * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include . * math/auto-libm-test-in: Do not mark underflow exceptions as possibly missing for bug 15319. Add more tests of atan2. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (casin_test_data): Do not mark underflow exceptions as possibly missing for bug 15319. (casinh_test_data): Likewise. * sysdeps/i386/fpu/libm-test-ulps: Update. 2015-02-18 Steve Ellcey * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove. * sysdeps/mips/bits/endian.h: Fix comments. 2015-02-18 Joseph Myers [BZ #17996] * include/search.h (hcreate_r): Don't use libc_hidden_proto. (hdestroy_r): Likewise. (hsearch_r): Likewise. (__hcreate_r): Declare and use libc_hidden_proto. (__hdestroy_r): Likewise. (__hsearch_r): Likewise. * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r. (hcreate): Call __hcreate_r instead of hcreate_r. (__hdestroy): Call __hdestroy_r instead of hdestroy_r. * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define as weak alias of __hcreate_r. (hdestroy_r): Rename to __hdestroy_r and define as weak alias of __hdestroy_r. (hsearch_r): Rename to __hsearch_r and define as weak alias of __hsearch_r. * conform/Makefile (test-xfail-XPG3/search.h/linknamespace): Remove variable. (test-xfail-XPG4/search.h/linknamespace): Likewise. (test-xfail-UNIX98/search.h/linknamespace): Likewise. (test-xfail-XOPEN2K/search.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise. 2015-02-18 Siddhesh Poyarekar * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and arena_lock into a single arena_get. 2015-02-17 Carlos O'Donell * dl-reloc.c: Inlucde libc-internal.h. (_dl_try_allocate_static_tls): Call ALIGN_UP. (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN. (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN. * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP. (grow_heap): Likewise. * malloc/malloc.c: Include libc-internal.h. (do_check_malloc): Call powerof2. (sysmalloc): Use pagesize. Call ALIGN_UP. (systrim): Use pagesize. (mremap_chunk): Use pagesize. Call ALIGN_UP. (__libc_valloc): Use pagesize. (__libc_pvalloc): Use pagesize. Call ALIGN_UP. 2015-02-17 Joseph Myers [BZ #17991] * include/sys/resource.h (__getrlimit64): Declare. Use libc_hidden_proto. * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64 and define as weak alias of __getrlimit64. Use libc_hidden_weak. * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of getrlimit64. * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to __getrlimit64. [!getrlimit64] (getrlimit64): Define as weak alias of __getrlimit64. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define using __getrlimit64 not __new_getrlimit64. (__GI_getrlimit64): Likewise. * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64): Likewise. (__GI_getrlimit64): Likewise. (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64. * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (getrlimit): Add __getrlimit64 alias. * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit): Likewise. * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace): Remove variable. (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise. 2015-02-17 Paul Pluzhnikov * libio/fileops.c: Add missing sys/mman.h * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h 2015-02-17 Joseph Myers * manual/math.texi (Errors in Math Functions): Clarify goals regarding inexact and underflow exceptions. 2015-02-17 Steve Ellcey * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check. * sysdeps/mips/memset.S: Ditto. 2015-02-17 Steve Ellcey * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if. 2015-02-17 Stefan Liebler * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (__v1longjmp): Remove versioned symbol. (__v1siglongjmp): Remove alias and versioned symbol. (__v2longjmp): Use DEFINE_LONGJMP instead of alias. (__v2siglongjmp): Likewise. 2015-02-16 Torvald Riegel * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file. 2015-02-16 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete. 2015-02-16 Joseph Myers [BZ #17987] * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of zero result does not depend on the sign resulting from subtraction. * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise. * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise. * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise. * math/libm-test.inc (remquo_test_data): Add more tests. 2015-02-16 Paul Eggert * manual/time.texi (TZ Variable): glibc no longer comes with tzdata. Problem reported by J William Piggott. 2015-02-16 Joseph Myers [BZ #17978] * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form products 4 * y and 2 * y where those would overflow. * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise. * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise. * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise. * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise. * math/libm-test.inc (remquo_test_data): Add more tests. * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro. * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to [defined _COMPILING_NEWLIB]. * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise. * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise. * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to [!defined __mips_isa_rev || __mips_isa_rev < 6]. 2015-02-16 Torvald Riegel * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is acquired. 2015-02-15 Matthew Fortune [BZ #17792] * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove. (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR, HOST_STACK_END_ADDR): Likewise. 2015-02-13 Steve Ellcey * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if. * sysdeps/mips/memcpy.S (__MIPSEB): Ditto. * sysdeps/mips/memset.S (__MIPSEB): Ditto. 2015-02-13 Roland McGrath * sysdeps/generic/c++-types.data: New file. * sysdeps/generic/ld.abilist: New file. * sysdeps/generic/libBrokenLocale.abilist: New file. * sysdeps/generic/libanl.abilist: New file. * sysdeps/generic/libc.abilist: New file. * sysdeps/generic/libcrypt.abilist: New file. * sysdeps/generic/libdl.abilist: New file. * sysdeps/generic/libm.abilist: New file. * sysdeps/generic/libpthread.abilist: New file. * sysdeps/generic/libresolv.abilist: New file. * sysdeps/generic/librt.abilist: New file. 2015-02-13 Joseph Myers [BZ #17569] * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Compute absolute value of x as modified by fmod, not original value of x. * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to RUN_TEST_ffI_f1_mod8. Check extra return value mod 8. (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8. Call RUN_TEST_ffI_f1_mod8. (remquo_test_data): Add more tests. 2015-02-13 Roland McGrath * sysdeps/init_array/pt-crti.S: New file. 2015-02-13 Joseph Myers [BZ #17967] * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use __builtin_fmaf instead of relying on contraction of a * b + c. 2015-02-12 J William Piggott [BZ #17969] * manual/time.texi: correct the zoneinfo path in the TZ Variable node. 2015-02-12 Joseph Myers [BZ #17964] * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use __builtin_fma instead of relying on contraction of a * b + c. 2015-02-12 Roland McGrath * Makeconfig (ASFLAGS): Add -Werror=undef. * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set. * sysdeps/unix/make-syscalls.sh: Always emit #define's for SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0. * Makeconfig (after-link): New variable. (+link-pie, +link-pie-tests): Use it. (+link-static, +link-static-tests): Likewise. (+link, +link-tests): Likewise. * Makerules (build-module, build-module-asneeded): Likewise. (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so): Likewise. * elf/Makefile ($(objpfx)ld.so): Likewise. 2015-02-12 Rüdiger Sonderfeld [BZ #17965] * manual/time.texi (Elapsed Time): tv_sec is of type time_t in both struct timeval and struct timespec. 2015-02-12 Joseph Myers [BZ #16560] * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine. (__ieee754_exp2l): Do not multiply small fractional parts by M_LN2l. * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to small argument. * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise. * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise. * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise. * math/auto-libm-test-in: Add more tests of exp2. * math/auto-libm-test-out: Regenerated. 2015-02-12 Rajalakshmi Srinivasaraghavan * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize unaligned path. 2015-02-12 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for little endian. 2015-02-12 Andreas Schwab [BZ #15790] * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Filter out elision flags from value returned in kind. * nptl/Makefile (tests): Add tst-pthread-mutexattr. * nptl/tst-pthread-mutexattr.c: New file. 2015-02-11 Samuel Thibault * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu. * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back into gnu-gnu, and update comment to refer to abi-tags. 2015-02-11 Joseph Myers [BZ #15467] * sysdeps/ieee754/dbl-64/s_sincos.c: Include . (__sincos): Set errno to EDOM for infinite argument. * sysdeps/ieee754/flt-32/s_sincosf.c: Include . (SINCOSF_FUNC): Set errno to EDOM for infinite argument. * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include . (__sincosl): Set errno to EDOM for infinite argument. * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include . (__sincosl): Set errno to EDOM for infinite argument. * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include . (__sincosl): Set errno to EDOM for infinite argument. * math/libm-test.inc (sincos_test_data): Test errno setting. 2015-02-11 Leonhard Holz * string/strxfrm_l.c: Remove #define STRCMP. * string/strcoll_l.c: Remove #define STRLEN. * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP. * wcsmbs/wcscoll_l.c: Remove #define STRLEN. 2015-02-10 Joseph Myers * sysdeps/mips/soft-fp/sfp-machine.h: Move to .... * sysdeps/mips/mips32/sfp-machine.h: ... here. * sysdeps/mips/mips64/soft-fp/Makefile: Move to .... * sysdeps/mips/mips64/Makefile: ... here. * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to .... * sysdeps/mips/mips64/e_sqrtl.c: ... here. * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to .... * sysdeps/mips/mips64/sfp-machine.h: ... here. * sysdeps/mips/mips32/Implies: Remove mips/soft-fp. * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp. * sysdeps/mips/mips64/n64/Implies: Likewise. 2015-02-10 Roland McGrath * math/test-snan.c: Drop unnecessary #include's of , , , and . (dest_offset, dest_address, value, zero): Remove unused variables. (ldouble): Remove typedef. (myFPsighandler): Use simple handler signature, not SA_SIGINFO signature. Pass 1 to siglongjmp rather than 0 (which is converted to 1). Fix code style. (set_sigaction_FP, remove_sigaction_FP): Functions removed. (check): Function removed. (CHECK): New macro. (TEST_FUNC): Fix code style. Use CHECK macro rather than repeating boilerplate feclearexcept + feenableexcept + sigsetjmp code. Don't call set_sigaction_FP and remove_sigaction_FP here. (ldouble_test): Just use 'long double' as macro argument, no need for the 'ldouble' typedef. (do_test): Set up SIGFPE handler at start, using plain signal rather than sigaction. Fix code style. 2015-02-10 Evangelos Foutras [BZ #17949] * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of jump label. 2015-02-09 Adhemerval Zanellla * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check. * sysdeps/powerpc/powerpc32/configure: Regenerated. * sysdeps/powerpc/configure.ac: Remove file. * sysdeps/powerpc/configure: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile [sysdep_routines]: Remove wordcopy-power6 object. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c (__memmove_power7): Use local call for wordcopy and memcpy symbols. * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c (__memmove_ppc32): Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove file. * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file. * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]: Remove preprocessor. * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile [sysdep_routines]: Remove wide chars objects. [wcsmbs]: New rule for wide char objects. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove wordcopy-power6 obejct. * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc): Use local call for wordcopy and memcpy symbols. * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file. * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default implementation for loader. * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove wordcopy-power7 object. * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file. * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c (_wordcopy_fwd_aligned): Remove POWER7 specialization. (_wordcopy_fwd_dest_aligned): Likewise. (_wordcopy_bwd_aligned): Likewise. (_wordcopy_bwd_dest_aligned): Likewise. * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc): Rewrite to call __memmove_ppc instead of include default implementation. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove wide chars objects. [wcsmbs]: New rule for wide char objects. 2015-02-09 Andreas Schwab [BZ #17912] * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define in terms of __O_DIRECTORY. 2015-02-08 Samuel Thibault * time/getdate.c: Include . * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not call PTR_MANGLE. [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call PTR_DEMANGLE. 2015-02-07 Paul Eggert Add ersatz _Static_assert on older C hosts * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a pre-C11 C platform that is not known to support _Static_assert. 2015-02-07 Richard Braun * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock sigstate. * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case. 2015-02-07 Samuel Thibault * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check priority against unexistent AIO_PRIO_DELTA_MAX. * misc/chflags.c (chflags): Set flags parameter type to unsigned long instead of int. * misc/fchflags.c (fchflags): Likewise. * sysdeps/mach/hurd/chflags.c (chflags): Likewise. * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise. * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP, UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE, SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT): Declare macros. [__USE_MISC] (chflags, fchflags): Declare functions. * hurd/hurdselect.c (_hurd_select): In the poll case, do not return EINVAL when nfds is greater than FD_SETSIZE. * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE, NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to 45. * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to __mach_msg. If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR. * hurd/hurdselect.c (_hurd_select): Remove unreachable check for MACH_RCV_TIMED_OUT. * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock, _hurd_critical_section_unlock): Explicit casts from void *. * sysdeps/mach/hurd/tls.h: Include and . * abi-tags: Rename gnu-gnu os into gnu. [BZ #4719] * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char, _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t, _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t, _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t, _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t, _IOTBASE_unsigned, _IOTBASE_signed): Define macros. [BZ #17944] * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which duplicates ADDR->sun_path with sockaddr LEN limitation. * sysdeps/mach/hurd/connect.c: Include (__connect): Give result of _hurd_sun_path_dupa to name lookup. * sysdeps/mach/hurd/sendmsg.c: Likewise. * sysdeps/mach/hurd/sendto.c: Likewise. * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of implementing it by hand. 2015-02-06 Roland McGrath * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL): Use sfi_breg on ldr. [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL): Likewise. * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if it's defined. * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined. Test SIGSETXID only if it's defined. * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined. * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which will not be used. Use NULL rather than 0 for .sigev_notify_attributes. * nptl/tst-align2.c: Moved ... * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here. * nptl/Makefile (tests): Remove tst-align2. * sysdeps/unix/sysv/linux/Makefile [$(subdir) = nptl] (tests): Add tst-align-clone. * nptl/tst-getpid1.c: Moved ... * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here. * nptl/tst-getpid2.c: Moved ... * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here. * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ... * sysdeps/unix/sysv/linux/Makefile [$(subdir) = nptl] (tests): ... here. * nptl/Makefile (tst-getpid2-ENV): Move variable ... * sysdeps/unix/sysv/linux/Makefile [$(subdir) = nptl] (tst-getpid2-ENV): ... here. * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction. Drop trailing \n from perror argument. Use return rather than exit. * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests on [SA_SIGINFO]. * nptl/tst-cancel21.c (do_test): Likewise. * debug/tst-backtrace6.c: Include first thing. Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO]. [!SA_SIGINFO]: Make it a stub test. * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for SIGCHLD; it's redundant with SIG_IGN as sa_handler. * posix/tst-getlogin.c: Move to ... * login/tst-getlogin.c: ... here. * posix/Makefile (tests): Move tst-getlogin to ... * login/Makefile (tests): ... here. * libio/tst-atime.c (do_test): Move local variables SV and E inside [ST_NOATIME] conditional. * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0. * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10. * nptl/tst-join5.c: Drop #include . (wait_code): New function replaces macro. Call nanosleep rather than syscall. * nptl/pt-system.c: Rewritten. Put everything under [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)]. Use IFUNC to redirect when possible. * nptl/pt-longjmp.c: Rewritten. Put everything under [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)]. Use IFUNC to redirect when possible. * nptl/pt-fork.c: Rewritten. Put everything under [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)]. Use IFUNC to redirect when possible. * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set. * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined unconditionally nowadays. This included the only reference to __vdso_clock_gettime that appears outside libc proper. * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE): Remove version set (containing only __vdso_clock_gettime). * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime): Add attribute_hidden. * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime): Likewise. Drop __attribute__ ((nocommon)), libc_hidden_proto, and libc_hidden_data_def. * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise. * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r, getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent, setrpcent, and getrpcport to ... * sunrpc/Versions (libc: GLIBC_2.0): ... here. * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r, getrpcbynumber_r, and getrpcent_r to ... * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set. * inet/getrpcbyname.c: Moved ... * sunrpc/getrpcbyname.c: ... here. * inet/getrpcbyname_r.c: Moved ... * sunrpc/getrpcbyname_r.c: ... here. * inet/getrpcbynumber.c: Moved ... * sunrpc/getrpcbynumber.c: ... here. * inet/getrpcbynumber_r.c: Moved ... * sunrpc/getrpcbynumber_r.c: ... here. * inet/getrpcent.c: Moved ... * sunrpc/getrpcent.c: ... here. * inet/getrpcent_r.c: Moved ... * sunrpc/getrpcent_r.c: ... here. * inet/Makefile (routines): Move those to ... * sunrpc/Makefile (routines): ... here. * nss/Makefile (databases): Add key and rpc only if sunrpc appears in the $(subdirs) list. (CPPFLAGS-getent.c): New variable. Pass -D option to set HAVE_SUNRPC to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list. * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC]. (databases): Conditionalize rpc entry on [HAVE_SUNRPC]. * elf/Makefile (routines): Include $(all-dl-routines), not just $(dl-routines). (rtld-routines): Likewise. Use = rather than :=. * sysdeps/aarch64/Makefile [$(subdir) = elf] (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and dl-tlsdesc to these; sysdep-dl-routines alone is enough. * sysdeps/arm/Makefile: Likewise. * sysdeps/i386/Makefile: Likewise. * sysdeps/x86_64/Makefile: Likewise. * sysdeps/hppa/Makefile [$(subdir) = elf] (sysdep_routines, sysdep-rtld-routines): Don't add $(sysdep-dl-routines) to these. * sysdeps/ia64/Makefile: Likewise. * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise. * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf] [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines): Don't add dl-static to these; sysdep-dl-routines alone is enough. * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise. * sysdeps/unix/sysv/linux/mips/Makefile: Likewise. * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise. * sysdeps/unix/sysv/linux/tile/Makefile: Likewise. * sysdeps/powerpc/Makefile [$(subdir) = elf] (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to these; sysdep-dl-routines alone is enough. 2015-02-06 Joseph Myers [BZ #17932] * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case where multiplication results in zero and third argument is finite and nonzero. * math/auto-libm-test-in: Add more tests of fma. * math/auto-libm-test-out: Regenerated. * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro. (_FP_CMP_CHECK_FLUSH_ZERO): Likewise. (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO. (_FP_CMP_EQ): Likewise. (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM. * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with extra argument CHECK_NAN. Redefine as wrapper around _FP_EXTEND_CNAN. 2015-02-06 Carlos O'Donell * version.h (RELEASE): Set to "stable". (VERSION): Set to "2.21" * include/features.h (__GLIBC_MINOR__): Set to 21. * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h. 2015-02-05 Paul Pluzhnikov Paul Eggert [BZ #16618] * stdio-common/tst-sscanf.c (main): Test for buffer overflow. * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed size in bytes. Store needed elements in wpmax. Use needed size in bytes for extend_alloca. 2015-02-05 Carlos O'Donell * manual/install.texi: Latest tested versions are GCC 4.9.2, binutls 2.25, and texinfo 5.2. * INSTALL: Regenerate. * sysdeps/nios2/configure: Regenerate. * sysdeps/unix/sysv/linux/nios2/configure: Regenerate. * manual/contrib.texi: Update. * po/be.po: Update. * po/bg.po: Update. * po/ca.po: Update. * po/cs.po: Update. * po/da.po: Update. * po/de.po: Update. * po/el.po: Update. * po/eo.po: Update. * po/es.po: Update. * po/fi.po: Update. * po/fr.po: Update. * po/gl.po: Update. * po/hr.po: Update. * po/hu.po: Update. * po/ia.po: Update. * po/id.po: Update. * po/it.po: Update. * po/ja.po: Update. * po/ko.po: Update. * po/lt.po: Update. * po/nb.po: Update. * po/nl.po: Update. * po/pl.po: Update. * po/pt_BR.po: Update. * po/ru.po: Update. * po/rw.po: Update. * po/sk.po: Update. * po/sl.po: Update. * po/sv.po: Update. * po/tr.po: Update. * po/uk.po: Update. * po/vi.po: Update. * po/zh_CN.po: Update. * po/zh_TW.po: Update. * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error. * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag. * sysdeps/hppa/dl-irel.h: Remove #warning. * sysdeps/hppa/entry.h: Provide prototype for __canonicalize_funcptr_for_compare and cast argument. * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon. * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise. * sysdeps/hppa/sotruss-lib.c: New file. * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (atomic_compare_and_exchange_val_acq): Use __typeof__. (atomic_compare_and_exchange_bool_acq): Likewise. * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias. * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h. * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file. * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here... * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here. 2015-02-05 Chung-Lin Tang * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of called function in non-PIC case. 2015-01-31 David S. Miller * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_do_unlock24): Put the memory barrier before the unlock not after it. (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting volatile register usage warnings from the compiler. * sysdeps/sparc/nptl/sem_init.c: Delete. * sysdeps/sparc/nptl/sem_post.c: Delete. * sysdeps/sparc/nptl/sem_timedwait.c: Delete. * sysdeps/sparc/nptl/sem_wait.c: Delete. * sysdeps/sparc/sparc32/sem_init.c: New file. * sysdeps/sparc/sparc32/sem_waitcommon.c: New file. * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with padding explicitly initialized. * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using padding for in-semaphore spinlock. * sysdeps/sparc/sparc32/sem_wait.c: Likewise. * sysdeps/sparc/sparc32/sem_trywait.c: Delete. * sysdeps/sparc/sparc32/sem_timedwait.c: Delete. * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file. * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file. * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file. * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file. * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl version. * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete. * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete. 2015-01-30 H.J. Lu [BZ #17801] * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set the bit_AVX_Fast_Unaligned_Load bit for AVX2. * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load): New. (index_AVX_Fast_Unaligned_Load): Likewise. (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise. * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit. * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise. * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise. * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise. * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD. * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise. 2015-01-29 Andreas Schwab * sysdeps/nptl/allocrtsig.c: Include . 2015-01-29 Siddhesh Poyarekar [BZ #17892] * nscd/nscd_stat.c (send_stats): Initialize DATA. 2015-01-28 Martin Sebor * math/README.libm-test: Clarify. Add "How to read the test output." 2015-01-28 Chris Metcalf * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS): Define to 0. 2015-01-28 Joseph Myers * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32] (__HAVE_64B_ATOMICS): Define to 0. 2015-01-28 Adhemerval Zanellla [BZ #17885] * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct value to set as new flag. [BZ #16576] * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define and use _ARCH_PPCSQ instead. (__ieee754_sqrt): Likewise. (__ieee754_sqrtf): Likewise. * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if _ARCH_PPCSQ is defined. (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware fsqrt instruction. * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if _ARCH_PPCSQ is defined. (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware fsqrts instruction. * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file. 2015-01-27 Andreas Krebbel * iconv/loop.c: Suppress array out of bound warning caused by GCC bug (GCC BZ #64739). 2015-01-25 Andreas Schwab * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue): Mark _retval as used. (lll_futex_wake_unlock): Likewise. (lll_futex_timed_wait_requeue_pi): Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h (atomic_compare_and_exchange_val_acq): Use uint32_t for the register variables. * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def. * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32) (__bswap_64): Mark as __always_inline. 2015-01-25 Bram [BZ #15378] * elf/dl-load.c (open_path): Avoid writing to 'env_path_list' when none of the search directories exist. 2015-01-24 Adhemerval Zanellla [BZ #17869] * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of power8 in .machine directive. [BZ #17868] * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value set dependency from opd value. 2015-01-23 H.J. Lu * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont architecture. 2015-01-23 H.J. Lu [BZ #17870] * nptl/sem_post.c (__new_sem_post): Replace unsigned long int with uint64_t. * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with (uint64_t) 1. (__new_sem_wait_fast): Replace unsigned long with uint64_t. (__new_sem_wait_slow): Replace unsigned long int with uint64_t. Replace 1UL with (uint64_t) 1. * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long int with uint64_t. 2015-01-23 Roland McGrath * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak. (if_freenameindex): Likewise. * resource/getrlimit64.c: Add missing libc_hidden_def. 2015-01-22 Joseph Myers * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with __label__. (_FP_FMA): Likewise. (_FP_TO_INT_ROUND): Likewise. (_FP_FROM_INT): Likewise. 2015-01-21 Adhemerval Zanella [BZ #16418] * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq): Make code racy and cancel safe. 2015-01-21 Carlos O'Donell * sysdeps/arm/unwind-resume.h: Fix copyright year. * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and attribution. * pwd/tst-getpw.c: Rewrite. [BZ #17702] * dlfcn/Makefile (tests): Add tst-rec-dlopen. (modules-names): Add moddummy1 and moddummy2. ($(objpfx)tst-rec-dlopen): Define. * dlfcn/moddummy1.c: New file. * dlfcn/moddummy2.c: New file. * dlfcn/tst-rec-dlopen.c: New file. * elf/dl-cache.c (_dl_load_cache_lookup): Return char*. Copy result with alloca/strcpy/strdup. * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup returns char*. Free cached. If not saving realname free cached. * elf/dl-open.c (dl_open_worker): Do not assert that _r_debug->r_state is RT_CONSISTENT. * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup returns char*. 2015-01-21 Torvald Riegel Carlos O'Donell [BZ #12674] * nptl/sem_waitcommon.c: New file. * nptl/sem_wait.c: Include sem_waitcommon.c. (__sem_wait_cleanup, do_futex_wait): Remove. (__new_sem_wait): Adapt. (__new_sem_trywait): New function. (__old_sem_trywait): Moved here from nptl/sem_trywait.c. * nptl/sem_timedwait.c: Include sem_waitcommon.c. (__sem_wait_cleanup, do_futex_timed_wait): Remove. (sem_timedwait): Adapt. * nptl/sem_post.c (__new_sem_post): Adapt. (futex_wake): New function. (__old_sem_post): Add release MO fence. * nptl/sem_open.c (sem_open): Adapt. * nptl/sem_init.c (__new_sem_init): Adapt. (futex_private_if_supported): New function. * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt. (__old_sem_getvalue): Add using previous code. * sysdeps/nptl/internaltypes.h: Adapt. * nptl/tst-sem13.c (do_test): Adapt. * nptl/tst-sem11.c (main): Adapt. * nptl/sem_trywait.c: Remove. * nptl/DESIGN-sem.txt: Remove. * nptl/Makefile (libpthread-routines): Remove sem_trywait. (gen-as-const-headers): Remove structsem.sym. * nptl/structsem.sym: Remove. * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove. * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove. * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove. * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove. * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove. * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove. * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove. * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove. * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove. * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove. * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove. * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove. * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove. * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove. * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove. * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove. * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove. 2015-01-20 Carlos O'Donell * INSTALL: Regenerated. * po/libc.pot: Regenerated. 2015-01-18 Chung-Lin Tang Sandra Loosemore Andrew Jenner Joseph Myers Nathan Sidwell * NEWS: Mention new Nios II port. * sysdeps/nios2/Implies: New file. * sysdeps/nios2/Makefile: New file. * sysdeps/nios2/Subdirs: New file. * sysdeps/nios2/Versions: New file. * sysdeps/nios2/__longjmp.S: New file. * sysdeps/nios2/abort-instr.h: New file. * sysdeps/nios2/backtrace.c: New file. * sysdeps/nios2/bits/endian.h: New file. * sysdeps/nios2/bits/fenv.h: New file. * sysdeps/nios2/bits/link.h: New file. * sysdeps/nios2/bits/setjmp.h: New file. * sysdeps/nios2/bsd-_setjmp.S: New file. * sysdeps/nios2/bsd-setjmp.S: New file. * sysdeps/nios2/configure: New generated file. * sysdeps/nios2/configure.ac: New file. * sysdeps/nios2/crti.S: New file. * sysdeps/nios2/crtn.S: New file. * sysdeps/nios2/dl-init.c: New file. * sysdeps/nios2/dl-machine.h: New file. * sysdeps/nios2/dl-sysdep.h: New file. * sysdeps/nios2/dl-tls.h: New file. * sysdeps/nios2/dl-trampoline.S: New file. * sysdeps/nios2/gccframe.h: New file. * sysdeps/nios2/gmp-mparam.h: New file. * sysdeps/nios2/jmpbuf-offsets.h: New file. * sysdeps/nios2/jmpbuf-unwind.h: New file. * sysdeps/nios2/ldsodefs.h: New file. * sysdeps/nios2/libc-tls.c: New file. * sysdeps/nios2/libm-test-ulps: New file. * sysdeps/nios2/machine-gmon.h: New file. * sysdeps/nios2/math-tests.h: New file. * sysdeps/nios2/math_private.h: New file. * sysdeps/nios2/memusage.h: New file. * sysdeps/nios2/nptl/Makefile: New file. * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file. * sysdeps/nios2/nptl/bits/semaphore.h: New file. * sysdeps/nios2/nptl/pthread_spin_lock.c: New file. * sysdeps/nios2/nptl/pthreaddef.h: New file. * sysdeps/nios2/nptl/tcb-offsets.sym: New file. * sysdeps/nios2/nptl/tls.h: New file. * sysdeps/nios2/preconfigure: New file. * sysdeps/nios2/s_fma.c: New file. * sysdeps/nios2/s_fmaf.c: New file. * sysdeps/nios2/setjmp.S: New file. * sysdeps/nios2/sfp-machine.h: New file. * sysdeps/nios2/sotruss-lib.c: New file. * sysdeps/nios2/stackguard-macros.h: New file. * sysdeps/nios2/stackinfo.h: New file. * sysdeps/nios2/start.S: New file. * sysdeps/nios2/sysdep.h: New file. * sysdeps/nios2/tls-macros.h: New file. * sysdeps/nios2/tst-audit.h: New file. * sysdeps/unix/sysv/linux/nios2/Implies: New file. * sysdeps/unix/sysv/linux/nios2/Makefile: New file. * sysdeps/unix/sysv/linux/nios2/Versions: New file. * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file. * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file. * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file. * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file. * sysdeps/unix/sysv/linux/nios2/clone.S: New file. * sysdeps/unix/sysv/linux/nios2/configure: New generated file. * sysdeps/unix/sysv/linux/nios2/configure.ac: New file. * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file. * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file. * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file. * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file. * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file. * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file. * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file. * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file. * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file. * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file. * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file. * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file. * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file. * sysdeps/unix/sysv/linux/nios2/syscall.S: New file. * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file. * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file. * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file. * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file. * sysdeps/unix/sysv/linux/nios2/vfork.S: New file. * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file. * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file. * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file. * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file. * sysdeps/unix/sysv/linux/nios2/localplt.data: New file. 2015-01-16 Stefan Liebler [BZ #17844] * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c (getutent): Use weak_alias in non SHARED case and default_symbol_version in SHARED case. * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c (getutent_r, pututline): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c (getutid): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c (getutid_r): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c (getutline): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c (getutline_r): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c (updwtmp): Likewise. 2015-01-16 Stefan Liebler [BZ #17848] * sysdeps/s390/s390-32/memcmp.S (memcmp_g5): Rename to __memcmp_g5. * sysdeps/s390/s390-32/memcpy.S (memcpy_g5): Rename to __memcpy_g5. Jump to __memcpy_mvcle instead of memcpy_mvcle. (memcpy_mvcle) Rename to __memcpy_mvcle. * sysdeps/s390/s390-32/memset.S (memset_g5): Rename to __memset_g5. * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c (IFUNC_RESOLVE): Prefix ifunc-resolve function and use prefixed functions. * sysdeps/s390/s390-32/multiarch/memcmp.S (memcmp_z196): Rename to __memcmp_z196. (memcmp_z10): Rename to __memcmp_z10. (memcmp): Set alias to __memcmp_g5. (bcmp): Set alias to __memcmp_g5. * sysdeps/s390/s390-32/multiarch/memcpy.S (memcpy_z196): Rename to __memcpy_z196. Jump to __memcpy_mvcle instead of memcpy_mvcle. (memcpy_z10): Rename to __memcpy_z10. Jump to __memcpy_mvcle instead of memcpy_mvcle. (memcpy): Set alias to __memcpy_g5. * sysdeps/s390/s390-32/multiarch/memset.S (memset_z196): Rename to __memset_z196. Jump to __memset_mvcle instead of memset_mvcle. (memset_z10): Rename to __memset_z10. Jump to __memset_mvcle instead of memset_mvcle. (memset_mvcle) Rename to __memset_mvcle. (memset): Set alias to __memset_g5. * sysdeps/s390/s390-64/memcmp.S (memcmp_z900): Rename to __memcmp_z900. * sysdeps/s390/s390-64/memcpy.S (memcpy_z900): Rename to __memcpy_z900. Jump to __memcpy_mvcle instead of memcpy_mvcle. (memcpy_mvcle) Rename to __memcpy_mvcle. * sysdeps/s390/s390-64/memset.S (memset_z900): Rename to __memset_z900. * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c (IFUNC_RESOLVE): Prefix ifunc-resolve function and use prefixed functions. * sysdeps/s390/s390-64/multiarch/memcmp.S (memcmp_z196): Rename to __memcmp_z196. (memcmp_z10): Rename to __memcmp_z10. (memcmp): Set alias to __memcmp_z900. (bcmp): Set alias to __memcmp_z900. * sysdeps/s390/s390-64/multiarch/memcpy.S (memcpy_z196): Rename to __memcpy_z196. Jump to __memcpy_mvcle instead of memcpy_mvcle. (memcpy_z10): Rename to __memcpy_z10. Jump to __memcpy_mvcle instead of memcpy_mvcle. (memcpy): Set alias to __memcpy_z900. * sysdeps/s390/s390-64/multiarch/memset.S (memset_z196): Rename to __memset_z196. Jump to __memset_mvcle instead of memset_mvcle. (memset_z10): Rename to __memset_z10. Jump to __memset_mvcle instead of memset_mvcle. (memset_mvcle) Rename to __memset_mvcle. (memset): Set alias to __memset_z900. 2015-01-14 Joseph Myers [BZ #17748] * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call __fesetenv instead of fesetenv. 2015-01-14 Siddhesh Poyarekar * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr macro. 2015-01-13 Adhemerval Zanella * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance regression on LE. * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file. * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add strncmp-power8 object. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add __strncmp_power8 implementation. * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise. * NEWS: Update. 2015-01-13 Rajalakshmi Srinivasaraghavan Adhemerval Zanella * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize trailing byte check. 2015-01-13 David S. Miller * include/signal.h (__sigreturn): Guard with __USE_MISC. 2015-01-13 Roland McGrath * login/logout.c (logout): Use memset rather than bzero. * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise. * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise. * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp. (_gethtbyaddr): Likewise. * locale/programs/simple-hash.c (bcopy): Macro removed. 2015-01-13 Adhemerval Zanella * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add strcmp-power8 object. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add __strcmp_power8 implementation. * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file. * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add __strcmp_power8 implementation. * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file. * NEWS: Update. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add strncpy-power8 and stpncpy-power8 objects. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8 implementations. * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file. * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add __stpncpy_power8 implementation. * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file. * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add __strncpy_power8 implementation. * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file. * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file. * NEWS: Update. * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file. * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file. * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add strncat-power8 object. * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add __strcat_power8 implementation. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add __strcat_power8 implementation. * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file: optimized strcat for power8. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add strcpy-power8 and stpcpy-power8 objects. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8 implementations. * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file: multiarch stpcpy implementation for POWER8. * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file; multiarch strcpy implementation for POWER8. * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add __strcpy_power8 function. * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized stpcpy for POWER8. * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized strcpy for POWER8. * NEWS: Update. 2015-01-13 Leonhard Holz [BZ #16009] * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for weights and rules. Use do_xfrm_cached if data fits in cache, do_xfrm otherwise. Moved former main loop to... * (do_xfrm_cached): New function. * (do_xfrm): Non-caching version of do_xfrm_cached. Uses find_idx, find_position and stack_push. * (find_idx): New function. * (find_position): Likewise. * localedata/sort-test.sh: Added test run for do_xfrm. * localedata/xfrm-test.c (main): Added command line option -nocache to run the test with strings that are too large for the STRXFRM cache. 2015-01-13 Torvald Riegel * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex variable to lll_futex_wake call, not the value itself. 2015-01-12 Joseph Myers [BZ #17803] * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to twom64. Adjust value to 0x1p-64L. (__scalblnl): Only return standard underflowing result for K <= -64 not K <= -63; adjust exponent for underflowing result by 64 not 63. * math/libm-test.inc (scalbn_test_data): Add more tests. (scalbln_test_data): Likewise. [BZ #17834] * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to 0x1p63L. (__scalblnl): Get new exponent of adjusted subnormal value from ES not HX. * math/libm-test.inc (scalbn_test_data): Add more tests. (scalbln_test_data): Likewise. 2015-01-12 Adhemerval Zanella Stefani Seibold * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf] (sysdep_routines): Add dl-vdso here, ... * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf] (sysdep_routines): ... not here. * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall fallback when vDSO is not presented. * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime): Define with libc_hidden_proto/libc_hidden_data_def definitions. (_libc_vdso_platform_setup): Rename to __vdso_platform_setup. * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise. * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise. * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ... * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here. * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ... * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here. * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ... * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here. Also added fallback configurable symbol when vDSO is not available. * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ... * sysdeps/unix/sysv/linux/x86/time.c: ... here. Also refactored to be able to redefine fallback symbol when vDSO is not available. * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ... * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here. 2015-01-12 Adhemerval Zanella * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field. (TLS_INIT_TP): Add tm_capable initialization. (TLS_DEFINE_INIT_TP): Likewise. (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from TCB. (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB. * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset calculation. * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware transactoion is lock elision is built and TCB tm_capable is set. * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INTERNAL_SYSCALL_NCS): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INTERNAL_SYSCALL_NCS): Likewise. * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define. * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support for powerpc. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case and remove it for 32 bits case. [pthread_rwlock_t] (__rwelision): New field for lock elision. (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field initialization. * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Disable lock elision with rdlocks if elision is not available. * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl] (sysdep_routines): Add lock elision objects. * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h [pthread_mutex_t] (__spins): Rework to add lock elision field. [pthread_mutex_t] (__elision): Add field. [__PTHREAD_SPINS]: Adjust to init lock elision field. * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock elision definitions for powerpc. * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file: implementation of lock elision for powerpc. * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file: implementation of timed lock elision for powerpc. * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file: implementation of trylock with lock elision for powerpc. * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file: implementaion of unlock for lock elision for powerpc. * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file: automatic enable lock elision for mutexes. * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware transaction execution definitions for powerpc. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE definitions. * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file. * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise. * NEWS: Update. 2015-01-09 Roland McGrath * sysdeps/posix/shm-directory.c: Use <> rather than "" for #include of . 2015-01-09 Chung-Lin Tang * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and assign raw DT_REL[A]COUNT value to ranges[0].nrelative. 2015-01-09 Matthew Fortune [BZ #17791] * NEWS: Mention bug fix. * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove. (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove. 2015-01-09 Torvald Riegel * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file. 2015-01-09 Torvald Riegel * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file. 2015-01-09 David Holsgrove * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void pointer and cast to uintptr_t. 2015-01-09 David Holsgrove * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function removed. (READ_THREAD_POINTER): Use __microblaze_thread_area instead. 2015-01-09 David Holsgrove * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0. 2015-01-08 Roland McGrath * sysdeps/pthread/timer_routines.c: Fix include to use instead. * sysdeps/pthread/aio_notify.c: Include for raise decl. * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not already defined. [__SIGRTMIN] (init): Function removed. [__SIGRTMIN] (initialized): Variable removed. [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed. [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively. (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init. (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1. (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias. (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init. (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1. (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias. (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init. (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias. * sysdeps/nptl/allocrtsig.c: New file. * sysdeps/unix/sysv/linux/allocrtsig.c: File removed. * sysdeps/unix/sysv/linux/testrtsig.h: File removed. * sysdeps/generic/testrtsig.h: File removed. * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error. (pthread_sigmask): Call sigprocmask, not __sigprocmask. * nptl/nptl-init.c (pthread_functions): Conditionalize .ptr__nptl_setxid initialization on [SIGSETXID]. * sysdeps/nptl/sys/procfs.h: New file. * nptl_db/Makefile (headers): Add it. * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it. * nptl/pthreadP.h (check_cpuset_attr): Moved ... * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file. * nptl/pthread_attr_setaffinity.c: Include it. * nptl/pthread_setattr_default_np.c: Likewise. * nptl/check-cpuset.h: New file. 2015-01-08 Richard Henderson * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines (CFLAGS-tst-execstack-prog.c): Likewise. * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise. 2015-01-08 Chung-Lin Tang Sandra Loosemore Andrew Jenner Joseph Myers Nathan Sidwell * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II. (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address. (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations. (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise. (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise. (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise. (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise. (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise. (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise. (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise. (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise. (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise. (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise. (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise. (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise. (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise. (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise. 2015-01-08 Adhemerval Zanella * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first timespec struct member in syscall macro. * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise. * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of first timeval struct member in syscall macro. * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise. 2015-01-07 Joseph Myers [BZ #17748] * include/fenv.h (__feupdateenv): Use libm_hidden_proto. * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to __feupdateenv and define as weak alias of __feupdateenv. Use libm_hidden_weak. * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv and define as weak alias of __feupdateenv. Use libm_hidden_weak. * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to __feupdateenv and define as weak alias of __feupdateenv. Use libm_hidden_weak. * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to __feupdateenv and define as weak alias of __feupdateenv. Use libm_hidden_weak. * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to __feupdateenv and define as weak alias of __feupdateenv. Use libm_hidden_weak. * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/tile/math_private.h (__feupdateenv): New inline function. * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use libm_hidden_def. * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call __feupdateenv instead of feupdateenv. (default_libc_feupdateenv_test): Likewise. (libc_feresetround_ctx): Likewise. 2015-01-07 Adhemerval Zanella * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function prototype. 2015-01-07 Chris Metcalf * posix/regcomp.c (parse_bracket_exp): Initialize type to COLL_SYM in a couple of places to avoid uninitialized variable wanings on tilegx gcc 4.8.2. 2015-01-07 Richard Earnshaw * sysdeps/aarch64/strcpy.S: New file. * sysdeps/aarch64/stpcpy.S: New file. * NEWS: Updated. 2015-01-07 Richard Earnshaw * sysdeps/aarch64/strrchr.S: New file. * NEWS: Updated. 2015-01-07 Eric Biggers [BZ #17658] * stdlib/setenv.c: Fix memory leak when setting large, duplicate string. 2015-01-06 Vladimir A. Nazarenko [BZ #17273] * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces and tabs from buffer before parsing fstab entry. * misc/tst-mntent.c (main): Add test for mount entry with trailing spaces and tabs. 2015-01-06 Joseph Myers [BZ #17748] * include/fenv.h (__fesetround): Declare. Use libm_hidden_proto. * math/fesetround.c (fesetround): Rename to __fesetround and define as weak alias of __fesetround. Use libm_hidden_weak. * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise. * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise. * sysdeps/arm/fesetround.c (fesetround): Likewise. * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise. * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise. * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise. * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise. * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise. * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to __fesetround_inline. * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call __fesetround_inline instead of __fesetround. * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to __fesetround and define as weak alias of __fesetround. Use libm_hidden_weak. Call __fesetround_inline instead of __fesetround. * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to __fesetround and define as weak alias of __fesetround. Use libm_hidden_weak. * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround): Likewise. * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise. * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise. * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise. * sysdeps/tile/math_private.h (__fesetround): New inline function. * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to __fesetround and define as weak alias of __fesetround. Use libm_hidden_weak. * sysdeps/generic/math_private.h (default_libc_fesetround): Call __fesetround instead of fesetround. (default_libc_feholdexcept_setround): Likewise. (libc_feholdsetround_ctx): Likewise. (libc_feholdsetround_noex_ctx): Likewise. [BZ #17748] * include/fenv.h (__fesetenv): Use libm_hidden_proto. * math/fesetenv.c (__fesetenv): Use libm_hidden_def. * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and define as weak alias of __fesetenv. Use libm_hidden_weak. * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def. * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and define as weak alias of __fesetenv. Use libm_hidden_weak. * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise. * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def. * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and define as weak alias of __fesetenv. Use libm_hidden_weak. * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def. * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and define as weak alias of __fesetenv. Use libm_hidden_weak. * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def. * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv): Likewise. * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and define as weak alias of __fesetenv. Use libm_hidden_weak. * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise. * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def. * sysdeps/tile/math_private.h (__fesetenv): New inline function. * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and define as weak alias of __fesetenv. Use libm_hidden_weak. * sysdeps/generic/math_private.h (default_libc_fesetenv): Use __fesetenv instead of fesetenv. (libc_feresetround_noex_ctx): Likewise. * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise. 2015-01-06 Aurelien Jarno [BZ #17806] * resolv/res_init.c (__res_iclose): Only clear nsinit if the addresses have been freed. 2015-01-06 Aurelien Jarno * resolv/res_init.c (__res_vinit): Improve comments about nserv and nservall. 2015-01-06 Ondřej Bílka * sysdeps/unix/sysv/linux/check_pf.c (make_request): Clean up check_pf allocation pattern. addresses 2015-01-06 Adhemerval Zanella * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype. * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise. * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise. * nptl/pthread_exit.c (__pthread_exit): Likewise. * nptl/pthread_join.c (pthread_join): Likewise. * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise. * sysdeps/posix/waitid.c (__waitid): Likewise. * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c (__libc_pwrite64): Likewsie. * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise. * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise. * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise. * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise. * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise. * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise. * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise. * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise. * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise. * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise. * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise. * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise. * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise. * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv): Likewise. 2015-01-06 Andrew Senkevich * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math. (CFLAGS-test-double.c): Likewise. (CFLAGS-test-ldouble.c): Likewise. (CPPFLAGS-test-ifloat.c): Likewise. (CPPFLAGS-test-idouble.c): Likewise. (CPPFLAGS-test-ildoubl.c): Likewise. (CFLAGS-test-test-fenv.c): Remove variable. (CFLAGS-test-misc.c): Likewise. 2015-01-06 H.J. Lu [BZ #17797] * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000). * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise. * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert CLOCKS_PER_SEC == 1000000. * time/clocktest.c (main): Replace %ld with %jd and cast to intmax_t. 2015-01-05 Roland McGrath * sysdeps/generic/unwind-resume.h: New file. * sysdeps/gnu/unwind-resume.c: Include it. (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype. (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee argument list. (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden global rather than static. (_Unwind_Resume): Update user. Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME]. (init): Likewise. Renamed to __libgcc_s_init, made hidden global rather than static. Add __attribute__ ((cold)). (_Unwind_Resume, __gcc_personality_v0): Update callers. * sysdeps/nptl/unwind-forcedunwind.c: Likewise. * sysdeps/arm/arm-unwind-resume.S: New file. * sysdeps/arm/rt-arm-unwind-resume.S: New file. * sysdeps/arm/pt-arm-unwind-resume.S: New file. * sysdeps/arm/Makefile [$(subdir) = csu] (sysdep_routines, shared-only-routines): Add arm-unwind-resume. [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines): Add rt-arm-unwind-resume. [$(subdir) = nptl] (libpthread-sysdep_routines, libpthread-shared-only-routines): Add pt-arm-unwind-resume. * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed. * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed. 2015-01-05 Joseph Myers [BZ #17748] * include/fenv.h (__feholdexcept): Declare. Use libm_hidden_proto. * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and define as weak alias of __feholdexcept. Use libm_hidden_weak. * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise. * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use __feholdexcept instead of feholdexcept. (default_libc_feholdexcept_setround): Likewise. 2015-01-05 Steve Ellcey * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6 to avoid using stl/str to align destination. 2015-01-05 Steve Ellcey * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6. 2015-01-05 Joseph Myers [BZ #17796] * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64): Define as weak alias not strong alias. 2015-01-05 Steve Ellcey * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace bltzal with addiupc. (RTLD_START): Ditto. 2015-01-05 Chris Metcalf * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type for __vdso_* functions in declarations. * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for definitions. * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL, INTERNAL_VSYSCALL): Use struct return types to check for error. * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64 && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround() function with cast from llround(). * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define. * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define. 2015-01-05 Joseph Myers [BZ #17793] * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64): Define as weak alias not strong alias. [BZ #17635] * ctype/ctype-c99.c: New file. isblank implementation moved from ... * ctype/ctype-extn.c: ... here. (__isblank_l): Move to ... * ctype/ctype-c99_l.c: ... here. New file. * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l. * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace): Remove variable. (test-xfail-ISO11/ctype.h/linknamespace): Likewise. (test-xfail-XPG3/ctype.h/linknamespace): Likewise. (test-xfail-XPG4/ctype.h/linknamespace): Likewise. (test-xfail-UNIX98/ctype.h/linknamespace): Likewise. (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise. [BZ #17777] * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c (posix_fadvise64): Define as weak alias not strong alias. * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c (posix_fallocate64): Likewise. * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise. (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise. (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise. 2015-01-05 Matthew Fortune [BZ #16191] * NEWS: Mention bug fix. * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove. (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise. (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise. (HOST_STACK_END_ADDR): Likewise. 2015-01-02 Joseph Myers [BZ #17748] * include/fenv.h (__fegetround): Declare. Use libm_hidden_proto. * math/fegetround.c (fegetround): Rename to __fegetround and define as weak alias of __fegetround. Use libm_hidden_weak. * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise. * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise. * sysdeps/arm/fegetround.c (fegetround): Likewise. * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise. * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise. * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise. * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise. * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise. * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise. Undefine after rather than before function definition; use parentheses around function name in definition. (__fegetround): Also undefine macro after function definition. * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to __fegetround and define as weak alias of __fegetround. Use libm_hidden_weak. Do not undefine as macro. * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround): Likewise. * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to __fegetround and define as weak alias of __fegetround. Use libm_hidden_weak. * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise. * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise. * sysdeps/tile/math_private.h (__fegetround): New inline function. * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to __fegetround and define as weak alias of __fegetround. Use libm_hidden_weak. * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use __fegetround instead of fegetround. [BZ #17782] * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT): Condition macro definition on [__USE_MISC]. [BZ #17781] * sysdeps/unix/sysv/linux/mips/bits/sigaction.h (struct sigaction): Change type of sa_flags field to int. [BZ #17780] * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock) [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to __glibc_reserved0. * nptl/version.c (banner): Use single year in copyright notice. * NEWS: Update copyright dates. * catgets/gencat.c (print_version): Likewise. * csu/version.c (banner): Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c (print_version): Likewise. * debug/xtrace.sh (do_version): Likewise. * elf/ldconfig.c (print_version): Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c (print_version): Likewise. * elf/sotruss.sh: Likewise. * elf/sprof.c (print_version): Likewise. * iconv/iconv_prog.c (print_version): Likewise. * iconv/iconvconfig.c (print_version): Likewise. * locale/programs/locale.c (print_version): Likewise. * locale/programs/localedef.c (print_version): Likewise. * login/programs/pt_chown.c (print_version): Likewise. * malloc/memusage.sh (do_version): Likewise. * malloc/memusagestat.c (print_version): Likewise. * malloc/mtrace.pl: Likewise. * manual/libc.texinfo: Likewise. * nptl/version.c (banner): Likewise. * nscd/nscd.c (print_version): Likewise. * nss/getent.c (print_version): Likewise. * nss/makedb.c (print_version): Likewise. * posix/getconf.c (main): Likewise. * scripts/test-installation.pl: Likewise. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise. 2015-01-02 Will Newton * sysdeps/arm/armv7/configure: Removed. * sysdeps/arm/armv7/configure.ac: Likewise. 2015-01-02 Joseph Myers * All files with FSF copyright notices: Update copyright dates using scripts/update-copyrights. * intl/plural.c: Regenerated. * locale/programs/charmap-kw.h: Likewise. * locale/programs/locfile-kw.h: Likewise. 2015-01-02 Siddhesh Poyarekar * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf. 2014-12-31 Joseph Myers [BZ #17748] * include/fenv.h (__fegetenv): Use libm_hidden_proto. * math/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise. * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv): Likewise. * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise. * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/tile/math_private.h (__fegetenv): New inline function. * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use __fegetenv instead of fegetenv. (libc_feholdsetround_noex_ctx): Likewise. 2014-12-31 Matthew Fortune * elf/elf.h (PT_MIPS_ABIFLAGS): Define. (Elf_MIPS_ABIFlags_v0): New structure. (EF_MIPS_FP64): Define. (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise. (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise. (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise. (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise. (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise. (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise. (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise. (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise. (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise. (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise. (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise. (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise. (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise. (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise. (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values. (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise. (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise. (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise. (Val_GNU_MIPS_ABI_FP_MAX): Likewise. * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink, tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests. * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode field. * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject EF_MIPS_FP64. * sysdeps/mips/dl-machine-reject-phdr.h: New file. * sysdeps/mips/tst-abi-fp32mod.c: Likewise. * sysdeps/mips/tst-abi-fpxxmod.c: Likewise. * sysdeps/mips/tst-abi-fpxxomod.c: Likewise. * sysdeps/mips/tst-abi-fp64mod.c: Likewise. * sysdeps/mips/tst-abi-fp64amod.c: Likewise. * sysdeps/mips/tst-abi-interlink.c: Likewise. * sysdeps/mips/tst-mode-switch-1.c: Likewise. * sysdeps/mips/tst-mode-switch-2.c: Likewise. * sysdeps/mips/tst-mode-switch-3.c: Likewise. * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to record the current FP ABI extension. (mips-mode-switch): Define to show if kernel headers support mode switching. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum supported SYSV ABI version to 3. * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64 feature. 2014-12-31 Rajalakshmi Srinivasaraghavan Adhemerval Zanella * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned path. * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs. 2014-12-31 Joseph Myers * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to __fegetround and redefine to call __fegetround. Remove condition on [!__NO_MATH_INLINES]. * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline function. * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file. * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround): Remove macro. * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include instead of . (__llrintl): Call fegetround instead of __fegetround. * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include instead of . * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise. (__lrintl): Call fegetround instead of __fegetround. * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include instead of . * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise. (__rintl): Call fegetround instead of __fegetround. 2014-12-31 Siddhesh Poyarekar * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional arrays. 2014-12-30 H.J. Lu [BZ #17775] * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed. (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise. (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise. 2014-12-30 Andrew Senkevich * sysdeps/i386/tls-macros.h: Include . (TLS_LE): Use non-PIC version for GCC >= 5.0. (TLS_IE): Likewise. (TLS_LD): Likewise. (TLS_GD): Likewise. * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't define for GCC >= 5.0. 2014-12-30 Chris Metcalf * math/test-fenv.c (test_single_exception, set_single_exc, feenv_nomask_test, feenv_mask_test, feexcp_nomask_test, feexcp_mask_test, feenable_test, fe_single_test): Add [!FE_ALL_EXCEPT] test so these routines are not compiled in the case where they are not used. * math/libm-test.inc: Likewise. * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable unused in the absence of FP rounding/exception support. * stdio-common/tst-printf-round.c: Likewise. * stdlib/tst-strtod-round.c: Likewise. * stdlib/tst-strtod-underflow.c: Likewise. 2014-12-30 Joseph Myers [BZ #17723] * include/fenv.h (__feraiseexcept): Use libm_hidden_proto. * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def. * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to __feraiseexcept and define as weak alias of __feraiseexcept. Use libm_hidden_weak. * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise. * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise. * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def. * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to __feraiseexcept and define as weak alias of __feraiseexcept. Use libm_hidden_weak. * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept): Likewise. * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro. * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to __feraiseexcept and define as weak alias of __feraiseexcept. Use libm_hidden_weak. * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def. * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise. * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to __feraiseexcept and define as weak alias of __feraiseexcept. Use libm_hidden_weak. * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise. * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def. * sysdeps/tile/math_private.h (__feraiseexcept): New macro. * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept): Use libm_hidden_def. * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def. (feraiseexcept): Define as weak not strong alias. Use libm_hidden_weak. * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero): New inline function. Factored out of ... (feraiseexcept): ... here. Use __feraiseexcept_invalid_divbyzero. * sysdeps/x86/fpu/include/bits/fenv.h: New file. * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of feraiseexcept. * math/w_acos.c (__acos): Likewise. * math/w_asin.c (__asin): Likewise. * math/w_ilogb.c (__ilogb): Likewise. * math/w_j0.c (y0): Likewise. * math/w_j1.c (y1): Likewise. * math/w_jn.c (yn): Likewise. * math/w_log.c (__log): Likewise. * math/w_log10.c (__log10): Likewise. * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/aarch64/fpu/math_private.h (libc_feupdateenv_test_aarch64): Likewise. * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise. * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise. * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise. * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise. * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise. * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise. 2014-12-30 H.J. Lu [BZ #17732] * io/test-utime.c (main): Replace %ld with %jd and cast to intmax_t. * libio/tst-ftell-active-handler.c (do_append_test): Likewise. * nptl/tst-mutex5.c: Include . (do_test): Replace %ld with %jd and cast to intmax_t. * posix/tst-regex.c (run_test): Likewise. (run_test_backwards): Likewise. * rt/tst-clock.c: Include . (clock_test): Replace %ld with %jd and cast to intmax_t. * rt/tst-cpuclock1.c: Include . (do_test): Replace %lu with %ju and cast to uintmax_t. * rt/tst-cpuclock2.c: Include . (do_test): Replace %lu with %ju and cast to uintmax_t. * rt/tst-mqueue1.c: Include . (check_attrs): Replace %ld with %jd and cast to intmax_t. * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to intmax_t. * rt/tst-mqueue4.c (do_test): Likewise. * rt/tst-timer4.c: Include . (check_ts): Replace %ld with %jd and cast to intmax_t. (do_test): Likewise. * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd and cast to intmax_t. * sysdeps/pthread/tst-timer.c (main): Likewise. * time/clocktest.c (main): Likewise. * time/tst-posixtz.c (do_test): Likewise. * timezone/tst-timezone.c (main): Likewise. 2014-12-30 Andrew Senkevich H.J. Lu * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file. * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise. * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise. * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned version if bit_Fast_Unaligned_Load is set. * sysdeps/i386/i686/multiarch/memcpy.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise. * sysdeps/i386/i686/multiarch/memmove.S: Likewise. * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise. * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add bcopy-sse2-unaligned, memcpy-sse2-unaligned, memmove-sse2-unaligned and mempcpy-sse2-unaligned. * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set to 4. (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned, __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned, __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned, __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned. 2014-12-29 Chris Metcalf * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef instead of #if to avoid a Wundef warning. * stdlib/tst-limits.c (do_test): Likewise. * sysdeps/tile/math_private.h (fetestexcept): Add macro to parallel other exception macros. (fegetenv): Convert from macro to extern inline so that it applies retroactively to inline functions already seen by the compiler. (fesetenv, feupdateenv, fegetround, fesetround): Likewise. * posix/Makefile (before-compile): Use $(objpfx) for posix-conf-vars-def.h. 2014-12-29 Siddhesh Poyarekar * posix/getconf.c (main): Use size_t for type of I. * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of NSPEC. * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix. * posix/confstr.c: Define NEED_SPEC_ARRAY to 0. * posix/posix-envs.def: Likewise. * sysdeps/posix/sysconf.c: Likewise. * posix/getconf.c: Define NEED_SPEC_ARRAY to 1. (specs): Remove array. * scripts/gen-posix-conf-vars.awk: Support generation of specs array. * posix/posix-conf-vars.list: Add _POSIX sysconf namespace. * sysdeps/posix/sysconf.c: Include posix-conf-vars.h. (__sysconf): Use CONF_IS_* macros. * posix/Makefile (before-compile): Add posix-conf-vars-def.h. ($(objpfx)posix-conf-vars-def.h): New target. * posix/posix-conf-vars.list: New file. * posix/posix-conf-vars.h: New file. * posix/confstr.c: Include posix-conf-vars.h. (confstr): Use CONF_IS_* macros. * posix/posix-envs.def: Include posix-conf-vars.h. Use CONF_IS_* macros. * scripts/gen-posix-conf-vars.awk: New file. 2014-12-26 Chris Metcalf * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv, fegetround): Add no-op macros to avoid linknamespace issues. * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL. * sysdeps/unix/sysv/linux/tile/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of assembly-specific section to avoid a redefinition warning. * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to long before casting to pointer to avoid a cast warning. 2014-12-23 Chris Metcalf * sysdeps/tile/tilegx/Implies: New file. 2014-12-23 Richard Earnshaw * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy. 2014-12-23 Florian Weimer * iconvdata/run-iconv-test.sh: Actually test iconv modules. 2014-12-22 Joseph Myers * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do not define. * sysdeps/unix/sysv/linux/utimes.c: Do not include . (__utimes) [__NR_utimes]: Make code unconditional. (__utimes) [!__ASSUME_UTIMES]: Remove conditional code. * sysdeps/unix/sysv/linux/aarch64/kernel-features.h (__ASSUME_UTIMES): Do not undefine. * sysdeps/unix/sysv/linux/tile/kernel-features.h (__ASSUME_UTIMES): Likewise. * sysdeps/unix/sysv/linux/hppa/kernel-features.h (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00] instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00]. * sysdeps/unix/sysv/linux/hppa/utimes.c: New file. 2014-12-22 Steve Ellcey * sysdeps/mips/memcpy.S: Fix preprocessor indentation. 2014-12-22 Chris Metcalf [BZ #17747] * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong alias to weak alias for j0l, y0l. * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise. * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise. [BZ #17746] * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean conversion. 2014-12-22 Steve Ellcey * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set to zero if not already defined. 2014-12-22 Joseph Myers [BZ #17724] * sysdeps/ieee754/k_standard.c: Don't include . (__kernel_standard_f): Remove. Moved to k_standardf.c. (__kernel_standard_l): Remove. Moved to k_standardl.c with (char *) casts added. * sysdeps/ieee754/k_standardf.c: New file. * sysdeps/ieee754/k_standardl.c: Likewise. * math/Makefile (libm-support): Remove k_standard. (libm-calls): Add k_standard. 2014-12-22 Wilco Dijkstra * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Optimize to avoid an unnecessary FPCR read. 2014-12-22 Wilco Dijkstra * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Optimize to reduce FPCR/FPSR accesses. 2014-12-22 Wilco Dijkstra * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept): Call libc_fetestexcept_aarch64. 2014-12-22 Wilco Dijkstra * sysdeps/aarch64/fpu/fesetround.c (fesetround): Call libc_fesetround_aarch64. 2014-12-22 Joseph Myers [BZ #17733] * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define. (__bind): Do not define as weak alias. * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not define. (__getsockname): Do not define as weak alias. 2014-12-22 Will Newton * manual/install.texi: Document that we require bison 2.7 or above. * INSTALL: Regenerate. * configure.ac: Use AC_CHECK_PROG_VER instead of AC_PATH_PROG when checking for bison and check for version 2.7 or above. * configure: Regenerate. 2014-12-21 Chris Metcalf [BZ #17745] * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition... * sysdeps/tile/ffsll.c (ffsll): To here. * sysdeps/unix/sysv/linux/tile/localplt.data: Removed. 2014-12-21 H.J. Lu * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition if not defined. * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden definition. * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the hidden ___tls_get_addr. * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the hidden __tls_get_addr. * sysdeps/generic/localplt.data (__tls_get_addr): Removed. * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr): Likewise. 2014-12-21 Andreas Schwab * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from _dl_init call. 2014-12-21 H.J. Lu * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT from "call _dl_init@PLT". * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise. 2014-12-21 Anders Kaseorg * manual/search.texi: (Array Sort Function): Clarify stable sorting guarantees. 2014-12-20 Chris Metcalf * sysdeps/unix/sysv/linux/tile/localplt.data: New file. 2014-12-19 Chris Metcalf [BZ #17744] * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not strnlen. 2014-12-19 Steve Ellcey * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead of multu on MIPSr6. * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto. * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto. * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto. * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto. * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto. 2014-12-19 Steve Ellcey * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6. (PTR_ADDIU): Use addiu for mips32r6/mips64r6. (PTR_SUBU): Use subu for mips32r6/mips64r6. (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist). * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for mips32r6/mips64r6. (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6. 2014-12-19 Ondřej Bílka * string/strncat.c (STRNCAT): Simplify implementation. 2014-12-19 David S. Miller * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to access the quad as both a long double and as a series of 4 words. * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a link_map->l_info array access. 2014-12-19 Chris Metcalf * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec. * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec. * math/atest-exp2.c (TIMEOUT): Likewise. * math/atest-sincos.c (TIMEOUT): Likewise. 2014-12-19 H.J. Lu * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace -Wno-error with -fno-builtin-lround. 2014-12-19 Torvald Riegel * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file. Contains futex constants and functions moved over from ... * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here. Include . (lll_wait_tid): Use lll_futex_wait instead of assembly code. (lll_timedwait_tid): Add comments and parentheses around macro arguments. 2014-12-19 Torvald Riegel * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include . Remove FUTEX_* constants defined there. (__lll_private_flag): Remove. (lll_futex_wait): Likewise. (lll_futex_timed_wait): Likewise. (lll_futex_wake): Likewise. (lll_futex_requeue): Likewise. (lll_wait_tid): Use lll_futex_wait instead of assembly code. (__lll_timedwait_tid): Spell out argument names. (lll_timedwait_tid): Add comments and parentheses around macro arguments. * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants, LLL_SHARED and LLL_PRIVATE usable from assembly code. 2014-12-19 Torvald Riegel * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise. * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise. * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise. 2014-12-19 H.J. Lu * sysdeps/x86_64/x32/Makefile: New file. 2014-12-19 H.J. Lu * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace 1L with (mp_limb_t) 1. 2014-12-17 Roland McGrath * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ... * nptl/libc_pthread_init.c: ... here. * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ... * nptl/register-atfork.c: ... here. * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Use pthread_sigmask rather than INTERNAL_SYSCALL. Use assert_perror to check its return value. (__gai_create_helper_thread): Likewise. * inet/if_index.c (__if_freenameindex): Add libc_hidden_def. * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword. 2014-12-17 Joseph Myers [BZ #17725] * sysdeps/generic/profil-counter.h (profil_counter): Rename to __profil_counter. * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter): Likewise. * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter): Likewise. [!__profil_counter] (profil_counter): Define as weak alias of __profil_counter. * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h (profil_counter): Rename to __profil_counter. [!__profil_counter] (profil_counter): Define as weak alias of __profil_counter. * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h (profil_counter): Rename to __profil_counter. [!__profil_counter] (profil_counter): Define as weak alias of __profil_counter. * sysdeps/posix/profil.c: Update comment referring to profil_counter. (__profil): Use __profil_counter instead of profil_counter. * sysdeps/posix/sprofil.c (profil_counter): Rename to __profil_counter. Use __profil_counter_ushort and __profil_counter_uint in definitions. (__sprofil): Use __profil_counter_uint and __profil_counter_ushort instead of profil_counter_uint and profil_counter_ushort. [BZ #17722] * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and define as weak alias of __inet_makeaddr. * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define as weak alias of __inet_addr. * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define as weak alias of __inet_pton. Use libc_hidden_weak. * include/arpa/inet.h (__inet_pton): Declare. Use libc_hidden_proto. (inet_makeaddr): Don't use libc_hidden_proto. (__inet_makeaddr): Declare. Use libc_hidden_proto. * resolv/res_init.c (__res_vinit): Use __inet_pton instead of inet_pton. Use __inet_makeaddr instead of inet_makeaddr. * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace): Remove variable. (test-xfail-POSIX/sched.h/linknamespace): Likewise. (test-xfail-POSIX/time.h/linknamespace): Likewise. 2014-12-17 Steve Ellcey * inet/getnetgrent_r.c: Move while loop to be inside if statement. 2014-12-17 Stefan Liebler * stdio-common/bug-vfprintf-nargs.c (do_test): Cast value to intptr_t to avoid format warning for usage with PRIdPTR printing macro. 2014-12-17 Stefan Liebler * libio/tst-widetext.c (do_test): Use format type %td instead of %Zd for ptrdiff_t in order to avoid format warning. 2014-12-17 Andreas Schwab * nscd/mem.c (gc): Add size_t cast to match printf format. 2014-12-16 Roland McGrath * sysdeps/gnu/unwind-resume.c: #include . (init): Apply PTR_MANGLE to pointers before storing them. (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers before using them. 2014-12-16 Joseph Myers [BZ #17719] * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and define as weak alias of __memrchr. (__memrchr): Do not define as strong alias of memrchr. * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace): Remove variable. (test-xfail-UNIX98/libgen.h/linknamespace): Likewise. (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise. [BZ #17717] * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and define as weak alias of __if_nametoindex. Use libc_hidden_weak. (if_indextoname): Rename to __if_indextoname and define as weak alias of __if_indextoname. Use libc_hidden_weak. (if_freenameindex): Rename to __if_freenameindex and define as weak alias of __if_freenameindex. (if_nameindex): Rename to __if_nameindex and define as weak alias of __if_nameindex. * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to __if_nametoindex and define as weak alias of __if_nametoindex. Use libc_hidden_weak. (if_freenameindex): Rename to __if_freenameindex and define as weak alias of __if_freenameindex. (if_nameindex): Rename to __if_nameindex and define as weak alias of __if_nameindex. (if_indextoname): Rename to __if_indextoname and define as weak alias of __if_indextoname. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to __if_nametoindex and define as weak alias of __if_nametoindex. Use libc_hidden_weak. (if_freenameindex): Rename to __if_freenameindex and define as weak alias of __if_freenameindex. Use libc_hidden_weak. (if_nameindex_netlink): Use __if_freenameindex instead of if_freenameindex. (if_nameindex): Rename to __if_nameindex and define as weak alias of __if_nameindex. Use libc_hidden_weak. (if_indextoname): Rename to __if_indextoname and define as weak alias of __if_indextoname. Use libc_hidden_weak. * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use libc_hidden_proto. [!_ISOMAC] (__if_freenameindex): Likewise. * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of if_nametoindex. * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove variable. (test-xfail-XPG4/pwd.h/linknamespace): Likewise. (test-xfail-UNIX98/aio.h/linknamespace): Likewise. (test-xfail-UNIX98/grp.h/linknamespace): Likewise. (test-xfail-UNIX98/pthread.h/linknamespace): Likewise. (test-xfail-UNIX98/pwd.h/linknamespace): Likewise. (test-xfail-UNIX98/sched.h/linknamespace): Likewise. (test-xfail-UNIX98/time.h/linknamespace): Likewise. * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise. 2014-12-16 Siddhesh Poyarekar * resolv/res_send.c (__libc_res_nsend): Disable warning 'array subscript above bounds' * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap bounds. 2014-12-16 Arjun Shankar * libio/tst-fopenloc.c: Use test-skeleton.c. * stdlib/tst-bsearch.c: Use test-skeleton.c. (entry): Rename to ITEM. (do_test, comp): Adjust. * stdio-common/tst-fseek.c: Use test-skeleton.c. 2014-12-16 Torvald Riegel * string/tester.c: Include . (test_memset): Ignore -Wmemset-transposed-args. 2014-12-16 Torvald Riegel * misc/tst-mntent2.c (do_test): Fix warning. 2014-12-16 Torvald Riegel * elf/tst-unique4lib.cc(a): Mark as used. 2014-12-16 Florian Weimer [BZ #17630] * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias names. 2014-12-16 Allan McRae * stdio-common/Makefile (tests): Re-add bug26. 2014-12-15 Ondřej Bílka [BZ #17657] * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return static array. 2014-12-15 Bernard Ogden * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments. (__lll_lock_wait): Likewise. (__lll_timedlock_wait): Likewise. (__lll_timedwait_tid): Likewise. * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise. (__lll_robust_timedlock_wait): Likewise. * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise. (lll_cond_trylock): Likewise. (__lll_lock): Likewise. (__lll_robust_lock): Likewise. (__lll_cond_lock): Likewise. (lll_robust_cond_lock): Likewise. (__lll_timedlock): Likewise. (__lll_robust_timedlock): Likewise. (__lll_unlock): Likewise. (__lll_robust_unlock): Likewise. (lll_wait_tid): Likewise. (lll_timedwait_tid): Likewise. 2014-12-15 Torvald Riegel * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state. 2014-12-15 Torvald Riegel * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled. 2014-12-15 Adhemerval Zanella * stdio-common/test-vfprintf.c: Include . * stdio-common/tst-sprintf.c: Likewise. 2014-12-15 Torvald Riegel * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file. 2014-12-15 Jeff Law [BZ #16617] * stdio-common/vfprintf.c (vfprintf): Allocate large specs array on the heap. (CVE-2012-3406) * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file. * stdio-common/bug23-4.c: New file. Test case by Joseph Myers. * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4. 2014-12-15 Will Newton * manual/install.texi: Bump required version of texinfo to 4.7 from 4.5. * INSTALL: Regenerated. * configure.ac: Check for makeinfo version 4.7 and above. * configure: Regenerated. 2014-12-12 Roland McGrath * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument PREFIX, string constant to insert between directory and name. * sysdeps/posix/shm_open.c: Update caller. * sysdeps/posix/shm_unlink.c: Likewise. * nptl/semaphoreP.h (struct mountpoint_info): Type removed. (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed. (SEM_SHM_PREFIX): New macro. * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if [$(have-thread-library) = no]. * nptl/Makefile (libpthread-routines): Add shm-directory. * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory. * sysdeps/nptl/shm-directory.h: New file. * sysdeps/posix/shm-directory.c [IS_IN (libpthread)] (__shm_directory): Add hidden_def. * sysdeps/unix/sysv/linux/shm-directory.c: Likewise. * nptl/sem_open.c (check_add_mapping): Use munmap function rather than INTERNAL_SYSCALL. (__where_is_shmfs): Function removed. (mountpoint, defaultmount, defaultdir, __namedsem_once): Variables removed. (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL. Use SHM_GET_NAME. * nptl/sem_unlink.c: Prototypify. Use SHM_GET_NAME. * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)] (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as unconditional for use inside libpthread. [IS_IN (libpthread)]: Include . 2014-12-12 Roland McGrath * nptl/pthread_getaffinity.c: New file. * nptl/pthread_setaffinity.c: New file. * nptl/pthread_getname.c: New file. * nptl/pthread_setname.c: New file. * nptl/pthread_create.c (START_THREAD_DEFN) [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument. 2014-12-12 Stefan Liebler Adhemerval Zanella * resolv/res_send.c (send_vc): Disable warning resplen may be used uninitialized. 2014-12-12 Stefan Liebler * nptl/tst-mutex6.c (ATTR_NULL): New define checks ATTR against NULL. (do_test): Use !ATTR_NULL instead of ATTR != NULL. * nptl/tst-mutexpp6.c (ATTR_NULL): New define. 2014-12-11 James Lemke [BZ #17581] * malloc/hooks.c (mem2mem_check): Revert my previous change. (malloc_check_get_size): Revert my previous change. (mem2chunk_check): Revert my previous change. 2014-12-11 Roland McGrath * sysdeps/posix/shm-directory.c: New file. * sysdeps/posix/shm-directory.h: New file. * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it. * sysdeps/posix/shm_open.c: Use SHM_GET_NAME. Use O_NOFOLLOW and O_CLOEXEC if available. Transmute EISDIR to EINVAL. * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME. Transmute EPERM to EACCES. * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken from ... * sysdeps/unix/sysv/linux/shm_open.c: ... here. File removed. * sysdeps/unix/sysv/linux/shm_unlink.c: File removed. 2014-12-11 Kaz Kojima * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void pointer and cast to uintptr_t. * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0. * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait): Add cast to avoid warning. * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL. 2014-12-11 Joseph Myers * nptl/semaphore.h: Move to ... * sysdeps/pthread/semaphore.h: ... here. * Makefile (installed-headers): Change nptl/semaphore.h to sysdeps/pthread/semaphore.h. 2014-12-11 Roland McGrath * misc/tst-error1.c (do_test): Ignore -Wformat-security for generated error format strings. * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and -Wformat-extra-args warnings for scanf formats. * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around test of zero-length format (duh). * stdio-common/scanf7.c (main): Ignore -Wformat warnings for corner-case scanf format test. * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for generated fprintf format string. * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for corner-case sprintf format tests. * stdio-common/tst-printf.c: Ignore -Wformat throughout. * stdio-common/tst-printfsz.c (main): Ignore -Wformat and -Wformat-extra-args warnings throughout. * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed. (CFLAGS-scanf4.c): Likewise. (CFLAGS-scanf7.c): Likewise. (CFLAGS-tst-sprintf.c): Likewise. (CFLAGS-tst-printf.c): Likewise. (CFLAGS-tst-printfsz.c): Likewise. 2014-12-11 Joseph Myers * include/cpio.h: New file. * include/fmtmsg.h: Likewise. * tst-mbswcs1.c (show): Use %zu format instead of %Zd. Cast corresponding format argument to size_t. * tst-mbswcs2.c (show): Likewise. Use %td format for ptrdiff_t arguments. * tst-mbswcs3.c (show): Use %zu format instead of %Zd. Cast corresponding format argument to size_t. * tst-mbswcs4.c (show): Likewise. Use %td format for ptrdiff_t arguments. * tst-mbswcs5.c (show): Use %zu format instead of %Zd. Cast corresponding format argument to size_t. * tst-trans.c (do_test): Use %lc format for wint_t arguments. * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable. (CFLAGS-tst-mbswcs2.c): Likewise. (CFLAGS-tst-mbswcs3.c): Likewise. (CFLAGS-tst-mbswcs4.c): Likewise. (CFLAGS-tst-mbswcs5.c): Likewise. (CFLAGS-tst-trans.c): Likewise 2014-12-11 Roland McGrath * posix/regexbug1.c (main): Use "%s" format with regerror results, rather than assuming they won't contain any '%'s. 2014-12-11 Chris Metcalf * sysdeps/tile/tilegx/memset.c (__memcpy): Add inhibit_loop_to_libcall to avoid recursive calls. * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise. * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise. 2014-12-11 Adhemerval Zanella * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function prototype. 2014-12-11 Steve Ellcey * sysdeps/mips/dl-trampoline.c: Modify switch expression to have integer value instead of boolean. 2014-12-11 Steve Ellcey * malloc/malloc.c: Fix powerof2 check. 2014-12-11 Stefan Liebler * locale/programs/locfile.h (maybe_swap_uint32): Remove inline and add unused attribute. 2014-12-11 Stefan Liebler * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address): Truncating assembler expression to a .long expression. 2014-12-11 Andreas Schwab * elf/rtld.c (struct map_args): Constify str member. (do_preload): Constify fname argument. 2014-12-11 Adhemerval Zanella * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for constants definition. 2014-12-11 Andreas Schwab [BZ #16657] * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use FORCE_ELISION instead of DO_ELISION. * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION): Remove. * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION): Likewise. * iconvdata/gconv-modules: Remove duplicate entry. 2014-12-11 Will Newton Merge gettext 0.19.3 into intl/. This involves a number of cosmetic changes to comments and ANSI function definitions and prototypes throughout all the files. The gettext copyright header is used but with the date ranges taken from the glibc copy. * NEWS: Add gettext merge to 2.21. * intl/bindtextdom.c: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. Use __builtin_expect rather than __glibc_likely/unlikely. * intl/dcgettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/dcigettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (INTDIV0_RAISES_SIGFPE): New define. Use gl_* locking primitives rather than __libc_* ones. Include eval-plural.h instead of plural-eval.c. Use __builtin_expect rather than __glibc_likely/unlikely. * intl/dcngettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/dgettext.c: Likewise. * intl/dngettext.c: Likewise. * intl/plural-eval.c: Renamed to... * intl/eval-plural.h: ...this. * intl/explodename.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (_nl_explode_name): Use strchr instead of __rawmemchr. * intl/finddomain.c: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. (_nl_find_domain): Use malloc rather than alloca for allocation of temporary locale name. * intl/gettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/gettextP.h: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. * intl/gmo.h: Switch to gettext copyright. (struct sysdep_string): Move struct segment_pair outside of struct definition. * intl/hash-string.c: Use ANSI definitions and prototypes. * intl/hash-string.h: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/l10nflist.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (_nl_normalize_codeset): Avoid integer overflow. * intl/loadinfo.h: Switch to gettext copyright. Use ANSI definitions and prototypes. (LIBINTL_DLL_EXPORTED): New define. (PATH_SEPARATOR): New define. * intl/loadmsgcat.c: Switch to gettext copyright. * intl/localealias.c: Switch to gettext copyright. Use ANSI definitions and prototypes. (_nl_expand_alias): Use PATH_SEPARATOR. * intl/ngettext.c: Switch to gettext copyright. Use ANSI definitions and prototypes. * intl/plural-exp.c: Likewise. * intl/plural-exp.h: Switch to gettext copyright. Use ANSI definitions and prototypes. (struct expression): Move definition of enum operator outside of struct definition. * intl/plural.c: Regenerate. * intl/plural.y: Switch to gettext copyright. Use ANSI definitions and prototypes. Port to bison 3.0. * intl/textdomain.c: Switch to gettext copyright. Use ANSI definitions and prototypes. Use gl_* locking primitives rather than __libc_* ones. 2014-12-10 Steve Ellcey * debug/warning-nop.c: Add used atrribute. 2014-12-10 Joseph Myers * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) == signal] (CFLAGS-sigaction.c): New variable. [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise. 2014-12-10 Joseph Myers Adhemerval Zanella [BZ #17634] * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr. Undefine after defining function. Define as weak alias of __wcschr. Use libc_hidden_weak. * include/wchar.h (__wcschr): Declare. Use libc_hidden_proto. * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED] (libc_hidden_def): Also define __GI___wcschr alias. * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to __wcschr and define as weak alias of __wcschr. * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as __wcschr. [!WCSCHR] (DEFAULT_WCSCHR): Define. [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def. [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr. Use libc_hidden_weak. Do not use libc_hidden_def. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [IS_IN (libc) && SHARED] (libc_hidden_def): Also define __GI___wcschr alias. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c [IS_IN (libc)] (wcschr): Define as macro expanding to __redirect_wcschr. [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof. [IS_IN (libc)] (__wcschr_power6): Likewise. [IS_IN (libc)] (__wcschr_power7): Likewise. [IS_IN (libc)] (__libc_wcschr): New. Define with libc_ifunc instead of wcschr. [IS_IN (libc)] (wcschr): Undefine and define as weak alias of __libc_wcschr. [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine. * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to __wcschr and define as weak alias of __wcschr. Use libc_hidden_builtin_def. * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define as weak alias of __wcschr. Use libc_hidden_weak. * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of wcschr. * time/era.c (_nl_init_era_entries): Likewise. * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove variable. (test-xfail-XPG3/time.h/linknamespace): Likewise. (test-xfail-XPG4/time.h/linknamespace): Likewise. 2014-12-10 Joseph Myers * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld format for long int variable. 2014-12-10 Anders Kaseorg [BZ #10672] * manual/search.texi: (Array Sort Function): Remove claim how to make qsort stable. 2014-12-10 Andreas Schwab [BZ #12847] * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with user-controlled locks. 2014-12-10 Richard Earnshaw * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered register. 2014-12-10 Joseph Myers * configure.ac (--disable-werror): New configure option. (enable_werror): New AC_SUBST. * configure: Regenerated. * config.make.in (enable-werror): New variable. * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror -Wno-error=undef. (+gccwarn-c): Do not use -Werror=implicit-function-declaration. * manual/install.texi (Configuring and compiling): Document --disable-werror. * INSTALL: Regenerated. * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error. (CFLAGS-tst-chk2.c): Likewise. (CFLAGS-tst-chk3.c): Likewise. (CFLAGS-tst-chk4.cc): Likewise. (CFLAGS-tst-chk5.cc): Likewise. (CFLAGS-tst-chk6.cc): Likewise. (CFLAGS-tst-lfschk1.c): Likewise. (CFLAGS-tst-lfschk2.c): Likewise. (CFLAGS-tst-lfschk3.c): Likewise. (CFLAGS-tst-lfschk4.cc): Likewise. (CFLAGS-tst-lfschk5.cc): Likewise. (CFLAGS-tst-lfschk6.cc): Likewise. * stdio-common/tst-printfsz.c: Include . (main): Disable -Wdeprecated-declarations around calls to register_printf_function. * stdio-common/tst-unlockedio.c: Include . (do_test): Disable -Wdiv-by-zero around some calls to fwrite_unlocked and fread_unlocked. * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro. (DIAG_POP_NEEDS_COMMENT): Likewise. (_DIAG_STR1): Likewise. (_DIAG_STR): Likewise. (DIAG_IGNORE_NEEDS_COMMENT): Likewise. * stdio-common/bug21.c: Include . (do_test): Disable -Wformat around call to sscanf. * stdio-common/scanf14.c: Include . (main): Disable -Wformat around some calls to scanf functions. 2014-12-09 Torvald Riegel * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file. 2014-12-08 Adhemerval Zanella * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character stack variable alignment. 2014-12-06 Joseph Myers [BZ #17682] * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE. * resource/getrlimit.c (__getrlimit): Use libc_hidden_def. * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise. * include/sys/resource.h (__getrlimit): Use libc_hidden_proto. * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use __getrlimit instead of getrlimit. * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use __gettimeofday instead of gettimeofday. * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): Likewise. * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Likewise. * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise. * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace): Remove variable. (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise. (test-xfail-POSIX2008/time.h/linknamespace): Likewise. 2014-12-05 Adhemerval Zanella * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun for wide-character tests. 2014-12-04 Roland McGrath * io/openat64.c: #include (__openat64): Prototypify. Use ignore_value on MODE. * io/openat.c: Likewise. * misc/reboot.c: #include (reboot): Prototypify. Use ignore_value on HOWTO. * misc/ptrace.c: #include (ptrace): Prototypify. Use ignore_value for va_arg'd parameters. 2014-12-04 Joseph Myers * conform/list-header-symbols.pl (%extra_syms): Add h_errno for XPG4, UNIX98 and XOPEN2K. * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise. 2014-12-04 Siddhesh Poyarekar * libio/fileops.c: Use ISO C style for function definitions. * libio/iofopen.c: Likewise. * libio/wfileops.c: Likewise. [BZ #17653] * libio/fileops.c (_IO_new_file_underflow): Unset cached offset on EOF. * libio/wfileops.c (_IO_wfile_underflow): Likewise. * libio/tst-ftell-active-handler.c (fgets_func_t): New type. (fgets_func): Function pointer to fgets and fgetws. (do_ftell_test): Add test to verify ftell value after read EOF. (do_test): Set fgets_func. * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add O_TRUNC flag for w and w+ modes. (do_rewind_test): Likewise. (do_ftell_test): Likewise. (do_write_test): Likewise. [BZ #17647] * libio/fileops.c (do_ftell): Seek only when there are unflushed writes. * libio/wfileops.c (do_ftell_wide): Likewise. * libio/tst-ftell-active-handler.c (do_ftruncate_test): New test case. (do_one_test): Call it. 2014-12-03 Joseph Myers * conform/list-header-symbols.pl (%extra_syms): Add getdate_err for XPG4, UNIX98, XOPEN2K and XOPEN2K8. * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace): Remove variable. (test-xfail-XOPEN2K/time.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise. 2014-12-02 Joseph Myers * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace): Remove variable. (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise. [BZ #17668] * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define as weak alias of __getifaddrs. Use libc_hidden_weak. (freeifaddrs): Rename to __freeifaddrs and define as weak alias of __freeifaddrs. Use libc_hidden_weak. * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define as weak alias of __getifaddrs. Use libc_hidden_weak. (freeifaddrs): Rename to __freeifaddrs and define as weak alias of __freeifaddrs. Use libc_hidden_weak. * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define as weak alias of __getifaddrs. Use libc_hidden_weak. (freeifaddrs): Rename to __freeifaddrs and define as weak alias of __freeifaddrs. Use libc_hidden_weak. * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace): Remove variable. (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise. 2014-12-02 Petar Jovanovic [BZ #17601] * sysdeps/mips/start.S (__start): Use indirect jump to call __libc_start_main. 2014-12-02 Joseph Myers * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t. * nptl/tst-mutex1.c: Include . [!ATTR] (ATTR_NULL): New macro. (do_test): Test !ATTR_NULL instead of ATTR != NULL. * nptl/tst-mutexpi1.c (ATTR_NULL): New macro. * nptl/tst-mutexpp1.c (ATTR_NULL): New macro. * posix/tst-getopt_long1.c (do_test): Cast elements of argv array to char *. [BZ #17665] * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]: Change conditional to [__USE_MISC]. [BZ #17664] * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of fgets_unlocked. * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to __fgets_unlocked. * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of fgets_unlocked. * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace): Remove variable. (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise. (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise. (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise. (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise. (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise. (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise. (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise. * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)). 2014-12-02 Adhemerval Zanella * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove strpbrk objects. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Remove strpbrk implementation. * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file. * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file. * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file. * sysdeps/powerpc/powerpc64/strpbrk.S: New file. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove strcspn objects. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Remove strcspn implementation. * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file. * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file. * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file. * sysdeps/powerpc/powerpc64/strcspn.S: New file. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove strspn objetcs. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Remove strspn implementation. * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file. * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file. * sysdeps/powerpc/powerpc64/strspn.S: New file. 2014-12-01 James Lemke [BZ #17581] * malloc/hooks.c (mem2mem_check): Add a terminator to the chain of checking blocks. (malloc_check_get_size): Use it here. (mem2chunk_check): Ditto. 2014-12-01 Rajalakshmi Srinivasaraghavan * sysdeps/powerpc/powerpc64/strtok.S: New file. * sysdeps/powerpc/powerpc64/strtok_r.S: New file. 2014-11-29 Carlos O'Donell * bits/ioctl-types.h: Indent preprocessor directives correctly. * nptl/nptl-init.c: Include libc-internal.h. (__pthread_initialize_minimal_internal): Use ROUND_UP. * elf/ldconfig.c (search_dir): Expand comment. 2014-11-29 Joseph Myers * conform/Makefile (linknamespace-symlist-stdlibs-base): New variable. (linknamespace-symlist-stdlibs-tests): Likewise. (tests-special): Append $(linknamespace-symlist-stdlibs-tests) instead of $(objpfx)symlist-stdlibs. (linknamespace-libs-isoc): New variable. (linknamespace-libs): Use $(linknamespace-libs-isoc). (linknamespace-libs-ISO): New variable. (linknamespace-libs-ISO99): Likewise. (linknamespace-libs-ISO11): Likewise. (linknamespace-libs-XPG3): Likewise. (linknamespace-libs-XPG4): Likewise. (linknamespace-libs-POSIX): Likewise. (linknamespace-libs-UNIX98): Likewise. (linknamespace-libs-XOPEN2K): Likewise. (linknamespace-libs-POSIX2008): Likewise. (linknamespace-libs-XOPEN2K8): Likewise. ($(objpfx)symlist-stdlibs): Replace by $(linknamespace-symlist-stdlibs-tests). Use $(linknamespace-libs-$*) as set of libraries. ($(linknamespace-header-tests)): Update dependencies. Use $(objpfx)symlist-stdlibs-$$std for --libsyms argument. (test-xfail-XPG4/sys/mman.h/linknamespace): Remove. * conform/linknamespace.pl: Remove comment about considering definitions of symbols from irrelevant libraries. 2014-11-28 H.J. Lu [BZ #13862] * elf/dl-tls.c: Include . (oom): Remove #ifdef SHARED/#endif. (_dl_static_dtv, _dl_initial_dtv): Moved before ... (_dl_resize_dtv): This. Extracted from _dl_update_slotinfo. (_dl_allocate_tls_init): Resize DTV if the current DTV isn't big enough. (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV. * nptl/Makefile (tests): Add tst-stack4. (modules-names): Add tst-stack4mod. ($(objpfx)tst-stack4): New. (tst-stack4mod.sos): Likewise. ($(objpfx)tst-stack4.out): Likewise. ($(tst-stack4mod.sos)): Likewise. (clean): Likewise. * nptl/tst-stack4.c: New file. * nptl/tst-stack4mod.c: Likewise. 2014-11-27 J. Brown * sysdeps/x86/bits/string.h: Add recent CPUs. 2014-11-27 Joseph Myers * misc/tst-pselect.c (do_test): Use sigprocmask instead of sigblock. * libio/bug-ungetwc1.c (do_test): Verify results of getwc and feof. * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a variable. 2014-11-27 Stefan Liebler * nscd/connections.c: Include libc-internal.h because of macro usage ignore_value. 2014-11-27 Siddhesh Poyarekar * string/bits/string3.h (__warn_memset_zero_len): Don't declare for gcc newer than 5.0. (memset): Don't test for zero-length __LEN for gcc newer than 5.0. 2014-11-27 Joseph Myers * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to size_t for %zu format. * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer difference, not %ju. 2014-11-26 Joseph Myers * include/libc-internal.h (ignore_value): New macro. * nscd/connections.c (restart): Wrap calls to setuid and setgid with ignore_value. * sysdeps/mips/__longjmp.c (____longjmp): Use prototype definition. * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of pthread_cleanup_push to void *. * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE): Undefine. [BZ #16619] [BZ #16740] * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52 instead of 1L << 52. * libio/bug-rewind.c (do_test): Check fwscanf return values. * libio/bug-rewind2.c (do_test): Likewise. * debug/test-stpcpy_chk-ifunc.c: Remove file. * debug/test-strcpy_chk-ifunc.c: Likewise. * wcsmbs/test-wcschr-ifunc.c: Likewise. * wcsmbs/test-wcscmp-ifunc.c: Likewise. * wcsmbs/test-wcscpy-ifunc.c: Likewise. * wcsmbs/test-wcslen-ifunc.c: Likewise. * wcsmbs/test-wcsrchr-ifunc.c: Likewise. * wcsmbs/test-wmemcmp-ifunc.c: Likewise. * Rules [$(multi-arch) = no] (tests): Do not filter out $(tests-ifunc). [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc). * debug/Makefile (tests-ifunc): Remove variable. (tests): Do not add $(tests-ifunc). * wcsmbs/Makefile (tests-ifunc): Remove variable. (tests): Do not add $(tests-ifunc). * benchtests/bench-string.h (TEST_IFUNC): Remove macro. [TEST_IFUNC]: Remove conditionals. * string/test-string.h (TEST_IFUNC): Remove macro. [TEST_IFUNC]: Remove conditionals. * string/test-strchr.c [!WIDE] (L): New macro. [WIDE] (L): Likewise. (check1): Use CHAR instead of char. Use L on string and character constants. 2014-11-26 Adhemerval Zanella * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel} tests. * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_and_add_32_acq): Add definition. (__arch_atomic_exchange_and_add_32_rel): Likewise. (atomic_exchange_and_add_acq): Likewise. (atomic_exchange_and_add_rel): Likewise. * sysdeps/powerpc/powerpc32/bits/atomic.h (__arch_atomic_exchange_and_add_64_acq): Add definition. (__arch_atomic_exchange_and_add_64_rel): Likewise. * sysdeps/powerpc/powerpc64/bits/atomic.h (__arch_atomic_exchange_and_add_64_acq): Add definition. (__arch_atomic_exchange_and_add_64_rel): Likewise. 2014-11-26 Torvald Riegel * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority): Change synchronization of __sched_fifo_min_prio and __sched_fifo_max_prio. * nptl/pthread_mutexattr_getprioceiling.c (pthread_mutexattr_getprioceiling): Likewise. * nptl/pthread_mutexattr_setprioceiling.c (pthread_mutexattr_setprioceiling): Likewise. * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise. * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling): Likewise. 2014-11-26 Joseph Myers * setjmp/jmpbug.c (test): Make foo volatile and cast it to void. 2014-11-25 Joseph Myers * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make third argument const. 2014-11-25 Paul Eggert fnmatch: work around GCC compiler warning bug with uninit var * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array. This works around a bug with x86-64 GCC 4.9.2 and earlier where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be used uninitialized in this function [-Wmaybe-uninitialized]". 2014-11-25 Joseph Myers * posix/bug-regex31.c (main): Return RES not 0. 2014-11-25 Anton Blanchard * sysdeps/powerpc/bits/atomic.h (__arch_compare_and_exchange_bool_64_rel): Load from mem. 2014-11-24 Sterling Augustine * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros. 2014-11-24 Ryan Cumming [BZ #17608] * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI. 2014-11-24 Joseph Myers [BZ #17633] * stdio-common/perror.c (perror): Call __fileno instead of fileno. * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove variable. (test-xfail-ISO99/stdio.h/linknamespace): Likewise. (test-xfail-ISO11/stdio.h/linknamespace): Likewise. 2014-11-24 Wilco Dijkstra * string/strncpy.c (strncpy): Improve performance by using memset. 2014-11-24 Wilco Dijkstra * string/strcpy.c (strcpy): Improve performance by using strlen and memcpy. 2014-11-24 Leonhard Holz * string/strcoll_l.c (get_next_seq): __always_inline. * string/strcoll_l.c (do_compare): __always_inline. 2014-11-24 Siddhesh Poyarekar * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is defined. * include/mqueue.h: Likewise. * include/stdlib.h: Likewise. * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE. (get_null_defines): Adjust. * sunrpc/Makefile: Adjust comment. * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc. * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise. (CFLAGS-interp.c): Likewise. (CFLAGS-ldconfig.c): Likewise. (CPPFLAGS-.os): Likewise. * elf/rtld-Rules (rtld-CPPFLAGS): Likewise. * extra-lib.mk (CPPFLAGS-$(lib)): Likewise. * extra-modules.mk (extra-modules.mk): Likewise. * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise. * locale/Makefile (CPPFLAGS-locale_programs): Likewise. * malloc/Makefile (CPPFLAGS-memusagestat): Likewise. * nscd/Makefile (CPPFLAGS-nscd): Likewise. * nss/Makefile (CPPFLAGS-nss_test1): Likewise. * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise. * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise. * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise. * iconvdata/Makefile (CPPFLAGS): Likewise. (cpp-srcs-left): Add libof for all iconvdata routines. * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN. * include/assert.h: Likewise. * include/ctype.h: Likewise. * include/errno.h: Likewise. * include/libc-symbols.h: Likewise. * include/math.h: Likewise. * include/netdb.h: Likewise. * include/resolv.h: Likewise. * include/stdio.h: Likewise. * include/stdlib.h: Likewise. * include/string.h: Likewise. * include/sys/stat.h: Likewise. * include/wctype.h: Likewise. * intl/l10nflist.c: Likewise. * libidn/idn-stub.c: Likewise. * libio/libioP.h: Likewise. * nptl/libc_multiple_threads.c: Likewise. * nptl/pthreadP.h: Likewise. * posix/regex_internal.h: Likewise. * resolv/res_hconf.c: Likewise. * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise. * sysdeps/arm/memmove.S: Likewise. * sysdeps/arm/sysdep.h: Likewise. * sysdeps/generic/_itoa.h: Likewise. * sysdeps/generic/symbol-hacks.h: Likewise. * sysdeps/gnu/errlist.awk: Likewise. * sysdeps/gnu/errlist.c: Likewise. * sysdeps/i386/i586/memcpy.S: Likewise. * sysdeps/i386/i586/memset.S: Likewise. * sysdeps/i386/i686/memcpy.S: Likewise. * sysdeps/i386/i686/memmove.S: Likewise. * sysdeps/i386/i686/mempcpy.S: Likewise. * sysdeps/i386/i686/memset.S: Likewise. * sysdeps/i386/i686/multiarch/bcopy.S: Likewise. * sysdeps/i386/i686/multiarch/bzero.S: Likewise. * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise. * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/memchr.S: Likewise. * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise. * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/memcmp.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy.S: Likewise. * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise. * sysdeps/i386/i686/multiarch/memmove.S: Likewise. * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise. * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise. * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise. * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise. * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/memrchr.S: Likewise. * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise. * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/memset.S: Likewise. * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise. * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise. * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/strcat.S: Likewise. * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise. * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strchr.S: Likewise. * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise. * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/strcmp.S: Likewise. * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/strcpy.S: Likewise. * sysdeps/i386/i686/multiarch/strcspn.S: Likewise. * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise. * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strlen.S: Likewise. * sysdeps/i386/i686/multiarch/strnlen.S: Likewise. * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise. * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/strrchr.S: Likewise. * sysdeps/i386/i686/multiarch/strspn.S: Likewise. * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise. * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/wcschr.S: Likewise. * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise. * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise. * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise. * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise. * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise. * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/wcslen.S: Likewise. * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise. * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise. * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise. * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise. * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise. * sysdeps/ia64/fpu/libm-symbols.h: Likewise. * sysdeps/nptl/bits/libc-lock.h: Likewise. * sysdeps/nptl/bits/libc-lockP.h: Likewise. * sysdeps/nptl/bits/stdio-lock.h: Likewise. * sysdeps/posix/closedir.c: Likewise. * sysdeps/posix/opendir.c: Likewise. * sysdeps/posix/readdir.c: Likewise. * sysdeps/posix/rewinddir.c: Likewise. * sysdeps/powerpc/novmx-sigjmp.c: Likewise. * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise. * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise. * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise. * sysdeps/powerpc/powerpc32/setjmp.S: Likewise. * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise. * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise. * sysdeps/powerpc/powerpc64/setjmp.S: Likewise. * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise. * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise. * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise. * sysdeps/s390/s390-32/multiarch/memset.S: Likewise. * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise. * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise. * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise. * sysdeps/s390/s390-64/multiarch/memset.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise. * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise. * sysdeps/unix/alpha/sysdep.S: Likewise. * sysdeps/unix/alpha/sysdep.h: Likewise. * sysdeps/unix/make-syscalls.sh: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise. * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/getpid.c: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise. * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise. * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/not-cancel.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. * sysdeps/wordsize-32/symbol-hacks.h: Likewise. * sysdeps/x86_64/memcpy.S: Likewise. * sysdeps/x86_64/memmove.c: Likewise. * sysdeps/x86_64/memset.S: Likewise. * sysdeps/x86_64/multiarch/init-arch.h: Likewise. * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise. * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/memcmp.S: Likewise. * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise. * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise. * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/memcpy.S: Likewise. * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise. * sysdeps/x86_64/multiarch/memmove.c: Likewise. * sysdeps/x86_64/multiarch/mempcpy.S: Likewise. * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise. * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise. * sysdeps/x86_64/multiarch/memset.S: Likewise. * sysdeps/x86_64/multiarch/memset_chk.S: Likewise. * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise. * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/strcat.S: Likewise. * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise. * sysdeps/x86_64/multiarch/strchr.S: Likewise. * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/strcmp.S: Likewise. * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise. * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/strcpy.S: Likewise. * sysdeps/x86_64/multiarch/strcspn.S: Likewise. * sysdeps/x86_64/multiarch/strspn.S: Likewise. * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise. * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise. * sysdeps/x86_64/multiarch/wcscpy.S: Likewise. * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise. * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise. * sysdeps/x86_64/strcmp.S: Likewise. * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib). * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld. * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld. * elf/rtld-Rules: Likewise. * elf/setup-vdso.h: Likewise. * include/assert.h: Likewise. * include/bits/stdlib-float.h: Likewise. * include/errno.h: Likewise. * include/sys/stat.h: Likewise. * include/unistd.h: Likewise. * sysdeps/aarch64/setjmp.S: Likewise. * sysdeps/alpha/setjmp.S: Likewise. * sysdeps/arm/__longjmp.S: Likewise. * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise. * sysdeps/arm/setjmp.S: Likewise. * sysdeps/arm/sysdep.h: Likewise. * sysdeps/generic/_itoa.h: Likewise. * sysdeps/generic/dl-sysdep.h: Likewise. * sysdeps/generic/ldsodefs.h: Likewise. * sysdeps/i386/dl-tls.h: Likewise. * sysdeps/i386/setjmp.S: Likewise. * sysdeps/m68k/setjmp.c: Likewise. * sysdeps/mach/hurd/dl-execstack.c: Likewise. * sysdeps/mach/hurd/opendir.c: Likewise. * sysdeps/posix/getcwd.c: Likewise. * sysdeps/posix/opendir.c: Likewise. * sysdeps/posix/profil.c: Likewise. * sysdeps/powerpc/dl-procinfo.h: Likewise. * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise. * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise. * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise. * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise. * sysdeps/s390/dl-tls.h: Likewise. * sysdeps/s390/s390-32/setjmp.S: Likewise. * sysdeps/s390/s390-64/setjmp.S: Likewise. * sysdeps/sh/sh3/setjmp.S: Likewise. * sysdeps/sh/sh4/setjmp.S: Likewise. * sysdeps/unix/alpha/sysdep.h: Likewise. * sysdeps/unix/arm/sysdep.S: Likewise. * sysdeps/unix/i386/sysdep.S: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/getcwd.c: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise. * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise. * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise. * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. * sysdeps/unix/x86_64/sysdep.S: Likewise. * sysdeps/x86_64/setjmp.S: Likewise. * include/math.h: Use IS_IN instead of IS_IN_libm. * sysdeps/alpha/fpu/s_copysign.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise. * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise. * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise. * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise. * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise. * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: Likewise. * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise. * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise. * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise. * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Likewise. * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise. * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise. * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise. * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise. * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise. * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise. * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise. * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise. * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise. * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise. * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise. * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise. * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise. * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise. * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise. * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise. * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise. * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise. * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise. * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise. * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread. * nptl/pthreadP.h: Likewise. * nptl_db/structs.def: Likewise. * sysdeps/arm/sysdep.h: Likewise. * sysdeps/nptl/bits/libc-lock.h: Likewise. * sysdeps/nptl/bits/libc-lockP.h: Likewise. * sysdeps/sparc/sparc32/lowlevellock.c: Likewise. * sysdeps/unix/alpha/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/not-cancel.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. * include/mqueue.h: Use IS_IN instead of IS_IN_librt. * nptl/pthreadP.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/not-cancel.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise. * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. * dlfcn/dladdr.c: Use IS_IN. * dlfcn/dladdr1.c: Likewise. * dlfcn/dlclose.c: Likewise. * dlfcn/dlerror.c: Likewise. * dlfcn/dlinfo.c: Likewise. * dlfcn/dlmopen.c: Likewise. * dlfcn/dlopen.c: Likewise. * dlfcn/dlsym.c: Likewise. * dlfcn/dlvsym.c: Likewise. * include/ifaddrs.h: Use IS_IN. * inet/check_pf.c: Likewise. * sysdeps/unix/sysv/linux/check_pf.c: Likewise. * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd. * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of IS_IN_ldconfig. * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN. * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise. * include/shlib-compat.h [!NOT_IN_libc]: Remove. * nss/nss_files/files-parse.c (IS_IN_libc): Replace with IS_IN (libc). * elf/Makefile (libof-sotruss-lib): Set as extramodules. * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB. * elf/rtld-Rules (rtld-CPPFLAGS): Likewise. * extra-lib.mk (CPPFLAGS-$(lib)): Likewise. * include/libc-symbols.h (IS_IN_LIB): New macro. * include/errno.h: Use IS_IN_LIB instead of IN_LIB. * include/netdb.h: Likewise. * include/stap-probe.h: Remove all uses of IN_LIB. * Makeconfig (module-cppflags-real): Define MODULE_NAME instead of IN_MODULE. * include/libc-symbols.h (IN_MODULE): Define using MODULE_NAME. (PASTE_NAME, PASTE_NAME1): New macros. * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead of IN_LIB. (STAP_PROBE_ASM): Likewise. 2014-11-23 Samuel Thibault * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call __mach_init in dlopened libc. 2014-11-22 Mike Frysinger * sysdeps/arm/preconfigure.ac: Delete EABI check. * sysdeps/arm/preconfigure: Regenerate. 2014-11-21 Roland McGrath * nptl/pthread_create.c (__pthread_create_2_1): Set ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags when copying values from IATTR into PD. 2014-11-21 Will Newton Andrew Pinski * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Refactor inline-asm. Also add comment. * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use ElfW macro instead of hardcoded Elf64 types. (la_aarch64_gnu_pltenter): Likewise. * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Use ElfW(Addr). * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY, R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT, R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD, R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL, R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define. (R_AARCH64_TLS_DTPMOD64): Rename to .. (R_AARCH64_TLS_DTPMOD): This. (R_AARCH64_TLS_DTPREL64): Rename to ... (R_AARCH64_TLS_DTPREL): This. (R_AARCH64_TLS_TPREL64): Rename to ... (R_AARCH64_TLS_TPREL): This. * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and R_AARCH64_TLS_TPREL64. (elf_machine_rela): Likewise. 2014-11-21 Torvald Riegel * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value by setting it to 0. 64b atomics are not supported currently. 2014-11-21 Alexandre Oliva [BZ #16469] * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in search domain names. 2014-11-21 Alexandre Oliva [BZ #16469] * NEWS: Update. * resolv/res_query.c (__libc_res_nquerydomain): Retain trailing dot. * posix/tst-getaddrinfo5.c: New. * posix/Makefile (tests): Add it. 2014-11-21 Alexandre Oliva [BZ #14498] * NEWS: Fixed. * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx after parsing line but before break_if_match. * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;" if there is a protocol mismatch. 2014-11-21 Ma Shimiao * manual/sysinfo.texi (addmntent): It is actually MT-Safe, because the potential race is on the user-supplied stream. 2014-11-21 Alexandre Oliva * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a string literal if not passed a buffer. * manual/job.texi (ctermid): Update reasoning, note deviation from posix, suggest mtasurace when not passed a buffer, for future non-preliminary safety notes. 2014-11-21 Alexandre Oliva * manual/users.texi (cuserid): Fix MT-Safety note for the case of not passing it a buffer. Reported by Peng Haitao. 2014-11-21 Alexandre Oliva * manual/Makefile ($(objpfx)stamp-summary): Require check-safety.sh to pass. * manual/check-safety.sh: Wish for verification that every @deftypefn and @deftypefun is followed by a @safety remark. 2014-11-20 Roland McGrath * nptl/unwind.c (unwind_cleanup): Use __libc_fatal. * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for PTHREAD_CANCEL_ASYNCHRONOUS. * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to send SIGCANCEL. * nptl/default-sched.h: New file. * sysdeps/unix/sysv/linux/default-sched.h: New file. * nptl/pthread_create.c: Include it. (__pthread_create_2_1): Use collect_default_sched instead of making Linux syscalls here directly. 2014-11-20 Torvald Riegel * nptl/pthread_once.c (clear_once_control, __pthread_once_slow, __pthread_once): Use C11 atomics. 2014-11-20 Torvald Riegel * csu/tst-atomic.c (do_test): Add tests for C11-like atomics. 2014-11-20 Torvald Riegel * include/atomic.h (__atomic_link_error, __atomic_check_size, atomic_thread_fence_acquire, atomic_thread_fence_release, atomic_thread_fence_seq_cst, atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed, atomic_store_release, atomic_compare_exchange_weak_relaxed, atomic_compare_exchange_weak_acquire, atomic_compare_exchange_weak_release, atomic_exchange_acquire, atomic_exchange_release, atomic_fetch_add_relaxed, atomic_fetch_add_acquire, atomic_fetch_add_release, atomic_fetch_add_acq_rel, atomic_fetch_and_acquire, atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New. 2014-11-20 Torvald Riegel * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Define. * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise. 2014-11-19 Roland McGrath * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate the sched_priority value here. It was already checked when the user called pthread_attr_setschedparam. * nptl/tst-bad-schedattr.c: New file. * nptl/Makefile (tests): Add it. 2014-11-19 Carlos O'Donell Florian Weimer Joseph Myers Adam Conrad Andreas Schwab Brooks [BZ #17625] * wordexp-test.c (__dso_handle): Add prototype. (__register_atfork): Likewise. (__app_register_atfork): New function. (registered_forks): New global. (register_fork): New function. (test_case): Add 3 new tests for WRDE_CMDSUB. (main): Call __app_register_atfork. (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if fork count is non-zero fail the test. * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag is set. (parse_dollars): Remove check for WRDE_NOCMD. (parse_dquote): Likewise. 2014-11-19 Siddhesh Poyarekar * Makeconfig (built-modules): List non-library modules to be built. (module-cppflags): Include libc-modules.h for everything except shlib-versions.v.i. (CPPFLAGS): Use it. (before-compile): Add libc-modules.h. ($(common-objpfx)libc-modules.h, $(common-objpfx)libc-modules.stmp): New targets. (common-generated): Add libc-modules.h and libc-modules.stmp. ($(common-objpfx)Versions.v.i): Depend on libc-modules.h. * include/libc-symbols.h: Don't include libc-modules.h. * include/libc-modules.h: Remove file. * scripts/gen-libc-modules.awk: New script to generate libc-modules.h. * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls): Depend on libc-modules.stmp. * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN. * Makeconfig (in-module): Get value of libof set for the translation unit. (CPPFLAGS): Use $(in-module). * Makerules: Don't suffix routine names for nonlib. * include/libc-modules.h: New file. * include/libc-symbols.h: Include libc-modules.h (IS_IN): New macro to replace IS_IN_* macros. * elf/Makefile: Set libof-* for each routine. * elf/rtld-Rules: Likewise. * extra-modules.mk: Likewise. * iconv/Makefile: Likewise. * iconvdata/Makefile: Likewise. * locale/Makefile: Likewise. * malloc/Makefile: Likewise. * nss/Makefile: Likewise. * sysdeps/gnu/Makefile: Likewise. * sysdeps/ieee754/ldbl-opt/Makefile: Likewise. * sysdeps/unix/sysv/linux/Makefile: Likewise. * sysdeps/s390/s390-64/Makefile: Likewise. * nscd/Makefile: Set libof-* for each routine. Set CFLAGS and CPPFLAGS for nscd instead of nonlib. 2014-11-18 Roland McGrath * nptl/createthread.c: New file. * nptl/createthread.c: Moved ... * sysdeps/unix/sysv/linux/createthread.c: ... here. * nptl/createthread.c: Add proper top-line comment. (do_clone): Folded into ... (create_thread): ... here. Take new arguments STOPPED_START and THREAD_RAN. Always set PD->stopped_start to something here. Don't increment __nptl_threads, do event-reporting logic, do CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads here. Set *THREAD_RAN after ARCH_CLONE call succeeds. Don't do any resource cleanup if sched_setaffinity or sched_setscheduler fails, just send SIGCANCEL. * nptl/pthread_create.c: Forward-declare create_thread before including createthread.c. (start_thread): Use new macro START_THREAD_DEFN to replace defining declaration, and new macro START_THREAD_SELF to replace argument. Remove return statement. (report_thread_creation): New function. (__pthread_create_2_1): Use it. Do TD_CREATE reporting, synchronization logic, and __nptl_nthreads increment here, around calling create_thread. Do CHECK_THREAD_SYSINFO and initialize PD->parent_cancelhandling here, before create_thread. When create_thread fails, do __nptl_nthreads decrement, setxid_futex wake, __deallocate_stack, and ENOMEM translation here. 2014-11-18 Joseph Myers [BZ #17616] * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone. (mptwo): Rename to __mptwo. (__inv): Use __mptwo instead of mptwo. * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone. (mptwo): Rename to __mptwo. * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead of mpone and __mptwo instead of mptwo. * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone instead of mpone. * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise. * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise. * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead of mpone and __mptwo instead of mptwo. (__mpranred): Use __mpone instead of mpone. * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove variable. (test-xfail-ISO99/complex.h/linknamespace): Likewise. (test-xfail-ISO99/math.h/linknamespace): Likewise. (test-xfail-ISO99/tgmath.h/linknamespace): Likewise. (test-xfail-ISO11/complex.h/linknamespace): Likewise. (test-xfail-ISO11/math.h/linknamespace): Likewise. (test-xfail-ISO11/tgmath.h/linknamespace): Likewise. (test-xfail-XPG3/math.h/linknamespace): Likewise. (test-xfail-XPG4/math.h/linknamespace): Likewise. (test-xfail-POSIX/math.h/linknamespace): Likewise. (test-xfail-UNIX98/math.h/linknamespace): Likewise. (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise. (test-xfail-XOPEN2K/math.h/linknamespace): Likewise. (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise. (test-xfail-POSIX2008/complex.h/linknamespace): Likewise. (test-xfail-POSIX2008/math.h/linknamespace): Likewise. (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise. 2014-11-18 Tom de Vries * manual/signal.texi (Primitives Interrupted by Signals): In section, replace BSD Handler xref with BSD Signal Handling. 2014-11-17 Richard Henderson * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove. (_FP_PACK_RAW_2): Remove. (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q. (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q. (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New. (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New. * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match. * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise. * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise. * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise. * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise. * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise. * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise. * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise. * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise. * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise. * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise. * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise. 2014-11-14 Roland McGrath * signal/signal.h [__USE_MISC] (struct sigvec): Remove type. (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros. (sigvec): Remove declaration. * sysdeps/posix/sigvec.c: Moved ... * signal/sigvec.c: ... here, replacing old file. (struct sigvec): New type, copied from old signal.h definition. (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied. (__sigvec): Convert definition to prototype. (sigvec): Replace weak_alias with compat_symbol. * signal/Versions (libc: GLIBC_2.21): New version set. * include/signal.h: Remove __sigvec declaration. * sysdeps/unix/bsd/sigvec.c: Remove file. * sysdeps/unix/bsd/syscalls.list: Remove sigvec. * manual/signal.texi (BSD Handler): Remove subsection. Move siginterrupt up to ... (BSD Signal Handling): ... here. Mark it as XPG rather than BSD. (Blocking in BSD): Fold subsection into its parent. * NEWS: Mention sigvec removal. 2014-11-14 Joseph Myers * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)] (DLA_FMS): Make definition conditional only on [__FMA4__]. [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional definition. * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT): Make definition conditional only on [PROF]. [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional definition. [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional. [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition. * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN && !__GNUC__]. * include/signal.h (__sigpause): Move declaration above call to libc_hidden_proto. * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove variable. (test-xfail-ISO99/signal.h/linknamespace): Likewise. (test-xfail-ISO11/signal.h/linknamespace): Likewise. 2014-11-14 David S. Miller * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before including and . 2014-11-14 Joseph Myers * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later. * configure: Regenerated. * manual/install.texi (Tools for Compilation): Document a requirement of GCC 4.6 or later and that GCC 4.9 is the newest compiler verified to work. * INSTALL: Regenerated. * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not redeclare with asm name. [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise. * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before including . * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise. * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise. * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise. 2014-11-13 Joseph Myers * stdlib/strtol.c (__strtol): Use prototype definition. [BZ #17594] * stdlib/strtol.c (SYM__): New macro. (SYM__1): Likewise. (__strtol): Likewise. (strtol): Rename to __strtol and define as weak alias of __strtol. Use libc_hidden_weak. 2014-11-13 Stefan Liebler * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Use numbered labels in inline assembly. 2014-11-13 Stefan Liebler * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Add setjmp LIBC_PROBE. * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp): Likewise. * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Add longjmp, longjmp_target LIBC_PROBE. * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise. 2014-11-13 Stefan Liebler * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Gate the definition of refsym additionally with !RTLD_BOOTSTRAP to get rid of unused variable warning. 2014-11-13 Stefan Liebler * sysdeps/s390/s390-32/backtrace.c (__backtrace): Check for unwind_backtrace == NULL only in SHARED case. (__backchain_backtrace): Compile only in SHARED case. * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise. (__backchain_backtrace): Declare as static. 2014-11-12 Roland McGrath * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB] (__libc_multiple_threads_ptr): Variable moved ... * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here. 2014-11-12 Joseph Myers * conform/GlibcConform.pm: New file. * conform/conformtest.pl: Use GlibcConform module. * conform/linknamespace.pl: New file. * conform/list-header-symbols.pl: Likewise. * conform/Makefile (linknamespace-symlists-base): New variable. (linknamespace-symlists-tests): Likewise. (linknamespace-header-base): Likewise. (linknamespace-header-tests): Likewise. (tests-special): Add new tests. ($(linknamespace-symlists-tests)): New rule. (linknamespace-libs): New variable. ($(objpfx)symlist-stdlibs): New rule. ($(linknamespace-header-tests)): Likewise. (test-xfail-XPG3/varargs.h/linknamespace): New variable. (test-xfail-XPG4/varargs.h/linknamespace): Likewise. (test-xfail-UNIX98/varargs.h/linknamespace): Likewise. (test-xfail-XPG4/ndbm.h/linknamespace): Likewise. (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise. (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise. (test-xfail-ISO/math.h/linknamespace): Likewise. (test-xfail-ISO/signal.h/linknamespace): Likewise. (test-xfail-ISO/stdio.h/linknamespace): Likewise. (test-xfail-ISO/time.h/linknamespace): Likewise. (test-xfail-ISO99/complex.h/linknamespace): Likewise. (test-xfail-ISO99/ctype.h/linknamespace): Likewise. (test-xfail-ISO99/math.h/linknamespace): Likewise. (test-xfail-ISO99/signal.h/linknamespace): Likewise. (test-xfail-ISO99/stdio.h/linknamespace): Likewise. (test-xfail-ISO99/tgmath.h/linknamespace): Likewise. (test-xfail-ISO11/complex.h/linknamespace): Likewise. (test-xfail-ISO11/ctype.h/linknamespace): Likewise. (test-xfail-ISO11/math.h/linknamespace): Likewise. (test-xfail-ISO11/signal.h/linknamespace): Likewise. (test-xfail-ISO11/stdio.h/linknamespace): Likewise. (test-xfail-ISO11/tgmath.h/linknamespace): Likewise. (test-xfail-XPG3/ctype.h/linknamespace): Likewise. (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise. (test-xfail-XPG3/glob.h/linknamespace): Likewise. (test-xfail-XPG3/math.h/linknamespace): Likewise. (test-xfail-XPG3/regex.h/linknamespace): Likewise. (test-xfail-XPG3/search.h/linknamespace): Likewise. (test-xfail-XPG3/stdio.h/linknamespace): Likewise. (test-xfail-XPG3/time.h/linknamespace): Likewise. (test-xfail-XPG3/unistd.h/linknamespace): Likewise. (test-xfail-XPG3/wordexp.h/linknamespace): Likewise. (test-xfail-XPG4/ctype.h/linknamespace): Likewise. (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise. (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise. (test-xfail-XPG4/glob.h/linknamespace): Likewise. (test-xfail-XPG4/grp.h/linknamespace): Likewise. (test-xfail-XPG4/libgen.h/linknamespace): Likewise. (test-xfail-XPG4/math.h/linknamespace): Likewise. (test-xfail-XPG4/netdb.h/linknamespace): Likewise. (test-xfail-XPG4/pwd.h/linknamespace): Likewise. (test-xfail-XPG4/regex.h/linknamespace): Likewise. (test-xfail-XPG4/search.h/linknamespace): Likewise. (test-xfail-XPG4/stdio.h/linknamespace): Likewise. (test-xfail-XPG4/stdlib.h/linknamespace): Likewise. (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise. (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise. (test-xfail-XPG4/syslog.h/linknamespace): Likewise. (test-xfail-XPG4/time.h/linknamespace): Likewise. (test-xfail-XPG4/unistd.h/linknamespace): Likewise. (test-xfail-XPG4/wordexp.h/linknamespace): Likewise. (test-xfail-POSIX/aio.h/linknamespace): Likewise. (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise. (test-xfail-POSIX/glob.h/linknamespace): Likewise. (test-xfail-POSIX/math.h/linknamespace): Likewise. (test-xfail-POSIX/mqueue.h/linknamespace): Likewise. (test-xfail-POSIX/pthread.h/linknamespace): Likewise. (test-xfail-POSIX/regex.h/linknamespace): Likewise. (test-xfail-POSIX/sched.h/linknamespace): Likewise. (test-xfail-POSIX/semaphore.h/linknamespace): Likewise. (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise. (test-xfail-POSIX/time.h/linknamespace): Likewise. (test-xfail-POSIX/unistd.h/linknamespace): Likewise. (test-xfail-POSIX/wordexp.h/linknamespace): Likewise. (test-xfail-UNIX98/aio.h/linknamespace): Likewise. (test-xfail-UNIX98/ctype.h/linknamespace): Likewise. (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise. (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise. (test-xfail-UNIX98/glob.h/linknamespace): Likewise. (test-xfail-UNIX98/grp.h/linknamespace): Likewise. (test-xfail-UNIX98/libgen.h/linknamespace): Likewise. (test-xfail-UNIX98/math.h/linknamespace): Likewise. (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise. (test-xfail-UNIX98/netdb.h/linknamespace): Likewise. (test-xfail-UNIX98/pthread.h/linknamespace): Likewise. (test-xfail-UNIX98/pwd.h/linknamespace): Likewise. (test-xfail-UNIX98/regex.h/linknamespace): Likewise. (test-xfail-UNIX98/sched.h/linknamespace): Likewise. (test-xfail-UNIX98/search.h/linknamespace): Likewise. (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise. (test-xfail-UNIX98/stdio.h/linknamespace): Likewise. (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise. (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise. (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise. (test-xfail-UNIX98/syslog.h/linknamespace): Likewise. (test-xfail-UNIX98/time.h/linknamespace): Likewise. (test-xfail-UNIX98/unistd.h/linknamespace): Likewise. (test-xfail-UNIX98/wchar.h/linknamespace): Likewise. (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise. (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise. (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise. (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise. (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise. (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise. (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise. (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise. (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise. (test-xfail-XOPEN2K/math.h/linknamespace): Likewise. (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise. (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise. (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise. (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise. (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise. (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise. (test-xfail-XOPEN2K/search.h/linknamespace): Likewise. (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise. (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise. (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise. (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise. (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise. (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise. (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise. (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise. (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise. (test-xfail-XOPEN2K/time.h/linknamespace): Likewise. (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise. (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise. (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise. (test-xfail-POSIX2008/aio.h/linknamespace): Likewise. (test-xfail-POSIX2008/complex.h/linknamespace): Likewise. (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise. (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise. (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise. (test-xfail-POSIX2008/grp.h/linknamespace): Likewise. (test-xfail-POSIX2008/math.h/linknamespace): Likewise. (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise. (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise. (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise. (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise. (test-xfail-POSIX2008/regex.h/linknamespace): Likewise. (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise. (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise. (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise. (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise. (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise. (test-xfail-POSIX2008/time.h/linknamespace): Likewise. (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise. (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise. [BZ #17589] * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead of fgets_unlocked. [BZ #17585] * string/memmem.c [!_LIBC] (__memmem): Define to memmem. (memmem): Rename to __memmem and define as weak alias of __memmem. Use libc_hidden_weak. (__memmem): Use libc_hidden_def. * include/string.h (__memmem): Declare. Use libc_hidden_proto. * locale/findlocale.c (valid_locale_name): Use __memmem instead of memmem. [BZ #17582] * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO] (__fgets_unlocked): Add alias of _IO_fgets. Use libc_hidden_def. * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked and define as weak alias of __fgets_unlocked. Use libc_hidden_weak. (__fgets_unlocked): Use libc_hidden_def. * include/stdio.h (__fgets_unlocked): Declare. Use libc_hidden_proto. * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use __fgets_unlocked instead of fgets_unlocked. * sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_CONF_PARSER): Likewise. * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_CONF_PARSER): Likewise. [BZ #17574] * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as weak alias of __wmemset. Use libc_hidden_weak. (__wmemset): Use libc_hidden_def. * include/wchar.h (__wmemset): Declare. Use libc_hidden_proto. * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead of wmemset. [BZ #17573] * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare with asm name __mempcpy. [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy. [BZ #17572] * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr and define as weak alias of __rawmemchr. (__rawmemchr): Do not define as strong alias of rawmemchr. [BZ #17571] * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak alias of __qsort_r. (qsort): Call __qsort_r instead of qsort_r. * include/stdlib.h (qsort_r): Do not call libc_hidden_proto. (__qsort_r): Declare. Call libc_hidden_proto. * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r instead of qsort_r. * nscd/gai.c (__qsort_r): Define to qsort_r. * posix/tst-rfc3484.c (__qsort_r): Likewise. * posix/tst-rfc3484-2.c (__qsort_r): Likewise. * posix/tst-rfc3484-3.c (__qsort_r): Likewise. [BZ #17570] * malloc/malloc.c (malloc_info): Rename to __malloc_info and define as weak alias of __malloc_info. [BZ #17584] * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define as weak alias of __rewinddir. Don't use libc_hidden_def. (__rewinddir): Use libc_hidden_def. * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define as weak alias of __rewinddir. Don't use libc_hidden_def. (__rewinddir): Use libc_hidden_def. * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as weak alias of __rewinddir. Don't use libc_hidden_def. (__rewinddir): Use libc_hidden_def. * include/dirent.h (rewinddir): Don't use libc_hidden_proto. (__rewinddir): Use libc_hidden_proto. * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to rewinddir. (__getcwd): Use __rewinddir instead of rewinddir. [BZ #17583] * libio/fileno.c (fileno): Rename to __fileno and define as weak alias of __fileno. Use libc_hidden_weak. (__fileno): Use libc_hidden_def. [weak_alias] (fileno_unlocked): Define as weak alias of __fileno. * libio/ftello.c (ftello): Rename to __ftello and define as weak alias of __ftello. [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of __ftello. * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO] (__fread_unlocked): Define as strong alias of _IO_fread. Use libc_hidden_def. (fread_unlocked): Don't use libc_hidden_ver. * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked and define as weak alias of __fread_unlocked. Don't use libc_hidden_def. (__fread_unlocked): Use libc_hidden_def. * include/stdio.h (__fileno): Declare. Use libc_hidden_proto. (ftello): Don't use libc_hidden_proto. (__ftello): Declare. Use libc_hidden_proto. (fread_unlocked): Don't use libc_hidden_proto. (__fread_unlocked): Declare. Use libc_hidden_proto. * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked and __ftello instead of fileno, fread_unlocked and ftello. 2012-11-12 Siddhesh Poyarekar * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of GOT12. * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address): Likewise. (_dl_start_user): Likewise. * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise. 2014-11-12 Carlos O'Donell Siddhesh Poyarekar * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user): Move argv and envp down instead of moving argc up. * sysdeps/s390/s390-32/dl-sysdep.h: New file. 2014-11-12 Leonhard Holz [BZ #17506] * test-skeleton.c (main): Return successful if one of EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given. * string/tst-strcoll-overflow.c: Define expected status. 2014-11-12 Tatiana Udalova [BZ #17475] * locale/iso-639.def: Define Bhili and Tulu language codes. 2014-11-11 Alan Hayward * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file. 2014-11-10 Renlin Li [BZ #17555] * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment. 2014-11-10 Andrew Senkevich * configure.ac: Updated check of minimal required version to 2.22. * manual/install.texi (Tools for Compilation): Updated version number. * configure: Regenerated. * INSTALL: Likewise. 2014-11-07 Andreas Schwab * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove __tls_get_addr. 2014-11-07 Joseph Myers * include/sys/wait.h (__libc_waitpid): Remove declaration. * posix/waitpid.c (__libc_waitpid): Rename to __waitpid. (__waitpid): Don't define as alias. Use libc_hidden_def not libc_hidden_weak. (waitpid): Define as alias of __waitpid. * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to __waitpid. (__waitpid): Don't define as alias. Use libc_hidden_def not libc_hidden_weak. (waitpid): Define as alias of __waitpid. * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove __libc_waitpid alias. * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove alias. * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to __waitpid. (__waitpid): Don't define as alias. Use libc_hidden_def not libc_hidden_weak. (waitpid): Define as alias of __waitpid. 2014-11-06 Carlos O'Donell * manual/llio.texi: Add comment that write safety has been fixed in Linux. * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so. (localplt-build-dso): Add elf/ld.so. * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc, and free for ld.so. * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add __libc_memalign, malloc, calloc, realloc, and free for ld.so. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise. * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise. * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore version, __libc_memalign, malloc, calloc, realloc and free for ld.so. * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise. * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise. * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise. * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise. * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise. * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise. 2014-11-05 Joseph Myers [BZ #14132] * include/libc-symbols.h (INTUSE): Remove macro. (INTDEF): Likewise. (INTVARDEF): Likewise. (_INTVARDEF): Likewise. (INTDEF2): Likewise. (INTVARDEF2): Likewise. * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use rtld_hidden_def instead of INTVARDEF. * sysdeps/generic/ldsodefs.h [IS_IN_rtld] (_dl_starting_up_internal): Remove declaration. (_dl_starting_up): Use rtld_hidden_proto. * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove declaration. [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise. (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with _dl_starting_up. * elf/dl-writev.h (_dl_writev): Likewise. * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS] (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of _dl_starting_up_internal. 2014-11-05 Adhemerval Zanella * stdio-common/tst-fmemopen.c (do_test): Refactor to use test-skeleton.c. 2014-11-05 Will Newton * benchtests/Makefile: (bench-malloc): Add malloc thread scalability benchmark. * benchtests/bench-malloc-threads.c: New file. 2014-11-05 Richard Earnshaw * sysdeps/aarch64/strchrnul.S: New file. 2014-11-05 Adhemerval Zanella * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify definition. * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1): Likwise. * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1): Likewise. * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1): Likewise. * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1): Likewise. * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1): Likewise. 2014-11-05 Arjun Shankar * catgets/test-gencat.c: Use test-skeleton.c. * catgets/tst-catgets.c: Likewise. * csu/tst-empty.c: Likewise. * elf/tst-audit2.c: Likewise. * elf/tst-global1.c: Likewise. * elf/tst-pathopt.c: Likewise. * elf/tst-piemod1.c: Likewise. * elf/tst-tls10.c: Likewise. * elf/tst-tls11.c: Likewise. * elf/tst-tls12.c: Likewise. * gnulib/tst-gcc.c: Likewise. * iconvdata/tst-e2big.c: Likewise. * iconvdata/tst-loading.c: Likewise. * iconv/tst-iconv1.c: Likewise. * iconv/tst-iconv2.c: Likewise. * inet/test-inet6_opt.c: Likewise. * inet/tst-gethnm.c: Likewise. * inet/tst-network.c: Likewise. * inet/tst-ntoa.c: Likewise. * intl/tst-codeset.c: Likewise. * intl/tst-gettext2.c: Likewise. * intl/tst-gettext3.c: Likewise. * intl/tst-ngettext.c: Likewise. * intl/tst-translit.c: Likewise. * io/test-stat.c: Likewise. * libio/test-fmemopen.c: Likewise. * libio/tst-freopen.c: Likewise. * libio/tst-sscanf.c: Likewise. * libio/tst-ungetwc1.c: Likewise. * libio/tst-ungetwc2.c: Likewise. * libio/tst-widetext.c: Likewise. * localedata/tst-ctype.c: Likewise. * localedata/tst-digits.c: Likewise. * localedata/tst-leaks.c: Likewise. * localedata/tst-mbswcs1.c: Likewise. * localedata/tst-mbswcs2.c: Likewise. * localedata/tst-mbswcs3.c: Likewise. * localedata/tst-mbswcs4.c: Likewise. * localedata/tst-mbswcs5.c: Likewise. * localedata/tst-setlocale.c: Likewise. * localedata/tst-trans.c: Likewise. * localedata/tst-wctype.c: Likewise. * localedata/tst-xlocale1.c: Likewise. * login/tst-grantpt.c: Likewise. * malloc/tst-calloc.c: Likewise. * malloc/tst-malloc.c: Likewise. * malloc/tst-mallocstate.c: Likewise. * malloc/tst-mcheck.c: Likewise. * malloc/tst-mtrace.c: Likewise. * malloc/tst-obstack.c: Likewise. * math/atest-exp2.c: Likewise. * math/atest-exp.c: Likewise. * math/atest-sincos.c: Likewise. * math/test-matherr.c: Likewise. * math/test-misc.c: Likewise. * math/test-powl.c: Likewise. * math/tst-definitions.c: Likewise. * misc/tst-dirname.c: Likewise. * misc/tst-efgcvt.c: Likewise. * misc/tst-fdset.c: Likewise. * misc/tst-hsearch.c: Likewise. * misc/tst-mntent2.c: Likewise. * nptl/tst-sem7.c: Likewise. * nptl/tst-sem8.c: Likewise. * nptl/tst-sem9.c: Likewise. * nss/test-netdb.c: Likewise. * posix/tst-fnmatch.c: Likewise. * posix/tst-getlogin.c: Likewise. * posix/tst-gnuglob.c: Likewise. * posix/tst-mmap.c: Likewise. * pwd/tst-getpw.c: Likewise. * resolv/tst-inet_ntop.c: Likewise. * rt/tst-timer.c: Likewise. * stdio-common/test-fseek.c: Likewise. * stdio-common/test-popen.c: Likewise. * stdio-common/test-vfprintf.c: Likewise. * stdio-common/tst-cookie.c: Likewise. * stdio-common/tst-fileno.c: Likewise. * stdio-common/tst-gets.c: Likewise. * stdio-common/tst-obprintf.c: Likewise. * stdio-common/tst-perror.c: Likewise. * stdio-common/tst-sprintf2.c: Likewise. * stdio-common/tst-sprintf3.c: Likewise. * stdio-common/tst-sprintf.c: Likewise. * stdio-common/tst-swprintf.c: Likewise. * stdio-common/tst-tmpnam.c: Likewise. * stdio-common/tst-unbputc.c: Likewise. * stdio-common/tst-wc-printf.c: Likewise. * stdlib/tst-environ.c: Likewise. * stdlib/tst-fmtmsg.c: Likewise. * stdlib/tst-limits.c: Likewise. * stdlib/tst-rand48-2.c: Likewise. * stdlib/tst-rand48.c: Likewise. * stdlib/tst-random2.c: Likewise. * stdlib/tst-random.c: Likewise. * stdlib/tst-strtol.c: Likewise. * stdlib/tst-strtoll.c: Likewise. * stdlib/tst-tls-atexit.c: Likewise. * stdlib/tst-xpg-basename.c: Likewise. * string/test-ffs.c: Likewise. * string/tst-bswap.c: Likewise. * string/tst-inlcall.c: Likewise. * string/tst-strtok.c: Likewise. * string/tst-strxfrm.c: Likewise. * sysdeps/x86_64/tst-audit10.c: Likewise. * sysdeps/x86_64/tst-audit3.c: Likewise. * sysdeps/x86_64/tst-audit4.c: Likewise. * sysdeps/x86_64/tst-audit5.c: Likewise. * time/tst-ftime_l.c: Likewise. * time/tst-getdate.c: Likewise. * time/tst-mktime3.c: Likewise. * time/tst-mktime.c: Likewise. * time/tst-posixtz.c: Likewise. * time/tst-strptime2.c: Likewise. * time/tst-strptime3.c: Likewise. * wcsmbs/tst-btowc.c: Likewise. * wcsmbs/tst-mbrtowc.c: Likewise. * wcsmbs/tst-mbsrtowcs.c: Likewise. * wcsmbs/tst-wchar-h.c: Likewise. * wcsmbs/tst-wcpncpy.c: Likewise. * wcsmbs/tst-wcrtomb.c: Likewise. * wcsmbs/tst-wcsnlen.c: Likewise. * wcsmbs/tst-wcstof.c: Likewise. 2014-11-04 Joseph Myers [BZ #14132] * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of INTDEF. * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove declaration. (_dl_mcount): Use rtld_hidden_proto. * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with _dl_mcount. * elf/rtld.c (_rtld_global_ro): Likewise. [BZ #14132] * elf/dl-init.c (_dl_init): Don't use INTDEF. * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead of _dl_init_internal. * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise. * sysdeps/arm/dl-machine.h (RTLD_START): Likewise. * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise. * sysdeps/i386/dl-machine.h (RTLD_START): Likewise. * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise. * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise. * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise. * sysdeps/mips/dl-machine.h (RTLD_START): Likewise. * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise. * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise. * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise. * sysdeps/sh/dl-machine.h (RTLD_START): Likewise. * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise. * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise. * sysdeps/tile/dl-start.S (_start): Likewise. * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise. * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise. [BZ #14132] * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto. [IS_IN_rtld] (_dl_argv_internal): Do not declare. (rtld_progname): Make macro definition unconditional. * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of INTDEF. (dlmopen_doit): Do not use INTUSE with _dl_argv. (dl_main): Likewise. * elf/dl-sysdep.c (_dl_sysdep_start): Likewise. * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv instead of _dl_argv_internal. * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use __GI__dl_argv instead of INTUSE(_dl_argv). * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use __GI__dl_argv instead of _dl_argv_internal. * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro. * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New macro. [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise. * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E): New macro. [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise. * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New macro. [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise. * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro. 2014-11-04 Andreas Schwab * posix/regex_internal.h: Don't include . 2014-11-03 Adhemerval Zanella * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode mtvsrd instruction in binary form. 2014-11-03 Andreas Schwab [BZ #17522] * libio/wfileops.c (_IO_wdo_write): If the file buffer has room for less than MB_LEN_MAX use a local buffer of that size. * libio/tst-fputws.c: New file. * libio/Makefile (tests): Add tst-fputws. 2014-11-01 Jose E. Marchesi * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix the size of the fpu_fr.fpu_dregs[] array. 2014-11-01 Joseph Myers * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep. (__nanosleep): Do not define as alias. (nanosleep): Define as alias of __nanosleep. * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove __libc_nanosleep name. 2014-10-31 Joseph Myers * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update install.texi in comment. 2014-10-31 Torvald Riegel * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and... * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier): ... add here and use lwsync or sync ... * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier): ... and add here using lwsync. 2014-10-31 Matthew Fortune * elf/dl-machine-reject-phdr.h: New file. * elf/dl-load.c: #include that. (open_verify): Call elf_machine_reject_phdr_p and ignore the file if that returned true. 2014-10-31 Roland McGrath [BZ #17496] * Makerules: Move gnu/lib-names.h generation chunk up, to right after gen-as-const-headers chunk. Add a big scare comment after the last safe place to touch before-compile. 2014-10-31 Joseph Myers * manual/install.texi (Tools for Compilation): Update autoconf version requirements. * INSTALL: Regenerated. * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias. * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6] (__libc_pselect): Likewise. [BZ #14138] * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise. 2014-10-31 Torvald Riegel * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use correct barrier instruction. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier): Likewise. * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier): Likewise. 2014-10-30 Roland McGrath * include/ctype.h: Include first thing rather than after defining inlines. Instead, just use parens to defeat macro expansion of __isctype in its declaration. 2014-10-30 Joseph Myers * include/sys/uio.h (__libc_readv): Remove declaration. (__libc_writev): Likewise. * misc/readv.c (__libc_readv): Rename to __readv. (__readv): Do not define as alias. (readv): Define as alias of __readv. * misc/writev.c (__libc_writev): Rename to __writev. (__writev): Do not define as alias. (writev): Define as alias of __writev. * sysdeps/posix/readv.c (__libc_readv): Rename to __readv. (__readv): Do not define as alias. (readv): Define unconditionally as alias of __readv. * sysdeps/posix/writev.c (__libc_writev): Rename to __writev. (__writev): Do not define as alias. (writev): Define unconditionally as alias of __writev. * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv name. (writev): Do not define __libc_writev name. 2014-10-30 Roland McGrath * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const. (convert_charseq): New function, broken out of ... (use_from_charmap): ... here. Call it. (use_to_charmap): Use convert_charseq and free instead of duplicating its code with a variable-length stack struct. 2014-10-30 Joseph Myers * include/fcntl.h (__libc_creat): Remove declaration. * io/creat.c (__libc_creat): Rename to creat. (creat): Do not define as alias. * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias of creat instead of __libc_creat. * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename to creat. (creat): Do not define as alias. [__WORDSIZE == 64] (creat64): Define as alias of creat instead of __libc_creat. * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define __libc_creat name. * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat): Likewise. 2014-10-29 Carlos O'Donell * manual/llio.texi: Add comments discussing why write() may be considered MT-unsafe on Linux. 2014-10-28 Carlos O'Donell * dl-load.c (local_strdup): Remove. (expand_dynamic_string_token): Use __strdup. (decompose_rpath): Likewise. (_dl_map_object): Likewise. 2014-10-28 Joseph Myers [BZ #14132] * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases_internal): Do not declare. (__register_frame_info_table_bases_internal): Likewise. (__deregister_frame_info_bases_internal): Likewise. (__register_frame_info_bases): Declare and use hidden_proto before definition. Use hidden_def instead of INTDEF. (__register_frame_info_table_bases): Likewise. (__deregister_frame_info_bases): Likewise. (__register_frame_info): Do not use INTUSE. (__register_frame): Likewise. (__register_frame_info_table): Likewise. (__register_frame_table): Likewise. (__deregister_frame_info): Likewise. (__deregister_frame): Likewise. 2014-10-27 Gratian Crisan * sysdeps/unix/sysv/linux/arm/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do not undefine. [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI): Likewise. [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST): Likewise. 2014-10-27 Joseph Myers [BZ #14138] * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file. * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add syscall. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. 2014-10-27 Andreas Schwab [BZ #17501] * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix check for Slow_SSE4_2 feature bit. * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise. * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise. * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp): Likewise. Fix check for Fast_Unaligned_Load feature bit. 2014-10-24 Roland McGrath * configure.ac: Validate compiler version with a empirical test of __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping $CC -v output. * configure: Regenerated. * inet/htons.c (htons): Prototypify. * inet/htonl.c (htonl): Likewise. 2014-10-24 Wilco Dijkstra * string/strncat.c (strncat): Improve performance by using strlen. 2014-10-24 Wilco Dijkstra * string/strcat.c (strcat): Improve performance by using strlen/strcpy. 2014-10-24 Wilco Dijkstra * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag): Call libc_fetestexcept_aarch64. 2014-10-24 Wilco Dijkstra * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_aarch64. 2014-10-24 Wilco Dijkstra * sysdeps/aarch64/fpu/fegetround.c (fegetround): Call get_rounding_mode. 2014-10-24 Wilco Dijkstra * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Simplify logic. 2014-10-24 Wilco Dijkstra * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Simplify logic. 2014-10-24 Joseph Myers [BZ #14138] * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file. * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise. * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise. * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise. * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise. * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise. * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise. * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise. * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise. * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise. * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise. * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add syscall. (geteuid): Likewise. (getgid): Likewise. (getuid): Likewise. (getresgid): Likewise. (getresuid): Likewise. (getgroups): Likewise. * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise. (geteuid): Likewise. (getgid): Likewise. (getuid): Likewise. (getresgid): Likewise. (getresuid): Likewise. (getgroups): Likewise. * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise. (geteuid): Likewise. (getgid): Likewise. (getuid): Likewise. (getresgid): Likewise. (getresuid): Likewise. (getgroups): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid): Likewise. (geteuid): Likewise. (getgid): Likewise. (getuid): Likewise. (getresgid): Likewise. (getresuid): Likewise. (getgroups): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise. (geteuid): Likewise. (getgid): Likewise. (getuid): Likewise. (getresgid): Likewise. (getresuid): Likewise. (getgroups): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid): Likewise. (geteuid): Likewise. (getgid): Likewise. (getuid): Likewise. (getgroups): Likewise. [BZ #14138] * sysdeps/unix/sysv/linux/i386/chown.c: Remove file. * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise. * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file. * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise. * sysdeps/unix/sysv/linux/sh/chown.c: Likewise. * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise. * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add __chown. * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall. (lchown): Likewise. (fchown): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown): Likewise. (lchown): Likewise. (fchown): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise. (lchown): Likewise. (fchown): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown): Likewise. (lchown): Likewise. (fchown): Likewise. 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Simplify logic. 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag): Cleanup logic. 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag): Remove unused include. 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces. * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces. * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces. * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces. 2014-10-23 Carlos O'Donell Helge Deller [BZ #17508] * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT. Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12. Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32. 2014-10-23 Joseph Myers [BZ #14132] * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20): Remove macro definition. (__ashrdi3_v_glibc20): Likewise. (__lshrdi3_v_glibc20): Likewise. (__cmpdi2_v_glibc20): Likewise. (__ucmpdi2_v_glibc20): Likewise. [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise. [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise. [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise. [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise. [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise. [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise. 2014-10-22 Roland McGrath * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than old GNU extension [0] syntax. * nscd/nscd_helper.c (open_socket): Use a flexible array member and alloca rather than an array member with variable length. * nscd/netgroupcache.c (addgetnetgrentX): Likewise. * nscd/nscd.c (invalidate_db): New function, broken out of ... (parse_opt): ... here. Likewise use alloca there. Validate the -i argument before checking for rootness. (send_shutdown): New function, broken out of ... (parse_opt): ... here. 2014-10-22 Roland McGrath * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL macro to get at the _rt_local_ro field. [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro ([PIC] case) or _dl_hwcap ([!PIC] case). * sysdeps/arm/setjmp.S: Likewise. * config.h.in (ARM_PCREL_MOVW_OK): New macro. * sysdeps/arm/configure.ac: New check to define it. * sysdeps/arm/configure: Regenerated. * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include . (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros. (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__]. (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]: Use move/movt pair instead of a load. (LDST_GLOBAL): Macro removed. (LDR_GLOBAL): New macro replaces it. (LDR_HIDDEN): New macro. (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL. Use LDR_HIDDEN instead for __pointer_chk_guard_local. * setjmp/tst-setjmp-static.c: New file. * setjmp/Makefile (tests): Add it. (tests-static): New variable. 2014-10-22 Maciej W. Rozycki [BZ #17485] * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define. 2014-10-21 Joseph Myers [BZ #14132] * math/s_ldexpf.c (__ldexpf): Do not use INTDEF. 2014-10-21 Roland McGrath * nptl/version.c (__nptl_main): Call __libc_write, not __write. 2014-10-20 Roland McGrath * io/fts.c (dirent_not_directory): New function. (fts_build): Call it. 2014-10-20 Roland McGrath * nptl/version.c (__nptl_main): Use normal __write rather than INTERNAL_SYSCALL. (banner): Update copyright years. * nptl/pthread_rwlock_timedrdlock.c: #include before using gettimeofday. * nptl/pthread_rwlock_timedwrlock.c: Likewise. * nptl/pthread_cond_timedwait.c: Likewise. * nptl/pthread_mutex_timedlock.c: Likewise. * nptl/sem_timedwait.c: Likewise. * sysdeps/nptl/bits/libc-lock.h [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)] (__libc_lock_init_recursive): Return void, not 0. * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise. (__libc_rwlock_init): Likewise. * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise. 2014-10-20 Torvald Riegel [BZ #15215] * nptl/pthread_once.c (__pthread_once): Split out fast path to ... (__pthread_once_slow): ... here. * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file. * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file. 2014-10-20 Torvald Riegel [BZ #15215] * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE, __PTHREAD_ONCE_FORK_GEN_INCR): New. * sysdeps/nptl/fork.c (__libc_fork): Use them. * nptl/pthread_once.c (__pthread_once): Likewise. Update comments. 2014-10-20 Joseph Myers [BZ #14138] * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong name. (writev): Use __libc_writev as strong name. * sysdeps/unix/sysv/linux/readv.c: Remove file. * sysdeps/unix/sysv/linux/writev.c: Likewise. 2014-10-17 Roland McGrath * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed. * sysdeps/i386/nptl/tls.h (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed. [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros. * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros. * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]: Call SETUP_THREAD_SYSINFO instead of doing an assignment. * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]: Call CHECK_THREAD_SYSINFO instead of doing an assert. * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes on [__NR_futex]. * nptl/pthread_mutex_init.c (prio_inherit_missing): New function, broken out of ... (__pthread_mutex_init): ... here. Call it. * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Conditionalize PI cases on [__NR_futex]. * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise. * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise. * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise. * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions conditional on [SIGSETXID]. (sigcancel_handler): Make definition conditional on [SIGCANCEL]. (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it is defined. Likewise for SIGSETXID. * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread): Conditionalize definitions on [SIGSETXID]. (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise. * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL unblocking on [SIGCANCEL]. * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on [__NR_set_robust_list]. 2014-10-17 Siddhesh Poyarekar * string/strcoll_l.c (get_next_seq): Fix up formatting. (do_compare): Likewise. 2014-10-17 Leonhard Holz [BZ #15884] * string/strcoll_l.c: Don't include stdio.h. (coll_seq): Remove members idxarr and rulearr. (get_next_seq_cached): Remove function. (get_next_seq): Likewise. (get_next_seq_nocache): Rename to get_next_seq. (do_compare): Remove function. (do_compare_nocache): Rename to do_compare. (STRCOLL): Remove weight and rules cache. 2014-10-16 Roland McGrath * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ... * sysdeps/arm/sfp-machine.h: ... to here. * sysdeps/arm/Implies: Remove arm/soft-fp. 2014-10-14 Joseph Myers * conform/data/sys/utsname.h-data (*_t): Allow. * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define. [POSIX] (WEXITED): Do not expect constant. [POSIX] (WSTOPPED): Likewise. [POSIX] (WNOHANG): Likewise. [POSIX] (WNOWAIT): Likewise. [POSIX] (siginfo_t): Do not expect type or elements. [POSIX] (pid_t): Do not expect type. [POSIX] (signal.h): Do not allow header. [POSIX] (sys/resource.h): Likewise. [POSIX] (si_*): Do not allow pattern. [POSIX] (W*): Likewise. [POSIX] (P_*): Likewise. [POSIX] (BUS_*): Likewise. [POSIX] (CLD_*): Likewise. [POSIX] (FPE_*): Likewise. [POSIX] (ILL_*): Likewise. [POSIX] (POLL_*): Likewise. [POSIX] (SEGV_*): Likewise. [POSIX] (SI_*): Likewise. [POSIX] (TRAP_*): Likewise. * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New variable. 2014-10-14 Paul Pluzhnikov [BZ #12926] * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid infinite loop when __recvmsg returns 0. 2014-10-10 Joseph Myers * CANCEL-FCT-WAIVE: Remove file. * CANCEL-FILE-WAIVE: Likewise. [BZ #14132] * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def instead of INTVARDEF. (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure. * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def instead of INTVARDEF. (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure. * elf/dl-deps.c (expand_dst): Likewise. * elf/dl-load.c (_dl_dst_count): Likewise. (_dl_dst_substitute): Likewise. (decompose_rpath): Likewise. (_dl_init_paths): Likewise. (open_path): Likewise. (_dl_map_object): Likewise. * elf/rtld.c (dl_main): Likewise. (process_dl_audit): Likewise. (process_envvars): Likewise. * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal): Remove declaration. (__libc_enable_secure): Use rtld_hidden_proto. 2014-10-09 Kostya Serebryany * elf/dl-load.c (add_path): New function broken out of _dl_rtld_di_serinfo. (_dl_rtld_di_serinfo): Remove that nested function. Update call sites. 2014-10-09 Joseph Myers * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use parentheses around macro arguments. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise. [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise. [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise. * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise. [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise. [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise. * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise. (_FP_FRAC_SRS_1): Likewise. (_FP_FRAC_CLZ_1): Likewise. (_FP_MUL_MEAT_1_imm): Likewise. (_FP_MUL_MEAT_1_wide): Likewise. (_FP_MUL_MEAT_1_hard): Likewise. (_FP_SQRT_MEAT_1): Likewise. (_FP_FRAC_ASSEMBLE_1): Likewise. (_FP_FRAC_DISASSEMBLE_1): Likewise. * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise. (__FP_CLZ_2): Likewise. (_FP_MUL_MEAT_2_wide): Likewise. (_FP_MUL_MEAT_2_wide_3mul): Likewise. (_FP_MUL_MEAT_2_gmp): Likewise. (_FP_MUL_MEAT_2_120_240_double): Likewise. (_FP_SQRT_MEAT_2): Likewise. (_FP_FRAC_ASSEMBLE_2): Likewise. (_FP_FRAC_DISASSEMBLE_2): Likewise. * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise. (_FP_FRAC_CLZ_4): Likewise. (_FP_MUL_MEAT_4_wide): Likewise. (_FP_MUL_MEAT_4_gmp): Likewise. (_FP_SQRT_MEAT_4): Likewise. (_FP_FRAC_ASSEMBLE_4): Likewise. (_FP_FRAC_DISASSEMBLE_4): Likewise. * soft-fp/op-common.h (_FP_CMP): Likewise. (_FP_CMP_EQ): Likewise. (_FP_CMP_UNORD): Likewise. (_FP_TO_INT): Likewise. (_FP_FROM_INT): Likewise. [!__FP_CLZ] (__FP_CLZ): Likewise. (_FP_DIV_HELP_imm): Likewise. * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise. [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise. [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise. [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise. [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise. * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise. (FP_UNPACK_RAW_SP): Likewise. (FP_PACK_RAW_S): Likewise. (FP_PACK_RAW_SP): Likewise. (FP_UNPACK_S): Likewise. (FP_UNPACK_SP): Likewise. (FP_UNPACK_SEMIRAW_S): Likewise. (FP_UNPACK_SEMIRAW_SP): Likewise. (FP_PACK_S): Likewise. (FP_PACK_SP): Likewise. (FP_PACK_SEMIRAW_S): Likewise. (FP_PACK_SEMIRAW_SP): Likewise. (_FP_SQRT_MEAT_S): Likewise. (FP_CMP_S): Likewise. (FP_CMP_EQ_S): Likewise. (FP_CMP_UNORD_S): Likewise. (FP_TO_INT_S): Likewise. (FP_FROM_INT_S): Likewise. * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2. * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro. (FP_EX_INVALID_IMZ): Likewise. (FP_EX_INVALID_IMZ_FMA): Likewise. (FP_EX_INVALID_ISI): Likewise. (FP_EX_INVALID_ZDZ): Likewise. (FP_EX_INVALID_IDI): Likewise. (FP_EX_INVALID_SQRT): Likewise. (FP_EX_INVALID_CVI): Likewise. (FP_EX_INVALID_VC): Likewise. * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise "invalid" exceptions. (_FP_CHECK_SIGNAN_SEMIRAW): Likewise. (_FP_ADD_INTERNAL): Likewise. (_FP_MUL): Likewise. (_FP_FMA): Likewise. (_FP_DIV): Likewise. (_FP_CMP_CHECK_NAN): Likewise. (_FP_SQRT): Likewise. (_FP_TO_INT): Likewise. (FP_EXTEND): Likewise. 2014-10-09 Allan McRae * po/fr.po: Update French translation from translation project. 2014-10-09 Joseph Myers [BZ #14132] * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead of INTDEF. * include/stdlib.h (__cxa_atexit_internal): Remove declaration. (__cxa_atexit): Use libc_hidden_proto. [!NOT_IN_libc] (__cxa_atexit): Remove macro definition. [BZ #14132] * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove declaration. [!_ISOMAC] (__iswdigit_l_internal): Likewise. [!_ISOMAC] (__iswspace_l_internal): Likewise. [!_ISOMAC] (__iswxdigit_l_internal): Likewise. [!_ISOMAC] (__iswctype_internal): Likewise. * stdio-common/siglist.c (_sys_siglist_internal): Remove alias. * sysdeps/unix/syscalls.list (chown): Remove __chown_internal alias. (fcntl): Remove __fcntl_internal alias. * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove __connect_internal alias. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect): Likewise. * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro. * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check FP_DENORM_ZERO. (_FP_CHECK_FLUSH_ZERO): New macro. (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO. (_FP_CMP): Likewise. (_FP_CMP_EQ): Likewise. (_FP_TO_INT): Do not set inexact for subnormal arguments if FP_DENORM_ZERO. (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO. (FP_TRUNC): Likewise. * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is treated as invalid conversion, not as normal exponent. * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro. (_FP_CMP): Add extra argument EX. Call _FP_CMP_CHECK_NAN. (_FP_CMP_EQ): Likewise. (_FP_CMP_UNORD): Likewise. * soft-fp/double.h (FP_CMP_D): Add extra argument EX. (FP_CMP_EQ_D): Likewise. (FP_CMP_UNORD_D): Likewise. * soft-fp/extended.h (FP_CMP_E): Likewise. (FP_CMP_EQ_E): Likewise. (FP_CMP_UNORD_E): Likewise. * soft-fp/quad.h (FP_CMP_Q): Likewise. (FP_CMP_EQ_Q): Likewise. (FP_CMP_UNORD_Q): Likewise. * soft-fp/single.h (FP_CMP_S): Likewise. (FP_CMP_EQ_S): Likewise. (FP_CMP_UNORD_S): Likewise. * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D. * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S. * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q. * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D. * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S. * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q. * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D. * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S. * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q. * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D. * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S. * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q. * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call to FP_CMP_Q. * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to FP_CMP_Q. * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise. * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to FP_CMP_EQ_Q. * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to FP_CMP_Q. * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise. * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise. * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise. * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to FP_CMP_EQ_Q. * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to FP_CMP_Q. * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise. * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to FP_CMP_EQ_Q. * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to FP_CMP_Q. * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise. * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise. * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise. * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to FP_CMP_EQ_Q. * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces a subnormal result, set the underflow exception if trapping on underflow is enabled. * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro. (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS. [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and redefine to 0. * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define. * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise. * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise. * soft-fp/extendxftf2.c (__extendxftf2): Use FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE. * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro. * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS. (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or FP_HANDLE_EXCEPTIONS. * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS. (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or FP_HANDLE_EXCEPTIONS. * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS. (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or FP_HANDLE_EXCEPTIONS. * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS. (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or FP_HANDLE_EXCEPTIONS. 2014-10-08 Joseph Myers [BZ #14132] * sysdeps/unix/sysv/linux/include/sys/timex.h: New file. * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not use INTUSE. [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration. * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Remove alias. (__adjtimex): Define using libc_hidden_ver. * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)): Remove declaration. (ntp_gettime): Call __adjtimex directly. * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)): Remove declaration. (ntp_gettimex): Call __adjtimex directly. * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove __adjtimex_internal alias. 2014-10-08 Roland McGrath [BZ #17460] * nscd/nscd.c (more_help): Rewrite list of tables collection using xstrdup and asprintf. * nscd/nscd_conf.c: Remove local xstrdup declaration. 2014-10-08 Kostya Serebryany Roland McGrath * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ... (do_lookup_unique): ... local function 'enter' here; update callers. 2014-10-06 Joseph Myers * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition compat_symbol calls on [SHARED]. * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file. * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit): Remove. (setrlimit): Add setrlimit@GLIBC_2.0 alias. * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (oldsetrlimit): Remove. (setrlimit): Add setrlimit@GLIBC_2.0 alias. * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (lchown): New syscall entry. (oldsetrlimit): Remove. (setrlimit): Add setrlimit@GLIBC_2.0 alias. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (oldsetrlimit): Remove. (setrlimit): Add setrlimit@GLIBC_2.0 alias. [BZ #14138] * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file. * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise. * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise. * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise. * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall. (fchown): Likewise. * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise. (fchown): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown): Likewise. 2014-10-06 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file. * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr. * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post): Likewise. (__old_sem_post): Likewise. 2014-10-06 Chris Metcalf * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define INLINE_VSYSCALL, INTERNAL_VSYSCALL, and HAVE_CLOCK_GETTIME_VSYSCALL macros. * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday): Use INLINE_VSYSCALL macro. * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of __vdso_clock_gettime. * sysdeps/unix/sysv/linux/tile/init-first.c (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global. * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add __vdso_clock_gettime. * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code to set up frame more cleanly. * sysdeps/tile/memcmp.c: New file. * sysdeps/unix/sysv/linux/tile/sysconf.c: New file. * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro. * sysdeps/tile/tilegx/strcasestr.c: New file. * sysdeps/tile/tilegx/strnlen.c: New file. * sysdeps/tile/tilegx/strstr.c: New file. * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize. 2014-10-06 Arjun Shankar * nptl/tst-setuid3.c: Write errors to stdout. 2014-10-01 Kostya Serebryany * elf/dl-deps.c (preload): New functions broken out of _dl_map_object_deps. (_dl_map_object_deps): Remove a nested function. Update call sites. 2014-10-01 Joseph Myers [BZ #14138] * sysdeps/unix/sysv/linux/execve.c: Remove file. * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall. 2014-10-01 Steve Ellcey * sysdeps/mips/strcmp.S: New. 2014-09-30 Joseph Myers [BZ #14138] * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall. (linkat): Likewise. (mkdirat): Likewise. (readlinkat): Likewise. (renameat): Likewise. (symlinkat): Likewise. (unlinkat): Likewise. * sysdeps/unix/sysv/linux/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/linkat.c: Likewise. * sysdeps/unix/sysv/linux/mkdirat.c: Likewise. * sysdeps/unix/sysv/linux/readlinkat.c: Likewise. * sysdeps/unix/sysv/linux/renameat.c: Likewise. * sysdeps/unix/sysv/linux/symlinkat.c: Likewise. * sysdeps/unix/sysv/linux/unlinkat.c: Likewise. 2014-09-30 Will Newton * math/math.h: Define long double math functions if _LIBC_TEST is defined. * stdlib/tst-strtod-round.c: Define _LIBC_TEST. * localedata/Makefile: Move assignment to tests-special into an ifdef testing run-built-tests. * timezone/Makefile: Likewise. 2014-09-29 Joseph Myers * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script with $(BASH) not $(SHELL). 2014-09-29 Carlos O'Donell Matthew LeGendre [BZ #17411] * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for l_reloc_result. 2014-09-29 Kostya Serebryany * stdio-common/printf_fp.c (hack_digit): New function, broken out of ... (__printf_fp): ... local function here. Update call sites. hack_digit now takes an additional parameter that is a pointer to a struct of the referenced locals. Those locals moved inside the struct and references updated. 2014-09-29 H.J. Lu * aclocal.m4: Require autoconf 2.69. * configure: Regenerated. * sysdeps/aarch64/configure: Likewise. * sysdeps/alpha/configure: Likewise. * sysdeps/arm/armv7/configure: Likewise. * sysdeps/arm/configure: Likewise. * sysdeps/ia64/configure: Likewise. * sysdeps/mach/configure: Likewise. * sysdeps/mips/configure: Likewise. * sysdeps/s390/configure: Likewise. * sysdeps/unix/sysv/linux/mips/configure: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise. * sysdeps/alpha/configure.ac: Avoid empty lines at the end of file. * sysdeps/ia64/configure.ac: Likewise. 2014-09-26 Joseph Myers * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not specify symbol version for ld.so. Do not include entry for libpthread. * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise. [BZ #14171] * Makeconfig [$(build-shared) = yes] ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in makefiles. [$(build-shared) = yes && $(soversions.mk-done) = t] ($(common-objpfx)gnu/lib-names.h): Remove rule. [$(build-shared) = yes && $(soversions.mk-done) = t] ($(common-objpfx)gnu/lib-names.stmp): Likewise. Split and moved to Makerules. [$(build-shared) = yes && $(soversions.mk-done) = t] (before-compile): Don't append $(common-objpfx)gnu/lib-names.h here. [$(build-shared) = yes && $(soversions.mk-done) = t] (common-generated): Don't append gnu/lib-names.h and gnu/lib-names.stmp here. * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t] (lib-names-h-abi): New variable. [$(build-shared) = yes && $(soversions.mk-done) = t] (lib-names-stmp-abi): Likewise. [$(build-shared) = yes && $(soversions.mk-done) = t && abi-variants] (before-compile): Append $(common-objpfx)$(lib-names-h-abi). [$(build-shared) = yes && $(soversions.mk-done) = t && abi-variants] (common-generated): Append gnu/lib-names.h. [$(build-shared) = yes && $(soversions.mk-done) = t && abi-variants] (install-others-nosubdir): Depend on $(inst_includedir)/$(lib-names-h-abi). [$(build-shared) = yes && $(soversions.mk-done) = t && abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule. [$(build-shared) = yes && $(soversions.mk-done) = t] ($(common-objpfx)$(lib-names-h-abi)): New rule. [$(build-shared) = yes && $(soversions.mk-done) = t] ($(common-objpfx)$(lib-names-stmp-abi)): Likewise. [$(build-shared) = yes && $(soversions.mk-done) = t] (common-generated): Append $(lib-names-h-abi) and $(lib-names-stmp-abi). * scripts/lib-names.awk: Do not handle multi being set. * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname): Remove variable. (abi-lp64_be-ld-soname): Likewise. * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname): Likewise. (abi-hard-ld-soname): Likewise. * sysdeps/unix/sysv/linux/i386/shlib-versions: New file. * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname): Remove variable. (abi-o32_hard-ld-soname): Likewise. (abi-o32_soft_2008-ld-soname): Likewise. (abi-o32_hard_2008-ld-soname): Likewise. (abi-n32_soft-ld-soname): Likewise. (abi-n32_hard-ld-soname): Likewise. (abi-n32_soft_2008-ld-soname): Likewise. (abi-n32_hard_2008-ld-soname): Likewise. (abi-n64_soft-ld-soname): Likewise. (abi-n64_hard-ld-soname): Likewise. (abi-n64_soft_2008-ld-soname): Likewise. (abi-n64_hard_2008-ld-soname): Likewise. * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname): Likewise. (abi-64-v2-ld-soname): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add ld.so entries. * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove variable. * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so entry. * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove variable. (abi-64-ld-soname): Likewise. (abi-x32-ld-soname): Likewise. * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so entry. * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise. 2014-09-23 Joseph Myers [BZ #14138] * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file. * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise. * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise. * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise. * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add syscall entry for GLIBC_2.2 symbol version. * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (setrlimit): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit): Likewise. 2014-09-23 Will Newton * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for _LINUX_ARM_SYSDEP_H include guard too. * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove define. 2014-09-20 Rasmus Villemoes * sysdeps/unix/sysv/linux/eventfd.c: Make first argument unsigned. * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise. 2014-09-20 Ondřej Bílka * socket/recvmmsg.c (recvmmsg): Drop const argument. * socket/sys/socket.h: Likewise * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise. 2014-09-19 Andreas Krebbel * stdlib/longlong.h: Add __udiv_w_sdiv prototype. 2014-09-17 Arjun Shankar * time/tst-ftime.c: New test. * time/Makefile (tests): Add tst-ftime. 2014-09-17 Joseph Myers * soft-fp/extended.h: Fix comment formatting. * soft-fp/op-1.h: Likewise. * soft-fp/op-2.h: Likewise. * soft-fp/op-4.h: Likewise. * soft-fp/op-8.h: Likewise. * soft-fp/op-common.h: Likewise. * soft-fp/soft-fp.h: Likewise. * soft-fp/op-common.h (_FP_TO_INT): Correct formatting. 2014-09-16 Joseph Myers [BZ #6652] * Makeconfig (soversions-default-setname): Remove variable. ($(common-objpfx)soversions.i): Don't pass default_setname to soversions.awk. * Makerules ($(common-objpfx)abi-versions.h): Don't pass oldest_abi to abi-versions.awk. * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine. * config.make.in (oldest-abi): Remove variable. * configure.ac (--enable-oldest-abi): Remove configure option. * configure: Regenerated. * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional text. * scripts/abi-versions.awk: Do not handle oldest_abi variable. * scripts/soversions.awk: Do not handle default_setname variable. * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi variable. * sysdeps/mach/hurd/configure: Regenerated. * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi variable. * sysdeps/unix/sysv/linux/configure: Regenerated. 2014-09-16 Siddhesh Poyarekar * elf/Makefile (CFLAGS-interp.c): Remove. ($(elf-objpfx)runtime-linker.h): Generate header with linker path string. * elf/interp.c: Include generated runtime-linker.h * Makerules (lib%.so): Don't include $(+interp) in prerequisites. * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc. * dlfcn/eval.c: Remove file. * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS macros. [BZ #17266] * misc/sys/cdefs.h: Define __extern_always_inline for clang 4.2 and newer. [BZ #17370] * libio/wfileops.c (do_ftell_wide): Free OUT on error path. 2014-09-16 Siddhesh Poyarekar Jakub Jelinek [BZ #17266] * libio/stdio.h: Check definition of __fortify_function instead of __extern_always_inline to include bits/stdio2.h. * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also check if __extern_always_inline is defined. [__USE_MISC || __USE_XOPEN]: Likewise. [__USE_ISOC99] Likewise. * misc/sys/cdefs.h (__fortify_function): Define only if __extern_always_inline is defined. [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining __extern_always_inline and __extern_inline only for g++-4.3 and newer or a compatible gcc. 2014-09-15 Andreas Schwab [BZ #17371] * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix last change to handle zero prefix length. 2014-09-15 Siddhesh Poyarekar * sysdeps/posix/sysconf.c (__sysconf): Return -1 for _SC_REGEX_VERSION. * posix/getconf.c (vars): Add _POSIX_IPV6 and _POSIX_RAW_SOCKETS. 2014-09-13 Allan McRae * po/ru.po: Update Russian translation from translation project. 2014-09-12 Roland McGrath * locale/programs/locale.c (show_locale_vars): Inline local function into its sole call site. Clean up some style nits. (print_item): New function, broken out of ... (show_info): ... local function here. Clean up style nits. * locale/programs/ld-ctype.c (set_one_default): New function, broken out of ... (set_class_defaults): ... local function set_default here. Define set_default as a macro locally to pass constant parameters. (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT, rather than a shared local. * stdlib/rpmatch.c (try): New function, broken out of ... (rpmatch): ... local function here. Also, prototypify definition. 2014-09-12 Joseph Myers * scripts/soversions.awk: Do not handle configuration names. * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu, vendor and os variables to soversions.awk. * configure.ac: Do not modify gnu-* host_os. * configure: Regenerated * shlib-versions: Remove first column with configuration names. * nptl/shlib-versions: Likewise. * nptl_db/shlib-versions: Likewise. * sysdeps/hppa/shlib-versions: Likewise. * sysdeps/m68k/shlib-versions: Likewise. * sysdeps/mach/hurd/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case. * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerated. * config.h.in (HAVE_ELFV2_ABI): New macro undefine. * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Condition symbol version definitions on [HAVE_ELFV2_ABI]. * shlib-versions: Remove OS-specific entries. Moved to files in sysdeps. * sysdeps/mach/hurd/shlib-versions: New file. * sysdeps/unix/sysv/linux/shlib-versions: Likewise. * nptl/shlib-versions: Remove architecture-specific entries. Moved to files in sysdeps. * shlib-versions: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New file. * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise. * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro. (UDP_NO_CHECK6_RX): Likewise. 2014-09-12 Siddhesh Poyarekar * sysdeps/posix/sysconf.c (__sysconf): Spell _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly. 2014-08-12 Florian Weimer * iconv/gconv_open.c (__gconv_open): Remove transliteration module loading. * iconv/Versions (__gconv_transliterate): Export for use from gconv modules. * iconv/gconv.h (__GCONV_TRANSLIT): New flag. (struct __gconv_trans_data, __gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct, __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type definitions. (struct __gconv_step_data): Remove __trans member. (__gconv_transliterate): Declaration moved from gconv_int.h. No longer hidden. Remove unused trans_data argument. * iconv/gconv_int.h (struct trans_struct): Remove definition. (__gconv_translit_find): Remove declaration. (__gconv_transliterate): Declaration moved to gconv.h. Add hidden prototype. * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup. * iconv/gconv_trans.c (__gconv_transliterate): Remove unused trans_data argument. Add hidden definition. (__gconv_translit_find): Remove. * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call __gconv_transliterate directly if __GCONV_TRANSLIT is set. * iconv/skeleton.c: Remove transliteration initialization. * libio/fileops.c (_IO_new_file_fopen): Adjust struct __gconv_step_data initialization. * libio/iofwide.c (__libio_translit_): Remove. (_IO_fwide): Adjust struct __gconv_step_data initialization. * wcsmbs/btowc.c (__btowc): Likewise. * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise. * wcsmbs/mbrtowc.c (__mbrtowc): Likewise. * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise. * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise. * wcsmbs/wcrtomb.c (__wcrtomb): Likewise. * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise. * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise. * wcsmbs/wctob.c (wctob): Likewise. 2014-09-12 Siddhesh Poyarekar [BZ #16194] * sysdeps/x86/tst-xmmymm.sh: Rename file to... * sysdeps/x86/tst-ld-sse-use.sh: ... this. Check for zmm register usage. * sysdeps/x86/Makefile: Adjust. 2014-09-11 Kostya Serebryany Roland McGrath * locale/weight.h: Add include guard. (findidx): Make static rather than auto; take new parameters TABLE, INDIRECT, and EXTRA instead of getting them as outer locals. * locale/weightwc.h: Likewise. * posix/fnmatch_loop.c (FCT): Change type of EXTRA from int32_t to wint_t. Don't include either header inside the function. Call FINDIDX rather than findidx, and pass new arguments. #undef FINDIDX at the end of the file. * posix/fnmatch.c [_LIBC]: #include and define FINDIDX before including fnmatch_loop.c for the non-wide version. [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around #include , and define FINDIDX to findidxwc for the wide version. * posix/regcomp.c [_LIBC]: #include . (build_equiv_class) [_LIBC]: Don't #include it inside the function. Pass new arguments to findidx. * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include . [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]: Don't #include it inside the function. Pass new arguments to findidx. * posix/regex_internal.h [!NOT_IN_libc] [_LIBC]: #include . (re_string_elem_size_at): Don't #include it inside the function. Pass new arguments to findidx. * string/strcoll_l.c: #include WEIGHT_H at top level. (get_next_seq): Don't #include it inside the function. Pass new arguments to findidx. (get_next_seq_nocache): Likewise. * string/strxfrm_l.c: #include WEIGHT_H at top level. (STRXFRM): Don't #include it inside the function. Pass new arguments to findidx. 2014-09-11 Florian Weimer [BZ #17344] * malloc/malloc.c (unlink): Turn asserts into a call to malloc_printerr. 2014-09-11 Tim Lammens [BZ #17370] * libio/wfileops (do_ftell_wide): Free OUT. 2014-09-10 Chris Metcalf * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file. 2014-09-10 Siddhesh Poyarekar [BZ #17363] * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next group if the current group is empty. 2014-09-10 Adhemerval Zanella * benchtests/bench-memset.c (test_main): Add more test from size from 32 to 512 bytes. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add POWER8 memset object. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations. * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8 implementation. * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset): Likewise. * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file: multiarch POWER8 memset optimization. * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized POWER8 memset optimization. * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Remove bzero multiarch objects. * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file. * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]: Remove define. [__bzero]: Redefine to specific name. * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise. * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove define. * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise. * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise. 2014-09-10 Florian Weimer * Makeconfig (gccwarn-c): Turn implicit-function-declaration warnings into errors. * stdlib/tst-tls-atexit-lib.c: Include , for the __cxa_thread_atexit_impl prototype. 2014-09-09 Steve Ellcey * sysdeps/mips/preconfigure: Put code inside mips* case statement. Fix capitalization of error message. 2014-09-09 Steve Ellcey * sysdeps/mips/preconfigure: Modify ABI tests. 2014-09-07 Carlos O'Donell * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file. 2014-09-07 Roland McGrath Carlos O'Donell * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed. * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ... * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ... * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ... * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here. * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ... * sysdeps/hppa/nptl/bits/semaphore.h: ... here. * sysdeps/unix/sysv/linux/hppa/clone.S: Include . Deconditionalize the code that was previously under [RESET_PID]. * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed. * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file. * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed. * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't include sysdep.h. 2014-09-08 Allan McRae * version.h (RELEASE): Set to "development". (VERSION): Set to "2.20.90" 2014-09-07 Allan McRae [BZ #17354] * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED macro for handling signed relocations. 2014-09-03 Florian Weimer [BZ #17325] * iconvdata/ibm1364.c (BODY): Fix check for sentinel. * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with assert. * iconvdata/ibm933.c (BODY): Fix check for sentinel. * iconvdata/ibm935.c (BODY): Likewise. * iconvdata/ibm937.c (BODY): Likewise. * iconvdata/ibm939.c (BODY): Likewise. * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with assert. * iconvdata/Makefile (iconv-test.out): Pass module list to test script. * iconvdata/run-iconv-test.sh: New test loop for checking for decoder crashers. 2014-09-02 Khem Raj * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add libm_hidden_ver. 2014-09-01 Allan McRae * po/eo.po: Update Esperanto translation from translation project. * po/ca.po: Update Catalan translation from translation project. 2014-08-28 Samuel Thibault * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around __proc_dostop call. 2014-08-27 Mark Wielaard [BZ #17319] * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL to call set_thread_area instead of hand written asm. (__NR_set_thread_area): Removed define. (TLS_FLAG_WRITABLE): Likewise. (__ASSUME_SET_THREAD_AREA): Remove check. (TLS_EBX_ARG): Remove define. (TLS_LOAD_EBX): Likewise. 2014-08-27 Samuel Thibault Simplify atomicity of socket creation in bind. * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of looking up the name after linking the file. 2014-08-27 Allan McRae * sysdeps/i386/fpu/libm-test-ulps: Update ULPs. 2014-08-26 Florian Weimer [BZ #17187] * iconv/gconv_trans.c (struct known_trans, search_tree, lock, trans_compare, open_translit, __gconv_translit_find): Remove module loading code. 2014-08-26 Allan McRae * po/vi.po: Update Vietnamese translation from translation project. * po/uk.po: Update Ukrainian translation from translation project. * po/fr.po: Update French translation from translation project. * po/ru.po: Update Russian translation from translation project. * po/pl.po: Update Polish translation from translation project. * po/cs.po: Update Czech translation from translation project. * po/de.po: Update German translation from translation project. * po/bg.po: Update Bulgarian translation from translation project. * po/sv.po: Update Sweedish translation from translation project. * po/nl.po: Update Dutch translation from translation project. * po/es.po: Update Spanish translation from translation project. 2014-08-21 Siddhesh Poyarekar * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove. * catgets/Makefile (CPPFLAGS-gencat): Remove. * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise. (CPPFLAGS-iconvconfig): Likewise. * timezone/Makefile (CPPFLAGS-zic): Likewise. * include/libc-symbols.h: Remove unnecessary check for NOT_IN_libc. * nptl/pthreadP.h: Likewise. * sysdeps/aarch64/setjmp.S: Likewise. * sysdeps/alpha/setjmp.S: Likewise. * sysdeps/arm/sysdep.h: Likewise. * sysdeps/i386/setjmp.S: Likewise. * sysdeps/m68k/setjmp.c: Likewise. * sysdeps/posix/getcwd.c: Likewise. * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise. * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise. * sysdeps/s390/s390-32/setjmp.S: Likewise. * sysdeps/s390/s390-64/setjmp.S: Likewise. * sysdeps/sh/sh3/setjmp.S: Likewise. * sysdeps/sh/sh4/setjmp.S: Likewise. * sysdeps/unix/alpha/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. * sysdeps/x86_64/setjmp.S: Likewise. 2014-08-13 Joseph Myers [BZ #17263] * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include . (__get_clockfreq): Use uint64_t instead of hp_timing_t in INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call. 2014-08-13 Siddhesh Poyarekar * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment. [BZ #17262] * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__ and __x86_64__ when disabling x87 inline functions. 2014-08-12 H.J. Lu [BZ #17259] * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid asm statement with __cpuid_count. 2014-08-12 Mike Frysinger * configure.ac: Change __ehdr_start code to dereference the struct. Run readelf on the output to look for relocations. * configure: Regenerated. 2014-08-12 Joseph Myers [BZ #17261] * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change value to 0. (__fe_nonieee_env): Define as an alias for __fe_dfl_env. 2014-08-12 Roland McGrath * NEWS: Mention x86-64 ld.so use of Intel MPX instructions. 2014-08-12 Bernard Ogden [BZ #16892] * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq. 2014-08-12 Sean Anderson * malloc/malloc.c: Fix typo in comment. 2014-08-09 Allan McRae * Regenerate libc.po. 2014-08-08 Mike Frysinger * intl/tst-gettext2.sh: Check every lang file for creation. 2014-08-07 Wilco Dijkstra * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_noex_aarch64_ctx): New function. 2014-08-07 Wilco Dijkstra * sysdeps/arm/armv6/strcpy.S (strcpy): Fix performance issue in misaligned cases. 2014-08-05 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize): Move definition from termios.h. (struct termio): Likewise. (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS, TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP, N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964, N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI): Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize): Move definition to ioctl-types.h (struct termio): Likewise. (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS, TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP, N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964, N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI): Likewise. 2014-08-05 Richard Henderson * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise exceptions. * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines): Add fraiseexcpt. * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Use __feraiseexcept. * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept): Protect libm symbols with IS_IN_libm. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file. 2014-08-04 Bernard Ogden * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file. 2014-08-04 Will Newton * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove file. 2014-08-04 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel variants for each function. 2014-08-04 Roland McGrath * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents appended ... * sysdeps/unix/sysv/linux/ia64/Makefile: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents appended ... * sysdeps/unix/sysv/linux/ia64/Versions: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ... * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ... * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ... * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ... * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ... * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ... * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ... * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ... * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ... * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here. Update #include. * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ... * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here. 2014-08-04 Roland McGrath * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ... * sysdeps/ia64/nptl/bits/semaphore.h: ... here. * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ... * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here. 2014-08-04 Roland McGrath * nptl/sysdeps/pthread/createthread.c: Include . * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro. * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro. * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed. 2014-08-04 Roland McGrath * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ... * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here. (__libc_vfork): Define function under this name. (__vfork): Define as an alias. * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file. * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed. 2014-08-04 Roland McGrath * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code that was previously under [RESET_PID]. * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed. 2014-08-04 Andreas Schwab * sysdeps/ieee754/ldbl-96/s_fma.c: Include . 2014-08-03 Mike Frysinger * stdlib/tst-setcontext.c (test_stack): Fix coding style. (main): Likewise. 2014-08-01 Roland McGrath * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed. 2014-08-01 Richard Henderon * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before feclearexcept; use math_opt_barrier instead of open-coded asm; fix typo in exact zero test. * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise. * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise. * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise. 2014-08-01 Roland McGrath * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE) (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros... * sysdeps/arm/sysdep.h: ... here. [!__ASSEMBLER__]: Include . 2014-08-01 Siddhesh Poyarekar * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro. (HAVE_WCTYPE_H): Likewise. (HAVE_ISWCTYPE): Likewise. (ENABLE_NLS): Likewise. * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib. * posix/regex_internal.c: Check if DEBUG is defined and is set. * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro. (HAVE_MBSRTOWCS): Likewise. * posix/fnmatch.c: Include string.h unconditionally. 2014-08-01 Stefan Liebler * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change reversal. 2014-07-31 Roland McGrath * sysdeps/generic/safe-fatal.h: New file. * sysdeps/unix/sysv/linux/safe-fatal.h: New file. * nptl/forward.c: Include it. (__pthread_unwind): Use __safe_fatal as default action, rather than a bogus use of INTERNAL_SYSCALL that could never work. * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0. * configure.ac (libc_cv_builtin_trap): New test. * configure: Regenerated. * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP] (ABORT_INSTRUCTION): Define using __builtin_trap. * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ... * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file. * sysdeps/nptl/nptl-signals.h: New file. * nptl/pthreadP.h: Include . 2014-07-31 Stefan Liebler * sysdeps/s390/s390-64/utf16-utf32-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf16-z9.c (ONE_DIRECTION): Define. * sysdeps/s390/s390-64/utf8-utf32-z9.c (ONE_DIRECTION): Define. 2014-07-31 Stefan Liebler * sysdeps/s390/Makefile: Delete file. * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp. * sysdeps/s390/__longjmp.c: Delete file. * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf): Remove fields __flags and __reserved. * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c and add versioning. * sysdeps/s390/rtld-__longjmp.c: Delete file. * sysdeps/s390/rtld-global-offsets.sym: Likewise. * sysdeps/s390/rtld-setjmp.S: Likewise. * sysdeps/s390/s390-32/__longjmp-common.c: Move to ... * sysdeps/s390/s390-32/__longjmp.c: ... here. * sysdeps/s390/s390-32/setjmp-common.S: Move to ... * sysdeps/s390/s390-32/setjmp.S: ... here. Add versioning. (__sigsetjmp): Remove setting __flags field. * sysdeps/s390/s390-64/__longjmp-common.c:Move to ... * sysdeps/s390/s390-64/__longjmp.c: ... here. * sysdeps/s390/s390-64/setjmp-common.S: Move to ... * sysdeps/s390/s390-64/setjmp.S: ... here. Add versioning. (__sigsetjmp): Remove setting __flags field. * sysdeps/s390/setjmp.S: Delete file. * sysdeps/s390/sigjmp.c: Likewise. * sysdeps/s390/v1-longjmp.c: Likewise. * sysdeps/s390/v1-setjmp.h: Likewise. * sysdeps/s390/v1-sigjmp.c: Likewise. * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Remove v1-longjmp_chk. * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file. * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Include debug/longjmp_chk.c and add versioning. * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Include nptl/pt-longjmp.c and add versioning. * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file. * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Include __longjmp.c. * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S: Move to ... * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here. (__getcontext): Remove setting __flags field. Add versioning. * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Don't restore upper high grps. * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise. (__swapcontext): Remove setting uc_flags field. * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Delete file. * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Include __longjmp.c. * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S: Move to ... * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here. (__getcontext): Remove setting __flags field. Add versioning. * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: (__swapcontext): Remove setting uc_flags field. * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file. * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext): Remove fields uc_high_gprs and __reserved. * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: New file with reverted content. * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file. * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Regenerated. * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Regenerated. 2014-07-31 Andreas Schwab * config.h.in (HAVE_IFUNC): Define to 0. * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not definedness. 2014-07-30 Ling Ma * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add memmove-avx-unaligned, memcpy-avx-unaligned and mempcpy-avx-unaligned. * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add tests for AVX memcpy functions. * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy. * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX memcpy_chk. * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove. * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX memmove_chk. * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy. * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX mempcpy_chk. * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file. * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file. * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file. 2013-07-29 Adhemerval Zanella [BZ #17213] * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for powerpc64le. 2014-07-29 Jeff Layton [BZ #16839] * manual/llio.texi: Add section about open file description locks. * manual/examples/ofdlocks.c: Example of open file description lock usage. * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK, F_OFD_SETLK, and F_OFD_SETLKW. 2014-07-23 Allan McRae * po/es.po: Update Spanish translation from translation project. 2014-07-18 Andreas Schwab * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed. 2014-07-17 Maciej W. Rozycki [BZ #17078] * sysdeps/arm/dl-machine.h (elf_machine_rela) [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation. (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries. 2014-07-17 Joseph Myers [BZ #17088] * math/fesetenv.c (__fesetenv) [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV. * math/feupdateenv.c (__feupdateenv) [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise. * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file. * sysdeps/unix/sysv/linux/kernel-features.h [__s390__] (__ASSUME_SOCKETCALL): Do not define. * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file. * sysdeps/unix/sysv/linux/kernel-features.h [__sh__] (__ASSUME_SOCKETCALL): Do not define. (__ASSUME_ST_INO_64_BIT): Define unconditionally. [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__] (__ASSUME_ACCEPT4_SYSCALL): Do not define. [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__] (__ASSUME_RECVMMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__] (__ASSUME_SENDMMSG_SYSCALL): Likewise. [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise. * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file. * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__] (__ASSUME_SOCKETCALL): Do not define. (__ASSUME_IPC64): Define unconditionally. [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define. [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__] (__ASSUME_RECVMMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__] (__ASSUME_SENDMMSG_SYSCALL): Likewise. [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise. * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file. * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__] (__ASSUME_SOCKETCALL): Do not define. (__ASSUME_SET_ROBUST_LIST): Define unconditionally. (__ASSUME_FUTEX_LOCK_PI): Likewise. [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define. [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise. (__ASSUME_REQUEUE_PI): Define unconditionally. [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__] (__ASSUME_RECVMMSG_SYSCALL): Do not define. [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__] (__ASSUME_SENDMMSG_SYSCALL): Likewise. [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise. * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file. * sysdeps/unix/sysv/linux/kernel-features.h [__i386__] (__ASSUME_SOCKETCALL): Do not define. [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__] (__ASSUME_RECVMMSG_SYSCALL): Likewise. [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__] (__ASSUME_SENDMMSG_SYSCALL): Likewise. [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise. * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file. * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__] (__ASSUME_ACCEPT4_SYSCALL): Do not define. [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__] (__ASSUME_RECVMMSG_SYSCALL): Likewise. [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__] (__ASSUME_SENDMMSG_SYSCALL): Likewise. [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_GETCPU_SYSCALL): Likewise. * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro. * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR. Remove cases for individual architectures. * sysdeps/gnu/configure: Regenerated. * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use LIBC_SLIBDIR_RTLDDIR. * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated. * sysdeps/unix/sysv/linux/mips/configure.ac: Use LIBC_SLIBDIR_RTLDDIR. * sysdeps/unix/sysv/linux/mips/configure: Regenerated. * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use LIBC_SLIBDIR_RTLDDIR. * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerated. * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file. * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated file. * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated file. * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file. * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file. * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file. * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate. * sysdeps/aarch64/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here. * sysdeps/alpha/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here. * sysdeps/arm/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here. * sysdeps/hppa/shlib-versions: Move all contents except for libgcc_s entry to ... * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here. Merge in entry from ... * sysdeps/hppa/nptl/shlib-versions: ... here. Remove file. * sysdeps/ia64/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here. Merge in entry from ... * sysdeps/ia64/nptl/shlib-versions: ... here. Remove file. * sysdeps/m68k/coldfire/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here. * sysdeps/microblaze/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here. * sysdeps/mips/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here. Merge in entry from ... * sysdeps/mips/nptl/shlib-versions: ... here. Remove file. * sysdeps/tile/shlib-versions: Move to ... * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here. * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry from ... * sysdeps/x86_64/64/shlib-versions: ... here. Remove file. * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in entry from ... * sysdeps/x86_64/x32/shlib-versions: ... here. Remove file. 2014-07-17 Will Newton * sysdeps/arm/bits/atomic.h (__arch_compare_and_exchange_bool_8_int): Evaluate to zero. (__arch_compare_and_exchange_bool_16_int): Likewise. (__arch_compare_and_exchange_bool_64_int): Likewise. * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc into an #else block. 2014-07-16 Roland McGrath * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not just Linux configurations. Test empirically that the compiler sets __ARM_EABI__, rather than using the tuple to decide. * sysdeps/arm/preconfigure: Regenerated. * sysdeps/unix/sysv/linux/arm/configure: File removed. * sysdeps/unix/sysv/linux/arm/configure.ac: File removed, contents appended ... * sysdeps/arm/configure.ac: ... here. * sysdeps/arm/configure: Regenerated. 2014-07-15 Roland McGrath * nptl/pthread_kill.c: New file. * nptl/pthread_sigmask.c: New file. * nptl/pthread_sigqueue.c: New file. * sysdeps/nptl/lowlevellock.h: New file. * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file. * sysdeps/nptl/lowlevellock-futex.h: New file. * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax): Remove dead declarations. 2014-07-14 H.J. Lu * config.h.in (HAVE_AVX2_SUPPORT): New #undef. * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and config-cflags-avx2. * sysdeps/x86_64/configure.ac: Likewise. * sysdeps/i386/configure: Regenerated. * sysdeps/x86_64/configure: Likewise. * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add memset-avx2 only if config-cflags-avx2 is yes. * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is defined. * sysdeps/x86_64/multiarch/memset.S: Define multiple versions only if HAVE_AVX2_SUPPORT is defined. * sysdeps/x86_64/multiarch/memset_chk.S: Likewise. 2014-07-14 Alan Modra [BZ #17153] * elf/elf.h (DT_PPC64_NUM): Correct value. * NEWS: Add to fixed bug list. 2014-07-13 Jim Meyering [BZ 17150] regex: don't deref NULL upon heap allocation failure * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree failure in one more place. To trigger the segfault, configure grep -with-included-regex, build it, and run these commands: ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ ) 2014-07-13 Andreas Schwab * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update. 2014-07-11 Richard Henderson * sysdeps/aarch64/libm-test-ulps: Update. 2014-07-10 Florian Weimer [BZ #17135] * nptl/pthreadP.h (__nptl_setxid_error): Declare function. * nptl/allocatestack.c (__nptl_setxid_error): New function. (__nptl_setxid): Initialize error member. Call __nptl_setxid_error. * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error. * nptl/descr.h (struct xid_command): Add error member. * nptl/tst-setuid3.c: New file. * nptl/Makefile (tests): Add it. 2014-07-10 Adhemerval Zanella * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock): New define. (__lll_trylock): Use __lll_base_trylock. (__lll_cond_trylock): Likewise. 2014-07-10 Roland McGrath * nptl/pthread_create.c (start_thread): Use atomic_or and lll_futex_wake directly rather than lll_robust_dead. * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h (lll_robust_dead): Macro removed. * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use atomic_compare_and_exchange_val_acq directly rather than lll_robust_trylock. * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h (__lll_robust_trylock, lll_robust_trylock): Removed. * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise. 2014-07-02 Florian Weimer * manual/locale.texi (Locale Names): New section documenting locale name syntax. Adjust menu and node chaining accordingly. (Choosing Locale): Reference Locale Names, Locale Categories. Mention setting LC_ALL=C. Reflect that name syntax is now documented. (Locale Categories): New section title. Reference Locale Names. LC_ALL is an environment variable, but not a category. (Setting the Locale): Remove "locale -a" invocation and LOCPATH description, now in Locale Name. Reference that section. Locale name syntax is now documented. 2014-07-02 Florian Weimer [BZ #17137] * locale/findlocale.c (name_present, valid_locale_name): New functions. (_nl_find_locale): Use the loc_name variable to store name candidates. Call name_present and valid_locale_name to check and validate locale names. Return an error if the locale is invalid. 2014-07-02 Florian Weimer * locale/setlocale.c (setlocale): Use strdup for allocating composite name copy. 2014-07-10 Siddhesh Poyarekar Sync up with gnulib. * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H. [!_LIBC && ENABLE_NLS]: Include gettext.h. [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF and _GL_ARG_NONNULL. [USE_UNLOCKED_IO]: Include unlocked-io.h. [!_LIBC]: Include code for Windows and Cygwin. [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]: Include prototype for int strerror_r. [!_LIBC] (is_open): New function. (flush_stdout): New function. (print_errno_message): Use it. (error): Likewise. (error_at_line): Likewise. (error_tail) Add function attribute macros. Use __builtin_expect. * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R. * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME. * io/ftw.c: Include sys/param.h unconditionally. * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code. [BZ #17125] * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use libc_freeres_ptr. (freecache): New function to free CACHE on exit. * sunrpc/xdr.c (xdr_string): Add comment about SIZE initialization. 2014-07-09 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. * sysdeps/sparc/nptl/internaltypes.h: Delete. * sysdeps/sparc/nptl/sparc-nptl.h: New file. * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it. * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise. * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise. * sysdeps/sparc/nptl/sem_init.c: Likewise. * sysdeps/sparc/nptl/sem_post.c: Likewise. * sysdeps/sparc/nptl/sem_timedwait.c: Likewise. * sysdeps/sparc/nptl/sem_wait.c: Likewise. * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise. * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise. * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise. * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise. 2014-07-09 Andreas Schwab * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to output. * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c (do_test): Likewise. * sysdeps/i386/fpu/libm-test-ulps: Update ULPs. 2014-07-09 Will Newton * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef. * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise. * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise. * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise. * sysdeps/hppa/start.S (_start): Likewise. 2014-07-09 Siddhesh Poyarekar * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0. * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is defined. 2014-07-08 Siddhesh Poyarekar * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2 after checking that it is non-NULL. * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL. 2014-07-08 Adhemerval Zanella * sysdeps/powerpc/memmove.c: Remove file. * sysdeps/powerpc/powerpc32/power4/memcopy.h [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise. * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default string memmove instead of removed powerpc one. * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S: [weak_alias]: Fix compiler warning due trailing data. * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: [weak_alias]: Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile warnigs due missing definition of __strcpy_power7 and __strlen_power7. * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add memmove functions. 2014-07-08 Siddhesh Poyarekar * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]: Remove code. * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]: Likewise * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]: Likewise 2014-07-07 Adhemerval Zanella * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B to avoid alignment traps in non-cacheable memory. * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise. * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove multiarch objects. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New file: multiarch power7 memmove. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file: multiarch default memmove. * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file: multiarch memove for powerpc32/power4. * string/bcopy.c: Use full path to include memmove.c. * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy multiarch objects. * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default bcopy for powerpc64. * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch bcopy for powerpc64. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy and memmove implementations. * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file: optimized multiarch memmove for POWER7/powerpc64. * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file: default multiarch memmove for powerpc64. * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove multiarch for powerpc64. * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy for POWER7/powerpc64. * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized memmove for POWER7/powerpc64. * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use glibc default one. * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for __ELF_NATIVE_CLASS equal to 64. 2014-07-07 Roland McGrath * sysdeps/nptl/lowlevellock.h: File removed. * NEWS: NPTL is no longer an add-on! * nptl/internaltypes.h: Moved ... * sysdeps/nptl/internaltypes.h: ... here. * sysdeps/nptl/aio_misc.h: Use in #include. * sysdeps/nptl/fork.c: Likewise. * sysdeps/nptl/gai_misc.h: Likewise. * sysdeps/nptl/librt-cancellation.c: Likewise. * sysdeps/nptl/jmp-unwind.c: Likewise. * sysdeps/nptl/setxid.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/Implies: New file. * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl. * sysdeps/unix/sysv/linux/arm/Implies: New file. * sysdeps/unix/sysv/linux/hppa/Implies: New file. * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl. * sysdeps/unix/sysv/linux/i386/i686/Implies: New file. * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl. * sysdeps/unix/sysv/linux/m68k/Implies: New file. * sysdeps/unix/sysv/linux/microblaze/Implies: New file. * sysdeps/unix/sysv/linux/mips/Implies: New file. * sysdeps/unix/sysv/linux/powerpc/Implies: New file. * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl. * sysdeps/unix/sysv/linux/sh/Implies: New file. * sysdeps/unix/sysv/linux/sparc/Implies: New file. * sysdeps/unix/sysv/linux/tile/Implies: New file. * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl. * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file. * nptl/Makeconfig: Moved ... * sysdeps/nptl/Makeconfig: ... here. * nptl/configure: File removed. * nptl/ANNOUNCE: File removed. * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check. * sysdeps/unix/sysv/linux/configure: Regenerated. * nptl/Makefile (routines): Add libc_pthread_init, libc_multiple_threads, register-atfork and unregister-atfork. (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here. (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym, lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym, pthread-pi-defines.sym, structsem.sym. * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix] (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables. [$(subdir) = nptl] (tests): Add tst-setgetname. * nptl/sysdeps/unix/sysv/linux/Makefile: File removed. * sysdeps/unix/sysv/linux/sigaction.c: Just include directly here, instead of WRAPPER_INCLUDE. [!LIBC_SIGACTION]: Remove aliases. * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise. * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork. (libc: GLIBC_PRIVATE): Add __libc_pthread_init, __libc_current_sigrtmin_private, __libc_current_sigrtmax_private, __libc_allocate_rtsig_private. * nptl/sysdeps/unix/sysv/linux/Versions: File removed. * sysdeps/unix/sysv/linux/sigtimedwait.c: Include . * sysdeps/unix/sysv/linux/sigwait.c: Likewise. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. * sysdeps/unix/sysv/linux/sleep.c: Likewise. * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed. * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed. * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed. * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed. * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed. * sysdeps/unix/sysv/linux/ia64/fork.S: File removed. * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ... * nptl/internaltypes.h: ... here. * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ... * sysdeps/nptl/jmp-unwind.c: ... here. * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ... * nptl/libc-lowlevellock.c: ... here. * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ... * nptl/libc_multiple_threads.c: ... here. * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ... * nptl/libc_pthread_init.c: ... here. * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ... * nptl/lowlevelbarrier.sym: ... here. * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ... * nptl/lowlevelcond.sym: ... here. * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ... * nptl/lowlevellock.c: ... here. * nptl/lowlevellock.h: Moved ... * sysdeps/nptl/lowlevellock.h: ... here. * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ... * nptl/lowlevelrobustlock.c: ... here. * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ... * nptl/lowlevelrobustlock.sym: ... here. * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ... * nptl/lowlevelrwlock.sym: ... here. * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ... * nptl/pt-fork.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ... * nptl/pthread-pi-defines.sym: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ... * nptl/pthread_attr_getaffinity.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ... * nptl/pthread_attr_setaffinity.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ... * nptl/pthread_mutex_cond_lock.c: ... here. * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Update #include. * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise. * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ... * nptl/pthread_once.c: ... here, replacing old file. * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ... * nptl/pthread_yield.c: ... here. * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ... * nptl/register-atfork.c: ... here. * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ... * nptl/sem_post.c: ... here. * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include. * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ... * nptl/sem_timedwait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ... * nptl/sem_trywait.c: ... here. * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include. * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ... * nptl/sem_wait.c: ... here. * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ... * nptl/structsem.sym: ... here. * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ... * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file. * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ... * nptl/unregister-atfork.c: ... here. * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ... * nptl/unwindbuf.sym: ... here. * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ... * sysdeps/nptl/fork.c: ... here. * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ... * sysdeps/nptl/fork.h: ... here. * sysdeps/unix/sysv/linux/syscalls.list: Remove fork. * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ... * sysdeps/unix/sysv/linux/aio_misc.h: ... here. * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ... * sysdeps/unix/sysv/linux/allocrtsig.c: ... here. * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ... * sysdeps/unix/sysv/linux/getpid.c: ... here. * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ... * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here. * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ... * sysdeps/unix/sysv/linux/pt-raise.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ... * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ... * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ... * sysdeps/unix/sysv/linux/pthread_getname.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ... * sysdeps/unix/sysv/linux/pthread_kill.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ... * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ... * sysdeps/unix/sysv/linux/pthread_setname.c: ... here. * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ... * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here. * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ... * sysdeps/unix/sysv/linux/raise.c: ... here. * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ... * sysdeps/unix/sysv/linux/timer_create.c: ... here. * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ... * sysdeps/unix/sysv/linux/timer_delete.c: ... here. * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ... * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here. * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ... * sysdeps/unix/sysv/linux/timer_gettime.c: ... here. * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ... * sysdeps/unix/sysv/linux/timer_routines.c: ... here. * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ... * sysdeps/unix/sysv/linux/timer_settime.c: ... here. * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ... * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include. 2014-07-04 Siddhesh Poyarekar * sysdeps/generic/memcopy.h: Add comment for MEMCPY_OK_FOR_FWD_MEMMOVE. 2014-07-04 Will Newton * string/memchr.c: Merge from gnulib. [_LIBC]: Remove conditionals. (__ptr_t): Remove define. (LONG_MAX_32_BITS): Likewise. (LONG_MAX): Likewise. (MEMCHR): Use ANSI prototype and optimize algorithm. * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define. 2014-07-03 Roland McGrath * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_timed_wait_bitset): Fix syscall argument count. * sysdeps/nptl/configure.ac (libc_cv_forced_unwind): Use -Dinhibit_libc=1 for unwind.h check to prevent false failure in a bare environment with no installed. * sysdeps/nptl/configure: Regenerated. * sysdeps/alpha/fpu/s_nearbyint.c: Include . * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than AC_EGREP_CPP for kernel header checks, so they only succeed if including actually works right. * sysdeps/unix/sysv/linux/configure: Regenerated. * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the value so it's not diagnosed as unused. * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only thing) with "ifeq ($(subdir),rt)". 2014-07-03 Richard Henderson * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file. * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove; include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c. * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New. (math_force_eval): New. * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding. * sysdeps/alpha/fpu/s_lroundf.c: Likewise. * sysdeps/alpha/fpu/s_round.c: Remove file. * sysdeps/alpha/fpu/s_roundf.c: Remove file. * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine. (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead. * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine. (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead. (_dl_start, print_statistics): Likewise. * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset. * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define. * sysdeps/aarch64/hp-timing.h: New file. * sysdeps/generic/hp-timing.h: Remove dead comment. * sysdeps/generic/hp-timing-common.h: New file. * sysdeps/alpha/hp-timing.h: Include it. (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove. * sysdeps/i386/i686/hp-timing.h: Likewise. * sysdeps/ia64/hp-timing.h: Likewise. * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise. * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise. * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise. * sysdeps/sparc/sparc64/hp-timing.h: Likewise. * sysdeps/x86_64/hp-timing.h: Don't include the i686 version. (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define. (hp_timing_t): New. * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove. * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove. (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT. * elf/rtld.c (_dl_start_final): Likewise. * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove. * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove. * sysdeps/i386/i686/hp-timing.c: Remove file. * sysdeps/x86_64/hp-timing.c: Remove file. * sysdeps/ia64/hp-timing.c: Remove file. * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file. * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file. * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file. * sysdeps/sparc/sparc64/hp-timing.c: Remove file. * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove. * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove. * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file. 2014-07-03 Maciej W. Rozycki * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30. 2014-07-02 Siddhesh Poyarekar Sync up with gettext. * intl/loadmsgcat.c: Define O_BINARY if not defined. [_MSC_VER]: Include malloc.h [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined. (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag. (_nl_load_domain): Open DOMAIN_FILE in binary mode. Don't use TEMP_FAILURE_RETRY. Cast return of alloca. [!_LIBC] Call gl_rwlock_init. [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument. 2014-07-02 Roland McGrath * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined before checking its value. 2014-07-02 Siddhesh Poyarekar * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect. * debug/memcpy_chk.c: Don't include pagecopy.h. * debug/mempcpy_chk.c: Likewise. * string/memcpy.c: Likewise. * string/memmove.c: Likewise. * sysdeps/powerpc/memmove.c: Likewise. * sysdeps/generic/memcopy.h: Include pagecopy.h. Move definition of PAGE_COPY_FWD_MAYBE here... * sysdeps/generic/pagecopy.h: ... from here. * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h. 2014-07-02 Vidya Ranganathan Adhemerval Zanella * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name. * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch optimizations. * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: (__libc_ifunc_impl_list): Likewise. * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file: multiarch strcat for PPC64. * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/ * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file. 2014-07-02 Roland McGrath * sysdeps/unix/sysv/linux/dl-sysdep.c: Include . 2014-07-02 Siddhesh Poyarekar * intl/loadmsgcat.c: Remove declaration of get_sysdep_segment_value. (get_sysdep_segment_value): Use ISO C style. (_nl_load_domain): Use ISO C style. Get rid of redundant semicolon. Fix typo and formatting in comment. (_nl_unload_domain): Use ISO C style. * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name. 2014-07-02 Will Newton * malloc/obstack.c: Merge from gnulib master. [HAVE_CONFIG_H]: Remove conditional code. [!_LIBC]: Include config.h. [!ELIDE_CODE]: Don't include inttypes.h, include stdint.h unconditionally. (print_and_abort): Mark as _Noreturn. (_obstack_allocated_p): Mark as __attribute_pure__. (obstack_free): Rename to __obstack_free. [!__attribute__]: Remove conditional code. * malloc/obstack.h: Merge from gnulib master. [__cplusplus]: Move conditional down. [!__attribute_pure__]: Define __attribute_pure__ here if it is not already defined. (_obstack_memory_used): Mark as __attribute_pure__. [!__obstack_free]: Define as obstack_free. [__GNUC__]: Remove check for ancient NeXT gcc. 2014-07-02 Will Newton Paul Eggert * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers. 2014-07-02 Siddhesh Poyarekar * resolv/gethnamaddr.c: Add comment warning that the file is not maintained. 2014-07-01 Carlos O'Donell * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3 entries. * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3 entry for aio_cancel and aio_cancel64. * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file. * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file. * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file. 2014-07-01 Roland McGrath * sysdeps/unix/sysv/linux/sysconf.c: Include . * nptl/pthread_mutex_lock.c: Likewise. * nptl/pthread_mutex_timedlock.c: Likewise. * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise. 2014-07-01 Richard henderson * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove. (__isnan, __isnanl): Remove. * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic. * sysdeps/alpha/fpu/libm-test-ulps: Update. 2014-07-01 Stefan Liebler * sysdeps/s390/fpu/libm-test-ulps: Regenerate. 2014-07-01 Siddhesh Poyarekar * resolv/nss_dns/dns-host.c (getanswer_r) [MULTI_PTRS_ARE_ALIASES]: Remove code. 2014-07-01 Joseph Myers * sysdeps/unix/sysv/linux/microblaze/kernel-features.h [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not undefine. [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise. [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise. 2014-07-01 Roland McGrath * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file. * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed. * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP. * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed. * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h: ... here. * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here. * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here. * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ... * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here. * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here. * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here. * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here. * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ... * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here. 2014-07-01 David Holsgrove * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file. * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use. * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines): Add sysdep. 2014-06-30 Adhemerval Zanella * sysdeps/powerpc/fpu/libm-test-ulps: Update. 2014-06-30 Joseph Myers * sysdeps/mips/mips32/libm-test-ulps: Regenerated. * sysdeps/mips/mips64/libm-test-ulps: Likewise. * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated. * sysdeps/arm/libm-test-ulps: Regenerated. 2014-06-30 Maciej W. Rozycki Roland McGrath * test-skeleton.c (signal_handler): Kill the whole process group before killing the child individually. (main): Report any failure on `setpgid'. 2014-06-30 Roland McGrath * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard from _TLS_H to _ARM_NPTL_TLS_H. (TLS_INIT_TP): Move macro, and #include of , to ... * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file. 2014-06-30 Joseph Myers [BZ #16539] * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include . (__expm1l): Return argument unchanged when small but not subnormal. * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to include macro name. (_FP_UNPACK_RAW_1_P): Likewise. (_FP_PACK_RAW_1): Likewise. (_FP_PACK_RAW_1_P): Likewise. (_FP_MUL_MEAT_1_wide): Likewise. (_FP_MUL_MEAT_DW_1_hard): Likewise. (_FP_MUL_MEAT_1_hard): Likewise. (_FP_DIV_MEAT_1_imm): Likewise. (_FP_DIV_MEAT_1_udiv_norm): Likewise. (_FP_DIV_MEAT_1_udiv): Likewise. * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise. (_FP_UNPACK_RAW_2): Likewise. (_FP_UNPACK_RAW_2_P): Likewise. (_FP_PACK_RAW_2): Likewise. (_FP_PACK_RAW_2_P): Likewise. (_FP_MUL_MEAT_DW_2_wide): Likewise. (_FP_MUL_MEAT_2_wide): Likewise. (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise. (_FP_MUL_MEAT_2_wide_3mul): Likewise. (_FP_MUL_MEAT_DW_2_gmp): Likewise. (_FP_MUL_MEAT_2_gmp): Likewise. (_FP_DIV_MEAT_2_udiv): Likewise. * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise. (_FP_FRAC_SRL_4): Likewise. (_FP_FRAC_SRST_4): Likewise. (_FP_FRAC_SRS_4): Likewise. (_FP_UNPACK_RAW_4): Likewise. (_FP_UNPACK_RAW_4_P): Likewise. (_FP_PACK_RAW_4): Likewise. (_FP_PACK_RAW_4_P): Likewise. (_FP_MUL_MEAT_DW_4_wide): Likewise. (_FP_MUL_MEAT_4_wide): Likewise. (_FP_MUL_MEAT_4_gmp): Likewise. (umul_ppppmnnn): Likewise. (_FP_DIV_MEAT_4_udiv): Likewise. (__FP_FRAC_ADD_4): Likewise. (__FP_FRAC_SUB_3): Likewise. (__FP_FRAC_SUB_4): Likewise. (__FP_FRAC_DEC_3): Likewise. (__FP_FRAC_DEC_4): Likewise. (__FP_FRAC_ADDI_4): Likewise. * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise. (_FP_FRAC_SRL_8): Likewise. (_FP_FRAC_SRS_8): Likewise. * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to include macro name. (FP_UNPACK_RAW_EP): Likewise. (FP_PACK_RAW_E): Likewise. (FP_PACK_RAW_EP): Likewise. * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise. (_FP_ISSIGNAN): Likewise. (_FP_ADD_INTERNAL): Likewise. (_FP_FMA): Likewise. (_FP_CMP): Likewise. (_FP_SQRT): Likewise. (_FP_TO_INT): Likewise. (_FP_FROM_INT): Likewise. (FP_EXTEND): Likewise. (_FP_DIV_MEAT_N_loop): Likewise. 2014-06-30 Maciej W. Rozycki * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting throughout. 2014-06-29 Joseph Myers [BZ #17097] * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return result with correct sign in case of exponents that produce overflow except for X very close to 1. 2014-06-28 Paul Eggert mktime: merge #if/#ifdef usage from glibc * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG", as that works with both Glibc's and Gnulib's style. See thread starting at Siddhesh Poyarekar's bug report at: http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html 2014-06-28 Siddhesh Poyarekar * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE. * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE. * sysdeps/tile/tilegx/memmove.c: Remove file. 2014-06-27 Joseph Myers * Makeconfig ($(common-objpfx)soversions.mk): Do not generate abi-name definition. * scripts/soversions.awk: Do not handle or generate ABI lines. * shlib-versions: Remove ABI entries. * sysdeps/powerpc/nofpu/shlib-versions: Remove file. * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry. 2014-06-27 Roland McGrath * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here. * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist: Identical file removed. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here. * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S. * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed. * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed. * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file. 2014-06-27 Arjun Shankar [BZ #17092] * nscd/nscd.c (monitor_child): Return exit status of child instead of return value from wait syscall. 2014-06-27 Joseph Myers * configure.ac (libc_commonpagesize): Remove variable. (libc_relro_required): Likewise. (libc_cv_z_relro): Remove configure test. * configure: Regenerated. * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set variable. (libc_relro_required): Likewise. * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise. (libc_relro_required): Likewise. * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise. (libc_relro_required): Likewise. * sysdeps/arm/preconfigure: Regenerated. * sysdeps/ia64/preconfigure: Remove file. * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set variable. (libc_relro_required): Likewise. [BZ #16561] [BZ #16562] * sysdeps/ieee754/dbl-64/e_jn.c: Include . (__ieee754_yn): Set FE_TONEAREST mode internally and then recompute overflowing results in original rounding mode. * sysdeps/ieee754/flt-32/e_jnf.c: Include . (__ieee754_ynf): Set FE_TONEAREST mode internally and then recompute overflowing results in original rounding mode. * sysdeps/ieee754/ldbl-128/e_jnl.c: Include . (__ieee754_ynl): Set FE_TONEAREST mode internally and then recompute overflowing results in original rounding mode. * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include . (__ieee754_ynl): Set FE_TONEAREST mode internally and then recompute overflowing results in original rounding mode. * sysdeps/ieee754/ldbl-96/e_jnl.c: Include . (__ieee754_ynl): Set FE_TONEAREST mode internally and then recompute overflowing results in original rounding mode. * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__] (libc_feholdsetround_ctx): New macro. * math/libm-test.inc (yn_test): Use ALL_RM_TEST. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps : Likewise. 2014-06-26 Joseph Myers * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h [__PIC__] (PSEUDO): Use name of _nocancel entry point in corresponding .cpsetup call. 2014-06-26 Roland McGrath * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ... * sysdeps/arm/libc-aeabi_read_tp.S: ... here. * sysdeps/arm/Makefile [$(subdir) = csu] (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here. (static-only-routines): Add aeabi_read_tp here. (shared-only-routines): Add libc-aeabi_read_tp here. (CFLAGS-libc-start.c): Add -fexceptions here. * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu] (sysdep_routines, static-only-routines, shared-only-routines): Don't add to these here. (CFLAGS-libc-start.c): Likewise. * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ... * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here. * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ... * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here. * sysdeps/arm/Makefile [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines): Append rt-aeabi_unwind_cpp_pr1 here. * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines): Don't do it here. * sysdeps/arm/nptl/Makefile [$(subdir) = nptl] (libpthread-sysdep_routines, libpthread-shared-only-routines): Append nptl-aeabi_unwind_cpp_pr1 here. (tests): Filter out tst-cleanupx4 here. * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl] (libpthread-sysdep_routines, libpthread-shared-only-routines, tests): Don't do those here. 2014-06-26 Joseph Myers * scripts/list-sources.sh: Do not handle ports specially. 2014-06-26 Roland McGrath * sysdeps/arm/fesetenv.c: Include . * sysdeps/arm/feupdateenv.c: Likewise. * posix/spawn_faction_addopen.c: Include for free decl. 2014-06-26 Joseph Myers * manual/texinfo.tex: Update to version 2014-05-05.10 with trailing whitespace removed. * scripts/config.guess: Update to version 2014-03-23. * scripts/config.sub: Update to version 2014-05-01 * scripts/install-sh: Update to version 2013-12-25.23. * scripts/move-if-change: Update from gnulib. 2014-06-26 Siddhesh Poyarekar * debug/memmove_chk.c: Remove pagecopy.h include. 2014-06-26 Paul Eggert * time/mktime.c (leapyear): Remove inline keyword. The code is now identical to gnulib mktime. 2014-06-26 Joseph Myers * configure.ac: Do not test for machine being rs6000. Do not test for powerpc*-*soft. * configure: Regenerated. [BZ #11505] * configure.ac (libc_cv_asm_cfi_directives): Remove configure test. * configure: Regenerated. * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine. * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections): Remove configure test. * sysdeps/arm/configure: Regenerated. * sysdeps/nptl/configure.ac: Do not check libc_cv_asm_cfi_directives. * sysdeps/nptl/configure: Regenerated. * sysdeps/x86_64/nptl/configure.ac: Remove file. * sysdeps/x86_64/nptl/configure: Remove generated file. * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code unconditional. [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code. 2014-06-26 Siddhesh Poyarekar * posix/fnmatch.c: Define WIDE_CHAR_VERSION. * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION. (FCT): Check value of WIDE_CHAR_VERSION instead of checking if it is defined. * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA instead of whether it is defined. * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA. * sysdeps/hppa/dl-machine.h: Likewise. * sysdeps/ia64/dl-machine.h: Likewise. * sysdeps/m68k/dl-machine.h: Likewise. * sysdeps/microblaze/dl-machine.h: Likewise. * sysdeps/mips/dl-machine.: Likewise. * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise. * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise. * sysdeps/s390/s390-32/dl-machine.h: Likewise. * sysdeps/s390/s390-64/dl-machine.h: Likewise. * sysdeps/sh/dl-machine.h: Likewise. * sysdeps/sparc/sparc32/dl-machine.h: Likewise. * sysdeps/sparc/sparc64/dl-machine.h: Likewise. * sysdeps/tile/dl-machine.h: Likewise. * sysdeps/x86_64/dl-machine.h: Likewise. * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove code. (verify_persistent_db): Likewise. 2014-06-26 Roland McGrath * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: Identical file removed. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/s390/localplt.data: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data: Identical file removed. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here. * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents folded into ... * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here. * sysdeps/unix/sysv/linux/s390/Versions (libpthread: GLIBC_2.19): New version set. * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed. * sysdeps/unix/sysv/linux/s390/s390-64/Versions (librt: GLIBC_2.3.3): New version set. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed. * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ... * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ... * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here. * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ... * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ... * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ... * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ... * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ... * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here. * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ... * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here. * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ... * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ... * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ... * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ... * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ... * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ... * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here. * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ... * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here. (__libc_vfork): Define the function under this name. [!NOT_IN_libc] (__vfork): Make this an alias. [!NOT_IN_libc] (vfork): Conditionalize the weak_alias. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ... * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here. (__libc_vfork): Define the function under this name. [!NOT_IN_libc] (__vfork): Make this an alias. [!NOT_IN_libc] (vfork): Conditionalize the weak_alias. * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file. * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork. * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the code that was previously under [RESET_PID]. * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed. * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ... * sysdeps/aarch64/nptl/bits/semaphore.h: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ... * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here. * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here. 2014-06-25 Roland McGrath * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code that was previously under [RESET_PID]. * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed. 2014-06-25 Joseph Myers * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do not undefine and redefine. * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs) [O_CLOEXEC]: Make code unconditional. (__get_nprocs) [!O_CLOEXEC]: Remove conditional code. * sysdeps/unix/sysv/linux/shm_open.c: Do not include . [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove conditional variable definition. (shm_open) [O_CLOEXEC]: Make code unconditional. (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional code. * configure.ac (USE_REGPARMS): Don't define here. * configure: Regenerated. * sysdeps/i386/configure.ac (USE_REGPARMS): Define here. * sysdeps/i386/configure: Regenerated. * nptl/createthread.c: Don't include kernel-features.h. * nptl/pthread_cancel.c: Likewise. * nptl/pthread_condattr_setclock.c: Likewise. * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise. * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise. * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise. * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise. * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise. * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise. * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise. * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise. * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise. * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise. * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise. * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise. * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise. * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise. * nscd/gai.c: Likewise. * nss/nss_db/db-open.c: Likewise. * sysdeps/generic/ldsodefs.h: Likewise. * sysdeps/sh/nptl/tls.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise. * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise. * sysdeps/unix/sysv/linux/adjtime.c: Likewise. * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise. * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise. * sysdeps/unix/sysv/linux/check_pf.c: Likewise. * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise. * sysdeps/unix/sysv/linux/clock_getres.c: Likewise. * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise. * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise. * sysdeps/unix/sysv/linux/clock_settime.c: Likewise. * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise. * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise. * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise. * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise. * sysdeps/unix/sysv/linux/generic/poll.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise. * sysdeps/unix/sysv/linux/getcwd.c: Likewise. * sysdeps/unix/sysv/linux/getpagesize.c: Likewise. * sysdeps/unix/sysv/linux/getsysstats.c: Likewise. * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise. * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise. * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise. * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise. * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise. * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise. * sysdeps/unix/sysv/linux/ia64/system.c: Likewise. * sysdeps/unix/sysv/linux/if_index.c: Likewise. * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise. * sysdeps/unix/sysv/linux/ifreq.c: Likewise. * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise. * sysdeps/unix/sysv/linux/lutimes.c: Likewise. * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise. * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/mmap64.c: Likewise. * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise. * sysdeps/unix/sysv/linux/pread.c: Likewise. * sysdeps/unix/sysv/linux/pread64.c: Likewise. * sysdeps/unix/sysv/linux/prof-freq.c: Likewise. * sysdeps/unix/sysv/linux/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise. * sysdeps/unix/sysv/linux/s390/system.c: Likewise. * sysdeps/unix/sysv/linux/sh/pread.c: Likewise. * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise. * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/sigpending.c: Likewise. * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise. * sysdeps/unix/sysv/linux/sparc/system.c: Likewise. * sysdeps/unix/sysv/linux/syslog.c: Likewise. * sysdeps/unix/sysv/linux/system.c: Likewise. * sysdeps/unix/sysv/linux/testrtsig.h: Likewise. * sysdeps/unix/sysv/linux/timespec_get.c: Likewise. * sysdeps/unix/sysv/linux/ttyname.c: Likewise. * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise. * sysdeps/unix/sysv/linux/utimensat.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/xstatconv.h: Likewise. * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test. * configure: Regenerated. * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro. * configure.ac (base_machine): Do not set specially for particular machines here. * configure: Regenerated. * sysdeps/powerpc/preconfigure: Move machine and base_machine settings from configure.ac. * sysdeps/i386/preconfigure: New file. * sysdeps/s390/preconfigure: Likewise. * sysdeps/sh/preconfigure: Likewise. * sysdeps/sparc/preconfigure: Likewise. 2014-06-25 Roland McGrath * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ... * sysdeps/sparc/sparc64/cpu_relax.S: ... here. * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ... * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here. * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ... * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here. * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ... * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here. * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ... * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here. * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ... * sysdeps/sparc/sparc64/pthreaddef.h: ... here. * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise. * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise. * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise. * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ... * sysdeps/sparc/sparc64/Makefile: ... appended here. * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ... * sysdeps/sparc/sparc32/lowlevellock.c: ... here. * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ... * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here. * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ... * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here. * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ... * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here. * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ... * sysdeps/sparc/sparc32/pthreaddef.h: ... here. * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ... * sysdeps/sparc/sparc32/sem_post.c: ... here. * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ... * sysdeps/sparc/sparc32/sem_timedwait.c: ... here. * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ... * sysdeps/sparc/sparc32/sem_trywait.c: ... here. * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ... * sysdeps/sparc/sparc32/sem_wait.c: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here. * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here. 2014-06-25 Joseph Myers * timezone/checktab.awk: Update from tzcode 2014e. * timezone/private.h: Likewise. * timezone/tzfile.h: Likewise. * timezone/zdump.c: Likewise. * timezone/zic.c: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro. * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted) [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional. (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]: Remove conditional code. 2014-06-25 Will Newton * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags): Add HWCAP2 values. * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 37. (_DL_HWCAP_LAST): New define. (_DL_HWCAP2_LAST): New define. (_dl_procinfo): Add support for printing AT_HWCAP2 entries. (_dl_string_hwcap): Use _dl_hwcap_string. 2014-06-25 Adhemerval Zanella * sysdeps/powerpc/fpu/libm-test-ulps: Update. 2014-06-25 Joseph Myers * README: Do not mention ports directory. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT): Remove macro. * sysdeps/unix/sysv/linux/futimes.c: Do not include . [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove conditional variable definition. (__futimes): Update comment. (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional. (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code. [BZ #16560] * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for arguments close to 0. * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l): Likewise. * math/auto-libm-test-in: Add more tests of exp10. * math/auto-libm-test-out: Regenerated. * sysdeps/x86_64/fpu/libm-test-ulps: Update. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_COMPLETE_READV_WRITEV): Remove macro. * sysdeps/unix/sysv/linux/readv.c: Do not include . [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code. [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro. (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code unconditional. (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code. * sysdeps/unix/sysv/linux/writev.c: Do not include . [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code. [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro. (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code unconditional. (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code. 2014-06-25 Will Newton * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic comment changes throughout the file. Remove checks for HAVE_*_H definitions that are not required. (__gen_tempname): Call abort if an unknown kind value is passed. 2014-06-25 Andreas Schwab [BZ #17086] * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for scalbln, scalblnf, scalblnl in libc. 2014-06-25 Siddhesh Poyarekar [BZ #17086] * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so. * sysdeps/i386/fpu/s_scalbnf.S: Likewise. * sysdeps/i386/fpu/s_scalbnl.S: Likewise. 2014-06-24 Roland McGrath * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ... * sysdeps/i386/i486/pthread_spin_trylock.S: ... here. * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ... * sysdeps/i386/i586/pthread_spin_trylock.S: ... here. Update #include. * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ... * sysdeps/i386/i686/pthread_spin_trylock.S: ... here. Update #include. * sysdeps/x86_64/64/nptl/shlib-versions: Moved ... * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here. * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ... * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here. * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/x86/bits/pthreadtypes.h: ... here. * sysdeps/x86/nptl/bits/semaphore.h: Moved ... * sysdeps/x86/bits/semaphore.h: ... here. * sysdeps/x86/nptl/elide.h: Moved ... * sysdeps/x86/elide.h: ... here. * sysdeps/x86_64/nptl/Implies: File removed. * sysdeps/i386/nptl/Implies: File removed. 2014-06-24 Joseph Myers [BZ #16539] * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just return the argument for normal arguments with exponent below -64. * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Likewise. * math/auto-libm-test-in: Add another test of expm1. * math/auto-libm-test-out: Regenerated. [BZ #16287] * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without calling __erfcl for arguments at least 16. * math/auto-libm-test-in: Add more tests of erf. * math/auto-libm-test-out: Regenerated. * sysdeps/unix/sysv/linux/configure.ac: Remove cases for individual architectures. * sysdeps/unix/sysv/linux/configure: Regenerated. * sysdeps/unix/sysv/linux/i386/configure.ac: New file. * sysdeps/unix/sysv/linux/i386/configure: New generated file. * sysdeps/unix/sysv/linux/powerpc/configure.ac (ldd_rewrite_script): Define variable. * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated. * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New generated file. * sysdeps/unix/sysv/linux/s390/configure.ac: New file. * sysdeps/unix/sysv/linux/s390/configure: New generated file. * sysdeps/unix/sysv/linux/sh/configure.ac: New file. * sysdeps/unix/sysv/linux/sh/configure: New generated file. * sysdeps/unix/sysv/linux/sparc/configure.ac: New file. * sysdeps/unix/sysv/linux/sparc/configure: New generated file. * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file. * sysdeps/unix/sysv/linux/x86_64/configure: New generated file. 2014-06-24 Siddhesh Poyarekar [BZ #17084] * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t): Rename member __data.d to __data.__elision_data. 2014-06-24 Wilco * NEWS: Add 16918 to fixed bug list. 2014-06-24 Wilco * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation. 2014-06-24 Wilco * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define. * sysdeps/arm/fenv_private.h (libc_fesetround_vfp) (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp) (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx) (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM. * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM. * sysdeps/arm/get-rounding-mode.h (get_rounding_mode): Use _FPU_MASK_RM. 2014-06-24 Wilco * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include. 2014-06-24 Wilco * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space. * sysdeps/arm/fesetenv.c (fesetenv): Remove space. * sysdeps/arm/fesetround.c (fesetround): Remove space. * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space. 2014-06-24 Wilco [BZ #16918] * sysdeps/arm/feupdateenv.c (feupdateenv): Rewrite to reduce FPSCR accesses and fix return value. 2014-06-24 Wilco * sysdeps/arm/fclrexcpt.c (feclearexcept): Optimize to avoid unnecessary FPSCR writes. * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise. * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise. * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise. * sysdeps/arm/setfpucw.c (__setfpucw): Likewise. 2014-06-24 Wilco * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode. * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp. * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp. * sysdeps/arm/fgetexcptflg.c (fegetexceptflag): Call libc_fetestexcept_vfp. * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp. * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of __SOFTFP__ ifdef so that they can be built for softfp. 2014-06-24 Siddhesh Poyarekar * sysdeps/x86/nptl/elide.h (elision_adapt): Make first argument type signed char. * Makerules (check-abi): Dump diff of symlist if the test fails. 2014-06-23 Roland McGrath * sysdeps/generic/get-rounding-mode.h: Include before using abort. * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Remove unused variable ST. 2014-06-23 Joseph Myers [BZ #16354] [BZ #17061] * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for small arguments before calling __expm1. * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for small arguments before calling __expm1f. * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for small arguments before calling __expm1l. * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise. * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise. * math/auto-libm-test-in: Add more cosh tests. Do not allow spurious underflow for some cosh tests. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. [BZ #17050] * sysdeps/ieee754/dbl-64/e_j1.c: Include . (__ieee754_y1): Set errno if return value overflows. * sysdeps/ieee754/flt-32/e_j1f.c: Include . (__ieee754_y1f): Set errno if return value overflows. * sysdeps/ieee754/ldbl-128/e_j1l.c: Include . (__ieee754_y1l): Set errno if return value overflows. * sysdeps/ieee754/ldbl-96/e_j1l.c: Include . (__ieee754_y1l): Set errno if return value overflows. * math/auto-libm-test-in: Add more tests of y0, y1 and yn. * math/auto-libm-test-out: Regenerated. * math/gen-auto-libm-tests.c: Document use of ignore-zero-inf-sign. (input_flag_type): Add value flag_ignore_zero_inf_sign. (input_flags): Add ignore-zero-inf-sign. (output_for_one_input_case): Handle flag_ignore_zero_inf_sign. * math/gen-libm-test.pl (generate_testfile): Handle ignore-zero-inf-sign. * math/auto-libm-test-in: Mark some cpow tests with ignore-zero-inf-sign and some with xfail-rounding. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (cpow_test): Use ALL_RM_TEST. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. [BZ #16315] * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly overflowing or underflowing operations take place with sign of result. * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise. * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise. * sysdeps/ieee754/dbl-64/e_pow.c: Include . (__ieee754_pow): Recompute overflowing and underflowing results in original rounding mode. * sysdeps/x86/fpu/powl_helper.c: Include . (__powl_helper): Allow negative argument X and scale negated value as needed. Avoid passing value outside [-1, 1] to f2xm1. * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly overflowing or underflowing operations take place with sign of result. * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Include . * math/auto-libm-test-in: Add more tests of pow. * math/auto-libm-test-out: Regenerated. * math/libm-test.inc (pow_test): Use ALL_RM_TEST. (pow_tonearest_test_data): Remove. (pow_test_tonearest): Likewise. (pow_towardzero_test_data): Likewise. (pow_test_towardzero): Likewise. (pow_downward_test_data): Likewise. (pow_test_downward): Likewise. (pow_upward_test_data): Likewise. (pow_test_upward): Likewise. (main): Don't call removed functions. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. 2014-06-23 Roland McGrath * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist: File removed. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here. 2014-06-23 Will Newton Wilco * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX implementation. Include get-rounding-mode.h. [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero. [!libc_feholdsetround_noex_ctx]: Define libc_feholdsetround_noex_ctx. [!libc_feholdsetround_noexf_ctx]: Define libc_feholdsetround_noexf_ctx. [!libc_feholdsetround_noexl_ctx]: Define libc_feholdsetround_noexl_ctx. (libc_feholdsetround_ctx): New function. (libc_feresetround_ctx): New function. (libc_feholdsetround_noex_ctx): New function. (libc_feresetround_noex_ctx): New function. 2014-06-23 Roland McGrath * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here. * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ... * sysdeps/mips/nptl/bits/semaphore.h: ... here. * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ... * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here. * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ... * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here. * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ... * sysdeps/m68k/nptl/bits/semaphore.h: ... here. * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ... * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here. * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here. * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here. * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ... * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here. * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here. * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ... * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here. 2014-06-23 Joseph Myers * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU] (FALLOC_FL_COLLAPSE_RANGE): New macro. [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise. * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise. (IPV6_PMTUDISC_INTERFACE): Likewise. (IPV6_PMTUDISC_OMIT): Likewise. 2014-06-23 Andreas Schwab * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Remove unused errout label. 2014-06-23 Adhemerval Zanella * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New macro: hardware supports Vector Crypto instructions. 2014-06-23 Will Newton * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely rather than __builtin_expect. * elf/dl-lookup.c (undefined_msg): Remove variable. (_dl_lookup_symbol_x): Replace undefined_msg with string literal. * elf/dl-lookup.c (do_lookup_unique): New function. (do_lookup_x): Move STB_GNU_UNIQUE handling code to a separate function. 2014-06-23 Andreas Schwab [BZ #17079] * nss/nss_files/files-XXX.c (get_contents): Store overflow marker before reading the next line. 2014-06-23 Will Newton * test-skeleton.c (signal_handler): Use printf and %m rather than perror. Use printf rather than fprintf to stderr. Use puts rather than fputs to stderr. (main): Likewise. 2014-06-22 Ludovic Courtès * nscd/nscd.c (thread_info_t): Remove typedef. (thread_info): Remove variable. 2014-06-21 Allan McRae * NEWS: Mention CVE-2014-4043. 2014-06-20 Roland McGrath * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ... * nptl/smp.h: ... here. * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed. * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros. * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H. * locale/Makefile (CPPFLAGS-locale-programs): Likewise. * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it. * nptl/allocatestack.c: Include . * nptl/stack-aliasing.h: New file. * sysdeps/i386/i686/stack-aliasing.h: New file. * sysdeps/i386/i686/nptl/Makefile: File removed. * sysdeps/x86_64/stack-aliasing.h: New file. * sysdeps/x86_64/nptl/Makefile (CFLAGS-pthread_create.c): Variable removed. * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ... * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the old file. * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ... * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the old file. 2014-06-21 Joseph Myers * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_SIGFRAME_V2): Remove macro. * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment. [!__ASSUME_SIGFRAME_V2]: Remove conditional code. (__default_sa_restorer_v2): Rename to __default_sa_restorer. (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer. * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer): Declare as function. Remove conditional macro definitions. (__default_rt_sa_restorer): Likewise. (__default_sa_restorer_v1): Remove declaration. (__default_sa_restorer_v2): Likewise. (__default_rt_sa_restorer_v1): Likewise. (__default_rt_sa_restorer_v2): Likewise. * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove __default_sa_restorer_v1, __default_rt_sa_restorer_v1, __default_sa_restorer_v2 and __default_rt_sa_restorer_v2. 2014-06-20 Roland McGrath * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl] (libpthread-routines): Add sysdep. * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed. * sysdeps/unix/sysv/linux/sparc/Versions (libpthread: GLIBC_2.3.3): New version set. * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed. * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ... * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ... * sysdeps/sparc/nptl/internaltypes.h: ... here. Use #include_next. * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c: Moved ... * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ... * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ... * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ... * sysdeps/sparc/nptl/sem_init.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ... * sysdeps/sparc/nptl/sem_post.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ... * sysdeps/sparc/nptl/sem_timedwait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ... * sysdeps/sparc/nptl/sem_wait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ... * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here. * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl] (libpthread-routines): Add cpu_relax. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: File removed. * sysdeps/unix/sysv/linux/sparc/sparc64/Versions (librt: GLIBC_2.3.3): New version set. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed. * sysdeps/sparc/sparc64/nptl/Makefile: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl] (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ... * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c: Moved ... * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ... * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ... * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ... * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ... * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here. Update #include. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here. Update #include. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here. Update #include. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here. Update #include. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here. Update #include. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here. Update #include. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ... * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here. 2014-06-20 Joseph Myers * nptl/pthread_cond_wait.c: Include . * nptl/pthread_rwlock_timedrdlock.c: Likewise. * nptl/pthread_rwlock_timedwrlock.c: Likewise. * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise. * nscd/nscd.c: Likewise. * sysdeps/i386/nptl/tcb-offsets.sym: Likewise. * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise. * sysdeps/sh/nptl/tcb-offsets.sym: Likewise. * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise. * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include . (init_mq_netlink): Remove conditional have_sock_cloexec definitions. Remove code conditional on have_sock_cloexec < 0. (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code. (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise. * sysdeps/unix/sysv/linux/opensock.c: Do not include . (__opensock) [SOCK_CLOEXEC]: Make code unconditional. (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code. 2014-06-20 H.J. Lu * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add tests for memset_chk and memset. * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined with AVX2_Usable. 2014-06-20 Maciej W. Rozycki [BZ #16046] * elf/tst-dl-iter-static.c: New file. * elf/Makefile (tests-static): Add tst-dl-iter-static. * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation error. 2014-06-20 Joseph Myers * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_F_GETOWN_EX): Remove macro. * sysdeps/unix/sysv/linux/fcntl.c: Do not include . (miss_F_GETOWN_EX): Remove variable or macro. (do_fcntl): Do not check miss_F_GETOWN_EX. (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM): Remove macro. * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard) [!__ASSUME_AT_RANDOM]: Remove conditional code. (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro. * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME) [ADJ_OFFSET_SS_READ]: Make code unconditional. (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code. 2014-06-20 Maciej W. Rozycki [BZ #17075] * sysdeps/arm/dl-machine.h (elf_machine_rel) : Fix calculation of the symbol's value. * sysdeps/arm/tst-armtlsdescloc.c: New file. * sysdeps/arm/tst-armtlsdesclocmod.c: New file. * sysdeps/arm/tst-armtlsdescextnow.c: New file. * sysdeps/arm/tst-armtlsdescextlazymod.c: New file. * sysdeps/arm/tst-armtlsdescextlazy.c: New file. * sysdeps/arm/tst-armtlsdescextnowmod.c: New file. * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc', `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'. (modules-names): Add `tst-armtlsdescmod', `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'. (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable. (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise. (CFLAGS-tst-armtlsdesclocmod.c): Likewise. (CFLAGS-tst-armtlsdescextnowmod.c): Likewise. (CFLAGS-tst-armtlsdescextlazymod.c): Likewise. (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise. ($(objpfx)tst-armtlsdescloc): New dependency. ($(objpfx)tst-armtlsdescextnow): Likewise. ($(objpfx)tst-armtlsdescextlazy): Likewise. * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor TLS scheme support. * sysdeps/arm/configure: Regenerate. 2014-06-20 Joseph Myers * include/fcntl.h (__atfct_seterrno): Remove prototype. (__atfct_seterrno_2): Likewise. * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include . (__ASSUME_ATFCTS): Do not undefine and redefine. * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS] (__have_atfcts): Remove conditional definition. (__fxstatat([__NR_fstatat64]: Make code unconditional. (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code unreachable if [__ASSUME_ATFCTS]. * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do not undefine and redefine. * sysdeps/unix/sysv/linux/faccessat.c: Do not include . (faccessat) [__NR_faccessat]: Make code unconditional. (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/fchmodat.c: Do not include . (fchmodat) [__NR_fchmodat]: Make code unconditional. (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/fchownat.c: Do not include . (fchownat) [__NR_fchownat]: Make code unconditional. (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/futimesat.c: Do not include . (futimesat) [__NR_futimesat]: Make code unconditional. (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/fxstatat.c: Do not include . (__fxstatat) [__NR_newfstatat]: Make code unconditional. (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include . (__fxstatat64) [__NR_fstatat64]: Make code unconditional. (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include . (__fxstatat) [__NR_fstatat64]: Make code unconditional. (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/linkat.c: Do not include . (linkat) [__NR_linkat]: Make code unconditional. (linkat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include . (__fxstatat64) [__NR_newfstatat]: Make code unconditional. (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/mkdirat.c: Do not include . (mkdirat) [__NR_mkdirat]: Make code unconditional. (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/openat.c: Do not include . [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function. [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable. (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional. (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/readlinkat.c: Do not include . (readlinkat) [__NR_readlinkat]: Make code unconditional. (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code. Return result of INLINE_SYSCALL directly, not via int variable. * sysdeps/unix/sysv/linux/renameat.c: Do not include . [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function. (renameat) [__NR_renameat]: Make code unconditional. (renameat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file. * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c (__ASSUME_ATFCTS): Do not undefine and redefine. * sysdeps/unix/sysv/linux/symlinkat.c: Do not include . (symlinkat) [__NR_symlinkat]: Make code unconditional. (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/unlinkat.c: Do not include . (unlinkat) [__NR_unlinkat]: Make code unconditional. (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c (__ASSUME_ATFCTS): Do not undefine and redefine. * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include . (__fxstatat) [__NR_newfstatat]: Make code unconditional. (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code. * sysdeps/unix/sysv/linux/xmknodat.c: Do not include . (__xmknodat) [__NR_mknodat]: Make code unconditional. (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code. 2014-06-20 H.J. Lu * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed. 2014-06-20 Andreas Schwab [BZ #17069] * posix/regcomp.c (parse_reg_exp): Deallocate partially constructed tree before returning error. * posix/bug-regexp36.c: Expand test case. 2014-06-20 Stefan Liebler [BZ #6803] * math/libm-test.inc (scalbln_test_date): Add errno expectations. * math/w_scalblnf.c: New File. Add wrapper which checks for setting errno to ERANGE. Add weak_alias for corresponding scalbln function. * math/w_scalbln.c: Likewise. * math/w_scalblnl.c: Likewise. * math/Makefile (libm-calls): Add w_scalbln. * sysdeps/ieee754/flt-32/s_scalblnf.c: Remove weak_alias for corresponding scalbln function. * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise. * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise. * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise. * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise. * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise. * sysdeps/i386/fpu/s_scalbnf.S: Likewise. * sysdeps/i386/fpu/s_scalbn.S: Likewise. * sysdeps/i386/fpu/s_scalbnl.S: Likewise. * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise. * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Remove long_double_symbol for scalblnl function in libm, libc. * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File. Add wrapper which checks for setting errno to ERANGE. Add long_double_symbol for scalblnl function in libm, libc. * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Remove long_double_symbol for scalblnl in libm. * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File. Add wrapper which checks for setting errno to ERANGE. Add long_double_symbol for scalblnl function in libm. * sysdeps/ia64/fpu/w_scalblnf.c: New File. Do not use wrapper because of own implementation. 2014-06-19 H.J. Lu * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use 3 bytes for __pad1 for x32. (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise. 2014-06-19 Ling Ma H.J. Lu * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2. * sysdeps/x86_64/multiarch/memset-avx2.S: New file. * sysdeps/x86_64/multiarch/memset.S: Likewise. * sysdeps/x86_64/multiarch/memset_chk.S: Likewise. * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise. 2014-06-19 Andreas Schwab [BZ #17069] * posix/regcomp.c (parse_expression): Deallocate partially constructed tree before returning error. * posix/Makefile.c (tests): Add bug-regex36. (generated): Add bug-regex36.mtrace. (tests-special): Add $(objpfx)bug-regex36-mem.out (bug-regex36-ENV): New variable. ($(objpfx)bug-regex36-mem.out): New rule. * posix/bug-regex36.c: New file. 2014-06-19 Will Newton * malloc/malloc.c (systrim): If extra is zero then return early. 2014-06-19 Siddhesh Poyarekar * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.). 2014-06-19 Richard Earnshaw * sysdeps/aarch64/strchr.S: New file. 2014-06-18 Joseph Myers [BZ #17022] * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1 from arguments -2 or below. * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise. * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise. 2014-06-18 Andreas Schwab [BZ #17062] * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest of a bracket expr not to run off the end of the string. * posix/Makefile (tests): Add tst-fnmatch3. * posix/tst-fnmatch3.c: New file. 2014-06-18 Joseph Myers * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix). * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Likewise. * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Likewise. 2014-16-17 Rajalakshmi Srinivasaraghavan [BZ #17031] * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low double, adjusted for any remainder from the high double. * math/libm-test.inc (nearbyint): Add tests. (rint): Likewise. 2014-06-17 Adhemerval Zanella * nptl/sysdeps/powerpc/Makefile: Moved ... * sysdeps/powerpc/nptl/Makefile: ... here. * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ... * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here. * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ... * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here. * nptl/sysdeps/powerpc/pthreaddef.h: Moved ... * sysdeps/powerpc/nptl/pthreaddef.h: ... here. * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ... * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here. * nptl/sysdeps/powerpc/tls.h: Moved ... * sysdeps/powerpc/nptl/tls.h: ... here. 2014-06-16 Joseph Myers [BZ #16681] * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI. * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise. * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise. * sysdeps/i386/fpu/s_floor.S (__floor): Likewise. * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise. * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise. * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise. * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise. * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise. 2014-06-17 Andreas Schwab * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update. 2014-06-16 Andreas Schwab * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after defined operator. * scripts/cross-test-ssh.sh (timeoutfactor): Default to $TIMEOUTFACTOR. 2014-06-16 Florian Weimer [BZ #17058] * nptl/tst-setuid2.c (do_test): Fix tautological comparison in non-executed part of the test. 2014-06-16 Andreas Schwab * string/bits/string2.h (strdup, strndup): Update feature guard. 2014-06-14 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. 2014-06-14 Andreas Schwab * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code that was previously under [RESET_PID]. * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file. * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file. * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file. * sysdeps/unix/sysv/linux/m68k/vfork.S: Include . (__vfork): Incorporate save/restore of PID from nptl/vfork.S here. (__libc_vfork): New strong alias. * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file. 2014-06-14 Andi Kleen * sysdeps/generic/elide.h: New file. 2014-06-13 Stefan Liebler * Makefile (installed-headers): Adjust path of pthread.h header. 2014-06-13 Roland McGrath * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ... * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here. * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ... * sysdeps/s390/nptl/bits/semaphore.h: ... here. * nptl/sysdeps/s390/Makefile: Moved ... * sysdeps/s390/nptl/Makefile: ... here. * nptl/sysdeps/s390/pthread_spin_init.c: Moved ... * sysdeps/s390/nptl/pthread_spin_init.c: ... here. * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ... * sysdeps/s390/nptl/pthread_spin_lock.c: ... here. * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ... * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here. * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ... * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here. * nptl/sysdeps/s390/pthreaddef.h: Moved ... * sysdeps/s390/nptl/pthreaddef.h: ... here. * nptl/sysdeps/s390/tcb-offsets.sym: Moved ... * sysdeps/s390/nptl/tcb-offsets.sym: ... here. * nptl/sysdeps/s390/tls.h: Moved ... * sysdeps/s390/nptl/tls.h: ... here. * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file. * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed. 2014-06-13 David S. Miller * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete. * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete. * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ... * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here. * sysdeps/unix/sysv/linux/sparc/fork.S: Delete. * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start): Remove RESET_PID cpp guards. * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start): Remove RESET_PID cpp guards. * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete. 2014-06-13 Andreas Schwab * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast __sp to uintptr_t. 2014-06-13 Andi Kleen * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito. * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito. * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito. * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito. * nptl/pthread_rwlock_rdlock.c: Include elide.h. (pthread_rwlock_rdlock): Add elision. * nptl/pthread_rwlock_wrlock.c: Include elide.h. (pthread_rwlock_wrlock): Add elision. * nptl/pthread_rwlock_trywrlock.c: Include elide.h. (pthread_rwlock_trywrlock): Add elision. * nptl/pthread_rwlock_tryrdlock.c: Include elide.h. (pthread_rwlock_tryrdlock): Add elision. * nptl/pthread_rwlock_unlock.c: Include elide.h. (pthread_rwlock_tryrdlock): Add elision unlock. * nptl/sysdeps/pthread/pthread.h: (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define (PTHREAD_RWLOCK_INITIALIZER, PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Handle new elision field. * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros. * sysdeps/arm/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/sh/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/tile/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/a/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. * sysdeps/unix/sysv/linux/x86/elision-conf.c: (elision_init): Set try_xbegin to zero when no RTM. * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Change __pad1 to __rwelision. (__PTHREAD_RWLOCK_ELISION_EXTRA): Add. 2014-06-13 Andi Kleen * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock): Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock. * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock): Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock. 2014-06-13 Meador Inge [BZ #16996] * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure that the cached result has been set before returning it. 2014-06-12 Roland McGrath * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ... * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ... * sysdeps/sparc/nptl/bits/semaphore.h: ... here. * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ... * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here. * nptl/sysdeps/sparc/Makefile: Moved ... * sysdeps/sparc/nptl/Makefile: ... here. * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ... * sysdeps/sparc/nptl/tcb-offsets.sym: ... here. * nptl/sysdeps/sparc/tls.h: Moved ... * sysdeps/sparc/nptl/tls.h: ... here. * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ... * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here. * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ... * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here. * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ... * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here. * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ... * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here. * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ... * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here. * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ... * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here. * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ... * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here. * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ... * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here. * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here. Update #include. * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here. Update #include. * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here. Update #include. * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ... * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here. Update #include. * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro. * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file. * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed. * sysdeps/pthread/posix-timer.h: Include . (struct list_links): Type removed. (struct thread_node, struct timer_node): Replace struct list_links with struct list_head. (list_unlink_ip): Likewise. * sysdeps/pthread/timer_routines.c (timer_free_list, thread_free_list, thread_active_list): Likewise. (list_append, list_insbefore): Likewise. (list_init): Function removed. (thread_init, init_module): Use INIT_LIST_HEAD instead. * sysdeps/nptl/Makefile: Move tst-timer bits to ... * sysdeps/pthread/Makefile: ... here, new file. * nptl/sysdeps/unix/sysv/linux/Implies: Moved ... * sysdeps/nptl/Implies: ... here. * sysdeps/unix/sysv/linux/Implies: Add nptl. * nptl/sysdeps/pthread/list.h: Moved ... * include/list.h: ... here. * nptl/sysdeps/pthread/createthread.c: Moved ... * nptl/createthread.c: ... here. * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include. * nptl/sysdeps/pthread/pt-longjmp.c: Moved ... * nptl/pt-longjmp.c: ... here. * nptl/sysdeps/pthread/Makefile: Moved ... * sysdeps/nptl/Makefile: ... here. * nptl/sysdeps/pthread/Subdirs: Moved ... * sysdeps/nptl/Subdirs: ... here. * nptl/sysdeps/pthread/aio_misc.h: Moved ... * sysdeps/nptl/aio_misc.h: ... here. * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ... * sysdeps/nptl/bits/libc-lock.h: ... here. * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ... * sysdeps/nptl/bits/libc-lockP.h: ... here. * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ... * sysdeps/nptl/bits/stdio-lock.h: ... here. * nptl/sysdeps/pthread/configure: Moved ... * sysdeps/nptl/configure: ... here. * nptl/sysdeps/pthread/configure.ac: Moved ... * sysdeps/nptl/configure.ac: ... here. * nptl/sysdeps/pthread/gai_misc.h: Moved ... * sysdeps/nptl/gai_misc.h: ... here. * nptl/sysdeps/pthread/librt-cancellation.c: Moved ... * sysdeps/nptl/librt-cancellation.c: ... here. * nptl/sysdeps/pthread/malloc-machine.h: Moved ... * sysdeps/nptl/malloc-machine.h: ... here. * nptl/sysdeps/pthread/pthread-functions.h: Moved ... * sysdeps/nptl/pthread-functions.h: ... here. * nptl/sysdeps/pthread/pthread.h: Moved ... * sysdeps/nptl/pthread.h: ... here. * nptl/sysdeps/pthread/setxid.h: Moved ... * sysdeps/nptl/setxid.h: ... here. * nptl/sysdeps/pthread/sigfillset.c: Moved ... * sysdeps/nptl/sigfillset.c: ... here. * nptl/sysdeps/pthread/tcb-offsets.h: Moved ... * sysdeps/nptl/tcb-offsets.h: ... here. * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ... * sysdeps/nptl/tst-mqueue8x.c: ... here. * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ... * sysdeps/