Stop test-in-container trying to run other-OS binaries.
[glibc.git] / ChangeLog
blob4138a08b4e1d94a7de08ffa210e388b97637a6bf
1 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
3         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4         dynamic linker unless [$(run-built-tests) = yes].
6 2018-12-03  DJ Delorie  <dj@delorie.com>
8         * support/test-container.c (check_for_unshare_hints): New.
9         (main): Call it if unshare fails.  Add support for "su" scriptlet
10         command.
12 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
14         * scripts/gen-as-const.py (compute_c_consts): Take an argument
15         'START' to indicate that start text should be output.
16         (gen_test): Likewise.
17         (main): Generate 'START' for first symbol or '--' line, or at end
18         of input if not previously generated.
20 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
22         [BZ #19767]
23         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
24         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
25         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
26         ALWAYS_USE_VSYSCALL.
28 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30         [BZ #23913]
31         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
32         new_argv by one.
34 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
36         [BZ #23923]
37         * locale/programs/localedef.c: Declare boolean hard_links default true.
38         (options): Add --no-hard-links option.
39         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
40         * locale/programs/localedef.h: Declare prototype for hard_links.
41         * locale/programs/locfile.c (write_locale_data): Don't use hard
42         links if hard_links is false.
44 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
46         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
47         cpu_features_basic.
48         (__cache_sysconf): Likewise.
49         (init_cacheinfo): Likewise.
50         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
51         populate COMMON_CPUID_INDEX_80000007 and
52         COMMON_CPUID_INDEX_80000008.
53         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
54         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
55         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
56         (init_cpu_features): Use _Static_assert on
57         index_arch_Fast_Unaligned_Load.
58         __get_cpuid_registers and __get_arch_feature.  Updated for
59         cpu_features_basic.  Set stepping in cpu_features.
60         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
61         (FEATURE_INDEX_2): New.
62         (FEATURE_INDEX_MAX): Changed to enum.
63         (COMMON_CPUID_INDEX_D_ECX_1): New.
64         (COMMON_CPUID_INDEX_80000007): Likewise.
65         (COMMON_CPUID_INDEX_80000008): Likewise.
66         (cpuid_registers): Likewise.
67         (cpu_features_basic): Likewise.
68         (CPU_FEATURE_USABLE): Likewise.
69         (bit_arch_XXX_Usable): Likewise.
70         (cpu_features): Use cpuid_registers and cpu_features_basic.
71         (bit_arch_XXX): Reweritten.
72         (bit_cpu_XXX): Likewise.
73         (index_cpu_XXX): Likewise.
74         (reg_XXX): Likewise.
75         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
76         <support/check.h>.
77         (CHECK_CPU_FEATURE): New.
78         (CHECK_CPU_FEATURE_USABLE): Likewise.
79         (cpu_kinds): Likewise.
80         (do_test): Print vendor, family, model and stepping.  Check
81         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
82         (TEST_FUNCTION): Removed.
83         Include <support/test-driver.c> instead of
84         "../../test-skeleton.c".
85         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
86         Check POPCNT instead of POPCOUNT.
87         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
89 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
91         * scripts/gen-as-const.py (main): Avoid emitting empty line when
92         there is no element in `consts'.
94 2018-12-01  Florian Weimer  <fweimer@redhat.com>
96         * support/support_capture_subprocess.c
97         (support_capture_subprocess): Check that pipe descriptors have
98         expected values.  Close original pipe descriptors in subprocess.
100 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
102         [BZ #23032]
103         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
104         attr with __pthread_default_barrierattr.
105         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
106         attr with __pthread_default_condattr.
107         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
108         attr with __pthread_default_mutexattr.
109         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
110         attr with __pthread_default_rwlockattr.
112 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
114         * manual/tunables.texi (POSIX Thread Tunables): New node.
115         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
116         * nptl/nptl-init.c: Include pthread_mutex_conf.h
117         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
118         __pthread_tunables_init.
119         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
120         (max_adaptive_count): Define.
121         * nptl/pthread_mutex_conf.c: New file.
122         * nptl/pthread_mutex_conf.h: New file.
123         * sysdeps/generic/adaptive_spin_count.h: New file.
124         * sysdeps/nptl/dl-tunables.list: New file.
125         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
126         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
127         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
128         Likewise.
130 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
132         [BZ #20544]
133         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
134         * stdlib/on_exit.c (__on_exit): Likewise.
135         * stdlib/Makefile (tests): Add tst-bz20544.
136         * stdlib/tst-bz20544.c: New test.
138 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
140         [BZ #19767]
141         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
142         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
143         New.
145 2018-11-30  Florian Weimer  <fweimer@redhat.com>
147         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
148         Extend error logging.
149         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
150         symbol.
152 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
154         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
155         __sigismember instead of sigismember.
156         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
157         cancel_handler): New definitions.
158         (do_system): Use posix_spawn instead of fork and execl and remove
159         reentracy code.
160         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
161         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
162         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
163         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
164         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
165         * sysdeps/unix/sysv/linux/system.c: Likewise.
167         [BZ #22834]
168         [BZ #17490]
169         * NEWS: Add new semantic for atfork with popen and system.
170         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
171         fork and execl.
173 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
175         [BZ #23690]
176         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
177         modification order when accessing reloc_result->addr.
178         * include/link.h (reloc_result): Add field init.
179         * nptl/Makefile (tests): Add tst-audit-threads.
180         (modules-names): Add tst-audit-threads-mod1 and
181         tst-audit-threads-mod2.
182         Add rules to build tst-audit-threads.
183         * nptl/tst-audit-threads-mod1.c: New file.
184         * nptl/tst-audit-threads-mod2.c: Likewise.
185         * nptl/tst-audit-threads.c: Likewise.
186         * nptl/tst-audit-threads.h: Likewise.
188 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
190         * scripts/gen-as-const.py: New file.
191         * scripts/gen-as-const.awk: Remove.
192         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
193         gen-as-const.py.
194         ($(objpfx)test-as-const-%.c): Likewise.
196 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
198         * elf/dl-exception.c: Include <_itoa.h>.
200 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
202         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
203         returned by __f_setlk.
205 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
206             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
208         * elf/Makefile (tests-internal): Add tst-create_format1.
209         * elf/dl-exception.c (_dl_exception_create_format): Support
210         %x, %lx and %zx.
211         * elf/tst-create_format1.c: New file.
213 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
215         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
216         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
217         gnulib.)
218         * argp/argp-help.c (__argp_failure): Likewise.
220 2018-11-29  Mao Han  <han_mao@c-sky.com>
222         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
223         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
224         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
225         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
226         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
227         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
228         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
229         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
230         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
231         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
232         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
233         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
234         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
235         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
236         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
237         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
238         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
239         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
240         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
241         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
242         (R_CKCORE_TLS_TPOFF32): New defines.
244 2018-11-29  Florian Weimer  <fweimer@redhat.com>
246         * posix/Makefile (before-compile): Remove testcases.h and
247         ptestcases.h.
248         (generated): Add testcases.h and ptestcases.h.
249         (testcases.h, ptestcases.h): Move to $(objpfx).
250         (runtests.o): Add dependency on testcases.h.
251         (runptests.o): Add dependency on ptestcases.h.
252         * posix/testcases.h, posix/ptestcases.h: Remove files.
253         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
254         not touch posix/testcases.h and posix/ptestcases.h.
256 2018-11-28  Florian Weimer  <fweimer@redhat.com>
258         support: Add signal support to support_capture_subprocess_check.
259         * support/capture_subprocess.h (support_capture_subprocess_check):
260         Adjust comment and rename parameter.
261         * support/support_capture_subprocess_check.c
262         (print_actual_status): New function.
263         (support_capture_subprocess_check): Support negative
264         status_or_signal.  Call print_actual_status.
265         * support/tst-support_capture_subprocess.c (do_test): Call
266         support_capture_subprocess_check.
267         * libio/tst-vtables-common.c (termination_status)
268         (init_termination_status): Remove.
269         (check_for_termination): Adjust support_capture_subprocess_check
270         call.
271         (do_test): Remove call to init_termination_status.
273 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
275         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
276         source directory instead of a copy.
277         (CommandList.create_copy_dir): Remove.
279 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
281         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
283 2018-11-28  Florian Weimer  <fweimer@redhat.com>
285         * support/support.h (support_quote_string): Do not use str
286         parameter name.
288 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
290         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
291         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
293 2018-11-27  Florian Weimer  <fweimer@redhat.com>
295         * support/support.h (support_quote_string): Declare.
296         * support/support_quote_string.c: New file.
297         * support/tst-support_quote_string.c: Likewise.
298         * support/Makefile (libsupport-routines): Add
299         support_quote_string.
300         (tests): Add tst-support_quote_string.
302 2018-11-27  Florian Weimer  <fweimer@redhat.com>
304         [BZ #23927]
305         CVE-2018-19591
306         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
307         descriptor leak in case of ENODEV error.
309 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
311         [BZ #19767]
312         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
313         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
314         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
316 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
318         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
319         Error for unknown lines.
321 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
323         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
324         Touch additional files.
326 2018-11-26  Florian Weimer  <fweimer@redhat.com>
328         [BZ #23907]
329         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
330         double-frees.
332 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
334         [BZ #19767]
335         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
336         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
337         SHARED.  Include sysdep.h.
338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
339         ALWAYS_USE_VSYSCALL.
340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
341         ALWAYS_USE_VSYSCALL.
343 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
345         [BZ #19767]
346         * nptl/Makefile (tests-static): Add tst-cond11-static.
347         (tests): Likewise.
348         * nptl/tst-cond11-static.c: New File.
349         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
350         tst-affinity-static.
351         (tests): Likewise.
352         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
353         instead of SHARED.
354         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
355         (USE_VSYSCALL): Likewise.
356         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
357         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
358         instead of SHARED.
359         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
360         SHARED.
361         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
362         New.
364 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
366         [BZ #23915]
367         * sysdeps/unix/sysv/linux/arm/kernel-features.h
368         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
369         Undefine.
371 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
373         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
374         (tst-cet-legacy-1a-ARGS): New.
375         ($(objpfx)tst-cet-legacy-1a): New target.
376         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
378 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
380         * conform/conformtest.py (CompileSubTest.__init__): Set
381         self.run_early to False.
382         (ExecuteSubTest.__init__): Likewise.
383         (HeaderTests.run): Try running all non-optional, non-XFAILed
384         compilation tests in a single execution of the compiler.
386         * conform/conformtest.py (CompileSubTest): New class.
387         (ExecuteSubTest): Likewise.
388         (ElementTest.run): Rename to gen_subtests.  Append tests to
389         self.subtests instead of running them.
390         (ConstantTest.run): Likewise.
391         (SymbolTest.run): Likewise.
392         (TypeTest.run): Likewise.
393         (TagTest.run): Likewise.
394         (FunctionTest.run): Likewise.
395         (VariableTest.run): Likewise.
396         (MacroFunctionTest.run): Likewise.
397         (MacroStrTest.run): Likewise.
398         (HeaderTests.handle_test_line): Generate subtests for tests.
399         (HeaderTests.run): Run subtests for tests.
401 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
403         * math/Versions (GLIBC_2.29): Add pow.
404         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
405         symbol.
406         * math/w_pow.c: New file.
407         * sysdeps/i386/fpu/w_pow.c: New file.
408         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
409         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
410         and add necessary aliases.
411         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
412         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
413         * sysdeps/mach/hurd/i386/libm.abilist: Update.
414         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
415         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
416         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
417         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
418         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
419         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
420         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
421         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
422         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
423         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
424         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
425         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
430         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
431         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
432         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
433         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
434         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
435         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
436         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
437         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
438         __pow.
439         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
440         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
441         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
443 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
445         * math/Versions (GLIBC_2.29): Add log2.
446         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
447         symbol.
448         * math/w_log2.c: New file.
449         * sysdeps/i386/fpu/w_log2.c: New file.
450         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
451         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
452         and add necessary aliases.
453         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
454         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
455         * sysdeps/mach/hurd/i386/libm.abilist: Update.
456         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
457         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
458         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
459         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
460         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
461         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
462         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
463         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
464         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
465         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
466         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
467         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
472         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
473         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
474         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
475         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
476         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
477         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
478         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
480 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
482         * math/Versions (GLIBC_2.29): Add log.
483         * math/w_log_compat.c (__log_compat): Change to versioned compat
484         symbol.
485         * math/w_log.c: New file.
486         * sysdeps/i386/fpu/w_log.c: New file.
487         * sysdeps/ia64/fpu/e_log.S: Update.
488         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
489         and add necessary aliases.
490         * sysdeps/ieee754/dbl-64/w_log.c: New file.
491         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
492         * sysdeps/mach/hurd/i386/libm.abilist: Update.
493         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
494         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
495         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
496         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
497         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
498         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
499         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
500         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
501         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
502         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
503         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
504         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
509         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
510         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
511         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
512         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
513         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
514         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
515         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
516         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
517         __log.
518         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
519         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
520         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
521         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
523 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
525         * math/Versions (GLIBC_2.29): Add exp and exp2.
526         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
527         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
528         * math/w_exp_compat.c (__exp_compat): Likewise.
529         * math/w_exp.c: New file.
530         * math/w_exp2.c: New file.
531         * sysdeps/i386/fpu/w_exp.c: New file.
532         * sysdeps/i386/fpu/w_exp2.c: New file.
533         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
534         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
535         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
536         and add necessary aliases.
537         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
538         and add necessary aliases.
539         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
540         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
541         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
542         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
543         * sysdeps/mach/hurd/i386/libm.abilist: Update.
544         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
545         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
546         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
547         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
548         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
549         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
550         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
551         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
552         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
553         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
554         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
555         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
560         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
561         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
562         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
563         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
564         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
565         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
566         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
567         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
568         (__ieee754_exp): Rename to __exp.
569         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
570         (__ieee754_exp): Rename to __exp.
571         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
572         (__ieee754_exp): Rename to __exp.
573         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
574         __exp.
575         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
577 2018-11-20  DJ Delorie  <dj@redhat.com>
579         * malloc/malloc.c (tcache_entry): Add key field.
580         (tcache_put): Set it.
581         (tcache_get): Likewise.
582         (_int_free): Check for double free in tcache.
583         * malloc/tst-tcfree1.c: New.
584         * malloc/tst-tcfree2.c: New.
585         * malloc/Makefile: Run the new tests.
586         * manual/probes.texi: Document memory_tcache_double_free probe.
588         * dlfcn/dlerror.c (check_free): Prevent double frees.
590 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
592         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
594 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
596         * conform/conformtest.py (ElementTest.run): Use unique identifiers
597         in tests.  Use names for format arguments.
598         (ConstantTest.run): Likewise.
599         (SymbolTest.run): Likewise.
600         (TypeTest.run): Likewise.
601         (TagTest.run): Likewise.
602         (FunctionTest.run): Likewise.
603         (VariableTest.run): Likewise.
604         (MacroFunctionTest.run): Likewise.
605         (MacroStrTest.run): Likewise.
606         (HeaderTests.__init__): Set self.num_tests.
607         (HeaderTests.handle_test_line): Set test.num.  Increment
608         self.num_tests.
610 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
612         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
613         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
614         SEEK_SET.
616 2018-11-19  Mao Han  <han_mao@c-sky.com>
618         * scripts/config.guess: Update to version 2018-08-29.
619         * scripts/config.sub: Update to version 2018-08-29.
621 2018-11-19  Florian Weimer  <fweimer@redhat.com>
623         support: Print timestamps in timeout handler.
624         * support/support_test_main.c (print_timestamp): New function.
625         (signal_handler): Use it to print the termination time and the
626         time of the last write to standard output.
628 2018-11-16  Zack Weinberg  <zackw@panix.com>
629             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
631         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
632         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
633         argument.
634         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
635         and add flags argument.  Check flags instead of __ldbl_is_dbl when
636         deciding whether to set is_long_double.
637         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
638         passing zero for flags argument.
639         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
641         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
642         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
643         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
644         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
645         variable names.  Remove libc_hidden_def/libc_hidden_proto from
646         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
647         longer called from within the library.
648         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
649         for __nldbl___vstrfmon_l, declare it explicitly.
651         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
653 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
655         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
656         macros
657         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
658         F_SETLK64, F_SETLKW64, respectively.
659         * sysdeps/mach/hurd/f_setlk.c: New file.
660         * sysdeps/mach/hurd/f_setlk.h: New file.
661         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
662         f_setlk.
663         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
664         (__libc_fcntl): Move non-flock operations to...
665         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
666         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
668 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
670         mktime: DEBUG_MKTIME cleanup
671         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
672         And it’s no longer needed now that glibc and Gnulib both have
673         their own testing mechanisms for mktime.
674         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
676         mktime: fix non-EOVERFLOW errno handling
677         [BZ#23789]
678         mktime was not properly reporting failures when the underlying
679         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
680         them like EOVERFLOW failures, and set errno to EOVERFLOW.
681         The problem could happen on non-glibc platforms, with Gnulib.
682         * time/mktime.c (guess_time_tm): Remove, replacing with ...
683         (tm_diff): ... this simpler function, which does not change errno.
684         All callers changed to deal with errno themselves.
685         (ranged_convert, __mktime_internal): Return failure immediately if
686         the underlying function reports any failure other than EOVERFLOW.
687         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
688         gap code fails.
690         mktime: fix bug with Y2038 DST transition
691         [BZ#23789]
692         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
693         mishandle a DST transition that jumps over the Y2038 boundary.
694         No such DST transitions are known so this is only a theoretical
695         bug, but we might as well do things right.
697         mktime: make more room for overflow
698         [BZ#23789]
699         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
700         This is so that we can add tm_diff results to a previous guess,
701         which will be useful in a later patch.
703         mktime: simplify offset guess
704         [BZ#23789]
705         * time/mktime.c (__mktime_internal): Omit excess precision.
707         mktime: new test for mktime failure
708         [BZ#23789]
709         Based on a test suggested by Albert Aribaud in:
710         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
711         * time/Makefile (tests): Add bug-mktime4.
712         * time/bug-mktime4.c: New file.
714         mktime: fix EOVERFLOW bug
715         [BZ#23789]
716         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
717         Include libc-config.h, not config.h, for __set_errno.
718         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
720 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
722         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
723         __attribute_copy__ to copy attributes from name. Drop static qualifier
724         to avoid warnings about leaf attribute not having effect on static
725         functions.
727 2018-11-13  Florian Weimer  <fweimer@redhat.com>
729         * malloc/malloc.c (fastbin_push_entry): New function.
730         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
731         (REMOVE_FB): Remove macro.
732         (_int_malloc): Use fastbin_pop_entry and reindent.
733         (_int_free): Use fastbin_push_entry.
734         (malloc_consolidate): Use atomic_exchange_acquire.
736 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
738         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
739         alias attribute, not with strong_alias.
741         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
742         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
743         with additional parameter thread.
744         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
745         in terms of __hidden_ver2.
746         (hidden_tls_def): New macro.
747         (libc_hidden_tls_def): Likewise.
748         (rtld_hidden_tls_def): Likewise.
749         (libm_hidden_tls_def): Likewise.
750         (libmvec_hidden_tls_def): Likewise.
751         (libresolv_hidden_tls_def): Likewise.
752         (librt_hidden_tls_def): Likewise.
753         (libdl_hidden_tls_def): Likewise.
754         (libnss_files_hidden_tls_def): Likewise.
755         (libnsl_hidden_tls_def): Likewise.
756         (libnss_nisplus_hidden_tls_def): Likewise.
757         (libutil_hidden_tls_def): Likewise.
758         (libutil_hidden_tls_def): Likweise.
759         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
760         libc_hidden_tls_def.
761         (__sim_disabled_exceptions_thread): Likewise.
762         (__sim_round_mode_thread): Likewise.
764         * sysdeps/sparc/sparc-ifunc.h [SHARED]
765         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
766         copy attributes from name.
768 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
770         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
771         Use __attribute_copy__ to copy attributes from name.
773         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
774         with __hidden_ver1 call.
775         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
776         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
777         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
778         (__cosf): Do not declare here.
779         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
780         (__sincosf): Do not declare here.
781         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
782         (__sinf): Do not declare here.
784         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
785         (__BIG_ENDIAN): Likewise.
786         (__BYTE_ORDER): Likewise.
787         (strong_alias): Likewise.
788         (_strong_alias): Likewise.
790 2018-11-12  Florian Weimer  <fweimer@redhat.com>
792         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
793         function.  Move after the definition of in_smallbin_range.  Do not
794         use __builtin_expect for paths that lead to a noreturn function.
795         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
796         because it is unclear whether this is in fact an unlikely
797         condition.
798         (_int_malloc, _int_free): Adjust.
799         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
800         variables.
801         * malloc/arena.c (heap_trim): Likewise.
803 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
805         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
806         it, free it if needed.
807         (reauthenticate): Test and use ccwdir.
808         (child_init_port): In non-resetids case, test and use ccwdir.
809         (child_chdir): New nested function to set ccwdir.
810         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
811         * hurd/hurd/port.h (_hurd_port_move): New function.
812         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
813         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
814         * hurd/Versions (_hurd_port_move): Export function.
815         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
816         symbol.
817         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
818         of dtablesize for allocating dtable_cloexec.
820 2018-11-09  Martin Sebor  <msebor@redhat.com>
822         * include/libc-symbols.h (__attribute_copy__): Define macro unless
823         it's already defined.
824         (_strong_alias): Use __attribute_copy__.
825         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
826         * misc/sys/cdefs.h (__attribute_copy__): New macro.
827         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
828         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
829         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
830         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
831         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
832         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
833         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
834         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
835         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
836         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
837         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
838         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
839         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
840         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
841         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
842         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
843         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
845 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
847         * misc/tst-efgcvt.c: Include support/check.h and
848         support/test-driver.c.  Do not include test-skeleton.c.
849         (error_count): Remove.
850         (output_error): Replace increments to error_count with calls to
851         support_record_failure.
852         (output_r_error): Likewise.
853         (special): Likewise.
854         (do_test): Unconditionally return zero.
855         (TEST_FUNCTION): Remove.
857 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
859         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
860         not $(@D)/scratch.
861         ($(linknamespace-header-tests)): Likewise.
863         * conform/conformtest.py: New file.
864         * conform/conformtest.pl: Remove.
865         * conform/GlibcConform.pm: Likewise.
866         * conform/glibcconform.py (KEYWORDS_C90): New constant.
867         (KEYWORDS_C99): Likewise.
868         (KEYWORDS): Likewise.
869         * conform/Makefile ($(conformtest-header-tests)): Use
870         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
871         option.  Use --header instead of --headers.
872         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
873         function entries.
874         * conform/data/spawn.h-data: Likewise.
875         * conform/data/fcntl.h-data (openat): Add space after function
876         name.
877         * conform/data/wchar.h-data (wcscasecmp): Likewise.
878         (wcscasecmp_l): Likewise.
879         * conform/data/termios.h-data (c_cc): Add space after element
880         name.
882 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
884         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
885         instead of manually comparing and reporting mismatching strings.
886         * misc/tst-ldbl-error.c (do_one_test): Likewise.
887         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
889 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
891         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
892         __ASSUME_SOCKETCALL.
893         * sysdeps/unix/sysv/linux/i386/kernel-features.h
894         (__ASSUME_SOCKETCALL): Remove.
895         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
896         (__ASSUME_SOCKETCALL): Likewise.
897         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
898         (__ASSUME_SOCKETCALL): Likewise.
899         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
900         (__ASSUME_SOCKETCALL): Likewise.
901         * sysdeps/unix/sysv/linux/s390/kernel-features.h
902         (__ASSUME_SOCKETCALL): Likewise.
903         * sysdeps/unix/sysv/linux/sh/kernel-features.h
904         (__ASSUME_SOCKETCALL): Likewise.
905         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
906         (__ASSUME_SOCKETCALL): Likewise.
908 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
910         [BZ #23509]
911         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
912         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
913         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
914         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
915         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
916         lc_unknown.
918 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
920         [BZ #17630]
921         * resolv/tst-resolv-network.c: Add test for getnetbyname.
923 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
925         [BZ #23867]
926         * sysdeps/unix/sysv/linux/arm/kernel-features.h
927         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
928         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
929         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
931 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
933         * support/support_test_compare_string.c
934         (support_test_compare_string): Fix printf format.
936 2018-11-07  Florian Weimer  <fweimer@redhat.com>
938         Implement TEST_COMPARE_STRING.
939         * support/check.h (TEST_COMPARE_STRING): Define.
940         (support_test_compare_string): Declare.
941         * support/Makefile (libsupport-routines): Add
942         support_test_compare_string.
943         (tests): Add tst-test_compare_string.
944         * support/support_test_compare_string.c: New file.
945         * support/tst-test_compare_string.c: Likewise.
947 2018-11-07  Andreas Schwab  <schwab@suse.de>
949         [BZ #23864]
950         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
951         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
952         Undef.
954 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
956         [BZ #23862]
957         * sysdeps/unix/sysv/linux/sh/kernel-features.h
958         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
959         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
960         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
961         Likewise.
963 2018-11-06  Florian Weimer  <fweimer@redhat.com>
965         [BZ #17405]
966         * posix/Makefile (routines): Add spawn_faction_addchdir.
967         (tests): Add tst-spawn-chdir.
968         * posix/Versions (GLIBC_2.29): Add
969         posix_spawn_file_actions_addchdir_np.
970         * posix/spawn_faction_addchdir.c: New file.
971         * posix/spawn_faction_destroy.c
972         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
973         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
974         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
975         chdir_action.
976         * posix/tst-spawn-chdir.c: New file.
977         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
978         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
979         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
980         posix_spawn_file_actions_addchdir_np.
981         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
982         Likewise.
983         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
984         Likewise.
985         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
986         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
987         Likewise.
988         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
989         Likewise.
990         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
991         Likewise.
992         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
993         Likewise.
994         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
995         Likewise.
996         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
997         Likewise.
998         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
999         (GLIBC_2.29): Likewise.
1000         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1001         (GLIBC_2.29): Likewise.
1002         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1003         (GLIBC_2.29): Likewise.
1004         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1005         (GLIBC_2.29): Likewise.
1006         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
1007         Likewise.
1008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1009         (GLIBC_2.29): Likewise.
1010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1011         (GLIBC_2.29): Likewise.
1012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
1013         (GLIBC_2.29): Likewise.
1014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
1015         (GLIBC_2.29): Likewise.
1016         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
1017         Likewise.
1018         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
1019         Likewise.
1020         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
1021         Likewise.
1022         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
1023         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
1024         Likewise.
1025         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
1026         Likewise.
1027         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
1028         Likewise.
1029         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
1030         Likewise.
1032 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1034         * misc/Makefile (tests): Add tst-ldbl-error.
1035         * misc/tst-ldbl-error.c: New file.
1037 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1039         * misc/Makefile (tests): Add tst-ldbl-warn.
1040         * misc/tst-ldbl-warn.c: New file.
1042 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1044         * argp/Makefile (tests): Add tst-ldbl-argp.
1045         * argp/tst-ldbl-argp.c: New file.
1047 2018-11-05  Arjun Shankar  <arjun@redhat.com>
1049         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
1050         __gconv_path_elem and call __gconv_get_path unconditionally.
1052 2018-11-05  Andreas Schwab  <schwab@suse.de>
1054         [BZ #22927]
1055         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
1056         creating the first helper thread failed.
1058 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1060         * sysdeps/mach/hurd/msync.c: New file.
1062 2018-11-02  Florian Weimer  <fweimer@redhat.com>
1064         * support/shell-container.c (copy_func): Call
1065         support_copy_file_range instead of copy_file_range to support
1066         cross-device copies.
1068 2018-11-02  Florian Weimer  <fweimer@redhat.com>
1070         * support/test-container.c: Include <libc-pointer-arith.h> for
1071         ALIGN_UP.
1073 2018-11-01  Zong Li  <zong@andestech.com>
1075         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
1076         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
1077         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
1078         (__FP_FRAC_SET_8): Add implementation for RV32 use.
1080         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
1081         variable to avoid overlap arguments.
1083 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
1085         * posix/bug-regex22.c (main): Use puts with distinct error
1086         messages for unexpected success of re_compile_pattern, not printf
1087         with NULL argument to %s.
1089         * stdio-common/bug22.c: Include <libc-diag.h>.
1090         (do_test): Disable -Wformat-overflow= warnings around fprintf
1091         calls outputting more than INT_MAX characters.
1092         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
1093         around printf call with NULL %s argument.
1095         [BZ #23848]
1096         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
1097         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
1098         Undefine.
1099         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1100         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1101         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1102         (__ASSUME_SENDTO_SYSCALL): Likewise.
1103         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1104         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
1105         [!__arch64__].
1106         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1107         (__ASSUME_CONNECT_SYSCALL): Likewise.
1108         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1109         (__ASSUME_RECVFROM_SYSCALL): Likewise.
1110         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
1111         Define.
1112         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
1113         Likewise.
1114         [__LINUX_KERNEL_VERSION >= 0x040400]
1115         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
1116         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
1117         Remove.
1118         (listen): Likewise.
1119         (setsockopt): Likewise.
1121 2018-11-01  Fredrik Noring  <noring@nocrew.org>
1123         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
1124         with the ISA override.
1126 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
1128         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
1129         #endif.
1131 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1133         * manual/errno.texi (EIEIO): Document how translators should
1134         translate the error message.
1135         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
1136         printing trailing whitespaces refused by git.
1137         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
1138         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1139         * hurd/Makefile (user-interfaces): Add pci.
1141 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
1143         * conform/linknamespace.py: New file.
1144         * conform/linknamespace.pl: Remove file.
1145         * conform/Makefile ($(linknamespace-header-tests)): Use
1146         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
1147         option.
1149 2018-10-30  Florian Weimer  <fweimer@redhat.com>
1151         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
1152         memory leaks.
1154 2018-10-30  Florian Weimer  <fweimer@redhat.com>
1156         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
1158 2018-10-30  Florian Weimer  <fweimer@redhat.com>
1160         * stdlib/tst-strtod-overflow.c (do_test): Switch to
1161         support_blob_repeat.
1163 2018-10-30  Florian Weimer  <fweimer@redhat.com>
1165         Avoid spurious test failures in stdlib/test-bz22786.
1166         * support/Makefile (libsupport-routines): Add blob_repeat.
1167         (tests): Add tst-support_blob_repeat.
1168         * support/blob_repeat.h: New file.
1169         * support/blob_repeat.c: Likewise.
1170         * support/tst-support_blob_repeat.c: Likewise.
1171         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
1172         support_blob_repeat_allocate.
1174 2018-10-30  Andreas Schwab  <schwab@suse.de>
1176         [BZ #23125]
1177         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
1178         Don't use tail call.
1179         * elf/tst-unwind-main.c: New file.
1180         * elf/Makefile (tests): Add tst-unwind-main.
1181         (CFLAGS-tst-unwind-main.c): Define.
1183 2018-10-29  Sergi Almacellas Abellana <sergi@koolpi.com>
1185         [BZ #23791]
1186         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
1187         n_cs_precedes to 0.
1188         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
1190 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
1192         * conform/glibcconform.py: Do not import shutil.
1193         (list_exported_functions): Use tempfile.TemporaryDirectory instead
1194         of mkdtemp.
1196         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
1197         critic_missing for versions before 3.4.
1198         * configure: Regenerated.
1199         * manual/install.texi (Tools for Compilation): Document
1200         requirement for Python to build glibc.
1201         * INSTALL: Regenerated.
1202         * Rules [PYTHON]: Make code unconditional.
1203         * benchtests/Makefile [PYTHON]: Likewise.
1204         * conform/Makefile [PYTHON]: Likewise.
1205         * manual/Makefile [PYTHON]: Likewise.
1206         * math/Makefile [PYTHON]: Likewise.
1208 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1210         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
1211         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
1212         answer to interrupt_operation, return EIEIO instead of EINTR.
1213         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
1214         _hurd_intr_rpc_msg_about_to global point to start of controlled
1215         assembly snippet. Make it check canceled flag.
1216         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
1217         the _hurd_intr_rpc_msg_about_to point.
1218         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
1219         issue, remove cancel flag check.
1221 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
1223         * scripts/build-many-glibcs.py: Remove compatibility for missing
1224         os.cpu_count and re.fullmatch.
1226 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1228         [BZ #23822]
1229         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
1230         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
1231         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
1233 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
1235         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
1236         macro.
1238 2018-10-25  Florian Weimer  <fweimer@redhat.com>
1240         [BZ #23562]
1241         [BZ #23821]
1242         XFAIL siginfo_t si_band conform test on sparc64.
1243         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
1244         (__SI_BAND_TYPE): Only override long int default type on sparc64.
1245         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
1246         (conformtest-xfail-conds): Add sparc64-linux.
1247         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
1248         sparc64.
1249         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
1251 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
1253         * elf/elf.h (NT_MIPS_DSP): New macro.
1254         (NT_MIPS_FP_MODE): Likewise.
1256 2018-10-25  Zong Li  <zong@andestech.com>
1258         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
1259         name by adding the file extension (.so).
1261 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1263         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
1264         (test-xfail-ISO11/threads.h/linknamespace,
1265         test-xfail-ISO11/threads.h/conform): Add.
1267 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
1269         * math/gen-libm-test.py: Import os.
1270         (ALL_FLOATS_MANUAL): New constant.
1271         (ALL_FLOATS_SUFFIX): Likewise.
1272         (Ulps.all_functions): New function.
1273         (real_all_ulps): Likewise.
1274         (generate_err_table_sub): Likewise.
1275         (generate_err_table): Likewise.
1276         (main): Handle -s and -m options.
1277         * manual/libm-err-tab.pl: Remove.
1278         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
1279         instead of libm-err-tab.pl.
1280         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
1281         != no].
1282         * manual/install.texi (Tools for Compilation): Document
1283         requirement for Python to build manual.
1284         * INSTALL: Regenerated.
1286 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
1288         * bits/time64.h: New file.
1289         * include/time.h: Replace internal_time_t with __time64_t.
1290         * posix/bits/types (__time64_t): Add.
1291         * stdlib/Makefile: Add bits/time64.h to includes.
1292         * time/tzfile.c: Replace internal_time_t with __time64_t.
1294 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1296         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
1297         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
1298         __posix_spawn_file_actions_init, __posix_spawnattr_init,
1299         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
1300         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
1301         prototype.
1302         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
1303         * posix/spawn_faction_addclose.c
1304         (__posix_spawn_file_actions_addclose): Add hidden definition.
1305         * posix/spawn_faction_adddup2.c
1306         (__posix_spawn_file_actions_adddup2): Likewise.
1307         * posix/spawn_faction_destroy.c
1308         (__posix_spawn_file_actions_destroy): Likewise.
1309         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
1310         Likewise.
1311         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
1312         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
1313         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
1314         Likewise.
1315         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
1316         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
1317         Likewise.
1319 2018-10-24  Andreas Schwab  <schwab@suse.de>
1321         [BZ #18093]
1322         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
1323         format cache.
1324         * elf/cache.c (print_cache): Likewise.
1326 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
1328         * bits/timesize.h: New file.
1329         * stdlib/Makefile (headers): Add bits/timesize.h.
1330         * sysdeps/unix/sysv/linux/bits/msq-pad.h
1331         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
1332         * sysdeps/unix/sysv/linux/bits/sem-pad.h
1333         (__SEM_PAD_AFTER_TIME): Likewise.
1334         * sysdeps/unix/sysv/linux/bits/shm-pad.h
1335         (__SHM_PAD_AFTER_TIME): Likewise.
1336         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
1337         (__MSQ_PAD_BEFORE_TIME): Likewise.
1338         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
1339         (__SEM_PAD_BEFORE_TIME): Likewise.
1340         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
1341         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
1342         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
1343         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
1344         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
1345         (__MSQ_PAD_BEFORE_TIME): Likewise.
1346         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
1347         (__SEM_PAD_BEFORE_TIME): Likewise.
1348         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
1349         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
1350         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
1351         (__MSQ_PAD_BEFORE_TIME): Likewise.
1352         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
1353         (__SEM_PAD_BEFORE_TIME): Likewise.
1354         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
1355         (__SHM_PAD_BEFORE_TIME): Likewise.
1356         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
1357         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
1358         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
1360 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
1362         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
1363         USE_RDTSCP is defined.
1364         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
1365         USE_RDTSCP is defined.
1367 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1369         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
1370         defined.
1372         [BZ #23709]
1373         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
1374         independently of other flags.
1376 2018-10-23  Florian Weimer  <fweimer@redhat.com>
1378         * time/tst-mktime2.c (N_STRINGS): Remove.
1379         (set_timezone): New function.
1380         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
1381         (mktime_test1): Report localtime failure and check errno value.
1382         Use TEST_COMPARE.
1383         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
1384         (do_test): Remove alarm call. Use set_timezone and array_length.
1386 2018-10-23  Andreas Schwab  <schwab@suse.de>
1388         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
1389         (__start_context): Use END instead of PSEUDO_END.
1391 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
1393         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1394         version to 4.19.
1396         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1397         version to 4.19.
1399         [BZ #23793]
1400         * wcsmbs/c32rtomb.c: New file.
1401         * wcsmbs/mbrtoc32.c: Likewise.
1402         * wcsmbs/tst-c32-state.c: Likewise.
1403         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
1404         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
1405         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
1406         (tests): Add tst-c32-state.
1407         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
1408         $(gen-locales).
1410 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1412         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
1413         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
1415 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
1417         [BZ #23794]
1418         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
1419         pair and return 0 in that case, and use saved character to
1420         interpret following character.
1421         * wcsmbs/tst-c16-surrogate.c: New file.
1422         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
1423         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
1424         Depend on $(gen-locales)
1426 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
1428         [BZ #23562]
1429         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
1430         (struct siginfo_t): Use correct type for si_band.
1432 2018-10-19  Florian Weimer  <fweimer@redhat.com>
1434         [BZ #23689]
1435         * resource/bits/types/struct_rusage.h (struct rusage): Update
1436         comment on struct.  Remove extraneous field comment.
1438 2018-10-18  David S. Miller  <davem@davemloft.net>
1440         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
1441         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
1442         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
1443         sysdep_routines in subdir elf.
1444         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
1445         version for __vdso_clock_gettime.
1446         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
1447         Define.
1448         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
1449         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
1451         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
1453 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
1455         * sysdeps/i386/init-arch.h: Removed.
1456         * sysdeps/i386/i586/init-arch.h: Likewise.
1457         * sysdeps/i386/i686/init-arch.h: Likewise.
1458         * sysdeps/i386/i686/hp-timing.h: Likewise.
1459         * sysdeps/x86_64/hp-timing.h: Likewise.
1460         * sysdeps/i386/isa.h: New file.
1461         * sysdeps/i386/i586/isa.h: Likewise.
1462         * sysdeps/i386/i686/isa.h: Likewise.
1463         * sysdeps/x86_64/isa.h: Likewise.
1464         * sysdeps/x86/hp-timing.h: New file.
1465         * sysdeps/x86/init-arch.h: Include <isa.h>.
1467 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
1469         * math/libm-test-pow.inc (pow_test_data): Do not allow
1470         divide-by-zero exception for pow(+/- 0, -Inf).
1472 2018-10-17  Zack Weinberg  <zackw@panix.com>
1474         * manual/job.texi (Job Control is Optional): Remove node, as
1475         job control has not been optional in quite some time.
1476         (Job Control): Mention briefly that systems older than
1477         POSIX.1-2001 might not support job control.
1478         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
1479         defined on systems conforming to POSIX.1-2001.
1481 2018-10-17  Arjun Shankar  <arjun@redhat.com>
1483         [BZ #22062]
1484         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
1485         indentation.
1486         * (__gconv_read_conf): Mark function static.
1487         * (once): New static variable.
1488         * (__gconv_load_conf): New function.
1489         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
1490         * iconv/gconv_db.c (once): Remove static variable.
1491         * (__gconv_compare_alias): Use __gconv_load_conf instead of
1492         __gconv_read_conf.
1493         * (__gconv_find_transform): Likewise.
1494         * iconv/tst-iconv-mt.c: New test.
1495         * iconv/Makefile: Add tst-iconv_mt.
1497 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
1499         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1500         bits/shm-pad.h.
1501         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
1502         (shmatt_t): Define as __syscall_ulong_t.
1503         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
1504         and [__SHM_PAD_AFTER_TIME].
1505         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
1506         Define shm_segsz and associated padding based on
1507         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
1508         Use __syscall_ulong_t instead of unsigned long int.
1509         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
1510         unsigned long int.
1511         [__USE_MISC] (struct shm_info): Likewise.
1512         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
1513         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
1514         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
1515         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
1516         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
1517         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
1518         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
1519         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1520         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1521         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1522         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
1524         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1525         bits/shmlba.h.
1526         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
1527         (SHMLBA): Remove macro.
1528         (__getpagesize): Remove function declaration.
1529         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
1530         <bits/shmlba.h>.
1531         (SHMLBA): Remove macro.
1532         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
1533         <bits/shmlba.h>.
1534         (SHMLBA): Remove macro.
1535         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
1536         <bits/shmlba.h>.
1537         (SHMLBA): Remove macro.
1538         (__getpagesize): Remove function declaration.
1539         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
1540         <bits/shmlba.h>.
1541         (SHMLBA): Remove macro.
1542         (__getshmlba): Remove function declaration.
1543         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
1544         (SHMLBA): Remove macro.
1545         (__getpagesize): Remove function declaration.
1546         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
1547         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
1548         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
1549         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
1550         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
1551         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
1552         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
1553         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
1554         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
1555         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
1557 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
1559         [BZ #23275]
1560         * nptl/tst-mutex10.c: New File.
1561         * nptl/Makefile (tests): Add tst-mutex10.
1562         (tst-mutex10-ENV): New variable.
1563         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
1564         Ensure that elision path is used if elision is available.
1565         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
1566         Likewise.
1567         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
1568         Likewise.
1569         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
1570         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
1571         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
1572         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
1573         Likewise.
1574         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
1575         (__pthread_mutex_cond_lock_adjust): Likewise.
1576         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
1577         Likewise.
1578         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
1579         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
1580         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
1581         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
1582         Add comments.
1583         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
1584         Use atomic_load_relaxed and atomic_store_relaxed.
1585         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
1586         Use atomic_store_relaxed.
1588 2018-10-17  Andreas Schwab  <schwab@suse.de>
1590         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
1591         * crypt/badsalttest.c (TIMEOUT): Likewise.
1592         * crypt/sha256c-test.c (TIMEOUT): Likewise.
1593         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
1594         * io/test-lfs.c (TIMEOUT): Likewise.
1595         * libio/tst-atime.c (TIMEOUT): Likewise.
1596         * localedata/tst-leaks.c (TIMEOUT): Likewise.
1597         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
1598         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
1599         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
1600         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
1601         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
1602         * nptl/tst-cond11.c (TIMEOUT): Likewise.
1603         * nptl/tst-cond14.c (TIMEOUT): Likewise.
1604         * nptl/tst-cond15.c (TIMEOUT): Likewise.
1605         * nptl/tst-cond24.c (TIMEOUT): Likewise.
1606         * nptl/tst-cond25.c (TIMEOUT): Likewise.
1607         * nptl/tst-kill2.c (TIMEOUT): Likewise.
1608         * nptl/tst-kill3.c (TIMEOUT): Likewise.
1609         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
1610         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
1611         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
1612         * nptl/tst-once2.c (TIMEOUT): Likewise.
1613         * nptl/tst-once3.c (TIMEOUT): Likewise.
1614         * nptl/tst-once4.c (TIMEOUT): Likewise.
1615         * nptl/tst-robust8.c (TIMEOUT): Likewise.
1616         * nptl/tst-robust9.c (TIMEOUT): Likewise.
1617         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
1618         * nptl/tst-sem14.c (TIMEOUT): Likewise.
1619         * nptl/tst-sem6.c (TIMEOUT): Likewise.
1620         * nptl/tst-signal3.c (TIMEOUT): Likewise.
1621         * nptl/tst-spin4.c (TIMEOUT): Likewise.
1622         * nptl/tst-tls3.c (TIMEOUT): Likewise.
1623         * nptl/tst-tls4.c (TIMEOUT): Likewise.
1624         * posix/tst-chmod.c (TIMEOUT): Likewise.
1625         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
1626         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
1627         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
1628         * posix/tst-regex2.c (TIMEOUT): Likewise.
1629         * posix/tst-waitid.c (TIMEOUT): Likewise.
1630         * rt/tst-aio.c (TIMEOUT): Likewise.
1631         * rt/tst-aio10.c (TIMEOUT): Likewise.
1632         * rt/tst-aio4.c (TIMEOUT): Likewise.
1633         * rt/tst-aio5.c (TIMEOUT): Likewise.
1634         * rt/tst-aio6.c (TIMEOUT): Likewise.
1635         * rt/tst-aio64.c (TIMEOUT): Likewise.
1636         * rt/tst-aio7.c (TIMEOUT): Likewise.
1637         * rt/tst-aio9.c (TIMEOUT): Likewise.
1638         * rt/tst-clock.c (TIMEOUT): Likewise.
1639         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
1640         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
1641         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
1642         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
1643         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
1644         * rt/tst-timer4.c (TIMEOUT): Likewise.
1645         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
1646         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
1647         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
1648         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
1649         * time/tst-ftime.c (TIMEOUT): Likewise.
1650         * timezone/tst-tzset.c (TIMEOUT): Likewise.
1652 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1654         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
1655         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
1656         for thunderX2.
1658 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
1660         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1661         bits/sem-pad.h.
1662         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
1663         instead of <bits/wordsize.h>.
1664         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
1665         and [__SEM_PAD_AFTER_TIME].
1666         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
1667         __syscall_ulong_t instead of unsigned long int.
1668         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
1669         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
1670         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
1671         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
1672         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
1673         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
1674         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
1675         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
1676         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
1677         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
1678         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
1680 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1682         regex: simplify by using intprops.h
1683         [BZ#23744]
1684         * posix/regex_internal.h [_LIBC]: Include intprops.h.
1685         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
1686         intprops.h defines them.
1688         regex: __builtin_expect → __glibc_unlikely
1689         [BZ#23744]
1690         This refactoring was prompted by a problem when the regex code is
1691         used as part of Gnulib and when the builder’s compiler does not grok
1692         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
1693         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
1694         Although this refactoring does not fix the problem directly,
1695         we might as well have Gawk use the now-preferred glibc style for when
1696         __builtin_expect is unavailable.
1697         * posix/regex_internal.h (BE): Remove.
1698         All uses replaced by __glibc_unlikely or __glibc_likely.
1700 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
1702         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1703         bits/msq-pad.h.
1704         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
1705         instead of <bits/wordsize.h>.
1706         (msgqnum_t): Define as __syscall_ulong_t.
1707         (msglen_t): Likewise.
1708         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
1709         and [__MSQ_PAD_AFTER_TIME].
1710         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
1711         __syscall_ulong_t instead of unsigned long int.
1712         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
1713         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
1714         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
1715         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
1716         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
1717         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
1718         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
1719         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
1720         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
1721         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
1722         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
1724 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
1726         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
1727         (struct shmid_ds): Condition padding after time fields on
1728         [__WORDSIZE == 32].
1729         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
1730         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
1731         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1733         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
1734         (struct semid_ds): Condition padding after time fields on
1735         [__WORDSIZE == 32].
1736         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
1737         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
1738         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
1739         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
1741         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
1742         (struct msqid_ds): Condition padding after time fields on
1743         [__WORDSIZE == 32].
1744         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
1745         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
1746         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
1747         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
1749 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1751         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
1753 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1755         * libio/tst-readline.c (TIMEOUT): Define.
1757 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1759         mktime fix for Gnulib + coreutils
1760         [BZ#23745]
1761         This fix affects only Gnulib.  Problem discovered when
1762         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
1763         * time/mktime.c:
1764         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
1765         Do not define since it is not used.  Defining an unused static
1766         function prompts a warning from GCC when Coreutils is configured
1767         with --enable-gcc-warnings.
1769 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
1771         * benchtests/scripts/compare_bench.py (main): set float type on
1772         threshold argument.
1774 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
1776         [BZ #23740]
1777         * localedata/locales/kl_GL (mon): Update, the relative case.
1778         (alt_mon): Add, fill with month names in the nominative case.
1779         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
1780         (d_fmt): Set to "%b %d %Y".
1782 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
1784         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
1785         <bits/mman-linux.h>.
1786         (PROT_READ): Don't define here.
1787         (PROT_WRITE): Likewise.
1788         (PROT_EXEC): Likewise.
1789         (PROT_NONE): Likewise.
1790         (PROT_GROWSDOWN): Likewise.
1791         (PROT_GROWSUP): Likewise.
1792         (MAP_SHARED): Likewise.
1793         (MAP_PRIVATE): Likewise.
1794         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
1795         [__USE_MISC] (MAP_FILE): Likewise.
1796         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
1797         [__USE_MISC] (MAP_ANON): Likewise.
1798         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
1799         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
1800         (MCL_CURRENT): Likewise.
1801         (MCL_FUTURE): Likewise.
1802         (MCL_ONFAULT): Likewise.
1803         [__USE_MISC] (MADV_NORMAL): Likewise.
1804         [__USE_MISC] (MADV_RANDOM): Likewise.
1805         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
1806         [__USE_MISC] (MADV_WILLNEED): Likewise.
1807         [__USE_MISC] (MADV_DONTNEED): Likewise.
1808         [__USE_MISC] (MADV_FREE): Likewise.
1809         [__USE_MISC] (MADV_REMOVE): Likewise.
1810         [__USE_MISC] (MADV_DONTFORK): Likewise.
1811         [__USE_MISC] (MADV_DOFORK): Likewise.
1812         [__USE_MISC] (MADV_HWPOISON): Likewise.
1813         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
1814         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
1815         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
1816         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
1817         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
1818         (__MAP_ANONYMOUS): New macro.
1819         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
1820         <bits/mman-linux.h> inclusion.
1821         (MAP_FIXED): Likewise.
1822         (MS_SYNC): Likewise.
1823         (MS_ASYNC): Likewise.
1824         (MS_INVALIDATE): Likewise.
1825         [__USE_MISC] (MADV_MERGEABLE): Likewise.
1826         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
1827         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
1828         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
1829         [__USE_MISC] (MADV_DONTDUMP): Likewise.
1830         [__USE_MISC] (MADV_DODUMP): Likewise.
1831         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
1832         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
1834         [BZ #23735]
1835         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
1836         Define.
1837         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
1838         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
1839         Add test-nldbl-redirect.
1840         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
1841         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
1842         $(objpfx)libnldbl_nonshared.a.
1844 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
1846         * support/support.h (support_objdir_elf_ldso): New variable.
1847         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
1848         * support/Makefile (CFLAGS-support_paths.c): Add definition
1849         for OBJDIR_ELF_LDSO_PATH.
1850         * support/test-container.c (main): Search for the ld.so
1851         which is also used by the testsuite.
1853 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
1855         [BZ #20209]
1856         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
1857         should be "sap" rather than "sab".
1858         (day): Fix spelling of Sunday, should be "sapaat" rather than
1859         "sabaat".
1861 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
1863         * math/libm-test-fma.inc (fma_test_data): Add more tests.
1865 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
1867         [BZ #19444]
1868         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
1869         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
1870         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
1872 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1874         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
1876 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1878         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
1879         Add -mrtm.
1880         (CFLAGS-elision-unlock.c): Likewise.
1881         (CFLAGS-elision-timed.c): Likewise.
1882         (CFLAGS-elision-trylock.c): Likewise.
1883         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
1885 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1887         [BZ #21037]
1888         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
1889         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
1890         new fd_to_filename interface.
1891         * libio/freopen64.c (freopen64): Likewise.
1892         * libio/tst-memstream.h: New file.
1893         * libio/tst-memstream4.c: Likewise.
1894         * libio/tst-wmemstream4.c: Likewise.
1895         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
1896         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
1897         and remove internal dynamic allocation.
1899 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
1901         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
1902         (MREMAP_MAYMOVE): Do not define here.
1903         [__USE_GNU] (MREMAP_FIXED): Likewise.
1904         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
1905         (MREMAP_MAYMOVE): Define here instead.
1906         [__USE_GNU] (MREMAP_FIXED): Likewise.
1907         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
1908         (MREMAP_MAYMOVE): Remove.
1909         [__USE_GNU] (MREMAP_FIXED): Likewise.
1911 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
1913         * math/fromfp.h: Do not include <math_private.h>.
1914         * math/s_cacosh_template.c: Likewise.
1915         * math/s_casin_template.c: Likewise.
1916         * math/s_casinh_template.c: Likewise.
1917         * math/s_ccos_template.c: Likewise.
1918         * math/s_cproj_template.c: Likewise.
1919         * math/s_fdim_template.c: Likewise.
1920         * math/s_fmaxmag_template.c: Likewise.
1921         * math/s_fminmag_template.c: Likewise.
1922         * math/s_iseqsig_template.c: Likewise.
1923         * math/s_ldexp_template.c: Likewise.
1924         * math/s_nextdown_template.c: Likewise.
1925         * math/w_log1p_template.c: Likewise.
1926         * math/w_scalbln_template.c: Likewise.
1927         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
1928         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
1929         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
1930         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
1931         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
1932         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
1933         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
1934         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
1935         * sysdeps/i386/fpu/s_atanl.c: Likewise.
1936         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
1937         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
1938         * sysdeps/i386/fpu/s_fdim.c: Likewise.
1939         * sysdeps/i386/fpu/s_logbl.c: Likewise.
1940         * sysdeps/i386/fpu/s_rintl.c: Likewise.
1941         * sysdeps/i386/fpu/s_significandl.c: Likewise.
1942         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
1943         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
1944         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1945         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
1946         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
1947         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
1948         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
1949         * sysdeps/ieee754/k_standardf.c: Likewise.
1950         * sysdeps/ieee754/k_standardl.c: Likewise.
1951         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
1952         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
1953         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
1954         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
1955         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
1956         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
1957         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
1958         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
1959         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
1960         * sysdeps/ieee754/s_signgam.c: Likewise.
1961         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
1962         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
1963         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
1964         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
1965         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
1966         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
1967         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
1968         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
1969         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
1970         * sysdeps/riscv/rvd/s_finite.c: Likewise.
1971         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
1972         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
1973         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
1974         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
1975         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
1976         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
1977         * sysdeps/riscv/rvf/fegetround.c: Likewise.
1978         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
1979         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
1980         * sysdeps/riscv/rvf/fesetround.c: Likewise.
1981         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
1982         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
1983         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
1984         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
1985         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
1986         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
1987         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
1988         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
1989         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
1990         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
1991         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
1992         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
1993         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
1994         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
1995         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
1996         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
1997         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
1998         <math_private.h>.
1999         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
2001 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2003         [BZ #23716]
2004         * sysdeps/i386/dl-cet.c: Removed.
2005         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
2006         prototype.
2007         (_dl_runtime_profile_shstk): Likewise.
2008         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
2009         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
2011 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2013         [BZ #23579]
2014         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
2015         do_test_with_invalid_iov): New tests.
2016         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
2017         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
2018         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
2019         errno is ENOSYS.
2020         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2021         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2022         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2024 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
2026         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2027         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
2028         (MATH_REDIRECT_BINARY_ARGS): New macro.
2029         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2030         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
2031         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
2032         header inclusion.
2033         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
2034         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2035         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
2036         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2037         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2038         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2039         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2041         Likewise.
2042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2043         Likewise.
2044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
2045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
2046         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
2047         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
2048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
2049         Likewise.
2050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
2051         Likewise.
2052         * sysdeps/generic/math_private_calls.h
2053         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
2054         Do not declare and define as an inline function.
2055         * math/divtc3.c (__divtc3): Use copysign functions instead of
2056         __copysign variants.
2057         * math/multc3.c (__multc3): Likewise.
2058         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
2059         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
2060         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
2061         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
2062         Likewise.
2063         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
2064         (__ieee754_yn): Likewise.
2065         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
2066         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
2067         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
2068         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2069         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
2070         (__sin): Likewise.
2071         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
2072         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2073         Likewise.
2074         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2075         Likewise.
2076         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2077         Likewise.
2078         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
2079         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2080         Likewise.
2081         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
2082         (__ieee754_ynf): Likewise.
2083         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
2084         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2085         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
2086         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
2087         Likewise.
2088         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2089         (__ieee754_ynl): Likewise.
2090         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2091         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2092         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
2093         Likewise.
2094         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2095         (__ieee754_ynl): Likewise.
2096         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
2097         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2098         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2099         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2100         Likewise.
2101         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2102         (__ieee754_ynl)
2103         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
2104         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2105         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
2106         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
2107         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
2109         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2110         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
2111         using MATH_REDIRECT.
2112         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
2113         header inclusion.
2114         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
2115         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2116         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2117         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
2118         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2119         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2120         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
2122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
2123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
2124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
2125         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2126         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2127         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
2128         (round): Redirect to __round.
2129         (__roundl): Call round instead of __round.
2130         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
2131         Remove macro.
2132         [_ARCH_PWR5X] (__roundf): Likewise.
2133         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
2134         functions instead of __round variants.
2135         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
2136         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
2137         Likewise.
2138         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
2139         Likewise.
2140         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
2141         Likewise.
2142         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
2143         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
2144         __lroundl.
2145         (__ieee754_expl): Call roundl instead of __roundl.
2147 2018-09-27  Andreas Schwab  <schwab@suse.de>
2149         [BZ #23717]
2150         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
2151         (do_test): Make st1 static.
2153 2018-09-26  Andreas Schwab  <schwab@suse.de>
2155         [BZ #23707]
2156         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
2157         * elf/Makefile (tests): Add tst-unwind-ctor.
2158         (modules-names): Add tst-unwind-ctor-lib.
2159         ($(objpfx)tst-unwind-ctor): Depend on
2160         $(objpfx)tst-unwind-ctor-lib.so.
2162 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
2164         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
2165         file.  Most contents moved from ....
2166         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
2167         and include <bits/mman-map-flags-generic.h>.
2168         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2169         (sysdep_headers): Add bits/mman-map-flags-generic.h.
2170         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
2171         <bits/mman-map-flags-generic.h>.
2172         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
2173         macros defined in <bits/mman-map-flags-generic.h>.
2174         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
2175         <bits/mman-map-flags-generic.h>.
2176         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
2177         defined in <bits/mman-map-flags-generic.h>.
2179 2018-09-26  Andreas Schwab  <schwab@suse.de>
2181         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
2182         output.
2184 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
2185             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2186             Fangrui Song  <maskray@google.com>
2188         [BZ #20480]
2189         * config.make.in (have-textrel_ifunc): New define.
2190         * configure.ac: Add check if linker supports textrel relocation with
2191         ifunc.
2192         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
2193         tst-ifunc-textrel.
2194         (CFLAGS-tst-ifunc-textrel.c): New rule.
2195         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
2196         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
2197         * elf/tst-ifunc-textrel.c: New file.
2199 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
2201         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
2202         <bits/procfs-prregset.h>.
2203         (prgregset_t): Define using __prgregset_t.
2204         (prfpregset_t): Define using __prfpregset_t.
2205         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2206         (sysdep_headers): Add bits/procfs-prregset.h.
2207         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
2208         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
2209         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
2210         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
2212         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
2213         <bits/procfs-id.h> and <bits/procfs-extra.h>.
2214         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
2215         pr_uid and pr_gid.
2216         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2217         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
2218         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
2219         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
2220         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
2221         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
2222         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
2223         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
2224         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
2225         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
2226         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
2227         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
2228         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
2229         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
2230         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
2231         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
2232         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
2233         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
2234         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
2235         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
2236         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
2237         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
2238         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
2239         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
2241         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
2242         AArch64 version.  Include <bits/procfs.h>.
2243         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2244         (sysdep_headers): Add bits/procfs.h.
2245         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
2246         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
2247         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
2248         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
2249         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
2250         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
2251         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
2252         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
2253         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
2254         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
2255         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
2256         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
2257         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
2258         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2259         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
2260         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
2261         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
2263 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2265         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
2266         Use libsupport.
2268 2018-09-25  Arjun Shankar  <arjun@redhat.com>
2270         * iconv/gconv_int.h (__gconv_path_elem): Remove.
2271         (__gconv_max_path_elem_len): Likewise.
2272         (__gconv_nmodules): Likewise.
2273         (__gconv_get_path): Likewise.
2274         (path_elem): Move to ...
2275         * iconv/gconv_conf.c: ... here.
2276         (__gconv_get_path): Mark function static.
2277         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
2278         * iconv/gconv_open.c: ... here.
2280 2018-09-24  Andreas Schwab  <schwab@suse.de>
2282         * scripts/haveversions.awk: New file.
2283         * Makerules ($(common-objpfx)Versions.def)
2284         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
2285         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
2286         Move rules ...
2287         * Makeconfig ($(common-objpfx)Versions.def)
2288         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
2289         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
2290         ... here.
2291         ($(common-objpfx)Versions.mk): New rule.  Include it.
2292         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
2293         Emit error if build-obsolete-nsl = yes.
2294         * manual/install.texi (Configuring and compiling): Describe
2295         --enable-obsolete-nsl as unavaiable after version 2.28.
2296         * INSTALL: Regenerate.
2298 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2300         * NEWS: Add note about new TLE support on powerpc64le.
2301         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
2302         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
2303         __ununsed1.
2304         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
2305         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
2306         * sysdeps/powerpc/powerpc32/sysdep.h,
2307         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
2308         ABORT_TRANSACTION): Remove macros.
2309         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
2310         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
2311         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
2312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
2313         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2314         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
2315         usage.
2316         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
2318 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
2320         [BZ #10425]
2321         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
2322         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
2323         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
2324         which is the same as in it_IT.
2325         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
2326         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
2328 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
2330         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2331         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
2332         using MATH_REDIRECT.
2333         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
2334         header inclusion.
2335         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2337         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2339         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2340         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
2342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
2343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
2344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
2345         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
2346         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
2347         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
2348         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
2349         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
2350         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
2351         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
2352         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
2353         (ceil): Redirect to __ceil.
2354         (floor): Redirect to __floor.
2355         (trunc): Redirect to __trunc.
2356         (__truncl): Call trunc instead of __trunc.
2357         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
2358         Remove macro.
2359         [_ARCH_PWR5X] (__truncf): Likewise.
2360         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
2361         trunc functions instead of __trunc variants.
2362         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2363         Likewise.
2364         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
2365         Likewise.
2366         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
2367         Likewise.
2368         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2369         Likewise.
2371         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
2372         [__i586__ || __pentium__].
2373         [__i486__]: Handle explicitly.
2374         (HAS_CPUID): Define to 1 if above macros are undefined.
2375         (HAS_I586): Likewise.
2376         (HAS_I686): Likewise.
2378 2018-09-20  Florian Weimer  <fweimer@redhat.com>
2380         * misc/tst-gethostid.c: New file.
2381         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
2382         (tst-gethostid): Link with -ldl.
2384 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
2386         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
2387         value from gethostbyname_r.
2389 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
2391         * stdlib/tst-setcontext9.c (f1): Rename to...
2392         (f1a): ... this.
2393         (f1b): New function implementing lower half of f1 in alternate stack.
2395 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
2397         Fix mktime localtime offset confusion
2398         [BZ #23603]
2399         * include/time.h (__mktime_internal): The localtime offset is now
2400         of type long int instead of time_t.  This is the longstanding type
2401         in glibc, and it is more than enough to represent difference
2402         between localtime and gmtime even if it is 32 bits and time_t is
2403         64.  Changing it now will let us avoid an unnecessary change when
2404         time_t is widened to 64 bits on 32-bit platforms.
2405         * time/mktime-internal.h (mktime_offset_t): Now long int.
2407         Merge mktime, timegm from upstream Gnulib
2408         [BZ #23603][BZ #16346]
2409         This fixes some obscure problems with integer overflow.
2410         Although it looks scary, it is almost all a byte-for-byte copy
2411         from Gnulib, and the Gnulib code has been tested reasonably well.
2412         * include/intprops.h: New file, copied from Gnulib.
2413         * include/verify.h, time/mktime-internal.h:
2414         New tiny files, simplified from Gnulib.
2415         * time/mktime.c: Copy from Gnulib.  This has the following changes:
2416         Do not include config.h if DEBUG_MKTIME is nonzero.
2417         Include stdbool.h, intprops.h, verify.h.
2418         Include string.h only if needed.
2419         Include stdlib.h on MS-Windows.
2420         Include mktime-internal.h.
2421         (DEBUG_MKTIME): Default to 0, and simplify later uses.
2422         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2423         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2424         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2425         simplify later conditionals; default the others to zero.  Use
2426         these conditionals to express only the code needed on the current
2427         platform.  In uses of these conditionals, explicitly spell out how
2428         _LIBC affects things, so it’s easier to review from a glibc
2429         viewpoint.
2430         (WRAPV): Remove; no longer needed now that we have
2431         systematic overflow checking.
2432         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2433         compartmentalize tzset issues.  Move system-dependent tzsettish
2434         code here from mktime.
2435         (verify): Remove; now done by verify.h.  All uses changed.
2436         (long_int): Use a more-conservative definition, to avoid
2437         integer overflow.
2438         (SHR): Remove, replacing with ...
2439         (shr): New function, which means we needn’t worry about side
2440         effects in args, and conversion analysis is simpler.
2441         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
2442         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
2443         (time_t_avg, time_t_add_ok): Remove.
2444         (mktime_min, mktime_max): New constants.
2445         (leapyear, isdst_differ): Use bool for booleans.
2446         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
2447         Use long_int, not time_t, for mktime differences.
2448         (long_int_avg): New function, replacing time_t_avg.
2449         INT_ADD_WRAPV replaces time_t_add_ok.
2450         (guess_time_tm): 6th arg is now long_int, not time_t const *.
2451         All uses changed.
2452         (convert_time): New function.
2453         (ranged_convert): Use it.
2454         (__mktime_internal): Last arg now points to mktime_offset_t, not
2455         time_t.  All uses changed.  This is a no-op on glibc, where
2456         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
2457         offset guess.  Directly check for integer overflow instead of
2458         using a heuristic that works only 99.9...% of the time.
2459         Access *OFFSET only once, to avoid an unlikely race if the
2460         compiler delays a load and if this cascades into a signed integer
2461         overflow.
2462         (mktime): Move tzsettish code to my_tzset, and move
2463         localtime_offset to within mktime so that it doesn’t
2464         need a separate ifdef.
2465         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
2466         instead of localtime.
2467         * time/timegm.c: Copy from Gnulib.  This has the following changes:
2468         Include mktime-internal.h.
2469         [!_LIBC]: Include config.h and time.h.  Do not include
2470         timegm.h or time_r.h.  Make __mktime_internal a macro,
2471         and include mktime-internal.h to get its declaration.
2472         (timegm): Temporary is now mktime_offset_t, not time_t.
2473         This affects only Gnulib.
2475 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
2477         [BZ #23637]
2478         * string/test-strstr.c (pr23637): New function.
2479         (test_main): Add tests with longer needles.
2480         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
2481         * string/strstr.c (AVAILABLE): Likewise.
2483 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2485         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
2487 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2489         * NEWS: Mention pow improvements.
2490         * math/Makefile (type-double-routines): Add e_pow_log_data.
2491         * sysdeps/generic/math_private.h (__exp1): Remove.
2492         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
2493         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
2494         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
2495         contraction.
2496         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
2497         (exp_inline): Remove.
2498         (__ieee754_exp): Only single double input is handled.
2499         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
2500         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
2501         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
2502         (__pow_log_data): Define.
2503         * sysdeps/ieee754/dbl-64/upow.h: Remove.
2504         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
2505         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
2506         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
2507         contraction.
2508         (CFLAGS-e_pow-fma4.c): Likewise.
2510 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2512         Simplify tzfile fstat failure code
2513         [BZ #21716]
2514         * time/tzfile.c (__tzfile_read): Simplify slightly.
2516         Fix tzfile low-memory assertion failure
2517         [BZ #21716]
2518         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
2519         when registering time zone abbreviations.
2521 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
2523         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
2524         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
2525         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2526         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2527         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
2528         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
2529         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
2530         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2531         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2533         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
2534         __ceil.
2535         (__ceill): Call ceil instead of __ceil.
2536         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
2537         __floor.
2538         (__floorl): Call floor instead of __floor.
2540 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
2542         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2543         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
2544         using MATH_REDIRECT.
2545         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
2546         header inclusion.
2547         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
2548         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2549         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2550         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
2551         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2552         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2553         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
2554         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
2555         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
2556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
2557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
2558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
2559         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
2560         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
2561         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
2562         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
2563         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
2564         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
2565         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
2566         Remove macro.
2567         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
2568         functions instead of __ceil variants.
2569         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
2570         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
2571         Likewise.
2572         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
2573         Likewise.
2574         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
2575         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
2576         Likewise.
2577         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
2578         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
2580         [BZ #21286]
2581         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
2582         constant.
2583         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
2584         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
2585         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
2586         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
2587         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
2588         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
2589         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
2590         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
2591         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
2592         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
2593         (ILL_BADIADDR): Remove constant.
2594         (TRAP_BRANCH): Likewise.
2595         (TRAP_HWBKPT): Likewise.
2597 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
2599         [BZ #23656]
2600         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
2601         Remove [_MIPS_SIM = _ABIN32] conditional case.
2602         (struct elf_prpsinfo): Likewise.
2604         [BZ #23649]
2605         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
2606         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
2607         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
2608         Likewise.
2609         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
2610         elf_prpsinfo): Likewise.
2611         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
2612         elf_prpsinfo): Likewise.
2613         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
2614         Likewise.
2616         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2617         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
2618         using MATH_REDIRECT.
2619         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
2620         header inclusion.
2621         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
2622         * sysdeps/alpha/fpu/s_rint.c: Likewise.
2623         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
2624         * sysdeps/i386/fpu/s_rintl.c: Likewise.
2625         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2626         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2627         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
2628         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2629         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2630         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
2631         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
2632         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
2633         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
2634         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
2635         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
2636         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2637         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2638         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
2639         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
2640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
2641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
2642         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
2643         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
2644         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
2645         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
2646         * sysdeps/x86_64/fpu/math_private.h: Remove file.
2647         * math/e_scalb.c (invalid_fn): Use rint functions instead of
2648         __rint variants.
2649         * math/e_scalbf.c (invalid_fn): Likewise.
2650         * math/e_scalbl.c (invalid_fn): Likewise.
2651         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
2652         Likewise.
2653         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2654         Likewise.
2655         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
2656         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
2657         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
2658         Likewise.
2659         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
2660         Likewise.
2661         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2662         Likewise.
2663         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
2664         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
2666         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2667         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
2668         New macro.
2669         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2670         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
2671         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2672         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
2673         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2674         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
2675         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2676         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
2677         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2678         && !NO_MATH_REDIRECT] (floor): Likewise.
2679         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
2680         header inclusion.
2681         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
2682         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2683         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2684         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
2685         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2686         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2687         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
2688         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
2689         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
2690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
2691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
2692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
2693         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
2694         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
2695         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
2696         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
2697         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
2698         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
2699         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
2700         Remove macro.
2701         [_ARCH_PWR5X] (__floorf): Likewise.
2702         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
2703         inline function.
2704         [__SSE4_1__] (__floorf): Likewise.
2705         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
2706         instead of __floor variants.
2707         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
2708         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
2709         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
2710         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
2711         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
2712         * math/w_tgamma_compat.c (__tgamma): Likewise.
2713         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
2714         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
2715         * math/w_tgammal_compat.c (__tgammal): Likewise.
2716         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
2717         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
2718         Likewise.
2719         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
2720         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
2721         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
2722         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2723         Likewise.
2724         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
2725         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
2726         Likewise.
2727         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
2728         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
2729         Likewise.
2730         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
2731         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
2732         Likewise.
2733         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
2734         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
2735         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
2736         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
2737         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
2738         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
2740 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
2742         * elf/Makefile (modules-names-tests): New variable.
2744 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2746         * NEWS: Mention log2 improvements.
2747         * math/Makefile (type-double-routines): Add e_log2_data.
2748         * sysdeps/i386/fpu/e_log2_data.c: New file.
2749         * sysdeps/ia64/fpu/e_log2_data.c: New file.
2750         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
2751         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
2752         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
2753         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
2754         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
2756 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2758         * NEWS: Mention log improvement.
2759         * math/Makefile (type-double-routines): Add e_log_data.
2760         * sysdeps/i386/fpu/e_log_data.c: New file.
2761         * sysdeps/ia64/fpu/e_log_data.c: New file.
2762         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
2763         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
2764         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
2765         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
2766         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
2767         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
2769 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
2770             Xuepeng Guo  <xuepeng.guo@intel.com>
2772         [BZ #23606]
2773         * sysdeps/i386/start.S: Include <sysdep.h>
2774         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
2775         enabled.  Add cfi_undefined (eip).
2777 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
2779         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
2780         (MOVQ): Likewise.
2781         (EXTRACT_WORDS64): Likewise.
2782         (INSERT_WORDS64): Likewise.
2783         (GET_FLOAT_WORD): Likewise.
2784         (SET_FLOAT_WORD): Likewise.
2786         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
2787         argument.
2788         (Config.build_gcc): Use --disable-libsanitizer for first GCC
2789         build, but not for second build if --full-gcc.  Use
2790         --enable-languages=all for second build if --full-gcc.
2791         (get_parser): Add --full-gcc option.
2792         (main): Update call to Context.
2794 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
2796         [BZ #10797]
2797         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
2798         Single Quotation Mark).
2799         (thousands_sep): Likewise.
2800         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
2801         * localedata/locales/it_IT (thousands_sep): Use ".".
2802         (grouping): Use "3;3".
2804 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
2806         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
2807         x86_64 and i686 configs using --enable-obsolete-rpc
2808         --enable-obsolete-nsl.
2810 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
2812         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2814 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
2816         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2817         Increment size of new_argv by one.
2819 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
2821         [BZ #17426]
2822         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
2823         * localedata/locales/ar_IN (d_fmt): Likewise.
2824         * localedata/locales/bhb_IN (d_fmt): Likewise.
2825         * localedata/locales/bho_IN (d_fmt): Likewise.
2826         * localedata/locales/bn_BD (d_fmt): Likewise.
2827         * localedata/locales/bn_IN (d_fmt): Likewise.
2828         * localedata/locales/doi_IN (d_fmt): Likewise.
2829         * localedata/locales/gu_IN (d_fmt): Likewise.
2830         * localedata/locales/hi_IN (d_fmt): Likewise.
2831         * localedata/locales/hne_IN (d_fmt): Likewise.
2832         * localedata/locales/kn_IN (d_fmt): Likewise.
2833         * localedata/locales/mag_IN (d_fmt): Likewise.
2834         * localedata/locales/mai_IN (d_fmt): Likewise.
2835         * localedata/locales/mjw_IN (d_fmt): Likewise.
2836         * localedata/locales/ml_IN (d_fmt): Likewise.
2837         * localedata/locales/mni_IN (d_fmt): Likewise.
2838         * localedata/locales/mr_IN (d_fmt): Likewise.
2839         * localedata/locales/pa_IN (d_fmt): Likewise.
2840         * localedata/locales/raj_IN (d_fmt): Likewise.
2841         * localedata/locales/sat_IN (d_fmt): Likewise.
2842         * localedata/locales/sd_IN (d_fmt): Likewise.
2843         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
2844         * localedata/locales/ta_IN (d_fmt): Likewise.
2845         * localedata/locales/ta_LK (d_fmt): Likewise.
2846         * localedata/locales/tcy_IN (d_fmt): Likewise.
2847         * localedata/locales/ur_IN (d_fmt): Likewise.
2849         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
2850         * localedata/locales/ks_IN (d_fmt): Likewise.
2851         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
2853         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
2854         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
2855         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
2856         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
2858 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2860         * NEWS: Mention exp and exp2 improvements.
2861         * math/Makefile (libm-support): Remove t_exp.
2862         (type-double-routines): Add math_err and e_exp_data.
2863         * sysdeps/aarch64/libm-test-ulps: Update.
2864         * sysdeps/arm/libm-test-ulps: Update.
2865         * sysdeps/i386/fpu/e_exp_data.c: New file.
2866         * sysdeps/i386/fpu/math_err.c: New file.
2867         * sysdeps/i386/fpu/t_exp.c: Remove.
2868         * sysdeps/ia64/fpu/e_exp_data.c: New file.
2869         * sysdeps/ia64/fpu/math_err.c: New file.
2870         * sysdeps/ia64/fpu/t_exp.c: Remove.
2871         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
2872         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
2873         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
2874         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
2875         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
2876         * sysdeps/ieee754/dbl-64/math_config.h: New file.
2877         * sysdeps/ieee754/dbl-64/math_err.c: New file.
2878         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
2879         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
2880         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
2881         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
2882         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
2883         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
2884         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
2885         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2886         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2888 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
2890         * sysdeps/alpha/fpu/math_private.h: Remove.
2892         * sysdeps/generic/math_private.h
2893         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
2894         Move this inline function ....
2895         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
2896         * include/math.h [!_ISOMAC]: To here....
2898 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
2900         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
2901         code ....
2902         [!FE_HAVE_ROUNDING_MODES]: And this code ....
2903         * include/fenv.h [!_ISOMAC]: ... to here.
2904         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
2905         (feraiseexcept): Likewise.
2906         * math/fromfp.h: Do not include <fenv_private.h>.
2907         * math/s_cexp_template.c: Likewise.
2908         * math/s_csin_template.c: Likewise.
2909         * math/s_csinh_template.c: Likewise.
2910         * math/s_ctan_template.c: Likewise.
2911         * math/s_ctanh_template.c: Likewise.
2912         * math/s_iseqsig_template.c: Likewise.
2913         * math/w_acos_compat.c: Likewise.
2914         * math/w_acosf_compat.c: Likewise.
2915         * math/w_acosl_compat.c: Likewise.
2916         * math/w_asin_compat.c: Likewise.
2917         * math/w_asinf_compat.c: Likewise.
2918         * math/w_asinl_compat.c: Likewise.
2919         * math/w_j0_compat.c: Likewise.
2920         * math/w_j0f_compat.c: Likewise.
2921         * math/w_j0l_compat.c: Likewise.
2922         * math/w_j1_compat.c: Likewise.
2923         * math/w_j1f_compat.c: Likewise.
2924         * math/w_j1l_compat.c: Likewise.
2925         * math/w_jn_compat.c: Likewise.
2926         * math/w_jnf_compat.c: Likewise.
2927         * math/w_log10_compat.c: Likewise.
2928         * math/w_log10f_compat.c: Likewise.
2929         * math/w_log10l_compat.c: Likewise.
2930         * math/w_log2_compat.c: Likewise.
2931         * math/w_log2f_compat.c: Likewise.
2932         * math/w_log2l_compat.c: Likewise.
2933         * math/w_log_compat.c: Likewise.
2934         * math/w_logf_compat.c: Likewise.
2935         * math/w_logl_compat.c: Likewise.
2936         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2937         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2938         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2939         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2940         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2941         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2942         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2943         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2944         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2945         * sysdeps/ieee754/k_standardl.c: Likewise.
2946         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2947         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
2948         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2949         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2950         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2951         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2952         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2953         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
2954         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
2955         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
2956         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
2957         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
2958         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
2959         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2960         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2961         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2962         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2963         * math/w_ilogb_template.c: Include <fenv.h> instead of
2964         <fenv_private.h>.
2965         * math/w_llogb_template.c: Likewise.
2966         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
2967         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2969 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
2971         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
2972         * math/fromfp.h: Include <fenv_private.h>.
2973         * math/math-narrow.h: Likewise.
2974         * math/s_cexp_template.c: Likewise.
2975         * math/s_csin_template.c: Likewise.
2976         * math/s_csinh_template.c: Likewise.
2977         * math/s_ctan_template.c: Likewise.
2978         * math/s_ctanh_template.c: Likewise.
2979         * math/s_iseqsig_template.c: Likewise.
2980         * math/w_acos_compat.c: Likewise.
2981         * math/w_acosf_compat.c: Likewise.
2982         * math/w_acosl_compat.c: Likewise.
2983         * math/w_asin_compat.c: Likewise.
2984         * math/w_asinf_compat.c: Likewise.
2985         * math/w_asinl_compat.c: Likewise.
2986         * math/w_ilogb_template.c: Likewise.
2987         * math/w_j0_compat.c: Likewise.
2988         * math/w_j0f_compat.c: Likewise.
2989         * math/w_j0l_compat.c: Likewise.
2990         * math/w_j1_compat.c: Likewise.
2991         * math/w_j1f_compat.c: Likewise.
2992         * math/w_j1l_compat.c: Likewise.
2993         * math/w_jn_compat.c: Likewise.
2994         * math/w_jnf_compat.c: Likewise.
2995         * math/w_llogb_template.c: Likewise.
2996         * math/w_log10_compat.c: Likewise.
2997         * math/w_log10f_compat.c: Likewise.
2998         * math/w_log10l_compat.c: Likewise.
2999         * math/w_log2_compat.c: Likewise.
3000         * math/w_log2f_compat.c: Likewise.
3001         * math/w_log2l_compat.c: Likewise.
3002         * math/w_log_compat.c: Likewise.
3003         * math/w_logf_compat.c: Likewise.
3004         * math/w_logl_compat.c: Likewise.
3005         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
3006         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
3007         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
3008         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
3009         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3010         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3011         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3012         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3013         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3014         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3015         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3016         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3017         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
3018         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
3019         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3020         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
3021         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
3022         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3023         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3024         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3025         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3026         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3027         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3028         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3029         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3030         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3031         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3032         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
3033         * sysdeps/ieee754/float128/float128_private.h: Likewise.
3034         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
3035         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3036         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3037         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
3038         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3039         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3040         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3041         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3042         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3043         * sysdeps/ieee754/k_standardl.c: Likewise.
3044         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3045         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3046         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3047         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3048         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
3049         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
3050         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3051         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3052         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3053         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3054         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3055         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3056         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3057         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3058         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
3059         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3060         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3061         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
3062         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
3063         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3064         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3065         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3066         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3067         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3068         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3069         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
3070         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3071         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
3072         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
3073         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3074         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3075         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3076         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3077         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3078         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3079         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
3080         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3081         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3082         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3083         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3084         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
3085         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3086         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
3087         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3088         * sysdeps/riscv/rvd/s_finite.c: Likewise.
3089         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
3090         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
3091         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
3092         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
3093         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
3094         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
3095         * sysdeps/riscv/rvf/fegetround.c: Likewise.
3096         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
3097         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
3098         * sysdeps/riscv/rvf/fesetround.c: Likewise.
3099         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
3100         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
3101         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
3102         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3103         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
3104         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3105         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
3106         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
3107         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
3108         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
3109         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
3110         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
3111         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
3112         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
3113         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3114         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3116 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
3118         [BZ #20271]
3119         * include/stdio.h (__libc_fatal): Mention newline in comment.
3120         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
3121         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
3122         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3123         * nss/nsswitch.c (__nss_next2): Likewise.
3124         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
3125         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
3126         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
3127         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
3128         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
3129         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
3130         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
3131         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
3132         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
3133         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
3134         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
3135         * sysdeps/unix/sysv/linux/netlink_assert_response.c
3136         (__netlink_assert_response): Likewise.
3138 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
3140         * conform/glibcconform.py: New file.
3141         * conform/list-header-symbols.py: Likewise.
3142         * conform/list-header-symbols.pl: Remove.
3143         * conform/Makefile (tests-special): Only add linknamespace tests
3144         if [PYTHON].
3145         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
3147 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
3149         [BZ #23597]
3150         * support/Makefile (libsupport-routines): Add
3151         support_copy_file_range and xcopy_file_range.
3152         * support/support.h: Include <sys/types.h>.
3153         (support_copy_file_range): New prototype.
3154         * support/support_copy_file_range.c: New file.  Copied and
3155         modified from io/copy_file_range-compat.c.
3156         * support/test-container.c (copy_one_file): Call xcopy_file_rang
3157         instead of copy_file_range.
3158         * support/xcopy_file_range.c: New file.
3159         * support/xunistd.h (xcopy_file_range): New prototype.
3161 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
3163         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
3164         xpthread_create and xpthread_join.
3166 2018-08-30  Florian Weimer  <fweimer@redhat.com>
3168         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
3170 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
3172         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
3173         if malloc fails.
3175 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
3177         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
3178         and minus_oflow as non-finite.
3180 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
3182         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
3183         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
3184         moved to fenv_private.h except for ...
3185         (TOINT_INTRINSICS): Kept in math_private.h.
3186         (roundtoint): Likewise.
3187         (converttoint): Likewise.
3188         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
3189         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
3190         * sysdeps/arm/math_private.h: Remove.
3191         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
3192         ....
3193         * sysdeps/generic/math_private.h: ... this file.  Include
3194         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
3195         Include <fenv_private.h>.  Remove functions and macros moved to
3196         fenv_private.h.
3197         * sysdeps/i386/fpu/math_private.h: Remove.
3198         * sysdeps/mips/math_private.h: Move to ....
3199         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
3200         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
3201         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
3202         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
3203         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
3204         * sysdeps/powerpc/fpu/math_private.h: Do not include
3205         <fenv_private.h>.
3206         * sysdeps/riscv/rvf/math_private.h: Move to ....
3207         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
3208         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
3209         <fenv_private.h>.
3210         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
3211         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
3212         * sysdeps/sparc/fpu/math_private.h: Remove.
3213         * sysdeps/i386/fpu/fenv_private.h: Move to ....
3214         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
3215         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
3216         <fenv_private.h>.
3217         * sysdeps/x86_64/fpu/math_private.h: Do not include
3218         <sysdeps/i386/fpu/fenv_private.h>.
3220 2018-08-28  Florian Weimer  <fweimer@redhat.com>
3222         [BZ #23578]
3223         * posix/tst-regcomp-truncated.c: New file.
3224         * posix/Makefile (tests): Add it.
3225         (tst-regcomp-truncated.out): Depend on generated locales.
3227 2018-08-28  Florian Weimer  <fweimer@redhat.com>
3229         * support/test-container.c (main): Treat unshare failure with
3230         EPERM as an unsupported test.
3232 2018-08-28  Florian Weimer  <fweimer@redhat.com>
3234         [BZ #23520]
3235         nscd: Fix use-after-free in addgetnetgrentX and its callers.
3236         * nscd/netgroupcache.c
3237         (addgetnetgrentX): Add tofreep parameter.  Do not free
3238         heap-allocated buffer.
3239         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
3240         (addgetnetgrentX_ignore): New function.
3241         (addgetnetgrent): Call it.
3242         (readdgetnetgrent): Likewise.
3244 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3246         * string/memmem.c: Use memcmp for first match.
3248 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
3250         [BZ #17426]
3251         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
3253 2018-08-27  DJ Delorie  <dj@redhat.com>
3255         * support/Makefile (others): Don't list programs explicitly as a
3256         dependency of "others".
3258 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
3260         * sysdeps/generic/math-tests-trap-force.h: New file.
3261         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
3262         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
3263         * sysdeps/powerpc/math-tests.h: Remove file.
3264         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
3266 2018-08-27 Martin Kuchta  <martin.kuchta@netapp.com>
3267            Torvald Riegel  <triegel@redhat.com>
3269         [BZ #23538]
3270         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
3271         Update r to include the set wake-request flag if waiters are
3272         remaining after spinning.
3274 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
3276         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
3278 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3280         [BZ #23578]
3281         regex: fix uninitialized memory access
3282         I introduced this bug into gnulib in commit
3283         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
3284         eventually it was merged into glibc.  The bug was found by
3285         project-repo <bugs@feusi.co> and reported here:
3286         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
3287         Diagnosis and draft fix reported by Assaf Gordon here:
3288         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
3289         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
3290         * posix/regex_internal.c (build_wcs_upper_buffer):
3291         Fix bug when mbrtowc returns 0.
3293 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
3295         * po/be.po: Update translation.
3297 2018-08-24  DJ Delorie  <dj@delorie.com>
3299         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
3300         $(libunwind).
3302 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
3304         [BZ #23400]
3305         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
3306         create temporary files in source tree.
3308 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
3310         * sysdeps/generic/math-tests-trap.h: New file.
3311         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
3312         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
3313         * sysdeps/aarch64/math-tests.h: Remove file.
3314         * sysdeps/arm/math-tests.h: Likewise.
3315         * sysdeps/riscv/math-tests.h: Likewise.
3316         * sysdeps/aarch64/math-tests-trap.h: New file.
3317         * sysdeps/arm/math-tests-trap.h: Likewise.
3318         * sysdeps/riscv/math-tests-trap.h: Likewise.
3320 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
3322         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
3323         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
3324         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
3325         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
3326         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
3327         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
3328         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3329         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
3330         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
3331         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3332         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3333         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3334         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3335         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
3336         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
3337         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
3338         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
3339         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
3341 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
3343         * sysdeps/generic/math-tests-exceptions.h: New file.
3344         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
3345         (EXCEPTION_TESTS_float): Do not define here.
3346         (EXCEPTION_TESTS_double): Likewise.
3347         (EXCEPTION_TESTS_long_double): Likewise.
3348         (EXCEPTION_TESTS_float128): Likewise.
3349         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
3350         Likewise.
3351         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
3352         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
3353         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
3354         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
3355         * sysdeps/mips/math-tests.h: Likewise.
3356         * sysdeps/nios2/math-tests.h: Likewise.
3357         * sysdeps/riscv/math-tests.h [!__riscv_flen]
3358         (EXCEPTION_TESTS_float): Do not define here.
3359         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
3360         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
3361         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
3363 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
3365         * NEWS: Move optimized sinf entry to 2.29.
3367 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
3369         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
3371 2018-08-22  DJ Delorie  <dj@redhat.com>
3373         * Makefile (testroot.pristine): New rules to initialize the
3374         test-in-container "testroot".
3375         * Makerules (all-testsuite): Add tests-container.
3376         * Rules (tests-expected): Add tests-container.
3377         (binaries-all-tests): Likewise.
3378         (tests-container): New, run these tests in the testroot container.
3379         * support/Makefile (others): Add *-container, support_paths.c,
3380         xmkdirp, and links-dso-program.
3381         * support/links-dso-program-c.c: New.
3382         * support/links-dso-program.cc: New.
3383         * support/test-container.c: New.
3384         * support/shell-container.c: New.
3385         * support/echo-container.c: New.
3386         * support/true-container.c: New.
3387         * support/xmkdirp.c: New.
3388         * support/xsymlink.c: New.
3389         * support/support_paths.c: New.
3390         * support/support.h: Add support paths prototypes.
3391         * support/xunistd.h: Add xmkdirp () and xsymlink ().
3393         * nss/tst-nss-test3.c: Convert to test-in-container.
3394         * nss/tst-nss-test3.root/: New.
3396 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3398         regex: port Gnulib code to z/OS POSIX environment
3399         Problem reported by Arnold Robbins in:
3400         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
3401         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
3402         Undef.
3404 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
3406         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
3407         (ROUNDING_TESTS_double): Remove.
3408         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
3409         (ROUNDING_TESTS_double): Remove.
3410         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
3411         (ROUNDING_TESTS_double): Remove.
3412         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
3413         (ROUNDING_TESTS_float): Remove.
3414         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
3415         (ROUNDING_TESTS_float): Remove.
3416         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
3417         (ROUNDING_TESTS_float): Remove.
3418         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
3419         !TEST_MATHVEC here.
3420         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3421         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3423         * sysdeps/generic/math-tests-rounding.h: New file.
3424         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
3425         (ROUNDING_TESTS_float): Do not define here.
3426         (ROUNDING_TESTS_double): Likewise.
3427         (ROUNDING_TESTS_long_double): Likewise.
3428         (ROUNDING_TESTS_float128): Likewise.
3429         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
3430         (ROUNDING_TESTS_double): Undefine before defining.
3431         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
3432         (ROUNDING_TESTS_double): Undefine before defining.
3433         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
3434         (ROUNDING_TESTS_double): Undefine before defining.
3435         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
3436         (ROUNDING_TESTS_float): Undefine before defining.
3437         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
3438         (ROUNDING_TESTS_float): Undefine before defining.
3439         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
3440         (ROUNDING_TESTS_float): Undefine before defining.
3441         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
3442         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
3443         not define here.
3444         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
3445         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
3446         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
3447         * sysdeps/riscv/math-tests.h [!__riscv_flen]
3448         (ROUNDING_TESTS_float): Do not define here.
3449         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
3450         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
3451         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
3452         (ROUNDING_TESTS_float): Likewise.
3453         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
3454         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
3455         * sysdeps/mips/math-tests.h [__mips_soft_float]
3456         (ROUNDING_TESTS_float): Likewise.
3457         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
3458         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
3459         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
3460         (ROUNDING_TESTS_double): Likewise.
3461         (ROUNDING_TESTS_long_double): Likewise.
3463 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
3465         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
3466         (PF_XDP): New macro.
3467         (AF_XDP): New macro.
3468         (SOL_XDP): New macro.
3470 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
3472         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
3473         (TCP_INQ): Likewise.
3474         (TCP_CM_INQ): Likewise.
3475         (TCP_REPAIR_ON): Likewise.
3476         (TCP_REPAIR_OFF): Likewise.
3477         (TCP_REPAIR_OFF_NO_WP): Likewise.
3478         (struct tcp_zerocopy_receive): New type.
3480 2018-08-21  Florian Weimer  <fweimer@redhat.com>
3482         * support/support.h (support_descriptor_supports_holes): Declare.
3483         * support/Makefile (libsupport-routines): Add
3484         support_descriptor_supports_holes.
3485         * support/support_descriptor_supports_holes.c: New file.
3486         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
3487         and stop testing if holes are not supported.
3488         * io/test-lfs.c (do_prepare): Likewise.
3489         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
3490         Likewise.
3491         * timezone/tst-tzset.c (create_tz_file): Likewise.
3492         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
3493         variable.
3494         (do_prepare): Set it.
3495         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
3497 2018-08-21  Florian Weimer  <fweimer@redhat.com>
3499         [BZ #17248]
3500         * Makeconfig (+cflags): Do not sort (and deduplicate).
3502 2018-08-21  Florian Weimer  <fweimer@redhat.com>
3504         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
3505         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
3507 2018-08-20  Florian Weimer  <fweimer@redhat.com>
3509         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
3510         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
3512 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
3514         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3515         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
3516         and ssi_arch members.
3518         * elf/elf.c (NT_VMCOREDD): New macro.
3519         (AT_MINSIGSTKSZ): Likewise.
3521 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3523         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3524         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
3525         s_cosf-ppc64 and s_cosf-power8.
3526         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
3527         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
3528         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
3529         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
3530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
3531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
3532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
3533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
3534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
3535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
3536         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
3537         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
3539 2018-08-17  Florian Weimer  <fweimer@redhat.com>
3541         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3543 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
3545         * malloc/malloc.c (_int_malloc): Additional binning code checks.
3547 2018-08-16  Florian Weimer  <fweimer@redhat.com>
3549         * configure.ac: Add --with-nonshared-cflags option.
3550         * config.make.in (extra-nonshared-cflags): Set variable.
3551         * Makeconfig (CFLAGS-.oS): Use it.
3552         * manual/install.texi (Configuring and compiling): Document
3553         --with-nonshared-cflags.
3554         * configure: Regenerate.
3555         * INSTALL: Likewise.
3557 2018-08-16  Florian Weimer  <fweimer@redhat.com>
3559         * Makeconfig (ASFLAGS): Always append required assembler flags.
3561 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
3563         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
3564         (malloc_consolidate): Likewise.
3566 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
3568         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
3570 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3572         * benchtests/bench-strlen.c (do_test): Allocate buffers before
3573         every strlen call.
3575         * benchtests/bench-strlen.c: Print performance numbers in json.
3577 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3579         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3580         (sysdep_routines): Build strcmp-power9 and strncmp-power9
3581         only for little endian.
3582         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3583         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
3584         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
3585         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
3586         Add check for little endian.
3587         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
3588         (__strcmp_power9): Add check for little endian.
3589         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
3590         Add check for little endian.
3591         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
3592         (__strncmp_power9): Add check for little endian.
3593         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
3594         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
3595         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
3596         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
3597         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
3599 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3601         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
3602         [!STRLEN](STRLEN): Set to __strlen.
3603         * sysdeps/aarch64/multiarch/strlen.c: New file.
3604         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
3605         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
3606         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3607         (__libc_ifunc_impl_list): Add strlen.
3608         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3609         strlen_generic and strlen_asimd.
3611 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
3613         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
3614         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
3615         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
3617 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
3619         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
3621 2018-08-14  Florian Weimer  <fweimer@redhat.com>
3623         [BZ #23519]
3624         * include/stdio.h (__vfxprintf): Declare.
3625         * stdio-common/fxprintf.c (__vfxprintf): New function.
3626         (__fxprintf): Call it.
3627         * misc/err.c (convert_and_print): Remove function.
3628         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
3629         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
3630         * misc/Makefile (tests): Add tst-warn-wide.
3631         * misc/tst-warn-wide.c: New file.
3633 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
3634             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3636         * NEWS: Mention sinf, cosf, sincosf.
3637         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
3638         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
3639         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
3640         constants rather than including generic sincosf.h.
3641         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
3642         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
3643         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
3644         (reduced_cos): Remove.
3645         (sinf_poly): New function.
3646         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
3648 2018-08-14  Florian Weimer  <fweimer@redhat.com>
3650         [BZ #23521]
3651         [BZ #23522]
3652         * nss/nss_files/files-alias.c (get_next_alias): During :include:
3653         processing, bail out if no room, and close the stream before
3654         returning ERANGE.
3655         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
3656         (tst-nss-files-alias-leak): Link with libdl.
3657         (tst-nss-files-alias-leak.out): Depend on nss_files.
3659         * nss/tst-nss-files-alias-leak.c: New file.
3661 2018-08-14  Florian Weimer  <fweimer@redhat.com>
3663         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
3664         server_user, stat_user.
3666 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
3668         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3669         version to 4.18.
3670         (io_pgetevents): New syscall.
3671         (rseq): Likewise.
3673         * manual/install.texi (Configuring and compiling): Do not list
3674         tools used for testing pretty printers here.
3675         (Tools for Compilation): List Python, PExpect and GDB here.
3676         Update descriptions of uses of Perl and Python.
3677         * INSTALL: Regenerate.
3679         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3680         version to 4.18.
3682 2018-08-13  Florian Weimer  <fweimer@redhat.com>
3684         * misc/error.c (error): Add missing va_end call.
3685         (error_at_line): Likewise.
3687 2018-08-13  Florian Weimer  <fweimer@redhat.com>
3689         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
3691 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3693         * benchtests/scripts/benchout.schema.json (properties): Add
3694         new properties.
3696         * benchtests/bench-skeleton.c (main): Add duration and
3697         iterations attributes.
3699 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3701         regex: Gnulib unibyte RRI uses bytes not chars
3702         Adjust the non-glibc code to agree with what Gawk needs for
3703         rational range interpretation (RRI) for regular expression ranges.
3704         In unibyte locales, Gawk wants ranges to use the underlying byte
3705         rather than the character code point.  This change does not affect
3706         glibc proper.
3707         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
3708         In unibyte locales, use the byte value rather than
3709         running it through btowc.
3711 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
3713         * sysdeps/generic/math-tests-snan.h: New file.
3714         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
3715         (SNAN_TESTS_float): Do not define here.
3716         (SNAN_TESTS_double): Likewise.
3717         (SNAN_TESTS_long_double): Likewise.
3718         (SNAN_TESTS_float128): Likewise.
3719         * sysdeps/i386/fpu/math-tests-snan.h: New file.
3720         * sysdeps/i386/fpu/math-tests.h: Remove file.
3721         * sysdeps/ia64/math-tests-snan.h: New file.
3722         * sysdeps/ia64/math-tests.h: Remove file.
3723         * sysdeps/x86/math-tests.h: Likewise.
3724         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
3726 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
3727             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3729         * math/Makefile: Add s_sincosf_data.c.
3730         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
3731         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
3732         (sincosf_poly): Likewise.
3733         (reduce_small): Likewise.
3734         (reduce_large): Likewise.
3735         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
3736         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
3737         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
3738         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
3740 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
3741             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3743         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
3744         (converttoint): Use lround.
3745         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
3746         document the semantics when TOINT_INTRINSICS is set.
3747         (converttoint): Likewise.
3748         (TOINT_RINT): Remove.
3749         (TOINT_SHIFT): Remove.
3750         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
3751         path.
3753 2018-08-10  Florian Weimer  <fweimer@redhat.com>
3755         [BZ #23497]
3756         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
3757         function.
3758         (__old_getdents64): Use getdents64.  Convert entries without
3759         moving them.
3760         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
3761         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
3762         tst-readdir64-compat.
3764 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3766         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
3767         Fix unwind.
3769 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3771         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
3772         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
3773         code to s390x-mcount.h and #include it.
3774         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
3775         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
3776         (__fentry__): Add.
3778 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3780         * stdlib/Versions: Remove __fentry__.
3781         * sysdeps/i386/Versions: Add __fentry__.
3782         * sysdeps/x86_64/Versions: Add __fentry__.
3784 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3786         * sysdeps/s390/Makefile: Register the new tests.
3787         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
3788         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
3789         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
3790         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
3791         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
3792         * sysdeps/s390/tst-dl-runtime.c: New file.
3794 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3796         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3797         Do not clobber R0.
3799 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3801         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
3802         Do not clobber R0.
3804 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3806         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3807         Do not clobber R0.
3809 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3811         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3812         Do not clobber R0.
3814 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3816         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3817         Use symbolic offsets for stack variables.
3819 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3821         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
3822         Use symbolic offsets for stack variables.
3824 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3826         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3827         Use symbolic offsets for stack variables.
3829 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3831         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3832         Use symbolic offsets for stack variables.
3834 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
3836         * math/gen-libm-test.py: New file.
3837         * math/gen-libm-test.pl: Remove.
3838         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
3839         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
3840         gen-libm-test.pl.
3841         ($(libm-test-c-noauto-obj)): Likewise.
3842         ($(libm-test-c-auto-obj)): Likewise.
3843         ($(libm-test-c-narrow-obj)): Likewise.
3844         (regen-ulps): Likewise.
3845         * math/README.libm-test: Update references to gen-libm-test.pl.
3846         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
3847         referencing gen-libm-test.pl.
3848         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
3849         * math/libm-test-support.c: Likewise.
3850         * math/libm-test-support.h: Likewise.
3851         * sysdeps/generic/libm-test-ulps: Likewise.
3853 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3855         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
3856         Fix value.
3858 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
3860         * math/libm-test-nextdown.inc (do_test): Move comment to ....
3861         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
3863 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3865         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
3866         symbols.
3867         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
3868         __pthread_setspecific): Add hidden proto.
3869         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
3870         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
3872 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3874         * benchtests/bench-string.h (buf1_size, buf2_size): New
3875         variables.
3876         (init_sizes): New function.
3877         (test_init): Use it.
3878         (alloc_buf, exit_error): New functions.
3879         (alloc_bufs): Use ALLOC_BUF.
3880         (realloc_bufs): Remove.
3881         * benchtests/bench-memcmp.c (do_test): Adjust.
3882         * benchtests/bench-memset-large.c (do_test): Likewise.
3883         * benchtests/bench-memset-walk.c (do_test): Likewise.
3884         * benchtests/bench-memset.c (do_test): Likewise.
3885         * benchtests/bench-strncmp.c (do_test): Likewise.
3887 2018-08-06  Andreas Schwab  <schwab@suse.de>
3889         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
3890         of CONST_THREAD_AREA.
3892 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3894         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
3895         (STATE_SAVE_MASK): Likewise.
3896         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
3897         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
3898         (STATE_SAVE_MASK): Likewise.
3899         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
3900         instead of <cpu-features.h>.
3902 2018-08-03  DJ Delorie  <dj@redhat.com>
3904         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
3905         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
3907         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3909 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
3911         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
3912         after TEST_* calls.
3913         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
3914         * math/libm-test-logb.inc (logb_test_data): Likewise.
3916 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
3918         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
3919         * string/strstr.c (AVAILABLE): Likewise.
3921 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3923         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
3924         <init-arch.h>.
3925         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
3926         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
3927         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
3929 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
3931         * po/be.po: Update translation.
3933         * po/be.po: Update translation.
3935 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3937         * sysdeps/x86/cpu-features-offsets.sym
3938         (rtld_global_ro_offsetof): Removed.
3939         (CPU_FEATURES_SIZE): Likewise.
3940         (CPUID_OFFSET): Likewise.
3941         (CPUID_SIZE): Likewise.
3942         (CPUID_EAX_OFFSET): Likewise.
3943         (CPUID_EBX_OFFSET): Likewise.
3944         (CPUID_ECX_OFFSET): Likewise.
3945         (CPUID_EDX_OFFSET): Likewise.
3946         (FAMILY_OFFSET): Likewise.
3947         (MODEL_OFFSET): Likewise.
3948         (FEATURE_OFFSET): Likewise.
3949         (FEATURE_SIZ): Likewise.
3950         (COMMON_CPUID_INDEX_1): Likewise.
3951         (COMMON_CPUID_INDEX_7): Likewise.
3952         (FEATURE_INDEX_1): Likewise.
3953         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
3955 2018-08-02  Carlos O'Donell <carlos@redhat.com>
3957         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
3958         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
3959         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
3960         (install-locales): Depend on install-locale-archive.
3961         (install-locale-archive): Define.
3962         (install-locale-files): Define.
3963         (build-one-locale): Define macro.
3964         * manual/install.texi (Running make install): Document.
3965         * manual/INSTALL: Regenerate.
3967 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3969         * benchtests/scripts/compare_strings.py: Import traceback.
3970         (parse_file): Pretty-print error.
3972         * NEWS: Mention the change.
3973         * elf/dl-tunables.list: Rename tune namespace to cpu.
3974         * sysdeps/powerpc/dl-tunables.list: Likewise.
3975         * sysdeps/x86/dl-tunables.list: Likewise.
3976         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
3977         cpu.name.
3978         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
3979         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
3980         * manual/README.tunables: Likewise.
3981         * manual/tunables.texi: Likewise.
3982         * sysdeps/powerpc/cpu-features.c: Likewise.
3983         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
3984         (init_cpu_features): Likewise.
3985         * sysdeps/x86/cpu-features.c: Likewise.
3986         * sysdeps/x86/cpu-features.h: Likewise.
3987         * sysdeps/x86/cpu-tunables.c: Likewise.
3988         * sysdeps/x86_64/Makefile: Likewise.
3989         * sysdeps/x86/dl-cet.c: Likewise.
3991 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
3993         [BZ #23479]
3994         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
3995         [__mips_hard_float].
3996         (FE_UNDERFLOW): Likewise.
3997         (FE_OVERFLOW): Likewise.
3998         (FE_DIVBYZERO): Likewise.
3999         (FE_INVALID): Likewise.
4000         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
4001         (FE_TOWARDZERO): Define only if [__mips_hard_float].
4002         (FE_UPWARD): Likewise.
4003         (FE_DOWNWARD): Likewise.
4004         (__FE_UNDEFINED): Define if [!__mips_hard_float]
4005         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
4006         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
4007         [__mips_hard_float].
4008         (FP_ROUNDMODE): Likewise.
4009         (FP_RND_NEAREST): Likewise.
4010         (FP_RND_ZERO): Likewise.
4011         (FP_RND_PINF): Likewise.
4012         (FP_RND_MINF): Likewise.
4013         (FP_EX_INVALID): Likewise.
4014         (FP_EX_OVERFLOW): Likewise.
4015         (FP_EX_UNDERFLOW): Likewise.
4016         (FP_EX_DIVZERO): Likewise.
4017         (FP_EX_INEXACT): Likewise.
4018         (FP_INIT_ROUNDMODE): Likewise.
4019         * sysdeps/mips/nofpu/fesetenv.c: New file.
4020         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
4022 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
4024         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
4025         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
4026         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
4027         conditional on [FE_UPWARD].
4029 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4031         regex: fix memory leak in Gnulib
4032         Problem and fix reported by Assaf Gordon in:
4033         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
4034         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
4035         range_ends members too, as they are defined in 'struct
4036         re_charset_t' even if not _LIBC.  This affects only Gnulib.
4038 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4040         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
4041         ...
4042         (get_common_indices): This.
4043         (init_cpu_features): Updated.
4045 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
4047         * sysdeps/generic/math-tests-snan-payload.h: New file.
4048         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
4049         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
4050         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
4051         * sysdeps/generic/math-tests.h: Include
4052         <math-tests-snan-payload.h>.
4053         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
4054         * sysdeps/hppa/math-tests.h: Remove file.
4055         * sysdeps/mips/math-tests.h [!__mips_nan2008]
4056         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
4057         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
4058         Likewise.
4060         * sysdeps/generic/math-tests-snan-cast.h: New file.
4061         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
4062         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
4063         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
4064         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
4066 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
4068         * version.h (RELEASE): Set to "development".
4069         (VERSION): Set to "2.28.9000".
4070         * NEWS (2.29): New section.
4072         * version.h (RELEASE): Set to "stable".
4073         (VERSION): Set to "2.28".
4074         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
4075         * NEWS: Add the list of bugs fixed in 2.28.
4077         * po/ca.po: Update to latest version.
4078         * po/cs.po: Likewise
4079         * po/da.po: Likewise
4080         * po/el.po: Likewise
4081         * po/eo.po: Likewise
4082         * po/es.po: Likewise
4083         * po/fi.po: Likewise
4084         * po/fr.po: Likewise
4085         * po/gl.po: Likewise
4086         * po/hu.po: Likewise
4087         * po/ia.po: Likewise
4088         * po/id.po: Likewise
4089         * po/it.po: Likewise
4090         * po/ja.po: Likewise
4091         * po/ko.po: Likewise
4092         * po/lt.po: Likewise
4093         * po/nb.po: Likewise
4094         * po/nl.po: Likewise
4095         * po/pt_BR.po: Likewise
4096         * po/ru.po: Likewise
4097         * po/rw.po: Likewise
4098         * po/sk.po: Likewise
4099         * po/sl.po: Likewise
4100         * po/tr.po: Likewise
4101         * po/zh_CN.po: Likewise
4102         * po/zh_TW.po: Likewise
4104 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4106         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
4107         initialization...
4108         (init): ... before initializing libpthread.
4110         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
4111         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
4112         (__mach_setup_tls): ... new function.
4113         (mach_setup_tls): New alias.
4114         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
4115         __mach_setup_thread.
4116         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
4117         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
4118         * mach/Versions [libc] (mach_setup_tls): Add symbol.
4119         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
4121 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
4123         * manual/install.texi: Update versions.
4124         * INSTALL: Regenerate.
4126         * manual/contrib.texi (Contributors): Update contributions.
4128 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
4130         * po/be.po: Update translations.
4132 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4134         * sysdeps/sh/libm-test-ulps: Update.
4136 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
4138         * po/bg.po: Update translations.
4139         * po/de.po: Likewise.
4140         * po/hr.po: Likewise.
4141         * po/pt_BR.po: Likewise.
4142         * po/sv.po: Likewise.
4143         * po/vi.po: Likewise.
4145 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
4147         [BZ #23467]
4148         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
4149         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
4150         (CFLAGS-tst-cet-property-1.o): New.
4151         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
4152         ($(objpfx)tst-cet-property-2): Likewise.
4153         ($(objpfx)tst-cet-property-2.out): Likewise.
4154         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
4155         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
4156         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
4157         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
4158         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
4160 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
4162         [BZ #23458]
4163         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
4165 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4167         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
4168         __sbrk): Do not set attribute_hidden.
4169         * sysdeps/mach/hurd/not-errno.h: New file.
4170         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
4171         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
4173 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
4175         * po/uk.po: Update translations.
4176         * po/cs.po: Likewise.
4177         * po/pl.po: Likewise.
4179 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
4181         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
4182         parse beyond the note end.
4184 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4186         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
4187         kernel does not support OFD locks.
4188         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
4190 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4192         * sysdeps/mach/hurd/Versions (libc): Make __access and
4193         __access_noerrno external so they can override the ld symbols.
4194         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
4195         __writev, __open64, __access_noerrno extern so they can be overrided.
4196         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
4197         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
4199 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
4201         * po/libc.pot: Regenerate.
4203 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
4205         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4207 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4209         [BZ #23459]
4210         * sysdeps/x86/cpu-features.c (get_extended_indices): New
4211         function.
4212         (init_cpu_features): Call get_extended_indices for both Intel
4213         and AMD CPUs.
4214         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
4215         Remove "for AMD" comment.
4217 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4219         [BZ # 23456]
4220         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
4221         COMMON_CPUID_INDEX_80000001.
4223 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
4225         * string/tst-xbzero-opt.c (use_test_buffer): New function.
4226         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
4228 2018-07-26  Florian Weimer  <fweimer@redhat.com>
4230         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
4231         aliases for symbols not in the implementation namespace.
4233 2018-07-25  Carlos O'Donell <carlos@redhat.com>
4235         [BZ #23393]
4236         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
4237         lowercase in LATIN script.
4238         * localedata/Makefile (test-input): Add en_US.UTF-8.
4239         * localedata/en_US.UTF-8.in: New file.
4240         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
4241         and restore old tests.
4242         * posix/tst-regexloc.c (do_test): Add back range expression test.
4244 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4246         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
4248 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4250         * nptl/threads.h: Move to ...
4251         * sysdeps/nptl/threads.h: ... here.
4252         * sysdeps/hurd/stdc-predef.h: New file.
4254 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4256         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
4257         tst-cet-setcontext-1 if CET is enabled.
4258         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
4259         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
4261 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4263         * include/threads.h: Move to ...
4264         * sysdeps/nptl/threads.h: ... here.
4265         * sysdeps/htl/threads.h: New file.
4266         * conform/Makefile (linknamespace-libs-ISO11): Use
4267         static-thread-library instead of linking libpthread.
4268         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
4270 2018-07-25  Florian Weimer  <fweimer@redhat.com>
4272         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
4273         nanoseconds into seconds.
4274         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
4275         (do_test): Likewise.
4276         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
4277         (do_test): Likewise.  Avoid nanosecond overflow and spurious
4278         timeouts due to system load.
4279         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
4280         (child_wait): Increment it.
4281         (do_test): Wait as long as necessary until all expected threads
4282         have arrived.
4284 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
4285             H.J. Lu  <hongjiu.lu@intel.com>
4287         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
4288         __ssp.
4289         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
4290         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
4291         (__push___start_context): New.
4292         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
4293         <asm/prctl.h>.
4294         (__getcontext): Record the current shadow stack base.  Save the
4295         caller's shadow stack pointer and base.
4296         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
4297         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
4298         (__push___start_context): New prototype.
4299         (__makecontext): Call __push___start_context to allocate a new
4300         shadow stack, push __start_context onto the new stack as well
4301         as the new shadow stack.
4302         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
4303         <asm/prctl.h>.
4304         (__setcontext): Restore the target shadow stack.
4305         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
4306         <asm/prctl.h>.
4307         (__swapcontext): Record the current shadow stack base.  Save
4308         the caller's shadow stack pointer and base. Restore the target
4309         shadow stack.
4310         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
4311         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
4312         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
4314 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4316         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
4317         tst-setcontext8 and tst-setcontext9.
4318         * stdlib/tst-setcontext6.c: New file.
4319         * stdlib/tst-setcontext7.c: Likewise.
4320         * stdlib/tst-setcontext8.c: Likewise.
4321         * stdlib/tst-setcontext9.c: Likewise.
4323 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4325         * stdlib/Makefile ((tests): Add tst-setcontext5.
4326         * stdlib/tst-setcontext5.c: New file.
4328 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4330         * stdlib/Makefile (tests): Add tst-setcontext4.
4331         * stdlib/tst-setcontext4.c: New file.
4333 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4335         * stdlib/Makefile (tests): Add tst-swapcontext1.
4336         * stdlib/tst-swapcontext1.c: New test.
4338 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4340         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
4341         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
4342         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
4343         and tst-cet-legacy-4c.
4344         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
4345         and tst-cet-legacy-mod-4.
4346         (CFLAGS-tst-cet-legacy-2.c): New.
4347         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
4348         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
4349         (CFLAGS-tst-cet-legacy-3.c): Likewise.
4350         (CFLAGS-tst-cet-legacy-4.c): Likewise.
4351         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
4352         ($(objpfx)tst-cet-legacy-1): Likewise.
4353         ($(objpfx)tst-cet-legacy-2): Likewise.
4354         ($(objpfx)tst-cet-legacy-2.out): Likewise.
4355         ($(objpfx)tst-cet-legacy-2a): Likewise.
4356         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
4357         ($(objpfx)tst-cet-legacy-4): Likewise.
4358         ($(objpfx)tst-cet-legacy-4.out): Likewise.
4359         ($(objpfx)tst-cet-legacy-4a): Likewise.
4360         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
4361         (tst-cet-legacy-4a-ENV): Likewise.
4362         ($(objpfx)tst-cet-legacy-4b): Likewise.
4363         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
4364         (tst-cet-legacy-4b-ENV): Likewise.
4365         ($(objpfx)tst-cet-legacy-4c): Likewise.
4366         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
4367         (tst-cet-legacy-4c-ENV): Likewise.
4368         * sysdeps/x86/tst-cet-legacy-1.c: New file.
4369         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
4370         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
4371         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
4372         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
4373         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
4374         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
4375         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
4376         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
4377         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
4378         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
4380 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
4382         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
4383         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
4384         with ssp_base.
4385         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
4386         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
4387         with ssp_base.
4389 2018-07-25  Andreas Schwab  <schwab@suse.de>
4391         [BZ #23442]
4392         * locale/weightwc.h (findidx): Handle the case where usrc is a
4393         prefix of cp but one character too short.
4395 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4397         * NEWS: Add ISO C threads addition.
4399 2018-07-24  Florian Weimer  <fweimer@redhat.com>
4401         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4402         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
4403         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
4404         4.13.
4406 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4408         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
4409         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
4410         <sys/prctl.h> and <asm/prctl.h>.
4411         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
4412         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
4413         and <asm/prctl.h>.
4414         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
4415         ARCH_CET_LEGACY_BITMAP.
4416         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
4417         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
4418         * sysdeps/x86/libc-start.c: Include <startup.h>.
4420 2018-07-24  Florian Weimer  <fweimer@redhat.com>
4422         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
4423         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
4425 2018-07-24  Rical Jasan <rj@2c3t.io>
4426             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4427             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
4429         [BZ #14092]
4430         * manual/debug.texi: Update adjacent chapter name.
4431         * manual/probes.texi: Likewise.
4432         * manual/threads.texi (ISO C Threads): New section.
4433         (POSIX Threads): Convert to a section.
4435 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4436             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
4438         [BZ# 14092]
4439         * nptl/Makefile (tests): Add new test files.
4440         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
4441         * nptl/tst-cnd-basic.c: Likewise.
4442         * nptl/tst-cnd-broadcast.c: Likewise.
4443         * nptl/tst-cnd-timedwait.c: Likewise.
4444         * nptl/tst-mtx-basic.c: Likewise.
4445         * nptl/tst-mtx-recursive.c: Likewise.
4446         * nptl/tst-mtx-timedlock.c: Likewise.
4447         * nptl/tst-mtx-trylock.c: Likewise.
4448         * nptl/tst-thrd-basic.c: Likewise.
4449         * nptl/tst-thrd-detach.c: Likewise.
4450         * nptl/tst-thrd-sleep.c: Likewise.
4451         * nptl/tst-tss-basic.c: Likewise.
4453 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4455         [BZ #14092]
4456         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
4457         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
4458         symbols.
4459         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4460         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4461         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4462         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4463         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4464         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4465         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4466         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4467         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4468         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4469         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4470         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4472         Likewise.
4473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4474         Likewise.
4475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4476         Likewise.
4477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4478         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4479         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4480         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4481         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4482         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4483         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4484         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4485         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4486         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
4487         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
4488         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
4489         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
4490         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
4491         Likewise.
4492         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
4493         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
4494         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
4495         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
4496         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
4497         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
4498         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
4499         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
4500         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
4501         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
4502         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
4503         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
4504         ikewise.
4505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
4506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
4507         Likewise.
4508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
4509         Likewise.
4510         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
4511         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
4512         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
4513         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
4514         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
4515         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
4516         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
4517         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
4519         [BZ #14092]
4520         * conform/data/threads.h-data (thread_local): New macro.
4521         (TSS_DTOR_ITERATIONS): Likewise.
4522         (tss_t): New type.
4523         (tss_dtor_t): Likewise.
4524         (tss_create): New function.
4525         (tss_get): Likewise.
4526         (tss_set): Likewise.
4527         (tss_delete): Likewise.
4528         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
4529         tss_get, and tss_set objects.
4530         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
4531         * nptl/tss_create.c: New file.
4532         * nptl/tss_delete.c: Likewise.
4533         * nptl/tss_get.c: Likewise.
4534         * nptl/tss_set.c: Likewise.
4535         * sysdeps/nptl/threads.h (thread_local): New define.
4536         (TSS_DTOR_ITERATIONS): Likewise.
4537         (tss_t): New typedef.
4538         (tss_dtor_t): Likewise.
4539         (tss_create): New prototype.
4540         (tss_get): Likewise.
4541         (tss_set): Likewise.
4542         (tss_delete): Likewise.
4544         [BZ #14092]
4545         * conform/data/threads.h-data (cnd_t): New type.
4546         (cnd_init): New function.
4547         (cnd_signal): Likewise.
4548         (cnd_broadcast): Likewise.
4549         (cnd_wait): Likewise.
4550         (cnd_timedwait): Likewise.
4551         (cnd_destroy): Likewise.
4552         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
4553         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
4554         object.
4555         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
4556         * nptl/cnd_broadcast.c: New file.
4557         * nptl/cnd_destroy.c: Likewise.
4558         * nptl/cnd_init.c: Likewise.
4559         * nptl/cnd_signal.c: Likewise.
4560         * nptl/cnd_timedwait.c: Likewise.
4561         * nptl/cnd_wait.c: Likewise.
4562         * sysdeps/nptl/threads.h (cnd_t): New type.
4563         (cnd_init): New prototype.
4564         (cnd_signa): Likewise.
4565         (cnd_broadcast): Likewise.
4566         (cnd_wait): Likewise.
4567         (cnd_timedwait): Likewise.
4568         (cnd_destroy): Likewise.
4570         [BZ #14092]
4571         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
4572         (once_flag): New type.
4573         (call_once): New function.
4574         * nptl/Makefile (libpthread-routines): Add call_once object.
4575         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
4576         * nptl/call_once.c: New file.
4577         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
4578         (once_flag): New type.
4579         (call_once): New prototype.
4581         [BZ #14092]
4582         * conform/data/threads.h-data (mtx_plain): New constant.
4583         (mtx_recursive): Likewise.
4584         (mtx_timed): Likewise.
4585         (mtx_t): New type.
4586         (mtx_init): New function.
4587         (mtx_lock): Likewise.
4588         (mtx_timedlock): Likewise.
4589         (mtx_trylock): Likewise.
4590         (mtx_unlock): Likewise.
4591         (mtx_destroy): Likewise.
4592         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
4593         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
4594         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
4595         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
4596         * nptl/mtx_destroy.c: New file.
4597         * nptl/mtx_init.c: Likewise.
4598         * nptl/mtx_lock.c: Likewise.
4599         * nptl/mtx_timedlock.c: Likewise.
4600         * nptl/mtx_trylock.c: Likewise.
4601         * nptl/mtx_unlock.c: Likewise.
4602         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
4603         (mtx_recursive): Likewise.
4604         (mtx_timed): Likewise.
4605         (mtx_t): New type.
4606         (mtx_init): New prototype.
4607         (mtx_lock): Likewise.
4608         (mtx_timedlock): Likewise.
4609         (mtx_trylock): Likewise.
4610         (mtx_unlock): Likewise.
4611         (mtx_destroy): Likewise.
4613         [BZ #14092]
4614         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
4615         (linknamespace-libs-ISO11): Add libpthread.a.
4616         * conform/data/threads.h-data: New file: add C11 thrd_* types and
4617         functions.
4618         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
4619         * nptl/Makefile (headers): Add threads.h.
4620         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
4621         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
4622         thrd_yield.
4623         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
4624         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
4625         thrd_join, thrd_sleep, and thrd_yield symbols.
4626         * nptl/descr.h (struct pthread): Add c11 field.
4627         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
4628         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
4629         routine with expected function prototype.
4630         (__pthread_create_2_1): Add C11 threads check based on attribute
4631         value.
4632         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
4633         * nptl/thrd_create.c: New file.
4634         * nptl/thrd_current.c: Likewise.
4635         * nptl/thrd_detach.c: Likewise.
4636         * nptl/thrd_equal.c: Likewise.
4637         * nptl/thrd_exit.c: Likewise.
4638         * nptl/thrd_join.c: Likewise.
4639         * nptl/thrd_priv.h: Likewise.
4640         * nptl/thrd_sleep.c: Likewise.
4641         * nptl/thrd_yield.c: Likewise.
4642         * include/threads.h: Likewise.
4644 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4646         * bits/indirect-return.h: New file.
4647         * misc/sys/cdefs.h (__glibc_has_attribute): New.
4648         * sysdeps/x86/bits/indirect-return.h: Likewise.
4649         * stdlib/Makefile (headers): Add bits/indirect-return.h.
4650         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
4651         (swapcontext): Add __INDIRECT_RETURN.
4652         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
4653         (prepare_test_buffer): Use it.
4655 2018-07-24  Andreas Schwab  <schwab@suse.de>
4657         [BZ #23448]
4658         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
4659         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
4661 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4663         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
4664         Redefine if shadow stack is enabled.
4665         (SYSCALL_ERROR_LABEL): Likewise.
4666         (__vfork): Pop shadow stack and jump back to to caller directly
4667         when shadow stack is in use.
4668         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
4669         Redefine if shadow stack is enabled.
4670         (SYSCALL_ERROR_LABEL): Likewise.
4671         (__vfork): Pop shadow stack and jump back to to caller directly
4672         when shadow stack is in use.
4674 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4676         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
4677         enabled.
4678         (foo): Likewise.
4679         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
4680         (foo): Likewise.
4682 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
4684         * scripts/build-many-glibcs.py (Context.checkout): Default
4685         binutils version to 2.31 branch.
4687 2018-07-20  Zong Li  <zong@andestech.com>
4689         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
4690         URL of gcc's tarball.
4692 2018-07-20  Florian Weimer  <fweimer@redhat.com>
4694         [BZ #23396]
4695         * posix/regcomp.c (build_equiv_class): When comparing weights, do
4696         not compare an extra byte after the end of the weights.
4698 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4700         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
4701         to 1.
4702         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
4703         hidden prototypes.
4704         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
4705         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
4706         * scripts/check-execstack.awk: Consider `xfail' variable containing a
4707         list of libraries whose stack executability is expected.
4708         * elf/Makefile ($(objpfx)check-execstack.out): Pass
4709         $(check-execstack-xfail) to check-execstack.awk through `xfail'
4710         variable.
4711         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
4712         libc.so libpthread.so.
4714 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
4716         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
4717         SOCK_NONBLOCK.
4718         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
4719         and SOCK_NONBLOCK.
4720         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
4721         implement __pipe2.
4722         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
4724 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4726         * benchtests/scripts/compare_bench.py (__main__): use the argparse
4727         library to improve command line parsing.
4728         (__main__): make schema file as optional parameter (--schema),
4729         defaulting to benchtests/scripts/benchout.schema.json.
4730         (main): move out of the parsing stuff to __main_  and leave it
4731         only as caller of main comparison functions.
4733 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
4735         * NEWS: Add a note for Intel CET status.
4736         * manual/install.texi: Likewise.
4737         * INSTALL: Regenerated.
4739 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
4741         [BZ #23140]
4742         * localedata/locales/oc_FR (mon): Rename to...
4743         (alt_mon): This, then update October (typo fix).
4744         (mon): New content (genitive case, month names preceded by
4745         "de" or "d’").
4747         [BZ #23422]
4748         * localedata/locales/oc_FR (abday): Update all items.
4749         (day): Update Wednesday and Saturday (typo fixes).
4750         (abmon): Update all items, except May.
4751         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
4752         (LC_IDENTIFICATION): Bump the revision number and date.
4753         Keep the "category" entries in alphabetic order.
4754         (LC_ADDRESS): Remove no longer needed comment.
4755         (LC_COLLATE): Use “copy "ca_ES"”.
4756         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
4757         "name_mrs".
4759 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
4761         * grp/tst_fgetgrent.c: Include <unistd.h>.
4762         (main): Use mkstemp instead of tmpnam.
4763         * io/test-utime.c (main): Likewise.
4764         * posix/annexc.c (macrofile): Change to modifiable array.
4765         (main): Remove macrofile here.
4766         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
4767         macrofile here.
4768         (check_header): Do not remove macrofile here.
4769         * posix/bug-getopt1.c: Include <stdlib.h>.
4770         (do_test): Use mkstemp instead of tmpnam.
4771         * posix/bug-getopt2.c: Include <stdlib.h>.
4772         (do_test): Use mkstemp instead of tmpnam.
4773         * posix/bug-getopt3.c: Include <stdlib.h>.
4774         (do_test): Use mkstemp instead of tmpnam.
4775         * posix/bug-getopt4.c: Include <stdlib.h>.
4776         (do_test): Use mkstemp instead of tmpnam.
4777         * posix/bug-getopt5.c: Include <stdlib.h>.
4778         (do_test): Use mkstemp instead of tmpnam.
4779         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
4780         (main): Use mkstemp instead of tmpnam.
4781         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
4782         (main): Use mkstemp instead of tmpnam.
4783         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
4784         (main): use mkstemp instead of tmpnam.
4785         * stdlib/isomac.c (macrofile): Change to modifiable array.
4786         (main): Remove macrofile here.
4787         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
4788         macrofile here.
4789         (check_header): Do not remove macrofile here.
4791 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4793         * manual/tunables.texi: Document glibc.tune.x86_ibt and
4794         glibc.tune.x86_shstk.
4796 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4798         * NEWS: Mention --enable-cet.
4799         * manual/install.texi: Document --enable-cet.
4800         * INSTALL: Regenerated.
4802 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4804         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
4805         Add _CET_NOTRACK before indirect jump to jump table.
4807 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4809         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
4810         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4811         to jump table.
4813 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4815         * sysdeps/i386/i686/multiarch/strcat-sse2.S
4816         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4817         to jump table.
4819 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4821         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
4822         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4823         to jump table.
4825 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4827         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
4828         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4829         to jump table.
4831 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4833         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
4834         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4835         to jump table.
4836         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
4838 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4840         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
4841         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4842         to jump table.
4844 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4846         * sysdeps/i386/i686/multiarch/memset-sse2.S
4847         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4848         to jump table.
4850 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4852         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
4853         indirect jump to jump table.
4855 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4857         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
4858         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4859         to jump table.
4860         (MEMCPY): Likewise.
4862 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4864         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
4865         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4866         to jump table.
4867         (MEMCPY): Likewise.
4869 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4871         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
4872         _CET_NOTRACK before indirect jump to jump table.
4874 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4876         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
4877         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4878         to jump table.
4880 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4882         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
4883         indirect jump to jump table.
4885 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
4887         [BZ #22241]
4888         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
4889         (LOCALES): Likewise.
4890         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
4891         * localedata/locales/sah_RU: New file.
4892         * localedata/sah_RU.UTF-8.in: New file.
4894 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4896         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
4897         "sysdep.h".
4898         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
4899         _CET_ENDBR to indirect jump targets and adjust jump destination
4900         for _CET_ENDBR.
4901         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
4902         "sysdep.h".
4903         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
4904         _CET_ENDBR to indirect jump targets and adjust jump destination
4905         for _CET_ENDBR.
4906         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
4907         "sysdep.h".
4908         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
4909         _CET_ENDBR to indirect jump targets and adjust jump destination
4910         for _CET_ENDBR.
4912 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4914         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
4915         _CET_ENDBR.
4917 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4919         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
4920         _CET_ENDBR.
4921         (_dl_tlsdesc_undefweak): Likewise.
4922         (_dl_tlsdesc_dynamic): Likewise.
4923         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
4924         (_dl_tlsdesc_resolve_rel): Likewise.
4925         (_dl_tlsdesc_resolve_rela): Likewise.
4926         (_dl_tlsdesc_resolve_hold): Likewise.
4927         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
4928         (_dl_tlsdesc_undefweak): Likewise.
4929         (_dl_tlsdesc_dynamic): Likewise.
4930         (_dl_tlsdesc_resolve_rela): Likewise.
4931         (_dl_tlsdesc_resolve_hold): Likewise.
4933 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4935         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
4936         (_fini): Likewise.
4937         * sysdeps/x86_64/crti.S (_init): Likewise.
4938         (_fini): Likewise.
4940 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
4942         [BZ #23140]
4943         * localedata/locales/os_RU (mon): Rename to...
4944         (alt_mon): This.
4945         (mon): Import from CLDR (genitive case).
4947 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4949         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
4950         cet-tunables.h> when CET is enabled.
4952 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
4954          [BZ #21598]
4955         * configure.ac: Add --enable-cet.
4956         * configure: Regenerated.
4957         * elf/Makefille (all-built-dso): Add a comment.
4958         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
4959         Include <dl-prop.h>.
4960         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
4961         segment.
4962         * elf/dl-open.c: Include <dl-prop.h>.
4963         (dl_open_worker): Call _dl_open_check.
4964         * elf/rtld.c: Include <dl-prop.h>.
4965         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
4966         _rtld_main_check.
4967         * sysdeps/generic/dl-prop.h: New file.
4968         * sysdeps/i386/dl-cet.c: Likewise.
4969         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
4970         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
4971         * sysdeps/x86/cet-tunables.h: Likewise.
4972         * sysdeps/x86/check-cet.awk: Likewise.
4973         * sysdeps/x86/configure: Likewise.
4974         * sysdeps/x86/configure.ac: Likewise.
4975         * sysdeps/x86/dl-cet.c: Likewise.
4976         * sysdeps/x86/dl-procruntime.c: Likewise.
4977         * sysdeps/x86/dl-prop.h: Likewise.
4978         * sysdeps/x86/libc-start.h: Likewise.
4979         * sysdeps/x86/link_map.h: Likewise.
4980         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
4981         _CET_ENDBR.
4982         (_dl_runtime_profile): Likewise.
4983         (_dl_runtime_resolve_shstk): New.
4984         (_dl_runtime_profile_shstk): Likewise.
4985         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
4986         if CET is enabled.
4987         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
4988         (CFLAGS-.os): Likewise.
4989         (CFLAGS-.op): Likewise.
4990         (CFLAGS-.oS): Likewise.
4991         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
4992         is enabled.
4993         (tests-special): Add $(objpfx)check-cet.out.
4994         (cet-built-dso): New.
4995         (+$(cet-built-dso:=.note)): Likewise.
4996         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
4997         ($(objpfx)check-cet.out): New.
4998         (generated): Add check-cet.out.
4999         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
5000         <cet-tunables.h>.
5001         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
5002         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5003         (init_cpu_features): Call get_cet_status to check CET status
5004         and update dl_x86_feature_1 with CET status.  Call
5005         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
5006         (set_x86_shstk).  Disable and lock CET in libc.a.
5007         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
5008         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
5009         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5010         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
5011         (_CET_ENDBR): Define if not defined.
5012         (ENTRY): Add _CET_ENDBR.
5013         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
5014         x86_shstk.
5015         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
5016         _CET_ENDBR.
5017         (_dl_runtime_profile): Likewise.
5019 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
5021         [BZ #21895]
5022         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
5023         restore r2 on longjmp.
5024         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
5025         test list.
5026         Added rules to build test tst-setjmp-bug21895-static.
5027         Added module setjmp-bug21895 and rules to build a shared object from it.
5028         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
5029         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
5031 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
5033         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
5034         * benchtests/bench-strstr.c: Likewise.
5035         * string/memmem.c (FASTSEARCH): Define.
5036         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
5037         Add support for FASTSEARCH.
5038         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
5039         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
5040         (FASTSEARCH): Define.
5041         * string/test-strcasestr.c: Rename __strnlen to strnlen.
5042         * string/test-strstr.c: Likewise.
5044 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
5046         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
5047         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
5049 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
5050             H.J. Lu  <hongjiu.lu@intel.com>
5052         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
5053         (__longjmp): Restore shadow stack pointer if shadow stack is
5054         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
5055         isn't defined for __longjmp_cancel.
5056         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
5057         (_setjmp): Save shadow stack pointer if shadow stack is enabled
5058         and SHADOW_STACK_POINTER_OFFSET is defined.
5059         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
5060         (setjmp): Save shadow stack pointer if shadow stack is enabled
5061         and SHADOW_STACK_POINTER_OFFSET is defined.
5062         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
5063         (__sigsetjmp): Save shadow stack pointer if shadow stack is
5064         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5065         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
5066         <jmp_buf-ssp.h>.
5067         (____longjmp_chk): Restore shadow stack pointer if shadow stack
5068         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5069         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
5070         Remove jmp_buf-ssp.sym.
5071         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5072         <jmp_buf-ssp.h>.
5073         (____longjmp_chk): Restore shadow stack pointer if shadow stack
5074         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5075         * sysdeps/x86/Makefile (gen-as-const-headers): Add
5076         jmp_buf-ssp.sym.
5077         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
5078         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
5079         (__longjmp): Restore shadow stack pointer if shadow stack is
5080         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
5081         isn't defined for __longjmp_cancel.
5082         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
5083         (__sigsetjmp): Save shadow stack pointer if shadow stack is
5084         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5086 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
5088         [BZ #22563]
5089         * nptl/pthread_create.c: Include <tls-setup.h>.
5090         (__pthread_create_2_1): Call tls_setup_tcbhead.
5091         * sysdeps/generic/tls-setup.h: New file.
5092         * sysdeps/x86/nptl/tls-setup.h: Likewise.
5093         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
5094         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
5095         Likewise.
5096         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
5097         to feature_1.
5098         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
5099         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
5100         (X86_FEATURE_1_SHSTK): Likewise.
5101         (CET_ENABLED): Likewise.
5102         (IBT_ENABLED): Likewise.
5103         (SHSTK_ENABLED): Likewise.
5105 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
5107         [BZ #23208]
5108         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
5109         (LOCALES): Likewise.
5110         * localedata/dsb_DE.UTF-8.in: New file.
5111         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
5113 2018-07-12  Florian Weimer  <fweimer@redhat.com>
5115         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
5116         __mprotect, not mprotect.
5118 2018-07-11  Florian Weimer  <fweimer@redhat.com>
5120         * io/Makefile (headers): Add bits/statx.h.
5122 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
5124         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
5125         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
5126         and headers.
5127         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
5128         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
5129         for utf8_gen.py
5131 2018-07-10  Florian Weimer  <fweimer@redhat.com>
5133         * io/Makefile (routines): Add statx.
5134         (tests-internal): Add tst-statx.
5135         * io/Versions (GLIBC_2.28): Export statx.
5136         * io/bits/statx.h: New file.
5137         * io/sys/stat.h [__USE_GNU]: Include it.
5138         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
5139         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
5140         Define.
5141         * io/statx.c: New file.
5142         * io/statx_generic.: Likewise.
5143         * io/tst-statx.: Likewise.
5144         * include/bits/statx.h: Likewise.
5145         * sysdeps/unix/sysv/linux/kernel-features.h
5146         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
5147         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5148         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
5149         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
5150         Undefine.
5151         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5152         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
5153         * sysdeps/unix/sysv/linux/statx.c: New file.
5154         * manual/filesys.texi: Note that statx is undocumented.
5155         * sysdeps/**/libc*.abilist: Update.
5157 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5159         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
5160         a kernel issue which lead to test failure in some cases.
5162 2018-07-10  Florian Weimer  <fweimer@redhat.com>
5164         [BZ #23036]
5165         * posix/regexec.c (check_node_accept_bytes): When comparing
5166         weights, do not compare an extra byte after the end of the
5167         weights.
5169 2018-07-10  Florian Weimer  <fweimer@redhat.com>
5171         * libio/readline.c: Fix copyright year.
5172         * libio/tst-readline.c Likewise.
5173         * nss/tst-nss-files-hosts-getent.c: Likewise.
5175 2018-07-06  Florian Weimer  <fweimer@redhat.com>
5177         [BZ #18991]
5178         * nss/nss_files/files-XXX.c (internal_getent): Use
5179         __libc_readline_unlocked.  Seek back to the start of the line if
5180         parsing failes with ERANGE.
5181         (get_contents_ret, get_contents): Remove.
5182         * nss/tst-nss-files-hosts-getent.c: New file.
5183         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
5184         (tst-nss-files-hosts-getent): Link with -ldl.
5186 2018-07-06  Florian Weimer  <fweimer@redhat.com>
5188         * include/stdio.h (__libc_readline_unlocked): Declare.
5189         (__ftello64, __fseeko64): Declare aliases.
5190         * libio/readline.c: New file.
5191         * libio/tst-readline.c: Likewise.
5192         (routines): Add readline.
5193         (tests-internal): Add tst-readlime.
5194         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
5195         __libc_readline_unlocked.
5196         * libio/fseeko.c (__fseeko): Rename from fseeko.
5197         (fseeko): Add alias.
5198         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
5199         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
5200         (fseeko64): Add alias.
5201         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
5202         * libio/ftello64.c (__ftello64): Rename from ftello64.
5203         (ftello64): Add alias.
5205 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5207         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
5208         HWCAP_ATOMICS.
5210 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5212         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
5213         Use dl_hwcap without masking.
5214         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
5215         Remove HWCAP_CPUID.
5217 2018-07-06  Florian Weimer  <fweimer@redhat.com>
5219         * conform/conformtest.pl (checknamespace): Escape literal braces
5220         in regular expressions.
5222 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
5224         * sysdeps/x86/cpu-features.c (get_common_indeces):
5225         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
5226         * sysdeps/x86/cpu-features.c (init_cpu_features):
5227         AVX_Fast_Unaligned_Load is disabled for Excavator core.
5229 2018-07-05  Florian Weimer  <fweimer@redhat.com>
5231         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
5232         protector.
5233         (CFLAGS-elf-init.oS): Likewise.
5235 2018-07-05  Florian Weimer  <fweimer@redhat.com>
5236             Carlos O'Donell  <carlos@redhat.com>
5238         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
5239         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
5240         with stack protector enabled because there is no risk of infinite
5241         recursion.
5243 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
5245         [BZ #19818]
5246         [BZ #23307]
5247         * libc-abis (ABSOLUTE): New ABI.
5248         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
5249         * NEWS: Mention the new ABI.
5251 2018-07-05  Florian Weimer  <fweimer@redhat.com>
5253         [BZ # 17662]
5254         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
5255         (RENAME_WHITEOUT): Define.
5256         [__USE_GNU] (renameat2): Declare.
5257         * stdio-common/Makefile (routines): Add renameat2.
5258         (tests): Add tst-renameat2.
5259         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
5260         * stdio-common/renameat2.c: New file.
5261         * stdio-common/tst-renameat2.c: Likewise.
5262         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
5263         * manual/filesys.texi (Temporary Files): Note that renameat2 is
5264         undocumented.
5265         * sysdeps/unix/sysv/linux/kernel-features.h
5266         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
5267         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5268         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
5269         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5270         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
5271         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5272         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
5273         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5274         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
5275         * include/stdio.h (__renameat): Add alias for renameat.
5276         * stdio-common/renameat.c (__renameat): Rename from renameat.
5277         Add hidden definition and alias.
5278         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
5279         * sysdeps/mach/hurd/renameat.c: Likewise.
5280         * sysdeps/**/libc*.abilist: Add renameat2.
5282 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5284         * posix/bug-regex33.c: Fix build after regex sync.
5286 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
5288         [BZ #23164]
5289         * localedata/tst-langinfo-setlocale.c: New file.
5290         * localedata/tst-langinfo-setlocale-static.c: New file.
5291         * localedata/tst-langinfo-newlocale.c: New file.
5292         * localedata/tst-langinfo-newlocale-static.c: New file.
5293         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
5294         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
5295         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
5296         (tests-static): Remove tst-langinfo-static. Add
5297         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
5298         (tests-special): Remove $(objpfx)tst-langinfo.out,
5299         $(objpfx)tst-langinfo-static.out. Add
5300         $(objpfx)tst-langinfo-setlocale.out,
5301         $(objpfx)tst-langinfo-newlocale.out,
5302         $(objpfx)tst-langinfo-setlocale-static.out,
5303         $(objpfx)tst-langinfo-newlocale-static.out.
5304         ($(objpfx)tst-langinfo.out): Remove.
5305         ($(objpfx)tst-langinfo-static.out): Remove.
5306         ($(objpfx)tst-langinfo-newlocale.out): New target.
5307         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
5308         (test-xfail-tst-langinfo-newlocale-static): Add.
5309         ($(objpfx)tst-langinfo-setlocale.out): New target.
5310         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
5311         * localedata/tst-langinfo.c: Call test_locale.
5312         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
5313         data.
5315 2018-07-04  Florian Weimer  <fweimer@redhat.com>
5317         testrun.sh: Implement --tool=strace, --tool=valgrind
5318         * Makefile (testrun-script): Define variable.
5319         (testrun.sh): Use variable.
5320         * manual/install.texi (Tools for Compilation): make 4.0 or later
5321         is required.
5322         * configure.ac: Check for make 4.0 or later.
5323         * INSTALL: Regenerate.
5324         * configure: Likewise.
5326 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5328         [BZ #23233]
5329         [BZ #21163]
5330         [BZ #18986]
5331         [BZ #13762]
5332         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
5333         * posix/PCRE.tests: Remove invalid test.
5334         * posix/bug-regex28.c: Fix expected values for used syntax.
5335         * posix/bug-regex37.c: New file.
5336         * posix/bug-regex38.c: Likewise.
5337         * posix/regcomp.c: Sync with gnulib.
5338         * posix/regex.c: Likewise.
5339         * posix/regex.h: Likewise.
5340         * posix/regex_internal.c: Likewise.
5341         * posix/regex_internal.h: Likewise.
5342         * posix/regexec.c: Likewise.
5344 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
5346         [BZ #23308]
5347         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
5348         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
5349         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
5350         * localedata/unicode-gen/PropList.txt: likewise.
5351         * localedata/unicode-gen/UnicodeData.txt: likewise.
5352         * localedata/charmaps/UTF-8: Regenerate.
5353         * localedata/locales/i18n_ctype: likewise.
5354         * localedata/locales/tr_TR: likewise.
5355         * localedata/locales/translit_circle: likewise.
5356         * localedata/locales/translit_cjk_compat: likewise.
5357         * localedata/locales/translit_combining: likewise.
5358         * localedata/locales/translit_compat: likewise.
5359         * localedata/locales/translit_font: likewise.
5360         * localedata/locales/translit_fraction: likewise.
5362 2018-07-03  Florian Weimer  <fweimer@redhat.com>
5364         [BZ #23363]
5365         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
5366         * stdio-common/tst-printf.sh: Adjust expected output.
5367         * LICENSES: Update.
5369 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5371         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
5372         symbol.
5374 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5376         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
5377         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
5378         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
5379         * stdio-common/tst-printfsz-islongdouble.c: New file.
5380         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
5381         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
5382         [subdir == stdio-common] (routines): Add ieee128-printf_size.
5383         [subdir == stdio-common] (tests-internal): Add
5384         test-printf-size-ieee128, and test-printf-size-ibm128.
5385         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
5386         (CFLAGS-test-printf-size-ibm128.c): New variables.
5387         [subdir == stdio-common] (tests-special): Add
5388         $(objpfx)test-printf-size-ieee128.out and
5389         $(objpfx)test-printf-size-ibm128.out.
5390         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
5391         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
5392         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
5393         __printf_sizeieee128.
5394         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
5395         New file.
5396         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
5397         Likewise.
5398         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
5399         Likewise.
5401 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5403         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
5404         (exp2f_inline): Likewise.
5405         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
5406         (__math_uflowf): Likewise.
5407         (__math_may_uflowf): Likewise.
5408         (__math_divzerof): Likewise.
5409         (__math_invalidf): Likewise.
5410         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
5411         (__math_oflowf): Likewise.
5412         (__math_uflowf): Likewise.
5413         (__math_may_uflowf): Likewise.
5414         (__math_divzerof): Likewise.
5415         (__math_invalidf): Likewise.
5417 2018-06-29  DJ Delorie  <dj@redhat.com>
5418             Carlos O'Donell  <carlos@redhat.com>
5420         [BZ #23329]
5421         * include/libc-symbols.h: Comment the freeres framework.
5422         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
5423         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
5424         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
5425         * dlfcn/dlerror.c: Include libc-symbols.h
5426         (__dlerror_main_freeres): New function.
5427         * dlfcn/dlfreeres.c: New file.
5428         * dlfcn/sdlfreeres.c: New file.
5429         * include/dlfcn.h: Declare __dlerror_main_freeres.
5430         * malloc/set-freeres.c: Declare __libdl_freeres, and
5431         __libpthread_freeres.
5432         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
5433         the releavant libraries are loaded.
5434         * malloc/thread-freeres.c: Add comments.
5435         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
5436         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
5437         * nptl/allocatestack.c (__nptl_free_stacks): New function.
5438         (__free_stacks): Rename to...
5439         (free_stacks): ...this. Mark static.
5440         (queue_stack): Call free_stacks.
5441         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
5442         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
5443         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
5444         ptr_freeres element from struct.
5445         (pthread_functions): Remove .ptr_freeres from struct initializer.
5446         [SHARED] (nptl_freeres): Remove.
5447         * nptl/nptlfreeres.c: New file.
5448         * nptl/pthreadP.h
5449         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
5450         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
5451         attribute_hidden.
5452         (__free_stacks): Rename to...
5453         (__nptl_stacks_freeres): ...this.
5454         (__shm_directory_freeres): Declare.
5455         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
5456         (__nptl_unwind_freeres): ...this.
5457         * resolv/res-close.c: Add comment.
5458         * resolv/resolv_conf.c: Include libc-symbols.h.
5459         * string/strerror_l.c: Include libc-symbols.h.
5460         * sunrpc/rpc_thread.c: Include libc-symbols.h.
5461         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
5462         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
5463         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
5465 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5467         * stdlib/tst-strfmon_l.c: Add tests for long double.
5469 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
5471         [BZ #23208]
5472         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
5473         * localedata/locales/dsb_DE: New file.
5475 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
5477         [BZ #23140]
5478         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
5479         genitive case).
5480         (alt_mon): New entry, import from CLDR (nominative case).
5482 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
5484         [BZ #22996]
5485         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
5487 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5489         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
5490         Use vector registers.
5492         * sysdeps/aarch64/multiarch/memmove_falkor.S
5493         (__memcpy_falkor): Use vector registers.
5495 2018-06-29  Martin Sebor  <msebor@redhat.com>
5497         * manual/stdio.texi (Customizing Printf): Mention interaction
5498         with GCC built-ins.
5500 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
5502         [BZ #23307]
5503         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
5504         `st_value' is 0 if `st_shndx' is SHN_ABS.
5505         * elf/tst-absolute-zero.c: New file.
5506         * elf/tst-absolute-zero-lib.c: New file.
5507         * elf/tst-absolute-zero-lib.lds: New file.
5508         * elf/Makefile (tests): Add `tst-absolute-zero'.
5509         (modules-names): Add `tst-absolute-zero-lib'.
5510         (LDLIBS-tst-absolute-zero-lib.so): New variable.
5511         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
5512         ($(objpfx)tst-absolute-zero: New dependency.
5514 2018-06-29  Zack Weinberg  <zackw@panix.com>
5516         * configure.ac: New command-line option --disable-crypt.
5517         Force --disable-nss-crypt when --disable-crypt is given, with a
5518         warning if it was explicitly enabled.
5519         * configure: Regenerate.
5520         * config.make.in: New boolean substitution variable $(build-crypt).
5521         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
5522         when $(build-crypt).
5523         * manual/install.texi: Document --disable-crypt.
5524         * INSTALL: Regenerate.
5526         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
5527         which is never set.
5528         * conform/Makefile: Only include libcrypt.a in
5529         linknamespace-libs-xsi and linknamespace-libs-XPG4
5530         when $(build-crypt).
5531         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
5532         USE_CRYPT to 1 when $(build-crypt).
5533         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
5534         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
5535         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
5537 2018-06-29  Zack Weinberg  <zackw@panix.com>
5539         * crypt/crypt.h, posix/unistd.h: Update comments and
5540         prototypes for crypt and crypt_r.
5542         * manual/crypt.texi (Cryptographic Functions): New initial
5543         exposition.
5544         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
5545         (Unpredictable Bytes): Improve initial exposition.  Clarify error
5546         behavior of getentropy and getrandom.
5547         * manual/examples/genpass.c: Generate a salt using getentropy
5548         instead of the current time. Use hash $5$ (SHA-2-256).
5549         * manual/examples/testpass.c: Demonstrate validation against
5550         hashes generated with three different one-way functions.
5552         * manual/intro.texi: crypt.texi does not need an overview
5553         anymore.
5555         * manual/nss.texi, manual/memory.texi, manual/socket.texi
5556         * manual/terminal.texi: Consistently refer to "passphrases"
5557         * instead of "passwords", and to the "user database" instead
5558         * of the "password database".
5559         * manual/users.texi: Similarly.  Add notes about how actual
5560         passphrase hashes are now stored in the shadow database.
5561         Remove 20-year-old junk todo note.
5563 2018-06-29  Zack Weinberg  <zackw@panix.com>
5565         * manual/crypt.texi: Use a normal top-level @node declaration.
5566         Move most of the introductory text to the 'crypt' section.
5567         Move the example programs below the @deftypefun for 'crypt_r'.
5568         Move the 'getpass' section...
5569         * manual/terminal.texi: ...here.
5571 2018-06-29  Zack Weinberg  <zackw@panix.com>
5572             Florian Weimer <fweimer@redhat.com>
5574         * posix/unistd.h: Do not declare encrypt.
5575         (_XOPEN_CRYPT): Remove macro definition.
5576         (crypt): Declare only for _USE_MISC.
5577         * stdlib/stdlib.h: Do not declare setkey.
5578         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
5579         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
5581         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
5582         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
5583         into compat symbols.  Don't define initial_perm if it's not
5584         going to be used.
5585         * crypt/cert.c: Link explicitly with the expected versions for
5586         setkey and encrypt.  If they are not available at all, mark
5587         the test as unsupported.
5589         * sunrpc/des_crypt.c: Unconditionally block linkage with
5590         cbc_crypt and ecb_crypt for new binaries.
5591         * sunrpc/des_soft.c: Unconditionally block linkage with
5592         des_setparity for new binaries.
5594         * manual/crypt.texi: Remove the entire "DES Encryption"
5595         section.  Also remove the paragraph talking about FIPS 140-2
5596         from the introduction.
5597         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
5598         of libgcrypt for "real" encryption, not DES.
5599         * manual/conf.texi (Constants for Sysconf): Mention that
5600         _XOPEN_CRYPT is no longer impelemented.
5602         * conform/data/unistd.h-data: Remove crypt function declaration.
5604 2018-06-29  Florian Weimer  <fweimer@redhat.com>
5606         [BZ #23351]
5607         * malloc/hooks.c: Update comments on restoring of dumped heaps.
5608         (disallow_malloc_check): Remove variable.
5609         (__malloc_check_init): Adjust.
5610         (malloc_set_state): Update comment.
5611         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
5612         declarations.
5614 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
5616         [BZ #23140]
5617         * localedata/locales/ast_ES (mon): Rename to...
5618         (alt_mon): This.
5619         (mon): Import from CLDR (genitive case).
5621 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
5622             Jakub Sitnicki  <jkbs@redhat.com>
5624         [BZ #21812]
5625         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
5626         on NLM_F_DUMP_INTR.
5628 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5630         * manual/llio.texi: Remove spurious space.
5632 2018-06-28  Florian Weimer  <fweimer@redhat.com>
5634         [BZ #23349]
5635         * time/bits/types/struct_timespec.h: Change header inclusion guard to
5636         _STRUCT_TIMESPEC.
5638 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5640         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
5641          __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
5642         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
5643         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
5644         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
5645         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
5646         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
5648 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
5650         [BZ #23266]
5651         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
5652         Copy and null-terminate entries that are not terminated, in
5653         addition to empty ones.
5655 2018-06-27  Florian Weimer  <fweimer@redhat.com>
5657         [BZ #18023]
5658         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
5659         (extend_alloca_account): Remove.
5660         * manual/stdio.texi (Variable Arguments Output): Update comment.
5662 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
5664         * nptl/sockperf.c: Remove file.
5666 2018-06-27  Florian Weimer  <fweimer@redhat.com>
5668         [BZ #18023]
5669         * elf/dl-deps.c (_dl_map_object_deps): Use struct
5670         scratch_buffer instead of extend_alloca.
5672 2018-06-27  Florian Weimer  <fweimer@redhat.com>
5674         [BZ #18023]
5675         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
5676         scratch_buffer instead of extend_alloca.  Update comments.
5678 2018-06-27  Florian Weimer  <fweimer@redhat.com>
5680         [BZ #18023]
5681         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
5682         instead of extend_alloca.
5684 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
5686         [BZ #13888]
5687         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
5688         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
5689         /tmp.
5690         * scripts/test-installation.pl: Put temporary files in build
5691         directory, not /tmp.
5692         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
5693         (CFLAGS-bug4.c): Likewise.
5694         (CFLAGS-bug5.c): Likewise.
5695         (CFLAGS-test-fseek.c): Likewise.
5696         (CFLAGS-test-popen.c): Likewise.
5697         (CFLAGS-test_rdwr.c): Likewise.
5698         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
5699         /tmp.
5700         * stdio-common/bug4.c (main): Likewise.
5701         * stdio-common/bug5.c (main): Likewise.
5702         * stdio-common/test-fseek.c (TESTFILE): Likewise.
5703         * stdio-common/test-popen.c (do_test): Likewise.
5704         * stdio-common/test_rdwr.c (main): Likewise.
5706 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
5708         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
5709         (sem_open): Set sem.newsem.pad to zero for valgrind.
5711 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5713         [BZ #20251]
5714         * NEWS: Mention fcntl64 addition.
5715         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
5716         * login/utmp_file.c: Likewise.
5717         * sysdeps/posix/fdopendir.c: Likewise.
5718         * sysdeps/posix/opendir.c: Likewise.
5719         * sysdeps/unix/pt-fcntl.c: Likewise.
5720         * include/fcntl.h (__libc_fcntl64, __fcntl64,
5721         __fcntl64_nocancel_adjusted): New prototype.
5722         (__fcntl_nocancel_adjusted): Remove prototype.
5723         * io/Makefile (routines): Add fcntl64.
5724         (CFLAGS-fcntl64.c): New rule.
5725         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
5726         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
5727         * io/fcntl.h (fcntl64): Add prototype and redirect if
5728         __USE_FILE_OFFSET64 is defined.
5729         * io/fcntl64.c: New file.
5730         * manual/llio.text: Add a note for which commands fcntl acts a
5731         cancellation point.
5732         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
5733         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
5734         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
5735         New symbols.
5736         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
5737         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
5738         non-LFS case.
5739         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
5740         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
5741         to __fcntl64_nocancel.
5742         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
5743         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
5744         to __fcntl64_nocancel.
5745         * sysdeps/generic/not-cancel.h: Likewise.
5746         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
5747         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
5748         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
5749         (fcntl64): New symbol.
5750         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5751         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5752         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5755         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5756         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5757         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5758         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5759         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5760         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
5761         fcntl64): Likewise.
5762         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5763         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
5764         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5765         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5766         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5767         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5768         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5769         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5770         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5772         Likewise.
5773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5774         Likewise.
5775         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5776         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5777         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5779 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5781         Run thread shutdown functions in an explicit order.
5782         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
5783         definition.
5784         (__libc_thread_freeres): Call thread shutdown functions
5785         explicitly.
5786         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
5787         * include/string.h (__strerror_thread_freeres): Declare.
5788         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
5789         arena_thread_freeres.  No longer static.  Remove thread shutdown
5790         hook registration.
5791         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
5792         Declare.
5793         * resolv/res-close.c (__res_thread_freeres): Renamed from
5794         res_thread_freeres.  No longer static.  Remove thread shutdown
5795         hook registration.
5796         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
5797         * resolv/resolv_conf.c (freeres): Remove incorrect section
5798         attribute and use libc_freeres_fn.
5799         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
5800         strerror_thread_freeres.  No longer static.  Remove thread
5801         shutdown hook registration.
5802         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
5803         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
5804         shutdown hook registration.
5805         * Makerules (shlib.lds): Do not provide section boundary symbols
5806         for __libc_thread_subfreeres.
5807         * manual/memory.texi (Basic Allocation): Update comment.
5809 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5811         Remove always-defined _RPC_THREAD_SAFE_ macro.
5812         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
5813         Do not define _RPC_THREAD_SAFE_.
5814         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
5815         conditional.
5816         * sunrpc/clnt_perr.c: Likewise.
5817         * sunrpc/clnt_raw.c: Likewise.
5818         * sunrpc/clnt_simp.c: Likewise.
5819         * sunrpc/key_call.c: Likewise.
5820         * sunrpc/rpc_common.c: Likewise.
5821         * sunrpc/rpc_main.c: Likewise.
5822         * sunrpc/rpc_thread.c: Likewise.
5823         * sunrpc/svc.c: Likewise.
5824         * sunrpc/svc_raw.c: Likewise.
5825         * sunrpc/svc_simple.c: Likewise.
5826         * sumrpc/svcauth_des.c: Likewise.
5828 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5830         * libio/Makefile (tests-internal): Add tst-vtables,
5831         tst-vtables-interposed.
5832         * libio/tst-vtables.c: New file.
5833         * libio/tst-vtables-common.c: Likewise.
5834         * libio/tst-vtables-interposed.c: Likewise.
5836 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5838         * support/support_test_main.c (support_test_main): Only call
5839         setvbuf if not disables.
5840         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
5841         * support/test-driver.h (struct test_config): Add no_setvbuf member.
5843 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5845         [BZ #23313]
5846         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
5848 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5850         [BZ #18023]
5851         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5852         Use struct scratch_buffer instead of extend_alloca.
5854 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5856         [BZ #18023]
5857         * nss/getent.c (initgroups_keys): Use dynarray instead of
5858         extend_alloca.
5860 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5862         [BZ #18023]
5863         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
5864         Use struct scratch_buffer instead of extend_alloca.
5866 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5868         [BZ #18023]
5869         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
5870         back to malloc directly, without stack allocations.
5872 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5874         [BZ #18023]
5875         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
5876         of extend_alloca.
5878 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5880         [BZ #18023]
5881         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
5882         of extend_alloca.
5883         * nscd/hstcache.c (addhstbyX): Likewise.
5884         * nscd/pwdcache.c (addpwbyX): Likewise.
5885         * nscd/servicescache.c (addservbyX): Likewise.
5887 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5889         [BZ #18023]
5890         * nscd/connections.c (read_cmdline): New function.
5891         (restart): Use it.  Update comment.
5893 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
5895         [BZ #23140]
5896         * localedata/locales/csb_PL (mon): Rename to...
5897         (alt_mon): This.
5898         (abmon): Rename to...
5899         (ab_alt_mon): This.
5900         (mon): Add with proper genitive forms, copy from Wikipedia.
5901         (abmon): Likewise.
5903 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
5905         [BZ #19485]
5906         * localedata/locales/csb_PL (mon): Fix typos:
5907         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
5908         (yesstr): Add, value is "jo".
5909         (nostr): Add, value is "nié".
5911 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5913         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
5914         all log1p and significand functions on m680x0.
5915         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
5916         of s_significand.c..
5917         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
5918         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
5919         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
5920         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
5921         s_log1p.c and include it..
5923 2018-06-21  Vincent Chen  <vincentc@andestech.com>
5925         * elf/elf.h (R_NDS32_NONE): New define.
5926         (R_NDS32_32_RELA): Likewise.
5927         (R_NDS32_COPY): Likewise.
5928         (R_NDS32_GLOB_DAT): Likewise.
5929         (R_NDS32_JUMP_SLOT): Likewise.
5930         (R_NDS32_RELATIVE): Likewise.
5931         (R_NDS32_TLS_TPOFF): Likewise.
5932         (R_NDS32_TLS_DESC): Likewise.
5934 2018-06-21  Mark Wielaard  <mark@klomp.org>
5936         * elf/elf.h (R_BPF_MAP_FD): Removed.
5937         (R_BPF_64_64, R_BPF_64_32): New.
5939 2018-06-21  Florian Weimer  <fweimer@redhat.com>
5941         [BZ #23253]
5942         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
5943         Renamed from libc_feholdsetround_ctx.
5944         (default_libc_feresetround_ctx): Renamed from
5945         libc_feresetround_ctx.
5946         (default_libc_feholdsetround_noex_ctx): Renamed from
5947         libc_feholdsetround_noex_ctx.
5948         (default_libc_feresetround_noex_ctx): Renamed from
5949         libc_feresetround_noex_ctx.
5950         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
5951         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
5952         forwardning to the old implementations under the new names.
5953         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
5954         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
5955         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
5956         (libc_feresetround_ctx): Forward to default implements for i386
5957         and MATH_SET_BOTH_ROUNDING_MODES.
5958         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
5959         Add -DMATH_SET_BOTH_ROUNDING_MODES.
5961 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
5963         * string/tst-cmp.c: Include <libc-diag.h>.
5964         (strncmp_max): Disable -Wstringop-overflow= around call to
5965         strncmp.
5966         (strncasecmp_max): Disable -Wstringop-overflow= around call to
5967         strncasecmp.
5969         * string/bug-strpbrk1.c: Include <libc-diag.h>.
5970         (main): Disable -Wunused-value around call to strpbrk.
5971         * string/bug-strspn1.c: Include <libc-diag.h>.
5972         (main): Disable -Wunused-value around call to strspn.
5974 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5975             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5977         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
5978         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
5980 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5982         * math/Makefile (libm-calls): Move s_significandF to...
5983         (gen-libm-calls): ... here.
5984         * math/s_significand_template.c: New file.
5985         * math/s_significand.c: Removed.
5986         * math/s_significandf.c: Removed.
5987         * math/s_significandl.c: Removed.
5988         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
5989         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
5991         * math/e_exp2_template.c (declare_mgen_finite_alias,
5992         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
5993         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
5994         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
5996 2018-06-20  Florian Weimer  <fweimer@redhat.com>
5998         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
6000 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
6002         [BZ #23280]
6003         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
6004         floating-point number to strtod functions rather than possibly
6005         negating result of those functions.
6006         * stdio-common/tst-scanf-round.c: New file.
6007         * stdio-common/Makefile (tests): Add tst-scanf-round.
6008         ($(objpfx)tst-scanf-round): Depend on $(libm).
6010 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6012         * sysdeps/mach/hurd/localplt.data: Move to...
6013         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
6014         R_386_GLOB_DAT like on Linux i386.
6016 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
6018         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
6019         (SHM_STAT_ANY): New macro.
6020         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
6021         (SHM_STAT_ANY): Likewise.
6022         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
6023         (SHM_STAT_ANY): Likewise.
6024         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
6025         (SHM_STAT_ANY): Likewise.
6026         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
6027         (SHM_STAT_ANY): Likewise.
6028         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
6029         (SHM_STAT_ANY): Likewise.
6030         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
6031         (SHM_STAT_ANY): Likewise.
6032         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
6033         (SHM_STAT_ANY): Likewise.
6034         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
6035         (SHM_STAT_ANY): Likewise.
6036         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
6037         (SHM_STAT_ANY): Likewise.
6038         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
6039         (SHM_STAT_ANY): Likewise.
6040         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
6041         (SHM_STAT_ANY): Likewise.
6043         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
6044         (SEM_STAT_ANY): New macro.
6045         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
6046         (SEM_STAT_ANY): Likewise.
6047         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
6048         (SEM_STAT_ANY): Likewise.
6049         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
6050         (SEM_STAT_ANY): Likewise.
6051         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
6052         (SEM_STAT_ANY): Likewise.
6053         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
6054         (SEM_STAT_ANY): Likewise.
6055         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
6056         (SEM_STAT_ANY): Likewise.
6057         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
6058         (SEM_STAT_ANY): Likewise.
6059         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
6060         (SEM_STAT_ANY): Likewise.
6061         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
6062         (SEM_STAT_ANY): Likewise.
6064         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
6065         (MSG_STAT_ANY): New macro.
6066         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
6067         (MSG_STAT_ANY): Likewise.
6068         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
6069         (MSG_STAT_ANY): Likewise.
6070         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
6071         (MSG_STAT_ANY): Likewise.
6072         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
6073         (MSG_STAT_ANY): Likewise.
6074         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
6075         (MSG_STAT_ANY): Likewise.
6076         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
6077         (MSG_STAT_ANY): Likewise.
6078         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
6079         (MSG_STAT_ANY): Likewise.
6080         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
6081         (MSG_STAT_ANY): Likewise.
6082         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
6083         (MSG_STAT_ANY): Likewise.
6085         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
6086         (MAP_TYPE): Change value to 0x2b.
6088 2018-06-18  Florian Weimer  <fweimer@redhat.com>
6090         [BZ #15722]
6091         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
6092         socket with SOCK_CLOEXEC.
6094 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
6096         [BZ #23303]
6097         * sysdeps/powerpc/powerpc64/le/Makefile
6098         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
6099         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
6100         (gnulib-tests): Also add $(f128-loader-link) for
6101         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
6103 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6105         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
6106         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
6107         of sendfile.
6108         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
6109         (sendfile64): New strong alias.
6110         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
6111         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
6112         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
6113         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
6114         attribute.
6115         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
6116         ___pthread_get_cleanup_stack.
6117         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
6118         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
6119         * mach/shortcut.awk: Make syscall stubs include
6120         <mach-shortcuts-hidden.h> and add hidden definition.
6121         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
6122         (__mach_msg): Add hidden prototype.
6123         * mach/msg.c: Include <mach.h>.
6124         (__mach_msg): Add hidden definition.
6125         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
6126         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
6127         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
6128         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
6129         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
6130         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
6131         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
6132         prototype and definition.
6133         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
6134         hidden target for _hurd_self_sigstate.
6136 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
6138         [BZ #23007]
6139         * stdlib/tst-strtod-nan-sign-main.c: New file.
6140         * stdlib/tst-strtod-nan-sign.c: Likewise.
6141         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
6142         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
6143         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
6144         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
6145         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
6147 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
6149         [BZ #23007]
6150         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
6151         appropriate sign.
6153 2018-06-14  Florian Weimer  <fweimer@redhat.com>
6155         [BZ #23290]
6156         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
6157         that the result stays within the ISO-8859-1 range.
6158         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
6159         characters are defined in IBM273.
6161 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6163         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
6164         __mach_task_self): Remove attribute_hidden.
6166 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
6168         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
6169         ignore -Wrestrict for one test.
6171 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
6172             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6174         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
6176 2018-06-14  Florian Weimer  <fweimer@redhat.com>
6178         * scripts/update-abilist.sh: Accept empty list of files to patch.
6180 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6182         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
6183         test-xfail-check-abi-libmachuser): Add.
6184         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
6185         __libc_read and __libc_write to __read and __write.
6186         * sysdeps/hurd/include/hurd/port.h: New file.
6187         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
6188         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
6189         __thread_switch, __evc_wait): Move declarations to...
6190         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
6191         attribute_hidden.
6192         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
6193         use PLT to call _hurd_self_sigstate.
6195 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
6197         [BZ #23279]
6198         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
6199         MAX_EXP as overflowing.
6200         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
6201         overflow flag.
6202         (round_str): Output also whether result overflows in each rounding
6203         mode.
6204         * stdlib/tst-strtod-round-data: Add more tests.
6205         * stdlib/tst-strtod-round-data.h: Regenerated.
6206         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
6207         (TEST): Handle extra arguments for overflow flags.
6208         (struct test_overflow): New type.
6209         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
6210         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
6211         (test_in_one_mode): Take argument with overflow information.
6212         (do_test): Update calls to test_in_one_mode.
6214 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
6216         * elf/dl-load (_dl_dst_substitute): Correct comment.
6217         (_dl_dst_count): Likewise.
6219         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
6220         lll_futex_timed_wait.
6222 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
6224         [BZ #23277]
6225         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
6226         attribute.
6227         * math/test-nan-const.c: New file.
6228         * math/Makefile (tests): Add test-nan-const.
6229         (CFLAGS-test-nan-const.c): New variable.
6231 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
6233         * benchtests/scripts/compare_strings.py (process_results): Add
6234         funcs argument.  Compare only functions which are selected.
6235         (main): Check if base function is among selected functions.
6236         Pass selected functions to process_results.
6237         (__main__): Add -f/--functions argument.
6239 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
6240             Hongbo Zhang  <hongbo.zhang@linaro.org>
6242         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
6243         __memcpy_falkor for phecda core.
6244         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
6245         __memmove_falkor for phecda core.
6246         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
6247         __memset_falkor for phecda core.
6248         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
6249         for phecda core.
6250         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
6251         macro to identify phecda core.
6253 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
6254             Andreas Schwab  <schwab@suse.de>
6255             Dmitry V. Levin  <ldv@altlinux.org>
6256             Florian Weimer <fweimer@redhat.com>
6258         [BZ #23102]
6259         [BZ #21942]
6260         [BZ #18018]
6261         [BZ #23259]
6262         CVE-2011-0536
6263         * elf/dl-dst.h: Remove DL_DST_COUNT.
6264         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
6265         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
6266         (is_dst): Comment.  Support ELF gABI.
6267         (_dl_dst_count): Comment.  Simplify and count DSTs.
6268         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
6269         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
6270         locals.
6272 2018-06-12  Zack Weinberg  <zackw@panix.com>
6274         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
6275         * sysdeps/unix/sysv/linux/dl-sysdep.c
6276         Include not-cancel.h.  Use __close_nocancel instead of __close,
6277         __open64_nocancel instead of __open, __read_nocancel instead of
6278         __libc_read, and __write_nocancel instead of __libc_write.
6280         * csu/check_fds.c (check_one_fd)
6281         * sysdeps/posix/fdopendir.c (__fdopendir)
6282         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
6283         instead of __fcntl and/or __libc_fcntl.
6285         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
6286         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
6287         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
6288         Use __open64_nocancel instead of __open_nocancel.
6290         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
6291         hidden_proto declarations to the end and issue them if either
6292         IS_IN(libc) or IS_IN(rtld).
6293         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6294         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
6295         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
6296         read_nocancel, waitpid_nocancel, write_nocancel.
6298         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
6299         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
6300         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
6302         * nptl/pt-fcntl.c: New file.
6303         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
6304         (libpthread-routines): Add pt-fcntl.
6305         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
6306         (__libc_fcntl): Remove attribute_hidden.
6307         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
6308         __fcntl_nocancel_adjusted, not fcntl_common.
6309         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
6310         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
6311         to fcntl_nocancel.c.
6312         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
6313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
6314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
6315         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
6317         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
6318         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
6319         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
6320         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
6321         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
6322         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
6323         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
6324         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
6325         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
6326         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
6327         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
6328         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
6329         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
6330         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
6331         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
6332         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
6333         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
6334         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
6335         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
6336         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
6338         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
6339         libpthread-routines.
6340         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
6341         defines nothing.
6343         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
6344         __libc_read, and __write instead of __libc_write.  Define
6345         __open64 in addition to __open.
6347 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
6349         [BZ #23250]
6350         [BZ #10686]
6351         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
6352         to _private_tm[3] and add __glibc_reserved2.
6353         Add _Static_assert of offset of __private_ss == 0x30.
6354         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
6355         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
6357 2018-06-12  Florian Weimer  <fweimer@redhat.com>
6359         x86: Make strncmp usable from rtld.
6360         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
6361         __strncmp_ia32 if in libc (and not in rtld).
6362         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
6363         strncmp if not in libc (and not to __strncmp_sse2).
6365 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
6367         [BZ #23140]
6368         * localedata/locales/gd_GB (mon): Rename to...
6369         (alt_mon): This.
6370         (mon): Import from CLDR (genitive case).
6371         * localedata/locales/hsb_DE (mon): Rename to...
6372         (alt_mon): This.
6373         (mon): Import from CLDR (genitive case).
6374         * localedata/locales/wa_BE (mon): Rename to...
6375         (alt_mon): This.
6376         (mon): Add, fill with the proper genitive forms, but CLDR data
6377         is incomplete; completed according to the comments in this file.
6378         (d_t_fmt): Do not use "di" before the month name, no longer needed.
6380         * localedata/locales/wa_BE (country_name): Reword
6381         "Beljike" -> "Beldjike".
6383 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
6385         [BZ #23272]
6386         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
6387         cases of non-finite arguments.
6388         * math/libm-test-fma.inc (fma_test_data): Add more tests.
6390 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
6392         [BZ #23174]
6393         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
6395 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6397         [BZ #23264]
6398         * include/unistd.h (__execvpex): New prototype.
6399         * posix/Makefile (tests): Add tst-spawn4.
6400         (tests-internal): Add tst-spawn4-compat.
6401         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
6402         * posix/tst-spawn4-compat.c: New file.
6403         * posix/tst-spawn4.c: Likewise.
6404         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
6405         binaries as shell scripts.
6406         * sysdeps/posix/spawni.c (__spawni): Likewise.
6408 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
6410         [BZ #23145]
6411         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
6412         ($(all-built-dso:=.dynsym): New target.
6413         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
6414         ($(objpfx)check-initfini.out): New target.
6415         (generated): Add check-initfini.out.
6416         * scripts/check-initfini.awk: New file.
6417         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
6418         (_fini): Likewise.
6419         * sysdeps/alpha/crti.S (_init): Mark as hidden.
6420         (_fini): Likewise.
6421         * sysdeps/arm/crti.S (_init): Mark as hidden.
6422         (_fini): Likewise.
6423         * sysdeps/hppa/crti.S (_init): Mark as hidden.
6424         (_fini): Likewise.
6425         * sysdeps/i386/crti.S (_init): Mark as hidden.
6426         (_fini): Likewise.
6427         * sysdeps/ia64/crti.S (_init): Mark as hidden.
6428         (_fini): Likewise.
6429         * sysdeps/m68k/crti.S (_init): Mark as hidden.
6430         (_fini): Likewise.
6431         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
6432         (_fini): Likewise.
6433         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
6434         (_fini): Likewise.
6435         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
6436         (_fini): Likewise.
6437         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
6438         (_fini): Likewise.
6439         * sysdeps/nios2/crti.S (_init): Mark as hidden.
6440         (_fini): Likewise.
6441         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
6442         (_fini): Likewise.
6443         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
6444         (_fini): Likewise.
6445         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
6446         (_fini): Likewise.
6447         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
6448         (_fini): Likewise.
6449         * sysdeps/sh/crti.S (_init): Mark as hidden.
6450         (_fini): Likewise.
6451         * sysdeps/sparc/crti.S (_init): Mark as hidden.
6452         (_fini): Likewise.
6453         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
6454         (_fini): Likewise.
6456 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6458         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
6459         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
6460         and TF redirection to KFtype and KF only when the default
6461         long double type is not the IEEE 128-bit floating point type.
6463 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
6465         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
6466         macro.
6467         (HWCAP_USCAT): Likewise.
6468         (HWCAP_ILRCPC): Likewise.
6469         (HWCAP_FLAGM): Likewise.
6470         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
6471         Increase to 28.
6472         (_dl_aarch64_cap_flags): Add new flag names.
6474         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
6475         (MAP_FIXED_NOREPLACE): New macro.
6476         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
6477         (MAP_FIXED_NOREPLACE): Likewise.
6478         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
6479         (MAP_FIXED_NOREPLACE): Likewise.
6480         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
6481         (MAP_FIXED_NOREPLACE): Likewise.
6482         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
6483         (MAP_FIXED_NOREPLACE): Likewise.
6484         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
6485         (MAP_FIXED_NOREPLACE): Likewise.
6486         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
6487         (MAP_FIXED_NOREPLACE): Likewise.
6488         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
6489         (MAP_FIXED_NOREPLACE): Likewise.
6490         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
6491         (MAP_FIXED_NOREPLACE): Likewise.
6492         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
6493         (MAP_FIXED_NOREPLACE): Likewise.
6494         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
6495         (MAP_FIXED_NOREPLACE): Likewise.
6496         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
6497         (MAP_FIXED_NOREPLACE): Likewise.
6498         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
6499         (MAP_FIXED_NOREPLACE): Likewise.
6500         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
6501         (MAP_FIXED_NOREPLACE): Likewise.
6502         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
6503         (MAP_FIXED_NOREPLACE): Likewise.
6505         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6506         version to 4.17.
6508 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
6510         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6511         version to 4.17
6513 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6515         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
6516         int.
6517         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
6519 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6521         * benchtests/scripts/compare_string.py: (process_results) Catch
6522         exception in non-existent base_func and catch exception in
6523         non-existent attribute.
6524         (parse_file) Catch exception if input file does not exist.
6526 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6528         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
6529         options to avoid diff calculation and omit header, respectively.
6530         (main): process --no-diff and --no-header
6532 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6533             H.J. Lu  <hongjiu.lu@intel.com>
6535         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6536         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
6537         wcsncmp-sse2.
6538         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
6539         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
6540         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
6541         and __wcsncmp_sse2.
6542         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
6543         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
6544         AVX unaligned load is fast and vzeroupper is preferred.
6545         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
6546         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
6547         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
6548         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
6549         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
6550         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
6551         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
6552         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
6553         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
6554         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
6555         is undefined.
6557 2018-06-01  Florian Weimer  <fweimer@redhat.com>
6559         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
6560         configuring with --disable-multi-arch, building with
6561         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
6562         Haswell-era CPU.
6564 2018-06-01  Florian Weimer  <fweimer@redhat.com>
6566         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
6567         results from building with “-march=x86-64 -mtune=generic
6568         -mfpmath=sse” and running on a Haswell-era CPU.
6570 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
6572         [BZ #18473]
6573         * soft-fp/sqrttf2.c: Remove file.
6574         * soft-fp/sqrtdf2.c: Move to ....
6575         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
6576         <shlib-compat.h>.
6577         (__sqrtdf2): Make conditional on
6578         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
6579         symbol.
6580         * soft-fp/sqrtsf2.c: Move to ....
6581         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
6582         <shlib-compat.h>.
6583         (__sqrtsf2): Make conditional on
6584         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
6585         symbol.
6586         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
6587         (gcc-double-routines): Remove sqrtdf2.
6588         (gcc-quad-routines): Remove sqrttf2.
6589         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
6590         Do not filter out sqrtsf2 and sqrtdf2.
6591         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
6592         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
6594 2018-06-01  Florian Weimer  <fweimer@redhat.com>
6596         * sysdeps/generic/libcidn.abilist: Remove file.
6598 2018-06-01  Florian Weimer  <fweimer@redhat.com>
6600         [BZ #23236]
6601         * libio/strfile.h (struct _IO_str_fields): Rename members to
6602         discourage their use and add comment.
6603         (_IO_STR_DYNAMIC): Remove unused macro.
6604         * libio/strops.c (_IO_str_init_static_internal): Do not use
6605         callback pointers.  Call malloc and free.
6606         (_IO_str_overflow): Do not use callback pointers.  Call malloc
6607         and free.
6608         (enlarge_userbuf): Likewise.
6609         (_IO_str_finish): Call free.
6610         * libio/wstrops.c (_IO_wstr_init_static): Initialize
6611         _allocate_buffer_unused.
6612         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
6613         and free.
6614         (enlarge_userbuf): Likewise.
6615         (_IO_wstr_finish): Call free.
6616         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
6617         _allocate_buffer_unused, _free_buffer_unused.
6618         * libio/memstream.c (__open_memstream): Likewise.
6619         * libio/vasprintf.c (_IO_vasprintf): Likewise.
6620         * libio/wmemstream.c (open_wmemstream): Likewise.
6622 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
6624         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
6625         AMD Ryzen 7 1800X.
6627 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6629         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
6630         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
6631         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
6632         New file.
6633         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
6634         Likewise.
6635         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
6637 2018-05-29  Florian Weimer  <fweimer@redhat.com>
6639         * support/Makefile (libsupport-routines): Add
6640         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
6641         xpthread_barrierattr_setpshared.
6642         * support/xpthread_barrierattr_destroy.c: New file.
6643         * support/xpthread_barrierattr_init.c: Likewise.
6644         * support/xpthread_barrierattr_setpshared.c: Likewise.
6646 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6648         [BZ #23206]
6649         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
6650         _r_debug and update DT_DEBUG for debugger.
6652 2018-05-29  Florian Weimer  <fweimer@redhat.com>
6654         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
6655         (tst-strtod5i.out): Likewise.
6657 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
6659         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
6660         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
6661         (sparc64-quad-routines): New variable.  Moved from ....
6662         [$(subdir) = soft-fp] (sysdep_routines): Add
6663         $(sparc64-quad-routines).  Moved from ....
6664         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
6665         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
6666         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
6667         moved from ....
6668         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
6669         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
6670         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
6671         * sysdeps/sparc/sparc64/qp_add.c: ... here.
6672         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
6673         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
6674         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
6675         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
6676         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
6677         * sysdeps/sparc/sparc64/qp_div.c: ... here.
6678         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
6679         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
6680         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
6681         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
6682         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
6683         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
6684         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
6685         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
6686         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
6687         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
6688         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
6689         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
6690         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
6691         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
6692         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
6693         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
6694         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
6695         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
6696         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
6697         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
6698         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
6699         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
6700         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
6701         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
6702         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
6703         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
6704         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
6705         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
6706         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
6707         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
6708         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
6709         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
6710         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
6711         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
6712         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
6713         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
6714         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
6715         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
6716         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
6717         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
6718         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
6719         * sysdeps/sparc/sparc64/qp_util.c: ... here.
6720         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
6721         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
6722         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
6723         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
6724         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
6725         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
6727         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
6728         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
6729         (sparc32-quad-routines): New variable.  Moved from ....
6730         [$(subdir) = soft-fp] (sysdep_routines): Add
6731         $(sparc32-quad-routines).  Moved from ....
6732         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
6733         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
6734         moved from ....
6735         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
6736         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
6737         * sysdeps/sparc/sparc32/q_add.c: ... here.
6738         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
6739         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
6740         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
6741         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
6742         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
6743         * sysdeps/sparc/sparc32/q_div.c: ... here.
6744         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
6745         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
6746         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
6747         * sysdeps/sparc/sparc32/q_feq.c: ... here.
6748         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
6749         * sysdeps/sparc/sparc32/q_fge.c: ... here.
6750         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
6751         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
6752         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
6753         * sysdeps/sparc/sparc32/q_fle.c: ... here.
6754         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
6755         * sysdeps/sparc/sparc32/q_flt.c: ... here.
6756         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
6757         * sysdeps/sparc/sparc32/q_fne.c: ... here.
6758         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
6759         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
6760         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
6761         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
6762         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
6763         * sysdeps/sparc/sparc32/q_mul.c: ... here.
6764         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
6765         * sysdeps/sparc/sparc32/q_neg.c: ... here.
6766         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
6767         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
6768         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
6769         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
6770         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
6771         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
6772         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
6773         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
6774         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
6775         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
6776         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
6777         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
6778         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
6779         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
6780         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
6781         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
6782         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
6783         * sysdeps/sparc/sparc32/q_sub.c: ... here.
6784         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
6785         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
6786         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
6787         * sysdeps/sparc/sparc32/q_util.c: ... here.
6788         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
6789         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
6790         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
6791         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
6793 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6794             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6796         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
6797         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
6798         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
6799         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
6801 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
6803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
6804         powerpc/soft-fp.
6805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
6806         Likewise.
6807         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
6808         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
6810 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6812         [BZ #23171]
6813         * math/math.h [C++] (iseqsig): Fix parameter type for the long
6814         double version.
6816 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
6818         * sysdeps/sh/Implies: Remove sh/soft-fp.
6819         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
6820         * sysdeps/sh/sfp-machine.h: ... here.
6822 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6824         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6825         (__mempcpy_erms): Skip zero length.
6826         (__memmove_erms): Likewise.
6827         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
6828         (__memset_erms): Likewise.
6830 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
6832         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
6833         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
6834         Add functions moved from ....
6835         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
6836         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
6837         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
6838         from ....
6839         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
6840         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
6841         * sysdeps/alpha/e_sqrtl.c: ... here.
6842         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
6843         * sysdeps/alpha/local-soft-fp.h: ... here.
6844         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
6845         * sysdeps/alpha/ots_add.c: ... here.
6846         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
6847         * sysdeps/alpha/ots_cmp.c: ... here.
6848         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
6849         * sysdeps/alpha/ots_cmpe.c: ... here.
6850         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
6851         * sysdeps/alpha/ots_cvtqux.c: ... here.
6852         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
6853         * sysdeps/alpha/ots_cvtqx.c: ... here.
6854         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
6855         * sysdeps/alpha/ots_cvttx.c: ... here.
6856         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
6857         * sysdeps/alpha/ots_cvtxq.c: ... here.
6858         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
6859         * sysdeps/alpha/ots_cvtxt.c: ... here.
6860         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
6861         * sysdeps/alpha/ots_div.c: ... here.
6862         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
6863         * sysdeps/alpha/ots_mul.c: ... here.
6864         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
6865         * sysdeps/alpha/ots_nintxq.c: ... here.
6866         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
6867         * sysdeps/alpha/ots_sub.c: ... here.
6868         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
6869         * sysdeps/alpha/sfp-machine.h: ... here.
6871 2018-05-23  Florian Weimer  <fweimer@redhat.com>
6873         [BZ #19728]
6874         [BZ #19729]
6875         [BZ #22247]
6876         CVE-2016-6261
6877         CVE-2016-6263
6878         CVE-2017-14062
6879         Switch to extern IDNA implementation (libidn2).
6880         * libidn: Remove subdirectory.
6881         * LICENSES: Do not mention licensing conditions for the removed
6882         libidn code.
6883         * config.h.in (HAVE_LIBIDN): Remove.
6884         * include/dlfcn.h (__libc_dlopen): Update comment.
6885         * include/idna.h: Remove file.
6886         * inet/Makefile (routines): Add idna.
6887         (tests-static, tests-internal): Add tst-idna_name_classify.
6888         (LOCALES): Generate locales for tests.
6889         (tst-idna_name_classify.out): Depend on generated locales.
6890         * inet/idna_name_classify.c: New file.
6891         * inet/tst-idna_name_classify.c: Likewise.
6892         * inet/net-internal.h (__idna_to_dns_encoding)
6893         (__idna_from_dns_encoding): Declare.
6894         * inet/net-internal.h (enum idna_name_classification): Define.
6895         (__idna_name_classify): Declare.
6896         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
6897         __idna_from_dns_encoding.
6898         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
6899         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
6900         name as a fallback in case of encoding errors.
6901         (getnameinfo): Use DEPRECATED_NI_IDN.
6902         * inet/idna.c: New file.
6903         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
6904         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
6905         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
6906         (modules-names): Add tst-no-libidn2.
6907         (extra-test-objs): Add tst-no-libidn2.os.
6908         (LDFLAGS-tst-no-libidn2.so): Set soname.
6909         (LOCALES): Set, and generate locales.
6910         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
6911         (tst-resolv-ai_idn-latin1): Likewise.
6912         (tst-resolv-ai_idn-nolibidn2): Likewise.
6913         (tst-resolv-ai_idn.out): Depend on locales.
6914         (tst-resolv-ai_idn-latin1.out): Depend on locales.
6915         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
6916         tst-no-libidn2.so.
6917         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
6918         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
6919         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
6920         * resolv/tst-resolv-ai_idn.c: New file.
6921         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
6922         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
6923         * resolv/tst-no-libidn2.c: Likewise.
6924         * support/support_format_addrinfo.c (format_ai_flags): Do not
6925         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
6926         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
6927         (gaih_inet): Call __idna_to_dns_encoding and
6928         __idna_from_dns_encoding, and use the original (punycode) name if
6929         __idna_from_dns_encoding fails due to an encoding error.
6930         (getaddrinfo): Use DEPRECATED_AI_IDN.
6931         * sysdeps/unix/inet/Subdirs (libidn): Remove.
6932         * sysdeps/unix/inet/configure: Remove file.
6933         * sysdeps/unix/inet/configure.ac: Likewise.
6935 2018-05-23  Florian Weimer  <fweimer@redhat.com>
6937         Implement allocate_once.
6938         * include/allocate_once.h: New file.
6939         * misc/allocate_once.c: Likewise.
6940         * misc/tst-allocate_once.c: Likewise.
6941         * misc/Makefile (routines): Add allocate_once.
6942         (tests-internal): Add tst-allocate_once.
6943         (generated): Add tst-allocate_once.mtrace,
6944         tst-allocate_once-mem.out.
6945         (tests-special): Add tst-allocate_once-mem.out.
6946         (tst-allocate_once-ENV): Set MALLOC_TRACE.
6947         (tst-allocate_once-mem.out): Call mtrace.
6948         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
6950 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6952         [BZ #23196]
6953         * string/test-memcpy.c (do_test1): New function.
6954         (test_main): Call it.
6956 2018-05-23  Andreas Schwab  <schwab@suse.de>
6958         [BZ #23196]
6959         CVE-2018-11237
6960         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
6961         (L(preloop_large)): Save initial destination pointer in %r11 and
6962         use it instead of %rax after the loop.
6963         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
6965 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
6967         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
6968         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
6969         -I../soft-fp.  Moved from ....
6970         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
6971         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
6972         * sysdeps/aarch64/e_sqrtl.c: ... here.
6973         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
6974         * sysdeps/aarch64/sfp-machine.h: ... here.
6976         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
6977         -Wmaybe-uninitialized around access to fq[0].
6978         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6979         Likewise.
6981         [BZ #18471]
6982         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
6983         aliases for non-libc case of versioned symbols.
6984         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
6985         (llseek): Define as compat symbol if
6986         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
6987         with link warning.
6988         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
6989         Make into a compat symbol, disabled for minimum symbol version
6990         GLIBC_2.28 and later.
6991         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
6993 2018-05-22  Florian Weimer  <fweimer@redhat.com>
6995         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
6996         not add -mpreferred-stack-boundary=4.
6997         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
6998         (stack-align-test-flags): Likewise.
6999         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
7000         Likewise.
7001         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
7002         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
7003         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
7004         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
7005         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
7006         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
7007         (CFLAGS-tst-align2.c): Likewise.
7009 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7011         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
7012         (index_arch_Prefer_FSRM): Likewise.
7013         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7014         Also check Prefer_FSRM.
7015         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
7016         Also return OPTIMIZE (erms) for Prefer_FSRM.
7018 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7020         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
7021         (index_cpu_FSRM): Likewise.
7022         (reg_FSRM): Likewise.
7024 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
7026         * math/gen-tgmath-tests.py: Import sys.
7027         (Tests.__init__): Initialize macros_seen.
7028         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
7029         if requested to do so for this macro.
7030         (Tests.add_all_tests): Take argument for macro for which to
7031         generate tests.
7032         (Tests.check_macro_list): New function.
7033         (main): Handle check-list argument and argument specifying macro
7034         for which to generate tests.
7035         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
7036         [PYTHON] (tgmath3-macro-tests): Likewise.
7037         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
7038         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
7039         not test-tgmath3.c.
7040         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
7041         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
7042         to CFLAGS.
7043         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
7044         [PYTHON] ($(foreach
7045         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
7046         rule.
7047         [PYTHON] (tests-special): Add
7048         $(objpfx)test-tgmath3-macro-list.out.
7049         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
7051         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
7052         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
7053         later.
7055         [BZ #22639]
7056         * time/tzset.c (SECSPERDAY): Cast to time_t.
7057         * time/tst-y2039.c: New file.
7058         * time/Makefile (tests): Add tst-y2039.
7060 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
7062         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7063         (PREFETCH_ONE_SET): Remove duplicate line.
7065 2018-05-17  Florian Weimer  <fweimer@redhat.com>
7067         * sysdeps/generic/math-type-macros-double.h: Include
7068         <math-nan-payload-double.h> after <libm-alias-double.h>.
7069         * sysdeps/generic/math-type-macros-float.h: Include
7070         <math-nan-payload-float.h> after <libm-alias-float.h>.
7071         * sysdeps/generic/math-type-macros-float128.h: Include
7072         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
7073         * sysdeps/generic/math-type-macros-ldouble.h: Include
7074         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
7076 2018-05-17  Andreas Schwab  <schwab@suse.de>
7078         * resolv/res_send.c (__res_context_send): Don't set errno when
7079         returing error after malloc failure.
7081 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7083         * nptl/allocatestack.c (allocate_stack): Remove the
7084         !__ASSUME_PRIVATE_FUTEX paths.
7085         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
7086         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
7087         Likewise.
7088         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
7089         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7090         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7091         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7092         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
7093         !__ASSUME_PRIVATE_FUTEX path.
7094         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
7095         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
7096         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
7097         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
7098         !__ASSUME_PRIVATE_FUTEX macros.
7099         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
7100         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
7101         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7102         * sysdeps/unix/sysv/linux/kernel-features.h
7103         (__ASSUME_PRIVATE_FUTEX): Removed.
7105 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
7107         * math/Makefile (libm-narrow-fns): Add div.
7108         (libm-test-funcs-narrow): Likewise.
7109         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
7110         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
7111         * math/gen-auto-libm-tests.c (test_functions): Add div.
7112         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
7113         (NARROW_DIV_ROUND_TO_ODD): Likewise.
7114         (NARROW_DIV_TRIVIAL): Likewise.
7115         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
7116         macro.
7117         (__ddivl): Likewise.
7118         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
7119         ddiv.
7120         (CFLAGS-nldbl-ddiv.c): New variable.
7121         (CFLAGS-nldbl-fdiv.c): Likewise.
7122         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
7123         __nldbl_ddivl.
7124         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
7125         prototype.
7126         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
7127         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
7128         * math/auto-libm-test-in: Add tests of div.
7129         * math/auto-libm-test-out-narrow-div: New generated file.
7130         * math/libm-test-narrow-div.inc: New file.
7131         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
7132         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
7133         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
7134         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
7135         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
7136         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
7137         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
7138         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
7139         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
7140         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
7141         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
7142         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
7143         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
7144         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
7145         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
7146         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7147         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
7148         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7149         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7150         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
7151         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7152         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7153         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7154         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7155         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7156         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7157         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7158         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7159         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7160         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7161         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7162         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
7165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7167         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
7168         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7169         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7170         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7171         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7172         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7173         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7174         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7176 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7178         [BZ #23178]
7179         * nscd/nscd-client.h (sendfileall): Remove prototype.
7180         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
7181         (handle_request): Use writeall instead of sendfileall.
7182         * nscd/aicache.c (addhstaiX): Likewise.
7183         * nscd/grpcache.c (cache_addgr): Likewise.
7184         * nscd/hstcache.c (cache_addhst): Likewise.
7185         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7186         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
7187         * nscd/pwdcache.c (cache_addpw): Likewise.
7188         * nscd/servicescache.c (cache_addserv): Likewise.
7189         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
7190         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
7191         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
7192         Remove define.
7194 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7196         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
7197         Include <string/strncat.c>.
7198         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
7199         alias.
7200         (__GI___strncat): New hidden alias.
7202 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
7204         * sysdeps/mips/mips32/libm-test-ulps: Update.
7205         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7207 2018-05-16  Florian Weimer  <fweimer@redhat.com>
7209         * support/Makefile (libsupport-routines): Add support_quote_blob,
7210         support_test_compare_blob.
7211         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
7212         * support/check.h (TEST_COMPARE_BLOB): Define.
7213         (support_test_compare_blob): Declare.
7214         * support/support.h (support_quote_blob): Declare.
7215         * support/support_quote_blob.c: New file.
7216         * support/support_test_compare_blob.c: Likewise.
7217         * support/tst-support_quote_blob.c: Likewise.
7218         * support/tst-test_compare_blob.c: Likewise.
7220 2018-05-16  Florian Weimer  <fweimer@redhat.com>
7222         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
7223         of <strtod_nan_double.h>.
7224         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
7225         instead of SET_MANTISSA.
7226         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
7227         of include <strtod_nan_float.h>.
7228         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
7229         instead of <strtod_nan_ldouble.h>.
7230         * stdlib/strtod_nan_double.h: Move to ...
7231         * sysdeps/generic/math-nan-payload-double.h: ... here.
7232         (FLOAT): Remove definition.
7233         (SET_MANTISSA): Rename to ...
7234         (SET_NAN_PAYLOAD): ... this.
7235         * stdlib/strtod_nan_float.h: Move to ...
7236         * sysdeps/generic/math-nan-payload-float.h: ... here.
7237         (FLOAT): Remove definition.
7238         (SET_MANTISSA): Rename to ...
7239         (SET_NAN_PAYLOAD): ... this.
7240         * sysdeps/generic/math-type-macros-double.h: Include
7241         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
7242         instead of <math-svid-compat.h>.
7243         * sysdeps/generic/math-type-macros-float.h: Include
7244         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
7245         instead of <math-svid-compat.h>.
7246         * sysdeps/generic/math-type-macros-float128.h: Include
7247         <math-nan-payload-float128.h>.
7248         * sysdeps/generic/math-type-macros-ldouble.h: Include
7249         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
7250         instead of <math-svid-compat.h>.
7251         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
7252         check for definition.
7253         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
7254         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
7255         Include <ieee754_float128.h>.
7256         (FLOAT): Remove definition.
7257         (SET_MANTISSA): Rename to ...
7258         (SET_NAN_PAYLOAD): ... this.
7259         * sysdeps/ieee754/float128/strtof128_nan.c: Include
7260         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
7261         Do not include <float128_private.h>.
7262         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
7263         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
7264         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
7265         (FLOAT): Remove definition.
7266         (SET_MANTISSA): Rename to ...
7267         (SET_NAN_PAYLOAD): ... this.
7268         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
7269         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
7270         (FLOAT): Remove definition.
7271         (SET_MANTISSA): Rename to ...
7272         (SET_NAN_PAYLOAD): ... this.
7273         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
7274         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
7275         (FLOAT): Remove definition.
7276         (SET_MANTISSA): Rename to ...
7277         (SET_NAN_PAYLOAD): ... this.
7278         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
7279         of "../stdlib/strtod_nan_double.h".
7280         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
7281         of "../stdlib/strtod_nan_float.h".
7282         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
7283         instead of "../stdlib/strtod_nan_ldouble.h".
7284         * manual/arith.texi (Parsing of Floats): Adjust comment.
7286 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
7288         * math/Makefile (libm-narrow-fns): Add mul.
7289         (libm-test-funcs-narrow): Likewise.
7290         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
7291         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
7292         * math/gen-auto-libm-tests.c (test_functions): Add mul.
7293         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
7294         (NARROW_MUL_ROUND_TO_ODD): Likewise.
7295         (NARROW_MUL_TRIVIAL): Likewise.
7296         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
7297         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
7298         macro.
7299         (__dmull): Likewise.
7300         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
7301         dmul.
7302         (CFLAGS-nldbl-dmul.c): New variable.
7303         (CFLAGS-nldbl-fmul.c): Likewise.
7304         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
7305         __nldbl_dmull.
7306         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
7307         prototype.
7308         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
7309         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
7310         * math/auto-libm-test-in: Add tests of mul.
7311         * math/auto-libm-test-out-narrow-mul: New generated file.
7312         * math/libm-test-narrow-mul.inc: New file.
7313         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
7314         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
7315         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
7316         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
7317         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
7318         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
7319         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
7320         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
7321         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
7322         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
7323         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
7324         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
7325         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
7326         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
7327         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
7328         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7329         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
7330         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7331         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7332         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
7333         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7334         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7335         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7336         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7337         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7338         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7339         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7340         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7341         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7342         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7343         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7344         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
7347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7349         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
7350         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7351         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7352         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7353         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7354         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7355         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7356         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7358 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7360         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
7361         with *%eax in call.
7363 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7365         * sysdeps/i386/ldsodefs.h: Removed.
7366         * sysdeps/x86_64/ldsodefs.h: Moved to ...
7367         * sysdeps/x86/ldsodefs.h: This.
7368         (La_i86_regs): New.
7369         (La_i86_retval): Likewise.
7370         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
7371         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
7373 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7375         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
7376         unnecessary testl.
7378 2018-05-13  Alan Modra  <amodra@gmail.com>
7380         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
7381         R_PARISC_TLS_DTPOFF32 reloc addend.
7383 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7385         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
7386         * math/math.h: Restrict the prototype definition for the functions
7387         issignaling(_Float128) and iszero(_Float128); and template
7388         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
7389         __HAVE_FLOAT128_UNLIKE_LDBL.
7390         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
7391         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
7392         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
7393         __f128() constants; define the type _Float128 as long double;
7394         and reuse long double in __CFLOAT128.
7396 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
7398         * sysdeps/generic/math_private.h: Do not include
7399         <math-barriers.h>.
7400         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
7401         <math_private.h>.
7402         * math/fromfp.h: Include <math-barriers.h>.
7403         * math/math-narrow.h: Likewise.
7404         * math/s_nextafter.c: Likewise.
7405         * math/s_nexttowardf.c: Likewise.
7406         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
7407         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
7408         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
7409         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
7410         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
7411         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
7412         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
7413         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7414         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7415         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7416         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7417         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
7418         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7419         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7420         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7421         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7422         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7423         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7424         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7425         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7426         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
7427         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7428         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7429         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7430         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
7431         * sysdeps/ieee754/k_standardl.c: Likewise.
7432         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7433         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7434         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
7435         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7437         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
7438         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
7439         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
7440         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7441         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7442         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
7443         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7444         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7445         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7446         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7447         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7448         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7449         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7450         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7451         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7452         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
7453         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
7455 2018-05-11  Florian Weimer  <fweimer@redhat.com>
7457         Use 64-bit epoch values in the time zone file parser.
7458         * include/time.h (internal_time_t): Define.
7459         (__tzfile_compute): Use it.
7460         * time/tzfile.c (struct leap): Use internal_time_t for epoch
7461         member.
7462         (transitions): Switch to internal_time_t.
7463         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
7464         types.
7465         (__tzfile_compute): Use internal_time_t for timer argument.  Check
7466         for truncation before calling __offtime.
7468 2018-05-11  Florian Weimer  <fweimer@redhat.com>
7470         [BZ #23166]
7471         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
7472         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
7473         Likewise.
7474         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
7475         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
7476         export without --enable-obsolete-rpc.
7477         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
7478         symbol.  This should not have been exported, ever.
7480 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
7482         [BZ #23152]
7483         * localedata/locales/gd_GB (abmon): Fix typo in May:
7484         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
7486 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7488         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
7489         Use multiple registers to copy data in loop tail.
7491         * sysdeps/aarch64/multiarch/memmove_falkor.S
7492         (__memmove_falkor): Use multiple registers to move data in
7493         loop tail.
7495 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
7497         * math/math-underflow.h: New file.
7498         * sysdeps/generic/math_private.h: Do not include <float.h>.
7499         (fabs_tg): Remove macro.  Moved to math-underflow.h.
7500         (min_of_type_f): Likewise.
7501         (min_of_type_): Likewise.
7502         (min_of_type_l): Likewise.
7503         (min_of_type_f128): Likewise.
7504         (min_of_type): Likewise.
7505         (math_check_force_underflow): Likewise.
7506         (math_check_force_underflow_nonneg): Likewise.
7507         (math_check_force_underflow_complex): Likewise.
7508         * math/e_exp2_template.c: Include <math-underflow.h>.
7509         * math/k_casinh_template.c: Likewise.
7510         * math/s_catan_template.c: Likewise.
7511         * math/s_catanh_template.c: Likewise.
7512         * math/s_ccosh_template.c: Likewise.
7513         * math/s_cexp_template.c: Likewise.
7514         * math/s_clog10_template.c: Likewise.
7515         * math/s_clog_template.c: Likewise.
7516         * math/s_csin_template.c: Likewise.
7517         * math/s_csinh_template.c: Likewise.
7518         * math/s_csqrt_template.c: Likewise.
7519         * math/s_ctan_template.c: Likewise.
7520         * math/s_ctanh_template.c: Likewise.
7521         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
7522         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7523         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7524         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7525         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
7526         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7527         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7528         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7529         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7530         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
7531         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7532         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7533         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
7534         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
7535         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7536         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7537         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7538         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
7539         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
7540         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7541         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7542         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7543         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7544         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7545         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7546         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
7547         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
7548         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
7549         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7550         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
7551         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
7552         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
7553         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
7554         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
7555         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7556         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7557         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
7558         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7559         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7560         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
7561         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
7562         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
7563         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
7564         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
7565         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
7566         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
7567         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
7568         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
7569         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
7570         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7571         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7572         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7573         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7574         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7575         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7576         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7577         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7578         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7579         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7580         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7581         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7582         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
7583         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7584         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7585         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7586         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7587         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7588         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7589         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7590         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7591         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7592         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7593         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
7594         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
7595         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7596         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7597         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7598         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7599         * sysdeps/x86/fpu/powl_helper.c: Likewise.
7600         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
7601         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
7602         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
7603         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
7604         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
7606 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
7608         * sysdeps/generic/math-barriers.h: New file.
7609         * sysdeps/generic/math_private.h [!math_opt_barrier]
7610         (math_opt_barrier): Move to math-barriers.h.
7611         [!math_opt_barrier] (math_force_eval): Likewise.
7612         * sysdeps/aarch64/fpu/math-barriers.h: New file.
7613         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
7614         math-barriers.h.
7615         (math_force_eval): Likewise.
7616         * sysdeps/alpha/fpu/math-barriers.h: New file.
7617         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
7618         math-barriers.h.
7619         (math_force_eval): Likewise.
7620         * sysdeps/x86/fpu/math-barriers.h: New file.
7621         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
7622         math-barriers.h.
7623         (math_force_eval): Likewise.
7624         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
7625         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
7626         multiple-include guard for rename.
7627         * sysdeps/powerpc/fpu/math-barriers.h: New file.
7628         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
7629         math-barriers.h.
7630         (math_force_eval): Likewise.
7632 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
7634         [BZ #22786]
7635         CVE-2018-11236
7636         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
7637         computation.
7638         * stdlib/Makefile (test-bz22786): New test.
7639         * stdlib/test-bz22786.c: New test.
7641 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
7643         * include/math-narrow-eval.h: New file.  Contents moved from ....
7644         * sysdeps/generic/math_private.h: ... here.
7645         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
7646         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
7647         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
7648         * stdlib/strtod_l.c: Likewise.
7649         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
7650         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
7651         * sysdeps/i386/fpu/s_fdim.c: Likewise.
7652         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
7653         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7654         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
7655         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7656         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
7657         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
7658         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
7659         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7660         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7661         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
7662         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7663         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7664         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
7665         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
7666         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
7667         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7668         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7669         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7670         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7671         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
7672         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7673         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7674         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
7675         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7676         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7677         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
7679 2018-05-08  Andreas Schwab  <schwab@suse.de>
7681         * sysdeps/nptl/internaltypes.h: Fix comment.
7683 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
7685         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7686         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
7687         hidden.
7689 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7691         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
7692         of I into loop header.
7693         * benchtests/bench-memmove-walk.c
7694         (test_main): Likewise.
7696 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
7698         Revert:
7699         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
7700         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
7702 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7704         [BZ #20419]
7705         * elf/dl-load.c (open_verify): Fix stack overflow.
7706         * elf/Makefile (tst-big-note): New test.
7707         * elf/tst-big-note-lib.S: New.
7708         * elf/tst-big-note.c: New.
7710 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
7712         * scripts/abilist.awk: Ignore absolute symbols.
7713         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
7714         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
7715         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
7716         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
7717         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
7718         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
7719         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
7720         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
7721         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
7722         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
7723         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
7724         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
7725         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
7726         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
7727         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
7728         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7729         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
7730         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
7731         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7732         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
7733         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
7734         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
7735         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
7736         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
7737         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
7738         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
7739         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
7740         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
7741         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7742         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
7743         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
7744         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7745         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
7746         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
7747         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
7748         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
7749         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
7750         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
7751         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
7752         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
7753         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
7754         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7755         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
7756         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
7757         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7758         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
7759         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
7760         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
7761         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
7762         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
7763         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
7764         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
7765         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
7766         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
7767         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7768         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
7769         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
7770         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7771         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
7772         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
7773         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
7774         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
7775         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
7776         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
7777         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
7778         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
7779         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
7780         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7781         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
7782         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
7783         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7784         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
7785         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
7786         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
7787         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
7788         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
7789         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
7790         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
7791         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
7792         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
7793         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7794         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
7795         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
7796         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7797         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
7798         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
7799         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
7800         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
7801         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
7802         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
7803         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
7804         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
7805         Likewise.
7806         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
7807         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7808         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
7809         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
7810         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7811         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
7812         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
7813         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
7814         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
7815         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
7816         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
7817         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
7818         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
7819         Likewise.
7820         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
7821         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7822         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
7823         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
7824         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7825         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
7826         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
7827         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
7828         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
7829         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
7830         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
7831         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
7832         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
7833         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
7834         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7835         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
7836         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
7837         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7838         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
7839         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
7840         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
7841         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
7842         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
7843         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
7844         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7845         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
7846         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
7847         Likewise.
7848         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
7849         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
7850         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
7851         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
7852         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7853         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
7854         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
7855         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
7856         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
7857         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
7858         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
7859         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
7860         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
7861         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
7862         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
7863         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
7864         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
7865         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
7866         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7867         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
7868         Likewise.
7869         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
7870         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
7871         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
7872         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7873         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
7874         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
7875         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
7876         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
7877         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
7878         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
7879         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7880         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
7881         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
7882         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7883         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
7884         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
7885         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
7886         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
7887         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7888         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
7889         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
7890         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7891         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
7892         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
7893         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
7894         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
7895         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
7896         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
7897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
7898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
7900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
7901         Likewise.
7902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
7903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
7904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
7905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
7906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
7907         Likewise.
7908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
7909         Likewise.
7910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
7911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
7912         Likewise.
7913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
7914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7915         Likewise.
7916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7917         Likewise.
7918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
7919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
7920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
7921         Likewise.
7922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
7923         Likewise.
7924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
7925         Likewise.
7926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
7927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
7930         Likewise.
7931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
7932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
7934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
7937         Likewise.
7938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
7939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
7940         Likewise.
7941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
7942         Likewise.
7943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
7944         Likewise.
7945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
7946         Likewise.
7947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
7948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
7949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
7950         Likewise.
7951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
7952         Likewise.
7953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
7954         Likewise.
7955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
7956         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
7957         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
7958         Likewise.
7959         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
7960         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
7961         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
7962         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
7963         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
7964         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
7965         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
7966         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
7967         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
7968         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
7969         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
7970         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
7971         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
7972         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
7973         Likewise.
7974         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7975         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
7976         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
7977         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7978         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
7979         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
7980         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
7981         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
7982         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
7983         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
7984         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
7985         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
7986         Likewise.
7987         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7988         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
7989         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
7990         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7991         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
7992         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
7993         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
7994         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
7995         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
7996         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
7997         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
7998         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
7999         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
8000         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8001         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
8002         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
8003         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8004         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
8005         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8006         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
8007         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
8008         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
8009         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
8010         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8011         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
8012         Likewise.
8013         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
8014         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8015         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
8016         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
8017         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8018         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
8019         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8020         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
8021         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
8022         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
8023         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
8024         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
8025         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
8026         Likewise.
8027         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
8028         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8029         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
8030         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
8031         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8032         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
8033         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8034         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
8035         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
8036         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
8037         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
8038         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
8039         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
8040         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
8041         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8042         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
8043         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
8044         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8045         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
8046         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8047         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
8048         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
8049         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
8050         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
8051         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
8052         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
8053         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
8054         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
8055         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8056         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
8057         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
8058         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8059         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
8060         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8061         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
8062         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
8063         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
8064         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
8066 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
8068         [BZ #23137]
8069         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
8070         Use atomic_load_acquire to load __tid.
8072 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8074         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
8075         Restore the pointer into %rdx, after syscall and use %rdx,
8076         instead of %rsi, to restore context.
8078 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8080         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
8081         Pop the pointer into %rdx after syscall and use %rdx, instead
8082         of %rsi, to restore context.
8084 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8086         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
8087         handlers after setjmp.
8088         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
8089         defined.
8090         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
8091         <libc-pointer-arith.h>.
8092         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
8093         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
8094         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
8095         _JUMP_BUF_SIGSET_BITS_PER_WORD.
8096         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
8097         * sysdeps/x86/__longjmp_cancel.S: New file.
8098         * sysdeps/x86/longjmp.c: Likewise.
8099         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
8101 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8103         * NEWS: Add ustat.h deprecation entry.
8104         * bits/ustat.h: Remove file.
8105         * misc/sys/ustat.h: Likewise.
8106         * misc/ustat.h: Likewise.
8107         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
8108         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
8109         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
8110         compatibility mode.
8111         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
8112         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
8113         generic Linux implementation.
8115 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
8117         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
8118         * math/w_expl_compat.c: Likewise.
8119         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
8121 2018-04-30  Raymond Nicholson <rain1@airmail.cc>
8123         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
8125 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8127         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
8128         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
8129         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
8130         Remove.
8131         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
8132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8133         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8134         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
8135         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
8136         and SYSCALL_LL64.
8138 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
8140         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
8142         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
8143         * math/w_asin_template.c: Likewise.
8144         * math/w_atanh_template.c: Likewise.
8146 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8148         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
8149         to powerpc/powerpc64/be for big-endian.
8150         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
8151         little-endian.
8153         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
8154         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
8155         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
8156         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
8157         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
8158         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
8159         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
8160         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
8161         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
8162         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
8163         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
8164         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
8165         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
8166         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
8167         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
8168         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
8169         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
8170         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
8171         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
8172         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
8173         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
8174         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
8175         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
8176         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
8177         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
8178         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
8179         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
8180         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
8181         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
8182         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
8183         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
8184         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
8186         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
8187         adjusted to imply powerpc64 and older processors on powerpc64/be.
8188         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
8189         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
8190         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
8191         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
8192         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
8193         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
8194         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
8195         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
8196         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
8197         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
8198         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
8199         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
8200         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
8201         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
8202         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
8203         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
8204         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
8205         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
8206         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
8207         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
8208         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
8209         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
8210         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
8211         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
8212         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
8213         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
8214         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
8215         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
8216         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
8217         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
8218         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
8220         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
8221         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
8222         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
8223         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
8225         * sysdeps/powerpc/powerpc64/be/Implies: New file.
8226         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
8227         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
8228         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
8230         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
8231         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
8232         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
8233         * sysdeps/powerpc/powerpc64le/configure: Likewise.
8234         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
8235         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
8236         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
8237         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
8238         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
8239         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
8240         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
8242         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
8243         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
8244         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
8245         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
8246         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
8247         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
8248         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
8249         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
8250         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
8251         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
8252         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
8254         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
8255         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
8256         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
8257         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
8258         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
8259         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
8260         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
8261         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
8262         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
8263         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
8264         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
8265         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
8267         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
8268         and adjusted to imply olders processors.
8269         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
8270         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
8271         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
8272         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
8273         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
8274         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
8275         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
8276         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
8277         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
8278         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
8279         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
8281         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
8282         powerpc64/le.
8283         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
8284         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
8286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
8287         powerpc64le.
8288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
8289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
8291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
8292         powerpc64/be.
8293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
8294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
8295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
8297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
8298         powerpc64 and adjusted.
8299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
8300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
8301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
8302         Likewise.
8304 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
8306         * sysdeps/tile: Remove.
8307         * sysdeps/unix/sysv/linux/tile: Likewise.
8308         * README (tilegx-*-linux-gnu): Remove from list of supported
8309         configurations.
8310         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
8311         contribution of support for generic Linux kernel syscall
8312         interface.
8313         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
8314         tilegx configurations.
8315         (Config.install_linux_headers): Do not handle tile.
8316         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
8317         in comment.
8318         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
8319         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
8320         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
8321         conditional undefine and redefine.
8322         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
8323         in comment.
8324         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
8325         conditional undefine and redefine.
8327 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
8329         * signal/tst-sigaction.c: New file to test BZ #23069.
8330         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
8332 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
8334         [BZ #22766]
8335         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
8336         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
8337         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
8338         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
8340 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8342         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
8343         _DIRENT_MATCHES_DIRENT64 is not defined.
8344         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
8345         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
8346         is defined.
8347         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
8348         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
8350 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
8352         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
8353         version to GCC 8 branch.
8355 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
8357         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
8358         (check_no_hidden): Use type of original function when declaring
8359         alias.
8361         * sysdeps/unix/sysv/linux/sys/ptrace.h
8362         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
8363         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
8364         (struct __ptrace_seccomp_metadata): New type.
8365         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
8366         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8367         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
8368         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8369         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
8370         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8371         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
8372         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8373         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
8374         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8375         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
8376         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8377         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
8378         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8379         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
8380         (PTRACE_SECCOMP_GET_METADATA): Likewise.
8382 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8384         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
8385         defined.
8386         * dirent/versionsort.c (versionsort): Likewise.
8387         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
8388         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
8389         * dirent/versionsort64.c (versionsort64): Likewise.
8390         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
8391         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
8392         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
8393         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
8394         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
8395         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
8396         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
8397         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
8398         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
8399         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
8400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
8401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
8402         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
8403         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
8405 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
8407         * elf/elf.h (NT_PPC_PKEY): New macro.
8409 2018-04-23  Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
8411         [BZ #23094]
8412         * localedata/locales/hr_HR: fix thousands_sep and
8413         mon_thousands_sep
8415 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
8417         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
8418         (XTABS): Define to TAB3.
8420 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8422         * sysdeps/hppa/fpu/libm-test-ulps: Update.
8424         * dirent/scandir-tail-common.c: New file.
8425         * dirent/scandir-tail.c: Use scandir-tail-common.c.
8426         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
8427         * dirent/scandir.c: Use scandir-tail-common.c.
8428         * dirent/scandirat.c: Likewise.
8429         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
8430         * dirent/scandir64.c (scandir64): Always build and alias to scandir
8431         if _DIRENT_MATCHES_DIRENT64 is defined.
8432         * dirent/scandirat64.c (scandirat64): Likewise.
8433         * include/dirent.h (__scandir_tail): Only define iff
8434         _DIRENT_MATCHES_DIRENT64 is not defined.
8435         (__scandir64_tail): Define regardless.
8436         (__scandirat, scandirat64): Remove libc_hidden_proto.
8437         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
8438         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
8439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
8440         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
8441         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8442         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
8443         * sysdeps/unix/sysv/linux/scandir64.c: New file.
8445 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
8447         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
8448         New macro.
8449         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
8450         Increase to 24.
8451         (_dl_aarch64_cap_flags): Add asimdfhm.
8453 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
8455         * sysdeps/nios2/libm-test-ulps: Update.
8457 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8459         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
8460         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
8462         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
8463         requirements.
8464          (_DIRENT_MATCHES_DIRENT64): Undef
8465         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
8466         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
8467         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
8468         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
8469         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
8470         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
8471         use getdents64 syscalls as base.
8472         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
8473         symbol if required.
8474         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
8475         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
8476         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
8477         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
8478         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
8479         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
8480         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
8481         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
8482         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8483         (__get_clockfreq_via_proc_openprom): Use __getdents64.
8484         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
8486 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
8488         * scripts/test_printers_common.py (init_test): Disable lock elision.
8490 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
8492         * math/test-tgmath.c (count_double, count_float,
8493         count_ldouble, count_cdouble, count_cfloat,
8494         count_cldouble): Use volatile int.
8496 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8498         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8499         (conformtest-xfail-conds): Add i386-gnu.
8500         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
8501         i386-gnu.
8502         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
8503         ipc_perm.cuid, ipc_perm.cgid): Likewise.
8504         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
8505         msqid_ds.msg_lrpid): Likewise.
8506         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
8507         Likewise.
8508         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
8509         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
8510         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
8511         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
8512         unsigned int.
8513         (struct statvfs64): Likewise.
8514         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
8515         Likewise.
8516         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
8517         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
8518         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
8519         instead of wait_queue.
8520         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
8521         instead of vm_area_struct.
8522         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
8523         struct sched_param definition to it.
8524         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8525         * bits/types/struct_sched_param.h: New file.
8526         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
8527         <bits/types/struct_sched_param.h> instead of <sched.h>.
8528         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
8529         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
8530         generic version but include <bits/pthreadtypes.h> to make struct
8531         sigevent's sigev_notify_attributes field a pthread_attr_t*.
8532         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
8533         non-compliant.
8534         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
8535         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
8536         [__USE_XOPEN] (OFDEL): New macro.
8537         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
8538         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
8539         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
8540         prototypes.
8541         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
8542         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
8543         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
8544         non-compliant.
8545         * sysdeps/i386/sys/ucontext.h: Likewise.
8546         * sysdeps/m68k/sys/ucontext.h: Likewise.
8547         * sysdeps/mips/sys/ucontext.h: Likewise.
8548         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
8549         * sysdeps/mach/hurd/i386/Makefile
8550         (test-xfail-POSIX/fcntl.h/conform): Add.
8551         (test-xfail-POSIX/signal.h/conform): Add.
8552         (test-xfail-POSIX/semaphore.h/conform): Add.
8553         (test-xfail-POSIX/regex.h/conform): Add.
8554         (test-xfail-POSIX/aio.h/conform): Add.
8555         (test-xfail-POSIX/mqueue.h/conform): Add.
8556         (test-xfail-POSIX/sys/types.h/conform): Add.
8557         (test-xfail-UNIX98/fcntl.h/conform): Add.
8558         (test-xfail-UNIX98/netdb.h/conform): Add.
8559         (test-xfail-UNIX98/signal.h/conform): Add.
8560         (test-xfail-UNIX98/semaphore.h/conform): Add.
8561         (test-xfail-UNIX98/regex.h/conform): Add.
8562         (test-xfail-UNIX98/aio.h/conform): Add.
8563         (test-xfail-UNIX98/ftw.h/conform): Add.
8564         (test-xfail-UNIX98/mqueue.h/conform): Add.
8565         (test-xfail-UNIX98/netinet/in.h/conform): Add.
8566         (test-xfail-UNIX98/sys/wait.h/conform): Add.
8567         (test-xfail-UNIX98/sys/sem.h/conform): Add.
8568         (test-xfail-UNIX98/sys/uio.h/conform): Add.
8569         (test-xfail-UNIX98/sys/socket.h/conform): Add.
8570         (test-xfail-UNIX98/sys/types.h/conform): Add.
8571         (test-xfail-UNIX98/stdlib.h/conform): Add.
8572         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
8573         (test-xfail-POSIX2008/fcntl.h/conform): Add.
8574         (test-xfail-POSIX2008/netdb.h/conform): Add.
8575         (test-xfail-POSIX2008/signal.h/conform): Add.
8576         (test-xfail-POSIX2008/semaphore.h/conform): Add.
8577         (test-xfail-POSIX2008/regex.h/conform): Add.
8578         (test-xfail-POSIX2008/aio.h/conform): Add.
8579         (test-xfail-POSIX2008/mqueue.h/conform): Add.
8580         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
8581         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
8582         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
8583         (test-xfail-POSIX2008/sys/types.h/conform): Add.
8584         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
8585         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
8586         (test-xfail-XOPEN2K/netdb.h/conform): Add.
8587         (test-xfail-XOPEN2K/signal.h/conform): Add.
8588         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
8589         (test-xfail-XOPEN2K/regex.h/conform): Add.
8590         (test-xfail-XOPEN2K/aio.h/conform): Add.
8591         (test-xfail-XOPEN2K/ftw.h/conform): Add.
8592         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
8593         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
8594         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
8595         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
8596         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
8597         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
8598         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
8599         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
8600         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
8601         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
8602         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
8603         (test-xfail-XOPEN2K8/signal.h/conform): Add.
8604         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
8605         (test-xfail-XOPEN2K8/regex.h/conform): Add.
8606         (test-xfail-XOPEN2K8/aio.h/conform): Add.
8607         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
8608         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
8609         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
8610         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
8611         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
8612         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
8613         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
8614         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
8615         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
8616         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
8617         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
8618         i386-gnu.
8619         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
8620         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
8622 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
8624         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
8625         --enable-obsolete for powerpc-linux-gnuspe.
8627 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8629         * conform/data/sys/un.h-data: Allow sun_ prefix.
8630         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
8631         prototypes.
8632         * sysdeps/mach/include/mach.h: Likewise.
8633         * sysdeps/mach/include/mach/mig_support.h: Likewise.
8634         * sysdeps/mach/include/mach_error.h: Likewise.
8636 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8638         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
8639         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
8640         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
8641         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
8643 2018-04-16  Andreas Schwab  <schwab@suse.de>
8645         [BZ #19527]
8646         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
8648 2018-04-15  Patrick McGehearty <patrick.mcgehearty@oracle.com>
8650         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
8651         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
8653 2018-04-12  DJ Delorie  <dj@redhat.com>
8655         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8656         version to 4.16.
8658 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
8660         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
8661         (struct kernel_sigaction): Use the same definition on 31bit as is used
8662         on 64bit.
8664 2018-04-09  Florian Weimer  <fweimer@redhat.com>
8666         [BZ #23037]
8667         * resolv/res_send.c (send_dg): Use designated initializers instead
8668         of assignment to zero-initialize other fields of struct mmsghdr.
8670 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8672         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
8673         __READDIR_ALIAS): Undefine after usage.
8674         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
8675         __READDIR_R_ALIAS): Likewise.
8676         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
8677         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
8678         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
8679         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
8680         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
8681         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
8682         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8683         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8684         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
8685         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
8686         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
8687         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
8688         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
8689         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
8690         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
8691         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
8692         * sysdeps/unix/sysv/linux/readdir.c: New file.
8693         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
8694         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
8695         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
8697         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
8699 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
8701         * manual/charset.texi (Converting a Character): Fix typo.
8703 2018-04-05 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8705         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8707         * sysdeps/arm/libm-test-ulps: Update.
8709         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
8710         as base implementation.
8711         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
8712         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8713         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8714         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8715         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8716         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
8717         remove unrequired definitions and update comments.
8718         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
8719         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
8720         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
8721         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
8722         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
8723         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
8724         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8725         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
8726         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
8727         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
8728         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
8729         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
8730         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
8731         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
8732         and RESET_SA_RESTORER hooks.
8734 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
8736         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8738 2018-04-05  Florian Weimer  <fweimer@redhat.com>
8740         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
8741         integer overflow, memory leak on error, and indeterminate errno
8742         value.  Add a null wide character to terminate the result string.
8743         * manual/charset.texi (Converting a Character): Mention embedded
8744         null bytes in the mbrtowc input string.  Explain what happens in
8745         the -2 result case.  Do not claim that mbrtowc is simple or
8746         obvious to use.  Adjust the description of the code example.  Use
8747         @code, not @var, for concrete variables.
8749 2018-04-05  Florian Weimer  <fweimer@redhat.com>
8751         * manual/examples/mbstouwcs.c: New file.
8752         * manual/charset.texi (Converting a Character): Include it.
8754 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8756         * include/dirent.h (dirfd): Add hidden proto.
8757         * dirent/dirfd.c (dirfd): Add hidden def.
8758         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
8759         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
8761 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
8763         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
8764         sin, cos and sincos to 1 ULP.
8766 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
8768         [BZ #19818]
8769         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
8770         symbols.
8771         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
8772         * elf/tst-absolute-sym.c: New file.
8773         * elf/tst-absolute-sym-lib.c: New file.
8774         * elf/tst-absolute-sym-lib.lds: New file.
8775         * elf/Makefile (tests): Add `tst-absolute-sym'.
8776         (modules-names): Add `tst-absolute-sym-lib'.
8777         (LDLIBS-tst-absolute-sym-lib.so): New variable.
8778         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
8779         ($(objpfx)tst-absolute-sym): New dependency.
8781         [BZ #19818]
8782         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
8783         parameter.
8784         (SYMBOL_ADDRESS): New macro.
8785         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
8786         SYMBOL_ADDRESS for symbol address calculation.
8787         * elf/dl-runtime.c (_dl_fixup): Likewise.
8788         (_dl_profile_fixup): Likewise.
8789         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
8790         * elf/rtld.c (dl_main): Likewise.
8791         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
8792         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
8793         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
8794         (elf_machine_rela): Likewise.
8795         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
8796         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
8797         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8798         (elf_machine_rela): Likewise.
8799         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
8800         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
8801         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
8802         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8803         Likewise.
8804         (elf_machine_reloc): Likewise.
8805         (elf_machine_got_rel): Likewise.
8806         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
8807         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
8808         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
8809         Likewise.
8810         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8811         Likewise.
8812         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
8813         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
8814         Likewise.
8815         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
8816         Likewise.
8817         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8818         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8819         Likewise.
8820         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8821         Likewise.
8822         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
8823         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8825 2018-04-04  Zack Weinberg  <zackw@panix.com>
8827         * sysdeps/generic/internal-signals.h: Include signal.h,
8828         sigsetops.h, and stdbool.h.
8829         (__libc_signal_block_all): Actually block all signals.
8830         (__libc_signal_block_app): Likewise.
8831         (__libc_signal_restore_set): Actually restore the signal mask.
8833 2018-04-04  Florian Weimer  <fweimer@redhat.com>
8835         inet: Actually build and run tst-deadline.
8836         * inet/Makefile (tests-internal): Add tst-deadline and do not
8837         overwrite the variable.
8838         (tests-static-internal): Remove variable.
8840 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
8842         [BZ #22947]
8843         * bits/uio-ext.h (RWF_APPEND): New.
8844         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
8845         * manual/llio.texi: Document RWF_APPEND.
8846         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
8847         (RWF_SUPPORTED): Add RWF_APPEND.
8849 2018-04-03 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8851         [BZ #22391]
8852         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
8853         check for internal nptl signals.
8854         * nptl/sigaction.c (__sigaction): Likewise.
8855         * signal/sigaddset.c (sigaddset): Likewise.
8856         * signal/sigdelset.c (sigdelset): Likewise.
8857         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8858         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
8859         value.
8860         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
8861         to filter out internal nptl signals.
8862         * signal/tst-sigset.c (do_test): Check ech signal indidually and
8863         also check realtime signals using standard macros.
8864         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
8865         __is_internal_signal, __libc_signal_block_all,
8866         __libc_signal_block_app, __libc_signal_restore_set): New functions.
8867         * sysdeps/nptl/sigfillset.c: Remove file.
8868         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
8869         Change return to bool.
8870         (__clear_internal_signals): Remove SIGTIMER clean since it is
8871         equal to SIGCANEL on Linux.
8872         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
8873         signal set was constructed using standard functions.
8875 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8877         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
8878         ifname is too long.
8879         * hurd/hurdsig.c (interrupted_reply_port_location): Use
8880         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
8881         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
8882         hidden def.
8883         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
8884         * signal/sigaddset.c: Include <sigsetopts.h>.
8885         * signal/sigdelset.c: Likewise.
8887 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8889         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
8890         (__cos): Likewise.
8891         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
8892         logic as sin and cos.
8894 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8896         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
8897         inputs.  Return correct sign.
8898         (do_sincos): Remove small input check before do_sin, let do_sin set
8899         the sign.
8900         (__sin): Likewise.
8901         (__cos): Likewise.
8903 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8905         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
8906         (do_cos_slow): Likewise.
8907         (do_sin_slow): Likewise.
8908         (reduce_and_compute): Likewise.
8909         (slow): Likewise.
8910         (slow1): Likewise.
8911         (slow2): Likewise.
8912         (sloww): Likewise.
8913         (sloww1): Likewise.
8914         (sloww2): Likewise.
8915         (bslow): Likewise.
8916         (bslow1): Likewise.
8917         (bslow2): Likewise.
8918         (cslow2): Likewise.
8920 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8922         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
8923         (do_cos): Remove corp parameter and calculations.
8924         (do_sin): Likewise.
8925         (do_sincos): Remove cor variable.
8926         (__sin): Use do_sincos for huge inputs.
8927         (__cos): Likewise.
8928         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8929         (reduce_and_compute_sincos): Remove unused function.
8931 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8933         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
8934         reduce_sincos, improve accuracy to 136 bits.
8935         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
8936         (__sin): Use improved reduction and simplified do_sincos calculation.
8937         (__cos): Likewise.
8938         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8940 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8942         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
8943         (do_sincos_2): Likewise.
8944         (__sin): Remove middle range reduction case.
8945         (__cos): Likewise.
8946         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
8947         reduction case.
8949 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8951         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
8952         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
8953         inputs.
8954         (__cos): Likewise.
8955         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
8957 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
8959         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8960         version to 4.16
8962 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8964         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
8965         Remove definitions.
8966         (opendir_oflags): Use O_DIRECTORY regardless.
8967         (__opendir, __opendirat): Remove need_isdir_precheck usage.
8968         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
8970 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8972         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
8973         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
8974         macros.
8975         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
8976         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
8977         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
8978         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
8979         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
8980         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
8982         * htl/Makefile: Bump licence to LGPL 2.1+.
8983         * htl/alloca_cutoff.c: Likewise.
8984         * htl/cthreads-compat.c: Likewise.
8985         * htl/lockfile.c: Likewise.
8986         * htl/pt-alloc.c: Likewise.
8987         * htl/pt-cancel.c: Likewise.
8988         * htl/pt-cleanup.c: Likewise.
8989         * htl/pt-create.c: Likewise.
8990         * htl/pt-dealloc.c: Likewise.
8991         * htl/pt-detach.c: Likewise.
8992         * htl/pt-exit.c: Likewise.
8993         * htl/pt-getattr.c: Likewise.
8994         * htl/pt-initialize.c: Likewise.
8995         * htl/pt-internal.h: Likewise.
8996         * htl/pt-join.c: Likewise.
8997         * htl/pt-self.c: Likewise.
8998         * htl/pt-setcancelstate.c: Likewise.
8999         * htl/pt-setcanceltype.c: Likewise.
9000         * htl/pt-sigmask.c: Likewise.
9001         * htl/pt-spin-inlines.c: Likewise.
9002         * htl/pt-testcancel.c: Likewise.
9003         * htl/pt-yield.c: Likewise.
9004         * htl/tests/test-1.c: Likewise.
9005         * htl/tests/test-10.c: Likewise.
9006         * htl/tests/test-11.c: Likewise.
9007         * htl/tests/test-12.c: Likewise.
9008         * htl/tests/test-13.c: Likewise.
9009         * htl/tests/test-14.c: Likewise.
9010         * htl/tests/test-15.c: Likewise.
9011         * htl/tests/test-16.c: Likewise.
9012         * htl/tests/test-17.c: Likewise.
9013         * htl/tests/test-2.c: Likewise.
9014         * htl/tests/test-3.c: Likewise.
9015         * htl/tests/test-4.c: Likewise.
9016         * htl/tests/test-5.c: Likewise.
9017         * htl/tests/test-6.c: Likewise.
9018         * htl/tests/test-7.c: Likewise.
9019         * htl/tests/test-8.c: Likewise.
9020         * htl/tests/test-9.c: Likewise.
9021         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
9022         * sysdeps/htl/bits/cancelation.h: Likewise.
9023         * sysdeps/htl/bits/pthread-np.h: Likewise.
9024         * sysdeps/htl/bits/pthread.h: Likewise.
9025         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
9026         * sysdeps/htl/bits/semaphore.h: Likewise.
9027         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
9028         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
9029         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
9030         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
9031         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
9032         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
9033         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
9034         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
9035         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
9036         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
9037         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
9038         * sysdeps/htl/old_pt-atfork.c: Likewise.
9039         * sysdeps/htl/pt-atfork.c: Likewise.
9040         * sysdeps/htl/pt-attr-destroy.c: Likewise.
9041         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
9042         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
9043         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
9044         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
9045         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
9046         * sysdeps/htl/pt-attr-getscope.c: Likewise.
9047         * sysdeps/htl/pt-attr-getstack.c: Likewise.
9048         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
9049         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
9050         * sysdeps/htl/pt-attr-init.c: Likewise.
9051         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
9052         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
9053         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
9054         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
9055         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
9056         * sysdeps/htl/pt-attr-setscope.c: Likewise.
9057         * sysdeps/htl/pt-attr-setstack.c: Likewise.
9058         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
9059         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
9060         * sysdeps/htl/pt-attr.c: Likewise.
9061         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
9062         * sysdeps/htl/pt-barrier-init.c: Likewise.
9063         * sysdeps/htl/pt-barrier-wait.c: Likewise.
9064         * sysdeps/htl/pt-barrier.c: Likewise.
9065         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
9066         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
9067         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
9068         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
9069         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
9070         * sysdeps/htl/pt-cond-destroy.c: Likewise.
9071         * sysdeps/htl/pt-cond-init.c: Likewise.
9072         * sysdeps/htl/pt-cond-signal.c: Likewise.
9073         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
9074         * sysdeps/htl/pt-cond-wait.c: Likewise.
9075         * sysdeps/htl/pt-cond.c: Likewise.
9076         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
9077         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
9078         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
9079         * sysdeps/htl/pt-condattr-init.c: Likewise.
9080         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
9081         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
9082         * sysdeps/htl/pt-destroy-specific.c: Likewise.
9083         * sysdeps/htl/pt-equal.c: Likewise.
9084         * sysdeps/htl/pt-getconcurrency.c: Likewise.
9085         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
9086         * sysdeps/htl/pt-getschedparam.c: Likewise.
9087         * sysdeps/htl/pt-getspecific.c: Likewise.
9088         * sysdeps/htl/pt-init-specific.c: Likewise.
9089         * sysdeps/htl/pt-key-create.c: Likewise.
9090         * sysdeps/htl/pt-key-delete.c: Likewise.
9091         * sysdeps/htl/pt-key.h: Likewise.
9092         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
9093         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
9094         * sysdeps/htl/pt-mutex-init.c: Likewise.
9095         * sysdeps/htl/pt-mutex-lock.c: Likewise.
9096         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
9097         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
9098         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
9099         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
9100         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
9101         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
9102         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
9103         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
9104         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
9105         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
9106         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
9107         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
9108         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
9109         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
9110         * sysdeps/htl/pt-mutexattr.c: Likewise.
9111         * sysdeps/htl/pt-once.c: Likewise.
9112         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
9113         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
9114         * sysdeps/htl/pt-rwlock-init.c: Likewise.
9115         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
9116         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
9117         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
9118         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
9119         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
9120         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
9121         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
9122         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
9123         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
9124         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
9125         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
9126         * sysdeps/htl/pt-setconcurrency.c: Likewise.
9127         * sysdeps/htl/pt-setschedparam.c: Likewise.
9128         * sysdeps/htl/pt-setschedprio.c: Likewise.
9129         * sysdeps/htl/pt-setspecific.c: Likewise.
9130         * sysdeps/htl/pt-spin.c: Likewise.
9131         * sysdeps/htl/pt-startup.c: Likewise.
9132         * sysdeps/htl/pthread.h: Likewise.
9133         * sysdeps/htl/sem-close.c: Likewise.
9134         * sysdeps/htl/sem-destroy.c: Likewise.
9135         * sysdeps/htl/sem-getvalue.c: Likewise.
9136         * sysdeps/htl/sem-init.c: Likewise.
9137         * sysdeps/htl/sem-open.c: Likewise.
9138         * sysdeps/htl/sem-post.c: Likewise.
9139         * sysdeps/htl/sem-timedwait.c: Likewise.
9140         * sysdeps/htl/sem-trywait.c: Likewise.
9141         * sysdeps/htl/sem-unlink.c: Likewise.
9142         * sysdeps/htl/sem-wait.c: Likewise.
9143         * sysdeps/hurd/htl/pt-kill.c: Likewise.
9144         * sysdeps/i386/htl/pt-machdep.h: Likewise.
9145         * sysdeps/mach/htl/pt-block.c: Likewise.
9146         * sysdeps/mach/htl/pt-spin.c: Likewise.
9147         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
9148         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
9149         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
9150         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
9151         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
9152         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
9153         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
9154         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
9155         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
9156         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
9157         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
9158         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
9159         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
9160         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
9161         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
9162         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
9163         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
9164         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
9165         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
9166         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
9167         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
9168         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
9169         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
9170         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
9171         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
9172         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
9173         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
9174         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
9175         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
9176         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
9177         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
9178         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
9179         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
9180         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
9181         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
9182         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
9183         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
9184         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
9185         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
9186         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
9187         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
9188         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
9189         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
9191         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
9192         * README: Remove the mention of out-of-tree patches needed for
9193         GNU/Hurd.
9195         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
9196         (UTIME_NOW, UTIME_OMIT): Define macros.
9198         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
9199         instead of pthread_detach.
9200         (__cthread_fork): Call __pthread_create instead of pthread_create.
9201         (__cthread_keycreate): Call __pthread_key_create instead of
9202         pthread_key_create.
9203         (__cthread_getspecific): Call __pthread_getspecific instead of
9204         pthread_getspecific.
9205         (__cthread_setspecific): Call __pthread_setspecific instead of
9206         pthread_setspecific.
9207         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
9208         __pthread_mutex_unlock instead of pthread_mutex_lock and
9209         pthread_mutex_unlock.
9210         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
9211         ___pthread_get_cleanup_stack.
9212         (__pthread_get_cleanup_stack): New strong alias.
9213         * htl/pt-create.c: Include <pthreadP.h>.
9214         (entry_point): Call __pthread_exit instead of pthread_exit.
9215         (pthread_create): Rename to __pthread_create.
9216         (pthread_create): New strong alias.
9217         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
9218         (pthread_detach): New strong alias.
9219         (__pthread_detach): Call __pthread_cond_broadcast instead of
9220         pthread_cond_broadcast.
9221         * htl/pt-exit.c: Include <pthreadP.h>.
9222         (__pthread_exit): Call __pthread_setcancelstate and
9223         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
9224         __pthread_get_cleanup_stack.
9225         * htl/pt-testcancel.c: Include <pthreadP.h>.
9226         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
9227         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
9228         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
9229         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
9230         pthread_attr_getstacksize.
9231         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
9232         Rename to __pthread_attr_getstackaddr.
9233         (pthread_attr_getstackaddr): New strong alias.
9234         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
9235         Rename to __pthread_attr_getstacksize.
9236         (pthread_attr_getstacksize): New strong alias.
9237         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
9238         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
9239         (pthread_attr_setstack): New strong alias.
9240         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
9241         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
9242         pthread_attr_getstacksize, pthread_attr_setstacksize and
9243         pthread_attr_setstackaddr.
9244         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
9245         Rename to __pthread_attr_setstackaddr.
9246         (pthread_attr_setstackaddr): New strong alias.
9247         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
9248         Rename to __pthread_attr_setstacksize.
9249         (pthread_attr_setstacksize): New strong alias.
9250         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
9251         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
9252         pthread_exit.
9253         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
9254         (__pthread_key_create): New hidden def.
9255         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
9256         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
9257         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
9258         __pthread_exit, __pthread_key_create, __pthread_getspecific,
9259         __pthread_setspecific, __pthread_setcancelstate,
9260         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
9261         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
9262         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
9263         declarations.
9264         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
9265         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
9266         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
9267         (pthread_attr_setstackaddr): New strong alias.
9268         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
9269         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
9270         (pthread_attr_setstacksize): New strong alias.
9271         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
9272         (call_exit): Call __pthread_exit instead of pthread_exit.
9273         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
9274         (_pthread_mutex_init): New hidden definition.
9275         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
9276         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
9277         instead of pthread_attr_init and pthread_attr_setstack.
9279         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
9280         __vm_deallocate instead of vm_allocate and vm_deallocate.
9281         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
9282         setenv.
9283         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
9284         of geteuid.
9285         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
9286         strdup.
9287         * hurd/siginfo.c: Include <libioP.h>.
9288         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
9289         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
9290         munmap.
9291         * mach/devstream.c: Include <libioP.h>.
9292         (dealloc_ref): Call __mach_port_deallocate instead of
9293         mach_port_deallocate.
9294         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
9295         Call __mach_port_deallocate instead of mach_port_deallocate.
9296         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
9297         pathconf.
9298         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
9299         munmap.
9300         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
9301         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
9302         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
9303         of munmap.
9304         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
9305         of close.
9306         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
9307         instead of sysconf.
9308         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
9309         __clock_gettime instead of clock_gettime.
9310         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
9311         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
9312         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
9313         * sysdeps/unix/bsd/stty.c (stty): Likewise.
9314         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
9315         tcgetattr.
9316         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
9317         __clock_gettime and __nanosleep instead of clock_gettime and
9318         nanosleep.
9319         * hurd/catch-signal.c (hurd_catch_signal): Rename to
9320         __hurd_catch_signal.
9321         (hurd_catch_signal): New strong alias.
9322         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
9323         __hurd_catch_signal instead of hurd_catch_signal.
9324         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
9325         * hurd/hurdexec.c (_hurd_init): Add hidden def.
9326         * hurd/hurdinit.c (_hurd_init): Add hidden def.
9327         * hurd/hurdsig.c: Include <mach/mig_support.h>.
9328         (_hurd_thread_sigstate): Add hidden def.
9329         (_hurd_internal_post_signal): Use __mutex_unlock instead of
9330         mutex_unlock.
9331         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
9332         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
9333         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
9334         __hurd_file_name_path_lookup.
9335         (hurd_file_name_path_lookup): New strong alias.
9336         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
9337         hurd_file_name_path_lookup.
9338         * mach/errstring.c (mach_error_type): Add hidden def.
9339         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
9340         * mach/mutex-init.c (__mutex_init): Add hidden def.
9341         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
9342         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
9343         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
9344         * sysdeps/mach/hurd/getcwd.c
9345         (_hurd_canonicalize_directory_name_internal): Rename to
9346         __hurd_canonicalize_directory_name_internal.
9347         (_hurd_canonicalize_directory_name_internal): New strong alias.
9348         (__canonicalize_directory_name_internal, __getcwd): Call
9349         __hurd_canonicalize_directory_name_internal instead of
9350         _hurd_canonicalize_directory_name_internal.
9351         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
9352         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
9353         hidden defs.
9354         * sysdeps/hurd/include/hurd.h: New file.
9355         * sysdeps/hurd/include/hurd/fd.h: New file.
9356         * sysdeps/hurd/include/hurd/signal.h: New file.
9357         * sysdeps/mach/include/lock-intern.h: New file.
9358         * sysdeps/mach/include/mach.h: New file.
9359         * sysdeps/mach/include/mach/mig_support.h: New file.
9360         * sysdeps/mach/include/mach_error.h: New file.
9361         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
9362         prototype.
9363         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
9364         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
9365         _HEADER_H_HIDDEN_DEF macro.
9366         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
9367         _hurd_fd_error_signal): Add hidden prototype.
9368         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
9369         hidden def.
9370         * libio/iolibio.h (_IO_puts): New hidden prototype.
9371         * libio/ioputs.c (_IO_puts): New hidden def.
9372         * sysdeps/mach/hurd/localplt.data: New file.
9374 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
9375             Amos Jeffries  <squid3@treenet.co.nz>
9376             David Michael  <fedora.dm0@gmail.com>
9377             Marco Gerards  <marco@gnu.org>
9378             Marcus Brinkmann  <marcus@gnu.org>
9379             Neal H. Walfield  <neal@gnu.org>
9380             Pino Toscano  <toscano.pino@tiscali.it>
9381             Richard Braun  <rbraun@sceen.net>
9382             Roland McGrath  <roland@gnu.org>
9383             Samuel Thibault  <samuel.thibault@ens-lyon.org>
9384             Thomas DiModica  <ricinwich@yahoo.com>
9385             Thomas Schwinge  <tschwinge@gnu.org>
9387         * htl: New directory.
9388         * sysdeps/htl: New directory.
9389         * sysdeps/hurd/htl: New directory.
9390         * sysdeps/i386/htl: New directory.
9391         * sysdeps/mach/htl: New directory.
9392         * sysdeps/mach/hurd/htl: New directory.
9393         * sysdeps/mach/hurd/i386/htl: New directory.
9394         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
9395         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
9396         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
9398 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9400         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
9401         signals in thread created for runing timers.
9403 2018-04-01  Florian Weimer  <fweimer@redhat.com>
9405         * support/support_format_addrinfo.c (support_format_addrinfo):
9406         Include unknown error number in formatted result.
9408 2018-03-29  Florian Weimer  <fweimer@redhat.com>
9410         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
9411         capture SIGBUS.
9413 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9415         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
9416         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
9417         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9418         (__ASSUME_CLONE_BACKWARDS): Define.
9420 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
9422         [BZ #23024]
9423         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
9424         early when linux sentinel value is set.
9426 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9428         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
9430 2018-03-27  Andreas Schwab  <schwab@suse.de>
9432         [BZ #23005]
9433         * resolv/res_send.c (__res_context_send): Return ENOMEM if
9434         allocation of private copy of nsaddr_list fails.
9436 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
9438         [BZ #16552]
9439         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
9440         * sysdeps/unix/sysv/linux/umount.c: ... here.
9441         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
9442         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
9443         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
9444         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
9445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
9446         * sysdeps/unix/sysv/linux/umount.S: Likewise.
9447         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
9449 2018-03-26  Andreas Schwab  <schwab@suse.de>
9451         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
9452         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
9453         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
9454         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
9455         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
9456         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
9457         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
9458         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
9459         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
9460         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
9461         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
9462         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
9463         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
9464         (R_RISCV_NUM): Define.
9466 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9468         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
9469         TLS declaration of errno.
9470         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
9471         __libc_setup_tls.
9472         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
9473         (ARCH_SETUP_TLS): Likewise.
9474         * sysdeps/mach/hurd/libc-start.h: New file copied from
9475         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
9476         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
9477         instead of __libc_setup_tls.
9478         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
9479         __libc_setup_tls before initializing libpthread and running _hurd_init
9480         which starts the signal thread.
9481         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
9482         Declare function.
9483         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
9485 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
9487         [BZ #22998]
9488         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
9489         after it is defined.
9491 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
9492             Max Horn  <max@quendi.de>
9494         [BZ #22644]
9495         CVE-2017-18269
9496         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
9497         branch conditions.
9498         * string/test-memmove.c (do_test2): New testcase.
9500 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
9502         * sysdeps/generic/frame.h: Remove file.
9503         * sysdeps/arm/frame.h: Likewise.
9504         * sysdeps/hppa/frame.h: Likewise.
9505         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
9506         macro.
9507         (GET_FRAME): Likewise.
9508         (GET_STACK): Likewise.
9509         (CALL_SIGHANDLER): Likewise.
9510         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
9511         Likewise.
9512         (GET_FRAME): Likewise.
9513         (GET_STACK): Likewise.
9514         (CALL_SIGHANDLER): Likewise.
9515         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
9516         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9517         (GET_FRAME): Likewise.
9518         (GET_STACK): Likewise.
9519         (CALL_SIGHANDLER): Likewise.
9520         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
9521         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9522         (GET_FRAME): Likewise.
9523         (GET_STACK): Likewise.
9524         (ADVANCE_STACK_FRAME): Likewise.
9525         (CALL_SIGHANDLER): Likewise.
9526         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
9527         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9528         (GET_FRAME): Likewise.
9529         (GET_STACK): Likewise.
9530         (CALL_SIGHANDLER): Likewise.
9531         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
9532         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9533         (GET_FRAME): Likewise.
9534         (GET_STACK): Likewise.
9535         (CALL_SIGHANDLER): Likewise.
9536         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
9537         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9538         (GET_FRAME): Likewise.
9539         (GET_STACK): Likewise.
9540         (CALL_SIGHANDLER): Likewise.
9541         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
9542         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9543         (GET_FRAME): Likewise.
9544         (GET_STACK): Likewise.
9545         (CALL_SIGHANDLER): Likewise.
9546         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
9547         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9548         (GET_FRAME): Likewise.
9549         (GET_STACK): Likewise.
9550         (CALL_SIGHANDLER): Likewise.
9551         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
9552         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9553         (GET_FRAME): Likewise.
9554         (GET_STACK): Likewise.
9555         (CALL_SIGHANDLER): Likewise.
9556         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
9557         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9558         (GET_FRAME): Likewise.
9559         (GET_STACK): Likewise.
9560         (CALL_SIGHANDLER): Likewise.
9561         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
9562         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9563         (GET_FRAME): Likewise.
9564         (GET_STACK): Likewise.
9565         (CALL_SIGHANDLER): Likewise.
9566         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
9567         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9568         (GET_FRAME): Likewise.
9569         (GET_STACK): Likewise.
9570         (CALL_SIGHANDLER): Likewise.
9571         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
9572         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9573         (FIRST_FRAME_POINTER): Likewise.
9574         (ADVANCE_STACK_FRAME): Likewise.
9575         (GET_STACK): Likewise.
9576         (GET_FRAME): Likewise.
9577         (CALL_SIGHANDLER): Likewise.
9578         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
9579         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9580         (ADVANCE_STACK_FRAME): Likewise.
9581         (GET_STACK): Likewise.
9582         (GET_FRAME): Likewise.
9583         (CALL_SIGHANDLER): Likewise.
9584         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
9585         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9586         (GET_FRAME): Likewise.
9587         (GET_STACK): Likewise.
9588         (CALL_SIGHANDLER): Likewise.
9589         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
9590         (SIGCONTEXT_EXTRA_ARGS): Likewise.
9591         (GET_FRAME): Likewise.
9592         (GET_STACK): Likewise.
9593         (CALL_SIGHANDLER): Likewise.
9595 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
9597         * sysdeps/x86_64/backtrace.c: Move to ....
9598         * debug/backtrace.c: ... here.
9599         * sysdeps/aarch64/backtrace.c: Remove file.
9600         * sysdeps/alpha/backtrace.c: Likewise.
9601         * sysdeps/hppa/backtrace.c: Likewise.
9602         * sysdeps/ia64/backtrace.c: Likewise.
9603         * sysdeps/mips/backtrace.c: Likewise.
9604         * sysdeps/nios2/backtrace.c: Likewise.
9605         * sysdeps/riscv/backtrace.c: Likewise.
9606         * sysdeps/sh/backtrace.c: Likewise.
9607         * sysdeps/tile/backtrace.c: Likewise.
9609 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
9611         [BZ #22987]
9612         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
9613         function.
9614         (fdimf): Likewise.
9615         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
9617         [BZ #17343]
9618         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
9619         possibly overflowing computations.
9621 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9623         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
9624         values from Linux-specific section now that it is in the GNU section.
9625         * sysdeps/gnu/errlist.c: Regenerate.
9627 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
9629         * math/Makefile (libm-narrow-fns): Add sub.
9630         (libm-test-funcs-narrow): Likewise.
9631         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
9632         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
9633         * math/gen-auto-libm-tests.c (test_functions): Add sub.
9634         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
9635         (NARROW_SUB_ROUND_TO_ODD): Likewise.
9636         (NARROW_SUB_TRIVIAL): Likewise.
9637         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
9638         macro.
9639         (__dsubl): Likewise.
9640         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
9641         dsub.
9642         (CFLAGS-nldbl-dsub.c): New variable.
9643         (CFLAGS-nldbl-fsub.c): Likewise.
9644         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
9645         __nldbl_dsubl.
9646         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
9647         prototype.
9648         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
9649         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
9650         * math/auto-libm-test-in: Add tests of sub.
9651         * math/auto-libm-test-out-narrow-sub: New generated file.
9652         * math/libm-test-narrow-sub.inc: New file.
9653         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9654         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
9655         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
9656         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
9657         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
9658         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
9659         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
9660         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
9661         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
9662         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
9663         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
9664         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
9665         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
9666         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
9667         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
9668         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
9669         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
9670         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
9671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9672         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
9673         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9674         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9675         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9676         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9677         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9678         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9679         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9680         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9681         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9682         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9683         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9684         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
9686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
9687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
9688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
9689         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
9690         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9691         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9692         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9693         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9694         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9695         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
9696         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
9697         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9698         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9700 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
9702         [BZ #20079]
9703         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
9705 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
9707         * benchtests/bench-timing.h (attribute_hidden): Undefine.
9709 2018-03-18  Richard Braun  <rbraun@sceen.net>
9711         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
9712         thread reference.
9714 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
9716         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
9717         (__libc_cleanup_fct): Define function.
9718         (__libc_cleanup_region_start, __libc_cleanup_region_end,
9719         __libc_cleanup_end): Rewrite implementation using
9720         __attribute__ ((__cleanup__)).
9721         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
9722         * hurd/Makefile (routines): Add hurdlock.
9723         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
9724         interface.
9725         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
9726         * hurd/hurdpid.c: Include <lowlevellock.h>
9727         (_S_msg_proc_newids): Use lll_wait to synchronize.
9728         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
9729         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
9730         * mach/Makefile (lock-headers): Remove machine-lock.h.
9731         * mach/lock-intern.h: Include <lowlevellock.h> instead of
9732         <machine-lock.h>.
9733         (__spin_lock_t): New type.
9734         (__SPIN_LOCK_INITIALIZER): New macro.
9735         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
9736         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
9737         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
9738         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
9739         (__mutex_init): Initialize with lll.
9740         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
9741         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
9742         needing lll.
9743         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
9744         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
9745         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
9746         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
9747         (__setpgid): Use lll for synchronization.
9748         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
9749         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
9750         instead of <cthreads.h>.
9751         (_IO_lock_inexpensive): New macro
9752         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
9753         (__libc_lock_self0): New declaration.
9754         (__libc_lock_owner_self): New macro.
9755         (__libc_key_t): Remove type.
9756         (_LIBC_LOCK_INITIALIZER): New macro.
9757         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
9758         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
9759         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
9760         __libc_lock_define_initialized_recursive,
9761         __rtld_lock_define_initialized_recursive,
9762         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
9763         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
9764         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
9765         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
9766         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
9767         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
9768         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
9769         New macros.
9770         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
9771         * hurd/hurdlock.c: New file.
9772         * hurd/hurdlock.h: New file.
9773         * mach/lowlevellock.h: New file
9775 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9777         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
9778         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
9779         when opening a symlink with O_NOFOLLOW.
9780         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
9781         path when flags contains O_NOFOLLOW.
9782         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
9783         if flags contains O_DIRECTORY and the result is a directory.
9784         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
9785         oneself when the pointer given in D is nul (as set by ext2fs).
9786         * sysdeps/mach/hurd/mlockall.c: New file.
9787         * sysdeps/mach/hurd/munlockall.c: New file.
9789 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9791         * hurd/hurdsig.c: Include <pthread.h>.
9792         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
9793         get the signal thread stack layout.
9794         * hurd/Makefile (headers): Remove threadvar.h.
9795         (inline-headers): Remove threadvar.h.
9796         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
9797         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
9798         __hurd_threadvar_max, __hurd_errno_location.
9799         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
9800         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
9801         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
9802         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
9803         unless TLS is not initialized yet, in which case we do not need a
9804         critical section yet anyway.
9805         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
9806         <machine-sp.h>.
9807         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
9808         declarations.
9809         (__hurd_threadvar_index): Remove enum.
9810         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
9811         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
9812         inlines.
9813         (__hurd_reply_port0): New variable declaration.
9814         (__hurd_local_reply_port): New macro.
9815         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
9816         (interrupted_reply_port_location): Add thread_t parameter.  Use it
9817         with THREAD_TCB to access thread-local variables.
9818         (_hurdsig_abort_rpcs): Pass ss->thread to
9819         interrupted_reply_port_location.
9820         (_hurd_internal_post_signal): Likewise.
9821         (_hurdsig_init): Use presence of cthread_fork instead of
9822         __hurd_threadvar_stack_mask to start signal thread by hand.
9823         Remove signal thread threadvar initialization.
9824         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
9825         * hurd/sigunwind.c: Include <hurd/threadvar.h>
9826         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
9827         of threadvar.
9828         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
9829         __libc_lock_self0.
9830         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
9831         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
9832         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
9833         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
9834         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
9835         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
9836         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
9837         define variables.
9838         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
9839         <hurd/threadvar.h>.
9840         [IS_IN(rtld)] (rtld_errno): New variable.
9841         [IS_IN(rtld)] (__errno_location): New weak function.
9842         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
9843         * sysdeps/mach/hurd/errno.c: Remove file.
9844         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
9845         (__fork): Remove THREADVAR_SPACE macro and its use.
9846         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
9847         variable.
9848         (init): Do not initialize threadvar.
9849         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
9850         symbol.
9851         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
9852         __hurd_local_reply_port instead of threadvar.
9853         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
9854         _hurd_sigstate fields.
9855         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
9856         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
9857         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
9858         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
9859         instead of threadvar.
9860         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
9861         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
9862         (use_threadvar, global_reply_port): Remove variables.
9863         (__hurd_reply_port0): New variable.
9864         (__mig_get_reply_port): Use __hurd_local_reply_port and
9865         __hurd_reply_port0 instead of threadvar.
9866         (__mig_dealloc_reply_port): Likewise.
9867         (__mig_init): Do not initialize threadvar.
9868         * sysdeps/mach/hurd/profil.c: Fix comment.
9869         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
9870         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
9871         cthread_keycreate, cthread_getspecific, cthread_setspecific to
9872         __cthread_fork, __cthread_detach, __pthread_getattr_np,
9873         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
9874         __cthread_setspecific.
9875         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
9876         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
9877         __cthread_t instead of cthread_fork, cthread_detach,
9878         pthread_getattr_np, pthread_attr_getstack.
9879         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
9880         __cthread_keycreate.
9881         (cthread_getspecific): Rename to __cthread_getspecific.
9882         (cthread_setspecific): Rename to __cthread_setspecific.
9883         (__libc_getspecific): Use __cthread_getspecific instead of
9884         cthread_getspecific.
9885         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
9886         __cthread_keycreate instead of cthread_keycreate.
9887         (__libc_setspecific): Use __cthread_setspecific instead of
9888         cthread_setspecific.
9889         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
9890         Likewise.
9891         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
9892         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
9893         testing whether it is defined.
9895 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9897         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
9898         Define macro.
9899         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
9900         * sysdeps/mach/i386/thread_state.h
9901         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
9902         i386_THREAD_STATE.
9903         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
9904         i386_THREAD_STATE.
9905         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
9907         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
9908         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
9910         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
9911         macros.
9912         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
9913         descriptor instead of creating a new one.
9914         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
9916         * mach/setup-thread.c: Include <ldsodefs.h>.
9917         (__mach_setup_thread): Call _dl_allocate_tls, pass
9918         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
9919         MACHINE_THREAD_STATE_FLAVOR, before getting
9920         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
9921         MACHINE_THREAD_STATE_FLAVOR with the result.
9922         * hurd/hurdfault.c (_hurdsig_fault_init): Call
9923         MACHINE_THREAD_STATE_FIX_NEW.
9924         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
9925         too.  Add original thread parameter.
9927 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
9929         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
9930         Remove inline function.
9932         * sysdeps/i386/fpu/libm-test-ulps: Update.
9933         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
9935 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
9937         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
9938         commit.
9940 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
9942         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
9943         (__sincos_code): Remove define and undefine.
9944         [__FAST_MATH__] (__sincos): Remove inline function.
9945         [__FAST_MATH__] (__sincosf): Remove inline function.
9946         [__FAST_MATH__] (__sincosl): Remove inline function.
9947         (__atan2l): Remove inline functions.
9948         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
9949         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
9950         function.
9951         (floor): Remove inline function.
9952         (ceil): Likewise.
9953         [__FAST_MATH__] (__ldexp_code): Remove macro.
9954         [__FAST_MATH__] (ldexp): Remove inline function.
9955         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
9956         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
9957         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
9958         [__USE_ISOC99] (__lrint_code): Remove macro.
9959         [__USE_ISOC99] (__llrint_code): Likewise.
9960         [__USE_ISOC99] (lrintf): Remove inline function.
9961         [__USE_ISOC99] (lrint): Likewise.
9962         [__USE_ISOC99] (lrintl): Likewise.
9963         [__USE_ISOC99] (llrint): Likewise.
9964         [__USE_ISOC99] (llrintf): Likewise.
9965         [__USE_ISOC99] (llrintl): Likewise.
9967 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
9969         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
9970         (__ieee754_sqrtf): Remove.
9971         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
9972         (__ieee754_sqrtf): Remove.
9973         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
9974         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
9975         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
9976         (__ieee754_sqrtf): Remove.
9977         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
9978         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
9979         (sqrtf): Remove.
9980         (sqrtl): Remove.
9981         (__ieee754_sqrt): Remove.
9982         (__ieee754_sqrtf): Remove.
9983         (__ieee754_sqrtl): Remove.
9984         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
9985         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
9986         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
9987         (__ieee754_sqrtf): Remove.
9988         (__ieee754_sqrtl): Remove.
9990 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
9992         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
9993         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
9994         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9995         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
9996         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
9997         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9998         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9999         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
10000         Likewise.
10001         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
10002         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
10003         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10004         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10005         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
10006         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
10007         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
10008         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10009         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10010         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10011         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
10012         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10013         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
10014         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
10015         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
10016         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10017         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10018         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10019         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
10020         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
10021         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
10022         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
10023         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
10024         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
10025         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
10026         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
10027         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
10028         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10029         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
10030         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10031         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10032         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
10033         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10034         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10035         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10036         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10037         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
10038         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
10039         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10040         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
10042 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
10044         * include/math.h (sqrt): Declare with asm redirect.
10045         (sqrtf): Likewise.
10046         (sqrtl): Likewise.
10047         (sqrtf128): Likewise.
10048         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
10049         nonlib and libnldbl with -fmath-errno.
10050         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
10051         * math/w_sqrt_template.c: Likewise.
10052         * math/w_sqrtf_compat.c: Likewise.
10053         * math/w_sqrtl_compat.c: Likewise.
10054         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
10055         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
10056         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
10057         complex.h.
10059 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
10061         * benchtests/Makefile: Define _ISOMAC.
10062         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
10063         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
10064         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
10065         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
10066         * benchtests/bench-timing.h: Define attribute_hidden.
10068 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10070         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
10071         mov + lsr.
10073 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
10075         [BZ #22963]
10076         * localedata/locales/cs_CZ (mon): Rename to...
10077         (alt_mon): This.
10078         (mon): Import from CLDR (genitive case).
10080 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
10082         [BZ #22937]
10083         * localedata/locales/el_CY (abmon): Rename to...
10084         (ab_alt_mon): This.
10085         (abmon): Import from CLDR (abbreviated genitive case).
10086         * localedata/locales/el_GR (abmon): Rename to...
10087         (ab_alt_mon): This.
10088         (abmon): Import from CLDR (abbreviated genitive case).
10090 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
10092         [BZ #22932]
10093         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
10095 2018-03-15  Robert Buj  <robert.buj@gmail.com>
10097         [BZ #22848]
10098         * localedata/locales/ca_ES (abmon): Rename to...
10099         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
10100         (mon): Rename to...
10101         (alt_mon): This.
10102         (abmon): Import from CLDR (genitive case, month names preceded by
10103         "de" or "d’").
10104         (mon): Likewise.
10105         (abday): Synchronize with CLDR.
10106         (d_t_fmt): Likewise.
10107         (d_fmt): Likewise.
10108         (am_pm): Likewise.
10110         (LC_TIME): Improve indentation.
10111         (LC_TELEPHONE): Likewise.
10112         (LC_NAME): Likewise.
10113         (LC_ADDRESS): Likewise.
10115 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
10117         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
10118         (lrintf): Remove definitions used only with old GCC.
10119         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
10120         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
10121         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
10122         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
10123         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
10124         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
10125         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
10126         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
10127         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
10128         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
10129         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
10130         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
10131         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
10132         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
10133         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
10134         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
10135         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
10136         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
10137         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
10138         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
10139         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
10140         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
10141         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
10142         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
10143         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
10144         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
10145         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
10146         [__FAST_MATH__] (__M_SQRT2): Remove macro.
10148 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10150         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
10151         instruction to unbreak builds with binutils 2.26 and older.
10153 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10155         * sysdeps/aarch64/strncmp.S (count): New macro.
10156         (strncmp): Store misaligned length in SRC1 in COUNT.
10157         (mutual_align): Adjust.
10158         (misaligned8): Load dword at a time when it is safe.
10160 2018-03-12  Zack Weinberg  <zackw@panix.com>
10162         [BZ #1190]
10163         [BZ #19476]
10164         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
10165         if the _IO_EOF_SEEN bit is already set; update commentary.
10166         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
10167         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
10169         * support/support_openpty.c, support/tty.h: New files.
10170         * support/Makefile (libsupport-routines): Add support_openpty.
10172         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
10173         New test cases.
10174         * libio/Makefile (tests): Add tst-fgetc-after-eof.
10175         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
10177 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
10179         * po/pt_BR.po: Update translations.
10181 2018-03-12  David Michael <fedora.dm0@gmail.com>
10183         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
10184         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
10185         get a port to the startup server.
10187 2018-03-11  Zack Weinberg  <zackw@panix.com>
10189         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
10190         before nldbl-compat.h.
10192 2018-03-10  Zack Weinberg  <zackw@panix.com>
10194         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
10195         math.h or math_private.h.
10197         * sysdeps/alpha/fpu/s_isnan.c
10198         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
10199         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
10200         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
10201         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
10202         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
10203         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
10204         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
10205         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
10206         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
10207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
10208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
10209         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
10210         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
10211         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
10212         Include math_private.h.
10214         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
10215         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
10216         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
10217         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
10218         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
10219         * sysdeps/powerpc/power7/fpu/s_logb.c:
10220         Include math.h and math_private.h.
10222         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
10223         uses of $at in .set noat / .set at.
10225 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10227         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
10228         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
10229         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
10230         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
10231         Likewise.
10233 2018-03-09  Florian Weimer  <fweimer@redhat.com>
10235         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
10236         in comment.
10238 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
10240         [BZ #22919]
10241         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
10242         Add nop before __startcontext, add explaining comments.
10244 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10246         [BZ #22926]
10247         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
10248         empty for __SPE__.
10249         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
10250         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
10251         Do not build hardware transactional code for __SPE__.
10252         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10253         (__lll_trylock_elision): Likewise.
10254         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10255         (__lll_unlock_elision): Likewise.
10257         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
10258         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
10259         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
10260         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
10261         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
10262         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
10263         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
10264         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
10265         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
10266         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
10267         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
10268         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
10269         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
10270         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
10271         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
10272         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
10273         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
10274         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
10275         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
10276         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
10277         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
10278         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10279         (__ASSUME_CLONE_BACKWARDS): Define.
10280         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
10281         __clone2 if __NR_clone2 is defined.
10282         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10283         (__ASSUME_CLONE_BACKWARDS): Likewise.
10284         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10285         (__ASSUME_CLONE_BACKWARDS): Likewise.
10286         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10287         (__ASSUME_CLONE2): Likewise.
10288         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10289         (__ASSUME_CLONE_BACKWARDS3): Likewise.
10290         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
10291         variants and the define architecture can use.
10292         (__ASSUME_CLONE_DEFAULT): Define as default.
10293         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10294         (__ASSUME_CLONE_BACKWARDS): Likewise.
10295         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10296         (__ASSUME_CLONE_BACKWARDS): Likewise.
10297         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10298         (__ASSUME_CLONE_BACKWARDS2): Likewise.
10300 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10302         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
10304         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
10305         time.
10307         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
10308         (do_test_limit): Likewise.
10310         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
10311         for every implementation.
10312         (do_test): Likewise.
10314         * benchtests/bench-strncmp.c: Convert output to json.
10316 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10318         * io/futimens.c: Add missing start-of-file descriptive comment.
10319         * io/utime.c: Likewise.
10320         * misc/futimesat.c: Likewise.
10321         * misc/utimes.c: Likewise.
10322         * sysdeps/mach/hurd/futimesat.c: Likewise.
10323         * sysdeps/mach/hurd/utimes.c: Likewise.
10324         * sysdeps/posix/utime.c: Likewise.
10325         * sysdeps/posix/utimes.c: Likewise.
10326         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
10327         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
10328         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
10329         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
10331 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10333         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
10334         hurd_futimes.
10335         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
10336         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
10337         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
10338         (__futimens): Move implementation to...
10339         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
10340         utime_tvalue_from_tspec): ... new helper functions.
10341         (hurd_futimens): New function.
10342         * sysdeps/mach/hurd/futimesat.c: New file.
10343         * sysdeps/mach/hurd/utimensat.c: New file.
10345 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
10347         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
10348         UTIME_OMIT): New macros.
10349         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
10350         before reverting to converting time spec to time value and calling
10351         __file_utimes.
10352         * sysdeps/mach/hurd/utime-helper.c: New file.
10353         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
10354         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
10355         reverting to utime_tvalue_from_tval and __file_utimes.
10356         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
10357         (__lutimes): Just call hurd_futimens after lookup.
10358         * sysdeps/mach/hurd/utimes.c: Likewise.
10360 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10362         * bits/sigaction.h: Add include guard.
10363         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
10364         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
10365         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
10366         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
10367         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
10368         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
10369         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
10370         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
10371         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
10373 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
10375         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
10376         -Wmaybe-uninitialized for -Os.
10377         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
10378         this disabling.
10380 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10382         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
10383         __INO_T_MATCHES_INO64_T is defined.
10384         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
10385         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
10386         of definition.
10387         * dirent/alphasort64.c: Likewise.
10388         * dirent/scandir.c: Likewise.
10389         * dirent/scandir64-tail.c: Likewise.
10390         * dirent/scandir64.c: Likewise.
10391         * dirent/scandirat.c: Likewise.
10392         * dirent/scandirat64.c: Likewise.
10393         * dirent/versionsort.c: Likewise.
10394         * dirent/versionsort64.c: Likewise.
10395         * include/dirent.h: Likewise.
10397         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
10398         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
10399         for socketpair endpoint.
10400         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
10401         WRITE_BUFFER_SIZE as buffer size for sending socket.
10402         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
10403         issue on system where send is implemented with sendto syscall.
10404         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
10405         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
10406         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
10407         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
10409         [BZ #21269]
10410         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
10411         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
10412         sa_restorer for vDSO case.
10413         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
10415 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10417         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
10418         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
10419         * hurd/hurd/ioctl.h: Include <mach/port.h>
10420         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
10421         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
10422         <mach/mach_types.h> and <mach/message.h>.
10423         (headers): Move mach/param.h to bits/mach/param.h.
10424         * sysdeps/mach/i386/mach/param.h: Move file to ...
10425         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
10426         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
10427         of <mach/param.h>.
10428         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
10429         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
10430         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
10431         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
10432         trivial, for C++ conformity.
10433         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
10434         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
10435         Process mig output through $(migheadersed).
10436         * hurd/Makefile (migheadersed): Define variable.
10437         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
10438         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
10439         headers.
10440         * hurd/hurd.h: Include <bits/types/sigset_t.h>
10441         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
10442         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
10443         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
10444         <bits/types/sigset_t.h>.
10445         [!defined __USE_GNU]: Do not #error out.
10446         (struct hurd_sigstate): Use _NSIG instead of NSIG.
10447         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
10448         Include <stddef.h> and <bits/types/sigset_t.h>
10449         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
10450         instead of sighandler_t.
10451         * stdlib/errno.h (error_t): Move definition to...
10452         * bits/types/error_t.h: ... new header.
10453         * stdlib/Makefile (headers): Add bits/types/error_t.h.
10454         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
10455         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
10456         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
10457         * hurd/hurd.h: Include <bits/types/error_t.h>
10458         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
10459         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
10460         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
10461         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
10462         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
10463         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
10464         * sysdeps/mach/hurd/futimens.c: New file.
10466 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10468         [BZ #22918]
10469         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
10470         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
10471         * nscd/gai.c (__nss_hosts_database): Readd definition.
10472         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
10473         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
10474         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
10476 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
10478         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
10479         (ifunc_one): Likewise.
10481 2018-03-01  DJ Delorie  <dj@delorie.com>
10483         [BZ #22342]
10484         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
10485         key value.
10487 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
10489         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
10490         `match_pid' parameter.
10491         (td_ta_thr_iter): Update accordingly.
10493 2018-03-01  Florian Weimer  <fweimer@redhat.com>
10495         * nptl/Makefile (install-lib-ldscripts): Remove.
10496         (install): Remove rule.
10497         ($(inst_libdir)/libpthread.so): Likewise.
10499 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
10501         [BZ #22896]
10502         * localedata/locales/an_ES: update month and day names,
10503         improve d_fmt, improve postal_fmt, add country_post,
10504         add country_isbn
10506 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
10508         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
10509         Ukrainian instead of Bulgarian.
10511 2018-03-01  Florian Weimer  <fweimer@redhat.com>
10513         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
10514         reference.
10516 2018-03-01  Florian Weimer  <fweimer@redhat.com>
10518         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
10519         * nptl/Makefile (routines): Add pthread_atfork.
10520         (static-only-routines): Set to pthread_atfork.
10521         (libpthread-routines): Remove pthread_atfork.
10522         (libpthread-static-only-routines): Remove.
10523         (install): Update comment.
10524         (libpthread.so): Do not install libpthread_nonshared.a.
10525         (tests): Do not link with libpthread_nonshared.a.
10526         (generated): Remove libpthread_nonshared.a.
10527         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
10528         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
10529         with libpthread_nonshared.a.
10531 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
10533         [BZ #22902]
10534         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
10535         (libc_feholdexcept_setroundf128): New macro.
10536         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
10538         [BZ #15105]
10539         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
10540         libc_hidden_def.
10541         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
10542         * include/inttypes.h: New file.
10544 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
10546         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
10547         -Os in two more places.
10549 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10551         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
10552         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
10553         be sorted correctly at the moment because of a bug.
10555 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10557         [BZ #22550] - es_ES locale (and other es_* locales): collation should
10558         treat ñ as a primary different character, sync the collation
10559         for Spanish with CLDR.
10560         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
10561         * localedata/Makefile: Add new test files.
10562         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
10563         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
10564         collation order.
10565         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
10566         * localedata/am_ET.UTF-8.in: New test file.
10567         * localedata/az_AZ.UTF-8.in: Likewise.
10568         * localedata/be_BY.UTF-8.in: Likewise.
10569         * localedata/ber_DZ.UTF-8.in: Likewise.
10570         * localedata/ber_MA.UTF-8.in: Likewise.
10571         * localedata/bg_BG.UTF-8.in: Likewise.
10572         * localedata/br_FR.UTF-8.in: Likewise.
10573         * localedata/cmn_TW.UTF-8.in: Likewise.
10574         * localedata/crh_UA.UTF-8.in: Likewise.
10575         * localedata/csb_PL.UTF-8.in: Likewise.
10576         * localedata/cv_RU.UTF-8.in: Likewise.
10577         * localedata/cy_GB.UTF-8.in: Likewise.
10578         * localedata/dz_BT.UTF-8.in: Likewise.
10579         * localedata/eo.UTF-8.in: Likewise.
10580         * localedata/es_ES.UTF-8.in: Likewise.
10581         * localedata/fa_IR.UTF-8.in: Likewise.
10582         * localedata/fi_FI.UTF-8.in: Likewise.
10583         * localedata/fil_PH.UTF-8.in: Likewise.
10584         * localedata/fur_IT.UTF-8.in: Likewise.
10585         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
10586         * localedata/ha_NG.UTF-8.in: Likewise.
10587         * localedata/ig_NG.UTF-8.in: Likewise.
10588         * localedata/ik_CA.UTF-8.in: Likewise.
10589         * localedata/kk_KZ.UTF-8.in: Likewise.
10590         * localedata/ku_TR.UTF-8.in: Likewise.
10591         * localedata/ky_KG.UTF-8.in: Likewise.
10592         * localedata/ln_CD.UTF-8.in: Likewise.
10593         * localedata/mi_NZ.UTF-8.in: Likewise.
10594         * localedata/ml_IN.UTF-8.in: Likewise.
10595         * localedata/mn_MN.UTF-8.in: Likewise.
10596         * localedata/mr_IN.UTF-8.in: Likewise.
10597         * localedata/mt_MT.UTF-8.in: Likewise.
10598         * localedata/nb_NO.UTF-8.in: Likewise.
10599         * localedata/om_KE.UTF-8.in: Likewise.
10600         * localedata/os_RU.UTF-8.in: Likewise.
10601         * localedata/ps_AF.UTF-8.in: Likewise.
10602         * localedata/ro_RO.UTF-8.in: Likewise.
10603         * localedata/ru_RU.UTF-8.in: Likewise.
10604         * localedata/sc_IT.UTF-8.in: Likewise.
10605         * localedata/se_NO.UTF-8.in: Likewise.
10606         * localedata/sq_AL.UTF-8.in: Likewise.
10607         * localedata/sv_SE.UTF-8.in: Likewise.
10608         * localedata/szl_PL.UTF-8.in: Likewise.
10609         * localedata/tg_TJ.UTF-8.in: Likewise.
10610         * localedata/tk_TM.UTF-8.in: Likewise.
10611         * localedata/tt_RU.UTF-8.in: Likewise.
10612         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
10613         * localedata/ug_CN.UTF-8.in: Likewise.
10614         * localedata/uz_UZ.UTF-8.in: Likewise.
10615         * localedata/vi_VN.UTF-8.in: Likewise.
10616         * localedata/yi_US.UTF-8.in: Likewise.
10617         * localedata/yo_NG.UTF-8.in: Likewise.
10618         * localedata/zh_CN.UTF-8.in: Likewise.
10619         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
10620         file and fix bugs in the collation.
10621         * localedata/locales/az_AZ: Likewise.
10622         * localedata/locales/be_BY: Likewise.
10623         * localedata/locales/ber_DZ: Likewise.
10624         * localedata/locales/ber_MA: Likewise.
10625         * localedata/locales/bg_BG: Likewise.
10626         * localedata/locales/br_FR: Likewise.
10627         * localedata/locales/br_FR@euro: Likewise.
10628         * localedata/locales/ca_ES: Likewise.
10629         * localedata/locales/cns11643_stroke: Likewise.
10630         * localedata/locales/crh_UA: Likewise.
10631         * localedata/locales/cs_CZ: Likewise.
10632         * localedata/locales/csb_PL: Likewise.
10633         * localedata/locales/cv_RU: Likewise.
10634         * localedata/locales/cy_GB: Likewise.
10635         * localedata/locales/da_DK: Likewise.
10636         * localedata/locales/dz_BT: Likewise.
10637         * localedata/locales/en_CA: Likewise.
10638         * localedata/locales/eo: Likewise.
10639         * localedata/locales/es_CU: Likewise.
10640         * localedata/locales/es_EC: Likewise.
10641         * localedata/locales/es_ES: Likewise.
10642         * localedata/locales/es_US: Likewise.
10643         * localedata/locales/et_EE: Likewise.
10644         * localedata/locales/fa_IR: Likewise.
10645         * localedata/locales/fi_FI: Likewise.
10646         * localedata/locales/fil_PH: Likewise.
10647         * localedata/locales/fur_IT: Likewise.
10648         * localedata/locales/gez_ER@abegede: Likewise.
10649         * localedata/locales/ha_NG: Likewise.
10650         * localedata/locales/hr_HR: Likewise.
10651         * localedata/locales/hsb_DE: Likewise.
10652         * localedata/locales/hu_HU: Likewise.
10653         * localedata/locales/ig_NG: Likewise.
10654         * localedata/locales/ik_CA: Likewise.
10655         * localedata/locales/is_IS: Likewise.
10656         * localedata/locales/iso14651_t1_pinyin: Likewise.
10657         * localedata/locales/kk_KZ: Likewise.
10658         * localedata/locales/ku_TR: Likewise.
10659         * localedata/locales/ky_KG: Likewise.
10660         * localedata/locales/ln_CD: Likewise.
10661         * localedata/locales/lt_LT: Likewise.
10662         * localedata/locales/lv_LV: Likewise.
10663         * localedata/locales/mi_NZ: Likewise.
10664         * localedata/locales/ml_IN: Likewise.
10665         * localedata/locales/mn_MN: Likewise.
10666         * localedata/locales/mr_IN: Likewise.
10667         * localedata/locales/mt_MT: Likewise.
10668         * localedata/locales/nb_NO: Likewise.
10669         * localedata/locales/om_KE: Likewise.
10670         * localedata/locales/os_RU: Likewise.
10671         * localedata/locales/pl_PL: Likewise.
10672         * localedata/locales/ps_AF: Likewise.
10673         * localedata/locales/ro_RO: Likewise.
10674         * localedata/locales/ru_RU: Likewise.
10675         * localedata/locales/ru_UA: Likewise.
10676         * localedata/locales/sc_IT: Likewise.
10677         * localedata/locales/se_NO: Likewise.
10678         * localedata/locales/si_LK: Likewise.
10679         * localedata/locales/sq_AL: Likewise.
10680         * localedata/locales/sv_FI: Likewise.
10681         * localedata/locales/sv_FI@euro: Likewise.
10682         * localedata/locales/sv_SE: Likewise.
10683         * localedata/locales/szl_PL: Likewise.
10684         * localedata/locales/tg_TJ: Likewise.
10685         * localedata/locales/ti_ER: Likewise.
10686         * localedata/locales/tk_TM: Likewise.
10687         * localedata/locales/tl_PH: Likewise.
10688         * localedata/locales/tr_TR: Likewise.
10689         * localedata/locales/tt_RU: Likewise.
10690         * localedata/locales/tt_RU@iqtelif: Likewise.
10691         * localedata/locales/ug_CN: Likewise.
10692         * localedata/locales/uk_UA: Likewise.
10693         * localedata/locales/uz_UZ: Likewise.
10694         * localedata/locales/uz_UZ@cyrillic: Likewise.
10695         * localedata/locales/vi_VN: Likewise.
10696         * localedata/locales/yi_US: Likewise.
10697         * localedata/locales/yo_NG: Likewise.
10699 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10701         * gen-locales.mk: Make test files which contain @ modifiers in their
10702         name work.
10703         * localedata/gen-locale.sh: Likewise.
10705 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10707         * posix/tst-fnmatch.input: Fix results for range expressions
10708         for non C locales.
10709         * posix/tst-regexloc.c: Do not use a range expression for
10710         de_DE.ISO-8859-1 locale.
10712 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10714         * posix/bug-regex5.c: Fix test case because with the new
10715         iso14651_t1_common file, the da_DK locale now has 6 collating elements
10716         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
10717         file.
10719 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10721         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
10722         downloaded from ISO, the collation order of @-. and space has changed.
10723         Therefore, this test file needed to be adapted.
10724         * localedata/fr_CA.UTF-8.in: Likewise.
10725         * localedata/fr_FR.UTF-8.in: Likewise.
10726         * localedata/uk_UA.UTF-8.in: Likewise.
10728 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10730         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
10731         order of ȥ in the new iso14651_t1_common file.
10732         * localedata/pl_PL.UTF-8.in: Likewise.
10734 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10736         * localedata/locales/iso14651_t1_common: Add sections for various
10737         scripts to the iso14651_t1_common file.
10739 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10741         * localedata/locales/iso14651_t1_common: Use the code point of a
10742         character in the fourth collation level instead of IGNORE for all
10743         entries which have IGNORE on all 4 levels.
10745 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10747         * localedata/locales/iso14651_t1_common: Add some convenient collation
10748         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
10749         rules similar to those in CLDR.
10751 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10753         * localedata/locales/iso14651_t1_common: The new version of this
10754         file downloaded from ISO contained several syntax errors which
10755         are fixed by this patch.
10757 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10759         * localedata/locales/iso14651_t1_common: replace all <U.....>
10760         with <U000.....> because glibc understands only 4 digit or 8 digit
10762 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10764         * localedata/locales/iso14651_t1_common: Necessary changes
10765         to make the file downloaded from ISO usable by glibc.
10767 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
10769         [BZ #14095]
10770         * localedata/locales/iso14651_t1_common: Update file to
10771         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
10773 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10775         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
10776         of <nptl/pthreadP.h>
10777         (thread_attr_compare): Move function to...
10778         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
10779         * sysdeps/nptl/timer_routines.h: ... new header.
10780         * sysdeps/mach/hurd/gai_misc.h: New file.
10782 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
10784         * string/strcoll_l.c: Include <libc-diag.h>.
10785         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
10786         declarations of seq1 and seq2.
10788         [BZ #15105]
10789         * stdlib/atoi.c (atoi): Use libc_hidden_def.
10790         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
10792 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
10794         [BZ #22433]
10795         [BZ #22807]
10796         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
10797         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
10798         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
10799         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
10800         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
10801         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
10803 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10805         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
10806         macros used in __ptrace_request.
10808 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
10810         [BZ #22792]
10811         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
10812         to $(CC).
10813         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
10814         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
10815         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
10816         <tcb-offsets.h>.
10818 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
10820         [BZ #15105]
10821         * ctype/ctype.c (tolower): Use libc_hidden_def.
10822         (toupper): Likewise.
10823         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
10824         [!_ISOMAC] (toupper): Likewise.
10826 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
10828         * localedata/Makefile: Remove --quiet argument when
10829         installing locales
10831 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
10833         [BZ #17438]
10834         * localedata/locales/pt_BR (LC_TIME): use / instead of -
10835         in d_fmt.
10836         * localedata/locales/pt_PT (LC_TIME): likewise
10838 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
10840         [BZ #22646]
10841         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
10842         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
10843         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
10845 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10849         * nptl/Makefile (routines): Remove unregister-atfork.
10850         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
10851         (fork_handler_alloc): Remove function.
10852         (fork_handlers, fork_handler_init): New variables.
10853         (__fork_lock): Rename to atfork_lock.
10854         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
10855         to use a dynamic array to add/remove atfork handlers.
10856         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
10857         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
10858         Remove declaration.
10859         (fork_handler): Remove next, refcntr, and need_signal member.
10860         (__run_fork_handler_type): New enum.
10861         (__run_fork_handlers): New prototype.
10862         * nptl/register-atfork.c: Remove file.
10863         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
10865         * sysdeps/nptl/nptl-signals.h: Move to ...
10866         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
10867         comments.
10868         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
10869         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
10870         unnecessary check for SIGTIMER.
10871         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
10872         remove unnecessary removal of SIGTIMER.
10873         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
10874         include-signals.h rename.
10875         * nptl/pthreadP.h: Likewise.
10876         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
10877         __is_internal_signal instead of __nptl_is_internal_signal.
10879 2018-02-22  Andrew Waterman <andrew@sifive.com>
10881         [BZ # 22884]
10882         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
10883         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
10884         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
10885         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
10887 2018-02-22  DJ Delorie  <dj@delorie.com>
10889         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
10891 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10893         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
10894         do_misaligned, not misaligned8.
10896 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
10898         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
10899         Add memcpy_thunderx2.
10900         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
10901         Increment to 4.
10902         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
10903         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
10904         and IS_THUNDERX2PA checks.
10905         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
10906         Use macro to set name appropriately.
10907         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
10908         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
10909         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
10910         New macro.
10911         (IS_THUNDERX2): New macro.
10913 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
10915         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10917 2018-02-21  Zack Weinberg  <zackw@panix.com>
10919         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
10920         Define here, unconditionally.
10921         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
10922         * libio/libioP.h: Remove #if 0 blocks.
10923         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
10924         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
10925         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
10927         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
10928         Assume weak_alias is always defined.
10930         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
10931         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
10932         Remove #if 0 and #ifdef TODO blocks.
10933         Assume text_set_element is always defined.
10935         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
10936         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
10937         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
10939         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
10940         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
10941         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
10942         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
10943         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
10944         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
10945         Reformat bit flags for _flags field to make occupancy clearer.
10946         Update commentary.
10947         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
10948         Keep definitions consistent with those in libio/libio.h.
10950         * libio/libio.h (_IO_file_flags): Remove macro.
10951         All uses changed to _flags.
10953         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
10954         (__HAVE_COLUMN, _IO_BE): Don't define.
10955         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
10956         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
10957         * libio/libioP.h (EOF): Don't define.
10958         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
10959         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
10960         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
10961         testing _IO_UNIFIED_JUMPTABLES.
10963         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
10964         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
10965         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
10966         (_IO_size_t): Delete; all uses changed to size_t.
10967         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
10968         (_IO_off_t): Delete; all uses changed to off_t.
10969         (_IO_off64_t): Delete; all uses changed to off64_t.
10970         (_IO_pid_t): Delete; all uses changed to pid_t.
10971         (_IO_uid_t): Delete; all uses changed to uid_t.
10972         (_IO_wint_t): Delete; all uses changed to wint_t.
10973         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
10974         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
10975         (_IO_cookie_io_functions_t): Delete; all uses changed to
10976         cookie_io_functions_t.
10977         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
10978         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
10979         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
10980         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
10982         * libio/iofopncook.c: Remove unnecessary forward declarations.
10983         * libio/iolibio.h: Correct outdated commentary.
10984         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
10985         * stdio-common/fxprintf.c (__fxprintf_nocancel):
10986         Remove unnecessary casts.
10987         * stdio-common/getline.c: Use _IO_getdelim directly.
10988         Don't redefine ssize_t.
10989         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
10990         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
10991         Remove outdated comments.
10992         * stdio-common/vfscanf.c: Don't redefine va_list.
10994         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
10995         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
10996         Remove preprocessor conditionals on _LIBC and __USE_GNU,
10997         which are always true, and __cplusplus, which is always false.
10999 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
11001         [BZ #15105]
11002         [BZ #19463]
11003         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
11004         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
11005         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
11006         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
11007         libc_hidden_proto.
11008         [!_ISOMAC] (putc_unlocked): Likewise.
11009         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
11010         define inline if [__USE_EXTERN_INLINES].
11011         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
11012         putc_unlocked.
11014         [BZ #15105]
11015         [BZ #19463]
11016         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
11017         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
11018         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
11019         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
11020         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
11021         getc_unlocked.
11022         * time/tzfile.c (__tzfile_read): Likewise.
11024 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
11026         [BZ #22517]
11027         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
11029 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
11031         * io/fcntl.h: Fix a typo in a comment.
11033 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
11035         [BZ #22862]
11036         * include/features.h: Add _ISOC11_SOURCE to test for whether to
11037         define _DEFAULT_SOURCE.
11038         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
11040 2018-02-21  Florian Weimer  <fweimer@redhat.com>
11042         [BZ #20890]
11043         * elf/cache.c (save_cache): Call fsync on temporary file before
11044         renaming it.
11045         (save_aux_cache): Call fdatasync on temporary file before renaming
11046         it.
11048 2018-02-21  Florian Weimer  <fweimer@redhat.com>
11050         [BZ #22787]
11051         * include/caller.h: Remove file.
11052         * elf/dl-caller.c: Likewise.
11053         * elf/Makefile (dl-routines): Remove dl-caller.
11054         (shared-only-routines): Do not add dl-caller.
11055         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
11056         __check_caller.
11057         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
11058         member.
11059         (dl_open_worker): Do not call __check_caller.
11060         (_dl_open): Do not set caller_dl_open member.
11061         * elf/rtld.c (_rtld_global_ro): Do not initialize
11062         _dl_check_caller member.
11063         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
11064         _dl_check_caller member.
11065         (_dl_check_caller): Remove declaration.
11066         * sysdeps/unix/sysv/linux/dl-execstack.c
11067         (_dl_make_stack_executable): Do not call __check_caller.
11069 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11071         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
11072         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
11074 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
11076         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
11077         description.
11079 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
11081         [BZ #16335]
11082         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
11083         of 199606L, 200112L, and 200809L.
11084         (_XOPEN_SOURCE): Document special values of 600 and 700.
11085         (_ISOC11_SOURCE): Document macro.
11086         (_ATFILE_SOURCE): Likewise.
11087         (_FORTIFY_SOURCE): Likewise.
11089 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
11091         [BZ #15105]
11092         [BZ #19463]
11093         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
11094         and define as weak alias of __ferror_unlocked.  Use
11095         libc_hidden_weak.
11096         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
11097         libc_hidden_proto.
11098         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
11099         function if [__USE_EXTERN_INLINES].
11100         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
11101         ferror_unlocked.
11103 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
11105         [BZ #6889]
11106         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
11108 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
11110         [BZ #22818]
11111         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
11112         the GLIBC_2.1 version.
11114 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
11116         [BZ #21508]
11117         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
11118         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
11119         intl/tst-gettext-de.po from po/de.po by removing the
11120         POT-Creation-Date line.
11121         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
11122         ../po/de.po.
11123         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
11124         ../po/de.po.
11126 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11128         * mach/Makefile (headers): Add mach/param.h.
11129         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
11130         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
11131         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
11132         (__ptsname_r): Move implementation to...
11133         (__ptsname_internal): ... new function.  Add filling the STP
11134         structure.
11136 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
11138         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
11139         idouble to 1 ULP.
11141 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
11143         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
11144         syntax.
11146 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
11148         * nptl/Makefile (tst-mutex8-ENV): Delete.
11149         * nptl/tst-mutex8.c (check_type):
11150         Add runtime check if mutex will be elided.
11152 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
11154         [BZ #20980]
11155         [BZ #21234]
11156         * manual/install.texi (Configuring and compiling): Describe
11157         passing CC and CFLAGS on configure command line, not as
11158         environment variables.  Use @code markup on those variables.
11159         Specify what options go in CC and what go in CFLAGS.  Note the
11160         requirement to compile with optimization.
11161         * INSTALL: Regenerated.
11163         [BZ #18124]
11164         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
11165         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
11166         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
11167         __sigprocmask instead of sigprocmask.
11168         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
11169         Likewise.
11170         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
11171         __sigsetjmp and sigprocmask.
11173         [BZ #15105]
11174         * include/argz.h (argz_next): Use libc_hidden_proto.
11175         (__argz_next): Likewise.
11176         * string-argz-next.c (__argz_next): Use libc_hidden_def.
11177         (argz_next): Use libc_hidden_weak.
11179         [BZ #15105]
11180         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
11181         libc_hidden_proto.
11182         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
11183         libc_hidden_def.
11185         [BZ #15105]
11186         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
11187         libc_hidden_proto.
11188         * libio/iofputs.c (fputs): Use libc_hidden_weak.
11190         [BZ #15105]
11191         [BZ #19463]
11192         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
11193         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
11194         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
11195         (__feof_unlocked): New declaration, and inline function if
11196         [__USE_EXTERN_INLINES].
11197         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
11198         instead of feof_unlocked.
11199         * intl/localealias.c [_LIBC] (FEOF): Likewise.
11200         * nss/nsswitch.c (nss_parse_file): Likewise.
11201         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
11202         Likewise.
11203         * time/getdate.c (__getdate_r): Likewise.
11204         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
11205         Define as macro to call __feof_unlocked.
11207 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
11209         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
11211 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
11213         * math/Makefile: Remove mpexp.c and mplog.c
11214         * sysdeps/i386/fpu/mpexp.c: Delete file.
11215         * sysdeps/i386/fpu/mplog.c: Likewise.
11216         * sysdeps/ia64/fpu/mpexp.c: Likewise.
11217         * sysdeps/ia64/fpu/mplog.c: Likewise.
11218         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
11219         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
11220         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
11221         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
11222         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
11223         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
11224         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
11225         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
11226         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
11227         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11228         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
11229         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
11230         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11231         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
11232         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
11233         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11235 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11237         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11239 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11241         * sysdeps/sh/libm-test-ulps: Update.
11243 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11245         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
11246         idouble to 1 ULP.
11248 2018-02-12  Zack Weinberg  <zackw@panix.com>
11250         [BZ #19239]
11251         * posix/sys/types.h: Don't include sys/sysmacros.h.
11252         * misc/sys/sysmacros.h: Remove the conditional deprecation
11253         warnings for the macros defined by this header.
11255 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11257         * manual/probes.texi: Remove slowexp probes.
11258         * math/Makefile: Remove slowexp.
11259         * sysdeps/generic/math_private.h (__slowexp): Remove.
11260         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
11261         document error bounds.
11262         * sysdeps/i386/fpu/slowexp.c: Remove.
11263         * sysdeps/ia64/fpu/slowexp.c: Remove.
11264         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
11265         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
11266         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
11267         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
11268         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
11269         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
11270         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
11271         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
11272         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
11273         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
11274         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
11276 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
11278         [BZ #13932]
11279         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
11280         * benchtests/pow-inputs: Update comment for slow path cases.
11281         * manual/probes.texi (slowpow_p10): Delete removed probe.
11282         (slowpow_p10): Likewise.
11283         * math/Makefile: Remove halfulp.c and slowpow.c.
11284         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
11285         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
11286         (__halfulp): Remove.
11287         (__slowpow): Remove.
11288         * sysdeps/i386/fpu/halfulp.c: Delete file.
11289         * sysdeps/i386/fpu/slowpow.c: Likewise.
11290         * sysdeps/ia64/fpu/halfulp.c: Likewise.
11291         * sysdeps/ia64/fpu/slowpow.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
11293         improve comments and add error analysis.
11294         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
11295         (power1): Remove function:
11296         (log1): Remove error argument, add error analysis.
11297         (my_log2): Remove function.
11298         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
11299         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11300         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
11301         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
11302         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
11303         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
11304         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
11305         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
11306         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
11307         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
11308         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
11309         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
11310         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
11311         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
11313 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11315         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
11316         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
11318 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
11320         [BZ #22433]
11321         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
11322         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
11323         and PTRACE_SETHBPREGS.
11325 2018-02-10  Zack Weinberg  <zackw@panix.com>
11327         [BZ #22830]
11328         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
11329         correctly.
11330         * malloc/tst-malloc-stats-cancellation.c: New test case.
11331         * malloc/Makefile: Add new test case.
11333 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
11335         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
11337 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
11339         * math/Makefile (libm-narrow-fns): Add add.
11340         (libm-test-funcs-narrow): Likewise.
11341         * math/Versions (GLIBC_2.28): Add narrowing add functions.
11342         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
11343         * math/gen-auto-libm-tests.c (test_functions): Add add.
11344         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
11345         (NARROW_ADD_ROUND_TO_ODD): Likewise.
11346         (NARROW_ADD_TRIVIAL): Likewise.
11347         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
11348         macro.
11349         (__daddl): Likewise.
11350         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
11351         dadd.
11352         (CFLAGS-nldbl-dadd.c): New variable.
11353         (CFLAGS-nldbl-fadd.c): Likewise.
11354         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11355         __nldbl_daddl.
11356         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
11357         prototype.
11358         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
11359         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
11360         * math/auto-libm-test-in: Add tests of add.
11361         * math/auto-libm-test-out-narrow-add: New generated file.
11362         * math/libm-test-narrow-add.inc: New file.
11363         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
11366         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
11367         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
11368         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
11369         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
11370         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
11371         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
11372         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
11373         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
11374         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
11375         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
11376         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
11377         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
11378         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
11379         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
11380         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
11381         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11382         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11383         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11384         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11385         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11386         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11387         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11388         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11389         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11390         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11391         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11392         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11393         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11394         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11399         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11400         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11401         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11402         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11403         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11404         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11405         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
11406         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
11407         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11408         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11410         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
11411         (f128-pairs): New variable.
11412         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
11413         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
11414         to CFLAGS.
11415         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
11416         Also make tests add $(f128-loader-link) to gnulib-tests.
11418 2018-02-09  DJ Delorie  <dj@redhat.com>
11420         [BZ #22827]
11421         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
11422         64-bit ELF type for 64-bit ELF objects.
11424 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
11426         * math/libm-test-driver.c (snan_tests_arg): New variable.
11427         * math/libm-test-support.h (snan_tests_arg): New declaration.
11428         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
11430         * math/Makefile (test-type-pairs): New variable.
11431         (test-type-pairs-f64xf128-yes): Likewise.
11432         (tests): Add test-narrow-macros.
11433         (libm-test-funcs-narrow): New variable.
11434         (libm-test-c-narrow): Likewise.
11435         (generated): Add $(libm-test-c-narrow).
11436         (libm-tests-base-narrow): New variable.
11437         (libm-tests-narrow): Likewise.
11438         (libm-tests): Add $(libm-tests-narrow).
11439         (libm-tests-for-type): Handle $(libm-tests-narrow).
11440         (libm-test-c-narrow-obj): New variable.
11441         ($(libm-test-c-narrow-obj)): New rule.
11442         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
11443         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
11444         $(o-iterator) to set dependencies and CFLAGS.
11445         * math/gen-auto-libm-tests.c: Document use for narrowing
11446         functions.
11447         (output_for_one_input_case): Take argument NARROW.
11448         (generate_output): Likewise.  Update call to
11449         output_for_one_input_case.
11450         (main): Take --narrow option.  Update call to generate_output.
11451         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
11452         (apply_lit): Update call to _apply_lit.
11453         (apply_arglit): New function.
11454         (parse_args): Handle "a" arguments.
11455         (parse_auto_input): Handle format names using ":".
11456         * math/README.libm-test: Document "a" parameter type.
11457         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
11458         (ARG_TYPE_TRUE_MIN): Likewise.
11459         (ARG_TYPE_MAX): Likwise.
11460         (ARG_MIN_EXP): Likewise.
11461         (ARG_MAX_EXP): Likewise.
11462         (ARG_MANT_DIG): Likewise.
11463         (TEST_COND_arg_ibm128): Likewise.
11464         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
11465         (TEST_COND_arg_fmt): New macro.
11466         (init_max_error): Update prototype.
11467         * math/libm-test-support.c (test_ibm128): New variable.
11468         (init_max_error): Take argument testing_ibm128 and set test_ibm128
11469         instead of using [TEST_COND_ibm128] conditional.
11470         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
11471         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
11472         [TEST_NARROW] (TEST_MSG): New definition.
11473         (arg_plus_zero): New macro.
11474         (arg_minus_zero): Likewise.
11475         (arg_plus_infty): Likewise.
11476         (arg_minus_infty): Likewise.
11477         (arg_qnan_value_pl): Likewise.
11478         (arg_qnan_value): Likewise.
11479         (arg_snan_value_pl): Likewise.
11480         (arg_snan_value): Likewise.
11481         (arg_max_value): Likewise.
11482         (arg_min_value): Likewise.
11483         (arg_min_subnorm_value): Likewise.
11484         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
11485         (RUN_TEST_LOOP_aa_f): New macro.
11486         (TEST_SUFF): New macro.
11487         (TEST_SUFF_STR): Likewise.
11488         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
11489         (TEST_COND_any_ibm128): New macro.
11490         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
11491         this_func.  Update call to init_max_error.
11492         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
11493         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
11494         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
11495         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
11496         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
11497         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
11498         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
11499         * math/test-math-scalar.h (TEST_NARROW): Likewise.
11500         * math/test-math-vector.h (TEST_NARROW): Likewise.
11501         * math/test-arg-double.h: New file.
11502         * math/test-arg-float128.h: Likewise.
11503         * math/test-arg-float32x.h: Likewise.
11504         * math/test-arg-float64.h: Likewise.
11505         * math/test-arg-float64x.h: Likewise.
11506         * math/test-arg-ldouble.h: Likewise.
11507         * math/test-math-narrow.h: Likewise.
11508         * math/test-narrow-macros.c: Likewise.
11509         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
11510         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
11511         test-narrow-macros-ldbl-64.
11512         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
11514         * math/bits/mathcalls-narrow.h: New file.
11515         * include/bits/mathcalls-narrow.h: Likewise.
11516         * math/math-narrow.h: Likewise.
11517         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
11518         (__MATHCALL_NARROW_ARGS_2): Likewise.
11519         (__MATHCALL_NARROW_ARGS_3): Likewise.
11520         (__MATHCALL_NARROW_NORMAL): Likewise.
11521         (__MATHCALL_NARROW_REDIR): Likewise.
11522         (__MATHCALL_NARROW): Likewise.
11523         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
11524         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
11525         defined.
11526         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
11527         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
11528         (libm-narrow-fns): New variable.
11529         (libm-narrow-types-basic): Likewise.
11530         (libm-narrow-types-ldouble-yes): Likewise.
11531         (libm-narrow-types-float128-yes): Likewise.
11532         (libm-narrow-types-float128-alias-yes): Likewise.
11533         (libm-narrow-types): Likewise.
11534         (libm-routines): Add narrowing functions.
11535         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
11536         (libc_feholdexcept_setroundf128): New macro.
11537         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
11538         * sysdeps/ieee754/float128/float128_private.h: Include
11539         <math/math-narrow.h>.
11540         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
11541         Undefine and redefine.
11542         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
11543         (libm_alias_float_ldouble): Undefine and redefine.
11544         (libm_alias_double_ldouble): Likewise.
11546         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
11548 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
11550         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
11551         FPCR/FPSR.
11553 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
11555         * manual/creature.texi: Convert references to gcc.info to gcc.
11556         * manual/stdio.texi: Likewise.
11557         * manual/string.texi: Likewise.
11559 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
11561         [BZ #17979]
11562         * posix/bits/types.h (__int_least8_t): New typedef.
11563         (__uint_least8_t): Likewise.
11564         (__int_least16_t): Likewise.
11565         (__uint_least16_t): Likewise.
11566         (__int_least32_t): Likewise.
11567         (__uint_least32_t): Likewise.
11568         (__int_least64_t): Likewise.
11569         (__uint_least64_t): Likewise.
11570         * sysdeps/generic/stdint.h (int_least8_t): Define using
11571         __int_least8_t.
11572         (int_least16_t): Define using __int_least16_t.
11573         (int_least32_t): Define using __int_least32_t.
11574         (int_least64_t): Define using __int_least64_t.
11575         (uint_least8_t): Define using __uint_least8_t.
11576         (uint_least16_t): Define using __uint_least16_t.
11577         (uint_least32_t): Define using __uint_least32_t.
11578         (uint_least64_t): Define using __uint_least64_t.
11579         * wcsmbs/uchar.h: Include <bits/types.h>.
11580         (char16_t): Define using __uint_least16_t conditional only on
11581         [!__USE_ISOCXX11].
11582         (char32_t): Define using __uint_least32_t conditional only on
11583         [!__USE_ISOCXX11].
11584         * wcsmbs/test-char-types.c: New file.
11585         * wcsmbs/Makefile (tests): Add test-char-types.
11587         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
11588         version to 4.0.1.
11590 2018-02-07  Zack Weinberg  <zackw@panix.com>
11592         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
11593         Delete all contents except for definitions of _G_HAVE_MMAP and
11594         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
11595         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
11596         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
11597         change as above.
11599         * libio/libio.h: Don't include bits/_G_config.h here.
11600         Include stddef.h with __need_wchar_t defined.  Include
11601         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
11602         Define _IO_iconv_t here, directly.
11603         Don't define _IO_HAVE_ST_BLKSIZE.
11604         * libio/libioP.h: Include _G_config.h here.  Move include of
11605         shlib-compat.h up with rest of includes.  Simplify conditionals
11606         controlling definition of _IO_JUMPS_OFFSET.
11608         * csu/init.c: Remove always-true #if around entire file.
11609         Don't include stdio.h.  Set _IO_stdin_used to hardwired
11610         constant 0x20001, and update commentary.
11611         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
11612         Replace all uses of _G_va_list with __gnuc_va_list.
11613         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
11614         instead of #if _IO_HAVE_ST_BLKSIZE.
11615         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
11616         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
11617         not #ifdef.
11619         * libio/bits/libio.h: Move back to libio/libio.h and adjust
11620         multiple-include guard to match.
11621         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
11622         into this file.
11623         Remove preprocessor conditionals that are always true and/or
11624         redundant to other preprocessor conditionals in the same nest.
11625         Include shlib-compat.h unconditionally.
11626         Error out if _LIBC is not defined, or if _ISOMAC is defined,
11627         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
11628         defined after including stdio.h.
11629         Use __BEGIN_DECLS/__END_DECLS.
11631         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
11632         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
11633         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
11635 2018-02-07  Zack Weinberg  <zackw@panix.com>
11637         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
11638         New single-type headers split from _G_config.h.
11639         * libio/bits/types/cookie_io_functions_t.h
11640         * libio/bits/types/struct_FILE.h
11641         New single-type headers split from libio.h.
11643         * libio/Makefile: Install the above new headers.  Don't install
11644         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
11645         bits/libio-ldbl.h.
11646         * libio/_G_config.h, libio/libio.h: Delete file.
11648         * libio/bits/libio.h: Remove improper-inclusion guard.
11649         Include stdio.h and don't repeat anything that it does.
11650         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
11651         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
11652         __io_read_fn as cookie_read_function_t,
11653         __io_write_fn as cookie_write_function_t,
11654         __io_seek_fn as cookie_seek_function_t,
11655         __io_close_fn as cookie_close_function_t,
11656         and _IO_cookie_io_functions_t as cookie_io_functions_t.
11657         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
11658         here, in the "compatibility defines" section.  Remove an #if 0
11659         block.  Use the "body" macros from bits/types/struct_FILE.h to
11660         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
11661         and _IO_ferror_unlocked.
11662         Move prototypes of __uflow and __overflow...
11664         * libio/stdio.h: ...here.  Don't include bits/libio.h.
11665         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
11666         directly from stdarg.h.  Include bits/types/__fpos_t.h,
11667         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
11668         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
11669         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
11670         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
11671         cookie_io_functions_t, not _IO_cookie_io_functions_t;
11672         __ssize_t, not _IO_ssize_t.  Unconditionally define
11673         BUFSIZ as 8192 and EOF as (-1).
11675         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
11676         macros from bits/types/struct_FILE.h instead of _IO_* macros
11677         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
11678         instead of _IO_ssize_t.
11679         * libio/bits/stdio2.h: Similarly.
11681         * libio/iolibio.h: Add multiple-include guard.
11682         Include bits/libio.h after stdio.h.
11683         * libio/libioP.h: Add multiple-include guard.
11684         Include stdio.h and bits/libio.h before iolibio.h.
11686         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
11687         * include/bits/types/cookie_io_functions_t.h
11688         * include/bits/types/struct_FILE.h: New wrappers.
11690         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
11691         Get definitions of _G_fpos_t and _G_fpos64_t from
11692         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
11693         respectively.  Remove improper-inclusion guards.
11695         * conform/data/stdio.h-data: Update expectations of va_list.
11696         * scripts/check-installed-headers.sh: Remove special case for
11697         libio.h and _G_config.h.
11699 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
11701         [BZ #15105]
11702         [BZ #19463]
11703         * include/sys/sysmacros.h [!_ISOMAC]
11704         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
11705         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
11706         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
11707         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
11708         libc_hidden_proto.
11709         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
11710         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
11711         Likewise.
11712         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
11713         Undefine and redefine to add use __gnu_dev_ prefix.
11714         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
11715         Likewise.
11716         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
11717         and define as hidden inline function.
11718         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
11719         Likewise.
11720         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
11721         Likewise.
11722         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
11723         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
11724         (gnu_dev_minor): Likewise.
11725         (gnu_dev_makedev): Likewise.
11726         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
11727         makedev.
11728         * posix/wordexp.c (exec_comm_child): Likewise.
11729         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
11730         instead of minor and __gnu_dev_major instead of major.
11731         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
11732         __gnu_dev_major instead of major.
11733         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
11734         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
11735         instead of gnu_dev_minor.
11736         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
11737         (SLAVE_P): Likewise.
11738         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
11739         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
11740         instead of major.
11742         [BZ #21313]
11743         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
11744         in another place.
11745         * locale/weightwc.h (findidx): Likewise.
11747 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
11749         * manual/probes.texi (slowlog): Delete documentation of removed probe.
11750         (slowlog_inexact): Likewise
11751         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
11752         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
11754 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
11756         [BZ #22797]
11757         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
11758         missing second underscore to parameter name.
11760 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
11762         [BZ #14508]
11763         [BZ #15512]
11764         [BZ #17082]
11765         [BZ #20530]
11766         * bits/byteswap.h: Update file comment.  Do not include
11767         <bits/byteswap-16.h>.
11768         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
11769         constant.
11770         (__bswap_16): Define as inline function.
11771         (__bswap_constant_32): Reformat definition.
11772         (__bswap_32): Always define as inline function, not macro, using
11773         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
11774         otherwise __bswap_constant_32.
11775         (__bswap_constant_64): Reformat definition.  Do not use
11776         __extension__ here.
11777         (__bswap_64): Always define as inline function, not macro.  Use
11778         __extension__ on function definition.  Use __builtin_bswap64 if
11779         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
11780         * string/test-endian-file-scope.c: New file.
11781         * string/test-endian-sign-conversion.c: Likewise.
11782         * string/Makefile (headers): Remove bits/byteswap-16.h.
11783         (tests): Add test-endian-file-scope and
11784         test-endian-sign-conversion.
11785         (CFLAGS-test-endian-sign-conversion.c): New variable.
11786         * bits/byteswap-16.h: Remove file.
11787         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
11788         * sysdeps/ia64/bits/byteswap.h: Likewise.
11789         * sysdeps/m68k/bits/byteswap.h: Likewise.
11790         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11791         * sysdeps/s390/bits/byteswap.h: Likewise.
11792         * sysdeps/tile/bits/byteswap.h: Likewise.
11793         * sysdeps/x86/bits/byteswap-16.h: Likewise.
11794         * sysdeps/x86/bits/byteswap.h: Likewise.
11796         [BZ #17721]
11797         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
11798         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
11799         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
11800         199901L] (__restrict): Define to restrict.
11802         [BZ #19667]
11803         * string/testcopy.c: Include <support/support.h>.  Do not include
11804         <malloc.h>.  Use <support/test-driver.c>.
11805         (main): Rename to do_test.  Make static.  Use xmalloc instead of
11806         malloc.
11808         [BZ #13575]
11809         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
11810         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
11811         (SSIZE_MAX): Define to INT_MAX.
11812         * posix/test-ssize-max.c: New file.
11813         * posix/Makefile (tests): Add test-ssize-max.
11815         [BZ #19668]
11816         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
11817         <support/support.h>.  Do not include <malloc.h>.
11818         (query_auxv): Use xmalloc instead of malloc.
11820         [BZ #14553]
11821         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
11822         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
11823         instead of loff_t.
11825 2018-02-06  Florian Weimer <fweimer@redhat.com>
11827         [BZ #18023]
11828         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11829         Use scratch_buffer instead of extend_alloca.
11831 2018-02-06  Zack Weinberg  <zackw@panix.com>
11833         * libio/stdio.h: Don't define getc or putc as macros.
11834         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
11835         not _IO_getc and _IO_putc.
11837         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
11838         * stdio-common/tstgetln.c: Don't redefine ssize_t.
11840 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
11842         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
11843         (TCP_FASTOPEN_NO_COOKIE): Likewise.
11845         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
11847         [BZ #14890]
11848         * elf/elf.h (NT_PRFPREG): New macro.
11849         (NT_S390_VXRS_LOW): Likewise.
11850         (NT_S390_VXRS_HIGH): Likewise.
11851         (NT_S390_GS_CB): Likewise.
11852         (NT_S390_GS_BC): Likewise.
11853         (NT_S390_RI_CB): Likewise.
11855         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11856         (MAP_SYNC): New macro.
11857         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
11858         Likewise.
11859         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11860         (MAP_SYNC): Likewise.
11861         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11862         (MAP_SYNC): Likewise.
11863         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11864         (MAP_SYNC): Likewise.
11865         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11866         (MAP_SYNC): Likewise.
11867         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11868         (MAP_SYNC): Likewise.
11869         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11870         (MAP_SYNC): Likewise.
11871         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
11872         Likewise.
11873         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
11874         Likewise.
11876         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
11877         (MAP_SHARED_VALIDATE): New macro.
11878         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11879         (MAP_SHARED_VALIDATE): Likewise.
11881 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11883         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
11884         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
11885         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
11887 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11889         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
11890         (DT_NUM): Updated to 35.
11892 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11894         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
11895         __builtin_expect with __glibc_likely and __glibc_unlikely.
11896         (elf_machine_rela): Likewise.
11897         (elf_machine_lazy_rel): Likewise.
11899 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11901         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
11902         __builtin_expect with __glibc_likely and __glibc_unlikely.
11903         (elf_machine_lazy_rel): Likewise.
11905 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11907         [BZ #22638]
11908         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
11909         SHARED.
11910         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
11912 2018-02-05  Andreas Schwab  <schwab@suse.de>
11914         [BZ #22761]
11915         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
11916         string.
11918 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11920         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
11921         not check against PTHREAD_STACK_MIN.
11923 2018-02-02  Sean McKean  <smckean83@gmail.com>
11925         [BZ #22735]
11926         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
11928 2018-02-02  Florian Weimer  <fweimer@redhat.com>
11930         [BZ #22753]
11931         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
11932         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
11933         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
11934         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
11935         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
11936         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11937         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11938         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
11939         * manual/llio.texi (Scatter-Gather): Mention offset -1.
11940         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
11941         * misc/tst-preadvwritev2.c (do_test): Call it.
11942         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
11944 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11946         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
11948         * benchtests/bench-memcmp.c: Print json instead of plain text.
11950         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
11951         every test run.
11953 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
11955         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11956         version to 4.15.
11957         (s390_sthyi): New syscall.
11959         * sysdeps/generic/ldbl-classify-compat.h: New file.
11960         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
11961         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
11962         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
11963         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
11964         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
11965         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
11966         * sysdeps/ieee754/dbl-64/s_finite.c: Include
11967         <ldbl-classify-compat.h>.
11968         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11969         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
11970         <ldbl-classify-compat.h>.
11971         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11972         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
11973         <ldbl-classify-compat.h>.
11974         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11975         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
11976         <ldbl-classify-compat.h>.
11977         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11978         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
11979         <ldbl-classify-compat.h>.
11980         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11981         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
11982         <ldbl-classify-compat.h>.
11983         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11984         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
11985         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
11986         * sysdeps/m68k/coldfire/math_private.h: Remove file.
11987         * sysdeps/microblaze/math_private.h: Likewise.
11988         * sysdeps/nios2/math_private.h: Likewise.
11989         * sysdeps/sh/math_private.h: Likewise.
11991         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
11992         * sysdeps/m68k/coldfire/math_private.h: ... here.
11993         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
11994         * sysdeps/tile/math_private.h: Likewise.
11995         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
11996         Remove macro.
11997         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
11998         Likewise.
12000         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
12001         Remove macro.
12002         (libc_fetestexcept): Likewise.
12003         (libc_feupdateenv_test): Likewise.
12004         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
12005         (libc_fetestexcept): Likewise.
12006         (libc_feupdateenv_test): Likewise.
12007         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
12008         (libc_fetestexcept): Likewise.
12009         (libc_feupdateenv_test): Likewise.
12010         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
12011         (libc_fetestexcept): Likewise.
12012         (libc_feupdateenv_test): Likewise.
12014         * sysdeps/generic/math_private.h
12015         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
12016         New inline function.
12017         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
12018         Likewise.
12020         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
12021         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
12022         * sysdeps/generic/math_private.h
12023         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
12024         inline function.
12025         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
12026         Likewise.
12027         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
12028         Likewise.
12029         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
12030         Likewise.
12031         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
12032         Likewise.
12033         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
12034         Likewise.
12035         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
12036         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
12037         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
12038         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
12039         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
12040         (__fegetenv): Likewise.
12041         (fesetenv): Likewise.
12042         (__fesetenv): Likewise.
12043         (feupdateenv): Likewise.
12044         (__feupdateenv): Likewise.
12045         (fegetround): Likewise.
12046         (__fegetround): Likewise.
12047         (fesetround): Likewise.
12048         (__fesetround): Likewise.
12050         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
12051         (feraiseexcept): New macro.
12052         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
12053         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
12054         Remove macro.
12055         (__feraiseexcept): Likewise.
12056         (feclearexcept): Likewise.
12057         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
12058         (__feraiseexcept): Likewise.
12059         (feclearexcept): Likewise.
12060         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
12061         (__feraiseexcept): Likewise.
12062         (feclearexcept): Likewise.
12063         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
12064         (__feraiseexcept): Likewise.
12065         (feclearexcept): Likewise.
12066         (fetestexcept): Likewise.
12068         * sysdeps/m68k/coldfire/math-tests.h: New file.
12070         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
12071         * sysdeps/m68k/bits/fenv.h: ... here.
12072         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
12073         not define.
12074         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
12075         Likewise.
12076         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
12077         Likewise.
12078         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
12079         Likewise.
12080         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
12081         Likewise.
12082         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
12083         Define to 0.
12084         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
12085         (__FE_UNDEFINED): New enum constant.
12086         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
12087         Do not define.
12088         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
12089         Likewise.
12090         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
12091         Likewise.
12092         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
12093         to match generic bits/fenv.h.
12094         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
12095         Do not define.
12097         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
12098         packed on bits.
12099         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
12100         * soft-fp/half.h (union _FP_UNION_H): Likewise.
12101         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
12102         * soft-fp/single.h (union _FP_UNION_S): Likewise.
12104 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
12105             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
12106             Joseph Myers  <joseph@codesourcery.com>
12108         [BZ #21314]
12109         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
12110         (__log1p): Disable -Wmaybe-uninitialized for -Os around
12111         computation using c.
12112         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
12113         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
12114         computation using c.
12116 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
12118         * version.h (RELEASE): Set to "development".
12119         (VERSION): Set to "2.27.9000".
12120         * NEWS (2.28): New section.
12122         * version.h (RELEASE): Set to "stable".
12123         (VERSION): Set to "2.27".
12124         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
12126         * NEWS: Add the list of bugs fixed in 2.27.
12128 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12130         * stdlib/test-atexit-race-common.c (do_test): Check stack size
12131         against PTHREAD_STACK_MIN.
12133 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
12135         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
12136         New entries.
12137         (Rafal Luzynski, Andreas Schwab): Update.
12139 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
12141         [BZ #10871]
12142         * NEWS: List the languages which actually use the alternative
12143         months feature in this release.  Also explain that "alt_mon" and
12144         "ab_alt_mon" are optional.
12146 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
12148         [BZ #22765]
12149         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
12151 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
12153         * manual/install.texi (Tools for Compilation): Update the newest
12154         versions of gcc, binutils, texinfo, gawk, bison, and sed.
12155         * INSTALL: Regenerated.
12157 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12159         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
12160         instead of __builtin_expect.
12162 2018-01-30  Florian Weimer  <fweimer@redhat.com>
12164         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
12165         data.
12166         * nss/tst-nss-getpwent.c (do_test): Likewise.
12168 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
12170         [BZ #10871]
12171         * localedata/locales/hr_HR (mon): Rename to...
12172         (alt_mon): This.
12173         (mon): Import from CLDR (genitive case).
12174         (d_t_fmt): Update the comment.
12176 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
12178         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
12179         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
12180         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
12182 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12184         * mach/Versions: Fix version when __mach_host_self_ was added.
12185         * hurd/Versions: Fix version when _hurd_exec_paths was added.
12186         * sysdeps/mach/hurd/i386/ld.abilist: New file.
12187         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
12188         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
12189         * sysdeps/mach/hurd/i386/libc.abilist: New file.
12190         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
12191         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
12192         * sysdeps/mach/hurd/i386/libm.abilist: New file.
12193         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
12194         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
12195         * sysdeps/mach/hurd/i386/librt.abilist: New file.
12196         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
12197         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
12198         || to respect codestyle.
12199         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
12200         (do_test_bz20181): Rename accordingly.
12201         * malloc/malloc.c: Include <assert.h>.
12202         (assert): Do not define.
12203         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
12204         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
12205         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
12206         * sysdeps/mach/hurd/hp-timing.h: New file.
12207         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
12209 2018-01-29  Darius Rad  <darius@bluespec.com>
12211         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
12213 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
12215         * sysdeps/init_array/crti.S (.section .init_array): Add
12216         PREINIT_FUNCTION when defined.
12217         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
12218         * config.h.in: Regenerate.
12219         * manual/platform.texi: Add RISC-V documenation for
12220         __riscv_flush_icache.
12221         * sysdeps/riscv/__longjmp.S: New file.
12222         * sysdeps/riscv/backtrace.c: Likewise.
12223         * sysdeps/riscv/bits/endian.h: Likewise.
12224         * sysdeps/riscv/bits/setjmp.h: Likewise.
12225         * sysdeps/riscv/bits/wordsize.h: Likewise.
12226         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
12227         * sysdeps/riscv/bsd-setjmp.c: Likewise.
12228         * sysdeps/riscv/dl-trampoline.S: Likewise.
12229         * sysdeps/riscv/gccframe.h: Likewise.
12230         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
12231         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
12232         * sysdeps/riscv/machine-gmon.h: Likewise.
12233         * sysdeps/riscv/memusage.h: Likewise.
12234         * sysdeps/riscv/setjmp.S: Likewise.
12235         * sysdeps/riscv/sys/asm.h: Likewise.
12236         * sysdeps/riscv/tls-macros.h: Likewise.
12237         * sysdeps/riscv/dl-tls.h: New file.
12238         * sysdeps/riscv/libc-tls.c: Likewise.
12239         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
12240         * sysdeps/riscv/nptl/tls.h: Likewise.
12241         * sysdeps/riscv/stackinfo.h: Likewise.
12242         * sysdeps/riscv/bits/fenv.h: New file.
12243         * sysdeps/riscv/e_sqrtl.c: Likewise.
12244         * sysdeps/riscv/fpu_control.h: Likewise.
12245         * sysdeps/riscv/math-tests.h: Likewise.
12246         * sysdeps/riscv/nofpu/Implies: Likewise.
12247         * sysdeps/riscv/sfp-machine.h: Likewise.
12248         * sysdeps/riscv/tininess.h: Likewise.
12249         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
12250         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12251         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
12252         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
12253         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
12254         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
12255         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12256         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12257         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12258         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12259         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12260         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
12261         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
12262         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
12263         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
12264         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
12265         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12266         * sysdeps/riscv/rvd/s_finite.c: Likewise.
12267         * sysdeps/riscv/rvd/s_fma.c: Likewise.
12268         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12269         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12270         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12271         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12272         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12273         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12274         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
12275         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
12276         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
12277         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
12278         * sysdeps/riscv/rvf/fegetround.c: Likewise.
12279         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12280         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12281         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
12282         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
12283         * sysdeps/riscv/rvf/fesetround.c: Likewise.
12284         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12285         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12286         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
12287         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
12288         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12289         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
12290         * sysdeps/riscv/rvf/math_private.h: Likewise.
12291         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12292         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12293         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12294         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12295         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
12296         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12297         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12298         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12299         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12300         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12301         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12302         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12303         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12304         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12305         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12306         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12307         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
12308         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
12309         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
12310         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
12311         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
12312         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
12313         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
12314         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
12315         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
12316         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
12317         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
12318         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
12319         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
12320         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
12321         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
12322         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
12323         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12324         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
12325         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
12326         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
12327         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
12328         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
12329         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
12330         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
12331         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
12332         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
12333         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
12334         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
12335         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
12336         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
12337         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12338         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
12339         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
12340         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
12341         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
12342         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
12343         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
12344         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
12345         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
12346         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
12347         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
12348         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
12349         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
12350         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
12351         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12352         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12353         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12354         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12355         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12356         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12357         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12358         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12359         * sysdeps/riscv/Implies: New file.
12360         * sysdeps/riscv/Makefile: Likewise.
12361         * sysdeps/riscv/configure: Likewise.
12362         * sysdeps/riscv/configure.ac: Likewise.
12363         * sysdeps/riscv/nptl/Makefile: Likewise.
12364         * sysdeps/riscv/preconfigure: Likewise.
12365         * sysdeps/riscv/rv64/Implies-after: Likewise.
12366         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
12367         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
12368         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
12369         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
12370         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
12371         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
12372         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
12373         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
12374         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
12375         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
12376         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
12377         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
12378         (Config): Likewise.
12380 2018-01-29  Florian Weimer  <fweimer@redhat.com>
12382         [BZ #22701]
12383         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
12384         libnsl_hidden_proto.
12385         * include/rpcsvc/yp.h (yp_xdrall): Declare with
12386         libnsl_hidden_proto.
12387         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
12388         * nis/Makefile (libnsl-routines): Add nss-default only for
12389         build-obsolete-nsl.
12390         * nis/nis_defaults.c (__nis_default_ttl): Add
12391         libnsl_hidden_nolink_def.
12392         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
12393         declaration.
12394         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
12395         * nis/ypclnt.c (yp_maplist): Likewise.
12397 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
12399         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12400         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
12402 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
12404         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
12405         clean -dxfq for git updates when replacing sources.
12407         * scripts/build-many-glibcs.py (Config.build_gcc): Use
12408         --disable-libcilkrts unconditionally, not just for the final GCC
12409         build for Hurd.
12411         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12412         version to 4.15.
12414 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12416         [BZ #10871]
12417         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
12418         case).
12420 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12422         [BZ #10871]
12423         * localedata/locales/be_BY (mon): Rename to...
12424         (alt_mon): This, then synchronize with CLDR (nominative case).
12425         (abmon): Rename to...
12426         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
12427         (mon): Import from CLDR (genitive case).
12428         (abmon): Likewise.
12429         * localedata/locales/be_BY@latin (mon): Rename to...
12430         (alt_mon): This.
12431         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
12433         * localedata/locales/be_BY@latin (lang_name): Reworded to
12434         "biełaruskaja mova".
12436 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12438         [BZ #10871]
12439         * localedata/locales/el_CY (mon): Renamed to...
12440         (alt_mon): This.
12441         (mon): Import from CLDR (genitive case).
12442         * localedata/locales/el_GR: Likewise.
12444 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12446         [BZ #10871]
12447         * localedata/locales/ru_RU (mon): Rename to...
12448         (alt_mon): This.
12449         (abmon): Rename to...
12450         (ab_alt_mon): This.
12451         (mon): Import from CLDR (genitive case).
12452         (abmon): Copy from the old content except the 5th month which is
12453         now in the genitive case, even when abbreviated.
12454         * localedata/locales/ru_UA: Likewise.
12455         * time/tst-strptime.c (day_tests): Add an actual example of
12456         a difference between %b and %Ob in Russian.
12458 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12460         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
12461         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
12462         a `c' variable.
12463         * resolv/res-close.c: Include <stdlib.h>.
12464         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
12465         <sys/wait.h>, <time.h>, <sys/uio.h>.
12466         (NOT_CANCEL_H): Add inclusion guard.
12467         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
12468         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
12469         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
12470         return 0.
12471         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
12472         vm_address_t * to ElfW(Addr) * for dl_main parameter.
12473         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
12474         instead of void *.
12475         * sysdeps/pthread/timer_create.c (timer_create): Do not use
12476         timer_ptr2id to cast struct timer_node * to void *.
12477         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
12478         --disable-libcilkrts to gcc configure.
12479         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
12480         and make them the default for now.
12481         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
12482         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
12483         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
12484         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
12485         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
12486         MACH_IPC_COMPAT.
12487         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
12488         __task_terminate would ever return successfully.
12489         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
12490         to global scope.
12491         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
12492         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
12493         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
12494         critical section to make code simpler and avoid warning.
12495         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
12496         critical section to make code simpler and avoid warning.
12497         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
12498         const char * instead of char *.
12499         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
12500         __hurd_file_name_split, hurd_file_name_split,
12501         __hurd_directory_name_split, hurd_directory_name_split,
12502         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
12503         hurd_file_name_path_lookup): Make lookup function parameter take a
12504         const char *name instead of char *name.
12505         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
12506         __hurd_directory_name_split): Likewise.
12507         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
12508         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
12509         * sysdeps/mach/hurd/check_native.c: New file.
12510         * sysdeps/mach/hurd/check_pf.c: New file.
12511         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
12512         (__freeifaddrs): Define macro to freeifaddrs.
12513         * sysdeps/mach/hurd/libhurduser.abilist: New file.
12514         * sysdeps/mach/libmachuser.abilist: New file.
12515         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
12516         (do_test_bz20181): Rename accordingly.
12517         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
12518         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
12519         <sys/mount.h>.
12520         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
12521         version only if __USE_EXTERN_INLINES is defined.
12522         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
12523         __hurd_sockfail): Likewise.
12524         (_hurd_fd_get): Always declare functions, and provide inline versions
12525         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
12526         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
12527         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
12528         _hurd_port_set): Always declare functions, and provide inline versions
12529         only if __USE_EXTERN_INLINES and _LIBC are defined and
12530         IS_IN(libc).
12531         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
12532         _hurd_critical_section_unlock): Likewise.
12533         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
12534         * __hurd_threadvar_location): Likewise.
12535         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
12536         _hurd_userlink_clear): Likewise.
12537         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
12538         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
12539         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
12540         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
12541         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
12542         __spin_lock_locked): Likewise.
12543         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
12544         __spin_lock_locked): Likewise.
12545         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
12546         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
12547         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
12548         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
12549         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
12550         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
12551         _POSIX_NO_TRUNC): Define to 0.
12552         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
12553         check size against PTHREAD_STACK_MIN.
12554         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
12555         IS_IN(libpthread)]: Include <sigsetops.h>.
12556         * mach/Makefile (user-interfaces): Add mach/gnumach.
12557         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
12558         * sysdeps/mach/configure (mach_interface_list): Regenerate.
12559         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
12560         instead of invalid -1.
12561         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
12562         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
12563         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
12564         <net/ppp_defs.h>.
12566 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
12568         * hurd/fcntl-internal.h: New file.
12570 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
12572         * sysdeps/hppa/fpu/libm-test-ulps: Update.
12574         * sysdeps/alpha/fpu/libm-test-ulps: Update.
12576 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
12578         [BZ #22701]
12579         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
12580         Build only shared objects.
12582 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
12584         * README: Update for hppa.
12586 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
12588         * sysdeps/sparc/fpu/libm-test-ulps: Update
12589         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
12591 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
12593         Revert:
12595         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
12597         [BZ #22563]
12598         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12599         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
12600         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12601         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
12602         to feature_1.
12604         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
12606         [BZ #22563]
12607         * bits/types/__cancel_jmp_buf_tag.h: New file.
12608         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
12609         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
12610         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
12611         * nptl/Makefile (headers): Add
12612         bits/types/__cancel_jmp_buf_tag.h.
12613         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
12614         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
12615         * sysdeps/nptl/pthread.h: Include
12616         <bits/types/__cancel_jmp_buf_tag.h>.
12617         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
12618         __cancel_jmp_buf.
12619         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
12621 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
12623         [BZ #10871]
12624         * localedata/locales/uk_UA (mon): Renamed to...
12625         (alt_mon): This.
12626         (alt_digits): "0" removed and then renamed to...
12627         (mon): This.
12628         (date_fmt): Definition changed not to use the alternative
12629         digits hack.
12631 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
12633         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
12634         FLAG_RISCV_FLOAT_ABI_DOUBLE.
12635         * elf/elf.h (EF_RISCV_RVC): New define.
12636         (EF_RISCV_FLOAT_ABI): Likewise.
12637         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
12638         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
12639         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
12640         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
12641         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
12642         define.
12643         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
12645 2018-01-25  Andreas Schwab  <schwab@suse.de>
12647         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
12648         single quotes.
12649         * sysdeps/gnu/configure: Regenerate.
12650         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
12651         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
12653         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
12654         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
12655         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
12656         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
12657         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
12659 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12661         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
12662         URL, and run autoconf, make it the default for now.
12664 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
12666         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12667         soft-float ColdFire configuration.
12669         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
12670         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
12671         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
12673         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
12674         MicroBlaze file.
12676         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
12677         ....
12678         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
12679         ... here.
12680         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
12681         New file.
12683         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
12684         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
12685         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
12686         file.
12688 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12690         [BZ #22742]
12691         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
12692         Rename to __reserved and add comment.
12693         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
12694         Rename to __reserved.
12696 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
12698         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12699         i686-gnu configurations.
12700         (Context.run_builds): Include mig, gnumach and hurd in components
12701         considered.
12702         (Context.checkout): Add mig, gnumach and hurd to components.
12703         (Context.checkout_tar): Add URL mappings for mig, gnumach and
12704         hurd.
12705         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
12706         (Config.build): Install gnumach headers, build mig and install
12707         hurd headers for 'gnu' OS.
12708         (Config.install_gnumach_headers): New function.
12709         (Config.install_hurd_headers): Likewise.
12710         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
12711         when building for 'gnu' OS.
12713 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
12715         * manual/tunables.texi (Hardware Capability Tunables): Fix
12716         spelling.
12718 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
12720         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
12721         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
12722         (ALTMON_11, ALTMON_12): Improve documentation.
12723         * manual/time.texi (strftime): Likewise.
12725 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
12727         [BZ #10871]
12728         * localedata/locales/pl_PL: Alternative month names added,
12729         primary month names are genitive now.
12730         * time/tst-strptime.c (day_tests): Actually use a genitive case
12731         of a month name in Polish language.
12733 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
12735         [BZ #10871]
12736         * manual/locale.texi: Document ALTMON_1..12 constants for
12737         nl_langinfo.  Specify when to use ALTMON instead of MON.
12738         * manual/time.texi (strftime, strptime): Document GNU extension
12739         permitting O modifier with %B and %b.  Specify when to use
12740         %OB instead of %B.
12742 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
12744         [BZ #10871]
12745         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
12746         names, define them as the same as abbreviated month names explicitly.
12747         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
12748         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
12749         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
12750         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
12751         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
12752         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
12753         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
12754         _NL_WABALTMON_12): New enum constants.
12755         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
12756         wab_alt_mon, and ab_alt_mon_defined members.
12757         (time_output): Output ab_alt_mon and wab_alt_mon members.
12758         (time_read): Read them, initialize them as copies of abmon and wabmon
12759         respectively if they are missing, initialize ab_alt_mon_defined.
12760         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
12761         * locale/programs/locfile-kw.h: Regenerate.
12762         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
12763         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
12764         and ru_RU.UTF-8.
12765         * time/strftime_l.c (a_altmonth, aam_len): New macros.
12766         [!COMPILE_WIDE] (ABALTMON_1): New macro.
12767         (__strftime_internal): Handle %Ob and %Oh formats.
12768         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
12769         (__strptime_internal): Handle %Ob and %Oh formats.
12770         * time/tst-strptime.c (day_tests): Add more tests to parse different
12771         forms of month names including the new %Ob format specifier.
12773 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
12775         [BZ #10871]
12776         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
12777         define them as the same as primary full month names explicitly.
12778         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
12779         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
12780         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
12781         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
12782         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
12783         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
12784         _NL_WALTMON_12): New enum constants.
12785         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
12786         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
12787         macros.
12788         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
12789         walt_mon, and alt_mon_defined members.
12790         (time_output): Output alt_mon and walt_mon members.
12791         (time_read): Read them, initialize them as copies of mon and wmon
12792         respectively if they are missing, initialize alt_mon_defined.
12793         * locale/programs/locfile-kw.gperf (alt_mon): Define.
12794         * locale/programs/locfile-kw.h: Regenerate.
12795         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
12796         * localedata/tst-langinfo.c (map): Add tests for the new constants
12797         ALTMON_1 .. ALTMON_12.
12798         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
12799         and pl_PL.UTF-8.
12800         * time/strftime_l.c (f_altmonth): New macro.
12801         (__strftime_internal): Handle %OB format.
12802         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
12803         (__strptime_internal): Handle %OB format.
12804         * time/tst-strptime.c (day_tests): Add tests to parse different forms
12805         of month names including the new %OB format specifier.
12807 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12809         [BZ #22685]
12810         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
12811         from ABORT_TRANSACTION.
12812         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
12813         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
12814         ABORT_TRANSACTION_IMPL): Likewise.
12815         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
12816         Linux code, but remove the code that aborts transactions.
12818 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12820         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
12822 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
12824         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
12825         in date: "2004-14-09" should be "2004-09-14".
12826         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
12827         "2003-15-09" should be "2003-09-15".
12829 2018-01-18  Arjun Shankar  <arjun@redhat.com>
12831         [BZ #22343]
12832         [BZ #22774]
12833         CVE-2018-6485
12834         CVE-2018-6551
12835         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
12836         after padding.
12837         (_int_memalign): check for integer overflow before calling
12838         _int_malloc.
12839         * malloc/tst-malloc-too-large.c: New test.
12840         * malloc/Makefile: Add tst-malloc-too-large.
12842 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
12844         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
12845         in date: "2017-24-07" should be "2017-07-24".
12846         * localedata/locales/mai_IN: Likewise.
12847         * localedata/locales/mai_NP: Likewise.
12849 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
12851         * po/ru.po: Update translations.
12853 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
12855         [BZ #22719]
12856         * sysdeps/hppa/backtrace.c: New file.
12858 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12860         [BZ #22715]
12861         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
12862         align La_x86_64_retval to VEC_SIZE.
12864 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
12866         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
12867         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
12869 2018-01-16  Florian Weimer  <fweimer@redhat.com>
12871         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
12872         Move tst-thread-exit-clobber ...
12873         [$(CXX)] (tests-unsupported): ... to here.
12875 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12877         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
12878         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
12879         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
12880         (_dl_aarch64_cap_flags): Update.
12881         (_DL_HWCAP_COUNT): Update.
12883 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12885         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
12886         (_DL_HWCAP_LAST): Remove.
12887         (_DL_HWCAP_COUNT): Move to ...
12888         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
12889         (_DL_HWCAP_COUNT): ... here.
12891 2018-01-16  Florian Weimer  <fweimer@redhat.com>
12893         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
12894         mode with GNU extensions.
12896 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
12898         * elf/elf.h (NT_ARM_SVE): Define.
12900 2018-01-15  Florian Weimer  <fweimer@redhat.com>
12902         [BZ #22636]
12903         * nptl/tst-minstack-throw.cc: New file.
12904         * nptl/Makefile (tests): Add tst-minstack-throw.
12905         (LDLIBS-tst-minstack-throw): Link with libstdc++.
12906         [!CXX] (tests-unsupported): Add tst-minstack-throw.
12908 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
12910         * scripts/build-many-glibcs.py (Context.checkout): Default
12911         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
12912         version to 1.1.0.
12914 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
12916         [BZ #22707]
12917         * elf/elf.h (DF_1_STUB): Define.
12918         (DF_1_PIE): Define.
12920 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12922         [BZ #22697]
12923         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
12924         Do not add 0.5 to integer or out-of-range arguments.
12926 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
12928         * po/bg.po: Update translations.
12929         * po/cs.po: Likewise.
12930         * po/de.po: Likewise.
12931         * po/ko.po: Likewise.
12932         * po/pl.po: Likewise.
12933         * po/sv.po: Likewise.
12934         * po/uk.po: Likewise.
12935         * po/vi.po: Likewise.
12937 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12939         * aarch64/start.S (_start): Use __wrap_main.
12940         (__wrap_main): New local symbol.
12942 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
12944         [BZ #22679]
12945         CVE-2018-1000001
12946         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
12947         generic_getcwd if the path returned by getcwd syscall is not absolute.
12948         * io/tst-getcwd-abspath.c: New test.
12949         * io/Makefile (tests): Add tst-getcwd-abspath.
12951 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
12953         * malloc/malloc.c (malloc_consolidate): Add size check.
12955 2018-01-12  Florian Weimer  <fweimer@redhat.com>
12957         * support/write_message.c (write_message): Preserve errno.
12958         * support/check.c (print_failure): Likewise.
12959         * support/support_test_verify_impl.c (support_test_verify_impl):
12960         Likewise.
12961         * support/support_test_compare_failure.c
12962         (support_test_compare_failure): Likewise.
12964 2018-01-12  Florian Weimer  <fweimer@redhat.com>
12966         [BZ #22701]
12967         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
12968         Prevent installation of libnsl.so.
12969         (libnsl-inhibit-o): Do not build (or install) static libraries.
12971 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
12973         [BZ #22657]
12974         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
12975         before the day number which may produce a double space.
12976         (date_fmt): Likewise.
12978 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
12980         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
12981         instead of fegetenv.
12983 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
12985         [BZ #22702]
12986         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
12987         comment to say exceptions are discarded.
12988         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
12989         __fegetenv.
12990         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
12991         be enabled.
12993 2018-01-11  Florian Weimer  <fweimer@redhat.com>
12995         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
12996         and error message.
12998 2018-01-11  Florian Weimer  <fweimer@redhat.com>
13000         [BZ #22636]
13001         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
13002         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
13004 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
13006         [BZ #22693]
13007         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
13008         negative arguments in test for NaN or infinity argument.
13010 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
13012         * po/libc.pot: Regenerate.
13014 2018-01-10  Florian Weimer  <fweimer@redhat.com>
13016         [BZ #22636]
13017         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
13018         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
13020 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13022         * hurd/hurd/fd.h: Include <fcntl.h>
13023         (__hurd_at_flags): New function.
13024         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
13025         with call to __hurd_at_flags.
13026         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
13027         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
13028         __faccessat
13029         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
13030         (__access_noerrno): Use __faccessat_common instead of access_common.
13031         (__access): Likewise.
13032         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
13033         with a call to __faccessat.
13034         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
13035         (__faccessat_common): ... this. Move implementation of __access into it when
13036         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
13037         reauthenticate_cwdir_at helper to implement AT mechanism.
13038         (__faccessat_noerrno): New function, just calls __faccessat_common.
13039         (__faccessat): New function, just calls __faccessat_common.
13040         (faccessat): Define weak alias.
13042 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
13044         [BZ #22691]
13045         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13046         (CFLAGS-s_fmaxmagl.c): New variable.
13047         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
13049         [BZ #22690]
13050         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
13051         long int for arguments of possibly overflowing addition or
13052         subtraction.
13053         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
13055 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
13057         [BZ #22688]
13058         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13059         (CFLAGS-e_remainderl.c): New variable.
13061         [BZ #22687]
13062         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
13063         variable.
13064         (CFLAGS-s_cacoshl.c): Likewise.
13065         (CFLAGS-s_casinhl.c): Likewise.
13066         (CFLAGS-s_catanl.c): Likewise.
13067         (CFLAGS-s_catanhl.c): Likewise.
13068         (CFLAGS-s_cexpl.c): Likewise.
13069         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
13070         (CFLAGS-s_csinhl.c): Likewise.
13071         (CFLAGS-s_clogl.c): Likewise.
13072         (CFLAGS-s_clog10l.c): Likewise.
13073         (CFLAGS-s_csinl.c): Likewise.
13074         (CFLAGS-s_csqrtl.c): Likewise.
13076 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
13077 2017-01-09  Svante Signell  <svante.signell@gmail.com>
13079         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
13080         (_hurd_exec_paths): New function.
13081         * hurd/hurd.h (_hurd_exec): Deprecate function.
13082         (_hurd_exec_paths): Declare function.
13083         * hurd/Versions: Export _hurd_exec_paths.
13084         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
13085         (__execve): Use __getcwd to build absolute path, and use
13086         _hurd_exec_paths instead of _hurd_exec.
13087         * sysdeps/mach/hurd/spawni.c: Likewise.
13088         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
13089         _hurd_exec.
13091 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
13093         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
13094         test instead of failing in case of ENOENT returned by posix_openpt.
13096 2018-01-08  Florian Weimer  <fweimer@redhat.com>
13098         resolv: Support binary labels in test framework.
13099         * support/resolv_test.c (struct to_be_freed): Remove.
13100         (struct compressed_name): New.
13101         (allocate_compressed_name, ascii_tolower)
13102         (compare_compressed_name): New functions.
13103         (struct resolv_response_builder): Update type of
13104         compression_offsets for use with tsearch.  Rempve to_be_freed.
13105         (response_push_pointer_to_free): Remove function.
13106         (resolv_response_add_name): Rewrite using struct compressed_name
13107         and tsearch instead of hsearch_r.
13108         (response_builder_allocate): Remove initialization of
13109         compression_offsets.
13110         (response_builder_free): Update for removal of to_be_freed.  Use
13111         tdestroy instead of hdestroy_r.
13112         * resolv/Makefile (tests): Add tst-resolv-binary.
13113         (tst-resolv-binary): Link with -lresolv -lpthread.
13115 2018-01-08  Florian Weimer  <fweimer@redhat.com>
13117         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
13118         time.  Pass positive flag instead of negative flag to
13119         support_test_compare_failure.
13120         (support_test_compare_failure): Change negative parameter to
13121         positive.
13122         * support/support_test_compare_failure.c (report)
13123         (support_test_compare_failure): Likewise.
13124         * support/tst-test_compare.c (return_ssize_t, return_int): New.
13125         (do_test): Check int/size_t, ssize_t/size_t comparisons.
13127 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13129         [BZ #22637]
13130         * nptl/descr.h (stackblock, stackblock_size): Update comments.
13131         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
13132         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
13133         stacksize.
13134         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
13136 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
13138         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13139         Add s_sincosf-sse2 and s_sincosf-fma.
13140         (CFLAGS-s_sincosf-fma.c): New.
13141         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
13142         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
13143         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
13144         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
13145         __sincosf is defined.
13147 2018-01-08  Florian Weimer  <fweimer@redhat.com>
13149         * nptl/tst-thread-exit-clobber.cc: New file.
13150         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
13151         C++11 mode.
13152         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
13153         (tests): Add tst-thread-exit-clobber.
13154         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
13156 2018-01-08  Florian Weimer  <fweimer@redhat.com>
13158         * support/check.h (support_static_assert): Define.
13159         (TEST_COMPARE): Use it.
13161 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
13163         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
13164         [!__RLIM_T_MATCHES_RLIM64_T]
13165         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
13166         __getrlimit64. Add libc_hidden_weak.
13168 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
13170         * elf/elf.h (R_RISCV_NONE): New define.
13171         (R_RISCV_32): Likewise.
13172         (R_RISCV_64): Likewise.
13173         (R_RISCV_RELATIVE): Likewise.
13174         (R_RISCV_COPY): Likewise.
13175         (R_RISCV_JUMP_SLOT): Likewise.
13176         (R_RISCV_TLS_DTPMOD32): Likewise.
13177         (R_RISCV_TLS_DTPMOD64): Likewise.
13178         (R_RISCV_TLS_DTPREL32): Likewise.
13179         (R_RISCV_TLS_DTPREL64): Likewise.
13180         (R_RISCV_TLS_TPREL32): Likewise.
13181         (R_RISCV_TLS_TPREL64): Likewise.
13182         * Makerules (make-link-multidir): Make directories before linking into
13183         them.
13184         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
13185         define.
13186         (VDSO_HASH_LINUX_4_15): Likewise.
13187         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
13188         in subdirectories of lib.
13189         * nptl/Makefile (/librt.so): Always depend on
13190         "$(shared-thread-library)".
13192 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13194         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
13195         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
13196         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
13197         (___tls_get_addr).
13198         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
13199         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
13200         "-O2 -march=i686".
13201         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
13202         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
13203         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
13204         * sysdeps/gnu/glob-lstat-compat.c: New file.
13205         * sysdeps/gnu/glob64-lstat-compat.c: New file.
13206         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
13208 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13210         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
13211         Reserve 16 chars to reloc_addr before calling _itoa_word.
13213 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
13215         [BZ #22678]
13216         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
13217         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
13219         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
13220         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
13222         * resource/tst-getrlimit.c: Add copyright header.
13224 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
13225             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13227         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
13228         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
13229         Define __GI_getrlimit64 as weak alias of __getrlimit64.
13230         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
13231         instead.
13232         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
13233         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
13234         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
13235         RLIM64_INFINITY): Fix values to match the kernel ones.
13236         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
13237         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
13238         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
13239         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
13240         getrlimit64@@GLIBC_2_27.
13241         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
13242         and setrlimit64.
13243         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
13244         getrlimit, setrlimit, getrlimit64 and setrlimit64.
13245         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
13246         setrlimit, getrlimit64 and setrlimit64.
13248 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
13250         [BZ #22648]
13251         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
13252         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
13254 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
13256         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
13257         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
13258         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
13260 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13262         [BZ #15479]
13263         [BZ #22666]
13264         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
13265         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
13267         [BZ #15479]
13268         [BZ #22665]
13269         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
13270         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
13271         * sysdeps/alpha/fpu/s_floor.c: Likewise.
13272         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
13274 2018-01-04  Florian Weimer  <fweimer@redhat.com>
13276         [BZ #22667]
13277         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13278         Align the stack before calling exit.
13279         * stdlib/tst-makecontext-align.c: New file.
13280         * stdlib/Makefile (tests): Add tst-makecontext-align.
13282 2018-01-04  Florian Weimer  <fweimer@redhat.com>
13284         Add support for calling dlvsym from libc.so.
13285         * include/dlfcn.h (__libc_dlvsym): Declare.
13286         * elf/Makefile (tests-static-internal): Add
13287         tst-libc_dlvsym-static.
13288         (tests-internal): Add tst-libc_dlvsym.
13289         (modules-names): Add tst-libc_dlvsym-dso.
13290         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
13291         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
13292         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
13293         object tst-libc_dlvsym-dso.so needs to be built before running
13294         these tests.
13295         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
13296         * elf/Versions: Export __libc_dlvsym.
13297         * elf/dl-libc.c (struct do_dlvsym_args): New.
13298         (do_dlvsym, __libc_dlvsym): New functions.
13299         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
13300         (_dl_open_hook2): New variable.
13301         (__libc_register_dl_open_hook): Set it.
13302         * elf/tst-libc_dlvsym-dso.c: New file.
13303         * elf/tst-libc_dlvsym-static.c: Likewise.
13304         * elf/tst-libc_dlvsym.c: Likewise.
13305         * elf/tst-libc_dlvsym.h: Likewise.
13307 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13309         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
13310         include <sys/mount.h>.
13312 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
13314         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
13315         Add __NO_MATH_ERRNO__ check.
13317 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
13319         * sysdeps/mips/mips32/libm-test-ulps: Update.
13320         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13322 2018-01-02  Florian Weimer  <fweimer@redhat.com>
13324         * misc/tst-pselect.c: Add copyright header.
13326 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
13328         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
13329         comment.
13330         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
13331         comment.
13332         (settrlimit): Rename into setrlimit.
13333         (__sttrlimit): Rename into __setrlimit.
13335         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
13336         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
13337         never defined in that case.
13339 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
13341         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
13343         * sysdeps/arm/libm-test-ulps: Update.
13345         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
13346         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
13348 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13350         * NEWS: Add cosf and sincosf to list of optimized functions.
13352 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
13354         [BZ #22660]
13355         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
13356         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
13357         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
13358         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
13360 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
13362         [BZ #22433]
13363         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
13365         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
13366         making a copy of it.
13368 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
13370         * manual/texinfo.tex: Update to version 2017-12-26.21 with
13371         trailing whitespace removed.
13372         * scripts/config.guess: Update to version 2018-01-01.
13373         * scripts/config.sub: Update to version 2018-01-01.
13374         * scripts/move-if-change: Update from gnulib.
13376         * NEWS: Update copyright dates.
13377         * catgets/gencat.c (print_version): Likewise.
13378         * csu/version.c (banner): Likewise.
13379         * debug/catchsegv.sh: Likewise.
13380         * debug/pcprofiledump.c (print_version): Likewise.
13381         * debug/xtrace.sh (do_version): Likewise.
13382         * elf/ldconfig.c (print_version): Likewise.
13383         * elf/ldd.bash.in: Likewise.
13384         * elf/pldd.c (print_version): Likewise.
13385         * elf/sotruss.sh: Likewise.
13386         * elf/sprof.c (print_version): Likewise.
13387         * iconv/iconv_prog.c (print_version): Likewise.
13388         * iconv/iconvconfig.c (print_version): Likewise.
13389         * locale/programs/locale.c (print_version): Likewise.
13390         * locale/programs/localedef.c (print_version): Likewise.
13391         * login/programs/pt_chown.c (print_version): Likewise.
13392         * malloc/memusage.sh (do_version): Likewise.
13393         * malloc/memusagestat.c (print_version): Likewise.
13394         * malloc/mtrace.pl: Likewise.
13395         * manual/libc.texinfo: Likewise.
13396         * nptl/version.c (banner): Likewise.
13397         * nscd/nscd.c (print_version): Likewise.
13398         * nss/getent.c (print_version): Likewise.
13399         * nss/makedb.c (print_version): Likewise.
13400         * posix/getconf.c (main): Likewise.
13401         * scripts/test-installation.pl: Likewise.
13402         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
13404         * All files with FSF copyright notices: Update copyright dates
13405         using scripts/update-copyrights.
13406         * locale/programs/charmap-kw.h: Regenerated.
13407         * locale/programs/locfile-kw.h: Likewise.
13409 2017-12-31  Zack Weinberg  <zackw@panix.com>
13411         * libio/bits/libio-ldbl.h: Correct check for improper
13412         inclusion.  Add own multiple include guard.
13414 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
13415             Dmitry V. Levin  <ldv@altlinux.org>
13417         [BZ #22625]
13418         CVE-2017-16997
13419         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
13420         string token expansion. Check for NULL pointer or empty string possibly
13421         returned by expand_dynamic_string_token.
13422         (decompose_rpath): Check for empty path after dynamic string
13423         token expansion.
13425 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
13427         [BZ #22433]
13428         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
13430         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
13431         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
13432         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
13433         and PTRACE_SYSCALL.
13434         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
13435         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13436         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13437         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13438         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13439         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
13441         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
13442         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
13443         __ptrace_peeksiginfo_flags, ptrace): Move to ...
13444         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
13445         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13446         bits/ptrace-shared.h.
13447         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
13448         <bits/ptrace-shared.h>.
13449         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
13450         __ptrace_peeksiginfo_flags, ptrace): Remove.
13451         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13452         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13453         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13454         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13455         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
13457 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
13459         [BZ #17804]
13460         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
13461         end of the loop. Improve comments.
13463 2017-12-29  Zack Weinberg  <zackw@panix.com>
13465         [BZ #22615]
13466         * manual/errno.texi (Checking for Errors): Explicitly say that errno
13467         might be set on success.
13469 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
13471         [BZ #22611]
13472         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
13473         is unchanged on success.
13475 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
13477         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
13478         updated.
13479         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
13480         expand_dynamic_string_token): Likewise.
13481         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
13482         is_path argument.
13484         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
13485         contains ':'.
13487         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
13488         is set and name contains ':', and all code depending on these checks.
13490 2017-12-24  Zack Weinberg  <zackw@panix.com>
13492         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
13493         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
13494         respectively.
13495         * libio/libio.h: Rename the original version of this file to
13496         libio/bits/libio.h.  Error out if not included by stdio.h or the
13497         stub libio.h.
13498         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
13499         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
13500         if not included by bits/libio.h or the stub _G_config.h.
13501         * sysdeps/unix/sysv/linux/_G_config.h: Move to
13502         sysdeps/unix/sysv/linux/bits.  Error out if not included by
13503         bits/libio.h or the stub _G_config.h.
13504         * libio/stdio.h: Include bits/libio.h, not libio.h.
13505         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
13506         well as libio.h and _G_config.h.
13508         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
13509         * libio/strfile.h, stdio-common/vfscanf.c
13510         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
13511         Include stdio.h, not _G_config.h nor libio.h.
13512         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
13513         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
13515         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
13517 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
13519         [BZ #22347]
13520         * stdlib/getrandom.c (getrandom): Fix comment.
13521         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
13523 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
13525         [BZ #21161]
13526         * manual/arith.texi (strtoul): Fix a typo.
13528         [BZ #22596]
13529         * manual/arith.texi (finite): Fix the description of the return
13530         value.
13532 2017-12-22  Eric Blake  <ebb9@byu.net>
13534         Avoid gcc warnings on cygwin
13535         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
13536         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
13537         Avoid unused variable.
13539 2017-12-22  Florian Weimer  <fweimer@redhat.com>
13541         * io/Makefile (routines): Add copy_file_range.
13542         (tests): Add tst-copy_file_range.
13543         (tests-static, tests-internal): Add tst-copy_file_range-compat.
13544         * io/Versions (GLIBC_2.27): Export copy_file_range.
13545         * io/copy_file_range-compat.c: New file.
13546         * io/copy_file_range.c: Likewise.
13547         * io/tst-copy_file_range-compat.c: Likewise.
13548         * io/tst-copy_file_range.c: Likewise.
13549         * manual/llio.texi (Copying File Data): New section.
13550         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
13551         * support/Makefile (libsupport-routines): Add support-xfstat,
13552         xftruncate, xlseek.
13553         * support/support-xfstat.c: New file.
13554         * support/xftruncate.c: Likewise.
13555         * support/xlseek.c: Likewise.
13556         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
13557         * sysdeps/unix/sysv/linux/**.abilist: Update.
13558         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
13560 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13562         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13563         disable-multi-arch variant to aarch64-linux-gnu.
13565 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
13567         * manual/texinfo.tex: Update to version 2017-12-18.20 with
13568         trailing whitespace removed.
13569         * scripts/config.guess: Update to version 2017-12-17.
13570         * scripts/config.sub: Update to version 2017-11-23.
13571         * scripts/install-sh: Update to version 2017-09-23.17.
13572         * scripts/move-if-change: Update to version 2017-09-13 06:45.
13574 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13576         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
13577         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
13578         * sysdeps/tile/_mcount.S (__mcount): Likewise.
13579         * sysdeps/tile/crti.S (_init, _fini): Likewise.
13580         * sysdeps/tile/crtn.S: Likewise.
13581         * sysdeps/tile/dl-start.S (_start): Likewise.
13582         * sysdeps/tile/dl-trampoline.S: Likewise.
13583         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
13584         * sysdeps/tile/start.S (_start): Likewise.
13585         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
13586         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
13587         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
13588         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
13589         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
13590         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
13591         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
13593         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
13594         comment.
13595         * sysdeps/tile/preconfigure: Remove tilegx folder.
13596         * sysdeps/tile/tilegx/Implies: Move definitions to ...
13597         * sysdeps/tile/Implies: ... here.
13598         * sysdeps/tile/tilegx/Makefile: Move rules to ...
13599         * sysdeps/tile/Makefile: ... here.
13600         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
13601         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
13602         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
13603         * sysdeps/tile/bits/wordsize.h: ... here.
13604         * sysdeps/tile/tilegx/*: Move to ...
13605         * sysdeps/tile/*: ... here.
13606         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
13607         * sysdeps/tile/tilegx32/Implies: ... here.
13608         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
13609         * sysdeps/tile/tilegx64/Implies: ... here.
13610         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
13611         to ...
13612         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
13613         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
13614         * sysdeps/unix/sysv/linux/tile/*: ... here.
13615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
13616         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
13617         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
13618         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
13620         * README: Remove tilepro-*-linux-gnu from supported architecture.
13621         * scripts/build-many-glibcs.py: Likewise.
13622         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
13623         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
13624         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
13625         elf_machine_matches_host, elf_machine_dynamic,
13626         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
13627         howto, elf_machine_rela): Likewise.
13628         * sysdeps/tile/dl-start.S (_start): Likewise.
13629         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
13630         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
13631         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
13632         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
13633         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
13634         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
13635         Likewise.
13636         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
13637         * sysdeps/tile/preconfigure: Likewise.
13638         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
13639         POINTER_CHK_GUARD): Likewise.
13640         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
13641         * sysdeps/tile/start.S (_start): Likewise.
13642         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
13643         Likewise.
13644         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
13645         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
13646         CMOVNEZ): Remove.
13647         * sysdeps/unix/sysv/linux/tile/bits/environments.h
13648         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
13649         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
13650         Likewise.
13651         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
13652         * sysdeps/tile/tilepro/Implies: Remove file.
13653         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
13654         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
13655         * sysdeps/tile/tilepro/memchr.c: Likewise.
13656         * sysdeps/tile/tilepro/memcpy.S: Likewise.
13657         * sysdeps/tile/tilepro/memset.c: Likewise.
13658         * sysdeps/tile/tilepro/memusage.h: Likewise.
13659         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
13660         * sysdeps/tile/tilepro/strchr.c: Likewise.
13661         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
13662         * sysdeps/tile/tilepro/strlen.c: Likewise.
13663         * sysdeps/tile/tilepro/strrchr.c: Likewise.
13664         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
13665         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
13666         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
13667         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
13668         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
13669         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
13670         Likewise.
13671         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
13672         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13673         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
13674         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
13675         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13676         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
13677         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
13678         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
13679         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
13680         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
13681         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
13682         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
13683         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
13684         tilepro mention in comment.
13686         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
13687         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
13688         * nptl/pthread_join_common.c: New file: common function used on
13689         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
13690         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
13691         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
13692         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
13693         (cleanup): Move definition to pthread_join_common.c.
13694         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
13695         Remove superflous checks.
13696         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
13697         Likewise.
13699 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13701         * sysdeps/aarch64/libm-test-ulps: Update.
13703 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13705         * sysdeps/aarch64/memset.S (MEMSET): Define.
13707 2017-12-20  Florian Weimer  <fweimer@redhat.com>
13709         [BZ #22635]
13710         nptl: Provide full implementation of pthread_self in libc.so.
13711         * nptl/Makefile (routines): Add pthread_self.
13712         (libpthread-routines): Replace pthread_self with
13713         compat-pthread_self.
13714         * nptl/forward.c (pthread_self): Remove.
13715         * nptl/nptl-init.c (pthread_functions): Do not initialize
13716         ptr_pthread_self.
13717         * nptl/pthread_self.c (pthread_self): Remove weak alias.
13718         * nptl/compat-pthread_self.c: New file.
13719         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
13720         Remove ptr_pthread_self.
13722 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
13724         * posix/regcomp.c: Fix spelling in comments.
13725         * posix/regex.h: Likewise.
13726         * posix/regex_internal.c: Likewise.
13727         * posix/regexec.c: Likewise.
13729 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13731         [BZ #22377]
13732         * math/Makefile [C++] (tests): Add test for iseqsig.
13733         * math/math.h [C++] (iseqsig): New implementation, which does
13734         not rely on __MATH_TG/__builtin_types_compatible_p.
13735         * math/test-math-iseqsig.cc: New file.
13736         * sysdeps/powerpc/powerpc64le/Makefile
13737         (CFLAGS-test-math-iseqsig.cc): New variable.
13739 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
13741         * elf/dl-load.c (is_trusted_path): Remove.
13742         (fillin_rpath): Remove check_trusted argument and its use,
13743         all callers changed.
13745 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
13747         [BZ #22630]
13748         * Makeconfig (link-pie-before-libc): Replace -pie with
13749         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
13750         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
13751         (tst-dlopen-aout-no-pie): New.
13752         (LDFLAGS-tst-prelink): Removed.
13753         (tst-prelink-no-pie): New.
13754         (LDFLAGS-tst-main1): Removed.
13755         (tst-main1-no-pie): New.
13756         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
13757         (tst-gmon-no-pie): New.
13759 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
13761         * manual/install.texi: Document that --enable-static-pie
13762         implies PIE.
13763         * INSTALL: Regenerated.
13765 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13767         [BZ #21309]
13768         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
13769         unsigned.
13771 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
13773         Revert:
13775         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
13777         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13779         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
13781         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
13782         <errno.h>.  Include "eexp.tbl".
13783         (half): New constant.
13784         (one): Likewise.
13785         (__ieee754_exp): Rewrite.
13786         (__slowexp): Remove prototype.
13787         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
13788         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
13789         * sysdeps/i386/fpu/slowexp.c: Likewise.
13790         * sysdeps/ia64/fpu/slowexp.c: Likewise.
13791         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
13792         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
13793         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
13794         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13795         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
13796         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
13797         comment.
13798         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
13799         (CPPFLAGS-slowexp.c): Remove variable.
13800         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13801         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
13802         (CFLAGS-slowexp-fma.c): Remove variable.
13803         (CFLAGS-slowexp-fma4.c): Likewise.
13804         (CFLAGS-slowexp-avx.c): Likewise.
13805         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
13806         define as macro.
13807         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
13808         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
13809         * math/Makefile (type-double-routines): Remove slowexp.
13810         * manual/probes.texi (slowexp_p6): Remove.
13811         (slowexp_p32): Likewise.
13813 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13815         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
13816         arithmetic.
13818         * lib/glob.c (glob): Do not pass NULL to mempcpy.
13820 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
13822         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13824 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
13826         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
13827         <errno.h>.  Include "eexp.tbl".
13828         (half): New constant.
13829         (one): Likewise.
13830         (__ieee754_exp): Rewrite.
13831         (__slowexp): Remove prototype.
13832         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
13833         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
13834         * sysdeps/i386/fpu/slowexp.c: Likewise.
13835         * sysdeps/ia64/fpu/slowexp.c: Likewise.
13836         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
13837         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
13838         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
13839         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13840         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
13841         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
13842         comment.
13843         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
13844         (CPPFLAGS-slowexp.c): Remove variable.
13845         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13846         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
13847         (CFLAGS-slowexp-fma.c): Remove variable.
13848         (CFLAGS-slowexp-fma4.c): Likewise.
13849         (CFLAGS-slowexp-avx.c): Likewise.
13850         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
13851         define as macro.
13852         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
13853         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
13854         * math/Makefile (type-double-routines): Remove slowexp.
13855         * manual/probes.texi (slowexp_p6): Remove.
13856         (slowexp_p32): Likewise.
13858 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13859             James Clarke <jrtc27@jrtc27.com>
13861         [BZ #22603]
13862         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
13863         addition.
13865 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13867         [BZ #22605]
13868         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
13869         code.
13871 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
13873         [BZ #22563]
13874         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13875         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
13876         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13877         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
13878         to feature_1.
13880 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
13882         [BZ #22563]
13883         * bits/types/__cancel_jmp_buf_tag.h: New file.
13884         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
13885         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
13886         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
13887         * nptl/Makefile (headers): Add
13888         bits/types/__cancel_jmp_buf_tag.h.
13889         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
13890         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
13891         * sysdeps/nptl/pthread.h: Include
13892         <bits/types/__cancel_jmp_buf_tag.h>.
13893         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
13894         __cancel_jmp_buf.
13895         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
13897 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
13899         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13900         --enable-static-pie variants to x86_64, x32 and i686.
13902 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
13904         [BZ #22631]
13905         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
13906         argument for attrubutes.  All callers changed.
13907         (__inline_mathop1): Likewise.  All callers changed.
13908         (__inline_mathop): Likewise.  All callers changed.
13909         [__USE_MISC] (scalbn): Use __inline_forward instead of
13910         __inline_forward_c.
13911         [__USE_ISOC99] (scalbln): Likewise.
13912         [__USE_ISOC99] (nearbyint): Likewise.
13913         [__USE_ISOC99] (lrint): Likewise.
13914         [__USE_MISC] (scalbnf): Likewise.
13915         [__USE_ISOC99] (scalblnf): Likewise.
13916         [__USE_ISOC99] (nearbyintf): Likewise.
13917         [__USE_ISOC99] (lrintf): Likewise.
13918         [__USE_MISC] (scalbnl): Likewise.
13919         [__USE_ISOC99] (scalblnl): Likewise.
13920         [__USE_ISOC99] (nearbyintl): Likewise.
13921         [__USE_ISOC99] (lrintl): Likewise.
13922         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
13923         __inline_mathop and __m81_defun changed.
13925         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
13926         CPU or FPU for ARM hard-float configurations.
13928 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
13930         * nptl/tst-attr3.c: Include <libc-diag.h>.
13931         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
13933         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
13935         * string/tester.c (test_strncat): Also disable -Warray-bounds
13936         warnings for two tests.
13938 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
13940         [BZ #22614]
13941         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
13942         $(cc-pie-default) == yes.
13943         * config.make.in (cc-pie-default): New.
13944         * configure.ac (libc_cv_pie_default): Renamed to ...
13945         (libc_cv_cc_pie_default): This.
13946         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
13947         * configure: Regenerated.
13949 2017-12-18  Florian Weimer  <fweimer@redhat.com>
13951         [BZ #20204]
13952         ld.so: Harden dl-libc/libdl hooks.
13953         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
13954         (rtld_active): New function.
13955         * dlfcn/dladdr.c (__dladdr): Call it.
13956         * dlfcn/dladdr1.c (__dladdr1): Likewise.
13957         * dlfcn/dlclose.c (__dlcose): Likewise.
13958         * dlfcn/dlerror.c (__dlerror): Likewise.
13959         * dlfcn/dlinfo.c (__dlinfo): Likewise.
13960         * dlfcn/dlmopen.c (__dlmopen): Likewise.
13961         * dlfcn/dlopen.c (__dlopen): Likewise.
13962         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
13963         * dlfcn/dlsym.c (__dlsym): Likewise.
13964         * dlfcn/dlvsym.c (__dlvsym): Likewise.
13965         * libio/vtables.c (_IO_vtable_check): Likewise.
13966         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
13967         (__libc_dlclose): Likewise.
13968         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
13969         assignment.
13971 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
13973         [BZ #22446]
13974         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
13975         buffers for readlink input and output.
13977 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
13979         [BZ #22624]
13980         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
13981         inhibit_stack_protector.
13983         [BZ #22624]
13984         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
13985         inhibit_stack_protector.
13987 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
13989         [BZ #22627]
13990         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
13991         code and invocation.
13993 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13995         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
13997 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
13999         [BZ #22505]
14000         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
14002 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14004         * sysdeps/s390/fpu/libm-test-ulps: Update.
14006 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14010 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14012         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
14013         constants to s_sincosf.h file.
14014         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14015         * sysdeps/ieee754/flt-32/s_sincosf.c: New
14016         implementation.
14017         * sysdeps/ieee754/flt-32/s_sincosf.h:
14018         New file.
14020 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
14022         [BZ #14681]
14023         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
14024         before mtrace.
14026 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
14028         [BZ #19574]
14029         * INSTALL: Regenerated.
14030         * Makeconfig (real-static-start-installed-name): New.
14031         (pic-default): Updated for --enable-static-pie.
14032         (pie-default): New for --enable-static-pie.
14033         (default-pie-ldflag): Likewise.
14034         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
14035         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
14036         Replace $(static-start-installed-name) with
14037         $(real-static-start-installed-name).
14038         (+prectorT): Updated for --enable-static-pie.
14039         (+postctorT): Likewise.
14040         (CFLAGS-.o): Add $(pie-default).
14041         (CFLAGS-.op): Likewise.
14042         * NEWS: Mention --enable-static-pie.
14043         * config.h.in (ENABLE_STATIC_PIE): New.
14044         * configure.ac (--enable-static-pie): New configure option.
14045         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
14046         (have-static-pie): Likewise.
14047         Enable static PIE if linker supports --no-dynamic-linker.
14048         (ENABLE_STATIC_PIE): New AC_DEFINE.
14049         (enable-static-pie): New LIBC_CONFIG_VAR.
14050         * configure: Regenerated.
14051         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
14052         gr$(start-installed-name) for --enable-static-pie.
14053         (extra-objs): Likewise.
14054         (install-lib): Likewise.
14055         (extra-objs): Add static-reloc.o and static-reloc.os
14056         ($(objpfx)$(start-installed-name)): Also depend on
14057         $(objpfx)static-reloc.o.
14058         ($(objpfx)r$(start-installed-name)): New.
14059         ($(objpfx)g$(start-installed-name)): Also depend on
14060         $(objpfx)static-reloc.os.
14061         ($(objpfx)gr$(start-installed-name)): New.
14062         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
14063         in libc.a.
14064         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
14065         initimage.
14066         * csu/static-reloc.c: New file.
14067         * elf/Makefile (routines): Add dl-reloc-static-pie.
14068         (elide-routines.os): Likewise.
14069         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
14070         (tst-tls1-static-non-pie-no-pie): New.
14071         * elf/dl-reloc-static-pie.c: New file.
14072         * elf/dl-support.c (_dl_get_dl_main_map): New function.
14073         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
14074         STATIC_PIE_BOOTSTRAP.
14075         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
14076         * gmon/Makefile (tests): Add tst-gmon-static-pie.
14077         (tests-static): Likewise.
14078         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
14079         (tst-gmon-static-no-pie): New.
14080         (CFLAGS-tst-gmon-static-pie.c): Likewise.
14081         (CRT-tst-gmon-static-pie): Likewise.
14082         (tst-gmon-static-pie-ENV): Likewise.
14083         (tests-special): Likewise.
14084         ($(objpfx)tst-gmon-static-pie.out): Likewise.
14085         (clean-tst-gmon-static-pie-data): Likewise.
14086         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
14087         * gmon/tst-gmon-static-pie.c: New file.
14088         * manual/install.texi: Document --enable-static-pie.
14089         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
14090         (_dl_get_dl_main_map): Likewise.
14091         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
14092         * sysdeps/x86_64/configure.ac: Likewise.
14093         * sysdeps/i386/configure: Regenerated.
14094         * sysdeps/x86_64/configure: Likewise.
14095         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
14096         (ASFLAGS-.op): Likewise.
14098 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
14100         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
14101         * posix/tst-mmap-offset.c (fname): Use /tmp.
14102         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
14104 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
14106         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
14108 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
14110         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
14111         errno.
14113 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
14115         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14116         --with-float=hard for arm-linux-gnueabihf configurations.
14118         [BZ #14121]
14119         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
14120         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
14121         ($(mo-installed)): Use $(objpfx)%.mo.
14122         (realclean): Remove rule.
14124         * po/Makefile (linguas): Remove rule and dependencies.
14125         (linguas.mo): Likewise.
14126         (.PHONY): Do not depend on linguas and linguas.mo.
14127         (podir): Remove variable.
14128         (pofiles): Likewise.
14129         [$(pofiles)] (%.po): Remove rule.
14131         * sysdeps/sparc/sparc32/Makefile
14132         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
14133         start-of-line whitespace in argument of echo.
14134         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
14135         with whitespace.  Generate __wrap_.udiv alias.
14136         * sysdeps/sparc/sparc32/rem.S: Regenerated.
14137         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
14138         * sysdeps/sparc/sparc32/udiv.S: Likewise.
14139         * sysdeps/sparc/sparc32/urem.S: Likewise.
14141 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14143         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
14144         for aligned inputs.
14146 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14148         * benchtests/bench-strcmp.c: Print output in JSON format.
14150         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
14152 2017-12-14  Florian Weimer  <fweimer@redhat.com>
14154         [BZ #22607]
14155         CVE-2017-1000409
14156         * elf/dl-load.c (_dl_init_paths): Compute number of components in
14157         the expanded path string.
14159 2017-12-14  Florian Weimer  <fweimer@redhat.com>
14161         [BZ #22606]
14162         CVE-2017-1000408
14163         * elf/dl-load.c (system_dirs): Update comment.
14164         (nsystem_dirs_len): Use array_length.
14165         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
14167 2017-12-14  Florian Weimer  <fweimer@redhat.com>
14169         Simplify compiling most of support/ outside of glibc.
14170         * support/check_addrinfo.c: Include <string.h>.
14171         * support/check_dns_packet.c: Likewise.
14172         * support/check_hostent.c: Likewise.
14173         * support/support_can_chroot.c: Include <support/xunistd.h>.
14174         * support/support_format_addrinfo.c: Include <stdlib.h>
14175         * support/support_format_dns_packet.c: Include <stdbool.h>.
14176         * support/support_format_hostent.c: Include <stdlib.h>.
14177         * support/support_format_netent.c: Likewise.
14178         * support/support_write_string.c: Include <support/xunistd.h>.
14179         * support/xdlfcn.c: Include <stddef.h>.
14181 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
14183         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
14185 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
14186             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14188         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14189         (sysdeps_routines): Add memset-niagara7.
14190         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
14191         Likewise.
14192         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
14193         file.
14194         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
14195         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
14196         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
14197         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
14198         Add niagara7 option.
14199         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
14200         memset.
14202         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14203         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
14204         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
14205         Likewise.
14206         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
14207         New file.
14208         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
14209         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
14210         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
14211         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
14212         and __memmove_niagara7.
14213         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
14214         Add niagara7 option.
14215         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
14216         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
14217         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
14218         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
14219         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
14221 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
14223         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
14224         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
14225         * sysdeps/sparc/sparc64/memmove.S: Likewise.
14226         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
14228         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
14229         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
14230         _dl_sparc_cap_flags array.
14231         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
14233 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14235         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
14236         time whenever possible.
14238 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
14240         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
14241         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
14243 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
14245         * soft-fp/fmadf4.c: Move to ....
14246         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
14247         * soft-fp/fmasf4.c: Move to ....
14248         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
14249         * soft-fp/fmatf4.c: Move to ....
14250         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
14251         * sysdeps/ieee754/soft-fp/Makefile: New file.
14252         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
14253         * sysdeps/arm/preconfigure: Regenerated.
14254         * sysdeps/arm/nofpu/Implies: New file.
14255         * sysdeps/arm/s_fma.c: Remove file.
14256         * sysdeps/arm/s_fmaf.c: Likewise.
14257         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
14258         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
14259         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
14260         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
14261         * sysdeps/microblaze/s_fma.c: Remove file.
14262         * sysdeps/microblaze/s_fmaf.c: Likewise.
14263         * sysdeps/mips/mips32/nofpu/Implies: New file.
14264         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
14265         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
14266         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
14267         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
14268         * sysdeps/mips/ieee754/s_fma.c: Remove file.
14269         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
14270         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
14271         implementation.
14272         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
14273         * sysdeps/nios2/s_fma.c: Remove file.
14274         * sysdeps/nios2/s_fmaf.c: Likewise.
14275         * sysdeps/sh/nofpu/Implies: New file.
14276         * sysdeps/sh/s_fma.c: Remove file.
14277         * sysdeps/sh/s_fmaf.c: Likewise.
14278         * sysdeps/tile/Implies: Add ieee754/soft-fp.
14279         * sysdeps/tile/s_fma.c: Remove file.
14280         * sysdeps/tile/s_fmaf.c: Likewise.
14282 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
14284         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14285         Add s_cosf-sse2 and s_cosf-fma.
14286         (CFLAGS-s_cosf-fma.c): New.
14287         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
14288         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
14289         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
14291 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
14293         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
14295 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14297         * libio/Makefile (tests): Add tst-bz22415.
14298         (tst-bz22415-ENV): New rule.
14299         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
14300         (tests-special): Add tst-bz22415-mem.out.
14301         ($(objpfx)tst-bz22415-mem.out): New rule.
14302         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
14303         in case of a successful seek operation.
14304         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14305         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
14306         buffer is required.
14307         * libio/tst-bz22415.c: New test.
14309         * sysdeps/ia64/fpu/libm-test-ulps: Update.
14311 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
14313         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
14314         __IPC_64 to 0 to avoid IPC_64 being set.
14316 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14318         [BZ #22593]
14319         * math/bits/mathcalls.h (nextafter): Remove const.
14320         (nexttoward): Likewise.
14322 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
14324         * configure.ac (--with-fp): Remove configure option.
14325         (with_fp_cond): New variable.
14326         (libc_cv_with_fp): New configure test.  Use this variable instead
14327         of with_fp.
14328         * configure: Regenerated.
14329         * config.make.in (with-fp): Use @libc_cv_with_fp@.
14330         * manual/install.texi (Configuring and compiling): Remove
14331         --without-fp.
14332         * INSTALL: Regenerated.
14333         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
14334         * sysdeps/mips/preconfigure (with_fp_cond): Define.
14335         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
14336         * sysdeps/sh/preconfigure (with_fp_cond): Define.
14337         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
14338         use --without-fp to configure glibc.
14340 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
14342         * manual/locale.texi (nl_langinfo): Fix a typo.
14344 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
14346         [BZ #22588]
14347         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
14349 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
14351         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
14352         (CFLAGS-argp-parse.c): Likewise.
14353         (CFLAGS-argp-fmtstream.c): Likewise.
14354         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
14355         (CPPFLAGS-sha512-crypt.c): Likewise.
14356         (CPPFLAGS-md5-crypt.c): Likewise.
14357         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
14358         (CFLAGS-stack_chk_fail_local.c): Likewise.
14359         (CFLAGS-backtrace.c): Likewise.
14360         (CFLAGS-sprintf_chk.c): Likewise.
14361         (CFLAGS-snprintf_chk.c): Likewise.
14362         (CFLAGS-vsprintf_chk.c): Likewise.
14363         (CFLAGS-vsnprintf_chk.c): Likewise.
14364         (CFLAGS-asprintf_chk.c): Likewise.
14365         (CFLAGS-vasprintf_chk.c): Likewise.
14366         (CFLAGS-obprintf_chk.c): Likewise.
14367         (CFLAGS-dprintf_chk.c): Likewise.
14368         (CFLAGS-vdprintf_chk.c): Likewise.
14369         (CFLAGS-printf_chk.c): Likewise.
14370         (CFLAGS-fprintf_chk.c): Likewise.
14371         (CFLAGS-vprintf_chk.c): Likewise.
14372         (CFLAGS-vfprintf_chk.c): Likewise.
14373         (CFLAGS-gets_chk.c): Likewise.
14374         (CFLAGS-fgets_chk.c): Likewise.
14375         (CFLAGS-fgets_u_chk.c): Likewise.
14376         (CFLAGS-fread_chk.c): Likewise.
14377         (CFLAGS-fread_u_chk.c): Likewise.
14378         (CFLAGS-swprintf_chk.c): Likewise.
14379         (CFLAGS-vswprintf_chk.c): Likewise.
14380         (CFLAGS-wprintf_chk.c): Likewise.
14381         (CFLAGS-fwprintf_chk.c): Likewise.
14382         (CFLAGS-vwprintf_chk.c): Likewise.
14383         (CFLAGS-vfwprintf_chk.c): Likewise.
14384         (CFLAGS-fgetws_chk.c): Likewise.
14385         (CFLAGS-fgetws_u_chk.c): Likewise.
14386         (CFLAGS-read_chk.c): Likewise.
14387         (CFLAGS-pread_chk.c): Likewise.
14388         (CFLAGS-pread64_chk.c): Likewise.
14389         (CFLAGS-recv_chk.c): Likewise.
14390         (CFLAGS-recvfrom_chk.c): Likewise.
14391         (CFLAGS-tst-longjmp_chk.c): Likewise.
14392         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
14393         (CFLAGS-tst-longjmp_chk2.c): Likewise.
14394         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
14395         (CFLAGS-tst-longjmp_chk3.c): Likewise.
14396         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
14397         (CFLAGS-tst-chk1.c): Likewise.
14398         (CFLAGS-tst-chk2.c): Likewise.
14399         (CFLAGS-tst-chk3.c): Likewise.
14400         (CFLAGS-tst-chk4.cc): Likewise.
14401         (CFLAGS-tst-chk5.cc): Likewise.
14402         (CFLAGS-tst-chk6.cc): Likewise.
14403         (CFLAGS-tst-lfschk1.c): Likewise.
14404         (CFLAGS-tst-lfschk2.c): Likewise.
14405         (CFLAGS-tst-lfschk3.c): Likewise.
14406         (CFLAGS-tst-lfschk4.cc): Likewise.
14407         (CFLAGS-tst-lfschk5.cc): Likewise.
14408         (CFLAGS-tst-lfschk6.cc): Likewise.
14409         (CFLAGS-tst-ssp-1.c): Likewise.
14410         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
14411         (CFLAGS-scandir64.c): Likewise.
14412         (CFLAGS-scandir-tail.c): Likewise.
14413         (CFLAGS-scandir64-tail.c): Likewise.
14414         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
14415         (CFLAGS-dl-tunables.c): Likewise.
14416         (CFLAGS-dl-runtime.c): Likewise.
14417         (CFLAGS-dl-lookup.c): Likewise.
14418         (CFLAGS-dl-iterate-phdr.c): Likewise.
14419         (CFLAGS-vismain.c): Likewise.
14420         (CFLAGS-tst-linkall-static.c): Likewise.
14421         (CFLAGS-tst-linkall-static.c): Likewise.
14422         (CPPFLAGS-dl-load.c): Likewise.
14423         (CFLAGS-ldconfig.c): Likewise.
14424         (CFLAGS-dl-cache.c): Likewise.
14425         (CFLAGS-cache.c): Likewise.
14426         (CFLAGS-rtld.c): Likewise.
14427         (CFLAGS-multiload.c): Likewise.
14428         (CFLAGS-filtmod1.c): Likewise.
14429         (CFLAGS-tst-align.c): Likewise.
14430         (CFLAGS-tst-align2.c): Likewise.
14431         (CFLAGS-tst-alignmod.c): Likewise.
14432         (CFLAGS-tst-alignmod2.c): Likewise.
14433         (CPPFLAGS-tst-execstack.c): Likewise.
14434         (CFLAGS-tst-ptrguard1-static.c): Likewise.
14435         (CFLAGS-tst-latepthreadmod.c): Likewise.
14436         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
14437         (CFLAGS-getgrnam_r.c): Likewise.
14438         (CFLAGS-getgrent_r.c): Likewise.
14439         (CFLAGS-getgrent.c): Likewise.
14440         (CFLAGS-fgetgrent.c): Likewise.
14441         (CFLAGS-fgetgrent_r.c): Likewise.
14442         (CFLAGS-putgrent.c): Likewise.
14443         (CFLAGS-initgroups.c): Likewise.
14444         (CFLAGS-getgrgid.c): Likewise.
14445         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
14446         (CFLAGS-getsgent.c): Likewise.
14447         (CFLAGS-fgetsgent.c): Likewise.
14448         (CFLAGS-fgetsgent_r.c): Likewise.
14449         (CFLAGS-putsgent.c): Likewise.
14450         (CFLAGS-getsgnam.c): Likewise.
14451         (CFLAGS-getsgnam_r.c): Likewise.
14452         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
14453         (CFLAGS-iconv_charmap.c): Likewise.
14454         (CFLAGS-dummy-repertoire.c): Likewise.
14455         (CFLAGS-charmap.c): Likewise.
14456         (CFLAGS-linereader.c): Likewise.
14457         (CFLAGS-simple-hash.c): Likewise.
14458         (CFLAGS-gconv_conf.c): Likewise.
14459         (CFLAGS-iconvconfig.c): Likewise.
14460         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
14461         (CFLAGS-gethstbyad.c): Likewise.
14462         (CFLAGS-gethstbynm_r.c): Likewise.
14463         (CFLAGS-gethstbynm.c): Likewise.
14464         (CFLAGS-gethstbynm2_r.c): Likewise.
14465         (CFLAGS-gethstbynm2.c): Likewise.
14466         (CFLAGS-gethstent_r.c): Likewise.
14467         (CFLAGS-gethstent.c): Likewise.
14468         (CFLAGS-rcmd.c): Likewise.
14469         (CFLAGS-getnetbynm_r.c): Likewise.
14470         (CFLAGS-getnetbynm.c): Likewise.
14471         (CFLAGS-getnetbyad_r.c): Likewise.
14472         (CFLAGS-getnetbyad.c): Likewise.
14473         (CFLAGS-getnetent_r.c): Likewise.
14474         (CFLAGS-getnetent.c): Likewise.
14475         (CFLAGS-getaliasent_r.c): Likewise.
14476         (CFLAGS-getaliasent.c): Likewise.
14477         (CFLAGS-getrpcent_r.c): Likewise.
14478         (CFLAGS-getrpcent.c): Likewise.
14479         (CFLAGS-getservent_r.c): Likewise.
14480         (CFLAGS-getservent.c): Likewise.
14481         (CFLAGS-getprtent_r.c): Likewise.
14482         (CFLAGS-getprtent.c): Likewise.
14483         (CFLAGS-either_ntoh.c): Likewise.
14484         (CFLAGS-either_hton.c): Likewise.
14485         (CFLAGS-getnetgrent.c): Likewise.
14486         (CFLAGS-getnetgrent_r.c): Likewise.
14487         (CFLAGS-tst-checks-posix.c): Likewise.
14488         (CFLAGS-tst-sockaddr.c): Likewise.
14489         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
14490         (CFLAGS-tst-translit.c): Likewise.
14491         (CFLAGS-tst-gettext2.c): Likewise.
14492         (CFLAGS-tst-codeset.c): Likewise.
14493         (CFLAGS-tst-gettext3.c): Likewise.
14494         (CFLAGS-tst-gettext4.c): Likewise.
14495         (CFLAGS-tst-gettext5.c): Likewise.
14496         (CFLAGS-tst-gettext6.c): Likewise.
14497         * io/Makefile (CFLAGS-open.c): Likewise.
14498         (CFLAGS-open64.c): Likewise.
14499         (CFLAGS-creat.c): Likewise.
14500         (CFLAGS-creat64.c): Likewise.
14501         (CFLAGS-fcntl.c): Likewise.
14502         (CFLAGS-poll.c): Likewise.
14503         (CFLAGS-ppoll.c): Likewise.
14504         (CFLAGS-lockf.c): Likewise.
14505         (CFLAGS-statfs.c): Likewise.
14506         (CFLAGS-fstatfs.c): Likewise.
14507         (CFLAGS-statvfs.c): Likewise.
14508         (CFLAGS-fstatvfs.c): Likewise.
14509         (CFLAGS-fts.c): Likewise.
14510         (CFLAGS-fts64.c): Likewise.
14511         (CFLAGS-ftw.c): Likewise.
14512         (CFLAGS-ftw64.c): Likewise.
14513         (CFLAGS-lockf.c): Likewise.
14514         (CFLAGS-posix_fallocate.c): Likewise.
14515         (CFLAGS-posix_fallocate64.c): Likewise.
14516         (CFLAGS-fallocate.c): Likewise.
14517         (CFLAGS-fallocate64.c): Likewise.
14518         (CFLAGS-read.c): Likewise.
14519         (CFLAGS-write.c): Likewise.
14520         (CFLAGS-test-stat.c): Likewise.
14521         (CFLAGS-test-lfs.c): Likewise.
14522         * libio/Makefile (CFLAGS-fileops.c): Likewise.
14523         (CFLAGS-fputc.c): Likewise.
14524         (CFLAGS-fputwc.c): Likewise.
14525         (CFLAGS-freopen64.c): Likewise.
14526         (CFLAGS-freopen.c): Likewise.
14527         (CFLAGS-fseek.c): Likewise.
14528         (CFLAGS-fseeko64.c): Likewise.
14529         (CFLAGS-fseeko.c): Likewise.
14530         (CFLAGS-ftello64.c): Likewise.
14531         (CFLAGS-ftello.c): Likewise.
14532         (CFLAGS-fwide.c): Likewise.
14533         (CFLAGS-genops.c): Likewise.
14534         (CFLAGS-getc.c): Likewise.
14535         (CFLAGS-getchar.c): Likewise.
14536         (CFLAGS-getwc.c): Likewise.
14537         (CFLAGS-getwchar.c): Likewise.
14538         (CFLAGS-iofclose.c): Likewise.
14539         (CFLAGS-iofflush.c): Likewise.
14540         (CFLAGS-iofgetpos64.c): Likewise.
14541         (CFLAGS-iofgetpos.c): Likewise.
14542         (CFLAGS-iofgets.c): Likewise.
14543         (CFLAGS-iofgetws.c): Likewise.
14544         (CFLAGS-iofputs.c): Likewise.
14545         (CFLAGS-iofputws.c): Likewise.
14546         (CFLAGS-iofread.c): Likewise.
14547         (CFLAGS-iofsetpos64.c): Likewise.
14548         (CFLAGS-iofsetpos.c): Likewise.
14549         (CFLAGS-ioftell.c): Likewise.
14550         (CFLAGS-iofwrite.c): Likewise.
14551         (CFLAGS-iogetdelim.c): Likewise.
14552         (CFLAGS-iogetline.c): Likewise.
14553         (CFLAGS-iogets.c): Likewise.
14554         (CFLAGS-iogetwline.c): Likewise.
14555         (CFLAGS-ioputs.c): Likewise.
14556         (CFLAGS-ioseekoff.c): Likewise.
14557         (CFLAGS-ioseekpos.c): Likewise.
14558         (CFLAGS-iosetbuffer.c): Likewise.
14559         (CFLAGS-iosetvbuf.c): Likewise.
14560         (CFLAGS-ioungetc.c): Likewise.
14561         (CFLAGS-ioungetwc.c): Likewise.
14562         (CFLAGS-oldfileops.c): Likewise.
14563         (CFLAGS-oldiofclose.c): Likewise.
14564         (CFLAGS-oldiofgetpos64.c): Likewise.
14565         (CFLAGS-oldiofgetpos.c): Likewise.
14566         (CFLAGS-oldiofsetpos64.c): Likewise.
14567         (CFLAGS-oldiofsetpos.c): Likewise.
14568         (CFLAGS-peekc.c): Likewise.
14569         (CFLAGS-putc.c): Likewise.
14570         (CFLAGS-putchar.c): Likewise.
14571         (CFLAGS-putwc.c): Likewise.
14572         (CFLAGS-putwchar.c): Likewise.
14573         (CFLAGS-rewind.c): Likewise.
14574         (CFLAGS-wfileops.c): Likewise.
14575         (CFLAGS-wgenops.c): Likewise.
14576         (CFLAGS-oldiofopen.c): Likewise.
14577         (CFLAGS-iofopen.c): Likewise.
14578         (CFLAGS-iofopen64.c): Likewise.
14579         (CFLAGS-oldtmpfile.c): Likewise.
14580         (CFLAGS-tst_putwc.c): Likewise.
14581         * locale/Makefile (CFLAGS-md5.c): Likewise.
14582         (CFLAGS-charmap.c): Likewise.
14583         (CFLAGS-locfile.c): Likewise.
14584         (CFLAGS-charmap-dir.c): Likewise.
14585         * login/Makefile (CFLAGS-grantpt.c): Likewise.
14586         (CFLAGS-getpt.c): Likewise.
14587         (CFLAGS-pt_chown.c): Likewise.
14588         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
14589         (CFLAGS-obstack.c): Likewise.
14590         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
14591         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
14592         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
14593         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
14594         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
14595         (CFLAGS-test-tgmath.c): Likewise.
14596         (CFLAGS-test-tgmath2.c): Likewise.
14597         (CFLAGS-test-tgmath-ret.c): Likewise.
14598         (CFLAGS-test-powl.c): Likewise.
14599         (CFLAGS-test-snan.c): Likewise.
14600         (CFLAGS-test-signgam-finite.c): Likewise.
14601         (CFLAGS-test-signgam-finite-c99.c): Likewise.
14602         (CFLAGS-test-signgam-finite-c11.c): Likewise.
14603         (CFLAGS-test-signgam-uchar.c): Likewise.
14604         (CFLAGS-test-signgam-uchar-init.c): Likewise.
14605         (CFLAGS-test-signgam-uchar-static.c): Likewise.
14606         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
14607         (CFLAGS-test-signgam-uint.c): Likewise.
14608         (CFLAGS-test-signgam-uint-init.c): Likewise.
14609         (CFLAGS-test-signgam-uint-static.c): Likewise.
14610         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
14611         (CFLAGS-test-signgam-ullong.c): Likewise.
14612         (CFLAGS-test-signgam-ullong-init.c): Likewise.
14613         (CFLAGS-test-signgam-ullong-static.c): Likewise.
14614         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
14615         (CFLAGS-test-math-cxx11.cc): Likewise.
14616         (CFLAGS-test-math-isinff.cc): Likewise.
14617         (CFLAGS-test-math-iszero.cc): Likewise.
14618         (CFLAGS-test-math-issignaling.cc): Likewise.
14619         (CFLAGS-test-math-iscanonical.cc): Likewise.
14620         (CFLAGS-test-iszero-excess-precision.c): Likewise.
14621         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
14622         (CFLAGS-test-flt-eval-method.c): Likewise.
14623         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
14624         (CFLAGS-test-finite-macros.c): Likewise.
14625         * misc/Makefile (CFLAGS-select.c): Likewise.
14626         (CFLAGS-tsearch.c): Likewise.
14627         (CFLAGS-lsearch.c): Likewise.
14628         (CFLAGS-pselect.c): Likewise.
14629         (CFLAGS-readv.c): Likewise.
14630         (CFLAGS-writev.c): Likewise.
14631         (CFLAGS-preadv.c): Likewise.
14632         (CFLAGS-preadv64.c): Likewise.
14633         (CFLAGS-pwritev.c): Likewise.
14634         (CFLAGS-pwritev64.c): Likewise.
14635         (CFLAGS-preadv2.c): Likewise.
14636         (CFLAGS-preadv64v2.c): Likewise.
14637         (CFLAGS-pwritev2.c): Likewise.
14638         (CFLAGS-pwritev64v2.c): Likewise.
14639         (CFLAGS-usleep.c): Likewise.
14640         (CFLAGS-syslog.c): Likewise.
14641         (CFLAGS-error.c): Likewise.
14642         (CFLAGS-getpass.c): Likewise.
14643         (CFLAGS-mkstemp.c): Likewise.
14644         (CFLAGS-mkstemp64.c): Likewise.
14645         (CFLAGS-getsysstats.c): Likewise.
14646         (CFLAGS-getusershell.c): Likewise.
14647         (CFLAGS-err.c): Likewise.
14648         (CFLAGS-tst-tsearch.c): Likewise.
14649         (CFLAGS-msync.c): Likewise.
14650         (CFLAGS-fdatasync.c): Likewise.
14651         (CFLAGS-fsync.c): Likewise.
14652         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
14653         (CFLAGS-unwind.c): Likewise.
14654         (CFLAGS-unwind-forcedunwind.c): Likewise.
14655         (CFLAGS-pthread_cancel.c): Likewise.
14656         (CFLAGS-pthread_setcancelstate.c): Likewise.
14657         (CFLAGS-pthread_setcanceltype.c): Likewise.
14658         (CFLAGS-cancellation.c): Likewise.
14659         (CFLAGS-libc-cancellation.c): Likewise.
14660         (CFLAGS-pthread_exit.c): Likewise.
14661         (CFLAGS-forward.c): Likewise.
14662         (CFLAGS-pthread_testcancel.c): Likewise.
14663         (CFLAGS-pthread_join.c): Likewise.
14664         (CFLAGS-pthread_timedjoin.c): Likewise.
14665         (CFLAGS-pthread_once.c): Likewise.
14666         (CFLAGS-pthread_cond_wait.c): Likewise.
14667         (CFLAGS-sem_wait.c): Likewise.
14668         (CFLAGS-sem_timedwait.c): Likewise.
14669         (CFLAGS-fcntl.c): Likewise.
14670         (CFLAGS-lockf.c): Likewise.
14671         (CFLAGS-pread.c): Likewise.
14672         (CFLAGS-pread64.c): Likewise.
14673         (CFLAGS-pwrite.c): Likewise.
14674         (CFLAGS-pwrite64.c): Likewise.
14675         (CFLAGS-wait.c): Likewise.
14676         (CFLAGS-waitpid.c): Likewise.
14677         (CFLAGS-sigwait.c): Likewise.
14678         (CFLAGS-msgrcv.c): Likewise.
14679         (CFLAGS-msgsnd.c): Likewise.
14680         (CFLAGS-tcdrain.c): Likewise.
14681         (CFLAGS-open.c): Likewise.
14682         (CFLAGS-open64.c): Likewise.
14683         (CFLAGS-pause.c): Likewise.
14684         (CFLAGS-recv.c): Likewise.
14685         (CFLAGS-send.c): Likewise.
14686         (CFLAGS-accept.c): Likewise.
14687         (CFLAGS-sendto.c): Likewise.
14688         (CFLAGS-connect.c): Likewise.
14689         (CFLAGS-recvfrom.c): Likewise.
14690         (CFLAGS-recvmsg.c): Likewise.
14691         (CFLAGS-sendmsg.c): Likewise.
14692         (CFLAGS-close.c): Likewise.
14693         (CFLAGS-read.c): Likewise.
14694         (CFLAGS-write.c): Likewise.
14695         (CFLAGS-nanosleep.c): Likewise.
14696         (CFLAGS-sigsuspend.c): Likewise.
14697         (CFLAGS-msync.c): Likewise.
14698         (CFLAGS-fdatasync.c): Likewise.
14699         (CFLAGS-fsync.c): Likewise.
14700         (CFLAGS-pt-system.c): Likewise.
14701         (CFLAGS-tst-cleanup2.c): Likewise.
14702         (CFLAGS-tst-cleanupx2.c): Likewise.
14703         (CFLAGS-flockfile.c): Likewise.
14704         (CFLAGS-ftrylockfile.c): Likewise.
14705         (CFLAGS-funlockfile.c): Likewise.
14706         (CFLAGS-tst-initializers1.c): Likewise.
14707         (CFLAGS-tst-initializers1-c89.c): Likewise.
14708         (CFLAGS-tst-initializers1-c99.c): Likewise.
14709         (CFLAGS-tst-initializers1-c11.c): Likewise.
14710         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
14711         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
14712         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
14713         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
14714         (CFLAGS-nscd_getgr_r.c): Likewise.
14715         (CFLAGS-nscd_gethst_r.c): Likewise.
14716         (CFLAGS-nscd_getai.c): Likewise.
14717         (CFLAGS-nscd_initgroups.c): Likewise.
14718         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
14719         (CFLAGS-pause.c): Likewise.
14720         (CFLAGS-pread.c): Likewise.
14721         (CFLAGS-pread64.c): Likewise.
14722         (CFLAGS-pwrite.c): Likewise.
14723         (CFLAGS-pwrite64.c): Likewise.
14724         (CFLAGS-sleep.c): Likewise.
14725         (CFLAGS-wait.c): Likewise.
14726         (CFLAGS-waitid.c): Likewise.
14727         (CFLAGS-waitpid.c): Likewise.
14728         (CFLAGS-getopt.c): Likewise.
14729         (CFLAGS-wordexp.c): Likewise.
14730         (CFLAGS-sysconf.c): Likewise.
14731         (CFLAGS-pathconf.c): Likewise.
14732         (CFLAGS-fpathconf.c): Likewise.
14733         (CFLAGS-spawn.c): Likewise.
14734         (CFLAGS-spawnp.c): Likewise.
14735         (CFLAGS-spawni.c): Likewise.
14736         (CFLAGS-glob.c): Likewise.
14737         (CFLAGS-glob64.c): Likewise.
14738         (CFLAGS-getconf.c): Likewise.
14739         (CFLAGS-nanosleep.c): Likewise.
14740         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
14741         (CFLAGS-getpwent.c): Likewise.
14742         (CFLAGS-getpw.c): Likewise.
14743         (CFLAGS-fgetpwent_r.c): Likewise.
14744         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
14745         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
14746         (CFLAGS-mq_timedreceive.c): Likewise.
14747         (CFLAGS-mq_timedsend.c): Likewise.
14748         (CFLAGS-clock_nanosleep.c): Likewise.
14749         (CFLAGS-librt-cancellation.c): Likewise.
14750         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
14751         (CFLAGS-getspent.c): Likewise.
14752         (CFLAGS-fgetspent.c): Likewise.
14753         (CFLAGS-fgetspent_r.c): Likewise.
14754         (CFLAGS-putspent.c): Likewise.
14755         (CFLAGS-getspnam.c): Likewise.
14756         (CFLAGS-getspnam_r.c): Likewise.
14757         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
14758         (CFLAGS-sigsuspend.c): Likewise.
14759         (CFLAGS-sigtimedwait.c): Likewise.
14760         (CFLAGS-sigwait.c): Likewise.
14761         (CFLAGS-sigwaitinfo.c): Likewise.
14762         (CFLAGS-sigreturn.c): Likewise.
14763         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
14764         (CFLAGS-vfwprintf.c): Likewise.
14765         (CFLAGS-tmpfile.c): Likewise.
14766         (CFLAGS-tmpfile64.c): Likewise.
14767         (CFLAGS-tempname.c): Likewise.
14768         (CFLAGS-psignal.c): Likewise.
14769         (CFLAGS-vprintf.c): Likewise.
14770         (CFLAGS-cuserid.c): Likewise.
14771         (CFLAGS-errlist.c): Likewise.
14772         (CFLAGS-siglist.c): Likewise.
14773         (CFLAGS-scanf15.c): Likewise.
14774         (CFLAGS-scanf17.c): Likewise.
14775         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
14776         (CFLAGS-msort.c): Likewise.
14777         (CFLAGS-qsort.c): Likewise.
14778         (CFLAGS-system.c): Likewise.
14779         (CFLAGS-fmtmsg.c): Likewise.
14780         (CFLAGS-strfmon.c): Likewise.
14781         (CFLAGS-strfmon_l.c): Likewise.
14782         (CFLAGS-strfromd.c): Likewise.
14783         (CFLAGS-strfromf.c): Likewise.
14784         (CFLAGS-strfroml.c): Likewise.
14785         (CFLAGS-tst-bsearch.c): Likewise.
14786         (CFLAGS-tst-qsort.c): Likewise.
14787         (CFLAGS-tst-makecontext2.c): Likewise.
14788         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
14789         (CFLAGS-xnlm_prot.c): Likewise.
14790         (CFLAGS-xrstat.c): Likewise.
14791         (CFLAGS-xyppasswd.c): Likewise.
14792         (CFLAGS-xklm_prot.c): Likewise.
14793         (CFLAGS-xrex.c): Likewise.
14794         (CFLAGS-xsm_inter.c): Likewise.
14795         (CFLAGS-xmount.c): Likewise.
14796         (CFLAGS-xrusers.c): Likewise.
14797         (CFLAGS-xspray.c): Likewise.
14798         (CFLAGS-xnfs_prot.c): Likewise.
14799         (CFLAGS-xrquota.c): Likewise.
14800         (CFLAGS-xkey_prot.c): Likewise.
14801         (CFLAGS-auth_unix.c): Likewise.
14802         (CFLAGS-key_call.c): Likewise.
14803         (CFLAGS-pmap_rmt.c): Likewise.
14804         (CFLAGS-clnt_perr.c): Likewise.
14805         (CFLAGS-openchild.c): Likewise.
14806         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
14807         (CFLAGS-msgsnd.c): Likewise.
14808         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
14809         * time/Makefile (CFLAGS-tzfile.c): Likewise.
14810         (CFLAGS-tzset.c): Likewise.
14811         (CFLAGS-getdate.c): Likewise.
14812         (CFLAGS-test_time.c): Likewise.
14813         (CPPFLAGS-tst-tzname.c): Likewise.
14814         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
14815         (CFLAGS-zic.c): Likewise.
14816         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
14817         (CFLAGS-wcswidth.c): Likewise.
14818         (CFLAGS-wcstol.c): Likewise.
14819         (CFLAGS-wcstoul.c): Likewise.
14820         (CFLAGS-wcstoll.c): Likewise.
14821         (CFLAGS-wcstoull.c): Likewise.
14822         (CFLAGS-wcstod.c): Likewise.
14823         (CFLAGS-wcstold.c): Likewise.
14824         (CFLAGS-wcstof128.c): Likewise.
14825         (CFLAGS-wcstof.c): Likewise.
14826         (CFLAGS-wcstol_l.c): Likewise.
14827         (CFLAGS-wcstoul_l.c): Likewise.
14828         (CFLAGS-wcstoll_l.c): Likewise.
14829         (CFLAGS-wcstoull_l.c): Likewise.
14830         (CFLAGS-wcstod_l.c): Likewise.
14831         (CFLAGS-wcstold_l.c): Likewise.
14832         (CFLAGS-wcstof128_l.c): Likewise.
14833         (CFLAGS-wcstof_l.c): Likewise.
14834         (CPPFLAGS-tst-wchar-h.c): Likewise.
14835         (CPPFLAGS-wcstold_l.c): Likewise.
14837 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
14839         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
14841 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14842             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14844         * manual/tunables.texi (Hardware Capability Tunables): Document
14845         glibc.tune.cached_memopt.
14846         * sysdeps/powerpc/cpu-features.c: New file.
14847         * sysdeps/powerpc/cpu-features.h: New file.
14848         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
14849         _dl_powerpc_cpu_features.
14850         * sysdeps/powerpc/dl-tunables.list: New file.
14851         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
14852         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
14853         (INIT_ARCH): Initialize use_aligned_memopt.
14854         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
14855         IS_IN(rtld))]: Restrict dl_platform_init availability and
14856         initialize CPU features used by tunables.
14857         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
14858         Add memcpy-power8-cached.
14859         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
14860         __memcpy_power8_cached.
14861         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
14862         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
14863         New file.
14865 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
14867         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
14868         (CFLAGS-noinl-tester.c): Likewise.
14869         (CFLAGS-tst-strlen.c): Likewise.
14870         (CFLAGS-stratcliff.c): Likewise.
14871         (CFLAGS-test-ffs.c): Likewise.
14872         (CFLAGS-tst-inlcall.c): Likewise.
14873         (CFLAGS-tst-xbzero-opt.c): Likewise.
14874         (CFLAGS-memcpy.c): Likewise.
14875         (CFLAGS-wordcopy.c): Likewise.
14877 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
14879         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14880         Store r15 on stack and add cfi rule.
14881         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14882         Likewise.
14884 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
14886         [BZ #22577]
14887         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
14888         call.
14890 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
14892         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14893         Add s_sinf-sse2 and s_sinf-fma.
14894         (CFLAGS-s_sinf-fma.c): New.
14895         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
14896         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
14897         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
14899 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
14901         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
14903 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
14905         [BZ #22568]
14906         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
14907         part of result to imaginary part of argument if it is zero and the
14908         real part of the argument is not finite.
14909         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
14910         of result to real part of argument if it is zero and the imaginary
14911         part of the argument is not finite.
14913 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
14915         [BZ #22524]
14916         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
14917         and to the list of locales to be built for testing.
14918         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
14919         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
14920         and build the collation rules upon that.
14922 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
14924         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
14925         * manual/math.texi (Mathematics): Document support for _Float32.
14926         * math/Makefile (test-types): Add float32.
14927         * math/Versions (GLIBC_2.27): Add _Float32 functions.
14928         * stdlib/Versions (GLIBC_2.27): Likewise.
14929         * wcsmbs/Versions (GLIBC_2.27): Likewise.
14930         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
14931         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14932         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14933         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14934         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14935         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14936         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14937         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14938         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14939         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14940         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14941         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14942         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14943         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14944         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14945         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14946         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14947         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14948         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14949         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14950         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
14951         Likewise.
14952         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14953         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14954         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14955         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14956         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14958         Likewise.
14959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
14960         Likewise.
14961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14962         Likewise.
14963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14964         Likewise.
14966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14967         Likewise.
14968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
14969         Likewise.
14970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14971         Likewise.
14972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
14973         Likewise.
14974         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14975         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14976         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14977         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14978         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14979         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14980         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14981         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14982         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14983         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14984         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
14985         Likewise.
14986         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
14987         Likewise.
14988         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
14989         Likewise.
14990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
14991         Likewise.
14992         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14993         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14994         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14995         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14996         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14997         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14998         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14999         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15001 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
15003         * stdlib/strtof.c: Include <bits/floatn.h>
15004         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
15005         and later undefine as macro.  Define as weak alias if
15006         [!USE_WIDE_CHAR].
15007         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
15008         and later undefine as macro.  Define as weak alias if
15009         [USE_WIDE_CHAR].
15010         * stdlib/strtof_l.c: Include <bits/floatn.h>
15011         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
15012         and later undefine as macro.  Define as weak alias if
15013         [!USE_WIDE_CHAR].
15014         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
15015         and later undefine as macro.  Define as weak alias if
15016         [USE_WIDE_CHAR].
15018         * stdlib/strfromf.c: Include <bits/floatn.h>.
15019         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
15020         and later undefine as macro and define as weak alias.
15022         * math/test-float32.h: New file.
15024         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
15025         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
15026         (libm_alias_float_other_r): Create f32 alias.
15027         (libm_alias_float_r): Use semicolon before call to
15028         libm_alias_float_other_r.
15030         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
15031         second argument to libm_alias_float_other.
15032         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
15033         second argument to libm_alias_float_other.
15034         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
15035         argument to libm_alias_float_other.
15037         [BZ #22561]
15038         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
15039         real part of result for argument 0 + i * NaN.
15040         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
15041         results for tests of 0 + i * NaN.
15043 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15045         * sysdeps/alpha/fpu/libm-test-ulps: Update.
15047 2017-12-06  David S. Miller  <davem@davemloft.net>
15049         * sysdeps/sparc/fpu/libm-test-ulps: Update
15050         exp_{downward,towardzero,upward} ulps.
15052 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
15054         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
15055         variables static.
15057         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
15058         (Y0_2D): Likewise.
15059         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
15060         (Y0_2D): Likewise.
15061         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
15062         (Y0_2D): Likewise.
15063         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
15064         (Y0_2D): Likewise.
15066 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
15068         [BZ #22515]
15069         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
15070         and to the list of locales to be built for testing.
15071         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
15072         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
15073         and build the collation rules upon that.
15075 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15077         * NEWS: Add sinf to list of optimized functions.
15079 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
15081         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
15082         (__HAVE_FLOAT32X): Likewise.
15083         * manual/math.texi (Mathematics): Document support for _Float64
15084         and _Float32x.
15085         * math/Makefile (test-types): Add float64 and float32x.
15086         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
15087         functions.
15088         * stdlib/Versions (GLIBC_2.27): Likewise.
15089         * wcsmbs/Versions (GLIBC_2.27): Likewise.
15090         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
15091         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15092         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15093         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15094         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15095         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15096         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15097         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15098         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15099         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15100         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15101         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15102         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15103         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15104         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15105         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15106         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15107         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15108         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15109         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15110         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
15111         Likewise.
15112         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15113         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15114         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15115         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15116         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15118         Likewise.
15119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15120         Likewise.
15121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15122         Likewise.
15123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15124         Likewise.
15125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15126         Likewise.
15127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
15128         Likewise.
15129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15130         Likewise.
15131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15132         Likewise.
15133         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15134         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15135         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15136         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15137         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15138         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15139         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15140         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15141         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15142         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15143         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
15144         Likewise.
15145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15146         Likewise.
15147         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15148         Likewise.
15149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15150         Likewise.
15151         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15152         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15153         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15154         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15155         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15156         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15157         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15158         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15160 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
15162         * bits/floatn-common.h: Include <bits/long-double.h>.
15163         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15164         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
15165         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15166         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
15167         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15168         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
15169         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15170         (__builtin_huge_valf64): Use __builtin_huge_vall.
15171         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15172         (__builtin_inff64): Use __builtin_infl.
15173         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15174         (__builtin_nanf64): Use __builtin_nanl.
15175         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15176         (__builtin_nansf64): Use __builtin_nansl.
15178 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
15179             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15180             Carlos O'Donnell <carlos@redhat.com>
15182         * elf/dl-tunables.list: Add elision parameters.
15183         * manual/tunables.texi: Add entries about elision tunable.
15184         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
15185         Add callback functions to dynamically enable/disable elision.
15186         Add multiple callbacks functions to set elision parameters.
15187         Deleted __libc_enable_secure check.
15188         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
15189         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
15190         * configure: Regenerated.
15191         * configure.ac: Option enable_lock_elision was deleted.
15192         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
15193         * config.make.in: Remove references to enable_lock_elision.
15194         * manual/install.texi: Elision configure option was removed.
15195         * INSTALL: Regenerated to remove enable_lock_elision.
15196         * nptl/Makefile:
15197         Disable elision so it can verify error case for destroying a mutex.
15198         * sysdeps/powerpc/nptl/elide.h:
15199         Cleanup ENABLE_LOCK_ELISION check.
15200         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
15201         * sysdeps/s390/configure: Regenerated.
15202         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
15203         * nptl/tst-mutex8.c:
15204         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
15205         * sysdeps/powerpc/powerpc32/sysdep.h:
15206         Deleted all ENABLE_LOCK_ELISION checks.
15207         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15208         * sysdeps/powerpc/sysdep.h: Likewise.
15209         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
15210         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
15211         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
15212         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
15213         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
15214         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
15215         enable-lock-elision.
15217 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
15219         * stdlib/strtod.c: Include <bits/floatn.h>.
15220         (BUILD_DOUBLE): New macro.
15221         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15222         (strtof64): Define and later undefine as macro.  Define as weak
15223         alias if [!USE_WIDE_CHAR].
15224         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15225         (wcstof64): Define and later undefine as macro.  Define as weak
15226         alias if [USE_WIDE_CHAR].
15227         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15228         (strtof32x): Define and later undefine as macro.  Define as weak
15229         alias if [!USE_WIDE_CHAR].
15230         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15231         (wcstof32x): Define and later undefine as macro.  Define as weak
15232         alias if [USE_WIDE_CHAR].
15233         * stdlib/strtod_l.c: Include <bits/floatn.h>.
15234         (BUILD_DOUBLE): New macro.
15235         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15236         (strtof64_l): Define and later undefine as macro.  Define as weak
15237         alias if [!USE_WIDE_CHAR].
15238         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15239         (wcstof64_l): Define and later undefine as macro.  Define as weak
15240         alias if [USE_WIDE_CHAR].
15241         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15242         (strtof32x_l): Define and later undefine as macro.  Define as weak
15243         alias if [!USE_WIDE_CHAR].
15244         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15245         (wcstof32x_l): Define and later undefine as macro.  Define as weak
15246         alias if [USE_WIDE_CHAR].
15248 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15250         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
15251         (reduced): Use ones as double instead of integer.
15253 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15255         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
15257 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
15259         * stdlib/strfromd.c: Include <bits/floatn.h>.
15260         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
15261         and later undefine as macro and define as weak alias.
15262         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
15263         Likewise.
15265         * math/test-float32x.h: New file.
15266         * math/test-float64.h: Likewise.
15268         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
15269         (libm_alias_double_other_r_f64): New macro.
15270         (libm_alias_double_other_r_f32x): Likewise.
15271         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
15272         libm_alias_double_other_r_f32x.
15273         (libm_alias_double_r): Use semicolon before call to
15274         libm_alias_double_other_r.
15275         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
15276         <bits/floatn.h>.
15277         (libm_alias_double_other_r_f64): New macro.
15278         (libm_alias_double_other_r_f32x): Likewise.
15279         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
15280         libm_alias_double_other_r_f32x.
15282 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
15284         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
15285         int.
15286         (SINF_FUNC): Likewise.  Replace floor with simple casts.
15288 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
15290         [BZ #22517]
15291         * localedata/Makefile: Add et_EE.UTF-8 to test-input
15292         and to the list of locales to be built for testing.
15293         * localedata/et_EE.UTF-8.in: New file for testing the collation.
15294         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
15295         and build the collation rules upon that.
15297 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
15299         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
15300         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
15301         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
15302         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
15303         instead of __insn__xxx.
15304         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
15305         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
15306         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
15307         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
15308         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
15309         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
15311 2017-12-05  Florian Weimer  <fweimer@redhat.com>
15313         Linux: Implement interfaces for memory protection keys
15314         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
15315         xsignal, xsysconf.
15316         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
15317         * support/xunistd.h (xsysconf): Declare.
15318         * support/xraise.c: New file.
15319         * support/xsigaction.c: Likewise.
15320         * support/xsignal.c: Likewise.
15321         * support/xsysconf.c: Likewise.
15322         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
15323         pkey_set, pkey_get, pkey_mprotect.
15324         [misc] (tests): Add tst-pkey.
15325         (tst-pkey): Link with -lpthread.
15326         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
15327         pkey_free, pkey_set, pkey_get, pkey_mprotect.
15328         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
15329         (PKEY_DISABLE_WRITE): Define.
15330         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
15331         Declare.
15332         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
15333         (SEGV_PKUERR): Add.
15334         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
15335         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
15336         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
15337         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
15338         Add.
15339         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
15340         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
15341         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
15342         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
15343         * sysdeps/unix/sysv/linux/**.abilist: Update.
15345 2017-12-05  Florian Weimer  <fweimer@redhat.com>
15347         * support/tst-test_compare.c (subprocess): Use long long instead
15348         of long argument for consistent type width across 32-bit and
15349         64-bit architectures.
15350         (do_test): Adjust expected output.
15352 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
15354         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
15355         (cosf): Define using libm_alias_float.
15356         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
15357         (fabsf): Define using libm_alias_float.
15358         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
15359         (fmaf): Define using libm_alias_float.
15360         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
15361         (rintf): Define using libm_alias_float.
15362         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
15363         (sinf): Define using libm_alias_float.
15364         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
15365         <libm-alias-float.h>.
15366         (modff): Define using libm_alias_float.
15367         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
15368         <libm-alias-float.h>.
15369         (logbf): Define using libm_alias_float.
15370         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
15371         <libm-alias-float.h>.
15372         (ceilf): Define using libm_alias_float.
15373         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
15374         <libm-alias-float.h>.
15375         (copysignf): Define using libm_alias_float.
15376         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
15377         <libm-alias-float.h>.
15378         (floorf): Define using libm_alias_float.
15379         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
15380         <libm-alias-float.h>.
15381         (llrintf): Define using libm_alias_float.
15382         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
15383         <libm-alias-float.h>.
15384         (llroundf): Define using libm_alias_float.
15385         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
15386         <libm-alias-float.h>.
15387         (lrintf): Define using libm_alias_float.
15388         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
15389         <libm-alias-float.h>.
15390         (lroundf): Define using libm_alias_float.
15391         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
15392         <libm-alias-float.h>.
15393         (nearbyintf): Define using libm_alias_float.
15394         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
15395         <libm-alias-float.h>.
15396         (rintf): Define using libm_alias_float.
15397         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
15398         <libm-alias-float.h>.
15399         (roundf): Define using libm_alias_float.
15400         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
15401         <libm-alias-float.h>.
15402         (truncf): Define using libm_alias_float.
15403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
15404         Include <libm-alias-float.h>.
15405         (ceilf): Define using libm_alias_float.
15406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
15407         Include <libm-alias-float.h>.
15408         (copysignf): Define using libm_alias_float.
15409         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
15410         Include <libm-alias-float.h>.
15411         (floorf): Define using libm_alias_float.
15412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
15413         Include <libm-alias-float.h>.
15414         (llrintf): Define using libm_alias_float.
15415         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
15416         Include <libm-alias-float.h>.
15417         (llroundf): Define using libm_alias_float.
15418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
15419         Include <libm-alias-float.h>.
15420         (logbf): Define using libm_alias_float.
15421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
15422         Include <libm-alias-float.h>.
15423         (lrintf): Define using libm_alias_float.
15424         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
15425         Include <libm-alias-float.h>.
15426         (lroundf): Define using libm_alias_float.
15427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
15428         Include <libm-alias-float.h>.
15429         (modff): Define using libm_alias_float.
15430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
15431         Include <libm-alias-float.h>.
15432         (roundf): Define using libm_alias_float.
15433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
15434         Include <libm-alias-float.h>.
15435         (truncf): Define using libm_alias_float.
15436         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
15437         <libm-alias-float.h>.
15438         (llrintf): Define using libm_alias_float.
15439         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
15440         <libm-alias-float.h>.
15441         (llroundf): Define using libm_alias_float.
15442         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
15443         <libm-alias-float.h>.
15444         (ceilf): Define using libm_alias_float.
15445         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
15446         <libm-alias-float.h>.
15447         (floorf): Define using libm_alias_float.
15448         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
15449         <libm-alias-float.h>.
15450         (llroundf): Define using libm_alias_float.
15451         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
15452         <libm-alias-float.h>.
15453         (lroundf): Define using libm_alias_float.
15454         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
15455         <libm-alias-float.h>.
15456         (roundf): Define using libm_alias_float.
15457         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
15458         <libm-alias-float.h>.
15459         (truncf): Define using libm_alias_float.
15460         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
15461         <libm-alias-float.h>.
15462         (copysignf): Define using libm_alias_float.
15463         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
15464         <libm-alias-float.h>.
15465         (llrintf): Define using libm_alias_float.
15466         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
15467         <libm-alias-float.h>.
15468         (llroundf): Define using libm_alias_float.
15469         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
15470         <libm-alias-float.h>.
15471         (lrintf): Define using libm_alias_float.
15472         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
15473         <libm-alias-float.h>.
15474         (lroundf): Define using libm_alias_float.
15475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
15476         <libm-alias-float.h>.
15477         (ceilf): Define using libm_alias_float.
15478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
15479         <libm-alias-float.h>.
15480         (copysignf): Define using libm_alias_float.
15481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
15482         <libm-alias-float.h>.
15483         (cosf): Define using libm_alias_float.
15484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
15485         <libm-alias-float.h>.
15486         (floorf): Define using libm_alias_float.
15487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
15488         <libm-alias-float.h>.
15489         (llrintf): Define using libm_alias_float.
15490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
15491         <libm-alias-float.h>.
15492         (llroundf): Define using libm_alias_float.
15493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
15494         <libm-alias-float.h>.
15495         (logbf): Define using libm_alias_float.
15496         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
15497         <libm-alias-float.h>.
15498         (modff): Define using libm_alias_float.
15499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
15500         <libm-alias-float.h>.
15501         (roundf): Define using libm_alias_float.
15502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
15503         <libm-alias-float.h>.
15504         (sinf): Define using libm_alias_float.
15505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
15506         <libm-alias-float.h>.
15507         (truncf): Define using libm_alias_float.
15508         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
15509         <libm-alias-float.h>.
15510         (ceilf): Define using libm_alias_float.
15511         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
15512         <libm-alias-float.h>.
15513         (copysignf): Define using libm_alias_float.
15514         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
15515         <libm-alias-float.h>.
15516         (floorf): Define using libm_alias_float.
15517         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
15518         <libm-alias-float.h>.
15519         (llrintf): Define using libm_alias_float.
15520         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
15521         <libm-alias-float.h>.
15522         (llroundf): Define using libm_alias_float.
15523         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
15524         <libm-alias-float.h>.
15525         (nearbyintf): Define using libm_alias_float.
15526         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
15527         <libm-alias-float.h>.
15528         (rintf): Define using libm_alias_float.
15529         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
15530         <libm-alias-float.h>.
15531         (roundf): Define using libm_alias_float.
15532         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
15533         <libm-alias-float.h>.
15534         (truncf): Define using libm_alias_float.
15535         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
15536         <libm-alias-float.h>.
15537         (ceilf): Define using libm_alias_float.
15538         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
15539         <libm-alias-float.h>.
15540         (floorf): Define using libm_alias_float.
15541         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
15542         <libm-alias-float.h>.
15543         (llroundf): Define using libm_alias_float.
15544         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
15545         <libm-alias-float.h>.
15546         (roundf): Define using libm_alias_float.
15547         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
15548         <libm-alias-float.h>.
15549         (truncf): Define using libm_alias_float.
15550         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
15551         <libm-alias-float.h>.
15552         (copysignf): Define using libm_alias_float.
15553         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
15554         <libm-alias-float.h>.
15555         (llrintf): Define using libm_alias_float.
15556         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
15557         <libm-alias-float.h>.
15558         (llroundf): Define using libm_alias_float.
15559         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
15560         <libm-alias-float.h>.
15561         (cosf): Define using libm_alias_float.
15562         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
15563         <libm-alias-float.h>.
15564         (llrintf): Define using libm_alias_float.
15565         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
15566         <libm-alias-float.h>.
15567         (llroundf): Define using libm_alias_float.
15568         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
15569         <libm-alias-float.h>.
15570         (sinf): Define using libm_alias_float.
15572 2017-12-04  Florian Weimer  <fweimer@redhat.com>
15574         * support/check.h (TEST_COMPARE): Define.
15575         (support_test_compare_failure): Declare.
15576         * support/Makefile (libsupport-routines): Add
15577         support_test_compare_failure.
15578         (tests): Add tst-test_compare.
15579         * support /support_test_compare_failure.c: New file.
15580         * support/tst-test_compare.c: Likewise.
15582 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
15584         [BZ #22527]
15585         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
15586         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
15587         available, this rewrite of the collation rules does reproduce
15588         the test file in the same order.
15590 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
15592         [BZ #10580]
15593         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
15594         digraphs in the month and day names. Using single code points for
15595         digraphs is deprecated.  While there are dedicated Unicode
15596         codepoints, for the digraphs, these are included for backwards
15597         compatibility and modern texts use a sequence of Basic Latin
15598         characters. See: https://www.unicode.org/faq/ligature_digraph.html
15599         This makes the month and day names agree exactly with CLDR now,
15600         CLDR does not use the single code points for the digraphs either.
15602 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
15604         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
15606 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
15608         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
15609         of floor.
15611 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15613         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
15614         Define only for libc.so.
15616 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
15618         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15619         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
15620          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
15621         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
15622         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15624 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15626         [BZ #5997]
15627         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
15629 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
15631         [BZ libc/19170]
15632         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
15633         PREINIT_FUNCTION_WEAK is nonzero.
15634         (gmon_initializer): New function.  Put procedure label for it in
15635         .init_array section.
15636         (_init): Don't call PREINIT_FUNCTION.
15637         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
15638         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
15639         value when map argument is null.
15641         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
15642         depi instruction from PIC pc-relative sequence.
15643         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
15644         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
15645         (elf_machine_load_address): Likewise.
15646         (elf_machine_runtime_setup): Likewise.
15648 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
15650         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
15651         <libm-alias-double.h>.
15652         (logb): Define using libm_alias_double.
15653         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
15654         <libm-alias-double.h>.
15655         (copysign): Define using libm_alias_double.
15656         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
15657         <libm-alias-double.h>.
15658         (llrint): Define using libm_alias_double.
15659         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
15660         <libm-alias-double.h>.
15661         (llround): Define using libm_alias_double.
15662         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
15663         <libm-alias-double.h>.
15664         (lrint): Define using libm_alias_double.
15665         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
15666         <libm-alias-double.h>.
15667         (lround): Define using libm_alias_double.
15668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
15669         Include <libm-alias-double.h>.
15670         (copysign): Define using libm_alias_double.
15671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
15672         Include <libm-alias-double.h>.
15673         (llrint): Define using libm_alias_double.
15674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
15675         Include <libm-alias-double.h>.
15676         (llround): Define using libm_alias_double.
15677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
15678         <libm-alias-double.h>.
15679         (logb): Define using libm_alias_double.
15680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
15681         Include <libm-alias-double.h>.
15682         (lrint): Define using libm_alias_double.
15683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
15684         Include <libm-alias-double.h>.
15685         (lround): Define using libm_alias_double.
15686         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
15687         <libm-alias-double.h>.
15688         (llrint): Define using libm_alias_double.
15689         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
15690         <libm-alias-double.h>.
15691         (llround): Define using libm_alias_double.
15692         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
15693         <libm-alias-double.h>.
15694         (llround): Define using libm_alias_double.
15695         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
15696         <libm-alias-double.h>.
15697         (lround): Define using libm_alias_double.
15698         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
15699         <libm-alias-double.h>.
15700         (copysign): Define using libm_alias_double.
15701         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
15702         <libm-alias-double.h>.
15703         (llrint): Define using libm_alias_double.
15704         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
15705         <libm-alias-double.h>.
15706         (llround): Define using libm_alias_double.
15707         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
15708         <libm-alias-double.h>.
15709         (lrint): Define using libm_alias_double.
15710         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
15711         <libm-alias-double.h>.
15712         (lround): Define using libm_alias_double.
15713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
15714         <libm-alias-double.h>.
15715         (copysign): Define using libm_alias_double.
15716         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
15717         <libm-alias-double.h>.
15718         (llrint): Define using libm_alias_double.
15719         (lrint): Likewise.
15720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
15721         <libm-alias-double.h>.
15722         (llround): Define using libm_alias_double.
15723         (lround): Likewise.
15724         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
15725         <libm-alias-double.h>.
15726         (logb): Define using libm_alias_double.
15727         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
15728         <libm-alias-double.h>.
15729         (copysign): Define using libm_alias_double.
15730         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
15731         <libm-alias-double.h>.
15732         (llrint): Define using libm_alias_double.
15733         (lrint): Likewise.
15734         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
15735         <libm-alias-double.h>.
15736         (llround): Define using libm_alias_double.
15737         (lround): Likewise.
15738         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
15739         <libm-alias-double.h>.
15740         (llround): Define using libm_alias_double.
15741         (lround): Likewise.
15742         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
15743         <libm-alias-double.h>.
15744         (copysign): Define using libm_alias_double.
15745         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
15746         <libm-alias-double.h>.
15747         (llrint): Define using libm_alias_double.
15748         (lrint): Likewise.
15749         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
15750         <libm-alias-double.h>.
15751         (llround): Define using libm_alias_double.
15752         (lround): Likewise.
15753         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
15754         <libm-alias-double.h>.
15755         (llrint): Define using libm_alias_double.
15756         (lrint): Likewise.
15757         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
15758         <libm-alias-double.h>.
15759         (llround): Define using libm_alias_double.
15760         (lround): Likewise.
15762 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
15764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
15765         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
15766         compat symbol based on llround.
15768         * sysdeps/powerpc/power7/fpu/s_logb.c
15769         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
15770         symbol based on __logb, not on logb.
15771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
15772         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
15773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
15774         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
15776         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
15777         (rint): Define using libm_alias_double.
15778         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
15779         <libm-alias-double.h>.
15780         (modf): Define using libm_alias_double.
15781         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
15782         <libm-alias-double.h>.
15783         (ceil): Define using libm_alias_double.
15784         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
15785         <libm-alias-double.h>.
15786         (floor): Define using libm_alias_double.
15787         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
15788         <libm-alias-double.h>.
15789         (nearbyint): Define using libm_alias_double.
15790         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
15791         <libm-alias-double.h>.
15792         (rint): Define using libm_alias_double.
15793         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
15794         <libm-alias-double.h>.
15795         (round): Define using libm_alias_double.
15796         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
15797         <libm-alias-double.h>.
15798         (trunc): Define using libm_alias_double.
15799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
15800         <libm-alias-double.h>.
15801         (ceil): Define using libm_alias_double.
15802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
15803         Include <libm-alias-double.h>.
15804         (floor): Define using libm_alias_double.
15805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
15806         <libm-alias-double.h>.
15807         (modf): Define using libm_alias_double.
15808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
15809         Include <libm-alias-double.h>.
15810         (round): Define using libm_alias_double.
15811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
15812         Include <libm-alias-double.h>.
15813         (trunc): Define using libm_alias_double.
15814         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
15815         <libm-alias-double.h>.
15816         (ceil): Define using libm_alias_double.
15817         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
15818         <libm-alias-double.h>.
15819         (floor): Define using libm_alias_double.
15820         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
15821         <libm-alias-double.h>.
15822         (round): Define using libm_alias_double.
15823         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
15824         <libm-alias-double.h>.
15825         (trunc): Define using libm_alias_double.
15826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
15827         <libm-alias-double.h>.
15828         (ceil): Define using libm_alias_double.
15829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
15830         <libm-alias-double.h>.
15831         (floor): Define using libm_alias_double.
15832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
15833         <libm-alias-double.h>.
15834         (modf): Define using libm_alias_double.
15835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
15836         <libm-alias-double.h>.
15837         (round): Define using libm_alias_double.
15838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
15839         <libm-alias-double.h>.
15840         (trunc): Define using libm_alias_double.
15841         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
15842         <libm-alias-double.h>.
15843         (ceil): Define using libm_alias_double.
15844         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
15845         <libm-alias-double.h>.
15846         (floor): Define using libm_alias_double.
15847         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
15848         <libm-alias-double.h>.
15849         (nearbyint): Define using libm_alias_double.
15850         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
15851         <libm-alias-double.h>.
15852         (rint): Define using libm_alias_double.
15853         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
15854         <libm-alias-double.h>.
15855         (round): Define using libm_alias_double.
15856         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
15857         <libm-alias-double.h>.
15858         (trunc): Define using libm_alias_double.
15859         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
15860         <libm-alias-double.h>.
15861         (ceil): Define using libm_alias_double.
15862         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
15863         <libm-alias-double.h>.
15864         (floor): Define using libm_alias_double.
15865         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
15866         <libm-alias-double.h>.
15867         (round): Define using libm_alias_double.
15868         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
15869         <libm-alias-double.h>.
15870         (trunc): Define using libm_alias_double.
15872         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
15873         (fabs): Define using libm_alias_double.
15874         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
15875         (fma): Define using libm_alias_double.
15876         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
15877         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
15878         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
15879         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
15881 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15883         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
15885         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
15886         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
15887         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
15889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
15890         due redirect macro.
15892 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
15894         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
15896 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15898         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
15899         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
15900         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
15901         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
15903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15904         (libm-sysdep_routines): Add s_nearbyintf-generic and
15905         s_nearbyint-generic.
15906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
15907         New file.
15908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
15909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
15910         Likewise.
15911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
15912         Likewise.
15913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
15914         file.
15915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
15916         Likewise.
15918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15919         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
15920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
15921         file.
15922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
15923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
15924         Likewise.
15925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
15926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
15927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
15929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15930         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
15931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
15932         file.
15933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
15934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
15935         Likewise.
15936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
15937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
15938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
15940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15941         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
15942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
15943         file.
15944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
15945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
15946         Likewise.
15947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
15948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
15949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
15951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15952         (sysdep_calls): New rule.
15953         (sysdep_routines): Use sysdep_calls as base.
15954         (libm-sysdep_routines): Add generic rule for symbols shared with
15955         libc.  Add s_copysign-generic and s_copysign-generic objects.
15956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
15957         New file.
15958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
15959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
15960         Likewise.
15961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
15962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
15963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
15965 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
15967         [BZ #22519]
15968         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
15969         the list of locales to be built for testing.
15970         * localedata/is_IS.UTF-8.in: New file.
15971         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
15972         on iso14651_t1.
15974 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
15976         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
15977         <libm-alias-float.h>.
15978         (fabsf): Define using libm_alias_float.
15980 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
15982         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
15984 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
15986         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
15987         <libm-alias-float.h>.
15988         (fabsf): Define using libm_alias_float.
15989         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
15990         <libm-alias-float.h>.
15991         (lrintf): Define using libm_alias_float.
15992         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
15993         <libm-alias-float.h>.
15994         (rintf): Define using libm_alias_float.
15996         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
15997         <libm-alias-double.h>.
15998         (fabs): Define using libm_alias_double.
15999         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
16000         <libm-alias-double.h>.
16001         (lrint): Define using libm_alias_double.
16002         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
16003         <libm-alias-double.h>.
16004         (rint): Define using libm_alias_double.
16006         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
16007         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
16008         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
16009         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
16010         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
16011         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
16012         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
16013         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
16014         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
16015         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
16016         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
16017         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
16018         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
16019         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
16020         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
16021         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
16022         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
16023         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
16024         s_atan_template.c.
16025         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
16026         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
16027         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
16028         s_ceil_template.c.
16029         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
16030         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
16031         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
16032         s_cos_template.c.
16033         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
16034         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
16035         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
16036         s_expm1_template.c.
16037         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
16038         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
16039         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
16040         s_fabs_template.c.
16041         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
16042         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
16043         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
16044         s_floor_template.c.
16045         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
16046         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
16047         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
16048         s_frexp_template.c.
16049         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
16050         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
16051         s_lrint_template.c.
16052         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
16053         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
16054         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
16055         s_modf_template.c.
16056         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
16057         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
16058         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
16059         s_nearbyint_template.c.
16060         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
16061         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
16062         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
16063         s_remquo_template.c.
16064         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
16065         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
16066         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
16067         s_rint_template.c.
16068         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
16069         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
16070         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
16071         s_sin_template.c.
16072         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
16073         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
16074         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
16075         s_sincos_template.c.
16076         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
16077         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
16078         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
16079         s_tan_template.c.
16080         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
16081         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
16082         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
16083         s_tanh_template.c.
16084         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
16085         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
16086         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
16087         s_trunc_template.c.
16088         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
16089         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
16090         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
16091         s_atan.c instead of including s_atan.c.
16092         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
16093         s_atanf.c instead of including s_atanf.c.
16094         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
16095         s_atanl.c instead of including s_atanl.c.
16096         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
16097         instead of s_atan.c.
16098         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
16099         instead of s_atanf.c.
16100         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
16101         instead of s_atanl.c.
16103         * scripts/update-copyrights: Do not handle intl/plural.c
16104         specially.
16106 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
16108         [BZ #22432]
16109         * configure.ac (BISON): Require to be present.
16110         * configure: Regenerated.
16111         * intl/Makefile (generated): Add plural.c.
16112         [$(BISON) != no]: Make code unconditional.
16113         (plural.c): Change rule to $(objpfx)plural.c.
16114         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
16115         * intl/plural.c: Remove.
16116         * manual/install.texi (Tools for Compilation): Document bison as
16117         required.
16118         * INSTALL: Regenerated.
16120 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
16122         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
16123         <libm-alias-double.h>.
16124         (llrint): Define using libm_alias_double.
16125         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
16126         <libm-alias-float.h>.
16127         (llrintf): Define using libm_alias_float.
16128         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
16129         <libm-alias-ldouble.h>.
16130         (llrintl): Define using libm_alias_ldouble.
16132         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
16133         declare_mgen_alias instead of weak_alias.
16134         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
16135         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
16136         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
16138 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16140         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16141         Add add_n-generic.
16142         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
16143         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
16144         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
16146         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16147         Add submul_1-generic.
16148         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
16149         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
16150         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
16152         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16153         Add addmul_1-generic.
16154         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
16155         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
16156         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
16158         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16159         Add sub_n-generic.
16160         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
16161         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
16162         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
16164         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16165         Add mul_1-generic.
16166         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
16167         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
16168         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
16170 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
16172         According to CLDR, collation rules for Serbian and Bosnian
16173         should be the same as for Croatian.
16175         [BZ #22534]
16176         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
16177         and to the list of locales to be built for testing.
16178         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
16179         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
16180         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
16181         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
16183 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
16185         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
16186         to make test case pass.
16187         * localedata/hr_HR.UTF-8.in: Add more test strings.
16189 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
16191         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
16193 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
16195         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
16196         the list of locales to built for testing.
16197         * localedata/hr_HR.UTF-8.in: New file.
16199 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
16201         [BZ #10580]
16202         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
16203         iso14651_t1.
16204         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
16205         CLDR (except use ligatures for the digraphs, CLDR does not use
16206         the ligatures), add first_workday, some fixes in the date and time
16207         formats.
16208         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
16209         for Đ and đ.
16210         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
16211         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
16212         Add int_p_cs_precedes and int_n_cs_precedes.
16213         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
16214         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
16215         LC_MONETARY now).
16216         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
16217         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
16218         name_miss.
16219         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
16220         and lang_lib. Change postal_fmt.
16222 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
16224         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
16225         <setjmp.h>.
16226         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
16227         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
16228         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
16229         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
16230         * sysdeps/generic/setjmpP.h: New file.
16231         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
16232         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
16233         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
16234         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
16235         Add jmp_buf-ssp.sym.
16236         (tests): Add tst-saved_mask-1.
16238 2017-11-30  Arjun Shankar  <arjun@redhat.com>
16240         [BZ #22375]
16241         CVE-2017-17426
16242         * malloc/malloc.c (__libc_malloc): Use checked_request2size
16243         instead of request2size.
16245 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
16247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
16248         (__lllrint): Remove alias.
16249         (lllrint): Likewise.
16250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
16251         (__lllrintf): Likewise.
16252         (lllrintf): Likewise.
16254         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
16255         <libm-alias-float.h>.
16256         (copysignf): Define using libm_alias_float.
16257         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
16258         <libm-alias-float.h>.
16259         (fabsf): Define using libm_alias_float.
16260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
16261         Include <libm-alias-float.h>.
16262         (copysignf): Define using libm_alias_float.
16263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
16264         <libm-alias-float.h>.
16265         (fabsf): Define using libm_alias_float.
16266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
16267         <libm-alias-float.h>.
16268         (fdimf): Define using libm_alias_float.
16269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
16270         <libm-alias-float.h>.
16271         (fmaf): Define using libm_alias_float.
16272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
16273         <libm-alias-float.h>.
16274         (llrintf): Define using libm_alias_float.
16275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
16276         Include <libm-alias-float.h>.
16277         (nearbyintf): Define using libm_alias_float.
16278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
16279         <libm-alias-float.h>.
16280         (rintf): Define using libm_alias_float.
16281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
16282         <libm-alias-float.h>.
16283         (llrintf): Define using libm_alias_float.
16284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
16285         <libm-alias-float.h>.
16286         (lrintf): Define using libm_alias_float.
16287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
16288         <libm-alias-float.h>.
16289         (nearbyintf): Define using libm_alias_float.
16290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
16291         <libm-alias-float.h>.
16292         (rintf): Define using libm_alias_float.
16293         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
16294         <libm-alias-float.h>.
16295         (ceilf): Define using libm_alias_float.
16296         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
16297         <libm-alias-float.h>.
16298         (floorf): Define using libm_alias_float.
16299         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
16300         <libm-alias-float.h>.
16301         (fmaf): Define using libm_alias_float.
16302         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
16303         <libm-alias-float.h>.
16304         (lrintf): Define using libm_alias_float.
16305         (llrintf): Likewise.
16306         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
16307         <libm-alias-float.h>.
16308         (nearbyintf): Define using libm_alias_float.
16309         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
16310         <libm-alias-float.h>.
16311         (rintf): Define using libm_alias_float.
16312         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
16313         <libm-alias-float.h>.
16314         (truncf): Define using libm_alias_float.
16315         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
16316         <libm-alias-float.h>.
16317         (copysignf): Define using libm_alias_float.
16318         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
16319         <libm-alias-float.h>.
16320         (fabsf): Define using libm_alias_float.
16321         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
16322         <libm-alias-float.h>.
16323         (lrintf): Define using libm_alias_float.
16324         (llrintf): Likewise.
16325         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
16326         <libm-alias-float.h>.
16327         (nearbyintf): Define using libm_alias_float.
16328         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
16329         <libm-alias-float.h>.
16330         (rintf): Define using libm_alias_float.
16332 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
16334         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
16335         <libm-alias-double.h>.
16336         (copysign): Define using libm_alias_double.
16337         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
16338         <libm-alias-double.h>.
16339         (fabs): Define using libm_alias_double.
16340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
16341         Include <libm-alias-double.h>.
16342         (copysign): Define using libm_alias_double.
16343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
16344         <libm-alias-double.h>.
16345         (fabs): Define using libm_alias_double.
16346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
16347         <libm-alias-double.h>.
16348         (fdim): Define using libm_alias_double.
16349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
16350         <libm-alias-double.h>.
16351         (fma): Define using libm_alias_double.
16352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
16353         <libm-alias-double.h>.
16354         (llrint): Define using libm_alias_double.
16355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
16356         Include <libm-alias-double.h>.
16357         (nearbyint): Define using libm_alias_double.
16358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
16359         <libm-alias-double.h>.
16360         (rint): Define using libm_alias_double.
16361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
16362         <libm-alias-double.h>.
16363         (fabs): Define using libm_alias_double.
16364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
16365         <libm-alias-double.h>.
16366         (llrint): Define using libm_alias_double.
16367         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
16368         <libm-alias-double.h>.
16369         (nearbyint): Define using libm_alias_double.
16370         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
16371         <libm-alias-double.h>.
16372         (rint): Define using libm_alias_double.
16373         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
16374         <libm-alias-double.h>.
16375         (ceil): Define using libm_alias_double.
16376         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
16377         <libm-alias-double.h>.
16378         (floor): Define using libm_alias_double.
16379         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
16380         <libm-alias-double.h>.
16381         (fma): Define using libm_alias_double.
16382         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
16383         <libm-alias-double.h>.
16384         (lrint): Define using libm_alias_double.
16385         (llrint): Likewise.
16386         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
16387         <libm-alias-double.h>.
16388         (nearbyint): Define using libm_alias_double.
16389         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
16390         <libm-alias-double.h>.
16391         (rint): Define using libm_alias_double.
16392         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
16393         <libm-alias-double.h>.
16394         (trunc): Define using libm_alias_double.
16395         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
16396         <libm-alias-double.h>.
16397         (copysign): Define using libm_alias_double.
16398         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
16399         <libm-alias-double.h>.
16400         (fabs): Define using libm_alias_double.
16401         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
16402         <libm-alias-double.h>.
16403         (lrint): Define using libm_alias_double.
16404         (llrint): Likewise.
16405         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
16406         <libm-alias-double.h>.
16407         (nearbyint): Define using libm_alias_double.
16408         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
16409         <libm-alias-double.h>.
16410         (rint): Define using libm_alias_double.
16412         [BZ #22229]
16413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
16414         <math_ldbl_opt.h>.
16415         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
16417         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16418         SPARC --disable-multi-arch glibc variants.
16420         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
16421         <libm-alias-float.h>.
16422         (exp2f): Define using libm_alias_float, or libm_alias_float_other
16423         if [SHARED].
16424         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
16425         <libm-alias-float.h>.
16426         (exp2f): Define using libm_alias_float, or libm_alias_float_other
16427         if [SHARED].
16428         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
16429         <libm-alias-float.h>.
16430         (exp2f): Define using libm_alias_float, or libm_alias_float_other
16431         if [SHARED].
16432         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
16433         <libm-alias-float.h>.
16434         (exp2f): Define using libm_alias_float, or libm_alias_float_other
16435         if [SHARED].
16436         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
16437         <libm-alias-float.h>.
16438         (exp2f): Define using libm_alias_float, or libm_alias_float_other
16439         if [SHARED].
16440         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
16441         <libm-alias-float.h>.
16442         (ceilf): Define using libm_alias_float.
16443         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
16444         <libm-alias-float.h>.
16445         (floorf): Define using libm_alias_float.
16446         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
16447         <libm-alias-float.h>.
16448         (fmaf): Define using libm_alias_float.
16449         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
16450         <libm-alias-float.h>.
16451         (nearbyintf): Define using libm_alias_float.
16452         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
16453         <libm-alias-float.h>.
16454         (rintf): Define using libm_alias_float.
16455         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
16456         <libm-alias-float.h>.
16457         (truncf): Define using libm_alias_float.
16458         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
16459         (copysignf): Define using libm_alias_float.
16460         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
16461         (cosf): Define using libm_alias_float.
16462         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
16463         (fabsf): Define using libm_alias_float.
16464         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
16465         (fmaxf): Define using libm_alias_float.
16466         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
16467         (fminf): Define using libm_alias_float.
16468         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
16469         (llrintf): Define using libm_alias_float.
16470         [!__ILP32__] (lrintf): Likewise.
16471         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
16472         (sincosf): Define using libm_alias_float.
16473         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
16474         (sinf): Define using libm_alias_float.
16475         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
16476         (lrintf): Define using libm_alias_float.
16478         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
16479         <libm-alias-double.h>.
16480         (atan): Define using libm_alias_double.
16481         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
16482         <libm-alias-double.h>.
16483         (ceil): Define using libm_alias_double.
16484         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
16485         <libm-alias-double.h>.
16486         (floor): Define using libm_alias_double.
16487         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
16488         <libm-alias-double.h>.
16489         (fma): Define using libm_alias_double.
16490         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
16491         <libm-alias-double.h>.
16492         (nearbyint): Define using libm_alias_double.
16493         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
16494         <libm-alias-double.h>.
16495         (rint): Define using libm_alias_double.
16496         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
16497         <libm-alias-double.h>.
16498         (sin): Define using libm_alias_double.
16499         (cos): Likewise.
16500         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
16501         <libm-alias-double.h>.
16502         (tan): Define using libm_alias_double.
16503         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
16504         <libm-alias-double.h>.
16505         (trunc): Define using libm_alias_double.
16506         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
16507         (copysign): Define using libm_alias_double.
16508         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
16509         (fabs): Define using libm_alias_double.
16510         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
16511         (fmax): Define using libm_alias_double.
16512         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
16513         (fmin): Define using libm_alias_double.
16514         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
16515         (llrint): Define using libm_alias_double.
16516         [!__ILP32__] (lrint): Likewise.
16517         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
16518         (lrint): Define using libm_alias_double.
16520 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16522         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
16523         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
16524         objects.
16525         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
16526         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
16527         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
16528         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
16529         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
16530         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
16532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
16533         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
16534         objects.
16535         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
16536         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
16537         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
16538         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
16539         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
16540         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
16542         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
16543         (libm-sysdep_routines): Add s_nearbyint-generic and
16544         s_nearbyintf-generic objects.
16545         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
16546         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
16547         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
16548         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
16549         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
16550         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
16552         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
16553         Add s_finitef-generic and s_finite-generic objects.
16554         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
16555         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
16556         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
16557         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
16558         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
16559         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
16561         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
16562         Add s_isinff-generic and s_isinf-generic objects.
16563         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
16564         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
16565         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
16566         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
16567         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
16568         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
16570         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
16571         Add s_isnanf-generic and s_isnan-generic objects.
16572         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
16573         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
16574         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
16575         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
16576         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
16577         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
16579         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
16580         macro.
16581         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
16582         rule.
16583         (sysdep_routines): Use sysdep_calls as base.
16584         (libm-sysdep_routines): Add generic rule for symbols shared with
16585         libc.  Add s_signbit-generic and s_signbitf-generic objects.
16586         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
16587         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
16588         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
16589         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
16590         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
16591         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
16593 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
16595         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
16596         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
16597         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
16598         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
16599         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
16600         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
16601         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
16602         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
16603         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
16604         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
16605         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
16606         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
16607         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
16608         libm_alias_float_r.
16609         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
16610         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
16611         (logf): Likewise.
16612         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
16613         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
16614         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
16615         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
16616         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
16617         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
16618         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
16619         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
16620         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
16621         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
16622         libm_alias_float.
16623         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
16624         (cosf): Likewise.
16625         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
16626         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
16627         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
16628         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
16629         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
16630         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
16631         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
16632         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
16633         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
16634         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
16635         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
16636         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
16637         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
16638         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
16639         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
16640         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
16641         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
16642         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
16643         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
16644         libm_alias_float.
16645         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
16646         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
16647         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
16648         * sysdeps/ia64/fpu/w_lgammaf_main.c
16649         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
16650         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
16652 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
16653             Alexandre Oliva  <aoliva@redhat.com>
16655         [BZ #17750]
16656         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
16657         * localedata/fr_CA.UTF-8.in: New file with test data for backward
16658         accents sorting.
16659         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
16660         sorting.
16661         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
16662         * localedata/locales/de_DE (LC_COLLATE): Likewise.
16663         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
16664         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
16665         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
16666         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
16667         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
16668         instead of “ifdef DIACRIT_BACKWARD”.
16670 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16672         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
16673         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
16674         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
16675         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
16676         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
16677         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
16678         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
16679         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
16680         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
16681         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
16682         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
16683         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
16684         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
16685         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
16686         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
16687         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
16688         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
16689         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
16690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16691         ($(have-as-vis3) == yes): Remove conditional.
16692         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
16693         Likewise.
16694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
16695         file.
16696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
16697         file.
16698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
16699         file.
16700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
16701         file.
16702         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
16703         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
16704         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
16705         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
16706         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
16707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
16708         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
16709         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
16711 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
16713         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
16714         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
16715         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
16716         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
16717         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
16718         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
16719         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
16720         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
16721         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
16722         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
16723         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
16724         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
16725         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
16726         libm_alias_double_r.
16727         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
16728         (log): Likewise.
16729         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
16730         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
16731         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
16732         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
16733         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
16734         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
16735         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
16736         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
16737         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
16738         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
16739         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
16740         libm_alias_double.
16741         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
16742         (cos): Likewise.
16743         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
16744         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
16745         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
16746         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
16747         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
16748         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
16749         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
16750         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
16751         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
16752         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
16753         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
16754         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
16755         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
16756         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
16757         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
16758         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
16759         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
16760         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
16761         libm_alias_double.
16762         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
16763         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
16764         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
16765         * sysdeps/ia64/fpu/w_lgamma_main.c
16766         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
16767         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
16769 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
16771         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
16772         address of $global$ into %dp register earlier.  Use pc-relative
16773         instruction sequence for PIC case.
16775 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
16777         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
16778         (asinhf): Define using libm_alias_float.
16779         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
16780         (atanf): Define using libm_alias_float.
16781         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
16782         (cbrtf): Define using libm_alias_float.
16783         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
16784         (ceilf): Define using libm_alias_float.
16785         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
16786         (copysignf): Define using libm_alias_float.
16787         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
16788         (expm1f): Define using libm_alias_float.
16789         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
16790         (fabsf): Define using libm_alias_float.
16791         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
16792         (floorf): Define using libm_alias_float.
16793         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
16794         (fmaxf): Define using libm_alias_float.
16795         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
16796         (fminf): Define using libm_alias_float.
16797         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
16798         (frexpf): Define using libm_alias_float.
16799         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
16800         (llrintf): Define using libm_alias_float.
16801         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
16802         (logbf): Define using libm_alias_float.
16803         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
16804         (lrintf): Define using libm_alias_float.
16805         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
16806         (nearbyintf): Define using libm_alias_float.
16807         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
16808         (remquof): Define using libm_alias_float.
16809         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
16810         (rintf): Define using libm_alias_float.
16811         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
16812         (truncf): Define using libm_alias_float.
16813         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
16814         <libm-alias-float.h>.
16815         (exp2f): Define using libm_alias_float, or libm_alias_float_other
16816         if [SHARED].
16817         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
16818         <libm-alias-float.h>.
16819         (expf): Define using libm_alias_float, or libm_alias_float_other
16820         if [SHARED].
16821         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
16822         <libm-alias-float.h>.
16823         (log2f): Define using libm_alias_float, or libm_alias_float_other
16824         if [SHARED].
16825         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
16826         <libm-alias-float.h>.
16827         (logf): Define using libm_alias_float, or libm_alias_float_other
16828         if [SHARED].
16829         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
16830         <libm-alias-float.h>.
16831         (powf): Define using libm_alias_float, or libm_alias_float_other
16832         if [SHARED].
16833         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
16834         <libm-alias-float.h>.
16835         (cosf): Define using libm_alias_float.
16836         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
16837         <libm-alias-float.h>.
16838         (sincosf): Define using libm_alias_float.
16839         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
16840         <libm-alias-float.h>.
16841         (sinf): Define using libm_alias_float.
16842         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
16843         (fmaxf): Define using libm_alias_float.
16844         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
16845         (fminf): Define using libm_alias_float.
16846         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16847         <libm-alias-float.h>.
16848         (fmaf): Define using libm_alias_float.
16850         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
16851         (asinh): Define using libm_alias_double.
16852         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
16853         (atan): Define using libm_alias_double.
16854         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
16855         (cbrt): Define using libm_alias_double.
16856         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
16857         (ceil): Define using libm_alias_double.
16858         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
16859         (copysign): Define using libm_alias_double.
16860         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
16861         (expm1): Define using libm_alias_double.
16862         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
16863         (fabs): Define using libm_alias_double.
16864         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
16865         (fdim): Define using libm_alias_double.
16866         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
16867         (floor): Define using libm_alias_double.
16868         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
16869         (fmax): Define using libm_alias_double.
16870         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
16871         (fmin): Define using libm_alias_double.
16872         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
16873         (frexp): Define using libm_alias_double.
16874         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
16875         (llrint): Define using libm_alias_double.
16876         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
16877         (logb): Define using libm_alias_double.
16878         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
16879         (lrint): Define using libm_alias_double.
16880         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
16881         (nearbyint): Define using libm_alias_double.
16882         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
16883         (remquo): Define using libm_alias_double.
16884         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
16885         (rint): Define using libm_alias_double.
16886         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
16887         (trunc): Define using libm_alias_double.
16888         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
16889         (fmax): Define using libm_alias_double.
16890         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
16891         (fmin): Define using libm_alias_double.
16892         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
16893         (fma): Define using libm_alias_double.
16895 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
16897         [BZ #22370]
16898         * elf/dl-hwcaps.c (ROUND): Removed.
16899         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
16900         and ELF_NOTE_NEXT_OFFSET.
16901         * elf/dl-load.c (ROUND): Removed.
16902         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
16903         * elf/readelflib.c (ROUND): Removed.
16904         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
16905         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
16906         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
16907         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
16909 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
16911         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
16912         [!__fmaf] (fmaf): Define using libm_alias_float.
16914         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
16915         [!__fma] (fma): Define using libm_alias_double.
16916         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
16918 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
16920         [BZ #22336]
16921         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
16922         and implement the collation rules for cs from CLDR on top of that.
16923         * Makefile: Add cs_CZ.UTF-8 to test-input.
16924         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
16926 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16928         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
16930 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
16931             Icarus Sparry  <icarus.w.sparry@intel.com>
16933         * benchtests/Makefile:Add BENCHSET to allow subsets of
16934         benchmarks to be run.
16935         * benchtests/README: Add documentation for: Running subsets of
16936         benchmarks.
16938 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
16940         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
16941         range of tests names.
16943         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
16944         result from property and remove "max", min" and "mean" from
16945         required properties based on benchtests/bench-skeleton.c.
16947 2017-11-28  Florian Weimer  <fweimer@redhat.com>
16949         [BZ #20826]
16950         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
16951         due to Internet requirement.
16952         * posix/Makefile (tests): Remove tst-getaddrinfo4,
16953         tst-getaddrinfo5.
16954         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
16956 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16958         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
16959         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
16960         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
16961         (sysdep_routines): Add memset-ultra1.
16962         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
16963         file.
16964         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
16965         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
16966         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
16967         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
16968         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
16969         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
16970         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
16971         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16973         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
16974         file.
16975         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
16976         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
16977         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
16978         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
16979         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
16980         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
16981         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
16982         macro.
16983         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
16984         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
16985         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
16986         (sysdep_routines): Add memcpy-ultra1.
16987         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
16988         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
16990 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
16992         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
16993         (cfloat_versions): Take function argument without trailing 'f'.
16994         Call libm_alias_float_other.
16995         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
16996         * sysdeps/alpha/fpu/cargf.c: Likewise.
16997         * sysdeps/alpha/fpu/cimagf.c: Likewise.
16998         * sysdeps/alpha/fpu/conjf.c: Likewise.
16999         * sysdeps/alpha/fpu/crealf.c: Likewise.
17000         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
17001         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
17002         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
17003         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
17004         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
17005         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
17006         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
17007         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
17008         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
17009         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
17010         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
17011         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
17012         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
17013         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
17014         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
17015         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
17016         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
17017         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
17018         (clog10f): Use libm_alias_float_other.
17019         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17020         (ceilf): Define using libm_alias_float.
17021         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
17022         (copysignf): Define using libm_alias_float.
17023         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17024         (fabsf): Define using libm_alias_float.
17025         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
17026         (floorf): Define using libm_alias_float.
17027         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
17028         (fmaxf): Define using libm_alias_float.
17029         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
17030         (fminf): Define using libm_alias_float.
17031         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
17032         (lrintf): Define using libm_alias_float.
17033         (llrintf): Likewise.
17034         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
17035         (lroundf): Define using libm_alias_float.
17036         (llroundf): Likewise.
17037         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
17038         (rintf): Define using libm_alias_float.
17039         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
17040         (truncf): Define using libm_alias_float.
17042         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17043         (ceilf): Define using libm_alias_float.
17044         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
17045         (floorf): Define using libm_alias_float.
17046         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
17047         (fmaf): Define using libm_alias_float.
17048         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
17049         (fmaxf): Define using libm_alias_float.
17050         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
17051         (fminf): Define using libm_alias_float.
17052         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
17053         (llrintf): Define using libm_alias_float.
17054         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
17055         (llroundf): Define using libm_alias_float.
17056         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
17057         (lrintf): Define using libm_alias_float.
17058         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
17059         (lroundf): Define using libm_alias_float.
17060         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
17061         <libm-alias-float.h>.
17062         (nearbyintf): Define using libm_alias_float.
17063         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
17064         (rintf): Define using libm_alias_float.
17065         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
17066         (roundf): Define using libm_alias_float.
17067         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
17068         (truncf): Define using libm_alias_float.
17070         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
17071         (ceil): Define using libm_alias_double.
17072         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
17073         (copysign): Define using libm_alias_double.
17074         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
17075         (fabs): Define using libm_alias_double.
17076         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
17077         (floor): Define using libm_alias_double.
17078         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
17079         (fmax): Define using libm_alias_double.
17080         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
17081         (fmin): Define using libm_alias_double.
17082         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
17083         (lrint): Define using libm_alias_double.
17084         (llrint): Likewise.
17085         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
17086         (lround): Define using libm_alias_double.
17087         (llround): Likewise.
17088         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
17089         (rint): Define using libm_alias_double.
17090         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
17091         (trunc): Define using libm_alias_double.
17093         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
17094         (libm_alias_double_r): Add semicolon after weak_alias call.
17096 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
17098         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
17099         (ceil): Define using libm_alias_double.
17100         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
17101         (floor): Define using libm_alias_double.
17102         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
17103         (fma): Define using libm_alias_double.
17104         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
17105         (fmax): Define using libm_alias_double.
17106         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
17107         (fmin): Define using libm_alias_double.
17108         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
17109         (llrint): Define using libm_alias_double.
17110         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
17111         (llround): Define using libm_alias_double.
17112         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
17113         (lrint): Define using libm_alias_double.
17114         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
17115         (lround): Define using libm_alias_double.
17116         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
17117         (nearbyint): Define using libm_alias_double.
17118         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
17119         (rint): Define using libm_alias_double.
17120         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
17121         (round): Define using libm_alias_double.
17122         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
17123         (trunc): Define using libm_alias_double.
17125 2017-11-27  Florian Weimer  <fweimer@redhat.com>
17127         * sysdeps/unix/sysv/linux/mlock2.c: New file.
17128         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
17129         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
17130         (tests): Add tst-mlock2.
17131         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
17132         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
17133         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
17134         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
17135         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
17136         for mlock.  Document mlock2.
17138 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
17140         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
17141         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
17142         Likewise.
17143         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
17144         Likewise.
17145         * sysdeps/x86/Makeconfig: New file.
17146         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
17147         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17148         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
17149         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17150         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17151         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17152         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
17153         Likewise.
17154         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17155         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17156         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17157         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17158         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17159         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17160         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17161         * manual/math.texi (Mathematics): Document support for _Float64x.
17162         * math/Versions (GLIBC_2.27): Add _Float64x functions.
17163         * stdlib/Versions (GLIBC_2.27): Likewise.
17164         * wcsmbs/Versions (GLIBC_2.27): Likewise.
17165         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17166         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17167         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17168         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17169         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17170         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17171         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17172         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17173         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17174         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17175         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
17177         Likewise.
17178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
17179         Likewise.
17180         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17181         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17182         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17183         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17184         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17185         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17186         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17187         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17188         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17189         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17190         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17191         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17192         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
17193         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17195 2017-11-27  Andreas Schwab  <schwab@suse.de>
17197         * elf/Makefile (dl-routines): Add dl-sort-maps.
17198         * elf/dl-sort-maps.c: New file.
17199         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
17200         (_dl_sort_maps): Declare.
17201         * elf/dl-fini.c (_dl_sort_fini): Remove.
17202         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
17203         * elf/dl-close.c (_dl_close_worker): Likewise.
17204         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
17205         open-coding it.
17206         * elf/dl-open.c (dl_open_worker): Likewise.
17208 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
17210         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
17211         using libm_alias_float128.
17212         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
17213         Likewise.
17214         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
17215         Likewise.
17216         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
17217         (setpayloadsigf128): Likewise.
17218         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
17219         Likewise.
17220         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
17221         Likewise.
17223         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
17224         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
17225         -mfloat128 to CFLAGS.
17226         ($(foreach
17227         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
17228         Likewise.
17229         (CFLAGS-libm-test-support-float64x.c): New variable.
17230         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
17231         $(f128-loader-link) to gnulib-tests.
17233         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
17234         (libm_alias_float128_other_r): If
17235         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
17236         alias.
17237         (libm_alias_float128_r): Add semicolon after weak_alias call.
17238         * sysdeps/generic/libm-alias-ldouble.h
17239         (libm_alias_ldouble_other_r_f128): New macro.
17240         (libm_alias_ldouble_other_r_f64x): Likewise.
17241         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
17242         and libm_alias_ldouble_other_r_f64x.
17243         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
17244         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
17245         (libm_alias_ldouble_other_r_f128): New macro.
17246         (libm_alias_ldouble_other_r_f64x): Likewise.
17247         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
17248         and libm_alias_ldouble_other_r_f64x.
17250         * stdlib/strfroml.c: Always include <stdlib.h>.
17251         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
17252         undefine as macro and define as weak alias.
17253         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
17254         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
17255         <stdlib.h>.
17256         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
17257         Define and later undefine as macro and define as weak alias.
17259         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
17260         Define and later undefine as macro.  Define as weak alias if
17261         [!USE_WIDE_CHAR].
17262         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
17263         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
17264         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
17265         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
17266         Define and later undefine as macro.  Define as weak alias if
17267         [!USE_WIDE_CHAR].
17268         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
17269         Define and later undefine as macro.  Define as weak alias if
17270         [USE_WIDE_CHAR].
17271         * sysdeps/ieee754/float128/strtof128_l.c
17272         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
17273         Define and later undefine as macro.  Define as weak alias if
17274         [!USE_WIDE_CHAR].
17275         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
17276         Define and later undefine as macro.  Define as weak alias if
17277         [USE_WIDE_CHAR].
17278         * sysdeps/ieee754/ldbl-128/strtold_l.c
17279         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
17280         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
17281         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
17282         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
17283         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
17284         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
17285         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
17286         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
17287         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
17288         * sysdeps/ieee754/ldbl-96/strtold_l.c
17289         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
17290         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
17291         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
17292         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
17294         * math/test-float64x.h: New file.
17295         * math/Makefile (type-float64x-yes): New variable.
17296         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
17298         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
17299         function-like macro.
17300         (min_of_type_): Likewise.
17301         (min_of_type_l): Likewise.
17302         (min_of_type_f128): Likewise.
17303         (min_of_type): Pass () as last argument of __MATH_TG.
17305         * stdlib/tst-strtod-round-skeleton.c
17306         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
17307         headers.
17309         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
17310         for combinations of long double with _Float64 and _Float64x.
17312         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
17313         (__DECL_SIMD_cosf32): Likewise.
17314         (__DECL_SIMD_cosf64): Likewise.
17315         (__DECL_SIMD_cosf32x): Likewise.
17316         (__DECL_SIMD_cosf64x): Likewise.
17317         (__DECL_SIMD_cosf128x): Likewise.
17318         (__DECL_SIMD_sinf16): Likewise.
17319         (__DECL_SIMD_sinf32): Likewise.
17320         (__DECL_SIMD_sinf64): Likewise.
17321         (__DECL_SIMD_sinf32x): Likewise.
17322         (__DECL_SIMD_sinf64x): Likewise.
17323         (__DECL_SIMD_sinf128x): Likewise.
17324         (__DECL_SIMD_sincosf16): Likewise.
17325         (__DECL_SIMD_sincosf32): Likewise.
17326         (__DECL_SIMD_sincosf64): Likewise.
17327         (__DECL_SIMD_sincosf32x): Likewise.
17328         (__DECL_SIMD_sincosf64x): Likewise.
17329         (__DECL_SIMD_sincosf128x): Likewise.
17330         (__DECL_SIMD_logf16): Likewise.
17331         (__DECL_SIMD_logf32): Likewise.
17332         (__DECL_SIMD_logf64): Likewise.
17333         (__DECL_SIMD_logf32x): Likewise.
17334         (__DECL_SIMD_logf64x): Likewise.
17335         (__DECL_SIMD_logf128x): Likewise.
17336         (__DECL_SIMD_expf16): Likewise.
17337         (__DECL_SIMD_expf32): Likewise.
17338         (__DECL_SIMD_expf64): Likewise.
17339         (__DECL_SIMD_expf32x): Likewise.
17340         (__DECL_SIMD_expf64x): Likewise.
17341         (__DECL_SIMD_expf128x): Likewise.
17342         (__DECL_SIMD_powf16): Likewise.
17343         (__DECL_SIMD_powf32): Likewise.
17344         (__DECL_SIMD_powf64): Likewise.
17345         (__DECL_SIMD_powf32x): Likewise.
17346         (__DECL_SIMD_powf64x): Likewise.
17347         (__DECL_SIMD_powf128x): Likewise.
17349         * stdlib/Versions (libc): Move entries for wcstof128 and
17350         wcstof128_l to ....
17351         * wcsmbs/Versions (libc): ... here.
17352         Include <float128-abi.h>.
17354 2017-11-24  Florian Weimer  <fweimer@redhat.com>
17356         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17357         bits/mman-shared.h.
17358         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
17359         <bits/mman-shared.h>.
17360         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
17361         to ...
17362         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
17363         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
17364         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
17365         <bits/mman-shared.h>.
17367 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17369         [BZ #22457]
17370         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
17371         posix_memalign/free.
17372         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
17374 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
17376         [BZ #22469]
17377         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
17378         and implement the collation rules for pl from CLDR on top of that.
17379         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
17380         of locales to be built for testing.
17381         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
17383 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
17385         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
17386         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
17387         libm_alias_ldouble_other.
17388         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
17389         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
17390         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
17391         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
17392         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
17393         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
17394         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
17395         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
17396         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
17397         libm_alias_ldouble_r.
17398         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
17399         libm_alias_ldouble_other.
17400         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
17401         (log10l): Likewise.
17402         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
17403         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
17404         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
17405         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
17406         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
17407         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
17408         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
17409         (atan2l): Likewise.
17410         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
17411         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
17412         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
17413         libm_alias_ldouble.
17414         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
17415         (cosl): Likewise.
17416         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
17417         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
17418         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
17419         (expl): Likewise.
17420         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
17421         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
17422         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
17423         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
17424         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
17425         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
17426         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
17427         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
17428         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
17429         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
17430         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
17431         libm_alias_ldouble.
17432         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
17433         libm_alias_ldouble_other.
17434         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
17435         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
17436         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
17437         libm_alias_ldouble.
17438         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
17439         libm_alias_ldouble_other.
17440         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
17441         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
17442         * sysdeps/ia64/fpu/w_lgammal_main.c
17443         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
17444         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
17446 2017-11-23  Florian Weimer  <fweimer@redhat.com>
17448         * malloc/malloc.c (tcache_thread_shutdown): Rename from
17449         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
17450         alike.  Remove freeres marker.
17451         * malloc/arena.c (arena_thread_freeres): Call
17452         tcache_thread_shutdown.
17454 2017-11-23  Florian Weimer  <fweimer@redhat.com>
17456         [BZ #22459]
17457         Export nscd hash function as __nss_hash.
17458         * include/nss.h (__nss_hash): Declare.
17459         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
17460         symbol.
17461         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
17462         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
17463         of __nscd_hash.
17464         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
17465         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
17466         * nss/Makefiles (routines): Add nss_hash.
17467         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
17468         * nss/nss_hash.c: Rename from nis/nis_hash.c.
17469         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
17470         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
17472 2017-11-23  Florian Weimer  <fweimer@redhat.com>
17474         [BZ #22478]
17475         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
17476         Return error code, not -1.
17477         * signal/tst-sigwait-eintr.c: New file.
17478         * signal/Makefile (tests): Add tst-sigwait-eintr.
17480 2017-11-23  Florian Weimer  <fweimer@redhat.com>
17482         Linux: Add memfd_create system call wrapper
17483         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
17484         tst-memfd_create.
17485         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
17486         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
17487         [__USE_GNU] (memfd_create): Declare.
17488         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
17489         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
17490         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
17491         * sysdeps/unix/sysv/linux/**.abilist: Update.
17492         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
17494 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
17496         * localedata/gen-locale.sh: Fix typo in variable name.
17498         * resolv/res_debug.c (p_secstodate): Condition definition on
17499         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
17500         directly as __p_secstodate, and as a compat symbol.  Do not use
17501         libresolv_hidden_def.
17502         * resolv/resolv.h (p_secstodate): Remove macro and function
17503         declaration.
17504         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
17505         using p_secstodate.
17506         * include/resolv.h (__p_secstodate): Do not use
17507         libresolv_hidden_proto.
17508         * resolv/Makefile (tests): Move tst-p_secstodate to ....
17509         (tests-internal): ... here.
17510         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
17511         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
17512         and declare and use __p_secstodate and use compat_symbol_reference
17513         in that case.
17514         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
17515         implementation returning 77.
17517         [BZ #22463]
17518         * resolv/res_debug.c: Include <libc-diag.h>.
17519         (p_secstodate): Assert time_t at least as wide as u_long.  On
17520         overflow, use integer seconds since the epoch as output, or use
17521         "<overflow>" as output and set errno to EOVERFLOW if integer
17522         seconds since the epoch would be 14 or more characters.
17523         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
17524         for sprintf call.
17525         * resolv/tst-p_secstodate.c: New file.
17526         * resolv/Makefile (tests): Add tst-p_secstodate.
17527         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
17529         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
17530         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
17531         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
17533 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17535         * posix/regcomp.c (init_word_char): Add comments.
17537 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
17539         [BZ #22447]
17540         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
17541         strlen to compute length of ut_user and set trailing NUL byte of
17542         result explicitly.
17544 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
17546         [BZ #15537]
17547         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
17548         using “copy "iso14651_t1"” and then implementing the
17549         collation rules for lv from CLDR on top of that.
17550         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
17551         of locales to be built for testing.
17552         * lv_LV.UTF-8.in: New file with test data to test the Latvian
17553         sorting.
17555 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
17557         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
17558         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
17559         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
17560         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
17561         [__USE_MISC] (MADV_HWPOISON): New macro.
17562         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
17564 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17566         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
17567         -Wmissing-braces on GCC 4.9.
17569 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
17571         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
17572         * sysdeps/s390/s390-32/start.S (_start): Likewise
17573         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
17574         (thread_start): Likewise.
17575         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
17576         (thread_start): Likewise.
17577         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
17578         (__makecontext_ret): Likewise.
17579         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
17580         (__makecontext_ret): Likewise.
17582 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
17584         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
17585         __wcschrnul): Remove attribute_hidden.
17587 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17589         regex: don't assume uint64_t or uint32_t
17590         This avoids -Werror=overflow errors for 32-bit systems in
17591         the 64-bit case.  Problem reported by Joseph Myers in:
17592         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
17593         Also, when this code is used in Gnulib it ports to platforms
17594         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
17595         them, and on some 32-bit compilers there is no uint64_t.
17596         Problem reported by Gianluigi Tiesi in:
17597         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
17598         * posix/regcomp.c (init_word_char): Don't assume that the types
17599         uint64_t and uint32_t exist.  Adapted from Gnulib patch
17600         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
17601         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
17603 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17605         * sysdeps/aarch64/memset-reg.h: New file.
17606         * sysdeps/aarch64/memset.S: Use it.
17607         (__memset): Rename to MEMSET macro.
17608         [ZVA_MACRO]: Use zva_macro.
17609         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17610         Add memset_generic and memset_falkor.
17611         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
17612         (__libc_ifunc_impl_list): Add memset ifuncs.
17613         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
17614         local variable zva_size.
17615         * sysdeps/aarch64/multiarch/memset.c: New file.
17616         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
17617         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
17618         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
17619         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
17620         (DCZID_DZP_MASK): New macro.
17621         (DCZID_BS_MASK): Likewise.
17622         (init_cpu_features): Read and set zva_size.
17623         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
17624         (struct cpu_features): New member zva_size.
17626         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
17627         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
17628         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
17630         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
17631         backwards.  Fix timing computation.
17632         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
17633         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
17634         on memset by N at a time.  Fix timing computation.
17636 2017-11-20  Florian Weimer  <fweimer@redhat.com>
17638         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
17639         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
17641 2017-11-19  Florian Weimer  <fweimer@redhat.com>
17643         manual: Document mprotect
17644         * manual/memory.texi (Memory Protection): New section.
17645         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
17646         documentation of PROT_* flags and reference the Memory Protection
17647         section instead.
17649 2017-11-19  Florian Weimer  <fweimer@redhat.com>
17651         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
17652         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
17653         (Scatter-Gather): ... to here.  Remove misleading comment.
17655 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
17657         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
17658         style.
17660         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
17661         when /proc/<pid>/setgroups does not exist.
17663 2017-11-18  Florian Weimer  <fweimer@redhat.com>
17665         * sysdeps/unix/sysv/linux/tst-ttyname.c
17666         (become_root_in_mount_ns): Remove.
17667         (do_in_chroot_1): Call support_enter_mount_namespace.
17668         (do_in_chroot_2): Likewise.
17669         (do_test): Call support_become_root early.
17671 2017-11-18  Florian Weimer  <fweimer@redhat.com>
17673         * support/namespace.h (support_enter_mount_namespace): Declare.
17674         * support/support_enter_mount_namespace.c: New file.
17675         * support/Makefile (libsupport-routines): Add
17676         support_enter_mount_namespace.
17678 2017-11-18  Florian Weimer  <fweimer@redhat.com>
17680         * support/temp_file.c (support_create_temp_directory): Use
17681         test_dir and do not rely on the presence of the XXXXXX suffix.
17682         * support/temp_file.h (support_create_temp_directory): Update
17683         comment.
17684         * support/tst-xreadlink.c (do_test): Adjust.
17685         * support/support_chroot.c (support_chroot_create): Likewise.
17687 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17689         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
17690         macro.
17691         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
17692         htm-no-suspend.
17694 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
17696         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
17697         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
17698         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
17699         (ceill): Define using libm_alias_ldouble.
17700         * sysdeps/x86_64/fpu/s_copysignl.S: Include
17701         <libm-alias-ldouble.h>.
17702         (copysignl): Define using libm_alias_ldouble.
17703         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
17704         (fabsl): Define using libm_alias_ldouble.
17705         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
17706         (floorl): Define using libm_alias_ldouble.
17707         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
17708         (fmaxl): Define using libm_alias_ldouble.
17709         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
17710         (fminl): Define using libm_alias_ldouble.
17711         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
17712         (llrintl): Define using libm_alias_ldouble.
17713         (lrintl): Likewise.
17714         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
17715         <libm-alias-ldouble.h>.
17716         (nearbyintl): Define using libm_alias_ldouble.
17717         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
17718         (truncl): Define using libm_alias_ldouble.
17719         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
17720         <libm-alias-ldouble.h>.
17721         (lrintl): Define using libm_alias_ldouble.
17723         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
17724         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
17725         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
17726         (asinhl): Define using libm_alias_ldouble.
17727         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
17728         (atanl): Define using libm_alias_ldouble.
17729         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
17730         (cbrtl): Define using libm_alias_ldouble.
17731         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
17732         (ceill): Define using libm_alias_ldouble.
17733         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
17734         (copysignl): Define using libm_alias_ldouble.
17735         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
17736         (fabsl): Define using libm_alias_ldouble.
17737         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
17738         (floorl): Define using libm_alias_ldouble.
17739         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
17740         (fmaxl): Define using libm_alias_ldouble.
17741         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
17742         (fminl): Define using libm_alias_ldouble.
17743         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
17744         (frexpl): Define using libm_alias_ldouble.
17745         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
17746         (llrintl): Define using libm_alias_ldouble.
17747         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
17748         (logbl): Define using libm_alias_ldouble.
17749         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
17750         (lrintl): Define using libm_alias_ldouble.
17751         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
17752         (nearbyintl): Define using libm_alias_ldouble.
17753         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
17754         (nextafterl): Define using libm_alias_ldouble.
17755         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
17756         (remquol): Define using libm_alias_ldouble.
17757         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
17758         (rintl): Define using libm_alias_ldouble.
17759         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
17760         (truncl): Define using libm_alias_ldouble.
17761         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
17762         (fmaxl): Define using libm_alias_ldouble.
17763         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
17764         (fminl): Define using libm_alias_ldouble.
17766         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
17767         to C syntax instead of availability and properties of types.
17768         * bits/floatn.h [!__ASSEMBLER]: Likewise.
17769         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
17770         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
17771         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
17772         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
17773         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
17775 2017-11-17  Florian Weimer  <fweimer@redhat.com>
17777         support_become_root: Enable file creation in namespaces.
17778         * support/support_become_root.c (setup_mapping): New function.
17779         (support_become_root): Call it.
17781 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
17783         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
17784         macro.
17786 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17788         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
17789         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
17791 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
17793         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
17795         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17796         version to 4.14.
17798 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17800         * INSTALL: Fix botched up regeneration.
17802         * NEWS: Update sourceare link to https.
17803         * configure.ac: Likewise.
17804         * crypt/md5test-giant.c: Likewise.
17805         * dlfcn/bug-atexit1.c: Likewise.
17806         * dlfcn/bug-atexit2.c: Likewise.
17807         * localedata/README: Likewise.
17808         * malloc/tst-mallocfork.c: Likewise.
17809         * manual/install.texi: Likewise.
17810         * nptl/tst-pthread-getattr.c: Likewise.
17811         * stdio-common/tst-fgets.c: Likewise.
17812         * stdio-common/tst-fwrite.c: Likewise.
17813         * sunrpc/Makefile: Likewise.
17814         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
17815         * wcsmbs/tst-mbrtowc2.c: Likewise.
17816         * configure: Regenerate.
17817         * INSTALL: Regenerate.
17819 2017-11-15  Martin Sebor  <msebor@redhat.com>
17821         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
17822         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
17823         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
17825 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
17827         [BZ #22145]
17828         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
17829         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
17831         [BZ #22145]
17832         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
17833         Defer is_pty check until end of the function.
17834         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17836         [BZ #22145]
17837         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
17838         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
17839         (ttyname): Likewise.
17840         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
17841         (__ttyname_r): Likewise.
17843         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
17844         int to bool.
17846         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
17848         * manual/terminal.texi (Is It a Terminal):
17849         Mention ENODEV for ttyname and ttyname_r.
17851 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
17853         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
17854         constant and macro.
17856         * sysdeps/unix/sysv/linux/bits/mman-linux.h
17857         [__USE_MISC] (MADV_WIPEONFORK): New macro.
17858         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
17859         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
17860         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
17861         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
17863 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17865         * signal/sigrelse.c (sigrelse): Optimize implementation.
17867         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
17868         (__sigpause): Rely on __sigsuspend to implement single thread
17869         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
17871 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
17873         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17874         kernel version to 4.14.
17876 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
17878         [BZ #22442]
17879         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
17880         Check if ifname is too long.
17882 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
17884         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
17886 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
17888         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
17889         was accidentally lost.
17891 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
17893         * localedata/locales/az_IR: Add standard copyright header.
17895 2017-11-15  Florian Weimer  <fweimer@redhat.com>
17897         [BZ #22439]
17898         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
17899         not just the top one.  Output a new "subheaps" statistic.
17901 2017-11-15  Florian Weimer  <fweimer@redhat.com>
17903         [BZ #22408]
17904         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
17905         under the per-arena lock.
17906         * malloc/Makefile (tests): Add tst-malloc_info.
17907         (tst-malloc_info): Link with libpthread.
17908         * malloc/tst-malloc_info.c: New file.
17910 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
17912         [BZ #21660]
17913         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
17914         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
17915         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
17916         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
17917         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
17918         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
17919         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
17920         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
17921         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
17922         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
17923         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
17924         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
17925         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
17926         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
17927         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
17928         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
17929         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
17930         (__floating_type): Likewise.
17931         (__real_integer_type): Likewise.
17932         (__complex_integer_type): Likewise.
17933         (__expr_is_real): Likewise.
17934         (__tgmath_real_type_sub): Likewise.
17935         (__tgmath_real_type): Likewise.
17936         (__tgmath_complex_type_sub): Likewise.
17937         (__tgmath_complex_type): Likewise.
17938         (__TGMATH_F128): Likewise.
17939         (__TGMATH_CF128): Likewise.
17940         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
17941         new macros.
17942         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
17943         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
17944         Likewise.
17945         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
17946         Likewise.
17947         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
17948         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
17949         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
17950         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
17951         Likewise.
17952         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
17953         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
17954         Likewise.
17955         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
17956         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
17957         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
17958         Likewise.
17959         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
17960         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
17961         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
17962         (cimag): Likewise.
17963         (creal): Likewise.
17965 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
17967         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
17968         for stpncpy calls for GCC 8.
17969         (test_strncat): Disable -Wstringop-truncation warning for strncat
17970         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
17971         strncat call for GCC 7.
17972         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
17973         calls for GCC 8.
17974         (test_memcmp): Use memcpy instead of strncpy for calls not copying
17975         trailing NUL.
17977         * string/bug-strncat1.c: Include <libc-diag.h>.
17978         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
17980 2017-11-13  Claude Paroz  <claude@2xlibre.net>
17982         [BZ #22387]
17983         * localedata/locales/aa_DJ: Improved readibility by replacing
17984         <Uxxxx> sequences in the ASCII printable range by their ASCII
17985         character equivalents.
17986         * localedata/locales/aa_ER: Likewise.
17987         * localedata/locales/aa_ER@saaho: Likewise.
17988         * localedata/locales/aa_ET: Likewise.
17989         * localedata/locales/af_ZA: Likewise.
17990         * localedata/locales/agr_PE: Likewise.
17991         * localedata/locales/ak_GH: Likewise.
17992         * localedata/locales/am_ET: Likewise.
17993         * localedata/locales/anp_IN: Likewise.
17994         * localedata/locales/ar_AE: Likewise.
17995         * localedata/locales/ar_BH: Likewise.
17996         * localedata/locales/ar_DZ: Likewise.
17997         * localedata/locales/ar_EG: Likewise.
17998         * localedata/locales/ar_IN: Likewise.
17999         * localedata/locales/ar_IQ: Likewise.
18000         * localedata/locales/ar_JO: Likewise.
18001         * localedata/locales/ar_KW: Likewise.
18002         * localedata/locales/ar_LB: Likewise.
18003         * localedata/locales/ar_LY: Likewise.
18004         * localedata/locales/ar_MA: Likewise.
18005         * localedata/locales/ar_OM: Likewise.
18006         * localedata/locales/ar_QA: Likewise.
18007         * localedata/locales/ar_SA: Likewise.
18008         * localedata/locales/ar_SD: Likewise.
18009         * localedata/locales/ar_SS: Likewise.
18010         * localedata/locales/ar_SY: Likewise.
18011         * localedata/locales/ar_TN: Likewise.
18012         * localedata/locales/ar_YE: Likewise.
18013         * localedata/locales/as_IN: Likewise.
18014         * localedata/locales/ast_ES: Likewise.
18015         * localedata/locales/ayc_PE: Likewise.
18016         * localedata/locales/az_AZ: Likewise.
18017         * localedata/locales/az_IR: Likewise.
18018         * localedata/locales/be_BY: Likewise.
18019         * localedata/locales/be_BY@latin: Likewise.
18020         * localedata/locales/bem_ZM: Likewise.
18021         * localedata/locales/ber_DZ: Likewise.
18022         * localedata/locales/ber_MA: Likewise.
18023         * localedata/locales/bg_BG: Likewise.
18024         * localedata/locales/bhb_IN: Likewise.
18025         * localedata/locales/bho_IN: Likewise.
18026         * localedata/locales/bi_VU: Likewise.
18027         * localedata/locales/bn_BD: Likewise.
18028         * localedata/locales/bn_IN: Likewise.
18029         * localedata/locales/bo_CN: Likewise.
18030         * localedata/locales/bo_IN: Likewise.
18031         * localedata/locales/br_FR: Likewise.
18032         * localedata/locales/brx_IN: Likewise.
18033         * localedata/locales/bs_BA: Likewise.
18034         * localedata/locales/byn_ER: Likewise.
18035         * localedata/locales/ca_AD: Likewise.
18036         * localedata/locales/ca_ES: Likewise.
18037         * localedata/locales/ca_FR: Likewise.
18038         * localedata/locales/ca_IT: Likewise.
18039         * localedata/locales/ce_RU: Likewise.
18040         * localedata/locales/chr_US: Likewise.
18041         * localedata/locales/cmn_TW: Likewise.
18042         * localedata/locales/crh_UA: Likewise.
18043         * localedata/locales/cs_CZ: Likewise.
18044         * localedata/locales/csb_PL: Likewise.
18045         * localedata/locales/cv_RU: Likewise.
18046         * localedata/locales/cy_GB: Likewise.
18047         * localedata/locales/da_DK: Likewise.
18048         * localedata/locales/de_AT: Likewise.
18049         * localedata/locales/de_BE: Likewise.
18050         * localedata/locales/de_CH: Likewise.
18051         * localedata/locales/de_DE: Likewise.
18052         * localedata/locales/de_IT: Likewise.
18053         * localedata/locales/de_LI: Likewise.
18054         * localedata/locales/de_LU: Likewise.
18055         * localedata/locales/doi_IN: Likewise.
18056         * localedata/locales/dv_MV: Likewise.
18057         * localedata/locales/dz_BT: Likewise.
18058         * localedata/locales/el_CY: Likewise.
18059         * localedata/locales/el_GR: Likewise.
18060         * localedata/locales/en_AG: Likewise.
18061         * localedata/locales/en_AU: Likewise.
18062         * localedata/locales/en_BW: Likewise.
18063         * localedata/locales/en_CA: Likewise.
18064         * localedata/locales/en_DK: Likewise.
18065         * localedata/locales/en_GB: Likewise.
18066         * localedata/locales/en_HK: Likewise.
18067         * localedata/locales/en_IE: Likewise.
18068         * localedata/locales/en_IL: Likewise.
18069         * localedata/locales/en_IN: Likewise.
18070         * localedata/locales/en_NG: Likewise.
18071         * localedata/locales/en_NZ: Likewise.
18072         * localedata/locales/en_PH: Likewise.
18073         * localedata/locales/en_SG: Likewise.
18074         * localedata/locales/en_US: Likewise.
18075         * localedata/locales/en_ZA: Likewise.
18076         * localedata/locales/en_ZM: Likewise.
18077         * localedata/locales/en_ZW: Likewise.
18078         * localedata/locales/eo: Likewise.
18079         * localedata/locales/es_AR: Likewise.
18080         * localedata/locales/es_BO: Likewise.
18081         * localedata/locales/es_CL: Likewise.
18082         * localedata/locales/es_CO: Likewise.
18083         * localedata/locales/es_CR: Likewise.
18084         * localedata/locales/es_CU: Likewise.
18085         * localedata/locales/es_DO: Likewise.
18086         * localedata/locales/es_EC: Likewise.
18087         * localedata/locales/es_ES: Likewise.
18088         * localedata/locales/es_GT: Likewise.
18089         * localedata/locales/es_HN: Likewise.
18090         * localedata/locales/es_MX: Likewise.
18091         * localedata/locales/es_NI: Likewise.
18092         * localedata/locales/es_PA: Likewise.
18093         * localedata/locales/es_PE: Likewise.
18094         * localedata/locales/es_PR: Likewise.
18095         * localedata/locales/es_PY: Likewise.
18096         * localedata/locales/es_SV: Likewise.
18097         * localedata/locales/es_US: Likewise.
18098         * localedata/locales/es_UY: Likewise.
18099         * localedata/locales/es_VE: Likewise.
18100         * localedata/locales/et_EE: Likewise.
18101         * localedata/locales/eu_ES: Likewise.
18102         * localedata/locales/eu_ES@euro: Likewise.
18103         * localedata/locales/fa_IR: Likewise.
18104         * localedata/locales/ff_SN: Likewise.
18105         * localedata/locales/fi_FI: Likewise.
18106         * localedata/locales/fil_PH: Likewise.
18107         * localedata/locales/fo_FO: Likewise.
18108         * localedata/locales/fr_BE: Likewise.
18109         * localedata/locales/fr_CA: Likewise.
18110         * localedata/locales/fr_CH: Likewise.
18111         * localedata/locales/fr_FR: Likewise.
18112         * localedata/locales/fr_LU: Likewise.
18113         * localedata/locales/fur_IT: Likewise.
18114         * localedata/locales/fy_DE: Likewise.
18115         * localedata/locales/fy_NL: Likewise.
18116         * localedata/locales/ga_IE: Likewise.
18117         * localedata/locales/gd_GB: Likewise.
18118         * localedata/locales/gez_ER: Likewise.
18119         * localedata/locales/gez_ET: Likewise.
18120         * localedata/locales/gl_ES: Likewise.
18121         * localedata/locales/gu_IN: Likewise.
18122         * localedata/locales/gv_GB: Likewise.
18123         * localedata/locales/ha_NG: Likewise.
18124         * localedata/locales/hak_TW: Likewise.
18125         * localedata/locales/he_IL: Likewise.
18126         * localedata/locales/hi_IN: Likewise.
18127         * localedata/locales/hif_FJ: Likewise.
18128         * localedata/locales/hne_IN: Likewise.
18129         * localedata/locales/hr_HR: Likewise.
18130         * localedata/locales/hsb_DE: Likewise.
18131         * localedata/locales/ht_HT: Likewise.
18132         * localedata/locales/hu_HU: Likewise.
18133         * localedata/locales/hy_AM: Likewise.
18134         * localedata/locales/i18n: Likewise.
18135         * localedata/locales/ia_FR: Likewise.
18136         * localedata/locales/id_ID: Likewise.
18137         * localedata/locales/ig_NG: Likewise.
18138         * localedata/locales/ik_CA: Likewise.
18139         * localedata/locales/is_IS: Likewise.
18140         * localedata/locales/it_CH: Likewise.
18141         * localedata/locales/it_IT: Likewise.
18142         * localedata/locales/iu_CA: Likewise.
18143         * localedata/locales/ja_JP: Likewise.
18144         * localedata/locales/ka_GE: Likewise.
18145         * localedata/locales/kk_KZ: Likewise.
18146         * localedata/locales/kl_GL: Likewise.
18147         * localedata/locales/kn_IN: Likewise.
18148         * localedata/locales/ko_KR: Likewise.
18149         * localedata/locales/kok_IN: Likewise.
18150         * localedata/locales/ks_IN: Likewise.
18151         * localedata/locales/ks_IN@devanagari: Likewise.
18152         * localedata/locales/ku_TR: Likewise.
18153         * localedata/locales/kw_GB: Likewise.
18154         * localedata/locales/ky_KG: Likewise.
18155         * localedata/locales/lb_LU: Likewise.
18156         * localedata/locales/lg_UG: Likewise.
18157         * localedata/locales/li_BE: Likewise.
18158         * localedata/locales/li_NL: Likewise.
18159         * localedata/locales/lij_IT: Likewise.
18160         * localedata/locales/ln_CD: Likewise.
18161         * localedata/locales/lo_LA: Likewise.
18162         * localedata/locales/lt_LT: Likewise.
18163         * localedata/locales/lv_LV: Likewise.
18164         * localedata/locales/lzh_TW: Likewise.
18165         * localedata/locales/mag_IN: Likewise.
18166         * localedata/locales/mai_IN: Likewise.
18167         * localedata/locales/mg_MG: Likewise.
18168         * localedata/locales/mhr_RU: Likewise.
18169         * localedata/locales/mi_NZ: Likewise.
18170         * localedata/locales/mk_MK: Likewise.
18171         * localedata/locales/ml_IN: Likewise.
18172         * localedata/locales/mn_MN: Likewise.
18173         * localedata/locales/mni_IN: Likewise.
18174         * localedata/locales/mr_IN: Likewise.
18175         * localedata/locales/ms_MY: Likewise.
18176         * localedata/locales/mt_MT: Likewise.
18177         * localedata/locales/my_MM: Likewise.
18178         * localedata/locales/nan_TW: Likewise.
18179         * localedata/locales/nan_TW@latin: Likewise.
18180         * localedata/locales/nb_NO: Likewise.
18181         * localedata/locales/nds_DE: Likewise.
18182         * localedata/locales/nds_NL: Likewise.
18183         * localedata/locales/ne_NP: Likewise.
18184         * localedata/locales/nhn_MX: Likewise.
18185         * localedata/locales/niu_NU: Likewise.
18186         * localedata/locales/niu_NZ: Likewise.
18187         * localedata/locales/nl_AW: Likewise.
18188         * localedata/locales/nl_BE: Likewise.
18189         * localedata/locales/nl_NL: Likewise.
18190         * localedata/locales/nn_NO: Likewise.
18191         * localedata/locales/nr_ZA: Likewise.
18192         * localedata/locales/nso_ZA: Likewise.
18193         * localedata/locales/oc_FR: Likewise.
18194         * localedata/locales/om_ET: Likewise.
18195         * localedata/locales/om_KE: Likewise.
18196         * localedata/locales/or_IN: Likewise.
18197         * localedata/locales/os_RU: Likewise.
18198         * localedata/locales/pa_IN: Likewise.
18199         * localedata/locales/pa_PK: Likewise.
18200         * localedata/locales/pap_AW: Likewise.
18201         * localedata/locales/pap_CW: Likewise.
18202         * localedata/locales/pl_PL: Likewise.
18203         * localedata/locales/ps_AF: Likewise.
18204         * localedata/locales/pt_BR: Likewise.
18205         * localedata/locales/pt_PT: Likewise.
18206         * localedata/locales/quz_PE: Likewise.
18207         * localedata/locales/raj_IN: Likewise.
18208         * localedata/locales/ro_RO: Likewise.
18209         * localedata/locales/ru_RU: Likewise.
18210         * localedata/locales/ru_UA: Likewise.
18211         * localedata/locales/rw_RW: Likewise.
18212         * localedata/locales/sa_IN: Likewise.
18213         * localedata/locales/sat_IN: Likewise.
18214         * localedata/locales/sc_IT: Likewise.
18215         * localedata/locales/sd_IN: Likewise.
18216         * localedata/locales/sd_IN@devanagari: Likewise.
18217         * localedata/locales/se_NO: Likewise.
18218         * localedata/locales/sgs_LT: Likewise.
18219         * localedata/locales/shs_CA: Likewise.
18220         * localedata/locales/si_LK: Likewise.
18221         * localedata/locales/sid_ET: Likewise.
18222         * localedata/locales/sk_SK: Likewise.
18223         * localedata/locales/sl_SI: Likewise.
18224         * localedata/locales/sm_WS: Likewise.
18225         * localedata/locales/so_DJ: Likewise.
18226         * localedata/locales/so_ET: Likewise.
18227         * localedata/locales/so_KE: Likewise.
18228         * localedata/locales/so_SO: Likewise.
18229         * localedata/locales/sq_AL: Likewise.
18230         * localedata/locales/sq_MK: Likewise.
18231         * localedata/locales/sr_ME: Likewise.
18232         * localedata/locales/sr_RS: Likewise.
18233         * localedata/locales/sr_RS@latin: Likewise.
18234         * localedata/locales/ss_ZA: Likewise.
18235         * localedata/locales/st_ZA: Likewise.
18236         * localedata/locales/sv_FI: Likewise.
18237         * localedata/locales/sv_SE: Likewise.
18238         * localedata/locales/sw_KE: Likewise.
18239         * localedata/locales/sw_TZ: Likewise.
18240         * localedata/locales/szl_PL: Likewise.
18241         * localedata/locales/ta_IN: Likewise.
18242         * localedata/locales/ta_LK: Likewise.
18243         * localedata/locales/tcy_IN: Likewise.
18244         * localedata/locales/te_IN: Likewise.
18245         * localedata/locales/tg_TJ: Likewise.
18246         * localedata/locales/th_TH: Likewise.
18247         * localedata/locales/the_NP: Likewise.
18248         * localedata/locales/ti_ER: Likewise.
18249         * localedata/locales/ti_ET: Likewise.
18250         * localedata/locales/tig_ER: Likewise.
18251         * localedata/locales/tk_TM: Likewise.
18252         * localedata/locales/tl_PH: Likewise.
18253         * localedata/locales/tn_ZA: Likewise.
18254         * localedata/locales/to_TO: Likewise.
18255         * localedata/locales/tpi_PG: Likewise.
18256         * localedata/locales/tr_CY: Likewise.
18257         * localedata/locales/tr_TR: Likewise.
18258         * localedata/locales/ts_ZA: Likewise.
18259         * localedata/locales/tt_RU: Likewise.
18260         * localedata/locales/tt_RU@iqtelif: Likewise.
18261         * localedata/locales/ug_CN: Likewise.
18262         * localedata/locales/uk_UA: Likewise.
18263         * localedata/locales/unm_US: Likewise.
18264         * localedata/locales/ur_IN: Likewise.
18265         * localedata/locales/ur_PK: Likewise.
18266         * localedata/locales/uz_UZ: Likewise.
18267         * localedata/locales/uz_UZ@cyrillic: Likewise.
18268         * localedata/locales/ve_ZA: Likewise.
18269         * localedata/locales/vi_VN: Likewise.
18270         * localedata/locales/wa_BE: Likewise.
18271         * localedata/locales/wae_CH: Likewise.
18272         * localedata/locales/wal_ET: Likewise.
18273         * localedata/locales/wo_SN: Likewise.
18274         * localedata/locales/xh_ZA: Likewise.
18275         * localedata/locales/yi_US: Likewise.
18276         * localedata/locales/yo_NG: Likewise.
18277         * localedata/locales/yue_HK: Likewise.
18278         * localedata/locales/yuw_PG: Likewise.
18279         * localedata/locales/zh_CN: Likewise.
18280         * localedata/locales/zh_HK: Likewise.
18281         * localedata/locales/zh_SG: Likewise.
18282         * localedata/locales/zh_TW: Likewise.
18283         * localedata/locales/zu_ZA: Likewise.
18285 2017-11-13  Florian Weimer  <fweimer@redhat.com>
18287         * support/next_to_fault.h, support/next_to_fault.c: New files.
18288         * support/Makefile (libsupport-routines): Add next_to_fault.
18289         * resolv/tst-inet_pton.c (struct next_to_fault)
18290         (next_to_fault_allocate, next_to_fault_free): Remove.
18291         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
18293 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
18295         * elf/dl-support.c: Include <dl-procruntime.c>.
18296         * include/link.h: Include <link_map.h>.
18297         * sysdeps/generic/dl-procruntime.c: New file.
18298         * sysdeps/generic/link_map.h: Likewise.
18299         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
18300         the writable ld.so namespace.
18302 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
18304         timezone: pacify GCC -Wstringop-truncation
18305         Problem reported by Martin Sebor in:
18306         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
18307         * timezone/zic.c (writezone): Use memcpy, not strncpy.
18309 2017-11-12  Florian Weimer  <fweimer@redhat.com>
18311         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
18312         tst-xreadlink.
18313         (tests): Add tst-xreadlink.
18314         * support/support.h (xstrndup): Declare.
18315         * support/xunistd.h (xunlink, xreadlink): Declare.
18316         * support/temp_file.h (support_create_temp_directory): Declare.
18317         * support/temp_file.c (support_create_temp_directory): New function.
18318         * support/support_chroot.c (support_chroot_create): Use it.
18319         * support/xreadlink.c: New file.
18320         * support/xstrndup.c: Likewise.
18321         * support/xunlink.c: Likewise.
18322         * support/tst-xreadlink.c: Likewise.
18324 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
18326         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
18328 2017-11-11  Florian Weimer  <fweimer@redhat.com>
18330         [BZ #22409]
18331         [BZ #22412]
18332         * resolv/res_comp.c (printable_string, binary_hnok)
18333         (binary_leading_dash): New functions.
18334         (res_hnok): Reimplement using these functions and ns_name_pton.
18335         (res_ownok): Likewise.
18336         (res_mailok): Reimplement using printable_string, ns_name_pton and
18337         binary_hnok.
18338         (res_dnok): Reimplement using printable_string and ns_name_pton.
18339         * resolv/tst-res_hnok.c (tests): Add additional tests.
18340         (LETTERDIGITS, PRINTABLE): Define.
18341         (do_test): Adjust one_char results.
18343 2017-11-11  Florian Weimer  <fweimer@redhat.com>
18345         [BZ #22413]
18346         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
18347         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
18349 2017-11-11  Florian Weimer  <fweimer@redhat.com>
18351         * resolv/tst-ns_name_pton.c: New file.
18352         * resolv/Makefile (tests): Add tst-ns_name_pton.
18353         (tst-ns_name_pton): Link against libresolv.
18355 2017-11-11  Florian Weimer  <fweimer@redhat.com>
18357         * resolv/tst-res_hnok.c: New file.
18358         * resolv/Makefile (tests): Add tst-res_hnok.
18359         (tst-res_hnok): Link against libresolv.
18361 2017-11-11  Florian Weimer  <fweimer@redhat.com>
18363         * resolv/tst-resolv-network.c: Use test framework instead explicit
18364         main function.
18366 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
18368         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
18369         <jmp_buf-macros.h>.
18370         [!_ISOMAC] (STR_HELPER): New.
18371         [!_ISOMAC] (STR): Likewise.
18372         [!_ISOMAC] (TEST_SIZE): Likewise.
18373         [!_ISOMAC] (TEST_ALIGN): Likewise.
18374         [!_ISOMAC] (TEST_OFFSET): Likewise.
18375         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
18376         field offsets of jmp_buf as well as sigjmp_buf.
18377         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
18378         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
18379         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
18380         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
18381         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
18382         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
18383         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
18384         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
18385         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
18386         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
18387         Likewise.
18388         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
18389         Likewise.
18390         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
18391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
18392         Likewise.
18393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
18394         Likewise.
18395         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
18396         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
18397         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
18398         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
18399         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
18400         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
18401         Likewise.
18402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
18403         Likewise.
18404         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18405         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
18406         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
18408 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
18410         * include/float.h
18411         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18412         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
18413         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18414         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
18415         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18416         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
18417         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18418         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
18419         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18420         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
18421         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18422         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
18423         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18424         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
18425         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18426         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
18427         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18428         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
18429         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18430         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
18431         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18432         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
18433         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18434         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
18435         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18436         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
18437         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18438         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
18439         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18440         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
18441         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18442         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
18443         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18444         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
18445         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18446         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
18447         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18448         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
18449         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18450         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
18451         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18452         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
18453         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18454         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
18455         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18456         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
18457         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18458         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
18459         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18460         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
18461         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18462         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
18463         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18464         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
18465         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18466         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
18467         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18468         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
18469         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18470         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
18471         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18472         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
18473         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18474         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
18475         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18476         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
18477         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18478         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
18479         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18480         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
18481         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18482         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
18483         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18484         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
18485         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18486         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
18487         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18488         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
18489         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18490         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
18491         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18492         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
18493         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18494         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
18495         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18496         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
18497         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
18498         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
18500         * stdlib/tst-strtod.h (F16): New macro.
18501         (F32): Likewise.
18502         (F64): Likewise.
18503         (F32X): Likewise.
18504         (F64X): Likewise.
18505         (F128X): Likewise.
18506         (IF_FLOAT16): Likewise.
18507         (IF_FLOAT32): Likewise.
18508         (IF_FLOAT64): Likewise.
18509         (IF_FLOAT32X): Likewise.
18510         (IF_FLOAT64X): Likewise.
18511         (IF_FLOAT128X): Likewise.
18512         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
18513         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
18514         (STRTOD_TEST_FOREACH): Likewise.
18515         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
18516         (CHOOSE_f64): Likewise.
18517         (CHOOSE_f32x): Likewise.
18518         (CHOOSE_f64x): Likewise.
18520 2017-11-07  Andreas Schwab  <schwab@suse.de>
18522         * nptl/Makefile (tests-internal): Remove tst-typesizes.
18524 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
18526         [BZ #22403]
18527         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
18528         to be escaped.
18529         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
18530         to be escaped.
18532 2017-11-07  Claude Paroz  <claude@2xlibre.net>
18534         [BZ #22403]
18535         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
18536         to be escaped.
18537         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
18538         to be escaped.
18539         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
18540         to be escaped.
18542 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18544         [BZ #22298]
18545         * nptl/allocatestack.c (allocate_stack): Check if
18546         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
18547         __PTHREAD_MUTEX_HAVE_PREV is defined.
18548         * nptl/descr.h (pthread): Likewise.
18549         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18550         Likewise.
18551         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
18552         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18553         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
18554         * sysdeps/nptl/bits/thread-shared-types.h
18555         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
18556         defines.
18557         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
18558         of __WORDSIZE for internal layout.
18559         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
18560         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
18561         instead of __WORDSIZE whether to use an union for __spins and __list
18562         fields.
18563         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
18564         case.
18565         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
18566         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
18567         defines.
18568         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
18569         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18570         Likewise.
18571         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
18572         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18573         Likewise.
18574         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
18575         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18576         Likewise.
18577         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
18578         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18579         Likewise.
18580         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
18581         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18582         Likewise.
18583         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
18584         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18585         Likewise.
18586         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
18587         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18588         Likewise.
18589         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
18590         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18591         Likewise.
18592         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
18593         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18594         Likewise.
18595         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
18596         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18597         Likewise.
18598         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
18599         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18600         Likewise.
18601         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
18602         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18603         Likewise.
18604         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
18605         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18606         Likewise.
18607         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
18608         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
18609         Likewise.
18611         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
18612         New macros.
18613         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
18614         checks for expected input type size.
18615         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
18616         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
18617         Likewise.
18618         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
18619         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
18620         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
18621         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
18622         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
18623         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
18624         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
18625         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
18626         superflous runtime assert check.
18627         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
18628         Likewise.
18629         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
18630         Likewise.
18631         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
18632         Likewise.
18633         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
18634         Likewise.
18635         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
18636         Likewise.
18637         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
18638         Likewise.
18639         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
18640         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
18641         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
18642         Likewise.
18643         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
18644         Likewise.
18645         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
18646         Likewise.
18647         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
18648         Likewise.
18649         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
18650         Likewise.
18651         * nptl/pthread_attr_setinheritsched.c
18652         (__pthread_attr_setinheritsched): Likewise.
18653         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
18654         Likewise.
18655         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
18656         Likewise.
18657         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
18658         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
18659         __old_pthread_attr_setstack): Likewise.
18660         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
18661         Likewise.
18662         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
18663         Likewise.
18664         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
18665         Likewise.
18666         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
18667         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
18668         Likewise.
18669         * nptl/tst-typesizes.c: Remove file.
18671         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
18672         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
18673         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
18674         checks for internal pthread_mutex_t offsets.
18675         * sysdeps/aarch64/nptl/pthread-offsets.h
18676         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
18677         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
18678         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
18679         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
18680         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
18681         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
18682         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
18683         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
18684         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
18685         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
18686         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
18687         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
18688         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
18689         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
18690         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
18691         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
18692         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
18693         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
18695 2017-11-07  Florian Weimer  <fweimer@redhat.com>
18697         * bits/mman-linux.h: Move ...
18698         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
18699         comment.
18700         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
18701         outdated comment.
18703 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18705         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
18706         Redefine STRNLEN as __strnlen_power8.
18708 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18710         * signal/sighold.c (sighold): Optimize implementation.
18712         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
18713         __NR_rt_sigqueueinfo.
18715         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
18716         __sigtimedwait.
18717         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
18718         assume __NR_rt_sigtimedwait.
18719         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
18720         and add LIBC_CANCEL_HANDLED for cancellation marking.
18721         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
18723         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
18724         (sysdeps_routines): Add memchr_noneon.
18725         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
18726         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
18727         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
18728         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
18729         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
18730         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
18731         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
18733         * sysdeps/arm/arm-ifunc.h: New file.
18734         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
18735         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
18736         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
18737         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
18738         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
18739         (__memcpy_neon): Avoid create hidden alias.
18740         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
18741         (__memcpy_vfp): Likewise.
18742         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
18743         (sysdep_routines): Add memcpy_arm.
18744         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
18746 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
18748         [BZ #22362]
18749         * Makerules (make-link-multidir): New.
18750         * config.make.in (multidir): New.
18751         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
18752         * configure: Regenerated.
18753         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
18754         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
18755         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
18756         New target.
18758 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
18760         [BZ #22402]
18761         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
18762         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
18764 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
18766         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
18767         to be escaped.
18769 2017-11-04  Florian Weimer  <fweimer@redhat.com>
18771         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
18773 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
18775         * math/math.h [__HAVE_DISTINCT_FLOAT16
18776         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
18777         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
18778         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
18779         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
18780         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
18781         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
18782         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
18783         (__MATH_TG_F32): New macro.
18784         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
18785         (__MATH_TG_F64X): Likewise.
18786         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
18787         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
18789 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
18791         * po/de.po: Update translations.
18792         * po/ru.po: Likewise.
18794 2017-11-03  Florian Weimer  <fweimer@redhat.com>
18796         * manual/filesys.texi (Hard Links): Document linkat.
18798 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
18800         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
18801         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
18802         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
18803         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
18804         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
18805         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
18806         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
18807         the same as _Float128.
18808         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
18809         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
18810         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
18812         * stdlib/stdlib.h
18813         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
18814         Declare.
18815         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
18816         Likewise.
18817         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
18818         Likewise.
18819         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18820         (strtof32x): Likewise.
18821         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18822         (strtof64x): Likewise.
18823         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18824         (strtof128x): Likewise.
18825         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18826         (strfromf16): Likewise.
18827         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18828         (strfromf32): Likewise.
18829         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18830         (strfromf64): Likewise.
18831         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18832         (strfromf32x): Likewise.
18833         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18834         (strfromf64x): Likewise.
18835         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18836         (strfromf128x): Likewise.
18837         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
18838         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
18839         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
18840         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
18841         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
18842         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
18844 2017-11-03  Richard Henderson  <rth@twiddle.net>
18846         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
18848 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18850         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
18852 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18854         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
18855         DT_TLSDESC_GOT initialization.
18856         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
18857         (_dl_tlsdesc_resolve_hold): Likewise.
18858         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
18859         (_dl_tlsdesc_resolve_hold): Likewise.
18860         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
18861         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
18863 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18865         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
18867 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18869         [BZ #18572]
18870         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
18871         non-lazily for R_ARM_TLS_DESC.
18873 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18875         [BZ #17078]
18876         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
18877         R_ARM_TLS_DESC case.
18878         (elf_machine_lazy_rel): Remove the prelink check.
18880 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18882         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
18883         DT_TLSDESC_GOT initialization.
18884         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
18885         (_dl_tlsdesc_resolve_rela): Likewise.
18886         (_dl_tlsdesc_resolve_hold): Likewise.
18887         (_dl_tlsdesc_undefweak): Remove ldar.
18888         (_dl_tlsdesc_dynamic): Likewise.
18889         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
18890         (_dl_tlsdesc_resolve_rela): Likewise.
18891         (_dl_tlsdesc_resolve_hold): Likewise.
18892         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
18893         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
18894         (_dl_tlsdesc_resolve_rela): Likewise.
18895         (_dl_tlsdesc_resolve_hold): Likewise.
18897 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18899         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
18900         binding and initialization non-lazily for R_AARCH64_TLSDESC.
18902 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18904         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
18905         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
18907 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
18909         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
18910         Declare.
18911         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
18912         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
18913         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
18914         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
18915         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
18916         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
18917         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
18918         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
18919         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
18920         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
18921         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
18923 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
18925         [BZ #22382]
18926         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
18927         * localedata/locales/tpi_PG: Add standard header.
18929 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18931         test-errno-linux: quotactl can fail with EPERM in containers.
18932         * sysdeps/unix/sysv/linux/test-errno-linux.c
18933         (LIST, LIST_FORWARD): New macros.
18934         (check_error_in_list): New function.
18935         (test_wrp_rv): Accept list of permitted error codes.
18936         (test_wrp_rv2): Remove.
18937         (test_wrp): Call test_wrp_rv with list of error codes.
18938         (test_wrp2): Accept list of error codes.
18939         (do_test): Adjust.  Allow EPERM for quotactl.
18941 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18943         * stdio-common/bug16.c (do_test): Use array_length.
18944         * stdio-common/errlist.c (_sys_nerr): Likewise.
18945         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
18946         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
18947         * stdio-common/psiginfo.c (psiginfo): Use array_length.
18948         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
18949         (do_test): Use array_length.
18950         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
18951         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
18952         * stdio-common/tst-printf-round.c (do_test): Likewise.
18953         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
18954         (CHECK): Use array_length.
18955         * stdio-common/tstdiomisc.c (t3, F): Likewise.
18956         * stdio-common/tstscanf.c (main): Likewise.
18957         * stdio-common/vfprintf.c (process_string_arg): Likewise.
18959 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18961         Add array_length and array_end macros.
18962         * include/array_length.h: New file.
18964 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18966         [BZ #22332]
18967         * posix/tst-glob-tilde.c (do_noescape): New variable.
18968         (one_test): Process it.
18969         (do_test): Set do_noescape.  Add unescaping test case.
18971 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
18973         * math/complex.h
18974         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
18975         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
18976         with appropriate macros defined and undefined.
18977         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
18978         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18979         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
18980         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18981         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
18982         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18983         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
18984         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18985         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
18986         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18988         * math/complex.h
18989         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
18990         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
18991         that for long double.  Do not condition define and undefine of
18992         _Mdouble_complex_ on [__CFLOAT128].
18994 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
18996         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
18997         of <sysdeps/generic/sysdep.h>.
18998         (ALIGNARG): Removed.
18999         (ASM_SIZE_DIRECTIVE): Likewise.
19000         (ENTRY): Likewise.
19001         (END): Likewise.
19002         (ENTRY_CHK): Likewise.
19003         (END_CHK): Likewise.
19004         (syscall_error): Likewise.
19005         (mcount): Likewise.
19006         (PSEUDO_END): Likewise.
19007         (L): Likewise.
19008         (atom_text_section): Likewise.
19009         * sysdeps/x86/sysdep.h: New file.
19010         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19011         of <sysdeps/generic/sysdep.h>.
19012         (ALIGNARG): Removed.
19013         (ASM_SIZE_DIRECTIVE): Likewise.
19014         (ENTRY): Likewise.
19015         (END): Likewise.
19016         (ENTRY_CHK): Likewise.
19017         (END_CHK): Likewise.
19018         (syscall_error): Likewise.
19019         (mcount): Likewise.
19020         (PSEUDO_END): Likewise.
19021         (L): Likewise.
19022         (atom_text_section): Likewise.
19024 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
19026         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
19027         category of LC_CTYPE set to "i18n:2012".
19028         * localedata/locales/i18n_ctype: Regenerate.
19030 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
19032         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
19033         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
19034         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
19035         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
19037         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
19038         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
19039         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
19040         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
19042 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
19044         * math/complex.h
19045         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
19046         New macro.
19047         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
19048         Likewise.
19049         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
19050         Likewise.
19051         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19052         (CMPLXF32X): Likewise.
19053         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19054         (CMPLXF64X): Likewise.
19055         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19056         (CMPLXF128X): Likewise.
19058         * math/math.h
19059         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
19060         (__MATH_EVAL_FMT2): Define to add 0.0f.
19062 2017-10-31  Alan Modra  <amodra@gmail.com>
19064         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
19065         include sysdep.h.
19066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
19067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
19068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
19069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
19070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
19071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
19072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
19073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
19074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
19075         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
19076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
19077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
19078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
19079         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
19080         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
19081         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
19082         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
19083         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
19084         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
19085         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
19086         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
19087         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
19088         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
19089         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
19090         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
19091         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
19092         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
19093         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
19094         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
19095         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
19096         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
19097         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
19098         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
19099         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
19100         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
19101         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
19102         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
19103         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
19104         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
19105         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
19106         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
19107         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
19108         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
19109         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
19110         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
19111         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
19112         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
19113         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
19114         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
19115         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
19116         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
19117         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
19118         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
19119         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
19120         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
19121         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
19122         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
19123         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
19124         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
19125         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
19126         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
19127         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
19128         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
19129         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
19130         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
19131         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
19132         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
19133         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
19134         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
19136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
19137         include sysdep.h and math_ldbl_opt.h.
19139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
19140         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
19141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
19142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
19143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
19144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
19145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
19146         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
19147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
19148         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
19149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
19150         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
19151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
19152         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
19153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
19154         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
19155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
19156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
19157         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
19158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
19159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
19160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
19161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
19162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
19163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
19164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
19166 2017-10-31  Alan Modra  <amodra@gmail.com>
19168         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
19169         string/strncase_l.c, not string/strncase.c.
19170         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
19171         (libc_hidden_def): Redefine.
19173 2017-10-31  Alan Modra  <amodra@gmail.com>
19175         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
19176         (__STRCMP, STRCMP, __strcasecmp_l): Define.
19177         (__strcasecmp): Don't define.
19179 2017-10-31  Alan Modra  <amodra@gmail.com>
19181         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
19182         IS_IN (libc).
19183         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
19184         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
19185         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
19187 2017-10-31  Alan Modra  <amodra@gmail.com>
19189         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
19190         USE_AS_STPNCPY.
19192 2017-10-31  Alan Modra  <amodra@gmail.com>
19194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
19195         Redefine only when SHARED.
19197 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
19199         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
19200         Include <bits/math-finite.h> with appropriate macros defined and
19201         undefined.
19202         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
19203         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
19204         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
19205         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
19206         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
19208         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
19209         [!_Mlong_double_] (_Mlong_double_): Likewise.
19210         [!_Mfloat16_] (_Mfloat16_): Likewise.
19211         [!_Mfloat32_] (_Mfloat32_): Likewise.
19212         [!_Mfloat64_] (_Mfloat64_): Likewise.
19213         [!_Mfloat128_] (_Mfloat128_): Likewise.
19214         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
19215         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
19216         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
19217         (_Mdouble_): Define without indirection through those macros.
19218         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
19219         [!_Mfloat128_] (_Mfloat128_): Likewise.
19220         [_Mlong_double_] (_Mlong_double_): Likewise.
19221         (_Mdouble_): Define without indirection through those macros.
19222         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
19223         not add -D_Mlong_double_=double.
19224         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
19225         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
19227 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
19229         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
19231 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
19233         * sysdeps/x86/libc-start.c: Reformat.
19235 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
19237         [BZ #22353]
19238         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
19239         (1): Renamed to ...
19240         (L(Src0)): This.
19241         (L(Src1)): New.
19242         (L(Src2)): Likewise.
19243         (L(1)): Renamed to ...
19244         (L(Src3)): This.
19246 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
19248         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
19249         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
19250         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
19251         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
19252         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
19253         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
19254         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
19255         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
19256         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
19257         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
19258         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
19259         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
19260         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
19261         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
19262         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
19263         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
19264         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
19265         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
19266         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
19267         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
19268         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
19269         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
19270         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
19271         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
19272         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
19273         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
19274         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
19275         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
19276         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
19277         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
19278         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
19279         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
19280         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
19281         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
19282         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
19283         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
19284         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
19285         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
19286         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
19287         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
19288         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
19289         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
19290         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
19291         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
19292         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
19293         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
19294         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
19295         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
19296         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
19297         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
19298         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
19299         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
19300         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
19301         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
19302         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
19303         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
19304         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
19305         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
19306         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
19307         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
19308         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
19309         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
19310         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
19311         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
19312         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
19313         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
19315 2017-10-30  Florian Weimer  <fweimer@redhat.com>
19317         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
19318         always defined.
19319         * io/tst-mkdirat.c (do_test): Likewise.
19320         * io/tst-mkfifoat.c (do_test): Likewise.
19321         * io/tst-mknodat.c (do_test): Likewise.
19322         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
19323         * locale/programs/locale.c (select_dirs): Likewise.
19324         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
19325         * posix/bug-glob2.c (my_readdir): Likewise.
19326         * posix/tst-dir.c (main): Likewise.
19327         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
19328         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
19330 2017-10-30  Florian Weimer  <fweimer@redhat.com>
19332         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
19333         just __USE_GNU.
19335 2017-10-30  Florian Weimer  <fweimer@redhat.com>
19337         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
19338         Convert to support/test-driver.c.
19339         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
19340         New macro parameters.
19341         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
19342         * posix/tst-gnuglob.c: New file.
19343         * posix/tst-gnuglob64.c: Likewise.
19344         * posix/Makefile (tests): Add tst-gnuglob64.
19346 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
19348         [BZ #19485]
19349         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
19350         and use a better translation for March in “mon”.
19351         * localedata/locales/csb_PL: Use more ASCII to improve the
19352         readability of the source.
19354 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
19356         [BZ #13953]
19357         * localedata/locales/km_KH: Use ASCII as much
19358         as possible for better readability of the source and
19359         remove useless comments.
19360         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
19361         was commented out and apparently wrong anyway because it was
19362         using Lao characters. If Buddhist era should be used
19363         for km_KH, a native speaker should write the correct formaat
19364         for Khmer.
19365         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
19366         (According to CLDR, the first weekday for Cambodia is Sunday).
19367         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
19368         (These were using Lao characters which must be wrong. If we get
19369         the correct data from a native speaker, we could add it back, until
19370         then it is better not to have name_mr and name_mrs at all than
19371         having it wrong).
19373 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
19375         * locale/loadlocale.c: Correct size of
19376         _nl_value_type_LC_<category> arrays.
19378 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
19380         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
19381         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
19382         with appropriate macros defined and undefined.
19383         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
19384         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
19385         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
19386         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
19387         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
19389 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
19391         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19392         "-O2 -march=i586".
19394 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
19396         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
19397         with lowercase letters to make it agree with CLDR.
19399 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
19401         [BZ #15260]
19402         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
19403         first letters of yesstr and nostr in yesexpr and noexpr,
19404         not for the full words.
19405         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
19406         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
19407         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
19408         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
19409         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
19410         first letters of yesstr and nostr in yesexpr and noexpr,
19411         until now only English was matched in yesexpr and noexpr.
19412         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
19413         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
19414         fil but not for tl. As tl and fil are very similar, using fil
19415         is probably better than using English.
19417 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
19419         [BZ #21706]
19420         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
19421         in yesstr and nostr.
19423 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
19425         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
19426         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
19427         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
19428         Likewise.
19429         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
19430         Likewise.
19431         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
19432         Likewise.
19433         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
19434         Likewise.
19435         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19436         (SNANF128X): Likewise.
19438         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
19439         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
19440         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19441         (HUGE_VAL_F32): Likewise.
19442         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19443         (HUGE_VAL_F64): Likewise.
19444         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19445         (HUGE_VAL_F32X): Likewise.
19446         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19447         (HUGE_VAL_F64X): Likewise.
19448         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19449         (HUGE_VAL_F128X): Likewise.
19451 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
19453         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
19454         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
19455         for the br_FR locale.
19457 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
19459         [BZ #21706]
19460         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
19462 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
19464         * locale/programs/record-status.h: Define globals, and function
19465         prototypes. Move function bodies...
19466         * locale/programs/record-status.c: ... to here. New file.
19467         * iconv/Makefile (iconv_prog-modules): Add record-status.
19468         * locale/Makefile (lib-modules): Likewise.
19469         * iconv/iconv_prog.c: Remove verbose.
19470         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
19471         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
19472         record a warning about ASCII compatibility.
19473         * locale/programs/ld-monetary.c (monetary_finish): If
19474         warn_int_curr_symbol is true then record a warning about the symbol
19475         not being in our ISO 4217 list.
19476         * locale/programs/locale.c: Include record-status.h. Remove verbose.
19477         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
19478         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
19479         (OPT_NO_WARN): Define.
19480         (OPT_WARN): Define.
19481         (options): Add entry for --no-warnings, and --warnings.
19482         (set_warnings): New function to enable/disable warnings.
19483         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
19484         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
19485         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
19486         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
19487         Pass flags to generate_locale.
19488         (generate_locale): Accept new flag argument and pass it to localedef
19489         invocation.
19490         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
19491         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
19493         * localedata/Makefile (test-input-data): Use full file name.
19494         * localedata/da_DK.in: Rename to...
19495         * localedata/da_DK.ISO-8859-1.in: ...this.
19496         * localedata/de_DE.in: Rename to...
19497         * localedata/de_DE.ISO-8859-1.in: ...this.
19498         * localedata/en_US.in: Rename to...
19499         * localedata/en_US.ISO-8859-1.in: ...this.
19500         * localedata/fr_FR.in: Rename to...
19501         * localedata/fr_FR.UTF-8.in: ... this.
19502         * localedata/hr_HR.in: Rename to...
19503         * localedata/hr_HR.ISO-8859-2.in: ...this.
19504         * localedata/hu_HU.in: Rename to...
19505         * localedata/hu_HU.UTF-8.in: ...this.
19506         * localedata/si_LK.in: Rename to...
19507         * localedata/si_LK.UTF-8.in: ...this.
19508         * localedata/sv_SE.in: Rename to...
19509         * localedata/sv_SE.ISO-8859-1.in: ...this.
19510         * localedata/tr_TR.in: Rename to...
19511         * localedata/tr_TR.UTF-8.in: ...this.
19512         * localedata/uk_UA.in: Rename to...
19513         * localedata/uk_UA.UTF-8.in: ...this.
19514         * localedata/sort-test.sh: Test file is locale name with the
19515         suffix.
19517         * localedata/unicode-gen/Makefile (check_i18n): Rename to
19518         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
19519         file.
19520         * localedata/locales/i18n_ctype: Regenerate.
19521         * localedata/locales/tr_TR: Likewise.
19522         * localedata/locales/translit_circle: Likewise.
19523         * localedata/locales/translit_cjk_compat: Likewise.
19524         * localedata/locales/translit_combining: Likewise.
19525         * localedata/locales/translit_compat: Likewise.
19526         * localedata/locales/translit_font: Likewise.
19527         * localedata/locales/translit_fraction: Likewise.
19529 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19531         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
19532         lxvd2x/stxvd2x with lvx/stvx.
19533         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
19535 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
19537         * include/alloc_buffer.h: Replace "if if " with "if " in
19538         comments.
19539         * sysdeps/mips/memcpy.S: Likkewise.
19540         * sysdeps/mips/memset.S: Likewise.
19541         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
19542         Likewise.
19543         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
19544         Likewise.
19545         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
19546         Likewise.
19548 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19550         [BZ #15261]
19551         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
19552         yesexpr and noexpr.
19553         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
19554         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
19555         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
19556         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
19557         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
19558         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
19559         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
19561 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19563         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
19564         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
19565         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
19566         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
19567         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
19568         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
19569         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
19570         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
19571         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
19572         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
19573         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
19574         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
19576 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19578         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
19579         as possible for better readability of the source.
19580         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
19581         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
19582         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
19583         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
19584         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
19585         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
19586         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
19587         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
19588         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
19589         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
19590         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
19591         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
19592         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
19593         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
19594         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
19595         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
19596         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
19597         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
19598         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
19599         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
19600         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
19601         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
19602         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
19603         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
19604         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
19605         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
19606         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
19607         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
19608         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
19609         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
19610         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
19611         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
19612         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
19613         * localedata/locales/en_US (LC_MESSAGES): Likewise.
19614         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
19615         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
19616         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
19617         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
19618         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
19619         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
19620         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
19621         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
19622         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
19623         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
19624         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
19625         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
19626         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
19627         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
19628         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
19629         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
19630         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
19631         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
19632         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
19633         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
19634         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
19635         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
19636         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
19637         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
19638         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
19639         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
19640         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
19641         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
19642         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
19643         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
19644         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
19645         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
19646         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
19647         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
19648         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
19649         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
19650         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
19651         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
19652         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
19653         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
19654         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
19655         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
19656         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
19657         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
19658         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
19659         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
19660         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
19661         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
19662         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
19663         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
19664         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
19665         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
19666         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
19667         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
19668         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
19669         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
19670         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
19671         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
19672         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
19673         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
19674         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
19675         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
19676         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
19677         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
19678         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
19679         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
19680         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
19681         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
19682         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
19683         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
19684         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
19685         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
19686         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
19687         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
19688         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
19689         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
19690         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
19691         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
19692         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
19693         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
19694         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
19695         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
19696         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
19697         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
19698         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
19699         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
19700         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
19701         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
19702         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
19703         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
19704         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
19705         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
19706         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
19707         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
19708         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
19709         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
19710         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
19711         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
19712         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
19713         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
19714         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
19715         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
19716         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
19717         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
19718         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
19719         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
19720         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
19721         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
19722         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
19723         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
19724         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
19725         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
19726         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
19727         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
19728         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
19729         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
19730         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
19731         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
19732         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
19733         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
19734         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
19735         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
19736         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
19737         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
19738         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
19739         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
19740         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
19741         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
19742         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
19743         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
19744         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
19745         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
19746         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
19747         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
19748         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
19749         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
19750         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
19751         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
19752         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
19753         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
19755 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19757         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
19758         (Use first letters of yesstr and nostr correctly instead of using
19759         full words).
19761 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19763         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
19764         (Use first letters of yesstr and nostr correctly).
19766 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19768         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
19769         also check for the first characters of yesstr and nostr.
19770         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
19771         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
19773 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19775         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
19776         also check for Chinese characters.
19778 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19780         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
19781         match also for the contents of yesstr and nostr. As the first letter
19782         of yesstr and nostr is equal, checking only for the first letter
19783         is not enough.
19785 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19787         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
19788         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
19790 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19792         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
19793         of main contributor.
19795 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19797         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
19798         instead of using English.
19800 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19802         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
19803         by including the first letters of nostr and yesexpr in the regexp.
19804         Also make it more readable by using ASCII where possible.
19806 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
19808         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
19809         the first letter of nostr in the regexp. It agrees with CLDR now.
19810         Also make it more readable by using ASCII where possible.
19812 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19814         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
19815         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
19816         these strings contain a U+17D6 (which somewhat looks like a colon)
19817         instead of a real colon to separate the full words for “yes”
19818         and “no” from the single letter responses.
19820 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19822         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
19823         it agree with CLDR (include the first letter of yesstr).
19824         Also make it more readable by using ASCII where possible.
19826 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19828         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
19829         and improve yesexpr and noexpr. The yesstr and nostr apparently
19830         came from CLDR. And CLDR has a bug there: these strings contain
19831         a U+0903 (which looks like a colon) instead of a real colon
19832         to separate the full words for “yes” and “no” from the single
19833         letter responses.
19835 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19837         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
19838         letters of the full yesstr and nostr in yesexpr and noexpr.
19840 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19842         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
19843         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
19844         * localedata/locales/an_ES: Make source more readable by using ASCII
19845         where possible.
19847 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19849         [BZ #20952]
19850         * localedata/locales/yuw_PG: New file.
19851         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
19852         * locale/iso-639.def: Add Yau (Uruwa).
19854 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
19856         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
19858 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
19860         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
19861         (__libc_realloc): Likewise.
19862         (_mid_memalign): Likewise.
19863         (__libc_calloc): Likewise.
19865 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
19867         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
19868         by adding the generic +1 and -0 as in all other locales.
19869         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
19870         day names and make it more readable by using ASCII where possible.
19872 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
19874         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
19875         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
19877 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19879         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
19880         WNOHANG in waitpid call.
19882 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19884         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
19885         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
19887         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
19888         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
19889         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
19890         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
19891         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
19892         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
19893         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
19894         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
19895         variables.
19897 2017-10-23  Michael Collison  <michael.collison@arm.com>
19899         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
19900         with __builtin_sqrt.
19901         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
19902         with __builtin_sqrtf.
19903         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
19904         with __builtin_ceil.
19905         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
19906         with __builtin_ceilf.
19907         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
19908         with __builtin_floor.
19909         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
19910         with __builtin_floorf.
19911         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
19912         with __builtin_fma.
19913         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
19914         with __builtin_fmaf.
19915         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
19916         with __builtin_fmax.
19917         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
19918         with __builtin_fmaxf.
19919         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
19920         with __builtin_fmin.
19921         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
19922         with __builtin_fminf.
19923         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
19924         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
19925         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
19926         with builtin_rint and conversion to int.
19927         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
19928         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
19929         with builtin_llround.
19930         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
19931         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
19932         with builtin_rint and conversion to long int.
19933         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
19934         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
19935         with builtin_lround.
19936         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
19937         with builtin_lroundf.
19938         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
19939         statements with __builtin_nearbyint.
19940         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
19941         statements with __builtin_nearbyintf.
19942         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
19943         with __builtin_rint.
19944         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
19945         with __builtin_rintf.
19946         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
19947         with __builtin_round.
19948         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
19949         with __builtin_roundf.
19950         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
19951         with __builtin_trunc.
19952         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
19953         with __builtin_truncf.
19954         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
19955         and s_l[l]round[f].c too.
19957 2017-10-23  Alan Modra  <amodra@gmail.com>
19959         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
19960         Adjust stack after restoring regs.  Add missing LR cfi_restore.
19962 2017-10-23  Alan Modra  <amodra@gmail.com>
19964         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
19965         Move LR save and frame setup/teardown and LR restore to
19966         immediately around memset call.  Provide cfi.
19968 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19970         * sysdeps/i386/fpu/e_powf.S: Removed.
19971         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
19972         * sysdeps/i386/fpu/w_powf.c: Likewise.
19973         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
19974         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19975         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19976         Add e_powf-sse2.
19977         (CFLAGS-e_powf-sse2.c): New.
19978         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
19979         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
19981 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19983         * sysdeps/i386/fpu/e_log2f.S: Removed.
19984         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
19985         * sysdeps/i386/fpu/w_log2f.c: Likewise.
19986         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
19987         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19988         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19989         Add e_log2f-sse2.
19990         (CFLAGS-e_log2f-sse2.c): New.
19991         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
19992         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
19994 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19996         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19997         Add e_powf-fma.
19998         (CFLAGS-e_powf-fma.c): New.
19999         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
20000         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
20002 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20004         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20005         Add e_log2f-fma.
20006         (CFLAGS-e_log2f-fma.c): New.
20007         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
20008         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
20010 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20012         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20013         Add e_logf-fma.
20014         (CFLAGS-e_logf-fma.c): New.
20015         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
20016         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
20018 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20020         * sysdeps/i386/fpu/e_logf.S: Removed.
20021         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
20022         * sysdeps/i386/fpu/w_logf.c: Likewise.
20023         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
20024         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
20025         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20026         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20027         Add e_logf-sse2.
20028         (CFLAGS-e_logf-sse2.c): New.
20029         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
20030         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
20032 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20034         * sysdeps/i386/fpu/e_exp2f.S: Removed.
20035         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
20036         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
20037         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20038         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20039         Add e_exp2f-sse2.
20040         (CFLAGS-e_exp2f-sse2.c): New.
20041         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
20042         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
20044 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20046         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20047         Add e_exp2f-fma.
20048         (CFLAGS-e_exp2f-fma.c): New.
20049         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
20050         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
20052 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20054         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
20055         * sysdeps/i386/fpu/e_expf.S: Likewise.
20056         * sysdeps/i386/fpu/math_errf.c: Likewise.
20057         * sysdeps/i386/fpu/w_expf.c: Likewise.
20058         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
20059         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20060         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
20061         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
20062         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20063         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20064         Remove e_expf-ia32.
20065         (CFLAGS-e_expf-sse2.c): New.
20066         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
20067         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
20069 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
20071         * sysdeps/x86_64/fpu/e_expf.S: Removed.
20072         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
20073         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
20074         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
20075         e_expf.c.
20076         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
20077         New.
20078         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
20079         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
20080         Renamed to ...
20081         (__redirect_expf): This.
20082         (SYMBOL_NAME): Changed to expf.
20083         (__ieee754_expf): Renamed to ...
20084         (__expf): This.
20085         (__GI___expf): This.
20086         (__ieee754_expf): Add strong_alias.
20087         (__expf_finite): Likewise.
20088         (__expf): New.
20089         Include <sysdeps/ieee754/flt-32/e_expf.c>.
20091 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
20093         [BZ #22332]
20094         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
20095         unescaping.
20097 2017-10-21  Florian Weimer  <fweimer@redhat.com>
20099         * posix/Makefile (tests): Add tst-glob-tilde.
20100         (tests-special): Add tst-glob-tilde-mem.out
20101         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
20102         (tst-glob-tilde-mem.out): Add mtrace check.
20103         * posix/tst-glob-tilde.c: New file.
20105 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
20107         * bits/floatn-common.h: New file.
20108         * math/Makefile (headers): Add bits/floatn-common.h.
20109         * bits/floatn.h: Include <bits/floatn-common.h>.
20110         * sysdeps/ia64/bits/floatn.h: Likewise.
20111         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
20112         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
20113         * sysdeps/powerpc/bits/floatn.h: Likewise.
20114         * sysdeps/x86/bits/floatn.h: Likewise.
20116 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20118         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
20119         indicates whether compiler emits an warning for alias for
20120         functions with incompatible types.
20122         [BZ #22273]
20123         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
20124         the auxiliary process is terminated by a signal before calling _exit
20125         or execve.
20127 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
20129         [BZ #21265]
20130         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
20131         New.
20132         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
20133         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
20134         and bit_arch_XSAVEC_Usable if needed.
20135         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
20136         and bit_arch_Use_dl_runtime_resolve_opt.
20137         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
20138         Removed.
20139         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
20140         (bit_arch_Prefer_No_AVX512): Updated.
20141         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
20142         (bit_arch_XSAVEC_Usable): New.
20143         (STATE_SAVE_OFFSET): Likewise.
20144         (STATE_SAVE_MASK): Likewise.
20145         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
20146         (cpu_features): Add xsave_state_size and xsave_state_full_size.
20147         (index_arch_Use_dl_runtime_resolve_opt): Removed.
20148         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
20149         (index_arch_XSAVEC_Usable): New.
20150         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
20151         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
20152         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
20153         is enabled.
20154         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
20155         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
20156         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
20157         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
20158         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
20159         _dl_runtime_resolve_xsavec.
20160         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
20161         Removed.
20162         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
20163         instead of VEC_SIZE.
20164         (REGISTER_SAVE_BND0): Removed.
20165         (REGISTER_SAVE_BND1): Likewise.
20166         (REGISTER_SAVE_BND3): Likewise.
20167         (REGISTER_SAVE_RAX): Always defined to 0.
20168         (VMOV): Removed.
20169         (_dl_runtime_resolve_avx): Likewise.
20170         (_dl_runtime_resolve_avx_slow): Likewise.
20171         (_dl_runtime_resolve_avx_opt): Likewise.
20172         (_dl_runtime_resolve_avx512): Likewise.
20173         (_dl_runtime_resolve_avx512_opt): Likewise.
20174         (_dl_runtime_resolve_sse): Likewise.
20175         (_dl_runtime_resolve_sse_vex): Likewise.
20176         (USE_FXSAVE): New.
20177         (_dl_runtime_resolve_fxsave): Likewise.
20178         (USE_XSAVE): Likewise.
20179         (_dl_runtime_resolve_xsave): Likewise.
20180         (USE_XSAVEC): Likewise.
20181         (_dl_runtime_resolve_xsavec): Likewise.
20182         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
20183         Removed.
20184         (_dl_runtime_resolve_avx512_opt): Likewise.
20185         (_dl_runtime_resolve_avx): Likewise.
20186         (_dl_runtime_resolve_avx_opt): Likewise.
20187         (_dl_runtime_resolve_sse): Likewise.
20188         (_dl_runtime_resolve_sse_vex): Likewise.
20189         (_dl_runtime_resolve_fxsave): New.
20190         (_dl_runtime_resolve_xsave): Likewise.
20191         (_dl_runtime_resolve_xsavec): Likewise.
20193 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
20195         [BZ #22320]
20196         CVE-2017-15670
20197         * posix/glob.c (__glob): Fix one-byte overflow.
20199 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
20201         * malloc/malloc.c (sysdep-cancel.h): Add include.
20203 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
20205         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
20207 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
20209         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
20210         (tests): Remove $(objpfx)ga_test depdendency.
20211         * resolv/ga_test.c: Remove file.
20213 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
20215         [BZ #18812]
20216         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
20217         * localedata/locales/kab_DZ: New file.
20219 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
20221         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
20222         _dl_relocate_static_pie instead of _dl_start to compute load
20223         address in static PIE.
20225 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
20227         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
20229 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
20231         [BZ #13605]
20232         * localedata/SUPPORTED: Add shn_MM/UTF-8.
20233         * localedata/locales/shn_MM: New file.
20235 2017-10-20  Florian Weimer  <fweimer@redhat.com>
20237         [BZ #22321]
20238         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
20239         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
20240         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
20241         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
20242         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
20243         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
20245 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
20247         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
20249 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
20251         * sysdeps/mips/ieee754/bits/floatn.h: New file.
20253         [BZ #22322]
20254         * sysdeps/mips/bits/long-double.h: Move to ....
20255         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
20257 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
20259         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
20261 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
20262             H.J. Lu  <hongjiu.lu@intel.com>
20264         [BZ #22299]
20265         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
20266         GLRO(dl_platform) to NULL.
20267         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
20268         (modules-names): Add tst-platformmod-1 and
20269         x86_64/tst-platformmod-2.
20270         (CFLAGS-tst-platform-1.c): New.
20271         (CFLAGS-tst-platformmod-1.c): Likewise.
20272         (CFLAGS-tst-platformmod-2.c): Likewise.
20273         (LDFLAGS-tst-platformmod-2.so): Likewise.
20274         ($(objpfx)tst-platform-1): Likewise.
20275         ($(objpfx)tst-platform-1.out): Likewise.
20276         (tst-platform-1-ENV): Likewise.
20277         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
20278         * sysdeps/x86_64/tst-platform-1.c: New file.
20279         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
20280         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
20282 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
20284         [BZ #13994]
20285         * locale/iso-639.def: Add Karbi.
20286         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
20287         * localedata/locales/mjw_IN: New file.
20289 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
20291         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
20292         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
20293         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
20294         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
20295         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
20296         (libm_alias_ldouble_other_r): Also create _Float128 alias.
20297         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
20298         <bits/floatn.h>.
20299         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
20300         (libm_alias_ldouble_other_r): Also create _Float128 alias.
20301         * manual/math.texi (Mathematics): Document additional architecture
20302         support for _Float128.
20303         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20304         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20305         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20306         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20307         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20308         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20309         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20310         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20311         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20312         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20313         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20314         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20315         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20316         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20317         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20319 2017-10-18  Renlin Li  <renlin.li@arm.com>
20321         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
20322         _DYNAMIC symbol to calculate load address.
20324 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
20326         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
20327         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
20328         summary bits.
20329         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
20330         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
20332 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
20334         [BZ #16777]
20335         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
20336         and improve readability by using more ASCII.
20337         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
20338         and improve readability by using more ASCII.
20340 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
20342         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
20343         not all targets support atomics on bool.
20345 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
20347         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
20348         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
20349         __f128.
20350         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
20351         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
20352         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
20353         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
20354         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
20355         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
20357 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20359         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
20360         defines.
20362 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
20364         [BZ #22159]
20365         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
20366         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
20367         (do_check_remalloced_chunk): Fix build bug.
20368         (do_check_malloc_state): Add assert that checks arena->top.
20369         (malloc_consolidate): Remove initialization.
20370         (int_mallinfo): Remove call to malloc_consolidate.
20371          (__libc_mallopt): Clarify why malloc_consolidate is needed.
20373 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
20375         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
20376         (have_fastchunks): Remove.
20377         (clear_fastchunks): Remove.
20378         (set_fastchunks): Remove.
20379         (malloc_state): Add have_fastchunks.
20380         (malloc_init_state): Use have_fastchunks.
20381         (do_check_malloc_state): Remove incorrect invariant checks.
20382         (_int_malloc): Use have_fastchunks.
20383         (_int_free): Likewise.
20384         (malloc_consolidate): Likewise.
20386 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
20388         * malloc/malloc.c (tcache_put): Inline.
20389         (tcache_get): Inline.
20391 2017-10-17  Jordi Mallach  <jordi@gnu.org>
20393         Aurelien Jarno  <aurelien@aurel32.net>
20394         [BZ #2522]
20395         * localedata/locales/ca_ES@valencia: New file.
20396         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
20398 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
20400         [BZ #22296]
20401         * math/math.h: Let signbit use the builtin in C++ mode with gcc
20402         < 6.x
20404 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20406         * scripts/build-many-glibcs.py (Context.add_all_configs):
20407         Add arm-linux-gnueabihf multiarch extra_glibcs.
20409         * sysdeps/generic/ifunc-init.h: New file.
20410         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
20412 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
20414         [BZ #22019]
20415         * localedata/locales/el_GR: Set n_cs_precedes to 0.
20416         * localedata/locales/el_CY: copy "el_GR" because it is identical.
20417         * stdlib/tst-strfmon_l.c: adapt test case.
20419 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
20421         * sysdeps/generic/float128-abi.h: New file.
20422         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
20423         non-__prefixed symbols to ....
20424         * math/Versions: ... here.  Include <float128-abi.h>.
20425         * stdlib/Versions ... and here.  Include <float128-abi.h>
20427 2017-10-16  Florian Weimer  <fweimer@redhat.com>
20429         * version.h (VERSION): Switch to ".9000" as the development
20430         version suffix.
20432 2017-10-16  Florian Weimer  <fweimer@redhat.com>
20434         [BZ #22050]
20435         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
20436         compat_symbol_reference to access non-default version.
20438 2017-10-16  Florian Weimer  <fweimer@redhat.com>
20440         * malloc/Makefile (others-extras): Set to mcheck-init.o.
20442 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
20444         * include/shlib-compat.h (compat_symbol_reference): Update
20445         comment.
20447 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
20449         * math/Makefile (test-types): Add
20450         $(type-float128-$(float128-alias-fcts)).
20451         * math/test-float128.h (TYPE_STR): Define conditional on
20452         [FLT128_MANT_DIG == LDBL_MANT_DIG].
20453         (ULP_IDX): Likewise.
20454         (ULP_I_IDX): Likewise.
20456         * stdlib/strtold.c: Include <bits/floatn.h>
20457         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
20458         and later undefine as macro.  Define as weak alias if
20459         [!USE_WIDE_CHAR].
20460         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
20461         and later undefine as macro.  Define as weak alias if
20462         [USE_WIDE_CHAR].
20463         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
20464         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
20465         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
20466         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
20467         Define and later undefine as macro.  Define as weak alias if
20468         [USE_WIDE_CHAR].
20469         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
20470         <bits/floatn.h>.
20471         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
20472         Define and later undefine as macro.  Define as weak alias if
20473         [!USE_WIDE_CHAR].
20474         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
20475         Define and later undefine as macro.  Define as weak alias if
20476         [USE_WIDE_CHAR].
20478 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
20480         * localedata/collate-test.c (allocate_arrays): Don't use \n in
20481         record_verbose messages.
20483 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
20485         [BZ #22052]
20486         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
20487         to silence -O3 -Wall warning with GCC 7.
20489 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
20491         * Makeconfig (+link-static-before-libc): Use the first of
20492         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
20493         * gmon/Makefile (tests): Add tst-gmon-static.
20494         (tests-static): Likewise.
20495         (CFLAGS-tst-gmon-static.c): New.
20496         (CRT-tst-gmon-static): Likewise.
20497         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
20498         (tst-gmon-static-ENV): Likewise.
20499         (tests-special): Likewise.
20500         ($(objpfx)tst-gmon-static.out): Likewise.
20501         (clean-tst-gmon-static-data): Likewise.
20502         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
20503         * gmon/tst-gmon-static-gprof.sh: New file.
20504         * gmon/tst-gmon-static.c: Likewise.
20506 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
20508         [BZ #22295]
20509         * locale/programs/linereader.c (get_string): Don't warn on
20510         non-symbolic character.
20512         [BZ #22294]
20513         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
20514         int_curr_symbol.
20516         [BZ #22292]
20517         * locale/programs/record-status.h: New file
20518         * locale/programs/locale.c: Add comment.
20519         * locale/programs/charmap-dir.c: Don't include error.h.
20520         (charmap_opendir): Use record_error.
20521         * locale/programs/charmap.c: Don't include error.h.
20522         (charmap_read): Use record_error, and record_warning.
20523         (parse_charmap): Likewise.
20524         * locale/programs/ld-address.c: Don't include error.h.
20525         (address_finish): Use record_error, and record_warning.
20526         * locale/programs/ld-collate.c: Don't include error.h.
20527         (collate_finish): Use record_error, and record_error_at_line.
20528         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
20529         (ctype_class_new): Likewise.
20530         (ctype_map_new): Likewise.
20531         (set_one_default): Likewise.
20532         (set_class_defaults): Likewise.
20533         (translit_flatten): Likewise.
20534         (allocate_arrays): Use record_error, and record_verbose.
20535         * locale/programs/ld-identification.c: Don't include error.h.
20536         (indentation_finish): Use record_error and record_warning.
20537         * locale/programs/ld-measurement.c: Don't include error.h.
20538         (measurement_finish): Use record_error.
20539         * locale/programs/ld-messages.c
20540         (message_finish): Likewise.
20541         * locale/programs/ld-monetary.c
20542         (monetary_finish): Likewise.
20543         * locale/programs/ld-name.c (name_finish): Use record_error
20544         and record_warning.
20545         * locale/programs/ld-numeric.c
20546         (numeric_finish): Use record_error.
20547         * locale/programs/ld-paper.c: Don't include error.h.
20548         (paper_finish): Use record_error.
20549         * locale/programs/ld-telephone.c: Don't include error.h.
20550         (telephone_finish): Use record_error.
20551         * locale/programs/ld-time.c (time_finish): Likewise.
20552         * locale/programs/linereader.h (lr_error): Make inline func.
20553         * locale/programs/localedef.c: Define recorded_warning_count,
20554         and recorded_error_count.
20555         (main): Use record_error. Use recorded_error_count and
20556         recorded_warning_count to issue correct error returns.
20557         (add_to_readlist): Use record_error.
20558         (find_locale): Likewise.
20559         (load_locale): Likewise.
20560         * locale/programs/localedef.h: Remove be_quiet
20561         and WITH_CUR_LOCALE.
20562         * locale/programs/locarchive.c (compare_from_file): Use
20563         record_error.
20564         * locale/programs/locfile.c (write_locale_data): Use
20565         record_error.
20566         * locale/programs/repertoire.c: Dont include error.h.
20567         (repertoire_complain): Use record_error.
20568         * localedata/tst-fmon.sh: Expect failures from localedef.
20569         * localedata/tst-locale.sh: Likewise.
20570         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
20572         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
20573         (REPORTS): Likewise.
20574         (check): Likewise.
20575         (i18n): Rename to...
20576         (i18n_ctype): ...this.
20577         (i18n-report): Rename to...
20578         (i18n_ctype-report): ...this.
20579         * localedata/locales/i18n_ctype: Regenerate.
20580         * localedata/locales/i18n: copy i18n_ctype.
20582 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
20584         * stdlib/strfroml.c: Include <bits/floatn.h>.
20585         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
20586         Define before include of <stdlib.h> and undefine afterwards, then
20587         define as weak alias.
20589         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
20590         Undefine and restore default definition.  Use
20591         libm_alias_ldouble_other.
20593 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
20595         [BZ #22153]
20596         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
20597         in coredumps.
20599 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
20601         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
20602         Assign sym_map to be map for local symbols, as TLS relocations
20603         use sym_map to determine whether the symbol is defined and to
20604         extract the TLS information.
20605         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
20606         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
20608 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20610         [BZ #22189]
20611         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
20612         (math_force_eval): Add powerpc version.
20614         [BZ #22142]
20615         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
20616         -DBL_MAX.
20617         (do_test): Likewise.
20618         * stdio-common/tst-printf.sh: Likewise.
20619         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
20620         ifdef clause in order to set the carry bit right.  Replace r0 by
20621         0 without changing the behavior.
20623 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
20625         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
20626         <libm-alias-ldouble.h>.
20627         (fabsl): Define using libm_alias_ldouble.
20628         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
20629         <libm-alias-ldouble.h>.
20630         (fabsl): Define using libm_alias_ldouble.
20632         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
20633         Remove conditional code.
20635         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
20636         Rename to __clog10_internal_l.
20637         (__clog10_internal_l): Define aliases using
20638         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
20639         with __clog10.
20641 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20643         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
20644         * benchtests/sincosf-inputs: New file.
20645         * benchtests/cosf-inputs: New file.
20646         * benchtests/sinf-inputs: New file.
20648 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20650         * posix/tst-spawn.c (do_test): Wait for both children.
20652 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
20654         [BZ #22284]
20655         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
20656         tests-pie): Add tst-gmon-pie.
20657         (CFLAGS-tst-gmon-pie.c): New.
20658         (CRT-tst-gmon-pie): Likewise.
20659         (tst-gmon-pie-ENV): Likewise.
20660         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
20661         ($(objpfx)tst-gmon-pie.out): Likewise.
20662         (clean-tst-gmon-pie-data): Likewise.
20663         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
20664         * gmon/gmon.c [PIC]: Include <link.h>.
20665         [PIC] (callback): New function.
20666         (write_hist): Add an argument for load address.  Subtract load
20667         address from PCs.
20668         (write_call_graph): Likewise.
20669         (write_gmon): Call __dl_iterate_phdr to get load address, pass
20670         it to write_hist and write_call_graph.
20671         * gmon/tst-gmon-pie.c: New file.
20673 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
20675         * math/Makefile (test-types-basic): New variable.
20676         (test-types): Likewise.
20677         (libm-test-support): Use $(test-types) instead of $(types).
20678         (libm-tests-base-normal): Likewise.
20679         (libm-tests-base-finite): Likewise.
20680         (libm-tests-base-inline): Likewise.
20681         (generated): Likewise.
20682         ($(objpfx)libm-test-support-$(t).c): Likewise.
20683         (libm-tests-for-type iterator): Likewise.
20684         (libm-test-support iterator): Likewise.
20685         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
20686         (ulp_idx): Use ULP_IDX.
20687         * math/test-ldouble.h: Include <float.h>.
20688         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
20689         (ULP_IDX): New macro.
20690         (ULP_I_IDX): Likewise.
20691         * math/test-double.h (ULP_IDX): Likewise.
20692         (ULP_I_IDX): Likewise.
20693         * math/test-float.h (ULP_IDX): Likewise.
20694         (ULP_I_IDX): Likewise.
20695         * math/test-float128.h (ULP_IDX): Likewise.
20696         (ULP_I_IDX): Likewise.
20698 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20700         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
20701         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
20702         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
20703         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
20704         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
20705         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
20706         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
20707         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
20708         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
20709         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
20710         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
20711         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
20712         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
20713         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20714         (SINGLE_THREAD_BY_GLOBAL): Define.
20715         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
20716         Likewise.
20717         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
20718         Likewise.
20719         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
20720         Likewise.
20721         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
20722         Likewise.
20723         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
20724         (SINGLE_THREAD_BY_GLOBAL): Likewise.
20725         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
20726         Likewise.
20728 2017-10-11  Andreas Schwab  <schwab@suse.de>
20730         * nis/Makefile (aux): Remove.
20731         * nscd/Makefile (aux): Add nscd_hash.
20732         (nscd-modules): Likewise.
20733         ($(objpfx)nscd): Don't depend on libnsl.
20734         * nscd/nscd_hash.c: New file.
20735         * nscd/nscd_hash.h: Likewise.
20736         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
20737         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
20738         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
20739         instead of <nis/rpcsvc/nis.h>.
20740         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
20742 2017-10-11  Florian Weimer  <fweimer@redhat.com>
20744         [BZ #22078]
20745         Avoid large NSS buffers with many addresses, aliases.
20746         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
20747         using dynarrays and struct alloc_buffer.
20748         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
20749         (tst-nss-files-hosts-multi): Link with -ldl.
20750         * nss/tst-nss-files-hosts-multi.c: New file.
20752 2017-10-11  Florian Weimer  <fweimer@redhat.com>
20754         [BZ #18023]
20755         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
20756         scratch_buffer.  Eliminate gotos.
20758 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
20760         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
20761         libm_alias_ldouble_other.
20762         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
20763         undefine and redefine.
20764         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
20765         (exp10l): Do not define here.
20766         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
20767         (weak_alias): Undefine and redefine.
20768         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
20769         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
20770         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
20771         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
20773         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
20774         [!__fma] (fma): Define using libm_alias_double.
20775         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
20776         [!__fmaf] (fmaf): Define using libm_alias_float.
20777         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
20778         (fmal): Define using libm_alias_ldouble.
20780 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
20782         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
20783         New macro.
20784         (libm_alias_double_other): Likewise.
20785         (libm_alias_double_r): Use libm_alias_double_other_r.
20786         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
20787         New macro.
20788         (libm_alias_float_other): Likewise.
20789         (libm_alias_float_r): Use libm_alias_float_other_r.
20790         * sysdeps/generic/libm-alias-float128.h
20791         (libm_alias_float128_other_r): New macro.
20792         (libm_alias_float128_other): Likewise.
20793         (libm_alias_float128_r): Use libm_alias_float128_other_r.
20794         * sysdeps/generic/libm-alias-ldouble.h
20795         (libm_alias_ldouble_other_r): New macro.
20796         (libm_alias_ldouble_other): Likewise.
20797         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
20798         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20799         (libm_alias_double_other_r): New macro.
20800         (libm_alias_double_other): Likewise.
20801         (libm_alias_double_r): Use libm_alias_double_other_r.
20802         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
20803         (libm_alias_ldouble_other_r): New macro.
20804         (libm_alias_ldouble_other): Likewise.
20805         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
20806         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
20807         [!USE_AS_COMPAT]: Use libm_alias_double_other.
20808         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
20809         [!USE_AS_COMPAT]: Use libm_alias_float_other.
20810         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
20811         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
20812         * math/w_exp2f.c: Use libm_alias_float_other.
20813         * math/w_expf.c: Likewise.
20814         * math/w_log2f.c: Likewise.
20815         * math/w_logf.c: Likewise.
20816         * math/w_powf.c: Likewise.
20817         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
20818         [!__exp2f]: Use libm_alias_float_other.
20819         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
20820         [!__expf]: Use libm_alias_float_other.
20821         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
20822         [!__log2f]: Use libm_alias_float_other.
20823         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
20824         [!__logf]: Use libm_alias_float_other.
20825         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
20826         [!__powf]: Use libm_alias_float_other.
20828 2017-10-10  Florian Weimer  <fweimer@redhat.com>
20830         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
20831         function.
20832         (_nss_files_gethostbyname3_r): Call it.
20834 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
20836         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
20837         error.  Remove default definition of declare_mgen_alias.
20838         [!declare_mgen_alias_r]: Likewise.
20839         * sysdeps/generic/math-type-macros-double.h
20840         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
20841         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
20842         (declare_mgen_alias_r): Likewise.
20843         * sysdeps/generic/math-type-macros-float128.h
20844         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
20845         * sysdeps/generic/math-type-macros-ldouble.h
20846         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
20847         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
20848         macro.
20849         (declare_mgen_alias_r_s): Likewise.
20850         (declare_mgen_alias_r): Likewise.
20851         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
20852         (lgamma_r): Define using libm_alias_double_r.
20853         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
20854         (lgammaf_r): Define using libm_alias_float_r.
20855         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
20856         (lgammal_r): Define using libm_alias_ldouble_r.
20857         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
20858         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
20860 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20862         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20863         extern declaration.
20865 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
20867         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
20869 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
20871         [BZ #21326]
20872         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
20873         [__cplusplus >= 201103] (__USE_ISOC99): Define.
20874         * math/Makefile (test-math-cxx11): New test.
20875         * math/test-math-cxx11.cc: New file.
20877 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
20879         * login/openpty.c (openpty): Close slave pty file descriptor on error.
20881         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
20882         call to allocate the slave pty file descriptor.
20884 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
20886         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
20887         [!__fma] (fma): Define using libm_alias_double.
20888         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
20889         [!__fma] (fma): Define using libm_alias_double.
20891         * sysdeps/ieee754/float128/float128_private.h: Include
20892         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
20893         (libm_alias_ldouble_r): Undefine and redefine.
20894         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
20895         <libm-alias-ldouble.h>.
20896         (asinhl): Define using libm_alias_ldouble.
20897         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
20898         <libm-alias-ldouble.h>.
20899         (atanl): Define using libm_alias_ldouble.
20900         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
20901         <libm-alias-ldouble.h>.
20902         (cbrtl): Define using libm_alias_ldouble.
20903         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
20904         <libm-alias-ldouble.h>.
20905         (ceill): Define using libm_alias_ldouble.
20906         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
20907         <libm-alias-ldouble.h>.
20908         (copysignl): Define using libm_alias_ldouble.
20909         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
20910         <libm-alias-ldouble.h>.
20911         (cosl): Define using libm_alias_ldouble.
20912         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
20913         <libm-alias-ldouble.h>.
20914         (erfl): Define using libm_alias_ldouble.
20915         (erfcl): Likewise.
20916         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
20917         <libm-alias-ldouble.h>.
20918         (expm1l): Define using libm_alias_ldouble.
20919         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
20920         <libm-alias-ldouble.h>.
20921         (fabsl): Define using libm_alias_ldouble.
20922         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
20923         <libm-alias-ldouble.h>.
20924         (floorl): Define using libm_alias_ldouble.
20925         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
20926         <libm-alias-ldouble.h>.
20927         (fmal): Define using libm_alias_ldouble.
20928         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
20929         <libm-alias-ldouble.h>.
20930         (frexpl): Define using libm_alias_ldouble.
20931         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
20932         libm_alias_ldouble.
20933         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
20934         <libm-alias-ldouble.h>.
20935         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
20936         libm_alias_ldouble.
20937         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
20938         <libm-alias-ldouble.h>.
20939         (getpayloadl): Define using libm_alias_ldouble.
20940         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
20941         <libm-alias-ldouble.h>.
20942         (llrintl): Define using libm_alias_ldouble.
20943         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
20944         <libm-alias-ldouble.h>.
20945         (llroundl): Define using libm_alias_ldouble.
20946         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
20947         <libm-alias-ldouble.h>.
20948         (logbl): Define using libm_alias_ldouble.
20949         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
20950         <libm-alias-ldouble.h>.
20951         (lrintl): Define using libm_alias_ldouble.
20952         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
20953         <libm-alias-ldouble.h>.
20954         (lroundl): Define using libm_alias_ldouble.
20955         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
20956         <libm-alias-ldouble.h>.
20957         (modfl): Define using libm_alias_ldouble.
20958         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
20959         <libm-alias-ldouble.h>.
20960         (nearbyintl): Define using libm_alias_ldouble.
20961         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
20962         <libm-alias-ldouble.h>.
20963         (nextafterl): Define using libm_alias_ldouble.
20964         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
20965         <libm-alias-ldouble.h>.
20966         (nextupl): Define using libm_alias_ldouble.
20967         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
20968         <libm-alias-ldouble.h>.
20969         (remquol): Define using libm_alias_ldouble.
20970         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
20971         <libm-alias-ldouble.h>.
20972         (rintl): Define using libm_alias_ldouble.
20973         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
20974         <libm-alias-ldouble.h>.
20975         (roundevenl): Define using libm_alias_ldouble.
20976         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
20977         <libm-alias-ldouble.h>.
20978         (roundl): Define using libm_alias_ldouble.
20979         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
20980         using libm_alias_ldouble.
20981         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
20982         <libm-alias-ldouble.h>.
20983         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
20984         Define using libm_alias_ldouble.
20985         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
20986         <libm-alias-ldouble.h>.
20987         (sincosl): Define using libm_alias_ldouble.
20988         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
20989         <libm-alias-ldouble.h>.
20990         (sinl): Define using libm_alias_ldouble.
20991         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
20992         <libm-alias-ldouble.h>.
20993         (tanhl): Define using libm_alias_ldouble.
20994         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
20995         <libm-alias-ldouble.h>.
20996         (tanl): Define using libm_alias_ldouble.
20997         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
20998         <libm-alias-ldouble.h>.
20999         (totalorderl): Define using libm_alias_ldouble.
21000         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
21001         <libm-alias-ldouble.h>.
21002         (totalordermagl): Define using libm_alias_ldouble.
21003         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
21004         <libm-alias-ldouble.h>.
21005         (truncl): Define using libm_alias_ldouble.
21006         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
21007         libm_alias_ldouble.
21008         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
21009         libm_alias_ldouble.
21010         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
21011         <libm-alias-ldouble.h>.
21012         (weak_alias): Do not undefine and redefine.
21013         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21014         (copysignl): Define with long_double_symbol only if [IS_IN
21015         (libc)].
21016         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
21017         <libm-alias-ldouble.h>.
21018         (weak_alias): Do not undefine and redefine.
21019         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21020         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
21021         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
21022         <libm-alias-ldouble.h>.
21023         (weak_alias): Do not undefine and redefine.
21024         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21025         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
21026         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
21027         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
21028         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
21029         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
21030         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
21031         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
21032         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
21033         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
21034         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
21035         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
21036         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
21037         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
21038         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
21039         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
21040         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
21041         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
21042         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
21043         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
21044         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
21045         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
21046         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
21047         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
21048         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
21049         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
21051 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
21053         [BZ #22111]
21054         * malloc/malloc.c (tcache_shutting_down): Use bool type.
21055         (tcache_thread_freeres): Set tcache_shutting_down before
21056         freeing the tcache.
21057         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
21058         * malloc/tst-malloc-tcache-leak.c: New file.
21060 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21062         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
21063         back to powerpc32 file.
21064         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
21065         (memrchr): Add __memrchr_power8 to ifunc list.
21066         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
21067         extra bytes for unaligned inputs.
21069 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
21071         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
21072         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
21073         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
21074         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
21075         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
21077 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
21079         * sysdeps/arm/libm-test-ulps: Update.
21081         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
21082         <libm-alias-ldouble.h>.
21083         (asinhl): Define using libm_alias_ldouble.
21084         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
21085         <libm-alias-ldouble.h>.
21086         (cbrtl): Define using libm_alias_ldouble.
21087         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
21088         <libm-alias-ldouble.h>.
21089         (copysignl): Define using libm_alias_ldouble.
21090         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
21091         <libm-alias-ldouble.h>.
21092         (cosl): Define using libm_alias_ldouble.
21093         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
21094         <libm-alias-ldouble.h>.
21095         (erfl): Define using libm_alias_ldouble.
21096         (erfcl): Likewise.
21097         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
21098         <libm-alias-ldouble.h>.
21099         (fmal): Define using libm_alias_ldouble.
21100         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
21101         <libm-alias-ldouble.h>.
21102         (frexpl): Define using libm_alias_ldouble.
21103         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
21104         libm_alias_ldouble.
21105         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
21106         <libm-alias-ldouble.h>.
21107         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
21108         libm_alias_ldouble.
21109         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
21110         <libm-alias-ldouble.h>.
21111         (getpayloadl): Define using libm_alias_ldouble.
21112         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
21113         <libm-alias-ldouble.h>.
21114         (llrintl): Define using libm_alias_ldouble.
21115         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
21116         <libm-alias-ldouble.h>.
21117         (llroundl): Define using libm_alias_ldouble.
21118         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
21119         <libm-alias-ldouble.h>.
21120         (lrintl): Define using libm_alias_ldouble.
21121         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
21122         <libm-alias-ldouble.h>.
21123         (lroundl): Define using libm_alias_ldouble.
21124         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
21125         <libm-alias-ldouble.h>.
21126         (modfl): Define using libm_alias_ldouble.
21127         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
21128         <libm-alias-ldouble.h>.
21129         (nextupl): Define using libm_alias_ldouble.
21130         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
21131         <libm-alias-ldouble.h>.
21132         (remquol): Define using libm_alias_ldouble.
21133         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
21134         <libm-alias-ldouble.h>.
21135         (roundevenl): Define using libm_alias_ldouble.
21136         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
21137         <libm-alias-ldouble.h>.
21138         (roundl): Define using libm_alias_ldouble.
21139         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
21140         using libm_alias_ldouble.
21141         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
21142         <libm-alias-ldouble.h>.
21143         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
21144         <libm-alias-ldouble.h>.
21145         (setpayloadsigl): Define using libm_alias_ldouble.
21146         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
21147         <libm-alias-ldouble.h>.
21148         (sincosl): Define using libm_alias_ldouble.
21149         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
21150         <libm-alias-ldouble.h>.
21151         (sinl): Define using libm_alias_ldouble.
21152         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
21153         <libm-alias-ldouble.h>.
21154         (tanhl): Define using libm_alias_ldouble.
21155         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
21156         <libm-alias-ldouble.h>.
21157         (tanl): Define using libm_alias_ldouble.
21158         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
21159         <libm-alias-ldouble.h>.
21160         (totalorderl): Define using libm_alias_ldouble.
21161         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
21162         <libm-alias-ldouble.h>.
21163         (totalordermagl): Define using libm_alias_ldouble.
21164         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
21165         libm_alias_ldouble.
21166         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
21167         libm_alias_ldouble.
21169 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21171         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
21172         memmove_falkor.
21173         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21174         (__libc_ifunc_impl_list): Likewise.
21175         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
21176         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
21178         * benchtests/bench-memmove-walk.c: New file.
21179         * benchtests/Makefile (string-benchset): Add it.
21181         * benchtests/bench-memset-walk.c: New file.
21182         * benchtests/Makefile (string-benchset): Add it.
21184         * benchtests/bench-memcpy-walk.c: New file.
21185         * benchtests/Makefile (string-benchset): Add it.
21187 2017-10-05  Florian Weimer  <fweimer@redhat.com>
21189         nscd: Eliminate compilation time dependency in the build output.
21190         * nscd/nscd_stat.c (STATDATA_VERSION)
21191         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
21192         (STATDATA_VERSION_FULL): New macro definitions.
21193         (compilation): Remove.
21194         (struct statdata): Adjust version member.
21195         (send_stats): Set version from STATDATA_VERSION_FULL.
21196         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
21198 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
21200         * configure.ac (--enable-add-ons): Remove option.
21201         (machine): Do not mention add-ons in comment.
21202         (LIBC_PRECONFIGURE): Likewise.
21203         (add_ons): Remove variable and sanity checks and logic to locate
21204         add-ons.
21205         (add_ons_automatic): Remove variable.
21206         (configured_add_ons): Likewise.
21207         (add_ons_sfx): Likewise.
21208         (add_ons_pfx): Likewise.
21209         (add_on_subdirs): Likewise.
21210         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
21211         consideration of add-ons in Implies handling.
21212         (sysdeps_add_ons): Likewise.
21213         * configure: Regenerated.
21214         * libidn/configure.ac: Remove.
21215         * libidn/configure: Likewise.
21216         * sysdeps/unix/inet/configure.ac: New file.
21217         * sysdeps/unix/inet/configure: New generated file.
21218         * sysdeps/unix/inet/Subdirs: Add libidn.
21219         * Makeconfig (sysdeps-srcdirs): Remove variable.
21220         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
21221         ($(common-objpfx)config.status): Do not depend on add-on files.
21222         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
21223         comment.
21224         (all-subdirs): Do not include $(add-on-subdirs).
21225         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
21226         * config.make.in (add-ons): Remove variable.
21227         (add-on-subdirs): Likewise.
21228         (sysdeps-add-ons): Likewise.
21229         * manual/Makefile (add-chapters): Remove.
21230         ($(objpfx)texis): Do not depend on $(add-chapters).
21231         (nonexamples): Do not handle $(add-chapters).
21232         (examples): Do not handle $(add-ons).
21233         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
21234         libc-texinfo.sh.
21235         * manual/install.texi (Installation): Do not mention add-ons.
21236         (--enable-add-ons): Do not document configure option.
21237         * INSTALL: Regenerated.
21238         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
21239         * manual/maint.texi (Hierarchy Conventions): Do not mention
21240         add-ons.
21241         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
21242         --enable-add-ons.
21243         * scripts/gen-sorted.awk: Do not handle Subdirs files from
21244         add-ons.
21245         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
21246         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
21248 2017-10-05  Andreas Schwab  <schwab@suse.de>
21250         [BZ #15142]
21251         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
21252         (_IO_flush_all_lockp): Always lock list_all_lock.
21253         (_IO_flush_all_linebuffered): Likewise.
21254         (_IO_unbuffer_all): Likewise.
21256 2017-10-05  Florian Weimer  <fweimer@redhat.com>
21258         [BZ #15436]
21259         Do not flush stdio streams on abort.
21260         * stdlib/abort.c (fflush): Remove macro definition.
21261         (abort): Remove stages related to stdio flushing.
21263 2017-10-05  Florian Weimer  <fweimer@redhat.com>
21265         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
21267 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
21269         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21271 2017-10-05  Florian Weimer  <fweimer@redhat.com>
21273         * support/support_format_hostent.c (support_format_hostent): Add
21274         more error information for NETDB_INTERNAL.
21276 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
21278         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
21279         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
21280         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
21281         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
21282         AC_DEFINE if multi-arch is enabled.
21283         * sysdeps/i386/configure: Regenerated.
21285 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
21287         * Makeconfig (+link-static-before-libc): Use
21288         $(DEFAULT-LDFLAGS-$(@F)).
21289         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
21290         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
21291         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
21293 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
21295         * elf/Makefile (tests): Add tst-main1.
21296         (modules-names): Add tst-main1mod.
21297         ($(objpfx)tst-main1): New.
21298         (CRT-tst-main1): Likewise.
21299         (LDFLAGS-tst-main1): Likewise.
21300         (LDLIBS-tst-main1): Likewise.
21301         (tst-main1mod.so-no-z-defs): Likewise.
21302         * elf/tst-main1.c: New file.
21303         * elf/tst-main1mod.c: Likewise.
21305 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
21307         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
21309 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
21311         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
21312         (fma): Define using libm_alias_double.
21313         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
21314         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
21315         <math_ldbl_opt.h>.
21316         (fmal): Do not define as compat symbol here.
21317         * sysdeps/alpha/fpu/s_fma.c: New file.
21319 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21321         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
21323 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
21325         [BZ #22229]
21326         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21327         <math_ldbl_opt.h>
21328         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
21329         and libc.
21330         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
21331         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21332         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
21333         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
21334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21335         Include <math_ldbl_opt.h>
21336         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
21337         and libc.
21338         (compat_symbol): Undefine and redefine.
21339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21340         <math_ldbl_opt.h>
21341         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21342         (compat_symbol): Undefine and redefine.
21343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
21344         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
21345         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
21346         GLIBC_2_1 for libm.
21347         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
21348         GLIBC_2.0 copysignl symbol.
21349         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
21350         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
21352         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
21354 2017-10-04  Florian Weimer  <fweimer@redhat.com>
21356         * scripts/check-local-headers.sh: Ignore nspr4 header file
21357         directory in addition to nspr.
21359 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
21361         [BZ #17956]
21362         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
21363         * configure: Regenerate.
21364         * crypt/Makefile (nss-cpp-flags): New variable.
21365         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
21366         (CPPFLAGS-md5-crypt.c): Use it.
21367         * scripts/check-local-headers.sh: Ignore nspr header file
21368         directory.
21370 2017-10-04  Andreas Schwab  <schwab@suse.de>
21372         * nis/Makefile (services): Remove compat.
21373         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
21374         ($(objpfx)libnss_compat.so): Remove rule.
21375         * nis/Versions (libnss_compat): Remove.
21376         * nss/Makefile (services): Add compat.
21377         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
21378         * nss/Versions (libnss_compat): Define.
21379         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
21380         Don't include <rpc/types.h>.  Replace bool_t by bool.
21381         * nss/nss_compat/compat-initgroups.c: Likewise.
21382         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
21383         instead of <rpcsrv/ypclnt.h>.
21384         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
21385         yp_get_default_domain.
21386         * nss/nss_compat/compat-pwd.c: Likewise.
21387         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
21388         yp_get_default_domain.
21389         * nss/nss_compat/nisdomain.c: New file.
21390         * nss/nss_compat/nisdomain.h: Likewise.
21392 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21394         [BZ #22244]
21395         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
21396         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21398 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21400         [BZ #22243]
21401         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
21402         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
21404 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21406         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
21407         "movl main@GOTOFF(%ebx), %eax".
21409 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21411         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
21412         allow undefined _DYNAMIC in PIE libc.a.
21413         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
21414         Likewse.
21416 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21418         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
21419         check _DYNAMIC.
21421 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21423         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
21424         check _DYNAMIC.
21426 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21428         * math/test-math-iscanonical.cc (error): Replace bool with int.
21430 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
21432         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
21433         (modf): Define using libm_alias_double, only if [!__modf].
21434         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
21435         <libm-alias-double.h>.
21436         (modf): Define using libm_alias_double, only if [!__modf].
21437         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
21438         compat symbol here.
21439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
21440         (weak_alias): Do not undefine and redefine.
21441         (strong_alias): Likewise.
21442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
21443         (weak_alias): Likewise.
21444         (strong_alias): Likewise.
21446         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
21447         (logb): Define using libm_alias_double, only if [!__logb].
21448         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
21449         <libm-alias-double.h>.
21450         (logb): Define using libm_alias_double, only if [!__logb].
21451         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
21452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
21453         (weak_alias): Do not undefine and redefine.
21454         (strong_alias): Likewise.
21455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
21456         (weak_alias): Likewise.
21457         (strong_alias): Likewise.
21459 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21461         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
21462         Check SHARED instead PIC.
21464 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
21466         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
21467         [!__fmaf] (fmaf): Define using libm_alias_float.
21469         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
21470         (frexp): Define using libm_alias_double.
21471         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
21472         <libm-alias-double.h>.
21473         (frexp): Define using libm_alias_double.
21474         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
21475         compat symbol here.
21477 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
21479         [BZ #22235]
21480         * math/math.h: Trivial fix for unbalanced parentheses in comment.
21481         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
21482         (CFLAGS-test-math-iscanonical.cc): New variable.
21483         * math/test-math-iscanonical.cc: New file.
21484         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
21485         Provide a C++ implementation based on function overloading,
21486         rather than using __MATH_TG, which uses C-only builtins.
21487         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
21488         Likewise.
21489         * sysdeps/powerpc/powerpc64le/Makefile
21490         (CFLAGS-test-math-iscanonical.cc): New variable.
21492 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
21494         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
21495         (ceil): Define using libm_alias_double.
21496         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
21497         (floor): Define using libm_alias_double.
21498         * sysdeps/ieee754/dbl-64/s_llround.c: Include
21499         <libm-alias-double.h>.
21500         (llround): Define using libm_alias_double.
21501         * sysdeps/ieee754/dbl-64/s_lround.c: Include
21502         <libm-alias-double.h>.
21503         (lround): Define using libm_alias_double.
21504         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
21505         <libm-alias-double.h>.
21506         (nearbyint): Define using libm_alias_double.
21507         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
21508         <libm-alias-double.h>.
21509         (remquo): Define using libm_alias_double.
21510         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
21511         (rint): Define using libm_alias_double.
21512         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
21513         (round): Define using libm_alias_double.
21514         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
21515         (trunc): Define using libm_alias_double.
21516         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
21517         <libm-alias-double.h>.
21518         (ceil): Define using libm_alias_double.
21519         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
21520         <libm-alias-double.h>.
21521         (floor): Define using libm_alias_double.
21522         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
21523         <libm-alias-double.h>.
21524         (llround): Define using libm_alias_double.
21525         [_LP64] (lround): Likewise.
21526         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
21527         <libm-alias-double.h>.
21528         [!_LP64] (lround): Define using libm_alias_double.
21529         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
21530         <libm-alias-double.h>.
21531         (nearbyint): Define using libm_alias_double.
21532         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
21533         <libm-alias-double.h>.
21534         (remquo): Define using libm_alias_double.
21535         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
21536         <libm-alias-double.h>.
21537         (rint): Define using libm_alias_double.
21538         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
21539         <libm-alias-double.h>.
21540         (round): Define using libm_alias_double.
21541         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
21542         <libm-alias-double.h>.
21543         (trunc): Define using libm_alias_double.
21544         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
21545         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
21546         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
21547         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
21548         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
21549         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
21550         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
21551         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
21552         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
21554 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21556         * math/w_remainder.c: New file.
21557         * math/w_remainderf.c: New file.
21558         * math/w_remainderl.c: New file.
21560 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
21562         * elf/rtld.c (BOOTSTRAP_MAP): New.
21563         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
21564         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
21565         Likewise.
21566         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
21567         Likewise.
21568         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
21569         Likewise.
21571 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21573         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
21574         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
21575         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
21576         rtld_hidden_data_ver): Define to empty.
21577         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
21578         __assert_perror_fail): Likewise.
21579         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
21580         (__rewinddir): Likewise.
21581         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
21582         (__profile_frequency): Likewise.
21583         * include/setjmp.h (__sigsetjmp): Likewise.
21584         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
21585         __libc_sigaction): Likewise.
21586         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
21587         not set hidden attribute.
21588         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
21589         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
21590         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
21591         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
21592         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
21593         __fxstatat64): Likewise.
21594         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
21595         (__uname): Likewise.
21596         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
21597         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
21598         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
21599         (NO_RTLD_HIDDEN): Set.
21600         * sysdeps/mach/hurd/configure: Refresh.
21601         * config.h.in: Refresh.
21603 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
21605         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
21606         (atan): Define using libm_alias_double.
21607         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
21608         (tan): Define using libm_alias_double.
21609         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
21610         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
21612         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
21613         define as weak alias of __atan.  Do not define any aliases if
21614         [__atan].
21615         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
21616         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
21617         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
21618         as weak alias of __tan.  Do not define any aliases if [__tan].
21619         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
21620         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
21621         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
21622         __atan.
21623         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
21624         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
21625         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
21626         and define as weak alias of __atan.
21627         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
21628         __atan.
21629         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
21630         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
21631         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
21632         define as weak alias of __tan.
21634 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21636         * math/w_lgamma.c: New file.
21637         * math/w_lgammaf.c: New file.
21638         * math/w_lgammal.c: New file.
21640 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21642         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
21643         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
21644         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
21645         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
21646         * sysdeps/ieee754/flt-32/w_logf.c: New file.
21647         * sysdeps/ieee754/flt-32/w_powf.c: New file.
21648         * sysdeps/i386/fpu/w_log2f.c: New file.
21649         * sysdeps/i386/fpu/w_logf.c: New file.
21650         * sysdeps/i386/fpu/w_powf.c: New file.
21651         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
21652         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
21653         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
21655 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21656             H.J. Lu  <hongjiu.lu@intel.com>
21658         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
21659         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
21660         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
21661         * sysdeps/ieee754/flt-32/w_expf.c: New file.
21662         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
21663         the new expf code.
21664         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
21665         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
21666         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
21667         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
21668         * sysdeps/i386/fpu/w_exp2f.c: New file.
21669         * sysdeps/i386/fpu/w_expf.c: New file.
21670         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
21671         * sysdeps/x86_64/fpu/w_expf.c: New file.
21673 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21675         * math/Versions (logf): New libm symbol at GLIBC_2.27.
21676         (log2f): Likewise.
21677         (powf): Likewise.
21678         * math/w_log2f.c: New file.
21679         * math/w_logf.c: New file.
21680         * math/w_powf.c: New file.
21681         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
21682         * math/w_logf_compat.c (__logf_compat): Likewise.
21683         * math/w_powf_compat.c (__powf_compat): Likewise.
21684         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
21685         * sysdeps/ia64/fpu/e_logf.S: Likewise.
21686         * sysdeps/ia64/fpu/e_powf.S: Likewise.
21687         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
21688         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21689         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21690         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21691         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21692         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21693         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21694         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21695         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21696         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21697         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21698         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21700         Likewise.
21701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21702         Likewise.
21703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21704         Likewise.
21705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21706         Likewise.
21707         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21708         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21709         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21710         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21711         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21712         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21713         Likewise.
21714         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21715         Likewise.
21716         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21717         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21718         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21720 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21722         * sysdeps/powerpc/powerpc64/multiarch/Makefile
21723         (sysdep_routines): Add memrchr_power8.
21724         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21725         (memrchr): Add __memrchr_power8 to list of memrchr functions.
21726         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
21727         New file.
21728         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
21729         (memrchr): Add __memrchr_power8 to ifunc list.
21730         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
21732 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21734         [BZ #18822]
21735         * sysdeps/unix/sysv/linux/posix_fadvise64.c
21736         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
21737         libc_hidden_def.
21738         * sysdeps/unix/sysv/linux/posix_fallocate64.c
21739         (__posix_fallocate64_l64): Likewise.
21741 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21743         [BZ #18822]
21744         * sysdeps/unix/sysv/linux/sched_setaffinity.c
21745         (__sched_setaffinity_new): Add libc_hidden_proto and
21746         libc_hidden_def.
21748 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21750         [BZ #18822]
21751         * include/glob.h (__glob64): Add libc_hidden_proto.
21752         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
21753         libc_hidden_def.
21755 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21757         [BZ #18822]
21758         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
21759         attribute_hidden.
21761 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21763         [BZ #18822]
21764         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
21766 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21768         [BZ #18822]
21769         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
21770         libc_hidden_def.
21772 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21774         [BZ #18822]
21775         * csu/version.c (__libc_print_version): Add attribute_hidden.
21777 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21779         [BZ #18822]
21780         * include/libc-internal.h (__init_misc): Add attribute_hidden.
21782 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21784         [BZ #18822]
21785         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
21787 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21789         [BZ #18822]
21790         * nscd/nscd_helper.c (__nis_hash): New prototype.
21792 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21794         [BZ #18822]
21795         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
21796         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
21797         libc_hidden_def.
21798         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
21799         * termios/tcgetattr.c (__tcgetattr): Likewise.
21801 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21803         [BZ #18822]
21804         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
21805         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
21806         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
21807         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
21808         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
21810 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21812         [BZ #18822]
21813         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
21815 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21817         [BZ #18822]
21818         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
21819         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
21821 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21823         [BZ #18822]
21824         * intl/hash-string.h (__hash_string): Add attribute_hidden.
21826 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21828         [BZ #18822]
21829         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
21830         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
21832 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21834         [BZ #18822]
21835         * include/ifreq.h: New file.
21836         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
21837         (__ifreq): Likewise.
21838         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
21839         (__ifreq): Likewise.
21841 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21843         [BZ #18822]
21844         * include/idna.h: New file.
21845         * inet/getnameinfo.c: Include <idna.h> instead of
21846         <libidn/idna.h>.
21847         (__idna_to_unicode_lzlz): Removed.
21848         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
21849         <libidn/idna.h>.
21850         (__idna_to_ascii_lz): Removed.
21851         (__idna_to_unicode_lzlz): Likewise.
21853 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21855         [BZ #18822]
21856         * include/plural-exp.h: New file.
21857         * intl/plural-exp.c: Include <plural-exp.h> instead of
21858         "plural-exp.h".
21860 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21862         [BZ #18822]
21863         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
21864         "getsourcefilter.h".
21865         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
21866         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
21867         "getsourcefilter.h".
21868         (__get_sol): Removed.
21870 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21872         [BZ #18822]
21873         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
21874         to ...
21875         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
21877 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21879         [BZ #18822]
21880         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
21881         attribute_hidden.
21883 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21885         [BZ #18822]
21886         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
21888 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21890         [BZ #18822]
21891         * include/search.h (__tdestroy): Add libc_hidden_proto.
21892         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
21894 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21896         [BZ #18822]
21897         * include/assert.h (__assert_fail_base): Add attribute_hidden.
21899 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21901         [BZ #18822]
21902         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
21903         attribute_hidden.
21905 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21907         [BZ #18822]
21908         * include/signal.h (__kill): Add libc_hidden_proto.
21909         (__sigblock): Likewise.
21910         (__sigprocmask): Likewise.
21911         (__sigaltstack): Likewise.
21912         * signal/kill.c (__kill): Add libc_hidden_def.
21913         * signal/sigblock.c (__sigblock): Likewise.
21914         * signal/sigprocmask.c (__sigprocmask): Likewise.
21915         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
21916         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
21917         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
21918         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
21919         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
21920         Likewise.
21921         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
21922         Likewise.
21923         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
21924         (__sigprocmask): Likewise.
21925         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
21926         Likewise.
21927         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
21928         (__sigprocmask): Likewise.
21929         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
21930         Likewise.
21932 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21934         [BZ #18822]
21935         * include/string.h (__strsep): Add libc_hidden_proto.
21936         * string/strsep.c (__strsep): Add libc_hidden_def.
21938 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21940         [BZ #18822]
21941         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
21942         attribute_hidden.
21943         (__spawni): Likewise.
21945 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21947         [BZ #18822]
21948         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
21949         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
21950         libc_hidden_def.
21952 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21954         [BZ #18822]
21955         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
21957 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21959         [BZ #18822]
21960         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
21961         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
21962         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
21963         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
21964         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
21965         Likewise.
21966         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
21967         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
21969 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21971         [BZ #18822]
21972         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
21973         (__dcigettext): Likewise.
21975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21977         [BZ #18822]
21978         * include/sys/sysinfo.h (__get_nprocs_conf): Add
21979         libc_hidden_proto.
21980         (__get_nprocs): Likewise.
21981         (__get_phys_pages): Likewise.
21982         (__get_avphys_pages): Likewise.
21983         (__get_child_max): Add attribute_hidden.
21984         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
21985         (__get_nprocs): Likewise.
21986         (__get_phys_pages): Likewise.
21987         (__get_avphys_pages): Likewise.
21988         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
21989         libc_hidden_def.
21990         (__get_nprocs): Likewise.
21991         (__get_phys_pages): Likewise.
21992         (__get_avphys_pages): Likewise.
21993         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
21994         libc_hidden_def.
21995         (__get_nprocs_conf): Likewise.
21996         (__get_phys_pages): Likewise.
21997         (__get_avphys_pages): Likewise.
21999 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22001         [BZ #18822]
22002         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
22003         attribute_hidden.
22004         (__netlink_close): Likewise.
22005         (__netlink_free_handle): Likewise.
22006         (__netlink_request): Likewise.
22008 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22010         [BZ #18822]
22011         * include/rpc/rpc.h (__rpc_thread_variables): Add
22012         attribute_hidden.
22013         (__rpc_thread_svc_cleanup): Likewise.
22014         (__rpc_thread_clnt_cleanup): Likewise.
22015         (__rpc_thread_key_cleanup): Likewise.
22017 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22019         [BZ #18822]
22020         * include/sys/uio.h (__readv): Add libc_hidden_proto.
22021         (__writev): Likewise.
22022         * misc/readv.c (__readv): Add libc_hidden_def.
22023         * misc/writev.c (__writev): Likewise.
22024         * sysdeps/posix/readv.c (__readv): Likewise.
22025         * sysdeps/posix/writev.c (__writev): Likewise.
22026         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
22027         (__readv): Likewise.
22028         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
22029         (__writev): Likewise.
22031 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22033         [BZ #18822]
22034         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
22035         (__regcomp): Add libc_hidden_proto.
22036         (__regexec): Likewise.
22037         (__regfree): Likewise.
22038         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
22039         (__regfree): Likewise.
22040         * posix/regexec.c (__regexec): Likewise.
22042 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22044         [BZ #18822]
22045         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
22046         (__getutent): Likewise.
22047         (__getutid): Likewise.
22048         (__getutline): Likewise.
22049         (__pututline): Likewise.
22050         (__getutent_r): Likewise.
22051         (__getutid_r): Likewise.
22052         (__getutline_r): Likewise.
22053         (__utmpname): Add attribute_hidden.
22054         (__setutent): Likewise.
22055         (__endutent): Likewise.
22056         * login/getutent.c (__getutent): Add libc_hidden_def.
22057         * login/getutent_r.c (__getutent_r): Likewise.
22058         (__pututline): Likewise.
22059         * login/getutid.c (__getutid): Likewise.
22060         * login/getutid_r.c (__getutid_r): Likewise.
22061         * login/getutline.c (__getutline): Likewise.
22062         * login/getutline_r.c (__getutline_r): Likewise.
22063         * login/updwtmp.c (__updwtmp): Likewise.
22065 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22067         [BZ #18822]
22068         * include/dirent.h (__opendir): Always add attribute_hidden.
22069         (__fdopendir): Likewise.
22070         (__closedir): Likewise.
22071         (__readdir): Likewise.
22072         (__readdir64): Add libc_hidden_proto.
22073         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
22074         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
22075         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
22076         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
22077         New alias.
22079 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22081         [BZ #18822]
22082         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
22083         * include/netdb.h (__gethostbyaddr_r): Likewise.
22084         (__gethostbyname_r): Likewise.
22085         (__gethostbyname2_r): Likewise.
22086         (__getnetbyaddr_r): Likewise.
22087         (__getnetbyname_r): Likewise.
22088         (__getservbyname_r): Likewise.
22089         (__getservbyport_r): Likewise.
22090         (__getprotobyname_r): Likewise.
22091         (__getprotobynumber_r): Likewise.
22092         (__getnetgrent_r): Likewise.
22093         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
22094         (__getrpcbynumber_r): Likewise.
22095         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
22097 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22099         [BZ #18822]
22100         * include/stdio.h (__fcloseall): Add attribute_hidden.
22101         (__getline): Likewise.
22102         (__path_search): Likewise.
22103         (__gen_tempname): Likewise.
22104         (__libc_message): Likewise.
22105         (__flockfile): Likewise.
22106         (__funlockfile): Likewise.
22107         (__fxprintf): Likewise.
22108         (__fxprintf_nocancel): Likewise.
22110 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22112         [BZ #18822]
22113         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
22114         (__sgetsgent_r): Likewise.
22116 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22118         [BZ #18822]
22119         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
22120         (__statfs64): Likewise.
22121         (__fstatfs64): Likewise.
22122         * include/sys/statvfs.h (__statvfs64): Likewise.
22123         (__fstatvfs64): Likewise.
22124         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
22125         (__statfs_filesize_max): Likewise.
22126         (__statfs_symlinks): Likewise.
22127         (__statfs_chown_restricted): Likewise.
22129 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22131         [BZ #18822]
22132         * include/time.h (__tzstring): Add attribute_hidden.
22133         (__tzfile_read): Likewise.
22134         (__tzfile_compute): Likewise.
22135         (__tzfile_default): Likewise.
22136         (__tzset_parse_tz): Likewise.
22137         (__offtime): Likewise.
22138         (__asctime_r): Likewise.
22139         (__tzset): Likewise.
22140         (__tz_convert): Likewise.
22141         (__getdate_r): Likewise.
22142         (__getclktck): Likewise.
22144 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22146         [BZ #18822]
22147         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
22148         (__nscd_unmap): Likewise.
22149         (__nscd_cache_search): Likewise.
22150         (__nscd_get_nl_timestamp): Likewise.
22151         (__nscd_getpwnam_r): Likewise.
22152         (__nscd_getpwuid_r): Likewise.
22153         (__nscd_getgrnam_r): Likewise.
22154         (__nscd_getgrgid_r): Likewise.
22155         (__nscd_gethostbyname_r): Likewise.
22156         (__nscd_gethostbyname2_r): Likewise.
22157         (__nscd_gethostbyaddr_r): Likewise.
22158         (__nscd_getai): Likewise.
22159         (__nscd_getgrouplist): Likewise.
22160         (__nscd_getservbyname_r): Likewise.
22161         (__nscd_getservbyport_r): Likewise.
22162         (__nscd_innetgr): Likewise.
22163         (__nscd_setnetgrent): Likewise.
22165 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22167         [BZ #18822]
22168         * include/gmp.h: Declare internal functions only if _ISOMAC is
22169         undefined.
22170         (__mpn_extract_double): Add attribute_hidden.
22171         (__mpn_extract_long_double): Likewise.
22172         (__mpn_extract_float128): Likewise.
22173         (__mpn_construct_float): Likewise.
22174         (__mpn_construct_double): Likewise.
22175         (__mpn_construct_long_double): Likewise.
22176         (__mpn_construct_float128): Likewise.
22177         (mpn_add_1): Likewise.
22178         (mpn_addmul_1): Likewise.
22179         (mpn_add_n): Likewise.
22180         (mpn_cmp): Likewise.
22181         (mpn_divrem): Likewise.
22182         (mpn_lshift): Likewise.
22183         (mpn_mul): Likewise.
22184         (mpn_mul_1): Likewise.
22185         (mpn_rshift): Likewise.
22186         (mpn_sub_1): Likewise.
22187         (mpn_submul_1): Likewise.
22188         (mpn_sub_n): Likewise.
22190 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22192         [BZ #18822]
22193         * include/wchar.h (__wcsnlen): Add attribute_hidden.
22194         (__wcscat): Likewise.
22195         (__btowc): Likewise.
22196         (__wcrtomb): Likewise.
22197         (__mbsrtowcs): Likewise.
22198         (__wcsrtombs): Likewise.
22199         (__mbsnrtowcs): Likewise.
22200         (__wcsnrtombs): Likewise.
22201         (__wcsncpy): Likewise.
22202         (__wcpncpy): Likewise.
22203         (__wmemcpy): Likewise.
22204         (__wmempcpy): Likewise.
22205         (__wmemmove): Likewise.
22206         (__wcschrnul): Likewise.
22207         (__vfwscanf): Likewise.
22208         (__vswprintf): Likewise.
22209         (__fwprintf): Likewise.
22210         (__vfwprintf): Likewise.
22212 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22214         [BZ #18822]
22215         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
22216         (__getgrgid_r): Likewise.
22217         (__getgrnam_r): Likewise.
22218         * include/pwd.h (__getpwuid_r): Likewise.
22219         (__getpwnam_r): Likewise.
22220         (__fgetpwent_r): Likewise.
22221         * include/shadow.h (__getspnam_r): Likewise.
22222         (__sgetspent_r): Likewise.
22223         (__fgetspent_r): Likewise.
22225 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22227         [BZ #18822]
22228         * include/unistd.h (__access): Add attribute_hidden.
22229         (__lseek64): Likewise.
22230         (__libc_pread64): Likewise.
22231         (__pipe2): Likewise.
22232         (__sleep): Likewise.
22233         (__chdir): Likewise.
22234         (__fchdir): Likewise.
22235         (__getcwd): Likewise.
22236         (__rmdir): Likewise.
22237         (__execvpe): Likewise.
22238         (__execve): Likewise.
22239         (__setsid): Likewise.
22240         (__getuid): Likewise.
22241         (__geteuid): Likewise.
22242         (__getgid): Likewise.
22243         (__getegid): Likewise.
22244         (__getgroups): Likewise.
22245         (__group_member): Likewise.
22246         (__ttyname_r): Likewise.
22247         (__isatty): Likewise.
22248         (__readlink): Likewise.
22249         (__unlink): Likewise.
22250         (__gethostname): Likewise.
22251         (__profil): Likewise.
22252         (__getdtablesize): Likewise.
22253         (__brk): Likewise.
22254         (__ftruncate): Likewise.
22255         (__ftruncate64): Likewise.
22257 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22259         [BZ #18822]
22260         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
22261         * argp/argp-fs-xinl.c: Likewise.
22262         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
22263         * argp/argp-parse.c: Include <argp.h>.
22264         * argp/argp-xinl.c: Likewise.
22265         * include/argp-fmtstream.h: New file.
22266         * include/argp.h (__argp_error): Add attribute_hidden.
22267         (__argp_failure): Likewise.
22268         (__argp_input): Likewise.
22269         (__argp_state_help): Likewise.
22271 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22273         [BZ #18822]
22274         * include/wchar.h (____wcstof_l_internal): New prototype.
22275         (____wcstod_l_internal): Likewise.
22276         (____wcstold_l_internal): Likewise.
22277         (____wcstol_l_internal): Likewise.
22278         (____wcstoul_l_internal): Likewise.
22279         (____wcstoll_l_internal): Likewise.
22280         (____wcstoull_l_internal): Likewise.
22281         (____wcstof128_l_internal): Likewise.
22282         * sysdeps/ieee754/float128/wcstof128.c
22283         (____wcstof128_l_internal): Removed.
22284         * sysdeps/ieee754/float128/wcstof128_l.c
22285         (____wcstof128_l_internal): Likewise.
22286         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
22287         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
22288         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
22289         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
22290         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
22291         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
22292         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
22293         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
22294         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
22295         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
22297 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22299         [BZ #18822]
22300         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
22301         instead of <sys/statvfs.h>.
22302         (__internal_statvfs): Removed.
22303         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
22304         instead of <sys/statvfs.h>.
22305         (__internal_statvfs64): Removed.
22306         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
22307         "internal_statvfs.h" instead of <sys/statvfs.h>.
22308         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
22309         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
22310         instead of <sys/statvfs.h>.
22311         (__internal_statvfs): Removed.
22312         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
22313         instead of <sys/statvfs.h>.
22314         (__internal_statvfs64): Removed.
22316 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22318         [BZ #18822]
22319         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
22320         (__gconv_close): Likewise.
22321         (__gconv): Likewise.
22322         (__gconv_find_transform): Likewise.
22323         (__gconv_lookup_cache): Likewise.
22324         (__gconv_compare_alias_cache): Likewise.
22325         (__gconv_load_cache): Likewise.
22326         (__gconv_get_path): Likewise.
22327         (__gconv_close_transform): Likewise.
22328         (__gconv_release_cache): Likewise.
22329         (__gconv_find_shlib): Likewise.
22330         (__gconv_release_shlib): Likewise.
22331         (__gconv_get_builtin_trans): Likewise.
22332         (__gconv_compare_alias): Likewise.
22333         * include/dlfcn.h (_dlerror_run): Likewise.
22334         * include/stdio.h (__fortify_fail_abort): Likewise.
22335         * include/time.h (__tz_compute): Likewise.
22336         (__strptime_internal): Likewise.
22337         * intl/gettextP.h (_nl_find_domain): Likewise.
22338         (_nl_load_domain): Likewise.
22339         (_nl_find_msg): Likewise.
22340         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
22341         (EXTRACT_PLURAL_EXPRESSION): Likewise.
22342         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
22343         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
22344         (__gai_find_request): Likewise.
22345         (__gai_remove_request): Likewise.
22346         (__gai_notify): Likewise.
22347         (__gai_notify_only): Likewise.
22348         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
22349         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
22350         (_dl_non_dynamic_init): Likewise.
22351         (_dl_aux_init): Likewise.
22352         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
22353         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
22354         Likewise.
22355         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
22356         (__wcsmbs_clone_conv): Likewise.
22357         (__wcsmbs_named_conv): Likewise.
22359 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22361         [BZ #18822]
22362         * include/stdlib.h (__random): Add attribute_hidden.
22363         (__random_r): Likewise.
22364         (__srandom_r): Likewise.
22365         (__initstate_r): Likewise.
22366         (__setstate_r): Likewise.
22367         (__erand48_r): Likewise.
22368         (__nrand48_r): Likewise.
22369         (__jrand48_r): Likewise.
22370         (__srand48_r): Likewise.
22371         (__seed48_r): Likewise.
22372         (__lcong48_r): Likewise.
22373         (__drand48_iterate): Likewise.
22374         (__setenv): Likewise.
22375         (__unsetenv): Likewise.
22376         (__clearenv): Likewise.
22377         (__ptsname_r): Likewise.
22378         (__posix_openpt): Likewise.
22379         (__add_to_environ): Likewise.
22380         (__realpath): Add libc_hidden_proto.
22381         (__ecvt_r): Likewise.
22382         (__fcvt_r): Likewise.
22383         (__qecvt_r): Likewise.
22384         (__qfcvt_r): Likewise.
22385         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
22386         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
22388 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
22390         [BZ #18822]
22391         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
22392         * include/time.h (__mktime_internal): Likewise.
22393         * libio/iolibio.h (__fopen_internal): Likewise.
22395 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
22397         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
22398         pointer in frame.
22399         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
22400         Correct offset used to restore PIC register.
22402 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
22404         [BZ libc/22165]
22405         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
22406         code to load address of __getcontext_ret when generating PIC code.
22408 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
22410         * elf/Makefile (tests-static-internal): Add
22411         tst-tls1-static-non-pie.
22412         (LDFLAGS-tst-tls1-static-non-pie): New.
22413         * elf/tst-tls1-static-non-pie.c: New file.
22415 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
22417         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
22418         (asinh): Define using libm_alias_double.
22419         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
22420         (cbrt): Define using libm_alias_double.
22421         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
22422         <libm-alias-double.h>.
22423         (copysign): Define using libm_alias_double.
22424         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
22425         (erf): Define using libm_alias_double.
22426         (erfc): Likewise.
22427         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
22428         (expm1): Define using libm_alias_double.
22429         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
22430         (fabs): Define using libm_alias_double.
22431         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
22432         libm_alias_double.
22433         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
22434         <libm-alias-double.h>.
22435         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
22436         libm_alias_double.
22437         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
22438         <libm-alias-double.h>.
22439         (getpayload): Define using libm_alias_double.
22440         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
22441         <libm-alias-double.h>.
22442         (llrint): Define using libm_alias_double.
22443         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
22444         (lrint): Define using libm_alias_double.
22445         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
22446         <libm-alias-double.h>.
22447         (nextup): Define using libm_alias_double.
22448         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
22449         <libm-alias-double.h>.
22450         (roundeven): Define using libm_alias_double.
22451         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
22452         libm_alias_double.
22453         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
22454         <libm-alias-double.h>.
22455         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
22456         using libm_alias_double.
22457         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
22458         (cos): Define using libm_alias_double.
22459         (sin): Likewise.
22460         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
22461         <libm-alias-double.h>.
22462         (sincos): Define using libm_alias_double.
22463         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
22464         (tanh): Define using libm_alias_double.
22465         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
22466         <libm-alias-double.h>.
22467         (totalorder): Define using libm_alias_double.
22468         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
22469         <libm-alias-double.h>.
22470         (totalordermag): Define using libm_alias_double.
22471         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
22472         libm_alias_double.
22473         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
22474         libm_alias_double.
22475         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
22476         <libm-alias-double.h>.
22477         (getpayload): Define using libm_alias_double.
22478         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
22479         <libm-alias-double.h>.
22480         (roundeven): Define using libm_alias_double.
22481         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
22482         <libm-alias-double.h>.
22483         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
22484         <libm-alias-double.h>.
22485         (totalorder): Define using libm_alias_double.
22486         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
22487         <libm-alias-double.h>.
22488         (totalordermag): Define using libm_alias_double.
22489         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
22490         libc compat symbol here.
22491         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
22492         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
22493         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
22494         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
22495         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
22496         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
22497         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
22498         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
22499         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
22500         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
22502 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
22504         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
22505         _dl_relocate_static_pie instead of _dl_start to compute load
22506         address in static PIE.  Return 0 if _DYNAMIC is undefined for
22507         static executable.
22509 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
22511         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
22512         _DYNAMIC is undefined for static executable.
22514 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
22516         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
22518 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
22520         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22522 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
22524         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
22525         (__ieee754_lgamma_r): Use fabs rather than __fabs.
22526         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
22527         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
22528         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
22529         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
22530         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
22531         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
22532         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
22533         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
22534         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
22535         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22536         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
22537         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
22538         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
22539         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
22540         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
22542 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
22544         * math/bits/cmathcalls.h (cimag): Remove inline.
22545         (creal): Remove inline.
22546         (conj): Remove inline.
22548 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22550         * math/Makefile (type-float-routines): Add e_powf_log2_data.
22551         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
22552         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
22553         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
22554         (issignalingf_inline): Likewise.
22555         (POWF_LOG2_TABLE_BITS): Likewise.
22556         (POWF_LOG2_POLY_ORDER): Likewise.
22557         (POWF_SCALE_BITS): Likewise.
22558         (POWF_SCALE): Likewise.
22559         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
22560         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
22561         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
22563 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22565         * math/Makefile (type-float-routines): Add e_log2f_data.
22566         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
22567         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
22568         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
22569         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
22570         * sysdeps/i386/fpu/e_log2f_data.c: New file.
22571         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
22572         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
22574 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22576         * math/Makefile (type-float-routines): Add e_logf_data.
22577         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
22578         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
22579         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
22580         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
22581         * sysdeps/i386/fpu/e_logf_data.c: New file.
22582         * sysdeps/ia64/fpu/e_logf_data.c: New file.
22583         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
22585 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
22587         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
22588         undefined _DYNAMIC in PIE libc.a.
22589         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
22590         Likewse.
22592 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
22594         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
22595         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
22596         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
22597         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
22598         (__signbit): Remove.
22599         (__signbitl): Remove.
22600         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
22601         (__signbit): Remove.
22602         (__signbitl): Remove.
22603         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
22604         (__signbit): Remove.
22605         (__signbitl): Remove.
22606         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
22607         (__signbit): Remove.
22608         (__signbitl): Remove.
22609         * sysdeps/tile/bits/mathinline.h: Delete file.
22610         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
22611         (__signbit): Remove.
22612         (__signbitl): Remove.
22614 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
22616         * math/math.h: Improve handling of C99 isgreater macros.
22617         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
22618         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
22619         * sysdeps/powerpc/bits/mathinline.h: Likewise.
22620         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
22621         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
22623 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22625         * sysdeps/aarch64/libm-test-ulps: Update.
22627 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
22629         [BZ #22225]
22630         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22631         math_opt_barrier on argument when doing arithmetic on it.
22632         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
22633         Likewise.  Use math_force_eval not math_opt_barrier after
22634         arithmetic.
22635         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
22636         math_opt_barrier on argument when doing arithmetic on it.
22637         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
22638         Likewise.
22640 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
22642         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
22643         libc_hidden_def.
22644         (__freeifaddrs): Likewise.
22646 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22648         * include/dirent.h (__dirfd): New declaration.
22649         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
22650         alias.
22651         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
22652         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
22653         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
22654         * include/unistd.h (__revoke): New declaration.
22655         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
22656         alias.
22657         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22658         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
22659         revoke.
22660         * include/dirent.h (__seekdir): New declaration.
22661         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
22662         redefine as weak alias.
22663         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
22664         of seekdir.
22665         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
22666         and use libc_hidden_def on them.
22667         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
22668         them.
22669         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
22670         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
22671         instead of getifaddrs and freeifaddrs.
22673 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
22675         [BZ #18822]
22676         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
22677         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
22678         (__dso_handle): Remove declaration.
22679         * dlfcn/tstatexit.c (__dso_handle): Removed.
22680         (main): Don't check __dso_handle.
22681         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
22682         (main): Don't check __dso_handle.
22683         * include/dso_handle.h: New file.
22684         * malloc/mtrace.c: Include <dso_handle.h>.
22685         (mtrace): Pass __dso_handle directly.
22686         * nptl/pthread_atfork.c: Include <dso_handle.h>.
22687         (__dso_handle): Remove declaration.
22688         (__pthread_atfork): Pass __dso_handle directly.
22689         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
22690         (__dso_handle): Removed.
22691         * posix/wordexp-test.c: Include <dso_handle.h>.
22692         (__dso_handle): Remove declaration.
22693         (__app_register_atfork): Pass __dso_handle directly.
22694         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
22695         (__dso_handle): Remove declaration.
22696         (at_quick_exit): Pass __dso_handle directly.
22697         * stdlib/atexit.c: Include <dso_handle.h>.
22698         (__dso_handle): Remove declaration.
22699         (atexit): Pass __dso_handle directly.
22700         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
22701         (__dso_handle): Removed.
22703 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
22705         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
22706         using VDSO.
22708 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
22710         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
22711         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
22712         values to correct default value for given type.
22714 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
22716         [BZ #22101]
22717         * elf/Makefile (tests): Add tst-debug1.
22718         ($(objpfx)tst-debug1): New.
22719         ($(objpfx)tst-debug1.out): Likewise.
22720         ($(objpfx)tst-debug1mod1.so): Likewise.
22721         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
22722         with p_filesz == 0.
22723         * elf/tst-debug1.c: New file.
22725 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
22727         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
22728         Define using __ifunc.
22730 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22732         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
22733         exp2f() values.
22735 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
22737         [BZ #22156]
22738         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
22740 2017-09-26  Florian Weimer  <fweimer@redhat.com>
22742         * resolv/Makefile (tests-internal): Fix typo in comment.
22744 2017-09-26  Florian Weimer  <fweimer@redhat.com>
22746         * resolv/nss_dns/dns-host.c: Fix typo in comment.
22748 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22750         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
22751         Use an union instead of a max_align_t array for __space,
22752         so that __space is the same size on all platforms.
22753         * malloc/scratch_buffer_grow_preserve.c
22754         (__libc_scratch_buffer_grow_preserve): Likewise.
22756         [BZ #22183]
22757         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
22758         version to 2.
22759         * posix/Makefile (routines): Add glob-lstat-compat and
22760         glob64-lstat-compat.
22761         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
22762         * posix/glob-lstat-compat.c: New file.
22763         * posix/glob64-lstat-compat.c: Likewise.
22764         * posix/tst-glob_lstat_compat.c: Likewise.
22765         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
22766         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
22767         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
22768         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
22769         Likewise.
22770         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
22771         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
22772         * posix/glob.c (glob_lstat): New function.
22773         (glob): Rename to __glob and add versioned symbol to 2.27.
22774         (glob_in_dir): Use glob_lstat.
22775         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
22776         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22777         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
22778         2.27.
22779         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
22780         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
22781         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
22782         gl_lstat on glob call.
22783         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
22784         and glob64 symbols.
22785         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22786         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22787         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22788         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22789         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22790         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22791         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22792         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22793         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
22794         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22795         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22796         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22798         Likewise.
22799         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
22800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
22801         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22802         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22803         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22804         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22805         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
22807         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
22808         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22809         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22810         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22812 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
22814         * configure.ac (AS): Require binutils 2.25 or later.
22815         * configure: Regenerated.
22817 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
22819         [BZ #22207]
22820         * stdlib/test-atexit-race-common.c (do_test): Minimize required
22821         VM size.
22823 2017-09-25  DJ Delorie  <dj@redhat.com>
22825         [BZ #22161]
22826         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
22827         resetting timeout.
22829 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
22831         * sysdeps/ieee754/dbl-64/sincos32.h
22832         [SINCCOS32_H]: Remove define.
22833         [SINCOS32_H]: Define.
22835 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22837         * math/Versions (expf): New libm symbol at GLIBC_2.27.
22838         (exp2f): Likewise.
22839         * math/w_exp2f.c: New file.
22840         * math/w_expf.c: New file.
22841         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
22842         * math/w_expf_compat.c (__expf_compat): Likewise.
22843         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
22844         * sysdeps/ia64/fpu/e_expf.S: Likewise.
22845         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
22846         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22847         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22848         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22849         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22850         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22851         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22852         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22853         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22854         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22855         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22856         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22858         Likewise.
22859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22860         Likewise.
22861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22862         Likewise.
22863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22864         Likewise.
22865         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22866         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22867         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22868         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22869         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22870         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22871         Likewise.
22872         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22873         Likewise.
22874         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22875         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22876         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22878 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22880         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
22881         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
22882         (roundtoint, converttoint): Likewise.
22883         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
22884         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
22885         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
22886         * sysdeps/ieee754/flt-32/math_config.h: New file.
22887         * sysdeps/ieee754/flt-32/math_errf.c: New file.
22888         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
22889         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
22890         * sysdeps/i386/fpu/math_errf.c: New file.
22891         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
22892         * sysdeps/ia64/fpu/math_errf.c: New file.
22893         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
22894         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
22896 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22898         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
22899         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
22900         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
22901         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
22902         to make sure that these symbols are defined.
22903         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
22904         of <limits.h>
22905         (__need_NULL): Do not define.
22906         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
22907         alignment.
22908         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
22909         CMGROUP_MAX, cmsgcred): Do not define.
22910         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
22911         NULL.
22912         * bits/socket.h: Likewise.
22913         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
22914         __gettimeofday instead of gettimeofday.
22915         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
22916         instead of settimeofday.
22918 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
22920         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
22921         (asinhf): Define using libm_alias_float.
22922         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
22923         (atanf): Define using libm_alias_float.
22924         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
22925         (cbrtf): Define using libm_alias_float.
22926         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
22927         (ceilf): Define using libm_alias_float.
22928         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
22929         <libm-alias-float.h>.
22930         (copysignf): Define using libm_alias_float.
22931         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
22932         (cosf): Define using libm_alias_float.
22933         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
22934         (erff): Define using libm_alias_float.
22935         (erfcf): Likewise.
22936         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
22937         (expm1f): Define using libm_alias_float.
22938         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
22939         (fabsf): Define using libm_alias_float.
22940         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
22941         (floorf): Define using libm_alias_float.
22942         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
22943         (frexpf): Define using libm_alias_float.
22944         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
22945         libm_alias_float.
22946         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
22947         <libm-alias-float.h>.
22948         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
22949         libm_alias_float.
22950         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
22951         <libm-alias-float.h>.
22952         (getpayloadf): Define using libm_alias_float.
22953         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
22954         <libm-alias-float.h>.
22955         (llrintf): Define using libm_alias_float.
22956         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
22957         <libm-alias-float.h>.
22958         (llroundf): Define using libm_alias_float.
22959         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
22960         (logbf): Define using libm_alias_float.
22961         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
22962         (lrintf): Define using libm_alias_float.
22963         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
22964         (lroundf): Define using libm_alias_float.
22965         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
22966         (modff): Define using libm_alias_float.
22967         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
22968         <libm-alias-float.h>.
22969         (nearbyintf): Define using libm_alias_float.
22970         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
22971         <libm-alias-float.h>.
22972         (nextafterf): Define using libm_alias_float.
22973         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
22974         <libm-alias-float.h>.
22975         (nextupf): Define using libm_alias_float.
22976         * sysdeps/ieee754/flt-32/s_remquof.c: Include
22977         <libm-alias-float.h>.
22978         (remquof): Define using libm_alias_float.
22979         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
22980         (rintf): Define using libm_alias_float.
22981         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
22982         <libm-alias-float.h>.
22983         (roundevenf): Define using libm_alias_float.
22984         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
22985         (roundf): Define using libm_alias_float.
22986         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
22987         using libm_alias_float.
22988         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
22989         <libm-alias-float.h>.
22990         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
22991         Define using libm_alias_float.
22992         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
22993         <libm-alias-float.h>.
22994         (sincosf): Define using libm_alias_float.
22995         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
22996         (sinf): Define using libm_alias_float.
22997         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
22998         (tanf): Define using libm_alias_float.
22999         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
23000         (tanhf): Define using libm_alias_float.
23001         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
23002         <libm-alias-float.h>.
23003         (totalorderf): Define using libm_alias_float.
23004         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
23005         <libm-alias-float.h>.
23006         (totalordermagf): Define using libm_alias_float.
23007         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
23008         (truncf): Define using libm_alias_float.
23009         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
23010         libm_alias_float.
23011         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
23012         libm_alias_float.
23014 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
23016         [BZ #22146]
23017         math/math.h: Let fpclassify use the builtin in C++ mode, even
23018         when optimazing for size.
23020 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
23022         * csu/Makefile (generated): Do not add version-info.h.
23023         (before-compile): Likewise.
23024         (all-Banner-files): Remove variable.
23025         ($(objpfx)version-info.h): Remove rule.
23026         * csu/version.c (banner): Do not include "version-info.h".
23027         * libidn/Banner: Remove.
23028         * manual/contrib.texi (Simon Josefsson): New entry.
23030 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
23032         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
23033         Remove conditionals on LDBL_MANT_DIG.
23034         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23035         (__ieee754_lgammal_r): Likewise.
23037 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
23039         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
23040         _Float128 and L().
23041         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
23042         _Float128 and L(). Replace _Float128 with long double and L(x)
23043         with xL, throughout the file.
23044         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
23045         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
23046         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
23047         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
23049 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
23051         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
23052         sysdeps/ieee754/ldbl-128ibm.
23053         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
23054         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
23055         of including it.  Keep _Float128 and L() intact.  These will be
23056         reviewed by a separate patch.
23057         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
23058         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
23059         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
23060         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
23062 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
23064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
23065         (__finitef128): Define to __redirect___finitef128.
23066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
23067         (__isinff128): Define to __redirect___isinff128.
23068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
23069         (__isnanf128): Define to __redirect___isnanf128.
23071 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
23073         * sysdeps/powerpc/powerpc64le/Makefile
23074         (CFLAGS-tst-strtod-nan-locale.c): New variable.
23075         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
23077 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
23078             Carlos O'Donell  <carlos@redhat.com>
23080         [BZ #22180]
23081         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
23082         * stdlib/test-dlclose-exit-race.c: New file.
23083         * stdlib/test-dlclose-exit-race-helper.c: New file.
23084         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
23086 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
23088         * crypt/Banner: Remove file.
23089         * nptl/Banner: Likewise.
23090         * resolv/Banner: Likewise.
23091         * soft-fp/Banner: Likewise.
23092         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
23093         ($(objpfx)version.d): Remove dependency on banner.h.
23094         ($(objpfx)version.os): Likewise.
23095         * nptl/version.c (banner): Do not include banner.h.
23096         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
23097         Jelinek and BIND code.
23099 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
23100             Carlos O'Donell  <carlos@redhat.com>
23102         * support/xdlfcn.h: New file.
23103         * support/xdlfcn.c: New file.
23104         * support/Makefile (libsupport-routines): Add xdlfcn.
23105         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
23107 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
23109         [BZ #20142]
23110         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23111         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
23112         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
23113         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
23114         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
23115         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
23116         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
23117         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
23119 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
23120             Ricky Zhou  <rickyz@google.com>
23121             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
23123         [BZ #14333]
23124         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
23125         Remove atomics.
23126         (__new_exitfn): Fail registration when we finished at_exit processing.
23127         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
23128         * stdlib/on_exit.c (__on_exit): Likewise.
23129         * stdlib/exit.c (__exit_funcs_done): New variable.
23130         (__run_exit_handlers): Use __exit_funcs_lock.
23131         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
23132         declarations.
23133         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
23134         (test-cxa_atexit-race, test-on_exit-race): New tests.
23135         * stdlib/test-atexit-race-common.c: New file.
23136         * stdlib/test-atexit-race.c: New file.
23137         * stdlib/test-at_quick_exit-race.c: New file.
23138         * stdlib/test-cxa_atexit-race.c: New file.
23139         * stdlib/test-on_exit-race.c: New file.
23141 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23143         * benchtests/Makefile: Add exp2f and log2f benchmarks.
23144         * benchtests/exp2f-inputs: Copy of expf-inputs.
23145         * benchtests/log2f-inputs: Copy of logf-inputs.
23147 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
23149         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
23150         Explicitly take address of first element of array arguments in
23151         call to INLINE_SYSCALL.
23153 2017-09-19  Andreas Schwab  <schwab@suse.de>
23155         [BZ #22134]
23156         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
23157         execveat first.
23158         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
23159         unimplemented.
23160         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
23161         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
23162         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
23163         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
23164         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
23165         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
23166         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23167         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
23168         * posix/Makefile (tests): Add tst-fexecve.
23169         * posix/tst-fexecve.c: New file.
23171 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
23173         * benchtests/Makefile: Add logf benchmark.
23174         * benchtests/logf-inputs: Add reduced trace from wrf_r.
23176 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
23178         * benchtests/Makefile: Add expf benchmark.
23179         * benchtests/expf-inputs: Add reduced trace from wrf_r.
23181 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
23183         * csu/Makefile: Add -funwind-tables to libc-start.c.
23184         * debug/Makefile: Add -funwind-tables to backtrace.c.
23185         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
23186         * sysdeps/arm/Makefile: Likewise.
23187         * sysdeps/i386/Makefile: Likewise.
23188         * sysdeps/m68k/Makefile: Likewise.
23189         * sysdeps/mips/Makefile: Likewise.
23190         * sysdeps/nios2/Makefile: Likewise.
23191         * sysdeps/sh/Makefile: Likewise.
23192         * sysdeps/sparc/Makefile: Likewise.
23194 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
23196         * benchtests/Makefile (bench-math): Add trunc and truncf.
23197         (CFLAGS-bench-trunc.c): New variable.
23198         (CFLAGS-bench-truncf.c): Likewise.
23199         * benchtests/trunc-inputs: New file.
23200         * benchtests/truncf-inputs: Likewise.
23202 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23204         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
23206 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
23208         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
23209         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
23210         redefine.
23211         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
23212         (exp10l): Define as weak alias.
23213         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
23214         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
23215         and redefine.
23216         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
23217         (remainderl): Define as weak alias.
23219         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
23220         (fmal): Define using libm_alias_ldouble.
23221         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
23222         (acoshl): Define using libm_alias_ldouble.
23223         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
23224         (acosl): Define using libm_alias_ldouble.
23225         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
23226         (asinl): Define using libm_alias_ldouble.
23227         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
23228         (atan2l): Define using libm_alias_ldouble.
23229         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
23230         (atanhl): Define using libm_alias_ldouble.
23231         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
23232         (coshl): Define using libm_alias_ldouble.
23233         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
23234         (exp10l): Define using libm_alias_ldouble.
23235         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
23236         (exp2l): Define using libm_alias_ldouble.
23237         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
23238         (expl): Define using libm_alias_ldouble.
23239         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
23240         (fmodl): Define using libm_alias_ldouble.
23241         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
23242         (hypotl): Define using libm_alias_ldouble.
23243         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
23244         (j0l): Define using libm_alias_ldouble.
23245         (y0l): Likewise.
23246         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
23247         (j1l): Define using libm_alias_ldouble.
23248         (y1l): Likewise.
23249         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
23250         (jnl): Define using libm_alias_ldouble.
23251         (ynl): Likewise.
23252         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
23253         (log10l): Define using libm_alias_ldouble.
23254         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
23255         (log2l): Define using libm_alias_ldouble.
23256         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
23257         (logl): Define using libm_alias_ldouble.
23258         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
23259         (powl): Define using libm_alias_ldouble.
23260         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
23261         (remainderl): Define using libm_alias_ldouble.
23262         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
23263         (sinhl): Define using libm_alias_ldouble.
23264         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
23265         (sqrtl): Define using libm_alias_ldouble.
23266         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
23267         (tgammal): Define using libm_alias_ldouble.
23268         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
23269         (exp10l): Do not use long_double_symbol here.
23270         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
23271         [LIBM_SVID_COMPAT] (remainderl): Likewise.
23272         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
23273         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
23274         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
23275         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
23276         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
23277         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
23278         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
23279         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
23280         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
23281         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
23282         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
23283         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
23284         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
23285         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
23286         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
23287         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
23288         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
23289         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
23290         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
23291         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
23293 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
23295         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
23296         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
23298 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23300         * io/read.c (read): Add libc_hidden_weak.
23301         * sysdeps/mach/hurd/read.c (read): Likewise.
23302         * io/write.c (write): Likewise.
23303         * sysdeps/mach/hurd/write.c (write): Likewise.
23304         * io/pread64.c (__pread64): Likewise.
23305         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
23306         * posix/pread64.c (__pread64): Add libc_hidden_def.
23308 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23310         * benchtests/scripts/compare_strings.py: New option -g.
23311         (draw_graph): Print a message that a graph is being generated.
23312         (process_results): Generate graph only if -g is passed.
23313         (main): Process option -g.
23315         * benchtests/scripts/compare_strings.py (process_results):
23316         Better spacing for output.
23318         * benchtests/scripts/compare_strings.py: Use argparse.
23319         * benchtests/README: Document existence of compare_strings.py.
23321 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
23323         * math/s_fma.c: Include <libm-alias-double.h>.
23324         (fma): Define using libm_alias_double.
23325         * math/s_nextafter.c: Include <libm-alias-double.h>.
23326         (nextafter): Define using libm_alias_double.
23327         * math/w_acos_compat.c: Include <libm-alias-double.h>.
23328         (acos): Define using libm_alias_double.
23329         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
23330         (aocsh): Define using libm_alias_double.
23331         * math/w_asin_compat.c: Include <libm-alias-double.h>.
23332         (asin): Define using libm_alias_double.
23333         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
23334         (atan2): Define using libm_alias_double.
23335         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
23336         (atanh): Define using libm_alias_double.
23337         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
23338         (cosh): Define using libm_alias_double.
23339         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
23340         (exp10): Define using libm_alias_double.
23341         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
23342         (exp2): Define using libm_alias_double.
23343         * math/w_exp_compat.c: Include <libm-alias-double.h>.
23344         (exp): Define using libm_alias_double.
23345         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
23346         (fmod): Define using libm_alias_double.
23347         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
23348         (hypot): Define using libm_alias_double.
23349         * math/w_j0_compat.c: Include <libm-alias-double.h>.
23350         (j0): Define using libm_alias_double.
23351         (y0): Likewise.
23352         * math/w_j1_compat.c: Include <libm-alias-double.h>.
23353         (j1): Define using libm_alias_double.
23354         (y1): Likewise.
23355         * math/w_jn_compat.c: Include <libm-alias-double.h>.
23356         (jn): Define using libm_alias_double.
23357         (yn): Likewise.
23358         * math/w_log10_compat.c: Include <libm-alias-double.h>.
23359         (log10): Define using libm_alias_double.
23360         * math/w_log2_compat.c: Include <libm-alias-double.h>.
23361         (log2): Define using libm_alias_double.
23362         * math/w_log_compat.c: Include <libm-alias-double.h>.
23363         (log): Define using libm_alias_double.
23364         * math/w_pow_compat.c: Include <libm-alias-double.h>.
23365         (pow): Define using libm_alias_double.
23366         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
23367         (remainder): Define using libm_alias_double.
23368         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
23369         (sinh): Define using libm_alias_double.
23370         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
23371         (sqrt): Define using libm_alias_double.
23372         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
23373         (tgamma): Define using libm_alias_double.
23374         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
23375         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
23376         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
23377         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
23378         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
23379         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
23380         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
23381         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
23382         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
23383         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
23384         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
23385         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
23386         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
23387         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
23388         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
23389         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
23390         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
23391         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
23392         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
23393         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
23394         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
23395         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
23396         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
23397         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
23398         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
23400         * math/e_acoshl.c: Remove.
23401         * math/e_acosl.c: Likewise.
23402         * math/e_asinl.c: Likewise.
23403         * math/e_atan2l.c: Likewise.
23404         * math/e_atanhl.c: Likewise.
23405         * math/e_coshl.c: Likewise.
23406         * math/e_expl.c: Likewise.
23407         * math/e_fmodl.c: Likewise.
23408         * math/e_gammal_r.c: Likewise.
23409         * math/e_hypotl.c: Likewise.
23410         * math/e_j0l.c: Likewise.
23411         * math/e_j1l.c: Likewise.
23412         * math/e_jnl.c: Likewise.
23413         * math/e_lgammal_r.c: Likewise.
23414         * math/e_log10l.c: Likewise.
23415         * math/e_log2l.c: Likewise.
23416         * math/e_logl.c: Likewise.
23417         * math/e_powl.c: Likewise.
23418         * math/e_rem_pio2l.c: Likewise.
23419         * math/e_sinhl.c: Likewise.
23420         * math/e_sqrtf128.c: Likewise.
23421         * math/e_sqrtl.c: Likewise.
23422         * math/k_cosl.c: Likewise.
23423         * math/k_sinl.c: Likewise.
23424         * math/k_tanl.c: Likewise.
23425         * math/s_asinhl.c: Likewise.
23426         * math/s_atanl.c: Likewise.
23427         * math/s_cbrtl.c: Likewise.
23428         * math/s_erfl.c: Likewise.
23429         * math/s_expm1l.c: Likewise.
23430         * math/s_log1pl.c: Likewise.
23431         * math/s_tanhl.c: Likewise.
23433 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23435         [BZ #21745]
23436         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
23437         [$(subdir) = math] (sysdep_calls): New variable.  Has the
23438         previous contents of sysdep_routines, but re-sorted..
23439         [$(subdir) = math] (sysdep_routines): Re-use the contents from
23440         sysdep_calls.
23441         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
23442         defined in sysdep_calls and replace by the respective m_* names.
23443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
23444         (compat_symbol): Undefine to avoid duplicated compat symbols in
23445         libc.
23447 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
23449         * math/s_fmaf.c: Include <libm-alias-float.h>.
23450         (fmaf): Define using libm_alias_float.
23451         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
23452         (acosf): Define using libm_alias_float.
23453         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
23454         (acoshf): Define using libm_alias_float.
23455         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
23456         (asinf): Define using libm_alias_float.
23457         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
23458         (atan2f): Define using libm_alias_float.
23459         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
23460         (atanhf): Define using libm_alias_float.
23461         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
23462         (coshf): Define using libm_alias_float.
23463         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
23464         (exp10f): Define using libm_alias_float.
23465         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
23466         (fmodf): Define using libm_alias_float.
23467         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
23468         (hypotf): Define using libm_alias_float.
23469         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
23470         (j0f): Define using libm_alias_float.
23471         (y0f): Likewise.
23472         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
23473         (j1f): Define using libm_alias_float.
23474         (y1f): Likewise.
23475         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
23476         (jnf): Define using libm_alias_float.
23477         (ynf): Likewise.
23478         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
23479         (log10f): Define using libm_alias_float.
23480         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
23481         (log2f): Define using libm_alias_float.
23482         * math/w_logf_compat.c: Include <libm-alias-float.h>.
23483         (logf): Define using libm_alias_float.
23484         * math/w_powf_compat.c: Include <libm-alias-float.h>.
23485         (powf): Define using libm_alias_float.
23486         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
23487         (remainderf): Define using libm_alias_float.
23488         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
23489         (sinhf): Define using libm_alias_float.
23490         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
23491         (sqrtf): Define using libm_alias_float.
23492         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
23493         (tgammaf): Define using libm_alias_float.
23495 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
23497         * include/math.h (roundeven): Change hidden_proto call to
23498         __roundeven.
23499         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
23500         alias.
23501         [NO_LONG_DOUBLE] (__j0l): New strong alias.
23502         (y0): Rename to __y0 and define as weak alias.
23503         [NO_LONG_DOUBLE] (__y0l): New strong alias.
23504         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
23505         alias.
23506         (y0f): Rename to __y0f and define as weak alias.
23507         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
23508         alias.
23509         [NO_LONG_DOUBLE] (__j1l): New strong alias.
23510         (y1): Rename to __y1 and define as weak alias.
23511         [NO_LONG_DOUBLE] (__y1l): New strong alias.
23512         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
23513         alias.
23514         (y1f): Rename to __y1f and define as weak alias.
23515         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
23516         alias.
23517         [NO_LONG_DOUBLE] (__jnl): New strong alias.
23518         (yn): Rename to __yn and define as weak alias.
23519         [NO_LONG_DOUBLE] (__ynl): New strong alias.
23520         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
23521         alias.
23522         (ynf): Rename to __ynf and define as weak alias.
23523         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
23524         (fromfp): Define as weak alias.
23525         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
23526         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
23527         (fromfpx): Define as weak alias.
23528         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
23529         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
23530         __getpayload and define as weak alias.
23531         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
23532         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
23533         __roundeven and define as weak alias.
23534         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
23535         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
23536         __setpayload.
23537         (setpayload): Define as weak alias.
23538         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
23539         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
23540         __setpayloadsig.
23541         (setpayloadsig): Define as weak alias.
23542         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
23543         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
23544         __totalorder and define as weak alias.
23545         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
23546         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
23547         to __totalordermag and define as weak alias.
23548         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
23549         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
23550         (ufromfp): Define as weak alias.
23551         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
23552         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
23553         __ufromfpx.
23554         (ufromfpx): Define as weak alias.
23555         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
23556         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
23557         Rename to __getpayload and define as weak alias.
23558         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
23559         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
23560         Rename to __roundeven and define as weak alias.
23561         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
23562         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
23563         Rename to __totalorder and define as weak alias.
23564         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
23565         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
23566         (totalordermag): Rename to __totalordermag and define as weak
23567         alias.
23568         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
23569         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
23570         macro.
23571         (__roundevenl): Likewise.
23572         (__totalorderl): Likewise.
23573         (__totalordermagl): Likewise
23574         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
23575         __fromfpf128.
23576         (fromfpf128): Define as weak alias.
23577         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
23578         __fromfpxf128.
23579         (fromfpxf128): Define as weak alias.
23580         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
23581         __setpayloadf128.
23582         (setpayloadf128): Define as weak alias.
23583         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
23584         __setpayloadsigf128.
23585         (setpayloadsigf128): Define as weak alias.
23586         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
23587         __ufromfpf128.
23588         (ufromfpf128): Define as weak alias.
23589         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
23590         __ufromfpxf128.
23591         (ufromfpxf128): Define as weak alias.
23592         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
23593         (fromfpf): Define as weak alias.
23594         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
23595         __fromfpxf.
23596         (fromfpxf): Define as weak alias.
23597         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
23598         __getpayloadf and define as weak alias.
23599         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
23600         __roundevenf and define as weak alias.
23601         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
23602         __setpayloadf.
23603         (setpayloadf): Define as weak alias.
23604         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
23605         __setpayloadsigf.
23606         (setpayloadsigf): Define as weak alias.
23607         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
23608         __totalorderf and define as weak alias.
23609         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
23610         Rename to __totalordermagf and define as weak alias.
23611         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
23612         __ufromfpf.
23613         (ufromfpf): Define as weak alias.
23614         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
23615         __ufromfpxf.
23616         (ufromfpxf): Define as weak alias.
23617         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
23618         __fromfpl.
23619         (fromfpl): Define as weak alias.
23620         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
23621         __fromfpxl.
23622         (fromfpxl): Define as weak alias.
23623         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
23624         to __getpayloadl and define as weak alias.
23625         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
23626         __roundevenl and define as weak alias.
23627         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
23628         __setpayloadl.
23629         (setpayloadl): Define as weak alias.
23630         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
23631         __setpayloadsigl.
23632         (setpayloadsigl): Define as weak alias.
23633         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
23634         to __totalorderl and define as weak alias.
23635         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
23636         Rename to __totalordermagl and define as weak alias.
23637         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
23638         __ufromfpl.
23639         (ufromfpl): Define as weak alias.
23640         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
23641         __ufromfpxl.
23642         (ufromfpxl): Define as weak alias.
23643         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
23644         __fromfpl.
23645         (fromfpl): Define as weak alias.
23646         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
23647         __fromfpxl.
23648         (fromfpxl): Define as weak alias.
23649         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
23650         Rename to __getpayloadl and define as weak alias.
23651         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
23652         to __roundevenl and define as weak alias.  Call __roundeven
23653         instead of roundeven.
23654         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
23655         __setpayloadl.
23656         (setpayloadl): Define as weak alias.
23657         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
23658         __setpayloadsigl.
23659         (setpayloadsigl): Define as weak alias.
23660         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
23661         Rename to __totalorderl and define as weak alias.
23662         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
23663         Rename to __totalordermagl and define as weak alias.
23664         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
23665         __ufromfpl.
23666         (ufromfpl): Define as weak alias.
23667         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
23668         __ufromfpxl.
23669         (ufromfpxl): Define as weak alias.
23670         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
23671         __fromfpl.
23672         (fromfpl): Define as weak alias.
23673         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
23674         __fromfpxl.
23675         (fromfpxl): Define as weak alias.
23676         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
23677         __getpayloadl and define as weak alias.
23678         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
23679         __roundevenl and define as weak alias.
23680         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
23681         __setpayloadl.
23682         (setpayloadl): Define as weak alias.
23683         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
23684         __setpayloadsigl.
23685         (setpayloadsigl): Define as weak alias.
23686         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
23687         __totalorderl and define as weak alias.
23688         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
23689         Rename to __totalordermagl and define as weak alias.
23690         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
23691         __ufromfpl.
23692         (ufromfpl): Define as weak alias.
23693         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
23694         __ufromfpxl.
23695         (ufromfpxl): Define as weak alias.
23697 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23699         * benchtests/bench-string.h (realloc_bufs): New function.
23700         (test_init): Call it.
23701         * benchtests/bench-memset-large.c (do_test): Likewise.
23702         * benchtests/bench-memset.c (do_test): Likewise.
23704         * benchtests/bench-memset-large.c: Print output in JSON
23705         format.
23706         * benchtests/bench-memset.c: Likewise.
23708 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
23710         [BZ #21084]
23711         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
23712         * iconvdata/Makefile: Add IBM858.
23713         * iconvdata/gconv-modules: Likewise.
23714         * iconvdata/tst-tables.sh: Likewise.
23715         * iconvdata/ibm858.c: New file.
23716         * localedata/charmaps/IBM858: Likewise.
23718 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
23720         [BZ #22023]
23721         * locales/niu_NZ (LC_TIME): copy "niu_NU".
23722         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
23724 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
23726         [BZ #22112]
23727         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
23728         and add tel_int_fmt.
23730 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
23732         * sysdeps/generic/libm-alias-float128.h: New file.
23733         * sysdeps/generic/math-type-macros-float128.h: Include
23734         <libm-alias-float128.h>.
23735         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
23737 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
23739         * sysdeps/generic/libm-alias-ldouble.h: New file.
23740         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
23741         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
23742         * sysdeps/generic/math-type-macros-ldouble.h: Include
23743         <libm-alias-ldouble.h>.
23744         [!declare_mgen_alias] (declare_mgen_alias): Define to use
23745         libm_alias_ldouble.
23747 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23749         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
23750         * math/w_exp_compat.c: ... here.
23751         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
23752         * math/w_expf_compat.c: ... here.
23753         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
23754         * math/w_expl_compat.c: ... here.
23755         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
23756         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
23757         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
23758         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
23760 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
23762         * math/w_scalbln_template.c (strong_alias): Do not undefine and
23763         redefine.
23764         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
23765         macro.
23766         (ldexpl): Only define as compat symbol for libc, not libm.
23767         (scalbnl): Define as compat symbol for libc here.
23768         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
23769         define for [IS_IN (libc)].
23770         (__ldexpl_2): Remove alias.
23771         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
23772         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
23773         name in long_double_symbol call.
23774         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
23775         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23776         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23777         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
23778         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
23779         Remove macro.
23780         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
23781         Define as compat symbol.
23783 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23785         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
23786         * sysdeps/unix/sysv/linux/alpha/Makefile
23787         [$(subdir) = csu] (sysdep_routines): Remove rule.
23789 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
23791         * sysdeps/generic/libm-alias-double.h: New file.
23792         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
23793         * sysdeps/generic/math-type-macros-double.h: Include
23794         <libm-alias-double.h>.
23795         [declare_mgen_alias] (declare_mgen_alias): Define to use
23796         libm_alias_double.
23797         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
23798         (M_LIBM_NEED_COMPAT): Remove macro.
23799         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
23800         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
23801         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
23802         code.
23803         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23804         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23805         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23806         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23807         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23808         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23809         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23810         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23811         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23812         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23813         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23814         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23815         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23816         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23817         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23818         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23819         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23820         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23821         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23822         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23823         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23824         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23825         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23826         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23827         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23828         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23829         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23830         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
23831         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
23832         macro.
23833         (declare_mgen_alias): New macro.
23834         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
23835         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
23836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
23837         (M_LIBM_NEED_COMPAT): Remove macro.
23838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
23839         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
23840         <first-versions.h>.
23841         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
23842         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
23844 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
23846         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
23847         (declare_mgen_alias_2): Remove.
23848         * sysdeps/generic/math-type-macros-double.h
23849         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
23850         Likewise.
23851         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
23852         alias.
23853         (ldexp): Define with declare_mgen_alias.
23854         (scalbn): Likewise.
23856 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
23858         * grp/initgroups.c: Include config.h.
23859         (DEFAULT_CONFIG): New macro.
23860         (internal_getgrouplist): Use DEFAULT_CONFIG.
23861         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23862         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
23863         (DEFAULT_DEFCONFIG): New macro.
23864         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
23865         * nss/grp-lookup.c: Include config.h
23866         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
23867         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
23868         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
23869         * manual/nss.texi: Update default values section.
23871 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
23873         [BZ #21967]
23874         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
23875         New.
23876         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
23877         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23878         Handle MathVec_Prefer_No_AVX512.
23879         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
23880         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
23881         is set.
23883 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23885         * posix/sched_primax.c (__sched_get_priority_max): Add
23886         libc_hidden_def.
23887         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
23888         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
23889         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
23890         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
23891         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
23892         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
23893         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
23894         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
23895         Add aliases.
23897 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
23899         * sysdeps/generic/libm-alias-float.h: New file.
23900         * sysdeps/generic/math-type-macros-float.h: Include
23901         <libm-alias-float.h>.
23902         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
23904 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
23906         [BZ #22093]
23907         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
23908         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
23909         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
23910         (HWCAP_IMPORTANT): Likewise.
23911         (HWCAP_X86_64): New enum.
23912         (HWCAP_X86_AVX512_1): Updated.
23913         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
23914         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
23915         (modules-names): Add x86_64/tst-x86_64mod-1.
23916         (LDFLAGS-tst-x86_64mod-1.so): New.
23917         ($(objpfx)tst-x86_64-1): Likewise.
23918         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
23919         (tst-x86_64-1-clean): Likewise.
23920         * sysdeps/x86_64/tst-x86_64-1.c: New file.
23921         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
23923 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23925         * po/sv.po: Update translations.
23926         * po/fr.po: Likewise.
23928 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23930         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
23931         seconds.
23932         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
23933         seconds.
23934         * elf/rtld-Rules: Fix $(error) use.
23936 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
23938         [BZ #14925]
23939         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
23940         * locale/iso-639.def: Change “Bengali” to “Bangla”.
23941         * localedata/locales/bn_BD: “Bengali” was still used in some
23942         comments. Change it to “Bangla”.
23944 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
23946         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
23948 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
23950         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
23951         thunderx2t99p1 to list of cpu names.
23952         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
23953         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
23955 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
23957         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
23958         Use strcmp instead of tunable_is_name.
23960 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
23962         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
23963         (F_GET_RW_HINT): New macro.
23964         [__USE_GNU] (F_SET_RW_HINT): Likewise.
23965         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
23966         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
23967         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
23968         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
23969         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
23970         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
23971         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
23972         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
23974         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
23975         (F_ADD_SEALS): New macro.
23976         [__USE_GNU] (F_GET_SEALS): Likewise.
23977         [__USE_GNU] (F_SEAL_SEAL): Likewise.
23978         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
23979         [__USE_GNU] (F_SEAL_GROW): Likewise.
23980         [__USE_GNU] (F_SEAL_WRITE): Likewise.
23982 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23984         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
23985         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
23986         * posix/glob_internal.h (__glob_pattern_type):
23987         * posix/glob.c (glob):
23988         * posix/glob_pattern_p.c (__glob_pattern_p):
23989         Use them.
23991         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
23992         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
23993         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
23994         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
23995         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
23996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
23997         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
23998         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
23999         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24000         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24001         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24002         * sysdeps/wordsize-64/glob.c: Likewise.
24003         * sysdeps/wordsize-64/glob64.c: Likewise.
24004         * sysdeps/wordsize-64/globfree.c: Likewise.
24005         * sysdeps/wordsize-64/globfree64.c: Likewise.
24006         * sysdeps/unix/sysv/linux/glob.c: New file.
24007         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
24008         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
24009         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
24010         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
24011         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
24012         adds !GLOB_NO_OLD_VERSION as an extra condition.
24013         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
24014         using relative path instead of absolute one.
24015         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
24016         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
24017         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
24018         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
24019         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
24020         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
24022         [BZ #1062]
24023         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
24024         (glob): Use the same scratch buffer for both getlogin_r and
24025         getpwnam_r.  Don’t require preallocation of the login name.  This
24026         simplifies storage allocation, and corrects the handling of
24027         long login names.
24029         [BZ #1062]
24030         * posix/glob.c (glob): Port recent patches to platforms
24031         lacking getpwnam_r.
24032         (glob): Fix longstanding misuse of errno after getpwnam_r, which
24033         returns an error number rather than setting errno.
24035         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
24036         instead of GCC extension.
24037         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
24038         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
24039         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
24041         [BZ #866]
24042         [BZ #1062]
24043         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
24044         * posix/bug-glob1.c: Remove file.
24045         * posix/tst-glob_symlinks.c: New file.
24046         * posix/glob.c (__lstat64): New macro.
24047         (is_dir): New function.
24048         (glob, glob_in_dir): Match symlinks even if they are dangling.
24049         (link_stat, link_exists_p): Remove.  All uses removed.
24051         [BZ #1062]
24052         [BZ #19971]
24053         * posix/glob.c (struct readdir_result): Remove skip_entry member.
24054         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
24055         All uses removed.
24057         [BZ #1062]
24058         CVE-2017-15671
24059         * posix/Makefile (routines): Add globfree, globfree64, and
24060         glob_pattern_p.
24061         * posix/flexmember.h: New file.
24062         * posix/glob_internal.h: Likewise.
24063         * posix/glob_pattern_p.c: Likewise.
24064         * posix/globfree.c: Likewise.
24065         * posix/globfree64.c: Likewise.
24066         * sysdeps/gnu/globfree64.c: Likewise.
24067         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
24068         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
24069         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
24070         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24071         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24072         * sysdeps/wordsize-64/globfree.c: Likewise.
24073         * sysdeps/wordsize-64/globfree64.c: Likewise.
24074         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
24075         [NDEBUG): Remove comments.
24076         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
24077         (dirent_type): New type.  Use uint_fast8_t not
24078         uint8_t, as C99 does not require uint8_t.
24079         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
24080         (struct readdir_result): Use dirent_type.  Do not define skip_entry
24081         unless it is needed; this saves a byte on platforms lacking d_ino.
24082         (readdir_result_type, readdir_result_skip_entry):
24083         New functions, replacing ...
24084         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
24085          these functions, which were removed.  This makes the callers
24086         easier to read.  All callers changed.
24087         (D_INO_TO_RESULT): Now empty if there is no d_ino.
24088         (size_add_wrapv, glob_use_alloca): New static functions.
24089         (glob, glob_in_dir): Check for size_t overflow in several places,
24090         and fix some size_t checks that were not quite right.
24091         Remove old code using SHELL since Bash no longer
24092         uses this.
24093         (glob, prefix_array): Separate MS code better.
24094         (glob_in_dir): Remove old Amiga and VMS code.
24095         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
24096         separate files.
24097         (glob_in_dir): Do not rely on undefined behavior in accessing
24098         struct members beyond their bounds.  Use a flexible array member
24099         instead
24100         (link_stat): Rename from link_exists2_p and return -1/0 instead of
24101         0/1.  Caller changed.
24102         (glob): Fix memory leaks.
24103         * posix/glob64 (globfree64): Move to separate file.
24104         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
24105         (globfree64): Remove hidden alias.
24106         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
24107         oldglob.
24108         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
24109         separate file.
24110         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
24111         define.
24112         Move compat code to separate file.
24113         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
24114         separate file.
24116 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
24118         * resolv/tst-resolv-qtypes.c (domain): Changed to
24119         "const char domain[] =".
24121 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
24123         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
24124         version to 3.1.6.
24126         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
24127         (TCP_MD5SIG_EXT): Likewise.
24128         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
24129         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
24130         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
24132         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
24134 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
24136         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
24138 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
24140         [BZ #22100]
24141         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
24143 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24145         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
24146         before assuming that the file is empty.  Avoid testing buffer content
24147         when nread == 0.
24149 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24151         [BZ #18858]
24152         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
24153         Remove define.
24154         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
24155         Likewise.
24156         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
24157         Likewise.
24158         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
24159         Likewise.
24160         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
24161         Likewise.
24162         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
24163         Likewise.
24164         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
24165         Likewise.
24167 2017-09-06  Florian Weimer  <fweimer@redhat.com>
24169         * malloc/dynarray_emplace_enlarge.c
24170         (__libc_dynarray_emplace_enlarge): Add missing else.
24172 2017-09-06  Florian Weimer  <fweimer@redhat.com>
24174         [BZ #22096]
24175         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
24176         case of failure to obtain the global conf object.
24178 2017-09-06  Florian Weimer  <fweimer@redhat.com>
24180         [BZ #22095]
24181         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
24182         dynarray allocation failure.
24184 2017-09-06  Florian Weimer  <fweimer@redhat.com>
24186         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
24187         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
24188         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
24189         New functions.
24190         (response): Call them.  Add 'p', '6' flag processing.
24191         (test_reverse): New function.
24192         (test_get2_any): Call it.
24193         (test_no_inet6): Add 'p' test.
24194         (test_inet6): Likewise.
24196 2017-09-06  Florian Weimer  <fweimer@redhat.com>
24198         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
24199         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
24200         the QNAME.
24201         (test_gai): Adjust query names.  Add additional tests.
24202         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
24203         test_get2.  Adjust query names.  Add additional tests.
24204         (test_no_inet6): New function, extracted from threadfunc.
24205         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
24206         Add additional tests.
24208 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
24210         [BZ #22070]
24211         * localedata/unicode-gen/utf8_gen.py: Set the width for
24212         characters with Prepended_Concatenation_Mark property to 1
24213         * localedata/charmaps/UTF-8: Updated using the improved script.
24215 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
24217         [BZ #21750]
24218         * localedata/unicode-gen/utf8_gen.py: Improve the script to
24219         use the range notation for all ranges of neighbouring characters
24220         with the same width.
24222 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
24224         * sysdeps/generic/math-type-macros-double.h: Include
24225         <math-svid-compat.h>.
24226         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24227         * sysdeps/generic/math-type-macros-float.h: Include
24228         <math-svid-compat.h>.
24229         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24230         * sysdeps/generic/math-type-macros-ldouble.h: Include
24231         <math-svid-compat.h>.
24232         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24233         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
24234         condition.
24235         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
24236         * math/w_acosf_compat.c: Likewise.
24237         * math/w_acosh_compat.c: Likewise.
24238         * math/w_acoshf_compat.c: Likewise.
24239         * math/w_acoshl_compat.c: Likewise.
24240         * math/w_acosl_compat.c: Likewise.
24241         * math/w_asin_compat.c: Likewise.
24242         * math/w_asinf_compat.c: Likewise.
24243         * math/w_asinl_compat.c: Likewise.
24244         * math/w_atan2_compat.c: Likewise.
24245         * math/w_atan2f_compat.c: Likewise.
24246         * math/w_atan2l_compat.c: Likewise.
24247         * math/w_atanh_compat.c: Likewise.
24248         * math/w_atanhf_compat.c: Likewise.
24249         * math/w_atanhl_compat.c: Likewise.
24250         * math/w_cosh_compat.c: Likewise.
24251         * math/w_coshf_compat.c: Likewise.
24252         * math/w_coshl_compat.c: Likewise.
24253         * math/w_exp10_compat.c: Likewise.
24254         * math/w_exp10f_compat.c: Likewise.
24255         * math/w_exp10l_compat.c: Likewise.
24256         * math/w_exp2_compat.c: Likewise.
24257         * math/w_exp2f_compat.c: Likewise.
24258         * math/w_exp2l_compat.c: Likewise.
24259         * math/w_fmod_compat.c: Likewise.
24260         * math/w_fmodf_compat.c: Likewise.
24261         * math/w_fmodl_compat.c: Likewise.
24262         * math/w_hypot_compat.c: Likewise.
24263         * math/w_hypotf_compat.c: Likewise.
24264         * math/w_hypotl_compat.c: Likewise.
24265         * math/w_j0_compat.c: Likewise.
24266         * math/w_j0f_compat.c: Likewise.
24267         * math/w_j0l_compat.c: Likewise.
24268         * math/w_j1_compat.c: Likewise.
24269         * math/w_j1f_compat.c: Likewise.
24270         * math/w_j1l_compat.c: Likewise.
24271         * math/w_jn_compat.c: Likewise.
24272         * math/w_jnf_compat.c: Likewise.
24273         * math/w_jnl_compat.c: Likewise.
24274         * math/w_lgamma_r_compat.c: Likewise.
24275         * math/w_lgammaf_r_compat.c: Likewise.
24276         * math/w_lgammal_r_compat.c: Likewise.
24277         * math/w_log10_compat.c: Likewise.
24278         * math/w_log10f_compat.c: Likewise.
24279         * math/w_log10l_compat.c: Likewise.
24280         * math/w_log2_compat.c: Likewise.
24281         * math/w_log2f_compat.c: Likewise.
24282         * math/w_log2l_compat.c: Likewise.
24283         * math/w_log_compat.c: Likewise.
24284         * math/w_logf_compat.c: Likewise.
24285         * math/w_logl_compat.c: Likewise.
24286         * math/w_pow_compat.c: Likewise.
24287         * math/w_powf_compat.c: Likewise.
24288         * math/w_powl_compat.c: Likewise.
24289         * math/w_remainder_compat.c: Likewise.
24290         * math/w_remainderf_compat.c: Likewise.
24291         * math/w_remainderl_compat.c: Likewise.
24292         * math/w_sinh_compat.c: Likewise.
24293         * math/w_sinhf_compat.c: Likewise.
24294         * math/w_sinhl_compat.c: Likewise.
24295         * math/w_sqrt_compat.c: Likewise.
24296         * math/w_sqrtf_compat.c: Likewise.
24297         * math/w_sqrtl_compat.c: Likewise.
24298         * math/w_tgamma_compat.c: Likewise.
24299         * math/w_tgammaf_compat.c: Likewise.
24300         * math/w_tgammal_compat.c: Likewise.
24301         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
24302         [LIBM_SVID_COMPAT].
24303         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
24304         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
24305         [LIBM_SVID_COMPAT].
24306         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
24307         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
24308         [LIBM_SVID_COMPAT].
24309         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
24310         * sysdeps/i386/fpu/w_sqrt.c: New file.
24311         * sysdeps/ia64/fpu/w_acos.c: Likewise.
24312         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
24313         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
24314         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
24315         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
24316         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
24317         * sysdeps/ia64/fpu/w_asin.c: Likewise.
24318         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
24319         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
24320         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
24321         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
24322         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
24323         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
24324         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
24325         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
24326         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
24327         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
24328         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
24329         * sysdeps/ia64/fpu/w_exp.c: Likewise.
24330         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
24331         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
24332         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
24333         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
24334         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
24335         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
24336         * sysdeps/ia64/fpu/w_expf.c: Likewise.
24337         * sysdeps/ia64/fpu/w_expl.c: Likewise.
24338         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
24339         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
24340         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
24341         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
24342         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
24343         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
24344         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
24345         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
24346         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
24347         * sysdeps/ia64/fpu/w_log.c: Likewise.
24348         * sysdeps/ia64/fpu/w_log10.c: Likewise.
24349         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
24350         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
24351         * sysdeps/ia64/fpu/w_log2.c: Likewise.
24352         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
24353         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
24354         * sysdeps/ia64/fpu/w_logf.c: Likewise.
24355         * sysdeps/ia64/fpu/w_logl.c: Likewise.
24356         * sysdeps/ia64/fpu/w_pow.c: Likewise.
24357         * sysdeps/ia64/fpu/w_powf.c: Likewise.
24358         * sysdeps/ia64/fpu/w_powl.c: Likewise.
24359         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
24360         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
24361         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
24362         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
24363         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
24364         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
24365         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
24366         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
24367         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
24368         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
24369         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
24370         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
24371         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
24372         [LIBM_SVID_COMPAT].
24373         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
24374         * sysdeps/ieee754/k_standard.c: Likewise.
24375         * sysdeps/ieee754/k_standardf.c: Likewise.
24376         * sysdeps/ieee754/k_standardl.c: Likewise.
24377         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
24378         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
24379         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
24380         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
24381         long_double_symbol call on [LIBM_SVID_COMPAT].
24382         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
24383         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
24384         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
24385         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
24386         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
24387         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
24388         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
24389         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
24390         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
24391         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
24392         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
24393         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24394         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
24395         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
24396         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
24397         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
24398         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
24399         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
24400         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
24401         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
24402         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
24403         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
24405 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
24407         * include/shlib-compat.h (TEST_COMPAT): New Macro.
24408         * malloc/tst-mallocstate.c: Convert from test-skeleton
24409         to test-driver.  Ifdef code using TEST_COMPAT macro.
24410         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
24411         * math/test-matherr.c: Likewise.
24413 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
24415         [BZ #22086]
24416         * debug/pcprofiledump.c (main): Use byte-swapped mask when
24417         comparing word with byte-swapped constant.
24419 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
24421         [BZ #20498]
24422         * locale/iso-639.def: add Miskito.
24423         * localedata/SUPPORTED: Add miq_NI/UTF-8.
24424         * localedata/locales/miq_NI: New file.
24426 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
24428         [BZ #18822]
24429         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
24430         (__mkdir): Likewise.
24431         * io/chmod.c (__chmod): Add libc_hidden_def.
24432         * io/mkdir.c (__mkdir): Likewise.
24433         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
24434         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
24435         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
24436         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
24438 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
24440         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24441         version to 4.13.
24443         [BZ #22082]
24444         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
24445         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
24447 2017-09-04  Florian Weimer  <fweimer@redhat.com>
24449         * math/math.h: Issue warning if log is defined.
24451 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
24453         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24454         kernel version to 4.13.
24456 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24458         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
24459         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
24460         parameter.
24461         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
24462         just <bits/types.h>.
24463         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
24464         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
24465         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
24466         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
24467         * misc/preadv2.c: Include <errno.h>.
24468         * misc/preadv64v2.c: Include <errno.h>.
24469         * misc/pwritev2.c: Include <errno.h>.
24470         * misc/pwritev64v2.c: Include <errno.h>.
24471         * sysdeps/posix/preadv2.c: Include <errno.h>.
24472         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
24473         Fix <unistd.h> inclusion.
24474         * sysdeps/posix/pwritev2.c: Include <errno.h>.
24475         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
24476         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
24477         __strtoul_internal): New functions.
24478         * sysdeps/posix/pause.c: Include <sigsetops.h>.
24479         * sysdeps/posix/system.c: Include <sigsetops.h>.
24480         * sysdeps/mach/hurd/i386/Makefile
24481         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
24482         [$(subdir) = csu] (sysdep-only-routines): Likewise.
24483         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
24484         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
24485         __feraiseexcept_renamed to feraiseexcept instead of
24486         __GI_feraiseexcept.
24487         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
24488         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
24489         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
24490         RWF_NOWAIT): Define to 0 if undefined already.
24491         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
24492         boils down to 0.
24493         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
24494         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
24496 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
24498         * manual/math.texi (pow10): Do not document.
24499         (pow10f): Likewise.
24500         (pow10l): Likewise.
24501         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
24502         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
24503         * math/libm-test-exp10.inc (pow10_test): Remove.
24504         (do_test): Do not call pow10.
24505         * math/w_exp10_compat.c (pow10): Make into compat symbol.
24506         [NO_LONG_DOUBLE] (pow10l): Likewise.
24507         * math/w_exp10f_compat.c (pow10f): Likewise.
24508         * math/w_exp10l_compat.c (pow10l): Likewise.
24509         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
24510         (pow10): Make into compat symbol.
24511         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
24512         (pow10f): Make into compat symbol.
24513         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
24514         (pow10l): Make into compat symbol.
24515         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
24516         pow10.
24517         (CFLAGS-nldbl-pow10.c): Remove variable..
24518         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
24519         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
24520         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
24521         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
24522         Undefine and redefine.
24523         (pow10l): Make into compat symbol.
24524         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
24525         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
24526         * sysdeps/arm/libm-test-ulps: Likewise.
24527         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
24528         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24529         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24530         * sysdeps/microblaze/libm-test-ulps: Likewise.
24531         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
24532         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24533         * sysdeps/nios2/libm-test-ulps: Likewise.
24534         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
24535         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
24536         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
24537         * sysdeps/sh/libm-test-ulps: Likewise.
24538         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
24539         * sysdeps/tile/libm-test-ulps: Likewise.
24540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24542 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
24544         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
24546 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
24548         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
24549         "../ChangeLog.old/ChangeLog.8".
24550         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
24551         "../ChangeLog.old/ChangeLog.14".
24553 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
24555         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
24556         Threads Library.
24558 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
24560         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
24562 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
24564         * csu/version.c (banner): Remove "by Roland McGrath et al.".
24565         * nptl/Banner: Remove "by Ulrich Drepper et al.".
24567 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
24569         * stdlib/tst-atexit-common.c (do_test): Test support for at least
24570         32 atexit handlers.
24572 2017-09-01  Zack Weinberg  <zackw@panix.com>
24574         * math/math.h (HUGE_VAL): Improve commentary.
24576 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24577             Andreas Schwab  <schwab@suse.de>
24579         [BZ #21530]
24580         * include/stdio.h (__gen_tempfd): New function.
24581         * stdio-common/Makefile (routines): Add gentempfd.
24582         * stdio-common/gentempfd.c: New file.
24583         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
24584         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
24585         unnamed file first.
24587 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24589         [BZ #21915]
24590         [BZ #21922]
24591         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
24592         result to determine success or failure, not the errno value.
24593         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
24594         (tst-nss-files-hosts-erange): Link with -ldl.
24595         * nss/tst-nss-files-hosts-erange.c: New file.
24596         * nss/tst-resolv-basic.c (response): Handle nodata.example.
24597         (do_test): Add NO_DATA tests.
24598         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
24599         (do_test): Call it.
24601 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24603         [BZ #21922]
24604         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
24605         coming from gethostbyname2_r.
24607 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24609         * support/namespace.h (struct support_chroot_configuration): Add
24610         hosts, host_conf.
24611         (struct support_chroot): Add path_hosts, path_host_conf.
24612         * support/support_chroot.c (write_file): New function.
24613         (support_chroot_create): Call it to process /etc/resolv.conf,
24614         /etc/hosts, /etc/host.conf.
24615         (support_chroot_free): Update.
24617 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24619         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
24620         status indicates it is set.
24622 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24624         [BZ #20532]
24625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
24626         function lookup failures more reliable.
24628 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24630         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
24631         (getcanonname): Likewise.
24632         (gaih_inet): Likewise.
24634 2017-09-01  Florian Weimer  <fweimer@redhat.com>
24636         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
24637         (getcanonname): Likewise.
24638         (gaih_inet): Likewise.
24640 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
24641             Richard Henderson <rth@twiddle.net>
24643         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
24644         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
24645         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
24646         (IREG_SIZE, OREG_SIZE): New macros.
24647         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
24648         (IREG_SIZE, OREG_SIZE): New macros.
24649         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
24650         (IREG_SIZE): New macro.
24651         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
24652         (IREG_SIZE): New macro.
24653         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
24654         New includes.
24655         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
24656         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
24657         (__CONCATX): Handle exceptions correctly on large values that may
24658         set FE_INVALID.
24659         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
24660         Initialize if not already set.
24661         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
24663 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24665         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
24666         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
24667         Likewise.
24668         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
24669         Likewise.
24670         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
24671         Likewise.
24672         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
24673         Likewise.
24674         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
24675         Likewise.
24676         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
24677         Likewise.
24678         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
24679         Likewise.
24680         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
24681         (NO_CANCELLATION): Likewise.
24682         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
24683         Likewise.
24684         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
24685         Likewise.
24686         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
24687         Likewise.
24688         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
24689         (NO_CANCELLATION): Likewise.
24690         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
24691         (NO_CANCELLATION): Likewise.
24692         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
24693         Likewise
24694         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
24695         Likewise.
24696         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
24697         Likewise.
24698         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
24699         Likewise.
24700         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
24701         hidden prototype.
24702         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
24703         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
24705 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
24707         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
24708         in resolver call.
24710 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24712         * include/libc-symbols.h (internal_function): Remove.
24714 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24716         * stdlib/fmtmsg.c (internal_addseverity): Remove
24717         internal_function.
24719 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24721         * stdio-common/printf_fp.c (group_number): Remove
24722         internal_function.
24723         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
24725 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24727         * posix/fnmatch.c (internal_function): Remove definition.
24728         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
24729         * posix/regcomp.c (peek_token, init_word_char)
24730         (duplicate_node_closure, fetch_token, peek_token)
24731         (peek_token_bracket, build_range_exp, build_collating_symbol):
24732         Likewise.
24733         * posix/regex_internal.c (re_string_construct_common)
24734         (create_ci_newstate, create_cd_newstate, re_string_allocate)
24735         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
24736         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
24737         (re_string_translate_buffer, re_string_reconstruct)
24738         (re_string_peek_byte_case, re_string_fetch_byte_case)
24739         (re_string_destruct, re_string_context_at, re_node_set_alloc)
24740         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
24741         (re_node_set_add_intersect, re_node_set_init_union)
24742         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
24743         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
24744         (re_dfa_add_node, calc_state_hash, re_acquire_state)
24745         (re_acquire_state_context): Likewise.
24746         * posix/regex_internal.h (internal_function): Remove definition.
24747         (re_string_realloc_buffers, build_wcs_buffer)
24748         (build_wcs_upper_buffer, build_upper_buffer)
24749         (re_string_translate_buffer, re_string_context_at)
24750         (re_string_char_size_at, re_string_wchar_at)
24751         (re_string_elem_size_at): Likewise.
24752         * posix/regexec.c (match_ctx_init, match_ctx_clean)
24753         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
24754         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
24755         (re_search_internal, re_search_2_stub, re_search_stub)
24756         (re_copy_regs, prune_impossible_nodes, check_matching)
24757         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
24758         (free_fail_stack_return, sift_states_iter_mb)
24759         (sift_states_backward, build_sifted_states)
24760         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
24761         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
24762         (check_subexp_limits, sift_states_bkref, merge_state_array)
24763         (find_recover_state, transit_state, merge_state_with_log)
24764         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
24765         (transit_state_mb, transit_state_bkref, get_subexp)
24766         (get_subexp_sub, find_subexp_node, check_arrival)
24767         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
24768         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
24769         (check_node_accept_bytes, find_collation_sequence_value)
24770         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
24771         (acquire_init_state_context, check_halt_node_context)
24772         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
24773         (sub_epsilon_src_nodes): Likewise.
24774         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
24775         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
24776         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
24777         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
24778         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
24779         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
24780         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
24781         * sysdeps/posix/ttyname.c (getttyname): Likewise.
24782         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
24783         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
24784         (PREADV): Likewise.
24785         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
24786         (PREADV): Likewise.
24787         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
24788         (PWRITEV): Likewise.
24789         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
24790         (PWRITEV): Likewise.
24791         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
24792         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24794 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24796         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
24797         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
24798         Remove internal_function.
24799         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
24800         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
24801         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
24802         (__deallocate_stack, __libc_pthread_init)
24803         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
24804         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
24805         (__libc_disable_asynccancel, __librt_disable_asynccancel):
24806         Likewise.
24807         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
24808         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
24809         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
24810         Likewise.
24811         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
24812         (__pthread_mutex_unlock_usercnt): Likewise.
24814 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24816         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
24817         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
24818         (fts_safe_changedir): Remove internal_function.
24819         * io/ftw.c (internal_function): Remove definition.
24820         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
24822 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24824         * inet/deadline.c (__deadline_current_time)
24825         (__deadline_from_timeval, __deadline_to_ms): Remove
24826         internal_function.
24827         * inet/getnameinfo.c (nrl_domainname): Likewise.
24828         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
24829         * inet/inet6_option.c (add_pad): Likewise.
24830         * inet/net-internal.h (__deadline_current_time)
24831         (__deadline_from_timeval, __deadline_to_ms): Likewise.
24832         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
24833         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
24834         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
24836 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
24838         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
24839         include <bits/nan.h>.
24840         * math/Makefile (headers): Remove bits/nan.h.
24841         * bits/nan.h: Remove.
24842         * sysdeps/ieee754/bits/nan.h: Likewise.
24843         * sysdeps/mips/bits/nan.h: Likewise.
24845         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
24846         not include <bits/inf.h>.
24847         * math/Makefile (headers): Remove bits/inf.h.
24848         * bits/inf.h: Remove.
24849         * sysdeps/ieee754/bits/inf.h: Likewise.
24851         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
24852         bits/huge_vall.h or bits/huge_val_flt128.h.
24853         (HUGE_VAL): Define directly here.
24854         [__USE_ISOC99] (HUGE_VALF): Likewise.
24855         [__USE_ISOC99] (HUGE_VALL): Likewise.
24856         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24857         (HUGE_VAL_F128): Likewise.
24858         * math/Makefile (headers): Remove bits/huge_val.h,
24859         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
24860         * bits/huge_val.h: Remove.
24861         * bits/huge_val_flt128.h: Likewise.
24862         * bits/huge_valf.h: Likewise.
24863         * bits/huge_vall.h: Likewise.
24864         * sysdeps/ia64/bits/huge_vall.h: Likewise.
24865         * sysdeps/ieee754/bits/huge_val.h: Likewise.
24866         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
24867         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
24868         * sysdeps/sh/bits/huge_val.h: Likewise.
24869         * sysdeps/sparc/bits/huge_vall.h: Likewise.
24870         * sysdeps/x86/bits/huge_vall.h: Likewise.
24872 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24874         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
24875         internal_function.
24876         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
24877         Likewise.
24878         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
24879         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
24880         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
24881         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
24882         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24883         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
24884         * elf/dl-libc.c (dlerror_run): Likewise.
24885         * elf/dl-load.c (add_name_to_object, decompose_rpath)
24886         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
24887         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
24888         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
24889         Likewise.
24890         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
24891         (_dl_higher_prime_number, _dl_strtoul): Likewise.
24892         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
24893         * elf/dl-profile.c (_dl_start_profile): Likewise.
24894         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
24895         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
24896         Likewise.
24897         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
24898         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
24899         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
24900         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
24901         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
24902         (_dl_allocate_tls_storage): Likewise.
24903         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
24904         (_dl_check_all_versions): Likewise.
24905         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
24906         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
24907         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
24908         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
24909         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
24910         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
24911         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
24912         internal_function from __dl_start.
24913         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
24914         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
24915         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
24916         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
24917         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
24918         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
24919         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
24920         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
24921         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
24922         (_dl_next_ld_env_entry, _dl_important_hwcaps)
24923         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
24924         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
24925         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
24926         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
24927         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
24928         Likewise.
24929         (struct rtld_global_ro): Remove internal_function from the
24930         _dl_lookup_symbol_x member.
24931         (_dl_symbol_value): Remove.  No longer defined anywhere.
24932         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
24933         internal_function.
24934         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
24935         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
24936         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
24937         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
24938         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
24939         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
24940         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
24941         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
24942         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
24943         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
24944         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
24945         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
24947 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24949         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
24950         Remove internal_function.
24951         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
24952         Likewise.
24953         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
24954         Likewise.
24956 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24958         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
24959         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
24960         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
24962 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24964         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
24965         (__gai_enqueue_request): Remove internal_function.
24966         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
24967         (__gai_remove_request, __gai_notify, __gai_notify_only)
24968         (__gai_sigqueue): Likewise.
24969         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
24970         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
24971         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
24972         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
24973         Likewise.
24975 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24977         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
24978         * include/dirent.h (__opendirat, __getdents, __getdents64)
24979         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
24980         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
24981         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
24982         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
24983         Likewise.
24984         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
24986 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24988         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
24989         internal_function.
24990         (GETCWD_RETURN_TYPE): Likewise.
24992 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24994         * include/time.h (__tz_compute, __strptime_internal): Remove
24995         internal_function.
24996         * time/strptime_l.c (__strptime_internal): Likewise.
24997         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
24999 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25001         * iconv/gconv.c (__gconv): Remove internal_function.
25002         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
25003         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
25004         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
25005         (__gconv_release_cache): Likewise.
25006         * iconv/gconv_close.c (__gconv_close): Likewise.
25007         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
25008         (read_conf_file, __gconv_get_path): Likewise.
25009         * iconv/gconv_db.c (derivation_lookup, add_derivation)
25010         (__gconv_release_step, gen_steps, increment_counter)
25011         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
25012         (__gconv_close_transform, free_modules_db): Likewise.
25013         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
25014         Likewise.
25015         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
25016         (__gconv_find_transform, __gconv_lookup_cache)
25017         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
25018         (__gconv_close_transform, __gconv_release_cache)
25019         (__gconv_loaded_object, __gconv_release_shlib)
25020         (__gconv_compare_alias): Likewise.
25021         * iconv/gconv_open.c (__gconv_open): Likewise.
25022         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
25023         * iconv/iconvconfig.c (add_module): Likewise.
25024         * intl/dcigettext.c (plural_lookup, guess_category_value)
25025         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
25026         * intl/eval-plural.h (plural_eval): Likewise.
25027         * intl/finddomain.c (_nl_find_domain): Likewise.
25028         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
25029         (_nl_load_domain, _nl_find_msg): Likewise.
25030         (internal_function): Remove definition.
25031         * intl/loadinfo.h (internal_function): Likewise.
25032         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
25033         internal_function.
25034         * intl/localealias.c (internal_function): Remove definition.
25035         (read_alias_file): Remove internal_function.
25036         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
25037         * intl/plural-exp.h (internal_function): Remove definition.
25038         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
25039         internal_function.
25040         * intl/plural.c: Regenerate.
25041         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
25042         * locale/coll-lookup.c (__collidx_table_lookup)
25043         (__collseq_table_lookup): Likewise.
25044         * locale/coll-lookup.h (__collidx_table_lookup)
25045         (__collseq_table_lookup): Likewise.
25046         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
25047         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
25048         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
25049         (_nl_unload_locale): Likewise.
25050         * locale/localeinfo.h (struct __locale_data): Remove
25051         internal_function from cleanup member.
25052         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
25053         (_nl_remove_locale, _nl_load_locale_from_archive)
25054         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
25055         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
25056         (_nl_cleanup_time): Remove internal_function.
25057         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
25058         (_nl_parse_alt_digit): Likewise.
25059         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
25060         (_nl_select_era_entry): Likewise.
25061         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
25062         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
25063         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
25064         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
25065         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
25067 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25069         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
25070         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
25071         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
25072         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
25073         Likewise.
25074         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
25075         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
25076         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
25077         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
25078         Likewise.
25079         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
25081 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25083         * misc/getttyent.c (skip, value): Remove internal_function.
25084         * misc/syslog.c (openlog_internal): Likewise.
25085         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
25087 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25089         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
25090         (__nss_rewrite_field): Remove internal_function.
25091         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25092         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
25093         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
25094         * nss/nsswitch.c (nss_parse_file, nss_getline)
25095         (nss_parse_service_list, nss_new_service): Likewise.
25096         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
25097         * nss/valid_field.c (__nss_valid_field): Likewise.
25098         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
25100 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25102         * malloc/arena.c (__malloc_fork_lock_parent)
25103         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
25104         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
25105         internal_function from defintions.
25106         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
25107         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
25108         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
25109         internal_function from declarations.
25110         * malloc/malloc.c (internal_function): Do not define.
25111         (mem2mem_check): Remove internal_function from declaration.
25112         (munmap_chunk, mremap_chunk): Remove internal_function.
25113         * malloc/mtrace.c (tr_where): Likewise.
25115 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25117         * include/rpc/pmap_clnt.h (__get_socket): Remove
25118         internal_function.
25119         * sunrpc/auth_des.c (synchronize): Likewise.
25120         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
25121         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
25122         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
25123         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
25124         (key_call): Likewise.
25125         * sunrpc/pm_getport.c (__get_socket): Likewise.
25126         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
25127         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
25128         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
25129         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
25130         (invalidate): Likewise.
25131         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
25132         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
25133         (set_input_fragment, get_input_bytes): Likewise.
25135 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25137         * malloc/malloc.c (_int_free): Remove locked variable and related
25138         asserts.
25140 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
25142         [BZ #22051]
25143         * Makerules (build-module-helper-objlist): Filter out
25144         $(elf-objpfx)sofini.os.
25145         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
25146         needed.
25148 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25150         * libio/fcloseall.c: Assume weak_alias is defined.
25151         * libio/feof.c: Likewise.
25152         * libio/fileno.c: Likewise.
25153         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
25154         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
25155         definitions.
25156         (_IO_file_open): Call __open directly.
25157         (_IO_new_file_sync): Assume ESPIPE is defined.
25158         (_IO_file_seekoff_maybe_mmap): Call __read directly.
25159         (_IO_new_file_write): Call __write directly.
25160         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
25161         * libio/ftello64.c (__ftello64): Assume EIO is defined.
25162         * libio/genops.c: Assume _LIBC is defined.
25163         (save_for_backup): Remove internal_function.
25164         * libio/getc.c: Assume weak_alias is defined.
25165         * libio/getwc.c: Likewise.
25166         * libio/iofclose.c: Assume _LIBC is defined.
25167         * libio/iofdopen.c: Likewise.
25168         (_IO_fcntl): Remove macro definition.
25169         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
25170         Call __fcntl directly.
25171         * libio/iofflush.c: Assume weak_alias is defined.
25172         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
25173         defined.
25174         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
25175         * libio/iofgets.c: Likewise.
25176         * libio/iofopen.c: Assume _LIBC is defined.
25177         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
25178         * libio/iofputs.c: Assume weak_alias is defined.
25179         * libio/iofread.c: Likewise.
25180         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
25181         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
25182         * libio/ioftell.c: Assume weak_alias is defined.
25183         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
25184         * libio/iofwide.c: Assume _LIBC is defined.
25185         (_IO_fwide): Drop SHARED conditional because it is implied by
25186         SHLIB_COMPAT.
25187         * libio/iofwrite.c: Assume weak_alias is defined.
25188         * libio/iogetdelim.c: Likewise.
25189         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
25190         * libio/iogetwline.c (wmemcpy): Remove macro definition.
25191         (_IO_getwline): Call __wmemcpy directly.
25192         * libio/iopopen.c: Assume _LIBC is defined.
25193         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
25194         (_IO_close): Remove macro definitions.
25195         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
25196         _exit directly.
25197         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
25198         directly.
25199         * libio/ioputs.c: Assume weak_alias is defined.
25200         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
25201         * libio/iosetbuffer.c: Assume weak_alias is defined.
25202         * libio/iosetvbuf.c: Likewise.
25203         * libio/ioungetc.c: Likewise.
25204         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
25205         libc_hidden_def, libc_hidden_weak, NULL are defined.
25206         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
25207         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
25208         defined.
25209         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
25210         definitions.
25211         (_IO_old_file_init_internal): Drop SHARED conditional because it
25212         is implied by SHLIB_COMPAT.
25213         (_IO_old_file_fopen): Call __open directly.
25214         (_IO_old_file_sync): Assume ESPIPE is defined.
25215         (_IO_old_file_write): Call __write directly.
25216         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
25217         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
25218         Call __fcntl directly.
25219         * libio/oldiofgetpos.c: Assume weak_alias is defined.
25220         (_IO_old_fgetpos): Assume EIO is defined.
25221         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
25222         (_IO_old_fgetpos64): Assume EIO is defined.
25223         * libio/oldiofsetpos.c: Assume weak_alias is defined.
25224         (_IO_old_fsetpos): Assume EIO is defined.
25225         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
25226         (_IO_old_fsetpos64): Assume EIO is defined.
25227         * libio/oldiopopen.c:  Assume _LIBC is defined.
25228         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
25229         (_IO_close): Remove macro definitions.
25230         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
25231         directly.
25232         (_IO_old_proc_close): Call __close, __waitpid directly.
25233         * libio/put.c: Assume weak_alias is defined.
25234         * libio/stdfiles.c: Assume _LIBC is defined.
25235         * libio/stdio.c: Likewise.
25236         * libio/wfileops.c: Likewise.
25237         (_IO_wfile_sync): Assume ESPIPE is defined.
25238         * libio/wgenops.c: Assume _LIBC is defined.
25239         (save_for_wbackup): Remove internal_function.
25241 2017-08-31  Florian Weimer  <fweimer@redhat.com>
25243         * malloc/malloc.c (top_check): Change return type to void.  Remove
25244         internal_function.
25245         * malloc/hooks.c (top_check): Likewise.
25246         (malloc_check, realloc_check, memalign_check): Adjust.
25248 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
25250         [BZ #21457]
25251         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
25252         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
25253         sigcontext and namespace requirements.
25254         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
25255         * sysdeps/m68k/sys/ucontext.h: Likewise.
25256         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
25257         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
25258         <bits/sigcontext.h>.
25259         (__ctx): Define earlier.
25260         (mcontext_t): Define structure contents rather than using struct
25261         sigcontext.
25262         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
25263         __glibc_reserved1 instead of __reserved.
25264         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
25265         <bits/sigcontext.h>.
25266         (__ctx): Define earlier.
25267         (mcontext_t): Define structure contents rather than using struct
25268         sigcontext.
25269         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
25270         mcontext_t instead of struct sigcontext.
25271         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
25272         <bits/sigcontext.h>.
25273         (__ctx): Define earlier.
25274         (mcontext_t): Define structure contents rather than using struct
25275         sigcontext.
25276         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
25277         <bits/sigcontext.h>.
25278         (__ctx): Define earlier.
25279         (mcontext_t): Define structure contents rather than using struct
25280         sigcontext.
25281         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
25282         mcontext_t instead of struct sigcontext.
25283         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
25284         mcontext_t instead of struct sigcontext.
25285         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
25286         <bits/sigcontext.h>.
25287         (__ctx): New macro.
25288         (struct __ia64_fpreg_mcontext): New type.
25289         (mcontext_t): Define structure contents rather than using struct
25290         sigcontext.
25291         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
25292         (uc_sigmask): Define using __ctx.
25293         (uc_stack): Likewise.
25294         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
25295         <bits/sigcontext.h>.
25296         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25297         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
25298         <bits/sigcontext.h>.
25299         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
25300         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
25301         <bits/sigcontext.h>.
25302         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
25303         <bits/sigcontext.h>.
25304         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
25305         <bits/sigcontext.h>.
25306         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
25307         <bits/sigcontext.h>.
25308         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
25309         <bits/sigcontext.h>.
25310         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
25311         <bits/sigcontext.h>.
25312         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
25313         <bits/sigcontext.h>.
25314         (__ctx): Define earlier.
25315         (mcontext_t): Define structure contents rather than using struct
25316         sigcontext.
25317         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
25318         <bits/sigcontext.h>.  Include <bits/types.h>.
25319         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
25320         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
25321         (test-xfail-XPG42/ucontext.h/conform): Likewise.
25322         (test-xfail-UNIX98/signal.h/conform): Likewise.
25323         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
25324         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
25325         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
25326         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
25327         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
25328         (test-xfail-POSIX2008/signal.h/conform): Likewise.
25329         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
25330         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
25331         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
25333 2017-08-30  Florian Weimer  <fweimer@redhat.com>
25335         * malloc/dynarray_emplace_enlarge.c
25336         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
25337         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
25338         * malloc/tst-dynarray.c (test_long_overflow): New function.
25339         (do_test): Call it.
25341 2017-08-30  Florian Weimer  <fweimer@redhat.com>
25343         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
25344         (set_arena_corrupt): Remove definitions.
25345         (mtrim): Do not check for corrupt arena.
25346         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
25347         Likewise.
25349 2017-08-30  Florian Weimer  <fweimer@redhat.com>
25351         [BZ #21754]
25352         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
25353         check_action.
25354         (ptmalloc_init): Do not set or use check_action.
25355         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
25356         call to malloc_printerr.  Remove return statement.
25357         (free_check): Likewise.  Remove arena unlock.
25358         (top_check): Update comment.  Adjust call to malloc_printerr.
25359         Remove heap repair code.
25360         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
25361         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
25362         (sysmalloc): Adjust call to malloc_printerr.
25363         (munmap_chunk, __libc_realloc): Likewise.  Remove return
25364         statement.
25365         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
25366         Remove errout label and corresponding gotos.
25367         (_int_free): Likewise.  Remove arena unlock.
25368         (do_set_mallopt_check): Do not set check_action.
25369         (malloc_printerr): Adjust parameter list.  Do not mark arena as
25370         corrupt.
25371         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
25372         comment.
25373         * manual/probes.texi (Memory Allocation Probes): Remove
25374         memory_mallopt_check_action.
25376 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
25378         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
25379         Use pointer to uint64_t instead of long int for sp.
25381 2017-08-30  Florian Weimer  <fweimer@redhat.com>
25383         [BZ #21754]
25384         * malloc/malloc.c (malloc_printerr): Always terminate the process,
25385         without printing a backtrace.  Do not leak any information in the
25386         error message.
25387         * manual/memory.texi (Heap Consistency Checking): Update.
25388         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
25390 2017-08-30  Florian Weimer  <fweimer@redhat.com>
25392         Do not scale NPTL tests with available number of CPUs.
25393         * nptl/tst-cond16.c (count): Set to constant value of 8.
25394         * nptl/tst-cond18.c (count): Likewise.
25396 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
25398         [BZ #22035]
25399         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
25400         Define to take a second argument that is a macro that
25401         concatentates a suffix, not the suffix itself.
25402         (__CONCAT_d): New macro.
25403         (__CONCAT_f): Likewise.
25404         (__CONCAT_l): Likewise.
25406 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
25408         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
25409         by child.
25411 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25412             Aurelien Jarno  <aurelien@aurel32.net>
25413             Maciej W. Rozycki  <macro@imgtec.com>
25415         [BZ #21956]
25416         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
25417         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
25418         `mips16-syscall6' and `mips16-syscall7'.
25419         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
25420         (CFLAGS-mips16-syscall7.c): Remove.
25421         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
25422         Remove `__mips16_syscall5', `__mips16_syscall6' and
25423         `__mips16_syscall7'.
25424         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
25425         (__mips16_syscall0): Rename `__mips16_syscall_return' to
25426         `__mips_syscall_return'.
25427         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
25428         (__mips16_syscall1): Likewise.
25429         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
25430         (__mips16_syscall2): Likewise.
25431         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
25432         (__mips16_syscall3): Likewise.
25433         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
25434         (__mips16_syscall4): Likewise.
25435         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
25436         Remove.
25437         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
25438         Remove.
25439         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
25440         Remove.
25441         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
25442         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
25443         `__mips16_syscall5'.  Remove prototype.
25444         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
25445         `__mips16_syscall6'.  Remove prototype.
25446         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
25447         `__mips16_syscall7'.  Remove prototype.
25448         (__nomips16, __mips16_syscall_return): Move to...
25449         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
25450         (__nomips16, __mips_syscall_return): ... here.
25451         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
25452         `__mips16_syscall_return' to `__mips_syscall_return'.
25453         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
25454         `internal_syscall##nr'.
25455         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
25456         `internal_syscall##nr'.
25457         (FORCE_FRAME_POINTER): Remove.
25458         (__mips_syscall5): New prototype.
25459         (internal_syscall5): Rewrite to call `__mips_syscall5'.
25460         (__mips_syscall6): New prototype.
25461         (internal_syscall6): Rewrite to call `__mips_syscall6'.
25462         (__mips_syscall7): New prototype.
25463         (internal_syscall7): Rewrite to call `__mips_syscall7'.
25464         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
25465         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
25466         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
25467         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
25468         (sysdep_routines): Add libc-do-syscall.
25469         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
25470         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
25472 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25474         [BZ #21672]
25475         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
25476         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
25477         (advise_stack_range): New function.
25478         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
25479         stack non required to advise_stack_range at allocatestack.c
25481 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25483         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
25485 2017-08-29  Florian Weimer  <fweimer@redhat.com>
25487         [BZ #22026]
25488         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
25489         __end_fct.  Mangle __end_fct after setting it to NULL.
25490         * iconv/Makefile (tests): Add tst-gconv-init-failure.
25491         (modules-names, modules-names-tests): Add
25492         tst-gconv-init-failure-mod.
25493         (gconv-modules): New target.
25494         (tst-gconv-init-failure-mod.so): Link against libsupport.
25495         (tst-gconv-init-failure): Depend on gconv-modules,
25496         tst-gconv-init-failure-mod.so.
25497         * iconv/tst-gconv-init-failure-mod.c: New file.
25498         * iconv/tst-gconv-init-failure.c: Likewise.
25499         * iconv/test-gconv-modules: Likewise.
25501 2017-08-29  Florian Weimer  <fweimer@redhat.com>
25503         [BZ #22025]
25504         * iconv/gconv_db.c (free_derivation): Remove redundant
25505         parentheses.
25506         (gen_steps): Unconditionally mangle __btowc_fct after
25507         initialization.
25508         (increment_counter): Likewise.  Do not call init_fct for internal
25509         modules.
25511 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
25513         [BZ #22028]
25514         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
25515         (_MSUF_): Remove macro.
25516         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
25517         Likewise.
25518         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
25519         (__REDIRFROM_X): New macro.
25520         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
25521         Likewise.
25522         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
25523         (__REDIRTO_X): Likewise.
25524         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
25525         arguments.
25526         (__MATH_REDIRCALL_2): Likewise.
25527         (__MATH_REDIRCALL_INTERNAL): Likewise.
25528         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
25529         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
25530         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
25531         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
25532         * math/test-finite-macros.c: New file.
25533         * math/Makefile (tests): Add test-finite-macros.
25534         (CFLAGS-test-finite-macros.c): New variable.
25536 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
25537             Jeff Law  <law@redhat.com>
25539         [BZ #22025]
25540         Mangle NULL pointers in iconv/gconv.
25541         * iconv/gconv_cache.c (find_module): Demangle init_fct before
25542         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
25543         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
25544         is non-NULL before demangling the end_fct.  Check for NULL
25545         end_fct after demangling.
25546         (__gconv_release_step): Demangle the end_fct before checking
25547         it for NULL.   Remove assert on __shlibc_handle != NULL.
25548         (gen_steps): Don't check btowc_fct for NULL before mangling.
25549         Demangle init_fct before checking for NULL.
25550         (increment_counter): Likewise.
25551         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
25552         end_fct for NULL before mangling.
25553         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
25554         for NULL.
25556 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
25558         [BZ #21971]
25559         * locale/iso-639.def: add Morisyen.
25561 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25563         [BZ #21930]
25564         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
25565         (iszero): New C++ implementation that does not use
25566         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
25567         signaling nans are enabled, since __builtin_types_compatible_p
25568         is a C-only feature.
25569         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
25570         defined, include ieee754_float128.h for access to the union and
25571         member ieee854_float128.ieee.
25572         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
25573         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
25574         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
25575         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
25576         options of test-math-zero on powerpc64le.
25578 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
25580         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25581         Change double to float.
25583 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
25585         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
25586         unconditional.
25587         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
25588         conditional code; define contents only for [LIBM_SVID_COMPAT].
25590 2017-08-28  Florian Weimer  <fweimer@redhat.com>
25592         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
25593         (abi-lp64_be-options): Remove.
25594         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
25595         (abi-hard-options): Likewise.
25596         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
25597         (abi-o32_hard-options, abi-o32_soft_2008-options)
25598         (abi-o32_hard_2008-options, abi-n32_soft-options)
25599         (abi-n32_hard-options, abi-n32_soft_2008-options)
25600         (abi-n32_hard_2008-options, abi-n64_soft-options)
25601         (abi-n64_hard-options, abi-n64_soft_2008-options)
25602         (abi-n64_hard_2008-options): Likewise.
25603         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
25604         (abi-64-v1-options, abi-64-v2-options): Likewise.
25605         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
25606         (abi-64-options): Likewise.
25607         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
25608         (abi-64-options): Likewise.
25609         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
25610         (abi-64-options): Likewise.
25611         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
25612         (abi-64-options, abi-x32-options): Likewise.
25614 2017-08-28  Florian Weimer  <fweimer@redhat.com>
25616         Store supported list of SYS_* system calls in the source tree.
25617         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
25618         (bits/syscall.h): Generate from list file.
25619         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
25620         [$(subdir) = misc] (tests): Add tst-syscall-list.
25621         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
25622         [$(subdir) = misc] (tst-syscall-list-macros.list)
25623         [$(subdir) = misc] (tst-syscall-list-nr.list)
25624         (tst-syscall-list-sys.list): Helper targets for new
25625         tst-syscall-list test.
25626         [$(subdir) = misc] (tst-syscall-list.out): Run test script
25627         tst-syscall-list.sh.
25628         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
25629         target. Do not include bits/syscall.d.
25630         [$(subdir) = misc] (generated): Do not update.
25631         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
25632         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
25633         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
25634         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
25636 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
25638         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
25639         (tst-cxa_atexit, tst-on_exit): Likewise.
25640         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
25641         tst-cxa_atexit, and tst-on_exit.
25642         * stdlib/tst-atexit-common.c: New file.
25643         * stdlib/tst-atexit.c: New file.
25644         * stdlib/tst-at_quick_exit.c: New file.
25645         * stdlib/tst-cxa_atexit.c: New file.
25646         * stdlib/tst-on_exit.c: New file.
25648 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25650         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
25651         * mach/stack_chk_fail_local.c: New file.
25652         * hurd/stack_chk_fail_local.c: New file.
25653         * mach/Machrules ($(interface-library)-routines): Add
25654         stack_chk_fail_local.
25655         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
25656         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
25657         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
25658         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
25659         * hurd/Makefile (CFLAGS-hurdstartup.o,
25660         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
25662 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
25664         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
25665         (index_cpu_*, index_arch_*): Removed.
25667 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25669         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
25670         Use uint64_t instead of unsigned long.
25672 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
25674         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
25675         [__HAVE_DISTINCT_FLOAT128].
25677         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
25678         of <bits/math-finite.h>.
25679         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
25680         inclusion of <bits/math-finite.h>.
25681         * math/bits/math-finite.h (__REDIRTO_X): Do not define
25682         conditionally on [__MATH_DECLARING_LDOUBLE && defined
25683         __NO_LONG_DOUBLE_MATH].
25684         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
25685         (__MATH_REDIRCALL_2): Likewise.
25686         (__MATH_REDIRCALL_INTERNAL): Likewise.
25687         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
25688         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
25689         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
25691         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
25692         Remove file.
25693         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
25694         Likewise.
25695         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
25696         Likewise.
25697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
25698         Likewise.
25699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
25700         Likewise.
25701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
25702         Likewise.
25703         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
25704         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
25705         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
25706         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
25707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
25708         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
25709         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
25710         w_sqrtf_compat-ppc32.
25712 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25714         * math/math.h [defined __cplusplus] (issignaling): In the long
25715         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
25716         is not defined.  Call __issignaling, otherwise.
25718 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25720         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
25721         syscall definitions and replace __builtin_expect with __glibc_likely.
25722         * sysdeps/unix/syscall-template.S: Update comment about cancellable
25723         syscall.
25724          (SYSCALL_CANCELLABLE): Removedefinition
25725         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
25726         definition.
25727         (PSEUDO_END): Likewise.
25728         [IS_IN (libpthread)] (CENABLE): Likewise.
25729         [IS_IN (libpthread)] (CDISABLE): Likewise.
25730         [IS_IN (libc)] (CENABLE): Likewise.
25731         [IS_IN (libc)] (CENABLE): Likewise.
25732         [IS_IN (librt)] (CDISABLE): Likewise.
25733         [IS_IN (librt)] (CDISABLE): Likewise.
25734         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25735         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
25736         definition.
25737         (PSEUDO_END): Likewise.
25738         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
25739         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
25740         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
25741         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
25742         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
25743         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
25744         (CENABLE): Likewise.
25745         (CDISABLE): Likewise.
25746         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25747         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
25748         defintion.
25749         (PSEUDO_END): Likewise.
25750         [IS_IN (libpthread)] (CENABLE): Likewise.
25751         [IS_IN (libpthread)] (CDISABLE): Likewise.
25752         [IS_IN (libc)] (CENABLE): Likewise.
25753         [IS_IN (libc)] (CENABLE): Likewise.
25754         [IS_IN (librt)] (CDISABLE): Likewise.
25755         [IS_IN (librt)] (CDISABLE): Likewise.
25756         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25757         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
25758         definition.
25759         (PSEUDO_END): Likewise.
25760         [IS_IN (libpthread)] (CENABLE): Likewise.
25761         [IS_IN (libpthread)] (CDISABLE): Likewise.
25762         [IS_IN (libc)] (CENABLE): Likewise.
25763         [IS_IN (libc)] (CENABLE): Likewise.
25764         [IS_IN (librt)] (CDISABLE): Likewise.
25765         [IS_IN (librt)] (CDISABLE): Likewise.
25766         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25767         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
25768         definition.
25769         (PSEUDO_END): Likewise.
25770         [IS_IN (libpthread)] (CENABLE): Likewise.
25771         [IS_IN (libpthread)] (CDISABLE): Likewise.
25772         [IS_IN (libc)] (CENABLE): Likewise.
25773         [IS_IN (libc)] (CENABLE): Likewise.
25774         [IS_IN (librt)] (CDISABLE): Likewise.
25775         [IS_IN (librt)] (CDISABLE): Likewise.
25776         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25777         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
25778         definition.
25779         (PSEUDO_END): Likewise.
25780         [IS_IN (libpthread)] (CENABLE): Likewise.
25781         [IS_IN (libpthread)] (CDISABLE): Likewise.
25782         [IS_IN (libc)] (CENABLE): Likewise.
25783         [IS_IN (libc)] (CENABLE): Likewise.
25784         [IS_IN (librt)] (CDISABLE): Likewise.
25785         [IS_IN (librt)] (CDISABLE): Likewise.
25786         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25787         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
25788         definition.
25789         (PSEUDO_END): Likewise.
25790         [IS_IN (libpthread)] (CENABLE): Likewise.
25791         [IS_IN (libpthread)] (CDISABLE): Likewise.
25792         [IS_IN (libc)] (CENABLE): Likewise.
25793         [IS_IN (libc)] (CENABLE): Likewise.
25794         [IS_IN (librt)] (CDISABLE): Likewise.
25795         [IS_IN (librt)] (CDISABLE): Likewise.
25796         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25797         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
25798         definition.
25799         (PSEUDO_END): Likewise.
25800         [IS_IN (libpthread)] (CENABLE): Likewise.
25801         [IS_IN (libpthread)] (CDISABLE): Likewise.
25802         [IS_IN (libc)] (CENABLE): Likewise.
25803         [IS_IN (libc)] (CENABLE): Likewise.
25804         [IS_IN (librt)] (CDISABLE): Likewise.
25805         [IS_IN (librt)] (CDISABLE): Likewise.
25806         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25807         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
25808         Remove definition.
25809         (PSEUDO_END): Likewise.
25810         [IS_IN (libpthread)] (CENABLE): Likewise.
25811         [IS_IN (libpthread)] (CDISABLE): Likewise.
25812         [IS_IN (libc)] (CENABLE): Likewise.
25813         [IS_IN (libc)] (CENABLE): Likewise.
25814         [IS_IN (librt)] (CDISABLE): Likewise.
25815         [IS_IN (librt)] (CDISABLE): Likewise.
25816         (SINGLE_THREAD_P): Likewise.
25817         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
25818         definition.
25819         (PSEUDO_END): Likewise.
25820         [IS_IN (libpthread)] (CENABLE): Likewise.
25821         [IS_IN (libpthread)] (CDISABLE): Likewise.
25822         [IS_IN (libc)] (CENABLE): Likewise.
25823         [IS_IN (libc)] (CENABLE): Likewise.
25824         [IS_IN (librt)] (CDISABLE): Likewise.
25825         [IS_IN (librt)] (CDISABLE): Likewise.
25826         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25827         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
25828         definition.
25829         (PSEUDO_END): Likewise.
25830         [IS_IN (libpthread)] (CENABLE): Likewise.
25831         [IS_IN (libpthread)] (CDISABLE): Likewise.
25832         [IS_IN (libc)] (CENABLE): Likewise.
25833         [IS_IN (libc)] (CENABLE): Likewise.
25834         [IS_IN (librt)] (CDISABLE): Likewise.
25835         [IS_IN (librt)] (CDISABLE): Likewise.
25836         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25837         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
25838         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
25839         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
25840         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
25841         definition.
25842         (PSEUDO_END): Likewise.
25843         [IS_IN (libpthread)] (CENABLE): Likewise.
25844         [IS_IN (libpthread)] (CDISABLE): Likewise.
25845         [IS_IN (libc)] (CENABLE): Likewise.
25846         [IS_IN (libc)] (CENABLE): Likewise.
25847         [IS_IN (librt)] (CDISABLE): Likewise.
25848         [IS_IN (librt)] (CDISABLE): Likewise.
25849         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25850         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
25851         definition.
25852         (PSEUDO_END): Likewise.
25853         [IS_IN (libpthread)] (CENABLE): Likewise.
25854         [IS_IN (libpthread)] (CDISABLE): Likewise.
25855         [IS_IN (libc)] (CENABLE): Likewise.
25856         [IS_IN (libc)] (CENABLE): Likewise.
25857         [IS_IN (librt)] (CDISABLE): Likewise.
25858         [IS_IN (librt)] (CDISABLE): Likewise.
25859         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25860         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
25861         definition.
25862         (PSEUDO_END): Likewise.
25863         [IS_IN (libpthread)] (CENABLE): Likewise.
25864         [IS_IN (libpthread)] (CDISABLE): Likewise.
25865         [IS_IN (libc)] (CENABLE): Likewise.
25866         [IS_IN (libc)] (CENABLE): Likewise.
25867         [IS_IN (librt)] (CDISABLE): Likewise.
25868         [IS_IN (librt)] (CDISABLE): Likewise.
25869         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25870         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
25871         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
25872         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
25873         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
25874         definition.
25875         (PSEUDO_END): Likewise.
25876         [IS_IN (libpthread)] (CENABLE): Likewise.
25877         [IS_IN (libpthread)] (CDISABLE): Likewise.
25878         [IS_IN (libc)] (CENABLE): Likewise.
25879         [IS_IN (libc)] (CENABLE): Likewise.
25880         [IS_IN (librt)] (CDISABLE): Likewise.
25881         [IS_IN (librt)] (CDISABLE): Likewise.
25882         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25883         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
25884         definition.
25885         (PSEUDO_END): Likewise.
25886         [IS_IN (libpthread)] (CENABLE): Likewise.
25887         [IS_IN (libpthread)] (CDISABLE): Likewise.
25888         [IS_IN (libc)] (CENABLE): Likewise.
25889         [IS_IN (libc)] (CENABLE): Likewise.
25890         [IS_IN (librt)] (CDISABLE): Likewise.
25891         [IS_IN (librt)] (CDISABLE): Likewise.
25892         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25894 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25896         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
25898 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
25900         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
25902 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
25904         [BZ #21982]
25905         * string/stratcliff.c (do_test): Declare size, nchars, inner,
25906         middle and outer with size_t instead of int.  Repleace %d and
25907         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
25908         "MAX (outer, nchars - 64)" to support unsigned outer and
25909         nchars.  Also exit loop when outer == 0.
25911 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25913         * include/fcntl.h (__fcntl_nocancel): Remove definition.
25914         * include/signal.h (__sigsuspend_nocancel): Likewise.
25915         * include/time.h (__nanosleep_nocancel): Likewise.
25916         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
25917         * login/utmp_file.c: Include non cancellable syscall header.
25918         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
25919         prototype.
25921 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
25923         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
25924         .byte sequences with AVX512F instructions.
25925         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
25926         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
25927         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
25928         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
25929         Likewise.
25930         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25931         Likewise.
25933 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25934             Steve Ellcey  <sellcey@cavium.com>
25936         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
25937         Use PTR_REG macro in cmp instruction.
25939 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25941         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
25942         Change the return type of the ifunc resolver to match the return
25943         type of the target function.
25945 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25947         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
25948         (preadv64): Likewise.
25949         (pwrite64(: Likewise.
25950         (pwritev64): Likewise.
25952         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
25953         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
25954         (LOAD_ARGS_0): Likewise.
25955         (LOAD_ARGS_1): Likewise.
25956         (LOAD_ARGS_2): Likewise.
25957         (LOAD_ARGS_3): Likewise.
25958         (LOAD_ARGS_4): Likewise.
25959         (LOAD_ARGS_5): Likewise.
25960         (LOAD_ARGS_6): Likewise.
25961         (LOAD_REGS_0): Likewise.
25962         (LOAD_REGS_1): Likewise.
25963         (LOAD_REGS_2): Likewise.
25964         (LOAD_REGS_3): Likewise.
25965         (LOAD_REGS_4): Likewise.
25966         (LOAD_REGS_5): Likewise.
25967         (LOAD_REGS_6): Likewise.
25968         (ASM_ARGS_0): Likewise.
25969         (ASM_ARGS_1): Likewise.
25970         (ASM_ARGS_2): Likewise.
25971         (ASM_ARGS_3): Likewise.
25972         (ASM_ARGS_4): Likewise.
25973         (ASM_ARGS_5): Likewise.
25974         (ASM_ARGS_6): Likewise.
25975         (LOAD_ARGS_TYPES_1): Likewise.
25976         (LOAD_ARGS_TYPES_2): Likewise.
25977         (LOAD_ARGS_TYPES_3): Likewise.
25978         (LOAD_ARGS_TYPES_4): Likewise.
25979         (LOAD_ARGS_TYPES_5): Likewise.
25980         (LOAD_ARGS_TYPES_6): Likewise.
25981         (LOAD_REGS_TYPES_1): Likewise.
25982         (LOAD_REGS_TYPES_2): Likewise.
25983         (LOAD_REGS_TYPES_3): Likewise.
25984         (LOAD_REGS_TYPES_4): Likewise.
25985         (LOAD_REGS_TYPES_5): Likewise.
25986         (LOAD_REGS_TYPES_6): Likewise.
25987         (TYPEFY): New define.
25988         (ARGIFY): Likewise.
25989         (internal_syscall0): Likewise.
25990         (internal_syscall1): Likewise.
25991         (internal_syscall2): Likewise.
25992         (internal_syscall3): Likewise.
25993         (internal_syscall4): Likewise.
25994         (internal_syscall5): Likewise.
25995         (internal_syscall6): Likewise.
25996         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
25997         (INTERNAL_SYSCALL_NCS): Remove define.
25998         (internal_syscall1): Add define.
26000 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26002         * math/w_remainder_compat.c: Remove duplicate inclusion of
26003         math-svid-compat.h.
26004         * math/w_remainderf_compat.c: Likewise.
26005         * math/w_remainderl_compat.c: Likewise.
26007 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26009         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26011 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
26013         [BZ #21684]
26014         * math/tgmath.h (__floating_type): Simplify definitions.
26015         (__real_integer_type): New macro.
26016         (__complex_integer_type): Likewise.
26017         (__expr_is_real): Likewise.
26018         (__tgmath_real_type_sub): Update comment to describe handling of
26019         complex types.
26020         (__tgmath_complex_type_sub): New macro.
26021         (__tgmath_complex_type): Likewise.
26022         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26023         (__TGMATH_CF128): Use __expr_is_real.
26024         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
26025         __expr_is_real.
26026         (__TGMATH_BINARY_REAL_IMAG): Likewise.
26027         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
26028         * math/gen-tgmath-tests.py (Type.create_type): Create complex
26029         integer types.
26031 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26033         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
26034         macro.
26035         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
26036         alias.
26037         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
26038         Likewise.
26040         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
26041         nanosleep_not_cancel with __nanosleep_nocancel.
26042         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
26043         (__nanosleep_nocancel): New macro.
26044         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
26045         function.
26046         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
26047         macro.
26048         (__nanosleep_nocancel): New prototype.
26050         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
26051         pause_not_cancel with __pause_nocancel.
26052         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
26053         (__pause_nocancel): New macro.
26054         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
26055         macro.
26056         (__pause_nocancel): New prototype.
26057         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
26059 2017-08-22  Martin Sebor  <msebor@redhat.com>
26061         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
26062         to return a pointer to the same type as the target function.
26064 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
26066         [BZ #18822]
26067         [BZ #21986]
26068         * include/printf.h (__printf_fphex): Add attribute_hidden.
26069         (__guess_grouping): New prototype.
26070         * stdio-common/printf_fp.c (__guess_grouping): Removed.
26071         * stdio-common/reg-printf.c (__register_printf_specifier): Add
26072         libc_hidden_proto and libc_hidden_def.
26073         * stdlib/strfmon_l.c (__guess_grouping): Removed.
26074         (__vstrfmon_l): Remove the third argument passed to
26075         __guess_grouping.
26077 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26079         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
26080         definition for issignaling that does not rely on __MATH_TG,
26081         since __MATH_TG uses __builtin_types_compatible_p, which is only
26082         available in C mode.
26083         (CFLAGS-test-math-issignaling.cc): New variable.
26084         * math/Makefile [CXX] (tests): Add test-math-issignaling.
26085         * math/test-math-issignaling.cc: New test for C++ implementation
26086         of type-generic issignaling.
26087         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
26088         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
26089         options of test-math-issignaling on powerpc64le.
26091 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
26093         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26094         building libc.a.
26095         (hidden_proto): Likewise.
26096         (hidden_tls_proto): Likewise.
26097         (__hidden_proto): Likewise.
26099 2017-08-22  Florian Weimer  <fweimer@redhat.com>
26101         math: Statically link tests of internal functionality.
26102         * math/Makefile (tests): Remove atest-exp, atest-sincos,
26103         atest-exp2.
26104         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
26105         (gmp-objs): Remove assignment.
26106         (atest-exp, atest-sincos, atest-exp2): Remove targets.
26108 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
26110         [BZ #21987]
26111         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
26112         and copy to ...
26113         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
26114         ... here.
26115         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
26116         ... and here.
26118         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
26119         variable definitions above inclusion of ../Rules.
26121 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
26123         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
26124         case calling __builtin_unreachable.
26126 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26128         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
26129         __waitpid_nocancel.
26130         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
26131         (__waitpid_nocancel): New macro.
26132         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
26133         macro.
26134         (__waitpid_nocancel): Replace macro with a function.
26135         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
26136         function.
26138         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
26139         __fcntl_nocancel.
26140         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
26141         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
26143         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
26144         __writev_nocancel_nostatus.
26145         (write_call_graph): Likewise.
26146         (write_bb_counts): Likewise.
26147         * resolv/herror.c (herror): Likewise.
26148         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
26149         macro.
26150         (__writev_nocancel_nostatus): New macro.
26151         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
26152         Remove macro.
26153         (__writev_nocancel_nostatus): New function.
26155 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
26157         Revert:
26158         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26160         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26161         building libc.a.
26162         (hidden_proto): Likewise.
26163         (hidden_tls_proto): Likewise.
26164         (__hidden_proto): Likewise.
26166         [BZ #21973]
26167         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
26168         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
26169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
26170         Likewise.
26171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
26172         Likewise.
26173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
26174         Likewise.
26175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
26176         Likewise.
26177         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
26178         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
26179         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
26180         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
26181         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26182         GLIBC_2.0 sqrtl symbol.
26184         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
26185         [__USE_MISC] (_LIB_VERSION): Likewise.
26186         [__USE_MISC] (struct exception): Likewise.
26187         [__USE_MISC] (matherr): Likewise.
26188         [__USE_MISC] (DOMAIN): Likewise.
26189         [__USE_MISC] (SING): Likewise.
26190         [__USE_MISC] (OVERFLOW): Likewise.
26191         [__USE_MISC] (UNDERFLOW): Likewise.
26192         [__USE_MISC] (TLOSS): Likewise.
26193         [__USE_MISC] (PLOSS): Likewise.
26194         [__USE_MISC] (HUGE): Likewise.
26195         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
26196         * math/math-svid-compat.h: New file.
26197         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
26198         and matherrl.
26199         * include/math.h [!_ISOMAC] (__matherr): Remove.
26200         * manual/arith.texi (FP Exceptions): Do not document matherr.
26201         * math/Makefile (tests): Change test-matherr to test-matherr-3.
26202         (tests-internal): New variable.
26203         (install-lib): Do not add libieee.a.
26204         (non-lib.a): Likewise.
26205         (extra-objs): Do not add libieee.a and ieee-math.o.
26206         (CPPFLAGS-s_lib_version.c): Remove variable.
26207         ($(objpfx)libieee.a): Remove rule.
26208         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
26209         * math/ieee-math.c: Remove.
26210         * math/libm-test-support.c (matherr): Remove.
26211         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
26212         and license notices.  Include <math-svid-compat.h> and
26213         <shlib-compat.h>.
26214         (matherr): Undefine as macro.  Use compat_symbol_reference.
26215         (_LIB_VERSION): Likewise.
26216         * math/test-matherr-2.c: New file.
26217         * math/test-matherr-3.c: Likewise.
26218         * sysdeps/generic/math_private.h (__kernel_standard): Remove
26219         declaration.
26220         (__kernel_standard_f): Likewise.
26221         (__kernel_standard_l): Likewise.
26222         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
26223         <math_private.h>.  Include <math-svid-compat.h>.
26224         (_LIB_VERSION): Undefine as macro.
26225         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
26226         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
26227         [LIBM_SVID_COMPAT], use compat_symbol.
26228         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
26229         <math_private.h>.  Include <math-svid-compat.h>.
26230         (matherr): Undefine as macro.
26231         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
26232         compat_symbol.
26233         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
26234         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
26235         compat_symbol_reference.
26236         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
26237         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
26238         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
26239         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
26240         (MATHERR_D): Remove declaration.
26241         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
26242         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
26243         [LIBM_BUILD] (pmatherrf): Likewise.
26244         [LIBM_BUILD] (pmatherr): Likewise.
26245         [LIBM_BUILD] (pmatherrl): Likewise.
26246         (DOMAIN): Likewise.
26247         (SING): Likewise.
26248         (OVERFLOW): Likewise.
26249         (UNDERFLOW): Likewise.
26250         (TLOSS): Likewise.
26251         (PLOSS): Likewise.
26252         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
26253         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
26254         compat_symbol.
26255         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
26256         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
26257         compat_symbol.
26258         * math/lgamma-compat.h: Include <math-svid-compat.h>.
26259         * math/w_acos_compat.c: Likewise.
26260         * math/w_acosf_compat.c: Likewise.
26261         * math/w_acosh_compat.c: Likewise.
26262         * math/w_acoshf_compat.c: Likewise.
26263         * math/w_acoshl_compat.c: Likewise.
26264         * math/w_acosl_compat.c: Likewise.
26265         * math/w_asin_compat.c: Likewise.
26266         * math/w_asinf_compat.c: Likewise.
26267         * math/w_asinl_compat.c: Likewise.
26268         * math/w_atan2_compat.c: Likewise.
26269         * math/w_atan2f_compat.c: Likewise.
26270         * math/w_atan2l_compat.c: Likewise.
26271         * math/w_atanh_compat.c: Likewise.
26272         * math/w_atanhf_compat.c: Likewise.
26273         * math/w_atanhl_compat.c: Likewise.
26274         * math/w_cosh_compat.c: Likewise.
26275         * math/w_coshf_compat.c: Likewise.
26276         * math/w_coshl_compat.c: Likewise.
26277         * math/w_exp10_compat.c: Likewise.
26278         * math/w_exp10f_compat.c: Likewise.
26279         * math/w_exp10l_compat.c: Likewise.
26280         * math/w_exp2_compat.c: Likewise.
26281         * math/w_exp2f_compat.c: Likewise.
26282         * math/w_exp2l_compat.c: Likewise.
26283         * math/w_fmod_compat.c: Likewise.
26284         * math/w_fmodf_compat.c: Likewise.
26285         * math/w_fmodl_compat.c: Likewise.
26286         * math/w_hypot_compat.c: Likewise.
26287         * math/w_hypotf_compat.c: Likewise.
26288         * math/w_hypotl_compat.c: Likewise.
26289         * math/w_j0_compat.c: Likewise.
26290         * math/w_j0f_compat.c: Likewise.
26291         * math/w_j0l_compat.c: Likewise.
26292         * math/w_j1_compat.c: Likewise.
26293         * math/w_j1f_compat.c: Likewise.
26294         * math/w_j1l_compat.c: Likewise.
26295         * math/w_jn_compat.c: Likewise.
26296         * math/w_jnf_compat.c: Likewise.
26297         * math/w_jnl_compat.c: Likewise.
26298         * math/w_lgamma_main.c: Likewise.
26299         * math/w_lgamma_r_compat.c: Likewise.
26300         * math/w_lgammaf_main.c: Likewise.
26301         * math/w_lgammaf_r_compat.c: Likewise.
26302         * math/w_lgammal_main.c: Likewise.
26303         * math/w_lgammal_r_compat.c: Likewise.
26304         * math/w_log10_compat.c: Likewise.
26305         * math/w_log10f_compat.c: Likewise.
26306         * math/w_log10l_compat.c: Likewise.
26307         * math/w_log2_compat.c: Likewise.
26308         * math/w_log2f_compat.c: Likewise.
26309         * math/w_log2l_compat.c: Likewise.
26310         * math/w_log_compat.c: Likewise.
26311         * math/w_logf_compat.c: Likewise.
26312         * math/w_logl_compat.c: Likewise.
26313         * math/w_pow_compat.c: Likewise.
26314         * math/w_powf_compat.c: Likewise.
26315         * math/w_powl_compat.c: Likewise.
26316         * math/w_remainder_compat.c: Likewise.
26317         * math/w_remainderf_compat.c: Likewise.
26318         * math/w_remainderl_compat.c: Likewise.
26319         * math/w_scalb_compat.c: Likewise.
26320         * math/w_scalbf_compat.c: Likewise.
26321         * math/w_scalbl_compat.c: Likewise.
26322         * math/w_sinh_compat.c: Likewise.
26323         * math/w_sinhf_compat.c: Likewise.
26324         * math/w_sinhl_compat.c: Likewise.
26325         * math/w_sqrt_compat.c: Likewise.
26326         * math/w_sqrtf_compat.c: Likewise.
26327         * math/w_sqrtl_compat.c: Likewise.
26328         * math/w_tgamma_compat.c: Likewise.
26329         * math/w_tgammaf_compat.c: Likewise.
26330         * math/w_tgammal_compat.c: Likewise.
26331         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
26332         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
26333         * sysdeps/ieee754/k_standard.c: Likewise.
26334         * sysdeps/ieee754/k_standardf.c: Likewise.
26335         * sysdeps/ieee754/k_standardl.c: Likewise.
26336         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
26337         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
26338         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
26339         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
26340         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
26341         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
26342         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
26343         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
26344         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
26345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
26346         Likewise.
26347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
26348         Likewise.
26349         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
26350         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
26351         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
26352         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
26354 2017-08-21  Florian Weimer  <fweimer@redhat.com>
26356         [BZ #21864]
26357         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
26358         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
26359         Move before inclusion of ../Rules.
26361 2017-08-21  Florian Weimer  <fweimer@redhat.com>
26363         [BZ #21972]
26364         * assert/assert.h (assert): Use static_cast (bool) for C++.
26365         Use the ternary operator in the warning branch for GNU C.
26366         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
26367         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
26368         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
26369         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
26370         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
26372 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26374         [BZ #18822]
26375         * sysdeps/unix/sysv/linux/x86_64/init-first.c
26376         (__syscall_clock_gettime): Add attribute_hidden.
26377         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
26378         (__start_context): Likewise.
26380 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26382         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26383         building libc.a.
26384         (hidden_proto): Likewise.
26385         (hidden_tls_proto): Likewise.
26386         (__hidden_proto): Likewise.
26388 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26390         * include/libc-symbols.h (attribute_hidden): Enable hidden
26391         visibility in libc.a compiled with PIE.
26393 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26395         [BZ #18822]
26396         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
26397         Add attribute_hidden.
26399 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26401         [BZ #21864]
26402         * Makerules (all-nonlib): Add $(others-extras).
26403         * catgets/Makefile (others-extras): New.
26404         * elf/Makefile (others-extras): Likewise.
26405         * nss/Makefile (others-extras): Likewise.
26407 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26409         [BZ #18822]
26410         * csu/libc-start.c (__libc_multiple_libcs): Removed.
26411         * elf/dl-open.c: Include <libc-internal.h>.
26412         (__libc_multiple_libcs): Removed.
26413         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
26414         <hp-timing.h>.
26415         * include/libc-internal.h (__libc_multiple_libcs): New.
26416         * misc/sbrk.c: Include <libc-internal.h>.
26417         (__libc_multiple_libcs): Removed.
26419 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
26421         [BZ #18822]
26422         * grp/initgroups.c (__nss_group_database): Removed.
26423         (__nss_initgroups_database): Likewise.
26424         * nscd/gai.c (__nss_hosts_database): Likewise.
26425         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
26426         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
26427         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
26428         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
26429         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
26430         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
26431         attribute_hidden.
26432         * nss/nsswitch.c (__nss_database_custom): Define only if
26433         USE_NSCD is defined.
26434         (__nss_configure_lookup): Use __nss_database_custom only if
26435         USE_NSCD is defined.
26436         * nss/nsswitch.h (__nss_database_custom): Declare only if
26437         USE_NSCD is defined.  Add attribute_hidden.
26438         (__nss_setent): Add attribute_hidden.
26439         (__nss_endent): Likewise.
26440         (__nss_getent_r): Likewise.
26441         (__nss_getent): Likewise.
26442         (DEFINE_DATABASE): Declare __nss_##arg##_database.
26444 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26446         [BZ #18822]
26447         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
26448         libc_hidden_proto and libc_hidden_def.
26450 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26452         [BZ #18822]
26453         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
26454         Add libc_hidden_proto.
26455         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
26456         Add libc_hidden_def.
26458 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26460         [BZ #21974]
26461         * gmon/Makefile (routines): Remove bb_init_func and
26462         bb_exit_func.
26463         (elide-routines.os): Removed.
26464         * gmon/bb_exit_func.c: Likewise.
26465         * gmon/bb_init_func.c: Likewise.
26466         * include/sys/gmon.h (__bb): Likewise.
26467         (__bb_init_func): Likewise.
26468         (__bb_exit_func): Likewise.
26469         * sysdeps/alpha/bb_init_func.S: Likewise.
26471 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
26473         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
26474         * include/setjmp.h (____longjmp_chk): Here.  Add
26475         attribute_hidden.
26477 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
26479         [BZ #18822]
26480         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
26481         attribute_hidden.
26482         (__strspn_sse2): Likewise.
26484 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26486         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
26487         (close_not_cancel_no_status): Likewise.
26488         (__close_nocancel): New macro.
26489         (__close_nocancel_nostatus): Likewise.
26490         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
26491         macro.
26492         (close_not_cancel): Likewise.
26493         (close_not_cancel_no_status): Likewise.
26494         (__close_nocancel): New prototype.
26495         (__close_nocancel_nostatus): New function.
26496         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
26497         * catgets/open_catalog.c (__open_catalog): Replace
26498         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
26499         * gmon/gmon.c (write_gmon): Likewise.
26500         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
26501         * intl/loadmsgcat.c (close): Likewise.
26502         * io/ftw.c (open_dir_stream): Likewise.
26503         (ftw_startup): Likewise.
26504         * libio/fileops.c (_IO_file_open): Likewise.
26505         (_IO_file_close_mmap): Likewise.
26506         (_IO_file_close): Likewise.
26507         * libio/iopopen.c (_IO_dup2): Likewise.
26508         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
26509         * locale/loadlocale.c (_nl_load_locale): Likewise.
26510         * login/utmp_file.c (pututline_file): Likewise.
26511         (endutent_file): Likewise.
26512         * misc/daemon.c (daemon): Likewise.
26513         * nscd/nscd_getai.c (__nscd_getai): Likewise.
26514         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
26515         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
26516         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
26517         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
26518         * nscd/nscd_helper.c (open_socket): Likewise.
26519         (__nscd_open_socket): Likewise.
26520         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
26521         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
26522         (__nscd_innetgr): Likewise.
26523         * nss/nss_db/db-open.c (internal_setent): Likewise.
26524         * resolv/res-close.c (__res_iclose): Likewise.
26525         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
26526         * sysdeps/posix/closedir.c (__closedir): Likewise.
26527         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
26528         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
26529         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
26530         (opendir_tail): Likewise.
26531         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
26532         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
26533         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
26534         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
26535         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
26536         (gethostid): Likewise.
26537         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
26538         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26539         Likewise.
26540         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
26541         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
26542         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
26543         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
26544         Likewise.
26545         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
26546         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
26547         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
26548         Likewise.
26549         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
26550         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
26551         Likewise.
26552         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
26553         Likewise.
26554         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
26555         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
26556         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
26557         __close_nocancel.
26559         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
26560         (openat_not_cancel_3): Likewise.
26561         (openat64_not_cancel_3): Likewise).
26562         (openat_not_cancel_3): Likewise).
26563         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
26564         macro.
26565         (openat_not_cancel_3): Likewise.
26566         (openat64_not_cancel): Likewise.
26567         (openat64_not_cancel_3): Likewise.
26568         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
26569         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
26570         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
26571         __open{64}_nocancel.
26572         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
26573         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
26574         * sysdeps/posix/opendir.c (__opendirat): Likewise.
26576 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
26578         [BZ #18822]
26579         * include/argz.h (__argz_create_sep): New function prototype.
26580         (__argz_append): Likewise.
26581         (__argz_add): Likewise.
26582         (__argz_add_sep): Likewise.
26583         (__argz_delete): Likewise.
26584         (__argz_insert): Likewise.
26585         (__argz_replace): Likewise.
26586         * string/argz.h (__argz_create_sep): Removed.
26587         (__argz_append): Likewise.
26588         (__argz_add): Likewise.
26589         (__argz_add_sep): Likewise.
26590         (__argz_delete): Likewise.
26591         (__argz_insert): Likewise.
26592         (__argz_replace): Likewise.
26594 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
26596         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
26597         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
26598         (GNU_PROPERTY_STACK_SIZE): Likewie.
26599         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
26600         (GNU_PROPERTY_LOPROC): Likewise.
26601         (GNU_PROPERTY_HIPROC): Likewise.
26602         (GNU_PROPERTY_LOUSER): Likewise.
26603         (GNU_PROPERTY_HIUSER): Likewise.
26604         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
26605         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
26606         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
26607         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
26608         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
26609         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
26610         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
26611         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
26612         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
26613         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
26614         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
26615         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
26616         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
26617         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
26618         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
26619         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
26620         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
26621         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
26622         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
26623         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
26624         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
26625         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
26626         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
26628 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26630         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
26631         in C++ mode.
26633 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26635         [BZ #21930]
26636         * math/math.h (isinf): Check if in C or C++ mode before using
26637         __builtin_types_compatible_p, since this is a C mode feature.
26639 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26641         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
26642         (__write_nocancel): New macro.
26643         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
26644         Rewrite as a function prototype.
26645         (write_not_cancel): Remove macro.
26646         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
26647         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
26648         (write_gmon): Likewise.
26649         * libio/fileops.c (_IO_new_file_write): Likewise.
26650         * login/utmp_file.c (pututline_file): Likewise.
26651         (updwtmp_file): Likewise.
26652         * stdio-common/psiginfo.c (psiginfo): Likewise.
26653         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
26654         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
26655         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
26656         Likewise.
26657         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
26658         Likewise.
26660         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
26661         (__read_nocancel): New macro.
26662         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
26663         __read_nocancel.
26664         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
26665         macro.
26666         (__read_nocancel): New prototype.
26667         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
26668         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
26669         with __read_nocancel.
26670         * intl/loadmsgcat.c (read): Likewise.
26671         * libio/fileops.c (_IO_file_read): Likewise.
26672         * locale/loadlocale.c (_nl_load_locale): Likewise.
26673         * login/utmp_file.c (getutent_r_file): Likewise.
26674         (internal_getut_r): Likewise.
26675         (getutline_r_file): Likewise.
26676         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
26677         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
26678         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
26679         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26680         Likewise.
26681         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
26682         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
26683         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
26684         Likewise.
26685         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
26686         Likewise.
26687         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
26688         Likewise.
26689         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
26690         Likewise.
26691         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
26693 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
26695         [BZ #21966]
26696         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
26697         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
26698         usable.
26700 2017-08-17  DJ Delorie  <dj@redhat.com>
26702         * bug17079.c: Update to new test harness.
26703         * test-digits-dots.c: Likewise.
26704         * test-netdb.c: Likewise.
26705         * tst-field.c: Likewise.
26706         * tst-nss-getpwent.c: Likewise.
26707         * tst-nss-static.c: Likewise.
26708         * tst-nss-test1.c: Likewise.
26709         * tst-nss-test2.c: Likewise.
26710         * tst-nss-test3.c: Likewise.
26711         * tst-nss-test4.c: Likewise.
26712         * tst-nss-test5.c: Likewise.
26714 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26716         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
26717         (open_not_cancel_2): Likewise.
26718         (open_nocancel): New macro.
26719         (open64_nocancel): Likewise.
26720         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
26721         (open_not_cancel_2): Likewise.
26722         (__open_nocancel): New prototype.
26723         (__open64_nocancel): Likewise.
26724         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
26725         __open_nocancel.
26726         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
26727         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
26728         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
26729         with __open_nocancel.
26730         * csu/check_fds.c (check_one_fd): Likewise.
26731         * gmon/gmon.c (write_gmon): Likewise.
26732         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
26733         * intl/loadmsgcat.c (open): Likewise.
26734         * libio/fileops.c (_IO_file_open): Likewise.
26735         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
26736         * locale/loadlocale.c (_nl_load_locale): Likewise.
26737         * login/utmp_file.c (setutent_file): Likewise.
26738         * misc/daemon.c (daemon): Likewise.
26739         * nss/nss_db/db-open.c (internal_setent): Likewise.
26740         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
26741         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
26742         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
26743         (__opendir): Likewise.
26744         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
26745         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
26746         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
26747         (gethostid): Likewise.
26748         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
26749         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26750         Likewise.
26751         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
26752         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
26753         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
26754         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
26755         Likewise.
26756         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
26757         Likewise.
26758         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
26759         Likewise.
26760         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
26761         Likewise.
26762         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
26763         Likewise.
26764         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
26765         Likewise.
26766         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
26767         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
26769 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
26771         * benchtests/bench-skeleton.c (main): Add support for
26772         latency benchmarking.
26773         * benchtests/scripts/bench.py: Add support for latency benchmarking.
26775 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
26777         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
26778         the startup object.
26780 2017-08-17  Florian Weimer  <fweimer@redhat.com>
26782         * include/sys/socket.h (__opensock): Remove internal_function.
26783         * socket/opensock.c (__opensock): Likewise.
26784         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
26786 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
26788         [BZ #21944]
26789         * signal/bits/types/__sigval_t.h: New file.
26790         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
26791         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
26792         and define sigval_t using __sigval_t.
26793         * include/bits/types/__sigval_t.h: New file.
26794         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
26795         instead of <bits/types/__sigval_t.h>.
26796         (struct sigevent): Use __sigval_t instead of sigval_t.
26797         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
26798         instead of <bits/types/__sigval_t.h>.
26799         (siginfo_t): Use __sigval_t instead of sigval_t.
26800         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
26801         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
26802         (struct sigevent): Use __sigval_t instead of sigval_t.
26803         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
26804         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
26805         (siginfo_t): Use __sigval_t instead of sigval_t.
26806         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
26808 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
26810         * NEWS: Remove "[Add new features here]" for 2.27.
26812 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
26814         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
26815         libc.so.
26817 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
26819         * NEWS: Mention x86-64 FMA optimization.
26821 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
26823         [BZ #21912]
26824         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26825         Add e_expf-fma.
26826         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
26827         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
26828         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
26830 2017-08-16  Andreas Schwab  <schwab@suse.de>
26832         [BZ #16750]
26833         CVE-2009-5064
26834         * elf/ldd.bash.in: Never run file directly.
26836 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
26838         [BZ #21955]
26839         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
26840         (L(SP_INF_0)): Likewise.
26842 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26844         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
26845         run-built-tests.
26847 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26849         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
26850         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
26851         BROKEN_THREAD_SIGNALS code.
26852         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
26853         request_list): Remove caller_pid member used for
26854         BROKEN_THREAD_SIGNALS.
26855         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
26856         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
26857         Remove BROKEN_THREAD_SIGNALS support.
26858         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
26859         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
26861 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26863         * gmon/Makefile (tests): Add tst-gmon.
26864         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
26865         Set.
26866         (tests-special): Add tst-gmon-prof.out.
26867         (tst-gmon.out): Depend on clean-tst-gmon-data.
26868         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
26869         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
26870         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
26871         startup object.
26872         * aclocal.m4 (GPROF): Set and substitute.
26873         * config.amke.in (GPROF): Set.
26874         * configure: Regenerate.
26876 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
26878         * elf/elf.h A (NT_PPC_TAR): New macro.
26879         (NT_PPC_PPR): Likewise.
26880         (NT_PPC_DSCR): Likewise.
26881         (NT_PPC_EBB): Likewise.
26882         (NT_PPC_PMU): Likewise.
26883         (NT_PPC_TM_CGPR): Likewise.
26884         (NT_PPC_TM_CFPR): Likewise.
26885         (NT_PPC_TM_CVMX): Likewise.
26886         (NT_PPC_TM_CVSX): Likewise.
26887         (NT_PPC_TM_SPR): Likewise.
26888         (NT_PPC_TM_CTAR): Likewise.
26889         (NT_PPC_TM_CPPR): Likewise.
26890         (NT_PPC_TM_CDSCR): Likewise.
26892 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26894         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
26895         regparm (2) instead of internal_function.
26896         (_MCOUNT_DECL): Adjust.
26898 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
26900         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
26901         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
26903 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
26905         * conform/data/sys/wait.h-data (si_value): Do not expect for
26906         XPG42.
26908 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26910         [BZ #21962]
26911         NSS: Create stubs for accidentally exported lookup functions.
26912         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
26913         Remove declaration.
26914         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
26915         (ether_hostton): Call __nss_ethers_lookup2 instead.
26916         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
26917         (ether_ntohost): Call __nss_ethers_lookup2 instead.
26918         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
26919         (setup): Call __nss_netgroup_lookup2 instead.
26920         * nss/Makefile (routines): Add compat-lookup.
26921         * nss/Versions (GLIBC_2.27): Add symbol version.
26922         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
26923         (DB_COMPAT_FCT): Remove.
26924         * nss/compat-lookup.c: New file.
26925         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
26926         from databases.def.
26927         * nss/service-lookup.c (NO_COMPAT): Remove definition.
26928         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
26929         (netname2user): Call __nss_publickey_lookup2 instead.
26930         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
26931         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
26932         instead.
26934 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26935             Sergei Trofimovich  <slyfox@inbox.ru>
26937         [BZ #21908]
26938         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
26939         Rename to MMAP2_PAGE_UNIT.
26940         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
26941         __OFF_T_MATCHES_OFF64_T is not defined.
26942         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
26943         uint64_t.
26944         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
26945         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
26947 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26949         i386: Do not set internal_function.
26950         * config.h.in (USE_REGPARMS, internal_function): Remove.
26951         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
26952         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
26954 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26956         * elf/dl-init.c (_dl_init): Remove internal_function.
26957         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
26958         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
26960 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26962         * elf/rtld.c (_dl_start): Remove internal_function.
26963         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
26964         _dl_start.
26966 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26968         * elf/dl-fini.c (_dl_fini): Remove internal_function
26969         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26971 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
26973         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
26974         (bit_cpu_SHSTK): Likewise.
26975         (index_cpu_IBT): Likewise.
26976         (index_cpu_SHSTK): Likewise.
26977         (reg_IBT): Likewise.
26978         (reg_SHSTK): Likewise.
26979         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26980         Handle index_cpu_IBT and index_cpu_SHSTK.
26982 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
26984         [BZ #19982]
26985         * po/fr.po: Fix spelling mistake.
26987 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26989         * elf/dl-addr.c (_dl_addr): Remove internal_function.
26990         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
26991         (_dl_catch_error, _dl_receive_error): Likewise.
26992         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
26993         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
26994         (_dl_deallocate_tls): Likewise.
26995         * include/dlfcn.h (_dl_addr): Likewise.
26996         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
26997         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
26998         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
26999         Likewise.
27001 2017-08-13  Florian Weimer  <fweimer@redhat.com>
27003         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
27004         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
27005         internal_function.
27006         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
27008 2017-08-13  Florian Weimer  <fweimer@redhat.com>
27010         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
27011         internal_function.
27012         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
27013         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
27014         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
27015         internal_function from _dl_make_stack_executable_hook member.
27016         (_dl_make_stack_executable): Remove internal_function.
27017         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
27018         Likewise.
27019         * sysdeps/unix/sysv/linux/dl-execstack.c
27020         (_dl_make_stack_executable): Likewise.
27022 2017-08-13  Florian Weimer  <fweimer@redhat.com>
27024         * sysdeps/unix/sysv/linux/netlinkaccess.h
27025         (__netlink_assert_response): Remove internal_function.
27026         * sysdeps/unix/sysv/linux/netlink_assert_response.c
27027         (__netlink_assert_response): Likewise.
27029 2017-08-13  Florian Weimer  <fweimer@redhat.com>
27031         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
27032         internal_function.
27033         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
27035 2017-08-13  Florian Weimer  <fweimer@redhat.com>
27037         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
27038         internal_function.
27039         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
27040         * inet/netgroup.h (__internal_setnetgrent)
27041         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
27042         * inet/getnetgrent_r.c (__internal_setnetgrent)
27043         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
27044         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
27045         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
27046         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
27047         * nss/nsswitch.h (db_lookup_function): Likewise.
27049 2017-08-13  Florian Weimer  <fweimer@redhat.com>
27051         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
27052         Remove internal_function.
27053         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
27054         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
27055         message argument on the stack.
27056         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
27057         Likeweise.
27059 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
27061         Adapt test case data to the changes in the thousands
27062         separators.
27064         [BZ #20756]
27065         * localedata/tst-langinfo.sh: Adapt test case data.
27066         * stdlib/tst-strfmon_l.c: Likewise.
27067         * stdlib/tst-strtod4.c: Likewise.
27068         * stdlib/tst-strtod5i.c: Likewise.
27070 2017-08-11  Florian Weimer  <fweimer@redhat.com>
27072         [BZ #21242]
27073         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
27074         Suppress pedantic warning resulting from statement expression.
27075         (__ASSERT_FUNCTION): Add missing __extension__.
27077 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27079         * benchtests/bench-memmove-large.c: Print output in JSON
27080         format.
27081         * benchtests/bench-memmove.c: Likewise.
27083         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
27084         * benchtests/bench-memchr.c (do_one_test): Likewise.
27085         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
27086         * benchtests/bench-memcpy.c (do_one_test): Likewise.
27087         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
27088         * benchtests/bench-memmove.c (do_one_test): Likewise.
27089         * benchtests/bench-memset-large.c (do_one_test): Likewise.
27090         * benchtests/bench-memset.c (do_one_test): Likewise.
27091         * benchtests/bench-string.h (test_init): Remove memsets.
27093 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
27095         * manual/lang.texi
27096         (Computing the Width of an Integer Data Type): Rename section to
27097         "Width of an Integer Type".  Remove inaccurate statement regarding
27098         lack of C language facilities for determining width of integer
27099         types, and reorder content to improve flow and context of
27100         discussion.
27102 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
27104         * lang.texi (va_copy): Change standard from ISO to C99.
27105         (__va_copy): Add standard and header annotation.
27106         Update description for clarity of origins and current use.
27108 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
27110         [BZ #21941]
27111         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
27112         xssqrtqp requires operands to be in Vector Registers
27113         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
27114         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
27115         (__ieee754_sqrtf128): Likewise.
27117 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
27119         * sysdeps/aarch64/memcmp.S (memcmp):
27120         Rewrite of optimized memcmp.
27122 2017-08-10  Florian Weimer  <fweimer@redhat.com>
27124         Introduce ld.so exceptions.
27125         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
27126         (_dl_exception_create, _dl_exception_create_format)
27127         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
27128         (_dl_catch_exception): Declare.
27129         (_dl_catch_error): Update comment.
27130         * elf/dl-error-skeleton.c (struct catch): Replace objname,
27131         errstring, malloced members with exception member.
27132         (_dl_out_of_memory): Remove.
27133         (fatal_error): New function, extracted from _dl_signal_error.
27134         (_dl_signal_exception, _dl_signal_cexception): New functions.
27135         (_dl_signal_error): Call _dl_exception_create to allocate an
27136         exception object.
27137         (_dl_catch_exception): New function, based on _dl_catch_error.
27138         (_dl_catch_error): Implement using _dl_catch_exception.
27139         * elf/dl-exception.c: New file.
27140         * elf/Makefile (dl-routines): Add dl-exception.
27141         (elide-routines.os): Likewise.
27142         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
27143         _dl_exception_create_format, _dl_exception_free.
27144         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
27145         _dl_signal_exception.
27146         * elf/dl-lookup.c (make_string): Remove.
27147         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
27148         _dl_signal_cexception, _dl_exception_free.
27149         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
27150         _dl_signal_exception.
27151         * elf/dl-sym.c (do_sym): Likewise.
27152         * elf/dl-version.c (make_string): Remove.
27153         (match_symbol): Use _dl_exception_create_format,
27154         _dl_signal_cexception, _dl_exception_free.
27155         (_dl_check_map_versions): Likewise.
27156         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
27157         _dl_catch_exception.
27158         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
27159         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
27160         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
27161         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
27162         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
27163         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
27164         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
27165         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
27166         Likewise.
27167         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
27168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
27169         (ld.so): Likewise.
27170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
27171         (ld.so): Likewise.
27172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
27173         Likewise.
27174         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
27175         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
27176         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
27177         Likewise.
27178         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
27179         Likewise.
27180         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
27182 2017-08-10  Florian Weimer  <fweimer@redhat.com>
27184         * inet/net-internal.h (__inet6_scopeid_pton): Remove
27185         attribute_hidden, internal_function.
27186         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
27187         internal_function.
27189 2017-08-10  Florian Weimer  <fweimer@redhat.com>
27191         * malloc/malloc.c (get_max_fast): Reimplement as an inline
27192         function which calls __builtin_unreachable.
27194 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
27196         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
27197         Indian monetary formatting
27198         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
27199         test cases.
27201 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
27203         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
27204         Fix typo in comment.
27206         [BZ #21928]
27207         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
27208         PTRACE_SEIZE_DEVEL): Remove.
27209         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
27210         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
27211         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
27212         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
27213         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
27215 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
27217         * posix/bits/types.h (__qaddr_t): Remove.
27219         [BZ #21457]
27220         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
27221         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
27222         __glibc_reserved1.
27223         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
27224         (ucontext_t): Use __ctx with uc_flags.
27225         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
27226         (__ctxt): Likewise.
27227         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
27228         __glibc_reserved1.
27229         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
27230         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
27231         __glibc_reserved1.
27232         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
27233         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
27234         __glibc_reserved1.
27235         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
27236         macro.
27237         (ucontext_t): Use __ctx with uc_flags.
27238         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
27239         (ucontext_t): Use __ctx with uc_flags.
27240         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
27241         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
27242         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
27243         (ucontext_t): Use __ctx with uc_flags.
27244         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
27245         undefine further down.
27246         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
27247         __glibc_reserved1.
27248         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
27249         undefine further down.
27250         (ucontext_t): Use __ctx with uc_flags.
27251         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
27252         undefine further down.
27253         (ucontext_t): Use __ctx with uc_flags.
27254         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
27255         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
27256         Rename uc_pad to __glibc_reserved1.
27257         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
27258         undefine further down.
27259         (ucontext_t): Use __ctx with uc_flags.
27260         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
27261         further down.
27262         (ucontext_t): Use __ctx with uc_flags.
27263         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
27264         __ctx with uc_flags.
27265         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
27266         (ucontext_t): Use __ctx with uc_flags.
27267         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
27268         __ctx with uc_flags.
27270 2017-08-09  Florian Weimer  <fweimer@redhat.com>
27272         [BZ #21932]
27273         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
27274         before early return.
27276 2017-08-09  Andreas Schwab  <schwab@suse.de>
27278         [BZ #21041]
27279         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
27280         renamed alias.
27282         [BZ #21041]
27283         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
27284         tst-compat-forwarder.
27285         (modules-names): Add tst-compat-forwarder-mod.
27286         ($(objpfx)tst-compat-forwarder): Depend on
27287         $(objpfx)tst-compat-forwarder-mod.so.
27288         * nptl/tst-compat-forwarder.c: New file.
27289         * nptl/tst-compat-forwarder-mod.c: New file.
27291 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27293         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
27294         comments.
27296         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
27297         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27298         memcpy_falkor.
27299         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
27300         Bump.
27301         (__libc_ifunc_impl_list): Add __memcpy_falkor.
27302         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
27303         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
27304         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27305         Add falkor.
27306         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
27307         New macro.
27309 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27311         [BZ #759]
27312         * manual/setjmp.texi (getcontex): Document uc_stack value
27313         compatibility differences.
27315 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
27317         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
27318         (old_malloc_hook): Likewise.
27319         (old_memalign_hook): Likewise.
27320         (old_realloc_hook): Likewise.
27321         (struct hdr): Likewise.
27322         (flood): Likewise.
27323         (freehook): Likewise.
27324         (mallochook): Likewise.
27325         (memalignhook): Likewise.
27326         (reallochook): Likewise.
27327         (mprobe): Likewise.
27328         * malloc/mtrace.c (mallwatch): Likewise.
27329         (tr_old_free_hook): Likewise.
27330         (tr_old_malloc_hook): Likewise.
27331         (tr_old_realloc_hook): Likewise.
27332         (tr_old_memalign_hook): Likewise.
27333         (tr_where): Likewise.
27334         (lock_and_info): Likewise.
27335         (tr_freehook): Likewise.
27336         (tr_mallochook): Likewise.
27337         (tr_reallochook): Likewise.
27338         (tr_memalignhook): Likewise.
27339         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
27340         * misc/mmap.c (__mmap): Likewise.
27341         * misc/mmap64.c (__mmap64): Likewise.
27342         * misc/mprotect.c (__mprotect): Likewise.
27343         * misc/msync.c (msync): Likewise.
27344         * misc/munmap.c (__munmap): Likewise.
27345         * posix/posix_madvise.c (posix_madvise): Likewise.
27346         * socket/send.c (__send): Likewise.
27347         * socket/sendto.c (__sendto): Likewise.
27348         * socket/setsockopt.c (__setsockopt): Likewise.
27349         * string/memcmp.c (__ptr_t): Remove macro.
27350         (MEMCMP): Use void * instead of ptr_t.
27351         * string/memrchr.c (__ptr_t): Remove macro.
27352         (__memrchr): Use void * instead of ptr_t.
27353         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
27354         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27355         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27356         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
27357         * sysdeps/mach/msync.c (msync): Likewise.
27358         * sysdeps/mach/munmap.c (__munmap): Likewise.
27359         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
27360         Likewise.
27361         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27362         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
27363         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
27364         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
27365         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
27366         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
27367         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
27368         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
27369         Likewise.
27370         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
27371         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
27372         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
27373         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
27374         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
27375         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
27376         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
27377         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
27378         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
27379         Likewise.
27380         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
27381         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
27382         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
27383         (MEMCMP): Use void * instead of ptr_t.
27384         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
27385         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
27387 2017-08-08  Florian Weimer  <fweimer@redhat.com>
27389         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
27390         return statement.
27392 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
27394         [BZ #21913]
27395         * csu/libc-tls.c: Include <startup.h> first.
27396         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
27397         * elf/dl-tunables.c: Include <startup.h> first.
27398         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
27399         * sysdeps/generic/startup.h: New file.
27400         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
27401         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
27402         (I386_USE_SYSENTER): New.  Defined to 0.
27404 2017-08-08  Andreas Schwab  <schwab@suse.de>
27406         [BZ #21041]
27407         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
27408         * nptl/pt-system.c (system): Likewise.
27410 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27412         [BZ #21780]
27413         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
27414         EOPNOTSUPP.
27415         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
27416         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
27417         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
27418         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
27419         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
27420         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
27421         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
27423 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
27425         [BZ #21899]
27426         * bits/sigaction.h (struct sigaction): Define sa_handler and
27427         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
27428         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27429         [__USE_XOPEN_EXTENDED].
27430         (SA_RESTART): Likewise.
27431         (SA_NODEFER): Likewise.
27432         (SA_RESETHAND): Likewise.
27433         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
27434         (struct sigaction): Define sa_handler and sa_sigaction using union
27435         also for [__USE_XOPEN_EXTENDED].
27436         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27437         [__USE_XOPEN_EXTENDED].
27438         (SA_RESTART): Likewise.
27439         (SA_NODEFER): Likewise.
27440         (SA_RESETHAND): Likewise.
27441         * sysdeps/unix/sysv/linux/bits/sigaction.h
27442         (struct sigaction): Define sa_handler and sa_sigaction using union
27443         also for [__USE_XOPEN_EXTENDED].
27444         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27445         [__USE_XOPEN_EXTENDED].
27446         (SA_RESTART): Likewise.
27447         (SA_NODEFER): Likewise.
27448         (SA_RESETHAND): Likewise.
27449         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
27450         (struct sigaction): Define sa_handler and sa_sigaction using union
27451         also for [__USE_XOPEN_EXTENDED].
27452         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27453         [__USE_XOPEN_EXTENDED].
27454         (SA_RESTART): Likewise.
27455         (SA_NODEFER): Likewise.
27456         (SA_RESETHAND): Likewise.
27457         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
27458         (struct sigaction): Define sa_handler and sa_sigaction using union
27459         also for [__USE_XOPEN_EXTENDED].
27460         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27461         [__USE_XOPEN_EXTENDED].
27462         (SA_RESTART): Likewise.
27463         (SA_NODEFER): Likewise.
27464         (SA_RESETHAND): Likewise.
27465         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
27466         (struct sigaction): Define sa_handler and sa_sigaction using union
27467         also for [__USE_XOPEN_EXTENDED].
27468         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27469         [__USE_XOPEN_EXTENDED].
27470         (SA_RESTART): Likewise.
27471         (SA_NODEFER): Likewise.
27472         (SA_RESETHAND): Likewise.
27473         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
27474         (struct sigaction): Define sa_handler and sa_sigaction using union
27475         also for [__USE_XOPEN_EXTENDED].
27476         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27477         [__USE_XOPEN_EXTENDED].
27478         (SA_RESTART): Likewise.
27479         (SA_NODEFER): Likewise.
27480         (SA_RESETHAND): Likewise.
27481         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
27482         (struct sigaction): Define sa_handler and sa_sigaction using union
27483         also for [__USE_XOPEN_EXTENDED].
27484         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27485         [__USE_XOPEN_EXTENDED].
27486         (SA_RESTART): Likewise.
27487         (SA_NODEFER): Likewise.  Define directly rather than as alias.
27488         (SA_RESETHAND): Likewise.
27489         (SA_INTERRUPT): Define only for [__USE_MISC].
27490         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
27491         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
27492         [__USE_MISC].
27493         (SA_STACK): Define only for [__USE_MISC].
27494         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
27495         (struct sigaction): Define sa_handler and sa_sigaction using union
27496         also for [__USE_XOPEN_EXTENDED].
27497         (SA_ONSTACK): Change [__USE_UNIX98] condition to
27498         [__USE_XOPEN_EXTENDED].
27499         (SA_RESTART): Likewise.
27500         (SA_NODEFER): Likewise.
27501         (SA_RESETHAND): Likewise.
27502         (SA_NOPTRACE): Define only for [__USE_MISC].
27504         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
27505         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
27506         (struct catalog_info): Likewise.
27507         * inet/htontest.c (lo): Likewise.
27508         (foo): Likewise.
27509         * inet/inet_lnaof.c (inet_lnaof): Likewise.
27510         * inet/inet_net.c (inet_network): Likewise.
27511         * inet/inet_netof.c (inet_netof): Likewise.
27512         * inet/rcmd.c (__ivaliduser): Likewise.
27513         (iruserok): Likewise.
27514         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
27515         * locale/programs/locale-spec.c (locale_special): Likewise.
27516         * nis/nis_findserv.c (struct findserv_req): Likewise.
27517         (__nis_findfastest_with_timeout): Likewise.
27518         * nss/test-netdb.c (test_network): Likewise.
27519         * resolv/inet_neta.c (inet_neta): Likewise.
27520         * resolv/ns_date.c (ns_datetosecs): Likewise.
27521         (SECS_PER_DAY): Likewise.
27522         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
27523         Likewise.
27524         * resolv/res_comp.c (__putlong): Likewise.
27525         (__putshort): Likewise.
27526         (_getlong): Likewise.
27527         (_getshort): Likewise.
27528         * resolv/res_debug.c (p_time): Likewise.
27529         (precsize_ntoa): Likewise.
27530         (precsize_aton): Likewise.
27531         (latlon2ul): Likewise.
27532         (loc_aton): Likewise.
27533         (loc_ntoa): Likewise.
27534         * resolv/res_hconf.c (struct netaddr): Likewise.
27535         (_res_hconf_reorder_addrs): Likewise.
27536         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
27537         (clnttcp_control): Likewise.
27538         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
27539         (clntudp_control): Likewise.
27540         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
27541         (clntunix_control): Likewise.
27542         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
27543         * sunrpc/rpc/auth.h (union des_block): Likewise.
27544         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
27545         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
27546         (xdrrec_create): Likewise.
27547         (xdrrec_endofrecord): Likewise.
27548         (flush_out): Likewise.
27549         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
27550         (xdrstdio_putlong): Likewise.
27551         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
27552         Likewise.
27554         * misc/sys/cdefs.h (__long_double_t): Remove.
27555         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
27556         instead of __long_double_t,
27557         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
27559 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27561         * benchtests/scripts/compare_strings.py: Avoid display error when
27562         running on a text terminal.
27564         * benchtests/scripts/compare_strings.py (main): Add an
27565         optional -base option.
27566         (process_results): New argument base_func.
27568         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
27569         hardcoding memcpy.
27570         * benchtests/bench-memcpy-large.c (test_name): Likewise.
27571         * benchtests/bench-memcpy-random.c (test_name): Likewise.
27573 2017-08-07  Andreas Schwab  <schwab@suse.de>
27575         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
27576         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
27577         * intl/Makefile ($(objpfx)tst-gettext.out)
27578         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
27579         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
27580         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
27581         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
27582         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
27583         * posix/Makefile ($(objpfx)globtest.out)
27584         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
27585         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
27586         ($(objpfx)tst-printf.out): Likewise.
27587         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
27588         ($(objpfx)tst-setcontext3.out): Likewise.
27590 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
27592         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27593         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
27594         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
27595         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
27596         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
27597         and mptan-fma.
27598         (CFLAGS-doasin-fma.c): New.
27599         (CFLAGS-dosincos-fma.c): Likewise.
27600         (CFLAGS-e_asin-fma.c): Likewise.
27601         (CFLAGS-e_atan2-fma.c): Likewise.
27602         (CFLAGS-e_exp-fma.c): Likewise.
27603         (CFLAGS-e_log-fma.c): Likewise.
27604         (CFLAGS-e_pow-fma.c): Likewise.
27605         (CFLAGS-halfulp-fma.c): Likewise.
27606         (CFLAGS-mpa-fma.c): Likewise.
27607         (CFLAGS-mpatan-fma.c): Likewise.
27608         (CFLAGS-mpatan2-fma.c): Likewise.
27609         (CFLAGS-mpexp-fma.c): Likewise.
27610         (CFLAGS-mplog-fma.c): Likewise.
27611         (CFLAGS-mpsqrt-fma.c): Likewise.
27612         (CFLAGS-mptan-fma.c): Likewise.
27613         (CFLAGS-s_atan-fma.c): Likewise.
27614         (CFLAGS-sincos32-fma.c): Likewise.
27615         (CFLAGS-slowexp-fma.c): Likewise.
27616         (CFLAGS-slowpow-fma.c): Likewise.
27617         (CFLAGS-s_sin-fma.c): Likewise.
27618         (CFLAGS-s_tan-fma.c): Likewise.
27619         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
27620         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
27621         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
27622         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
27623         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
27624         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
27625         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
27626         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
27627         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
27628         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
27629         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
27630         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
27631         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
27632         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
27633         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
27634         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
27635         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
27636         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
27637         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
27638         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
27639         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
27640         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
27641         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
27642         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
27643         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27644         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27645         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27646         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27647         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27648         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27649         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27651 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
27653         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
27654         (min_of_type_f): New macro.
27655         (min_of_type_): Likewise.
27656         (min_of_type_l): Likewise.
27657         (min_of_type_f128): Likewise.
27658         (min_of_type): Define using __MATH_TG and taking an expression
27659         argument.
27660         (math_check_force_underflow): Pass expression instead of type to
27661         min_of_type.
27662         (math_check_force_underflow_nonneg): Likewise.
27664 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27666         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
27667         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
27668         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
27670 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27672         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27673         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
27674         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
27675         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
27676         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
27677         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
27678         memcpy_chk-nonshared, mempcpy_chk-nonshared,
27679         memmove_chk-nonshared and memset_chk-nonshared
27680         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
27681         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
27682         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
27683         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
27684         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
27685         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
27686         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
27687         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
27688         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
27689         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
27690         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
27691         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
27692         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
27693         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
27694         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
27695         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
27696         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
27697         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
27698         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
27699         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
27700         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
27701         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
27702         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
27703         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
27704         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
27705         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
27706         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
27707         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
27708         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
27709         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
27710         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
27711         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
27712         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
27713         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
27714         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
27715         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
27716         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
27717         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
27718         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
27719         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
27720         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
27721         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
27722         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
27723         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
27724         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
27725         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
27726         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
27727         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
27728         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
27729         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
27730         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
27731         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
27732         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
27733         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
27734         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
27735         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
27736         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
27737         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
27738         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
27739         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
27740         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
27741         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
27742         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
27743         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
27744         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
27745         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
27746         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
27747         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
27748         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
27749         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
27750         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
27751         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27752         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27753         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27754         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27755         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27756         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27757         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27758         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27759         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27760         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27761         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27762         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27763         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27764         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27765         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27766         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27767         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27768         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27769         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27770         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27771         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27772         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27773         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27774         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27775         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27776         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27777         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27778         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27779         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27780         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27781         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27782         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27783         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27784         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27785         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27786         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27787         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27789 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27791         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
27792         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
27793         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
27794         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
27795         svml_d_log2_core-sse2, svml_d_log4_core-sse,
27796         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
27797         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
27798         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
27799         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
27800         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
27801         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
27802         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
27803         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
27804         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
27805         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
27806         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
27807         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
27808         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
27809         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
27810         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
27811         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
27812         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
27813         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
27814         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
27815         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
27816         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
27817         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
27818         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
27819         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
27820         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
27821         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
27822         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
27823         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
27824         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
27825         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
27826         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
27827         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
27828         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
27829         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
27830         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
27831         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
27832         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
27833         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
27834         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
27835         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
27836         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
27837         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
27838         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
27839         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
27840         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
27841         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
27842         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
27843         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
27844         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
27845         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
27846         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
27847         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
27848         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
27849         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
27850         ...
27851         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
27852         Don't include <sysdep.h> nor <init-arch.h>.
27853         (_ZGVbN2v_cos): Removed.
27854         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
27855         ...
27856         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
27857         Don't include <sysdep.h> nor <init-arch.h>.
27858         (_ZGVdN4v_cos): Removed.
27859         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
27860         ...
27861         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
27862         Don't include <sysdep.h> nor <init-arch.h>.
27863         (_ZGVeN8v_cos): Removed.
27864         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
27865         ...
27866         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
27867         Don't include <sysdep.h> nor <init-arch.h>.
27868         (_ZGVbN2v_exp): Removed.
27869         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
27870         ...
27871         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
27872         Don't include <sysdep.h> nor <init-arch.h>.
27873         (_ZGVdN4v_exp): Removed.
27874         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
27875         ...
27876         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
27877         Don't include <sysdep.h> nor <init-arch.h>.
27878         (_ZGVeN8v_exp): Removed.
27879         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
27880         ...
27881         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
27882         Don't include <sysdep.h> nor <init-arch.h>.
27883         (_ZGVbN2v_log): Removed.
27884         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
27885         ...
27886         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
27887         Don't include <sysdep.h> nor <init-arch.h>.
27888         (_ZGVdN4v_log): Removed.
27889         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
27890         ...
27891         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
27892         Don't include <sysdep.h> nor <init-arch.h>.
27893         (_ZGVeN8v_log): Removed.
27894         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
27895         ...
27896         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
27897         Don't include <sysdep.h> nor <init-arch.h>.
27898         (_ZGVbN2vv_pow): Removed.
27899         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
27900         ...
27901         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
27902         Don't include <sysdep.h> nor <init-arch.h>.
27903         (_ZGVdN4vv_pow): Removed.
27904         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
27905         ...
27906         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
27907         Don't include <sysdep.h> nor <init-arch.h>.
27908         (_ZGVeN8vv_pow): Removed.
27909         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
27910         ...
27911         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
27912         Don't include <sysdep.h> nor <init-arch.h>.
27913         (_ZGVbN2v_sin): Removed.
27914         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
27915         ...
27916         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
27917         Don't include <sysdep.h> nor <init-arch.h>.
27918         (_ZGVbN4v_sin): Removed.
27919         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
27920         ...
27921         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
27922         Don't include <sysdep.h> nor <init-arch.h>.
27923         (_ZGVbN8v_sin): Removed.
27924         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
27925         ...
27926         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
27927         Don't include <sysdep.h> nor <init-arch.h>.
27928         (_ZGVbN2vvv_sincos): Removed.
27929         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
27930         ...
27931         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
27932         Don't include <sysdep.h> nor <init-arch.h>.
27933         (_ZGVdN4vvv_sincos): Removed.
27934         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
27935         ...
27936         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
27937         Don't include <sysdep.h> nor <init-arch.h>.
27938         (_ZGVeN8vvv_sincos): Removed.
27939         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
27940         ...
27941         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
27942         Don't include <sysdep.h> nor <init-arch.h>.
27943         (_ZGVeN16v_cosf): Removed.
27944         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
27945         ...
27946         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
27947         Don't include <sysdep.h> nor <init-arch.h>.
27948         (_ZGVbN4v_cosf): Removed.
27949         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
27950         ...
27951         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
27952         Don't include <sysdep.h> nor <init-arch.h>.
27953         (_ZGVdN8v_cosf): Removed.
27954         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
27955         ...
27956         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
27957         Don't include <sysdep.h> nor <init-arch.h>.
27958         (_ZGVeN16v_expf): Removed.
27959         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
27960         ...
27961         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
27962         Don't include <sysdep.h> nor <init-arch.h>.
27963         (_ZGVbN4v_expf): Removed.
27964         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
27965         ...
27966         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
27967         Don't include <sysdep.h> nor <init-arch.h>.
27968         (_ZGVdN8v_expf): Removed.
27969         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
27970         ...
27971         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
27972         Don't include <sysdep.h> nor <init-arch.h>.
27973         (_ZGVeN16v_logf): Removed.
27974         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
27975         ...
27976         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
27977         Don't include <sysdep.h> nor <init-arch.h>.
27978         (_ZGVbN4v_logf): Removed.
27979         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
27980         ...
27981         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
27982         Don't include <sysdep.h> nor <init-arch.h>.
27983         (_ZGVdN8v_logf): Removed.
27984         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
27985         ...
27986         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
27987         Don't include <sysdep.h> nor <init-arch.h>.
27988         (_ZGVeN16vv_powf): Removed.
27989         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
27990         ...
27991         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
27992         Don't include <sysdep.h> nor <init-arch.h>.
27993         (_ZGVbN4vv_powf): Removed.
27994         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
27995         ...
27996         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
27997         Don't include <sysdep.h> nor <init-arch.h>.
27998         (_ZGVdN8vv_powf): Removed.
27999         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
28000         ...
28001         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
28002         Don't include <sysdep.h> nor <init-arch.h>.
28003         (_ZGVeN16vvv_sincosf): Removed.
28004         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
28005         ...
28006         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
28007         Don't include <sysdep.h> nor <init-arch.h>.
28008         (_ZGVbN4vvv_sincosf): Removed.
28009         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
28010         ...
28011         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
28012         Don't include <sysdep.h> nor <init-arch.h>.
28013         (_ZGVdN8vvv_sincosf): Removed.
28014         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
28015         ...
28016         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
28017         Don't include <sysdep.h> nor <init-arch.h>.
28018         (_ZGVeN16v_sinf): Removed.
28019         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
28020         ...
28021         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
28022         Don't include <sysdep.h> nor <init-arch.h>.
28023         (_ZGVbN4v_sinf): Removed.
28024         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
28025         ...
28026         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
28027         Don't include <sysdep.h> nor <init-arch.h>.
28028         (_ZGVdN8v_sinf): Removed.
28030 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28032         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28033         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
28034         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
28035         s_rint-sse4_1 and s_rintf-sse4_1.
28036         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
28037         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
28038         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
28039         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
28040         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
28041         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
28042         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
28043         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
28044         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
28045         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
28046         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
28047         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28048         (__ceil): Removed.
28049         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
28050         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
28051         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28052         (__ceilf): Removed.
28053         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
28054         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
28055         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28056         (__floor): Removed.
28057         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
28058         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
28059         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28060         (__floorf): Removed.
28061         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
28062         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
28063         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28064         (__nearbyint): Removed.
28065         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
28066         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
28067         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28068         (__nearbyintf): Removed.
28069         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
28070         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
28071         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28072         (__rint): Removed.
28073         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
28074         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
28075         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
28076         (__rintf): Removed.
28078 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28080         * sysdeps/i386/start.S (_start): Check Check PIC instead of
28081         SHARED.  Avoid dynamic relocation against main in static PIE.
28083 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28085         [BZ #21815]
28086         * elf/Makefile (CFLAGS-tst-prelink.c): New.
28087         (LDFLAGS-tst-prelink): Likewise.
28089 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28091         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
28092         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
28093         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
28094         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
28095         (INTERNAL_SYSCALL_NCS): Likewise.
28096         (LOADARGS_1): Likewise.
28097         (LOADARGS_5): Likewise.
28098         (RESTOREARGS_1): Likewise.
28099         (RESTOREARGS_5): Likewise.
28101 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28103         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
28104         (MEMPCPY_SYMBOL): Likewise.
28105         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
28106         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
28107         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
28108         in libc.a.
28109         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
28110         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
28111         Likewise.
28112         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
28113         (__hidden_ver1): Don't use in libc.a.
28114         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
28115         (__mempcpy): Don't create a weak alias in libc.a.
28116         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
28117         libc.a.
28118         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
28119         (__hidden_ver1): Don't use in libc.a.
28121 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28123         * config.make.in (have-insert): New.
28124         * configure.ac (libc_cv_insert): New.  Set to yes if linker
28125         supports INSERT in linker script.
28126         (AC_SUBST(libc_cv_insert): New.
28127         * configure: Regenerated.
28128         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
28129         if $(have-insert) == yes.
28131 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28133         * elf/Makefile (tests): Add vismain only if
28134         $(have-protected-data) == yes.
28135         (tests-pie): Likewise.
28137 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28139         [BZ #21871]
28140         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
28141         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
28143 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
28145         [BZ #21790]
28146         * sysdeps/i386/i586/memset.S
28147         (__memset_zero_constant_len_parameter): Removed.
28148         * sysdeps/i386/i686/memset.S
28149         (__memset_zero_constant_len_parameter): Likewise.
28150         * sysdeps/i386/i686/multiarch/memset_chk.S
28151         (__memset_zero_constant_len_parameter): Likewise.
28152         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
28153         Likewise.
28155 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
28157         * stdlib/getentropy.c (getentropy): Change return type to int.
28159 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
28161         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
28163 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
28165         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
28166         u_intN_t.
28167         * math/s_nexttowardf.c (__nexttowardf): Likewise.
28168         * sysdeps/generic/math_private.h (ieee_double_shape_type):
28169         Likewise.
28170         (ieee_float_shape_type): Likewise.
28171         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
28172         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
28173         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
28174         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
28175         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
28176         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
28177         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
28178         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
28179         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
28180         Likewise.
28181         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
28182         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28183         (__ieee754_yn): Likewise.
28184         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28185         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28186         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
28187         Likewise.
28188         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
28189         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
28190         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
28191         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
28192         (__erfc): Likewise.
28193         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
28194         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
28195         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
28196         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
28197         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
28198         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
28199         Likewise.
28200         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
28201         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
28202         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
28203         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
28204         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
28205         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
28206         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
28207         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
28208         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
28209         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
28210         (__issignaling): Likewise.
28211         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
28212         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
28213         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
28214         Likewise.
28215         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28216         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28217         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
28218         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
28219         Likewise.
28220         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
28221         Likewise.
28222         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
28223         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
28224         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
28225         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
28226         (__erfcf): Likewise.
28227         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
28228         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
28229         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
28230         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
28231         Likewise.
28232         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
28233         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
28234         Likewise.
28235         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
28236         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
28237         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
28238         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
28239         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
28240         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
28241         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
28242         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
28243         Likewise.
28244         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
28245         Likewise.
28246         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
28247         Likewise.
28248         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
28249         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
28250         Likewise.
28251         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
28252         Likewise.
28253         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28254         (__ieee754_ynl): Likewise.
28255         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
28256         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
28257         Likewise.
28258         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
28259         Likewise.
28260         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
28261         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
28262         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28263         Likewise.
28264         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
28265         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
28266         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
28267         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
28268         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
28269         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
28270         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
28271         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
28272         Likewise.
28273         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
28274         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
28275         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
28276         Likewise.
28277         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
28278         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
28279         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
28280         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
28281         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
28282         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28283         Likewise.
28284         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
28285         Likewise.
28286         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
28287         Likewise.
28288         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
28289         Likewise.
28290         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
28291         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
28292         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
28293         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
28294         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
28295         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
28296         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
28297         Likewise.
28298         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
28299         Likewise.
28300         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
28301         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
28302         Likewise.
28303         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
28304         (__ieee754_remainderl): Likewise.
28305         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
28306         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28307         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
28308         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
28309         Likewise.
28310         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
28311         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
28312         Likewise.
28313         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
28314         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
28315         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
28316         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
28317         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
28318         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
28319         Likewise.
28320         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
28321         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
28322         (__ieee754_y0l): Likewise.
28323         (pzero): Likewise.
28324         (qzero): Likewise.
28325         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
28326         (__ieee754_y1l): Likewise.
28327         (pone): Likewise.
28328         (qone): Likewise.
28329         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28330         (__ieee754_ynl): Likewise.
28331         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
28332         (__ieee754_lgammal_r): Likewise.
28333         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
28334         Likewise.
28335         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
28336         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
28337         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
28338         (__erfcl): Likewise.
28339         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
28340         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
28341         Likewise.
28342         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
28343         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
28344         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
28345         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
28346         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
28347         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
28348         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
28349         Likewise.
28350         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
28351         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
28352         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
28353         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
28354         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
28355         Likewise.
28356         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
28357         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
28358         Likewise.
28359         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
28360         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
28361         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
28362         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
28363         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
28365 2017-08-03  Florian Weimer  <fweimer@redhat.com>
28367         [BZ #21885]
28368         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
28369         on memory allocation failure.
28371 2017-08-03  Alan Modra  <amodra@gmail.com>
28373         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
28374         tst-tlsopt-powerpc.c with function name change and no test harness.
28375         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
28376         Call tls_get_addr_opt_test.
28377         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
28378         (modules-names): Add mod-tlsopt-powerpc.
28379         (mod-tlsopt-powerpc.so-no-z-defs): Define.
28380         (tst-tlsopt-powerpc): Depend on .so.
28381         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
28382         define.  Expand use in TLS_GD and TLS_LD.
28384 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28386         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
28387         function.
28388         * sysdeps/posix/shm_open.c: Include <pthread.h>.
28390 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
28392         [BZ #21686]
28393         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
28394         comparing size with that of double.
28395         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28396         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28397         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
28398         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28399         (__TGMATH_BINARY_REAL_IMAG): Likewise.
28400         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
28401         unsigned __int128 types.
28403 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
28405         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
28406         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
28407         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
28408         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
28409         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
28411 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
28413         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
28415 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
28417         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
28418         of SHARED.
28419         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28420         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
28421         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
28422         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
28423         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
28424         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
28425         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
28427 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
28429         [BZ #21685]
28430         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
28431         bit-field expressions passed to sizeof or typeof.
28432         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28433         (__TGMATH_F128): Likewise.
28434         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28435         (__TGMATH_CF128): Likewise.
28436         (__TGMATH_UNARY_REAL_ONLY): Likewise.
28437         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28438         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
28439         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
28440         (__TGMATH_BINARY_REAL_ONLY): Likewise.
28441         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28442         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28443         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
28444         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28445         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
28446         (__TGMATH_UNARY_REAL_IMAG): Likewise.
28447         (__TGMATH_UNARY_IMAG): Likewise.
28448         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
28449         (__TGMATH_BINARY_REAL_IMAG): Likewise.
28450         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
28451         type.
28452         (define_vars_for_type): Handle bit_field type specially.
28453         (Tests.__init__): Declare structure with bit-field element.
28455 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
28457         [BZ #21791]
28458         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
28459         (MEMCPY_CHK): Define only if SHARED is defined.
28460         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
28461         Likewise.
28462         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
28463         Likewise.
28465 See ChangeLog.18 for earlier changes.