Update NEWS and ChangeLog for CVE-2017-15671
[glibc.git] / ChangeLog
blobbc15aef2baa8bac33712f0d7a2021412f938a5cc
1 2017-10-21  Florian Weimer  <fweimer@redhat.com>
3         * posix/Makefile (tests): Add tst-glob-tilde.
4         (tests-special): Add tst-glob-tilde-mem.out
5         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
6         (tst-glob-tilde-mem.out): Add mtrace check.
7         * posix/tst-glob-tilde.c: New file.
9 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
11         * bits/floatn-common.h: New file.
12         * math/Makefile (headers): Add bits/floatn-common.h.
13         * bits/floatn.h: Include <bits/floatn-common.h>.
14         * sysdeps/ia64/bits/floatn.h: Likewise.
15         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
16         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
17         * sysdeps/powerpc/bits/floatn.h: Likewise.
18         * sysdeps/x86/bits/floatn.h: Likewise.
20 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23         indicates whether compiler emits an warning for alias for
24         functions with incompatible types.
26         [BZ #22273]
27         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
28         the auxiliary process is terminated by a signal before calling _exit
29         or execve.
31 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
33         [BZ #21265]
34         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
35         New.
36         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
37         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
38         and bit_arch_XSAVEC_Usable if needed.
39         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
40         and bit_arch_Use_dl_runtime_resolve_opt.
41         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
42         Removed.
43         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
44         (bit_arch_Prefer_No_AVX512): Updated.
45         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
46         (bit_arch_XSAVEC_Usable): New.
47         (STATE_SAVE_OFFSET): Likewise.
48         (STATE_SAVE_MASK): Likewise.
49         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
50         (cpu_features): Add xsave_state_size and xsave_state_full_size.
51         (index_arch_Use_dl_runtime_resolve_opt): Removed.
52         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
53         (index_arch_XSAVEC_Usable): New.
54         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
55         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
56         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
57         is enabled.
58         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
59         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
60         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
61         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
62         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
63         _dl_runtime_resolve_xsavec.
64         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
65         Removed.
66         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
67         instead of VEC_SIZE.
68         (REGISTER_SAVE_BND0): Removed.
69         (REGISTER_SAVE_BND1): Likewise.
70         (REGISTER_SAVE_BND3): Likewise.
71         (REGISTER_SAVE_RAX): Always defined to 0.
72         (VMOV): Removed.
73         (_dl_runtime_resolve_avx): Likewise.
74         (_dl_runtime_resolve_avx_slow): Likewise.
75         (_dl_runtime_resolve_avx_opt): Likewise.
76         (_dl_runtime_resolve_avx512): Likewise.
77         (_dl_runtime_resolve_avx512_opt): Likewise.
78         (_dl_runtime_resolve_sse): Likewise.
79         (_dl_runtime_resolve_sse_vex): Likewise.
80         (USE_FXSAVE): New.
81         (_dl_runtime_resolve_fxsave): Likewise.
82         (USE_XSAVE): Likewise.
83         (_dl_runtime_resolve_xsave): Likewise.
84         (USE_XSAVEC): Likewise.
85         (_dl_runtime_resolve_xsavec): Likewise.
86         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
87         Removed.
88         (_dl_runtime_resolve_avx512_opt): Likewise.
89         (_dl_runtime_resolve_avx): Likewise.
90         (_dl_runtime_resolve_avx_opt): Likewise.
91         (_dl_runtime_resolve_sse): Likewise.
92         (_dl_runtime_resolve_sse_vex): Likewise.
93         (_dl_runtime_resolve_fxsave): New.
94         (_dl_runtime_resolve_xsave): Likewise.
95         (_dl_runtime_resolve_xsavec): Likewise.
97 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
99         [BZ #22320]
100         CVE-2017-15670
101         * posix/glob.c (__glob): Fix one-byte overflow.
103 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
105         * malloc/malloc.c (sysdep-cancel.h): Add include.
107 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
109         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
111 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
113         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
114         (tests): Remove $(objpfx)ga_test depdendency.
115         * resolv/ga_test.c: Remove file.
117 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
119         [BZ #18812]
120         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
121         * localedata/locales/kab_DZ: New file.
123 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
125         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
126         _dl_relocate_static_pie instead of _dl_start to compute load
127         address in static PIE.
129 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
131         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
133 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
135         [BZ #13605]
136         * localedata/SUPPORTED: Add shn_MM/UTF-8.
137         * localedata/locales/shn_MM: New file.
139 2017-10-20  Florian Weimer  <fweimer@redhat.com>
141         [BZ #22321]
142         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
143         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
144         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
145         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
146         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
147         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
149 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
151         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
153 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
155         * sysdeps/mips/ieee754/bits/floatn.h: New file.
157         [BZ #22322]
158         * sysdeps/mips/bits/long-double.h: Move to ....
159         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
161 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
163         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
165 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
166             H.J. Lu  <hongjiu.lu@intel.com>
168         [BZ #22299]
169         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
170         GLRO(dl_platform) to NULL.
171         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
172         (modules-names): Add tst-platformmod-1 and
173         x86_64/tst-platformmod-2.
174         (CFLAGS-tst-platform-1.c): New.
175         (CFLAGS-tst-platformmod-1.c): Likewise.
176         (CFLAGS-tst-platformmod-2.c): Likewise.
177         (LDFLAGS-tst-platformmod-2.so): Likewise.
178         ($(objpfx)tst-platform-1): Likewise.
179         ($(objpfx)tst-platform-1.out): Likewise.
180         (tst-platform-1-ENV): Likewise.
181         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
182         * sysdeps/x86_64/tst-platform-1.c: New file.
183         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
184         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
186 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
188         [BZ #13994]
189         * locale/iso-639.def: Add Karbi.
190         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
191         * localedata/locales/mjw_IN: New file.
193 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
195         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
196         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
197         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
198         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
199         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
200         (libm_alias_ldouble_other_r): Also create _Float128 alias.
201         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
202         <bits/floatn.h>.
203         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
204         (libm_alias_ldouble_other_r): Also create _Float128 alias.
205         * manual/math.texi (Mathematics): Document additional architecture
206         support for _Float128.
207         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
208         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
209         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
210         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
211         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
212         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
213         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
214         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
215         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
216         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
217         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
218         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
219         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
220         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
221         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
223 2017-10-18  Renlin Li  <renlin.li@arm.com>
225         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
226         _DYNAMIC symbol to calculate load address.
228 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
230         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
231         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
232         summary bits.
233         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
234         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
236 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
238         [BZ #16777]
239         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
240         and improve readability by using more ASCII.
241         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
242         and improve readability by using more ASCII.
244 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
246         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
247         not all targets support atomics on bool.
249 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
251         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
252         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
253         __f128.
254         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
255         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
256         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
257         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
258         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
259         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
261 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
263         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
264         defines.
266 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
268         [BZ #22159]
269         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
270         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
271         (do_check_remalloced_chunk): Fix build bug.
272         (do_check_malloc_state): Add assert that checks arena->top.
273         (malloc_consolidate): Remove initialization.
274         (int_mallinfo): Remove call to malloc_consolidate.
275          (__libc_mallopt): Clarify why malloc_consolidate is needed.
277 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
279         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
280         (have_fastchunks): Remove.
281         (clear_fastchunks): Remove.
282         (set_fastchunks): Remove.
283         (malloc_state): Add have_fastchunks.
284         (malloc_init_state): Use have_fastchunks.
285         (do_check_malloc_state): Remove incorrect invariant checks.
286         (_int_malloc): Use have_fastchunks.
287         (_int_free): Likewise.
288         (malloc_consolidate): Likewise.
290 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
292         * malloc/malloc.c (tcache_put): Inline.
293         (tcache_get): Inline.
295 2017-10-17  Jordi Mallach  <jordi@gnu.org>
297         Aurelien Jarno  <aurelien@aurel32.net>
298         [BZ #2522]
299         * localedata/locales/ca_ES@valencia: New file.
300         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
302 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
304         [BZ #22296]
305         * math/math.h: Let signbit use the builtin in C++ mode with gcc
306         < 6.x
308 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
310         * scripts/build-many-glibcs.py (Context.add_all_configs):
311         Add arm-linux-gnueabihf multiarch extra_glibcs.
313         * sysdeps/generic/ifunc-init.h: New file.
314         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
316 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
318         [BZ #22019]
319         * localedata/locales/el_GR: Set n_cs_precedes to 0.
320         * localedata/locales/el_CY: copy "el_GR" because it is identical.
321         * stdlib/tst-strfmon_l.c: adapt test case.
323 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
325         * sysdeps/generic/float128-abi.h: New file.
326         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
327         non-__prefixed symbols to ....
328         * math/Versions: ... here.  Include <float128-abi.h>.
329         * stdlib/Versions ... and here.  Include <float128-abi.h>
331 2017-10-16  Florian Weimer  <fweimer@redhat.com>
333         * version.h (VERSION): Switch to ".9000" as the development
334         version suffix.
336 2017-10-16  Florian Weimer  <fweimer@redhat.com>
338         [BZ #22050]
339         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
340         compat_symbol_reference to access non-default version.
342 2017-10-16  Florian Weimer  <fweimer@redhat.com>
344         * malloc/Makefile (others-extras): Set to mcheck-init.o.
346 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
348         * include/shlib-compat.h (compat_symbol_reference): Update
349         comment.
351 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
353         * math/Makefile (test-types): Add
354         $(type-float128-$(float128-alias-fcts)).
355         * math/test-float128.h (TYPE_STR): Define conditional on
356         [FLT128_MANT_DIG == LDBL_MANT_DIG].
357         (ULP_IDX): Likewise.
358         (ULP_I_IDX): Likewise.
360         * stdlib/strtold.c: Include <bits/floatn.h>
361         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
362         and later undefine as macro.  Define as weak alias if
363         [!USE_WIDE_CHAR].
364         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
365         and later undefine as macro.  Define as weak alias if
366         [USE_WIDE_CHAR].
367         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
368         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
369         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
370         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
371         Define and later undefine as macro.  Define as weak alias if
372         [USE_WIDE_CHAR].
373         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
374         <bits/floatn.h>.
375         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
376         Define and later undefine as macro.  Define as weak alias if
377         [!USE_WIDE_CHAR].
378         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
379         Define and later undefine as macro.  Define as weak alias if
380         [USE_WIDE_CHAR].
382 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
384         * localedata/collate-test.c (allocate_arrays): Don't use \n in
385         record_verbose messages.
387 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
389         [BZ #22052]
390         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
391         to silence -O3 -Wall warning with GCC 7.
393 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
395         * Makeconfig (+link-static-before-libc): Use the first of
396         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
397         * gmon/Makefile (tests): Add tst-gmon-static.
398         (tests-static): Likewise.
399         (CFLAGS-tst-gmon-static.c): New.
400         (CRT-tst-gmon-static): Likewise.
401         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
402         (tst-gmon-static-ENV): Likewise.
403         (tests-special): Likewise.
404         ($(objpfx)tst-gmon-static.out): Likewise.
405         (clean-tst-gmon-static-data): Likewise.
406         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
407         * gmon/tst-gmon-static-gprof.sh: New file.
408         * gmon/tst-gmon-static.c: Likewise.
410 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
412         [BZ #22295]
413         * locale/programs/linereader.c (get_string): Don't warn on
414         non-symbolic character.
416 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
418         [BZ #22294]
419         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
420         int_curr_symbol.
422 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
424         [BZ #22292]
425         * locale/programs/record-status.h: New file
426         * locale/programs/locale.c: Add comment.
427         * locale/programs/charmap-dir.c: Don't include error.h.
428         (charmap_opendir): Use record_error.
429         * locale/programs/charmap.c: Don't include error.h.
430         (charmap_read): Use record_error, and record_warning.
431         (parse_charmap): Likewise.
432         * locale/programs/ld-address.c: Don't include error.h.
433         (address_finish): Use record_error, and record_warning.
434         * locale/programs/ld-collate.c: Don't include error.h.
435         (collate_finish): Use record_error, and record_error_at_line.
436         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
437         (ctype_class_new): Likewise.
438         (ctype_map_new): Likewise.
439         (set_one_default): Likewise.
440         (set_class_defaults): Likewise.
441         (translit_flatten): Likewise.
442         (allocate_arrays): Use record_error, and record_verbose.
443         * locale/programs/ld-identification.c: Don't include error.h.
444         (indentation_finish): Use record_error and record_warning.
445         * locale/programs/ld-measurement.c: Don't include error.h.
446         (measurement_finish): Use record_error.
447         * locale/programs/ld-messages.c
448         (message_finish): Likewise.
449         * locale/programs/ld-monetary.c
450         (monetary_finish): Likewise.
451         * locale/programs/ld-name.c (name_finish): Use record_error
452         and record_warning.
453         * locale/programs/ld-numeric.c
454         (numeric_finish): Use record_error.
455         * locale/programs/ld-paper.c: Don't include error.h.
456         (paper_finish): Use record_error.
457         * locale/programs/ld-telephone.c: Don't include error.h.
458         (telephone_finish): Use record_error.
459         * locale/programs/ld-time.c (time_finish): Likewise.
460         * locale/programs/linereader.h (lr_error): Make inline func.
461         * locale/programs/localedef.c: Define recorded_warning_count,
462         and recorded_error_count.
463         (main): Use record_error. Use recorded_error_count and
464         recorded_warning_count to issue correct error returns.
465         (add_to_readlist): Use record_error.
466         (find_locale): Likewise.
467         (load_locale): Likewise.
468         * locale/programs/localedef.h: Remove be_quiet
469         and WITH_CUR_LOCALE.
470         * locale/programs/locarchive.c (compare_from_file): Use
471         record_error.
472         * locale/programs/locfile.c (write_locale_data): Use
473         record_error.
474         * locale/programs/repertoire.c: Dont include error.h.
475         (repertoire_complain): Use record_error.
476         * localedata/tst-fmon.sh: Expect failures from localedef.
477         * localedata/tst-locale.sh: Likewise.
478         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
480 2017-10-12  Carlos O'Donell  <carlos@redhat.com>
482         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
483         (REPORTS): Likewise.
484         (check): Likewise.
485         (i18n): Rename to...
486         (i18n_ctype): ...this.
487         (i18n-report): Rename to...
488         (i18n_ctype-report): ...this.
489         * localedata/locales/i18n_ctype: Regenerate.
490         * localedata/locales/i18n: copy i18n_ctype.
492 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
494         * stdlib/strfroml.c: Include <bits/floatn.h>.
495         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
496         Define before include of <stdlib.h> and undefine afterwards, then
497         define as weak alias.
499         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
500         Undefine and restore default definition.  Use
501         libm_alias_ldouble_other.
503 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
505         [BZ #22153]
506         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
507         in coredumps.
509 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
511         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
512         Assign sym_map to be map for local symbols, as TLS relocations
513         use sym_map to determine whether the symbol is defined and to
514         extract the TLS information.
515         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
516         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
518 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
520         [BZ #22189]
521         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
522         (math_force_eval): Add powerpc version.
524         [BZ #22142]
525         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
526         -DBL_MAX.
527         (do_test): Likewise.
528         * stdio-common/tst-printf.sh: Likewise.
529         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
530         ifdef clause in order to set the carry bit right.  Replace r0 by
531         0 without changing the behavior.
533 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
535         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
536         <libm-alias-ldouble.h>.
537         (fabsl): Define using libm_alias_ldouble.
538         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
539         <libm-alias-ldouble.h>.
540         (fabsl): Define using libm_alias_ldouble.
542         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
543         Remove conditional code.
545         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
546         Rename to __clog10_internal_l.
547         (__clog10_internal_l): Define aliases using
548         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
549         with __clog10.
551 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
553         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
554         * benchtests/sincosf-inputs: New file.
555         * benchtests/cosf-inputs: New file.
556         * benchtests/sinf-inputs: New file.
558 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
560         * posix/tst-spawn.c (do_test): Wait for both children.
562 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
564         [BZ #22284]
565         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
566         tests-pie): Add tst-gmon-pie.
567         (CFLAGS-tst-gmon-pie.c): New.
568         (CRT-tst-gmon-pie): Likewise.
569         (tst-gmon-pie-ENV): Likewise.
570         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
571         ($(objpfx)tst-gmon-pie.out): Likewise.
572         (clean-tst-gmon-pie-data): Likewise.
573         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
574         * gmon/gmon.c [PIC]: Include <link.h>.
575         [PIC] (callback): New function.
576         (write_hist): Add an argument for load address.  Subtract load
577         address from PCs.
578         (write_call_graph): Likewise.
579         (write_gmon): Call __dl_iterate_phdr to get load address, pass
580         it to write_hist and write_call_graph.
581         * gmon/tst-gmon-pie.c: New file.
583 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
585         * math/Makefile (test-types-basic): New variable.
586         (test-types): Likewise.
587         (libm-test-support): Use $(test-types) instead of $(types).
588         (libm-tests-base-normal): Likewise.
589         (libm-tests-base-finite): Likewise.
590         (libm-tests-base-inline): Likewise.
591         (generated): Likewise.
592         ($(objpfx)libm-test-support-$(t).c): Likewise.
593         (libm-tests-for-type iterator): Likewise.
594         (libm-test-support iterator): Likewise.
595         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
596         (ulp_idx): Use ULP_IDX.
597         * math/test-ldouble.h: Include <float.h>.
598         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
599         (ULP_IDX): New macro.
600         (ULP_I_IDX): Likewise.
601         * math/test-double.h (ULP_IDX): Likewise.
602         (ULP_I_IDX): Likewise.
603         * math/test-float.h (ULP_IDX): Likewise.
604         (ULP_I_IDX): Likewise.
605         * math/test-float128.h (ULP_IDX): Likewise.
606         (ULP_I_IDX): Likewise.
608 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
610         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
611         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
612         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
613         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
614         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
615         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
616         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
617         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
618         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
619         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
620         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
621         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
622         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
623         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
624         (SINGLE_THREAD_BY_GLOBAL): Define.
625         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
626         Likewise.
627         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
628         Likewise.
629         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
630         Likewise.
631         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
632         Likewise.
633         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
634         (SINGLE_THREAD_BY_GLOBAL): Likewise.
635         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
636         Likewise.
638 2017-10-11  Andreas Schwab  <schwab@suse.de>
640         * nis/Makefile (aux): Remove.
641         * nscd/Makefile (aux): Add nscd_hash.
642         (nscd-modules): Likewise.
643         ($(objpfx)nscd): Don't depend on libnsl.
644         * nscd/nscd_hash.c: New file.
645         * nscd/nscd_hash.h: Likewise.
646         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
647         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
648         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
649         instead of <nis/rpcsvc/nis.h>.
650         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
652 2017-10-11  Florian Weimer  <fweimer@redhat.com>
654         [BZ #22078]
655         Avoid large NSS buffers with many addresses, aliases.
656         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
657         using dynarrays and struct alloc_buffer.
658         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
659         (tst-nss-files-hosts-multi): Link with -ldl.
660         * nss/tst-nss-files-hosts-multi.c: New file.
662 2017-10-11  Florian Weimer  <fweimer@redhat.com>
664         [BZ #18023]
665         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
666         scratch_buffer.  Eliminate gotos.
668 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
670         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
671         libm_alias_ldouble_other.
672         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
673         undefine and redefine.
674         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
675         (exp10l): Do not define here.
676         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
677         (weak_alias): Undefine and redefine.
678         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
679         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
680         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
681         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
683         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
684         [!__fma] (fma): Define using libm_alias_double.
685         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
686         [!__fmaf] (fmaf): Define using libm_alias_float.
687         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
688         (fmal): Define using libm_alias_ldouble.
690 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
692         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
693         New macro.
694         (libm_alias_double_other): Likewise.
695         (libm_alias_double_r): Use libm_alias_double_other_r.
696         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
697         New macro.
698         (libm_alias_float_other): Likewise.
699         (libm_alias_float_r): Use libm_alias_float_other_r.
700         * sysdeps/generic/libm-alias-float128.h
701         (libm_alias_float128_other_r): New macro.
702         (libm_alias_float128_other): Likewise.
703         (libm_alias_float128_r): Use libm_alias_float128_other_r.
704         * sysdeps/generic/libm-alias-ldouble.h
705         (libm_alias_ldouble_other_r): New macro.
706         (libm_alias_ldouble_other): Likewise.
707         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
708         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
709         (libm_alias_double_other_r): New macro.
710         (libm_alias_double_other): Likewise.
711         (libm_alias_double_r): Use libm_alias_double_other_r.
712         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
713         (libm_alias_ldouble_other_r): New macro.
714         (libm_alias_ldouble_other): Likewise.
715         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
716         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
717         [!USE_AS_COMPAT]: Use libm_alias_double_other.
718         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
719         [!USE_AS_COMPAT]: Use libm_alias_float_other.
720         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
721         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
722         * math/w_exp2f.c: Use libm_alias_float_other.
723         * math/w_expf.c: Likewise.
724         * math/w_log2f.c: Likewise.
725         * math/w_logf.c: Likewise.
726         * math/w_powf.c: Likewise.
727         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
728         [!__exp2f]: Use libm_alias_float_other.
729         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
730         [!__expf]: Use libm_alias_float_other.
731         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
732         [!__log2f]: Use libm_alias_float_other.
733         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
734         [!__logf]: Use libm_alias_float_other.
735         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
736         [!__powf]: Use libm_alias_float_other.
738 2017-10-10  Florian Weimer  <fweimer@redhat.com>
740         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
741         function.
742         (_nss_files_gethostbyname3_r): Call it.
744 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
746         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
747         error.  Remove default definition of declare_mgen_alias.
748         [!declare_mgen_alias_r]: Likewise.
749         * sysdeps/generic/math-type-macros-double.h
750         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
751         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
752         (declare_mgen_alias_r): Likewise.
753         * sysdeps/generic/math-type-macros-float128.h
754         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
755         * sysdeps/generic/math-type-macros-ldouble.h
756         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
757         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
758         macro.
759         (declare_mgen_alias_r_s): Likewise.
760         (declare_mgen_alias_r): Likewise.
761         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
762         (lgamma_r): Define using libm_alias_double_r.
763         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
764         (lgammaf_r): Define using libm_alias_float_r.
765         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
766         (lgammal_r): Define using libm_alias_ldouble_r.
767         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
768         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
770 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
772         * lib/glob.c (__glob_pattern_type): Remove now-spurious
773         extern declaration.
775 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
777         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
779 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
781         [BZ #21326]
782         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
783         [__cplusplus >= 201103] (__USE_ISOC99): Define.
784         * math/Makefile (test-math-cxx11): New test.
785         * math/test-math-cxx11.cc: New file.
787 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
789         * login/openpty.c (openpty): Close slave pty file descriptor on error.
791         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
792         call to allocate the slave pty file descriptor.
794 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
796         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
797         [!__fma] (fma): Define using libm_alias_double.
798         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
799         [!__fma] (fma): Define using libm_alias_double.
801         * sysdeps/ieee754/float128/float128_private.h: Include
802         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
803         (libm_alias_ldouble_r): Undefine and redefine.
804         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
805         <libm-alias-ldouble.h>.
806         (asinhl): Define using libm_alias_ldouble.
807         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
808         <libm-alias-ldouble.h>.
809         (atanl): Define using libm_alias_ldouble.
810         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
811         <libm-alias-ldouble.h>.
812         (cbrtl): Define using libm_alias_ldouble.
813         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
814         <libm-alias-ldouble.h>.
815         (ceill): Define using libm_alias_ldouble.
816         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
817         <libm-alias-ldouble.h>.
818         (copysignl): Define using libm_alias_ldouble.
819         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
820         <libm-alias-ldouble.h>.
821         (cosl): Define using libm_alias_ldouble.
822         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
823         <libm-alias-ldouble.h>.
824         (erfl): Define using libm_alias_ldouble.
825         (erfcl): Likewise.
826         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
827         <libm-alias-ldouble.h>.
828         (expm1l): Define using libm_alias_ldouble.
829         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
830         <libm-alias-ldouble.h>.
831         (fabsl): Define using libm_alias_ldouble.
832         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
833         <libm-alias-ldouble.h>.
834         (floorl): Define using libm_alias_ldouble.
835         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
836         <libm-alias-ldouble.h>.
837         (fmal): Define using libm_alias_ldouble.
838         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
839         <libm-alias-ldouble.h>.
840         (frexpl): Define using libm_alias_ldouble.
841         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
842         libm_alias_ldouble.
843         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
844         <libm-alias-ldouble.h>.
845         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
846         libm_alias_ldouble.
847         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
848         <libm-alias-ldouble.h>.
849         (getpayloadl): Define using libm_alias_ldouble.
850         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
851         <libm-alias-ldouble.h>.
852         (llrintl): Define using libm_alias_ldouble.
853         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
854         <libm-alias-ldouble.h>.
855         (llroundl): Define using libm_alias_ldouble.
856         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
857         <libm-alias-ldouble.h>.
858         (logbl): Define using libm_alias_ldouble.
859         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
860         <libm-alias-ldouble.h>.
861         (lrintl): Define using libm_alias_ldouble.
862         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
863         <libm-alias-ldouble.h>.
864         (lroundl): Define using libm_alias_ldouble.
865         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
866         <libm-alias-ldouble.h>.
867         (modfl): Define using libm_alias_ldouble.
868         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
869         <libm-alias-ldouble.h>.
870         (nearbyintl): Define using libm_alias_ldouble.
871         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
872         <libm-alias-ldouble.h>.
873         (nextafterl): Define using libm_alias_ldouble.
874         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
875         <libm-alias-ldouble.h>.
876         (nextupl): Define using libm_alias_ldouble.
877         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
878         <libm-alias-ldouble.h>.
879         (remquol): Define using libm_alias_ldouble.
880         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
881         <libm-alias-ldouble.h>.
882         (rintl): Define using libm_alias_ldouble.
883         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
884         <libm-alias-ldouble.h>.
885         (roundevenl): Define using libm_alias_ldouble.
886         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
887         <libm-alias-ldouble.h>.
888         (roundl): Define using libm_alias_ldouble.
889         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
890         using libm_alias_ldouble.
891         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
892         <libm-alias-ldouble.h>.
893         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
894         Define using libm_alias_ldouble.
895         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
896         <libm-alias-ldouble.h>.
897         (sincosl): Define using libm_alias_ldouble.
898         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
899         <libm-alias-ldouble.h>.
900         (sinl): Define using libm_alias_ldouble.
901         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
902         <libm-alias-ldouble.h>.
903         (tanhl): Define using libm_alias_ldouble.
904         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
905         <libm-alias-ldouble.h>.
906         (tanl): Define using libm_alias_ldouble.
907         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
908         <libm-alias-ldouble.h>.
909         (totalorderl): Define using libm_alias_ldouble.
910         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
911         <libm-alias-ldouble.h>.
912         (totalordermagl): Define using libm_alias_ldouble.
913         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
914         <libm-alias-ldouble.h>.
915         (truncl): Define using libm_alias_ldouble.
916         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
917         libm_alias_ldouble.
918         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
919         libm_alias_ldouble.
920         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
921         <libm-alias-ldouble.h>.
922         (weak_alias): Do not undefine and redefine.
923         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
924         (copysignl): Define with long_double_symbol only if [IS_IN
925         (libc)].
926         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
927         <libm-alias-ldouble.h>.
928         (weak_alias): Do not undefine and redefine.
929         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
930         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
931         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
932         <libm-alias-ldouble.h>.
933         (weak_alias): Do not undefine and redefine.
934         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
935         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
936         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
937         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
938         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
939         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
940         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
941         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
942         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
943         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
944         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
945         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
946         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
947         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
948         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
949         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
950         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
951         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
952         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
953         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
954         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
955         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
956         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
957         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
958         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
959         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
961 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
963         [BZ #22111]
964         * malloc/malloc.c (tcache_shutting_down): Use bool type.
965         (tcache_thread_freeres): Set tcache_shutting_down before
966         freeing the tcache.
967         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
968         * malloc/tst-malloc-tcache-leak.c: New file.
970 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
972         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
973         back to powerpc32 file.
974         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
975         (memrchr): Add __memrchr_power8 to ifunc list.
976         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
977         extra bytes for unaligned inputs.
979 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
981         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
982         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
983         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
984         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
985         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
987 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
989         * sysdeps/arm/libm-test-ulps: Update.
991         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
992         <libm-alias-ldouble.h>.
993         (asinhl): Define using libm_alias_ldouble.
994         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
995         <libm-alias-ldouble.h>.
996         (cbrtl): Define using libm_alias_ldouble.
997         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
998         <libm-alias-ldouble.h>.
999         (copysignl): Define using libm_alias_ldouble.
1000         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
1001         <libm-alias-ldouble.h>.
1002         (cosl): Define using libm_alias_ldouble.
1003         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
1004         <libm-alias-ldouble.h>.
1005         (erfl): Define using libm_alias_ldouble.
1006         (erfcl): Likewise.
1007         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
1008         <libm-alias-ldouble.h>.
1009         (fmal): Define using libm_alias_ldouble.
1010         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
1011         <libm-alias-ldouble.h>.
1012         (frexpl): Define using libm_alias_ldouble.
1013         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
1014         libm_alias_ldouble.
1015         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
1016         <libm-alias-ldouble.h>.
1017         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
1018         libm_alias_ldouble.
1019         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
1020         <libm-alias-ldouble.h>.
1021         (getpayloadl): Define using libm_alias_ldouble.
1022         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
1023         <libm-alias-ldouble.h>.
1024         (llrintl): Define using libm_alias_ldouble.
1025         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
1026         <libm-alias-ldouble.h>.
1027         (llroundl): Define using libm_alias_ldouble.
1028         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
1029         <libm-alias-ldouble.h>.
1030         (lrintl): Define using libm_alias_ldouble.
1031         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
1032         <libm-alias-ldouble.h>.
1033         (lroundl): Define using libm_alias_ldouble.
1034         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
1035         <libm-alias-ldouble.h>.
1036         (modfl): Define using libm_alias_ldouble.
1037         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
1038         <libm-alias-ldouble.h>.
1039         (nextupl): Define using libm_alias_ldouble.
1040         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
1041         <libm-alias-ldouble.h>.
1042         (remquol): Define using libm_alias_ldouble.
1043         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
1044         <libm-alias-ldouble.h>.
1045         (roundevenl): Define using libm_alias_ldouble.
1046         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
1047         <libm-alias-ldouble.h>.
1048         (roundl): Define using libm_alias_ldouble.
1049         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
1050         using libm_alias_ldouble.
1051         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
1052         <libm-alias-ldouble.h>.
1053         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
1054         <libm-alias-ldouble.h>.
1055         (setpayloadsigl): Define using libm_alias_ldouble.
1056         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
1057         <libm-alias-ldouble.h>.
1058         (sincosl): Define using libm_alias_ldouble.
1059         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
1060         <libm-alias-ldouble.h>.
1061         (sinl): Define using libm_alias_ldouble.
1062         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
1063         <libm-alias-ldouble.h>.
1064         (tanhl): Define using libm_alias_ldouble.
1065         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
1066         <libm-alias-ldouble.h>.
1067         (tanl): Define using libm_alias_ldouble.
1068         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1069         <libm-alias-ldouble.h>.
1070         (totalorderl): Define using libm_alias_ldouble.
1071         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1072         <libm-alias-ldouble.h>.
1073         (totalordermagl): Define using libm_alias_ldouble.
1074         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
1075         libm_alias_ldouble.
1076         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
1077         libm_alias_ldouble.
1079 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1081         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
1082         memmove_falkor.
1083         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1084         (__libc_ifunc_impl_list): Likewise.
1085         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
1086         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
1088         * benchtests/bench-memmove-walk.c: New file.
1089         * benchtests/Makefile (string-benchset): Add it.
1091         * benchtests/bench-memset-walk.c: New file.
1092         * benchtests/Makefile (string-benchset): Add it.
1094         * benchtests/bench-memcpy-walk.c: New file.
1095         * benchtests/Makefile (string-benchset): Add it.
1097 2017-10-05  Florian Weimer  <fweimer@redhat.com>
1099         nscd: Eliminate compilation time dependency in the build output.
1100         * nscd/nscd_stat.c (STATDATA_VERSION)
1101         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
1102         (STATDATA_VERSION_FULL): New macro definitions.
1103         (compilation): Remove.
1104         (struct statdata): Adjust version member.
1105         (send_stats): Set version from STATDATA_VERSION_FULL.
1106         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
1108 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
1110         * configure.ac (--enable-add-ons): Remove option.
1111         (machine): Do not mention add-ons in comment.
1112         (LIBC_PRECONFIGURE): Likewise.
1113         (add_ons): Remove variable and sanity checks and logic to locate
1114         add-ons.
1115         (add_ons_automatic): Remove variable.
1116         (configured_add_ons): Likewise.
1117         (add_ons_sfx): Likewise.
1118         (add_ons_pfx): Likewise.
1119         (add_on_subdirs): Likewise.
1120         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
1121         consideration of add-ons in Implies handling.
1122         (sysdeps_add_ons): Likewise.
1123         * configure: Regenerated.
1124         * libidn/configure.ac: Remove.
1125         * libidn/configure: Likewise.
1126         * sysdeps/unix/inet/configure.ac: New file.
1127         * sysdeps/unix/inet/configure: New generated file.
1128         * sysdeps/unix/inet/Subdirs: Add libidn.
1129         * Makeconfig (sysdeps-srcdirs): Remove variable.
1130         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
1131         ($(common-objpfx)config.status): Do not depend on add-on files.
1132         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
1133         comment.
1134         (all-subdirs): Do not include $(add-on-subdirs).
1135         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
1136         * config.make.in (add-ons): Remove variable.
1137         (add-on-subdirs): Likewise.
1138         (sysdeps-add-ons): Likewise.
1139         * manual/Makefile (add-chapters): Remove.
1140         ($(objpfx)texis): Do not depend on $(add-chapters).
1141         (nonexamples): Do not handle $(add-chapters).
1142         (examples): Do not handle $(add-ons).
1143         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
1144         libc-texinfo.sh.
1145         * manual/install.texi (Installation): Do not mention add-ons.
1146         (--enable-add-ons): Do not document configure option.
1147         * INSTALL: Regenerated.
1148         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
1149         * manual/maint.texi (Hierarchy Conventions): Do not mention
1150         add-ons.
1151         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
1152         --enable-add-ons.
1153         * scripts/gen-sorted.awk: Do not handle Subdirs files from
1154         add-ons.
1155         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
1156         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
1158 2017-10-05  Andreas Schwab  <schwab@suse.de>
1160         [BZ #15142]
1161         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
1162         (_IO_flush_all_lockp): Always lock list_all_lock.
1163         (_IO_flush_all_linebuffered): Likewise.
1164         (_IO_unbuffer_all): Likewise.
1166 2017-10-05  Florian Weimer  <fweimer@redhat.com>
1168         [BZ #15436]
1169         Do not flush stdio streams on abort.
1170         * stdlib/abort.c (fflush): Remove macro definition.
1171         (abort): Remove stages related to stdio flushing.
1173 2017-10-05  Florian Weimer  <fweimer@redhat.com>
1175         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
1177 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
1179         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1181 2017-10-05  Florian Weimer  <fweimer@redhat.com>
1183         * support/support_format_hostent.c (support_format_hostent): Add
1184         more error information for NETDB_INTERNAL.
1186 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1188         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
1189         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
1190         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
1191         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
1192         AC_DEFINE if multi-arch is enabled.
1193         * sysdeps/i386/configure: Regenerated.
1195 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1197         * Makeconfig (+link-static-before-libc): Use
1198         $(DEFAULT-LDFLAGS-$(@F)).
1199         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
1200         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
1201         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
1203 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1205         * elf/Makefile (tests): Add tst-main1.
1206         (modules-names): Add tst-main1mod.
1207         ($(objpfx)tst-main1): New.
1208         (CRT-tst-main1): Likewise.
1209         (LDFLAGS-tst-main1): Likewise.
1210         (LDLIBS-tst-main1): Likewise.
1211         (tst-main1mod.so-no-z-defs): Likewise.
1212         * elf/tst-main1.c: New file.
1213         * elf/tst-main1mod.c: Likewise.
1215 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
1217         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
1219 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
1221         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
1222         (fma): Define using libm_alias_double.
1223         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
1224         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
1225         <math_ldbl_opt.h>.
1226         (fmal): Do not define as compat symbol here.
1227         * sysdeps/alpha/fpu/s_fma.c: New file.
1229 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1231         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
1233 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
1235         [BZ #22229]
1236         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
1237         <math_ldbl_opt.h>
1238         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
1239         and libc.
1240         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
1241         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1242         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
1243         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
1244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1245         Include <math_ldbl_opt.h>
1246         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
1247         and libc.
1248         (compat_symbol): Undefine and redefine.
1249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
1250         <math_ldbl_opt.h>
1251         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1252         (compat_symbol): Undefine and redefine.
1253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
1254         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
1255         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
1256         GLIBC_2_1 for libm.
1257         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
1258         GLIBC_2.0 copysignl symbol.
1259         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
1260         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
1262         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
1264 2017-10-04  Florian Weimer  <fweimer@redhat.com>
1266         * scripts/check-local-headers.sh: Ignore nspr4 header file
1267         directory in addition to nspr.
1269 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
1271         [BZ #17956]
1272         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
1273         * configure: Regenerate.
1274         * crypt/Makefile (nss-cpp-flags): New variable.
1275         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
1276         (CPPFLAGS-md5-crypt.c): Use it.
1277         * scripts/check-local-headers.sh: Ignore nspr header file
1278         directory.
1280 2017-10-04  Andreas Schwab  <schwab@suse.de>
1282         * nis/Makefile (services): Remove compat.
1283         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
1284         ($(objpfx)libnss_compat.so): Remove rule.
1285         * nis/Versions (libnss_compat): Remove.
1286         * nss/Makefile (services): Add compat.
1287         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
1288         * nss/Versions (libnss_compat): Define.
1289         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
1290         Don't include <rpc/types.h>.  Replace bool_t by bool.
1291         * nss/nss_compat/compat-initgroups.c: Likewise.
1292         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
1293         instead of <rpcsrv/ypclnt.h>.
1294         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
1295         yp_get_default_domain.
1296         * nss/nss_compat/compat-pwd.c: Likewise.
1297         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
1298         yp_get_default_domain.
1299         * nss/nss_compat/nisdomain.c: New file.
1300         * nss/nss_compat/nisdomain.h: Likewise.
1302 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1304         [BZ #22244]
1305         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
1306         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1308 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1310         [BZ #22243]
1311         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
1312         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
1314 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1316         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
1317         "movl main@GOTOFF(%ebx), %eax".
1319 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1321         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
1322         allow undefined _DYNAMIC in PIE libc.a.
1323         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
1324         Likewse.
1326 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1328         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
1329         check _DYNAMIC.
1331 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1333         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
1334         check _DYNAMIC.
1336 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1338         * math/test-math-iscanonical.cc (error): Replace bool with int.
1340 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
1342         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
1343         (modf): Define using libm_alias_double, only if [!__modf].
1344         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
1345         <libm-alias-double.h>.
1346         (modf): Define using libm_alias_double, only if [!__modf].
1347         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
1348         compat symbol here.
1349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
1350         (weak_alias): Do not undefine and redefine.
1351         (strong_alias): Likewise.
1352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
1353         (weak_alias): Likewise.
1354         (strong_alias): Likewise.
1356         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
1357         (logb): Define using libm_alias_double, only if [!__logb].
1358         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
1359         <libm-alias-double.h>.
1360         (logb): Define using libm_alias_double, only if [!__logb].
1361         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
1362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
1363         (weak_alias): Do not undefine and redefine.
1364         (strong_alias): Likewise.
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
1366         (weak_alias): Likewise.
1367         (strong_alias): Likewise.
1369 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1371         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
1372         Check SHARED instead PIC.
1374 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
1376         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
1377         [!__fmaf] (fmaf): Define using libm_alias_float.
1379         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
1380         (frexp): Define using libm_alias_double.
1381         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
1382         <libm-alias-double.h>.
1383         (frexp): Define using libm_alias_double.
1384         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
1385         compat symbol here.
1387 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1389         [BZ #22235]
1390         * math/math.h: Trivial fix for unbalanced parentheses in comment.
1391         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
1392         (CFLAGS-test-math-iscanonical.cc): New variable.
1393         * math/test-math-iscanonical.cc: New file.
1394         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
1395         Provide a C++ implementation based on function overloading,
1396         rather than using __MATH_TG, which uses C-only builtins.
1397         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
1398         Likewise.
1399         * sysdeps/powerpc/powerpc64le/Makefile
1400         (CFLAGS-test-math-iscanonical.cc): New variable.
1402 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
1404         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
1405         (ceil): Define using libm_alias_double.
1406         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
1407         (floor): Define using libm_alias_double.
1408         * sysdeps/ieee754/dbl-64/s_llround.c: Include
1409         <libm-alias-double.h>.
1410         (llround): Define using libm_alias_double.
1411         * sysdeps/ieee754/dbl-64/s_lround.c: Include
1412         <libm-alias-double.h>.
1413         (lround): Define using libm_alias_double.
1414         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
1415         <libm-alias-double.h>.
1416         (nearbyint): Define using libm_alias_double.
1417         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
1418         <libm-alias-double.h>.
1419         (remquo): Define using libm_alias_double.
1420         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
1421         (rint): Define using libm_alias_double.
1422         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
1423         (round): Define using libm_alias_double.
1424         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
1425         (trunc): Define using libm_alias_double.
1426         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
1427         <libm-alias-double.h>.
1428         (ceil): Define using libm_alias_double.
1429         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
1430         <libm-alias-double.h>.
1431         (floor): Define using libm_alias_double.
1432         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
1433         <libm-alias-double.h>.
1434         (llround): Define using libm_alias_double.
1435         [_LP64] (lround): Likewise.
1436         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
1437         <libm-alias-double.h>.
1438         [!_LP64] (lround): Define using libm_alias_double.
1439         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
1440         <libm-alias-double.h>.
1441         (nearbyint): Define using libm_alias_double.
1442         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
1443         <libm-alias-double.h>.
1444         (remquo): Define using libm_alias_double.
1445         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
1446         <libm-alias-double.h>.
1447         (rint): Define using libm_alias_double.
1448         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
1449         <libm-alias-double.h>.
1450         (round): Define using libm_alias_double.
1451         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
1452         <libm-alias-double.h>.
1453         (trunc): Define using libm_alias_double.
1454         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
1455         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
1456         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
1457         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
1458         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
1459         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
1460         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
1461         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
1462         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
1464 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1466         * math/w_remainder.c: New file.
1467         * math/w_remainderf.c: New file.
1468         * math/w_remainderl.c: New file.
1470 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1472         * elf/rtld.c (BOOTSTRAP_MAP): New.
1473         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
1474         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1475         Likewise.
1476         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1477         Likewise.
1478         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1479         Likewise.
1481 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1483         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
1484         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
1485         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
1486         rtld_hidden_data_ver): Define to empty.
1487         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
1488         __assert_perror_fail): Likewise.
1489         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1490         (__rewinddir): Likewise.
1491         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1492         (__profile_frequency): Likewise.
1493         * include/setjmp.h (__sigsetjmp): Likewise.
1494         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
1495         __libc_sigaction): Likewise.
1496         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
1497         not set hidden attribute.
1498         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
1499         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
1500         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
1501         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
1502         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
1503         __fxstatat64): Likewise.
1504         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1505         (__uname): Likewise.
1506         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1507         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
1508         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
1509         (NO_RTLD_HIDDEN): Set.
1510         * sysdeps/mach/hurd/configure: Refresh.
1511         * config.h.in: Refresh.
1513 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
1515         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
1516         (atan): Define using libm_alias_double.
1517         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
1518         (tan): Define using libm_alias_double.
1519         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
1520         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
1522         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
1523         define as weak alias of __atan.  Do not define any aliases if
1524         [__atan].
1525         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
1526         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
1527         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
1528         as weak alias of __tan.  Do not define any aliases if [__tan].
1529         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
1530         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
1531         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
1532         __atan.
1533         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
1534         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
1535         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
1536         and define as weak alias of __atan.
1537         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
1538         __atan.
1539         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
1540         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
1541         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
1542         define as weak alias of __tan.
1544 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1546         * math/w_lgamma.c: New file.
1547         * math/w_lgammaf.c: New file.
1548         * math/w_lgammal.c: New file.
1550 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1552         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
1553         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
1554         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
1555         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
1556         * sysdeps/ieee754/flt-32/w_logf.c: New file.
1557         * sysdeps/ieee754/flt-32/w_powf.c: New file.
1558         * sysdeps/i386/fpu/w_log2f.c: New file.
1559         * sysdeps/i386/fpu/w_logf.c: New file.
1560         * sysdeps/i386/fpu/w_powf.c: New file.
1561         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
1562         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
1563         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
1565 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1566             H.J. Lu  <hongjiu.lu@intel.com>
1568         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
1569         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
1570         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
1571         * sysdeps/ieee754/flt-32/w_expf.c: New file.
1572         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
1573         the new expf code.
1574         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
1575         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
1576         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
1577         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
1578         * sysdeps/i386/fpu/w_exp2f.c: New file.
1579         * sysdeps/i386/fpu/w_expf.c: New file.
1580         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
1581         * sysdeps/x86_64/fpu/w_expf.c: New file.
1583 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1585         * math/Versions (logf): New libm symbol at GLIBC_2.27.
1586         (log2f): Likewise.
1587         (powf): Likewise.
1588         * math/w_log2f.c: New file.
1589         * math/w_logf.c: New file.
1590         * math/w_powf.c: New file.
1591         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
1592         * math/w_logf_compat.c (__logf_compat): Likewise.
1593         * math/w_powf_compat.c (__powf_compat): Likewise.
1594         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
1595         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1596         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1597         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1598         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1599         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1600         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1601         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1602         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1603         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1604         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1605         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1606         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1607         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1608         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1610         Likewise.
1611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1612         Likewise.
1613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1614         Likewise.
1615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1616         Likewise.
1617         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1618         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1619         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1620         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1621         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1622         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1623         Likewise.
1624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1625         Likewise.
1626         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1627         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1628         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1630 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1632         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1633         (sysdep_routines): Add memrchr_power8.
1634         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1635         (memrchr): Add __memrchr_power8 to list of memrchr functions.
1636         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
1637         New file.
1638         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
1639         (memrchr): Add __memrchr_power8 to ifunc list.
1640         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
1642 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1644         [BZ #18822]
1645         * sysdeps/unix/sysv/linux/posix_fadvise64.c
1646         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
1647         libc_hidden_def.
1648         * sysdeps/unix/sysv/linux/posix_fallocate64.c
1649         (__posix_fallocate64_l64): Likewise.
1651 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1653         [BZ #18822]
1654         * sysdeps/unix/sysv/linux/sched_setaffinity.c
1655         (__sched_setaffinity_new): Add libc_hidden_proto and
1656         libc_hidden_def.
1658 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1660         [BZ #18822]
1661         * include/glob.h (__glob64): Add libc_hidden_proto.
1662         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
1663         libc_hidden_def.
1665 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1667         [BZ #18822]
1668         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
1669         attribute_hidden.
1671 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1673         [BZ #18822]
1674         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
1676 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1678         [BZ #18822]
1679         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
1680         libc_hidden_def.
1682 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1684         [BZ #18822]
1685         * csu/version.c (__libc_print_version): Add attribute_hidden.
1687 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1689         [BZ #18822]
1690         * include/libc-internal.h (__init_misc): Add attribute_hidden.
1692 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1694         [BZ #18822]
1695         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
1697 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1699         [BZ #18822]
1700         * nscd/nscd_helper.c (__nis_hash): New prototype.
1702 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1704         [BZ #18822]
1705         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
1706         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
1707         libc_hidden_def.
1708         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
1709         * termios/tcgetattr.c (__tcgetattr): Likewise.
1711 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1713         [BZ #18822]
1714         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
1715         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
1716         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
1717         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
1718         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
1720 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1722         [BZ #18822]
1723         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
1725 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1727         [BZ #18822]
1728         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
1729         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
1731 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1733         [BZ #18822]
1734         * intl/hash-string.h (__hash_string): Add attribute_hidden.
1736 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1738         [BZ #18822]
1739         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
1740         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
1742 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1744         [BZ #18822]
1745         * include/ifreq.h: New file.
1746         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
1747         (__ifreq): Likewise.
1748         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
1749         (__ifreq): Likewise.
1751 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1753         [BZ #18822]
1754         * include/idna.h: New file.
1755         * inet/getnameinfo.c: Include <idna.h> instead of
1756         <libidn/idna.h>.
1757         (__idna_to_unicode_lzlz): Removed.
1758         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
1759         <libidn/idna.h>.
1760         (__idna_to_ascii_lz): Removed.
1761         (__idna_to_unicode_lzlz): Likewise.
1763 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1765         [BZ #18822]
1766         * include/plural-exp.h: New file.
1767         * intl/plural-exp.c: Include <plural-exp.h> instead of
1768         "plural-exp.h".
1770 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1772         [BZ #18822]
1773         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
1774         "getsourcefilter.h".
1775         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
1776         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
1777         "getsourcefilter.h".
1778         (__get_sol): Removed.
1780 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1782         [BZ #18822]
1783         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
1784         to ...
1785         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
1787 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1789         [BZ #18822]
1790         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
1791         attribute_hidden.
1793 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1795         [BZ #18822]
1796         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
1798 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1800         [BZ #18822]
1801         * include/search.h (__tdestroy): Add libc_hidden_proto.
1802         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
1804 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1806         [BZ #18822]
1807         * include/assert.h (__assert_fail_base): Add attribute_hidden.
1809 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1811         [BZ #18822]
1812         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
1813         attribute_hidden.
1815 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1817         [BZ #18822]
1818         * include/signal.h (__kill): Add libc_hidden_proto.
1819         (__sigblock): Likewise.
1820         (__sigprocmask): Likewise.
1821         (__sigaltstack): Likewise.
1822         * signal/kill.c (__kill): Add libc_hidden_def.
1823         * signal/sigblock.c (__sigblock): Likewise.
1824         * signal/sigprocmask.c (__sigprocmask): Likewise.
1825         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1826         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1827         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
1828         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1829         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
1830         Likewise.
1831         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
1832         Likewise.
1833         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
1834         (__sigprocmask): Likewise.
1835         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
1836         Likewise.
1837         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
1838         (__sigprocmask): Likewise.
1839         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
1840         Likewise.
1842 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1844         [BZ #18822]
1845         * include/string.h (__strsep): Add libc_hidden_proto.
1846         * string/strsep.c (__strsep): Add libc_hidden_def.
1848 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1850         [BZ #18822]
1851         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
1852         attribute_hidden.
1853         (__spawni): Likewise.
1855 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1857         [BZ #18822]
1858         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
1859         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
1860         libc_hidden_def.
1862 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1864         [BZ #18822]
1865         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
1867 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1869         [BZ #18822]
1870         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
1871         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
1872         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1873         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
1874         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
1875         Likewise.
1876         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
1877         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
1879 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1881         [BZ #18822]
1882         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
1883         (__dcigettext): Likewise.
1885 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1887         [BZ #18822]
1888         * include/sys/sysinfo.h (__get_nprocs_conf): Add
1889         libc_hidden_proto.
1890         (__get_nprocs): Likewise.
1891         (__get_phys_pages): Likewise.
1892         (__get_avphys_pages): Likewise.
1893         (__get_child_max): Add attribute_hidden.
1894         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
1895         (__get_nprocs): Likewise.
1896         (__get_phys_pages): Likewise.
1897         (__get_avphys_pages): Likewise.
1898         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
1899         libc_hidden_def.
1900         (__get_nprocs): Likewise.
1901         (__get_phys_pages): Likewise.
1902         (__get_avphys_pages): Likewise.
1903         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
1904         libc_hidden_def.
1905         (__get_nprocs_conf): Likewise.
1906         (__get_phys_pages): Likewise.
1907         (__get_avphys_pages): Likewise.
1909 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1911         [BZ #18822]
1912         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
1913         attribute_hidden.
1914         (__netlink_close): Likewise.
1915         (__netlink_free_handle): Likewise.
1916         (__netlink_request): Likewise.
1918 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1920         [BZ #18822]
1921         * include/rpc/rpc.h (__rpc_thread_variables): Add
1922         attribute_hidden.
1923         (__rpc_thread_svc_cleanup): Likewise.
1924         (__rpc_thread_clnt_cleanup): Likewise.
1925         (__rpc_thread_key_cleanup): Likewise.
1927 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1929         [BZ #18822]
1930         * include/sys/uio.h (__readv): Add libc_hidden_proto.
1931         (__writev): Likewise.
1932         * misc/readv.c (__readv): Add libc_hidden_def.
1933         * misc/writev.c (__writev): Likewise.
1934         * sysdeps/posix/readv.c (__readv): Likewise.
1935         * sysdeps/posix/writev.c (__writev): Likewise.
1936         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
1937         (__readv): Likewise.
1938         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
1939         (__writev): Likewise.
1941 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1943         [BZ #18822]
1944         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
1945         (__regcomp): Add libc_hidden_proto.
1946         (__regexec): Likewise.
1947         (__regfree): Likewise.
1948         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
1949         (__regfree): Likewise.
1950         * posix/regexec.c (__regexec): Likewise.
1952 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1954         [BZ #18822]
1955         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
1956         (__getutent): Likewise.
1957         (__getutid): Likewise.
1958         (__getutline): Likewise.
1959         (__pututline): Likewise.
1960         (__getutent_r): Likewise.
1961         (__getutid_r): Likewise.
1962         (__getutline_r): Likewise.
1963         (__utmpname): Add attribute_hidden.
1964         (__setutent): Likewise.
1965         (__endutent): Likewise.
1966         * login/getutent.c (__getutent): Add libc_hidden_def.
1967         * login/getutent_r.c (__getutent_r): Likewise.
1968         (__pututline): Likewise.
1969         * login/getutid.c (__getutid): Likewise.
1970         * login/getutid_r.c (__getutid_r): Likewise.
1971         * login/getutline.c (__getutline): Likewise.
1972         * login/getutline_r.c (__getutline_r): Likewise.
1973         * login/updwtmp.c (__updwtmp): Likewise.
1975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1977         [BZ #18822]
1978         * include/dirent.h (__opendir): Always add attribute_hidden.
1979         (__fdopendir): Likewise.
1980         (__closedir): Likewise.
1981         (__readdir): Likewise.
1982         (__readdir64): Add libc_hidden_proto.
1983         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
1984         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
1985         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
1986         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
1987         New alias.
1989 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1991         [BZ #18822]
1992         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
1993         * include/netdb.h (__gethostbyaddr_r): Likewise.
1994         (__gethostbyname_r): Likewise.
1995         (__gethostbyname2_r): Likewise.
1996         (__getnetbyaddr_r): Likewise.
1997         (__getnetbyname_r): Likewise.
1998         (__getservbyname_r): Likewise.
1999         (__getservbyport_r): Likewise.
2000         (__getprotobyname_r): Likewise.
2001         (__getprotobynumber_r): Likewise.
2002         (__getnetgrent_r): Likewise.
2003         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
2004         (__getrpcbynumber_r): Likewise.
2005         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
2007 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2009         [BZ #18822]
2010         * include/stdio.h (__fcloseall): Add attribute_hidden.
2011         (__getline): Likewise.
2012         (__path_search): Likewise.
2013         (__gen_tempname): Likewise.
2014         (__libc_message): Likewise.
2015         (__flockfile): Likewise.
2016         (__funlockfile): Likewise.
2017         (__fxprintf): Likewise.
2018         (__fxprintf_nocancel): Likewise.
2020 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2022         [BZ #18822]
2023         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
2024         (__sgetsgent_r): Likewise.
2026 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2028         [BZ #18822]
2029         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
2030         (__statfs64): Likewise.
2031         (__fstatfs64): Likewise.
2032         * include/sys/statvfs.h (__statvfs64): Likewise.
2033         (__fstatvfs64): Likewise.
2034         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
2035         (__statfs_filesize_max): Likewise.
2036         (__statfs_symlinks): Likewise.
2037         (__statfs_chown_restricted): Likewise.
2039 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2041         [BZ #18822]
2042         * include/time.h (__tzstring): Add attribute_hidden.
2043         (__tzfile_read): Likewise.
2044         (__tzfile_compute): Likewise.
2045         (__tzfile_default): Likewise.
2046         (__tzset_parse_tz): Likewise.
2047         (__offtime): Likewise.
2048         (__asctime_r): Likewise.
2049         (__tzset): Likewise.
2050         (__tz_convert): Likewise.
2051         (__getdate_r): Likewise.
2052         (__getclktck): Likewise.
2054 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2056         [BZ #18822]
2057         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
2058         (__nscd_unmap): Likewise.
2059         (__nscd_cache_search): Likewise.
2060         (__nscd_get_nl_timestamp): Likewise.
2061         (__nscd_getpwnam_r): Likewise.
2062         (__nscd_getpwuid_r): Likewise.
2063         (__nscd_getgrnam_r): Likewise.
2064         (__nscd_getgrgid_r): Likewise.
2065         (__nscd_gethostbyname_r): Likewise.
2066         (__nscd_gethostbyname2_r): Likewise.
2067         (__nscd_gethostbyaddr_r): Likewise.
2068         (__nscd_getai): Likewise.
2069         (__nscd_getgrouplist): Likewise.
2070         (__nscd_getservbyname_r): Likewise.
2071         (__nscd_getservbyport_r): Likewise.
2072         (__nscd_innetgr): Likewise.
2073         (__nscd_setnetgrent): Likewise.
2075 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2077         [BZ #18822]
2078         * include/gmp.h: Declare internal functions only if _ISOMAC is
2079         undefined.
2080         (__mpn_extract_double): Add attribute_hidden.
2081         (__mpn_extract_long_double): Likewise.
2082         (__mpn_extract_float128): Likewise.
2083         (__mpn_construct_float): Likewise.
2084         (__mpn_construct_double): Likewise.
2085         (__mpn_construct_long_double): Likewise.
2086         (__mpn_construct_float128): Likewise.
2087         (mpn_add_1): Likewise.
2088         (mpn_addmul_1): Likewise.
2089         (mpn_add_n): Likewise.
2090         (mpn_cmp): Likewise.
2091         (mpn_divrem): Likewise.
2092         (mpn_lshift): Likewise.
2093         (mpn_mul): Likewise.
2094         (mpn_mul_1): Likewise.
2095         (mpn_rshift): Likewise.
2096         (mpn_sub_1): Likewise.
2097         (mpn_submul_1): Likewise.
2098         (mpn_sub_n): Likewise.
2100 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2102         [BZ #18822]
2103         * include/wchar.h (__wcsnlen): Add attribute_hidden.
2104         (__wcscat): Likewise.
2105         (__btowc): Likewise.
2106         (__wcrtomb): Likewise.
2107         (__mbsrtowcs): Likewise.
2108         (__wcsrtombs): Likewise.
2109         (__mbsnrtowcs): Likewise.
2110         (__wcsnrtombs): Likewise.
2111         (__wcsncpy): Likewise.
2112         (__wcpncpy): Likewise.
2113         (__wmemcpy): Likewise.
2114         (__wmempcpy): Likewise.
2115         (__wmemmove): Likewise.
2116         (__wcschrnul): Likewise.
2117         (__vfwscanf): Likewise.
2118         (__vswprintf): Likewise.
2119         (__fwprintf): Likewise.
2120         (__vfwprintf): Likewise.
2122 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2124         [BZ #18822]
2125         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
2126         (__getgrgid_r): Likewise.
2127         (__getgrnam_r): Likewise.
2128         * include/pwd.h (__getpwuid_r): Likewise.
2129         (__getpwnam_r): Likewise.
2130         (__fgetpwent_r): Likewise.
2131         * include/shadow.h (__getspnam_r): Likewise.
2132         (__sgetspent_r): Likewise.
2133         (__fgetspent_r): Likewise.
2135 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2137         [BZ #18822]
2138         * include/unistd.h (__access): Add attribute_hidden.
2139         (__lseek64): Likewise.
2140         (__libc_pread64): Likewise.
2141         (__pipe2): Likewise.
2142         (__sleep): Likewise.
2143         (__chdir): Likewise.
2144         (__fchdir): Likewise.
2145         (__getcwd): Likewise.
2146         (__rmdir): Likewise.
2147         (__execvpe): Likewise.
2148         (__execve): Likewise.
2149         (__setsid): Likewise.
2150         (__getuid): Likewise.
2151         (__geteuid): Likewise.
2152         (__getgid): Likewise.
2153         (__getegid): Likewise.
2154         (__getgroups): Likewise.
2155         (__group_member): Likewise.
2156         (__ttyname_r): Likewise.
2157         (__isatty): Likewise.
2158         (__readlink): Likewise.
2159         (__unlink): Likewise.
2160         (__gethostname): Likewise.
2161         (__profil): Likewise.
2162         (__getdtablesize): Likewise.
2163         (__brk): Likewise.
2164         (__ftruncate): Likewise.
2165         (__ftruncate64): Likewise.
2167 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2169         [BZ #18822]
2170         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
2171         * argp/argp-fs-xinl.c: Likewise.
2172         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
2173         * argp/argp-parse.c: Include <argp.h>.
2174         * argp/argp-xinl.c: Likewise.
2175         * include/argp-fmtstream.h: New file.
2176         * include/argp.h (__argp_error): Add attribute_hidden.
2177         (__argp_failure): Likewise.
2178         (__argp_input): Likewise.
2179         (__argp_state_help): Likewise.
2181 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2183         [BZ #18822]
2184         * include/wchar.h (____wcstof_l_internal): New prototype.
2185         (____wcstod_l_internal): Likewise.
2186         (____wcstold_l_internal): Likewise.
2187         (____wcstol_l_internal): Likewise.
2188         (____wcstoul_l_internal): Likewise.
2189         (____wcstoll_l_internal): Likewise.
2190         (____wcstoull_l_internal): Likewise.
2191         (____wcstof128_l_internal): Likewise.
2192         * sysdeps/ieee754/float128/wcstof128.c
2193         (____wcstof128_l_internal): Removed.
2194         * sysdeps/ieee754/float128/wcstof128_l.c
2195         (____wcstof128_l_internal): Likewise.
2196         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
2197         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
2198         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
2199         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
2200         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
2201         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
2202         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
2203         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
2204         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
2205         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
2207 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2209         [BZ #18822]
2210         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
2211         instead of <sys/statvfs.h>.
2212         (__internal_statvfs): Removed.
2213         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
2214         instead of <sys/statvfs.h>.
2215         (__internal_statvfs64): Removed.
2216         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
2217         "internal_statvfs.h" instead of <sys/statvfs.h>.
2218         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
2219         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
2220         instead of <sys/statvfs.h>.
2221         (__internal_statvfs): Removed.
2222         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
2223         instead of <sys/statvfs.h>.
2224         (__internal_statvfs64): Removed.
2226 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2228         [BZ #18822]
2229         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
2230         (__gconv_close): Likewise.
2231         (__gconv): Likewise.
2232         (__gconv_find_transform): Likewise.
2233         (__gconv_lookup_cache): Likewise.
2234         (__gconv_compare_alias_cache): Likewise.
2235         (__gconv_load_cache): Likewise.
2236         (__gconv_get_path): Likewise.
2237         (__gconv_close_transform): Likewise.
2238         (__gconv_release_cache): Likewise.
2239         (__gconv_find_shlib): Likewise.
2240         (__gconv_release_shlib): Likewise.
2241         (__gconv_get_builtin_trans): Likewise.
2242         (__gconv_compare_alias): Likewise.
2243         * include/dlfcn.h (_dlerror_run): Likewise.
2244         * include/stdio.h (__fortify_fail_abort): Likewise.
2245         * include/time.h (__tz_compute): Likewise.
2246         (__strptime_internal): Likewise.
2247         * intl/gettextP.h (_nl_find_domain): Likewise.
2248         (_nl_load_domain): Likewise.
2249         (_nl_find_msg): Likewise.
2250         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
2251         (EXTRACT_PLURAL_EXPRESSION): Likewise.
2252         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
2253         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
2254         (__gai_find_request): Likewise.
2255         (__gai_remove_request): Likewise.
2256         (__gai_notify): Likewise.
2257         (__gai_notify_only): Likewise.
2258         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
2259         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
2260         (_dl_non_dynamic_init): Likewise.
2261         (_dl_aux_init): Likewise.
2262         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
2263         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
2264         Likewise.
2265         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
2266         (__wcsmbs_clone_conv): Likewise.
2267         (__wcsmbs_named_conv): Likewise.
2269 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2271         [BZ #18822]
2272         * include/stdlib.h (__random): Add attribute_hidden.
2273         (__random_r): Likewise.
2274         (__srandom_r): Likewise.
2275         (__initstate_r): Likewise.
2276         (__setstate_r): Likewise.
2277         (__erand48_r): Likewise.
2278         (__nrand48_r): Likewise.
2279         (__jrand48_r): Likewise.
2280         (__srand48_r): Likewise.
2281         (__seed48_r): Likewise.
2282         (__lcong48_r): Likewise.
2283         (__drand48_iterate): Likewise.
2284         (__setenv): Likewise.
2285         (__unsetenv): Likewise.
2286         (__clearenv): Likewise.
2287         (__ptsname_r): Likewise.
2288         (__posix_openpt): Likewise.
2289         (__add_to_environ): Likewise.
2290         (__realpath): Add libc_hidden_proto.
2291         (__ecvt_r): Likewise.
2292         (__fcvt_r): Likewise.
2293         (__qecvt_r): Likewise.
2294         (__qfcvt_r): Likewise.
2295         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
2296         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
2298 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2300         [BZ #18822]
2301         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
2302         * include/time.h (__mktime_internal): Likewise.
2303         * libio/iolibio.h (__fopen_internal): Likewise.
2305 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
2307         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
2308         pointer in frame.
2309         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
2310         Correct offset used to restore PIC register.
2312 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
2314         [BZ libc/22165]
2315         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
2316         code to load address of __getcontext_ret when generating PIC code.
2318 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2320         * elf/Makefile (tests-static-internal): Add
2321         tst-tls1-static-non-pie.
2322         (LDFLAGS-tst-tls1-static-non-pie): New.
2323         * elf/tst-tls1-static-non-pie.c: New file.
2325 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
2327         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
2328         (asinh): Define using libm_alias_double.
2329         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
2330         (cbrt): Define using libm_alias_double.
2331         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
2332         <libm-alias-double.h>.
2333         (copysign): Define using libm_alias_double.
2334         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
2335         (erf): Define using libm_alias_double.
2336         (erfc): Likewise.
2337         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
2338         (expm1): Define using libm_alias_double.
2339         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
2340         (fabs): Define using libm_alias_double.
2341         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
2342         libm_alias_double.
2343         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
2344         <libm-alias-double.h>.
2345         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
2346         libm_alias_double.
2347         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
2348         <libm-alias-double.h>.
2349         (getpayload): Define using libm_alias_double.
2350         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
2351         <libm-alias-double.h>.
2352         (llrint): Define using libm_alias_double.
2353         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
2354         (lrint): Define using libm_alias_double.
2355         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
2356         <libm-alias-double.h>.
2357         (nextup): Define using libm_alias_double.
2358         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
2359         <libm-alias-double.h>.
2360         (roundeven): Define using libm_alias_double.
2361         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
2362         libm_alias_double.
2363         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
2364         <libm-alias-double.h>.
2365         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
2366         using libm_alias_double.
2367         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
2368         (cos): Define using libm_alias_double.
2369         (sin): Likewise.
2370         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
2371         <libm-alias-double.h>.
2372         (sincos): Define using libm_alias_double.
2373         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
2374         (tanh): Define using libm_alias_double.
2375         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2376         <libm-alias-double.h>.
2377         (totalorder): Define using libm_alias_double.
2378         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2379         <libm-alias-double.h>.
2380         (totalordermag): Define using libm_alias_double.
2381         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
2382         libm_alias_double.
2383         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
2384         libm_alias_double.
2385         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
2386         <libm-alias-double.h>.
2387         (getpayload): Define using libm_alias_double.
2388         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
2389         <libm-alias-double.h>.
2390         (roundeven): Define using libm_alias_double.
2391         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
2392         <libm-alias-double.h>.
2393         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2394         <libm-alias-double.h>.
2395         (totalorder): Define using libm_alias_double.
2396         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2397         <libm-alias-double.h>.
2398         (totalordermag): Define using libm_alias_double.
2399         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
2400         libc compat symbol here.
2401         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
2402         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
2403         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
2404         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
2405         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
2406         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
2407         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
2408         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
2409         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
2410         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
2412 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2414         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
2415         _dl_relocate_static_pie instead of _dl_start to compute load
2416         address in static PIE.  Return 0 if _DYNAMIC is undefined for
2417         static executable.
2419 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2421         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
2422         _DYNAMIC is undefined for static executable.
2424 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
2426         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
2428 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
2430         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2432 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
2434         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2435         (__ieee754_lgamma_r): Use fabs rather than __fabs.
2436         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
2437         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2438         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2439         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
2440         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2441         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
2442         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
2443         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
2444         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2445         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
2446         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
2447         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
2448         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
2449         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
2450         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
2452 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
2454         * math/bits/cmathcalls.h (cimag): Remove inline.
2455         (creal): Remove inline.
2456         (conj): Remove inline.
2458 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2460         * math/Makefile (type-float-routines): Add e_powf_log2_data.
2461         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
2462         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
2463         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
2464         (issignalingf_inline): Likewise.
2465         (POWF_LOG2_TABLE_BITS): Likewise.
2466         (POWF_LOG2_POLY_ORDER): Likewise.
2467         (POWF_SCALE_BITS): Likewise.
2468         (POWF_SCALE): Likewise.
2469         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
2470         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
2471         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
2473 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2475         * math/Makefile (type-float-routines): Add e_log2f_data.
2476         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
2477         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
2478         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
2479         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
2480         * sysdeps/i386/fpu/e_log2f_data.c: New file.
2481         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
2482         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
2484 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2486         * math/Makefile (type-float-routines): Add e_logf_data.
2487         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
2488         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
2489         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
2490         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
2491         * sysdeps/i386/fpu/e_logf_data.c: New file.
2492         * sysdeps/ia64/fpu/e_logf_data.c: New file.
2493         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
2495 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2497         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
2498         undefined _DYNAMIC in PIE libc.a.
2499         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2500         Likewse.
2502 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
2504         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
2505         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
2506         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
2507         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
2508         (__signbit): Remove.
2509         (__signbitl): Remove.
2510         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
2511         (__signbit): Remove.
2512         (__signbitl): Remove.
2513         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
2514         (__signbit): Remove.
2515         (__signbitl): Remove.
2516         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
2517         (__signbit): Remove.
2518         (__signbitl): Remove.
2519         * sysdeps/tile/bits/mathinline.h: Delete file.
2520         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
2521         (__signbit): Remove.
2522         (__signbitl): Remove.
2524 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
2526         * math/math.h: Improve handling of C99 isgreater macros.
2527         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
2528         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
2529         * sysdeps/powerpc/bits/mathinline.h: Likewise.
2530         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
2531         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
2533 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2535         * sysdeps/aarch64/libm-test-ulps: Update.
2537 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
2539         [BZ #22225]
2540         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2541         math_opt_barrier on argument when doing arithmetic on it.
2542         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2543         Likewise.  Use math_force_eval not math_opt_barrier after
2544         arithmetic.
2545         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
2546         math_opt_barrier on argument when doing arithmetic on it.
2547         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
2548         Likewise.
2550 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2552         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
2553         libc_hidden_def.
2554         (__freeifaddrs): Likewise.
2556 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2558         * include/dirent.h (__dirfd): New declaration.
2559         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
2560         alias.
2561         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
2562         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
2563         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
2564         * include/unistd.h (__revoke): New declaration.
2565         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
2566         alias.
2567         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
2568         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
2569         revoke.
2570         * include/dirent.h (__seekdir): New declaration.
2571         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
2572         redefine as weak alias.
2573         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
2574         of seekdir.
2575         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
2576         and use libc_hidden_def on them.
2577         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
2578         them.
2579         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
2580         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
2581         instead of getifaddrs and freeifaddrs.
2583 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
2585         [BZ #18822]
2586         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
2587         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
2588         (__dso_handle): Remove declaration.
2589         * dlfcn/tstatexit.c (__dso_handle): Removed.
2590         (main): Don't check __dso_handle.
2591         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
2592         (main): Don't check __dso_handle.
2593         * include/dso_handle.h: New file.
2594         * malloc/mtrace.c: Include <dso_handle.h>.
2595         (mtrace): Pass __dso_handle directly.
2596         * nptl/pthread_atfork.c: Include <dso_handle.h>.
2597         (__dso_handle): Remove declaration.
2598         (__pthread_atfork): Pass __dso_handle directly.
2599         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
2600         (__dso_handle): Removed.
2601         * posix/wordexp-test.c: Include <dso_handle.h>.
2602         (__dso_handle): Remove declaration.
2603         (__app_register_atfork): Pass __dso_handle directly.
2604         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
2605         (__dso_handle): Remove declaration.
2606         (at_quick_exit): Pass __dso_handle directly.
2607         * stdlib/atexit.c: Include <dso_handle.h>.
2608         (__dso_handle): Remove declaration.
2609         (atexit): Pass __dso_handle directly.
2610         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
2611         (__dso_handle): Removed.
2613 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
2615         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
2616         using VDSO.
2618 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
2620         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
2621         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
2622         values to correct default value for given type.
2624 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
2626         [BZ #22101]
2627         * elf/Makefile (tests): Add tst-debug1.
2628         ($(objpfx)tst-debug1): New.
2629         ($(objpfx)tst-debug1.out): Likewise.
2630         ($(objpfx)tst-debug1mod1.so): Likewise.
2631         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
2632         with p_filesz == 0.
2633         * elf/tst-debug1.c: New file.
2635 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
2637         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
2638         Define using __ifunc.
2640 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2642         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
2643         exp2f() values.
2645 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
2647         [BZ #22156]
2648         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
2650 2017-09-26  Florian Weimer  <fweimer@redhat.com>
2652         * resolv/Makefile (tests-internal): Fix typo in comment.
2654 2017-09-26  Florian Weimer  <fweimer@redhat.com>
2656         * resolv/nss_dns/dns-host.c: Fix typo in comment.
2658 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2660         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
2661         Use an union instead of a max_align_t array for __space,
2662         so that __space is the same size on all platforms.
2663         * malloc/scratch_buffer_grow_preserve.c
2664         (__libc_scratch_buffer_grow_preserve): Likewise.
2666         [BZ #22183]
2667         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
2668         version to 2.
2669         * posix/Makefile (routines): Add glob-lstat-compat and
2670         glob64-lstat-compat.
2671         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
2672         * posix/glob-lstat-compat.c: New file.
2673         * posix/glob64-lstat-compat.c: Likewise.
2674         * posix/tst-glob_lstat_compat.c: Likewise.
2675         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
2676         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
2677         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
2678         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
2679         Likewise.
2680         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
2681         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
2682         * posix/glob.c (glob_lstat): New function.
2683         (glob): Rename to __glob and add versioned symbol to 2.27.
2684         (glob_in_dir): Use glob_lstat.
2685         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
2686         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2687         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
2688         2.27.
2689         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
2690         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
2691         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
2692         gl_lstat on glob call.
2693         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
2694         and glob64 symbols.
2695         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2696         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2697         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2698         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2699         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2700         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2701         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2702         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2703         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2704         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2705         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2706         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2708         Likewise.
2709         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2711         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2712         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2713         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2714         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2715         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2717         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2718         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2719         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2720         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2722 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
2724         * configure.ac (AS): Require binutils 2.25 or later.
2725         * configure: Regenerated.
2727 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
2729         [BZ #22207]
2730         * stdlib/test-atexit-race-common.c (do_test): Minimize required
2731         VM size.
2733 2017-09-25  DJ Delorie  <dj@redhat.com>
2735         [BZ #22161]
2736         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
2737         resetting timeout.
2739 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2741         * sysdeps/ieee754/dbl-64/sincos32.h
2742         [SINCCOS32_H]: Remove define.
2743         [SINCOS32_H]: Define.
2745 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2747         * math/Versions (expf): New libm symbol at GLIBC_2.27.
2748         (exp2f): Likewise.
2749         * math/w_exp2f.c: New file.
2750         * math/w_expf.c: New file.
2751         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
2752         * math/w_expf_compat.c (__expf_compat): Likewise.
2753         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
2754         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2755         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2756         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2757         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2758         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2759         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2760         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2761         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2762         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2763         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2764         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2765         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2766         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2768         Likewise.
2769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2770         Likewise.
2771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2772         Likewise.
2773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2774         Likewise.
2775         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2776         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2777         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2778         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2779         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2781         Likewise.
2782         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2783         Likewise.
2784         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2785         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2786         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2788 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2790         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
2791         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
2792         (roundtoint, converttoint): Likewise.
2793         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
2794         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
2795         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
2796         * sysdeps/ieee754/flt-32/math_config.h: New file.
2797         * sysdeps/ieee754/flt-32/math_errf.c: New file.
2798         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
2799         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
2800         * sysdeps/i386/fpu/math_errf.c: New file.
2801         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
2802         * sysdeps/ia64/fpu/math_errf.c: New file.
2803         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
2804         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
2806 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2808         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
2809         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
2810         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
2811         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
2812         to make sure that these symbols are defined.
2813         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
2814         of <limits.h>
2815         (__need_NULL): Do not define.
2816         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
2817         alignment.
2818         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
2819         CMGROUP_MAX, cmsgcred): Do not define.
2820         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
2821         NULL.
2822         * bits/socket.h: Likewise.
2823         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
2824         __gettimeofday instead of gettimeofday.
2825         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
2826         instead of settimeofday.
2828 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
2830         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
2831         (asinhf): Define using libm_alias_float.
2832         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
2833         (atanf): Define using libm_alias_float.
2834         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
2835         (cbrtf): Define using libm_alias_float.
2836         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
2837         (ceilf): Define using libm_alias_float.
2838         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
2839         <libm-alias-float.h>.
2840         (copysignf): Define using libm_alias_float.
2841         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
2842         (cosf): Define using libm_alias_float.
2843         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
2844         (erff): Define using libm_alias_float.
2845         (erfcf): Likewise.
2846         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
2847         (expm1f): Define using libm_alias_float.
2848         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
2849         (fabsf): Define using libm_alias_float.
2850         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
2851         (floorf): Define using libm_alias_float.
2852         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
2853         (frexpf): Define using libm_alias_float.
2854         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
2855         libm_alias_float.
2856         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
2857         <libm-alias-float.h>.
2858         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
2859         libm_alias_float.
2860         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
2861         <libm-alias-float.h>.
2862         (getpayloadf): Define using libm_alias_float.
2863         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
2864         <libm-alias-float.h>.
2865         (llrintf): Define using libm_alias_float.
2866         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
2867         <libm-alias-float.h>.
2868         (llroundf): Define using libm_alias_float.
2869         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
2870         (logbf): Define using libm_alias_float.
2871         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
2872         (lrintf): Define using libm_alias_float.
2873         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
2874         (lroundf): Define using libm_alias_float.
2875         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
2876         (modff): Define using libm_alias_float.
2877         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
2878         <libm-alias-float.h>.
2879         (nearbyintf): Define using libm_alias_float.
2880         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
2881         <libm-alias-float.h>.
2882         (nextafterf): Define using libm_alias_float.
2883         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
2884         <libm-alias-float.h>.
2885         (nextupf): Define using libm_alias_float.
2886         * sysdeps/ieee754/flt-32/s_remquof.c: Include
2887         <libm-alias-float.h>.
2888         (remquof): Define using libm_alias_float.
2889         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
2890         (rintf): Define using libm_alias_float.
2891         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
2892         <libm-alias-float.h>.
2893         (roundevenf): Define using libm_alias_float.
2894         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
2895         (roundf): Define using libm_alias_float.
2896         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
2897         using libm_alias_float.
2898         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
2899         <libm-alias-float.h>.
2900         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
2901         Define using libm_alias_float.
2902         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
2903         <libm-alias-float.h>.
2904         (sincosf): Define using libm_alias_float.
2905         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
2906         (sinf): Define using libm_alias_float.
2907         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
2908         (tanf): Define using libm_alias_float.
2909         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
2910         (tanhf): Define using libm_alias_float.
2911         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2912         <libm-alias-float.h>.
2913         (totalorderf): Define using libm_alias_float.
2914         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2915         <libm-alias-float.h>.
2916         (totalordermagf): Define using libm_alias_float.
2917         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
2918         (truncf): Define using libm_alias_float.
2919         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
2920         libm_alias_float.
2921         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
2922         libm_alias_float.
2924 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2926         [BZ #22146]
2927         math/math.h: Let fpclassify use the builtin in C++ mode, even
2928         when optimazing for size.
2930 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
2932         * csu/Makefile (generated): Do not add version-info.h.
2933         (before-compile): Likewise.
2934         (all-Banner-files): Remove variable.
2935         ($(objpfx)version-info.h): Remove rule.
2936         * csu/version.c (banner): Do not include "version-info.h".
2937         * libidn/Banner: Remove.
2938         * manual/contrib.texi (Simon Josefsson): New entry.
2940 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2942         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2943         Remove conditionals on LDBL_MANT_DIG.
2944         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
2945         (__ieee754_lgammal_r): Likewise.
2947 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2949         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
2950         _Float128 and L().
2951         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
2952         _Float128 and L(). Replace _Float128 with long double and L(x)
2953         with xL, throughout the file.
2954         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2955         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
2956         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
2957         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
2959 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2961         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
2962         sysdeps/ieee754/ldbl-128ibm.
2963         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
2964         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
2965         of including it.  Keep _Float128 and L() intact.  These will be
2966         reviewed by a separate patch.
2967         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2968         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
2969         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
2970         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
2972 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
2975         (__finitef128): Define to __redirect___finitef128.
2976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
2977         (__isinff128): Define to __redirect___isinff128.
2978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
2979         (__isnanf128): Define to __redirect___isnanf128.
2981 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2983         * sysdeps/powerpc/powerpc64le/Makefile
2984         (CFLAGS-tst-strtod-nan-locale.c): New variable.
2985         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
2987 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
2988             Carlos O'Donell  <carlos@redhat.com>
2990         [BZ #22180]
2991         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
2992         * stdlib/test-dlclose-exit-race.c: New file.
2993         * stdlib/test-dlclose-exit-race-helper.c: New file.
2994         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
2996 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
2998         * crypt/Banner: Remove file.
2999         * nptl/Banner: Likewise.
3000         * resolv/Banner: Likewise.
3001         * soft-fp/Banner: Likewise.
3002         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
3003         ($(objpfx)version.d): Remove dependency on banner.h.
3004         ($(objpfx)version.os): Likewise.
3005         * nptl/version.c (banner): Do not include banner.h.
3006         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
3007         Jelinek and BIND code.
3009 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
3010             Carlos O'Donell  <carlos@redhat.com>
3012         * support/xdlfcn.h: New file.
3013         * support/xdlfcn.c: New file.
3014         * support/Makefile (libsupport-routines): Add xdlfcn.
3015         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
3017 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
3019         [BZ #20142]
3020         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3021         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
3022         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
3023         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
3024         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3025         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
3026         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
3027         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3029 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
3030             Ricky Zhou  <rickyz@google.com>
3031             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
3033         [BZ #14333]
3034         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
3035         Remove atomics.
3036         (__new_exitfn): Fail registration when we finished at_exit processing.
3037         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
3038         * stdlib/on_exit.c (__on_exit): Likewise.
3039         * stdlib/exit.c (__exit_funcs_done): New variable.
3040         (__run_exit_handlers): Use __exit_funcs_lock.
3041         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
3042         declarations.
3043         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
3044         (test-cxa_atexit-race, test-on_exit-race): New tests.
3045         * stdlib/test-atexit-race-common.c: New file.
3046         * stdlib/test-atexit-race.c: New file.
3047         * stdlib/test-at_quick_exit-race.c: New file.
3048         * stdlib/test-cxa_atexit-race.c: New file.
3049         * stdlib/test-on_exit-race.c: New file.
3051 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3053         * benchtests/Makefile: Add exp2f and log2f benchmarks.
3054         * benchtests/exp2f-inputs: Copy of expf-inputs.
3055         * benchtests/log2f-inputs: Copy of logf-inputs.
3057 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
3059         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
3060         Explicitly take address of first element of array arguments in
3061         call to INLINE_SYSCALL.
3063 2017-09-19  Andreas Schwab  <schwab@suse.de>
3065         [BZ #22134]
3066         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
3067         execveat first.
3068         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
3069         unimplemented.
3070         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
3071         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
3072         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3073         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
3074         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3075         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
3076         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3077         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
3078         * posix/Makefile (tests): Add tst-fexecve.
3079         * posix/tst-fexecve.c: New file.
3081 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3083         * benchtests/Makefile: Add logf benchmark.
3084         * benchtests/logf-inputs: Add reduced trace from wrf_r.
3086 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3088         * benchtests/Makefile: Add expf benchmark.
3089         * benchtests/expf-inputs: Add reduced trace from wrf_r.
3091 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3093         * csu/Makefile: Add -funwind-tables to libc-start.c.
3094         * debug/Makefile: Add -funwind-tables to backtrace.c.
3095         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
3096         * sysdeps/arm/Makefile: Likewise.
3097         * sysdeps/i386/Makefile: Likewise.
3098         * sysdeps/m68k/Makefile: Likewise.
3099         * sysdeps/mips/Makefile: Likewise.
3100         * sysdeps/nios2/Makefile: Likewise.
3101         * sysdeps/sh/Makefile: Likewise.
3102         * sysdeps/sparc/Makefile: Likewise.
3104 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
3106         * benchtests/Makefile (bench-math): Add trunc and truncf.
3107         (CFLAGS-bench-trunc.c): New variable.
3108         (CFLAGS-bench-truncf.c): Likewise.
3109         * benchtests/trunc-inputs: New file.
3110         * benchtests/truncf-inputs: Likewise.
3112 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3114         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
3116 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
3118         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
3119         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
3120         redefine.
3121         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3122         (exp10l): Define as weak alias.
3123         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
3124         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
3125         and redefine.
3126         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
3127         (remainderl): Define as weak alias.
3129         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
3130         (fmal): Define using libm_alias_ldouble.
3131         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
3132         (acoshl): Define using libm_alias_ldouble.
3133         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
3134         (acosl): Define using libm_alias_ldouble.
3135         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
3136         (asinl): Define using libm_alias_ldouble.
3137         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
3138         (atan2l): Define using libm_alias_ldouble.
3139         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
3140         (atanhl): Define using libm_alias_ldouble.
3141         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
3142         (coshl): Define using libm_alias_ldouble.
3143         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
3144         (exp10l): Define using libm_alias_ldouble.
3145         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
3146         (exp2l): Define using libm_alias_ldouble.
3147         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
3148         (expl): Define using libm_alias_ldouble.
3149         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
3150         (fmodl): Define using libm_alias_ldouble.
3151         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
3152         (hypotl): Define using libm_alias_ldouble.
3153         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
3154         (j0l): Define using libm_alias_ldouble.
3155         (y0l): Likewise.
3156         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
3157         (j1l): Define using libm_alias_ldouble.
3158         (y1l): Likewise.
3159         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
3160         (jnl): Define using libm_alias_ldouble.
3161         (ynl): Likewise.
3162         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
3163         (log10l): Define using libm_alias_ldouble.
3164         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
3165         (log2l): Define using libm_alias_ldouble.
3166         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
3167         (logl): Define using libm_alias_ldouble.
3168         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
3169         (powl): Define using libm_alias_ldouble.
3170         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
3171         (remainderl): Define using libm_alias_ldouble.
3172         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
3173         (sinhl): Define using libm_alias_ldouble.
3174         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
3175         (sqrtl): Define using libm_alias_ldouble.
3176         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
3177         (tgammal): Define using libm_alias_ldouble.
3178         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
3179         (exp10l): Do not use long_double_symbol here.
3180         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3181         [LIBM_SVID_COMPAT] (remainderl): Likewise.
3182         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
3183         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
3184         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
3185         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
3186         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
3187         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
3188         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
3189         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3190         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
3191         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
3192         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
3193         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
3194         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
3195         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
3196         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
3197         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
3198         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
3199         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
3200         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
3201         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
3203 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
3205         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
3206         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
3208 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3210         * io/read.c (read): Add libc_hidden_weak.
3211         * sysdeps/mach/hurd/read.c (read): Likewise.
3212         * io/write.c (write): Likewise.
3213         * sysdeps/mach/hurd/write.c (write): Likewise.
3214         * io/pread64.c (__pread64): Likewise.
3215         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
3216         * posix/pread64.c (__pread64): Add libc_hidden_def.
3218 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3220         * benchtests/scripts/compare_strings.py: New option -g.
3221         (draw_graph): Print a message that a graph is being generated.
3222         (process_results): Generate graph only if -g is passed.
3223         (main): Process option -g.
3225         * benchtests/scripts/compare_strings.py (process_results):
3226         Better spacing for output.
3228         * benchtests/scripts/compare_strings.py: Use argparse.
3229         * benchtests/README: Document existence of compare_strings.py.
3231 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
3233         * math/s_fma.c: Include <libm-alias-double.h>.
3234         (fma): Define using libm_alias_double.
3235         * math/s_nextafter.c: Include <libm-alias-double.h>.
3236         (nextafter): Define using libm_alias_double.
3237         * math/w_acos_compat.c: Include <libm-alias-double.h>.
3238         (acos): Define using libm_alias_double.
3239         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
3240         (aocsh): Define using libm_alias_double.
3241         * math/w_asin_compat.c: Include <libm-alias-double.h>.
3242         (asin): Define using libm_alias_double.
3243         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
3244         (atan2): Define using libm_alias_double.
3245         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
3246         (atanh): Define using libm_alias_double.
3247         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
3248         (cosh): Define using libm_alias_double.
3249         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
3250         (exp10): Define using libm_alias_double.
3251         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
3252         (exp2): Define using libm_alias_double.
3253         * math/w_exp_compat.c: Include <libm-alias-double.h>.
3254         (exp): Define using libm_alias_double.
3255         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
3256         (fmod): Define using libm_alias_double.
3257         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
3258         (hypot): Define using libm_alias_double.
3259         * math/w_j0_compat.c: Include <libm-alias-double.h>.
3260         (j0): Define using libm_alias_double.
3261         (y0): Likewise.
3262         * math/w_j1_compat.c: Include <libm-alias-double.h>.
3263         (j1): Define using libm_alias_double.
3264         (y1): Likewise.
3265         * math/w_jn_compat.c: Include <libm-alias-double.h>.
3266         (jn): Define using libm_alias_double.
3267         (yn): Likewise.
3268         * math/w_log10_compat.c: Include <libm-alias-double.h>.
3269         (log10): Define using libm_alias_double.
3270         * math/w_log2_compat.c: Include <libm-alias-double.h>.
3271         (log2): Define using libm_alias_double.
3272         * math/w_log_compat.c: Include <libm-alias-double.h>.
3273         (log): Define using libm_alias_double.
3274         * math/w_pow_compat.c: Include <libm-alias-double.h>.
3275         (pow): Define using libm_alias_double.
3276         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
3277         (remainder): Define using libm_alias_double.
3278         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
3279         (sinh): Define using libm_alias_double.
3280         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
3281         (sqrt): Define using libm_alias_double.
3282         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
3283         (tgamma): Define using libm_alias_double.
3284         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
3285         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
3286         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
3287         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
3288         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
3289         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
3290         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
3291         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
3292         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
3293         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
3294         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
3295         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
3296         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3297         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
3298         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
3299         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
3300         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
3301         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
3302         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
3303         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
3304         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
3305         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
3306         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
3307         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
3308         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
3310         * math/e_acoshl.c: Remove.
3311         * math/e_acosl.c: Likewise.
3312         * math/e_asinl.c: Likewise.
3313         * math/e_atan2l.c: Likewise.
3314         * math/e_atanhl.c: Likewise.
3315         * math/e_coshl.c: Likewise.
3316         * math/e_expl.c: Likewise.
3317         * math/e_fmodl.c: Likewise.
3318         * math/e_gammal_r.c: Likewise.
3319         * math/e_hypotl.c: Likewise.
3320         * math/e_j0l.c: Likewise.
3321         * math/e_j1l.c: Likewise.
3322         * math/e_jnl.c: Likewise.
3323         * math/e_lgammal_r.c: Likewise.
3324         * math/e_log10l.c: Likewise.
3325         * math/e_log2l.c: Likewise.
3326         * math/e_logl.c: Likewise.
3327         * math/e_powl.c: Likewise.
3328         * math/e_rem_pio2l.c: Likewise.
3329         * math/e_sinhl.c: Likewise.
3330         * math/e_sqrtf128.c: Likewise.
3331         * math/e_sqrtl.c: Likewise.
3332         * math/k_cosl.c: Likewise.
3333         * math/k_sinl.c: Likewise.
3334         * math/k_tanl.c: Likewise.
3335         * math/s_asinhl.c: Likewise.
3336         * math/s_atanl.c: Likewise.
3337         * math/s_cbrtl.c: Likewise.
3338         * math/s_erfl.c: Likewise.
3339         * math/s_expm1l.c: Likewise.
3340         * math/s_log1pl.c: Likewise.
3341         * math/s_tanhl.c: Likewise.
3343 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3345         [BZ #21745]
3346         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
3347         [$(subdir) = math] (sysdep_calls): New variable.  Has the
3348         previous contents of sysdep_routines, but re-sorted..
3349         [$(subdir) = math] (sysdep_routines): Re-use the contents from
3350         sysdep_calls.
3351         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
3352         defined in sysdep_calls and replace by the respective m_* names.
3353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
3354         (compat_symbol): Undefine to avoid duplicated compat symbols in
3355         libc.
3357 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
3359         * math/s_fmaf.c: Include <libm-alias-float.h>.
3360         (fmaf): Define using libm_alias_float.
3361         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
3362         (acosf): Define using libm_alias_float.
3363         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
3364         (acoshf): Define using libm_alias_float.
3365         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
3366         (asinf): Define using libm_alias_float.
3367         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
3368         (atan2f): Define using libm_alias_float.
3369         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
3370         (atanhf): Define using libm_alias_float.
3371         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
3372         (coshf): Define using libm_alias_float.
3373         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
3374         (exp10f): Define using libm_alias_float.
3375         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
3376         (fmodf): Define using libm_alias_float.
3377         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
3378         (hypotf): Define using libm_alias_float.
3379         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
3380         (j0f): Define using libm_alias_float.
3381         (y0f): Likewise.
3382         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
3383         (j1f): Define using libm_alias_float.
3384         (y1f): Likewise.
3385         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
3386         (jnf): Define using libm_alias_float.
3387         (ynf): Likewise.
3388         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
3389         (log10f): Define using libm_alias_float.
3390         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
3391         (log2f): Define using libm_alias_float.
3392         * math/w_logf_compat.c: Include <libm-alias-float.h>.
3393         (logf): Define using libm_alias_float.
3394         * math/w_powf_compat.c: Include <libm-alias-float.h>.
3395         (powf): Define using libm_alias_float.
3396         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
3397         (remainderf): Define using libm_alias_float.
3398         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
3399         (sinhf): Define using libm_alias_float.
3400         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
3401         (sqrtf): Define using libm_alias_float.
3402         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
3403         (tgammaf): Define using libm_alias_float.
3405 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
3407         * include/math.h (roundeven): Change hidden_proto call to
3408         __roundeven.
3409         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
3410         alias.
3411         [NO_LONG_DOUBLE] (__j0l): New strong alias.
3412         (y0): Rename to __y0 and define as weak alias.
3413         [NO_LONG_DOUBLE] (__y0l): New strong alias.
3414         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
3415         alias.
3416         (y0f): Rename to __y0f and define as weak alias.
3417         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
3418         alias.
3419         [NO_LONG_DOUBLE] (__j1l): New strong alias.
3420         (y1): Rename to __y1 and define as weak alias.
3421         [NO_LONG_DOUBLE] (__y1l): New strong alias.
3422         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
3423         alias.
3424         (y1f): Rename to __y1f and define as weak alias.
3425         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
3426         alias.
3427         [NO_LONG_DOUBLE] (__jnl): New strong alias.
3428         (yn): Rename to __yn and define as weak alias.
3429         [NO_LONG_DOUBLE] (__ynl): New strong alias.
3430         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
3431         alias.
3432         (ynf): Rename to __ynf and define as weak alias.
3433         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
3434         (fromfp): Define as weak alias.
3435         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
3436         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
3437         (fromfpx): Define as weak alias.
3438         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
3439         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
3440         __getpayload and define as weak alias.
3441         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
3442         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
3443         __roundeven and define as weak alias.
3444         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
3445         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
3446         __setpayload.
3447         (setpayload): Define as weak alias.
3448         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
3449         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
3450         __setpayloadsig.
3451         (setpayloadsig): Define as weak alias.
3452         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
3453         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
3454         __totalorder and define as weak alias.
3455         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
3456         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
3457         to __totalordermag and define as weak alias.
3458         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
3459         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
3460         (ufromfp): Define as weak alias.
3461         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
3462         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
3463         __ufromfpx.
3464         (ufromfpx): Define as weak alias.
3465         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
3466         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
3467         Rename to __getpayload and define as weak alias.
3468         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
3469         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
3470         Rename to __roundeven and define as weak alias.
3471         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
3472         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
3473         Rename to __totalorder and define as weak alias.
3474         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
3475         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
3476         (totalordermag): Rename to __totalordermag and define as weak
3477         alias.
3478         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
3479         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
3480         macro.
3481         (__roundevenl): Likewise.
3482         (__totalorderl): Likewise.
3483         (__totalordermagl): Likewise
3484         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
3485         __fromfpf128.
3486         (fromfpf128): Define as weak alias.
3487         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
3488         __fromfpxf128.
3489         (fromfpxf128): Define as weak alias.
3490         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
3491         __setpayloadf128.
3492         (setpayloadf128): Define as weak alias.
3493         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
3494         __setpayloadsigf128.
3495         (setpayloadsigf128): Define as weak alias.
3496         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
3497         __ufromfpf128.
3498         (ufromfpf128): Define as weak alias.
3499         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
3500         __ufromfpxf128.
3501         (ufromfpxf128): Define as weak alias.
3502         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
3503         (fromfpf): Define as weak alias.
3504         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
3505         __fromfpxf.
3506         (fromfpxf): Define as weak alias.
3507         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
3508         __getpayloadf and define as weak alias.
3509         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
3510         __roundevenf and define as weak alias.
3511         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
3512         __setpayloadf.
3513         (setpayloadf): Define as weak alias.
3514         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
3515         __setpayloadsigf.
3516         (setpayloadsigf): Define as weak alias.
3517         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
3518         __totalorderf and define as weak alias.
3519         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
3520         Rename to __totalordermagf and define as weak alias.
3521         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
3522         __ufromfpf.
3523         (ufromfpf): Define as weak alias.
3524         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
3525         __ufromfpxf.
3526         (ufromfpxf): Define as weak alias.
3527         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
3528         __fromfpl.
3529         (fromfpl): Define as weak alias.
3530         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
3531         __fromfpxl.
3532         (fromfpxl): Define as weak alias.
3533         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
3534         to __getpayloadl and define as weak alias.
3535         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
3536         __roundevenl and define as weak alias.
3537         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
3538         __setpayloadl.
3539         (setpayloadl): Define as weak alias.
3540         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
3541         __setpayloadsigl.
3542         (setpayloadsigl): Define as weak alias.
3543         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
3544         to __totalorderl and define as weak alias.
3545         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
3546         Rename to __totalordermagl and define as weak alias.
3547         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
3548         __ufromfpl.
3549         (ufromfpl): Define as weak alias.
3550         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
3551         __ufromfpxl.
3552         (ufromfpxl): Define as weak alias.
3553         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
3554         __fromfpl.
3555         (fromfpl): Define as weak alias.
3556         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
3557         __fromfpxl.
3558         (fromfpxl): Define as weak alias.
3559         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
3560         Rename to __getpayloadl and define as weak alias.
3561         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
3562         to __roundevenl and define as weak alias.  Call __roundeven
3563         instead of roundeven.
3564         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
3565         __setpayloadl.
3566         (setpayloadl): Define as weak alias.
3567         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
3568         __setpayloadsigl.
3569         (setpayloadsigl): Define as weak alias.
3570         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
3571         Rename to __totalorderl and define as weak alias.
3572         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
3573         Rename to __totalordermagl and define as weak alias.
3574         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
3575         __ufromfpl.
3576         (ufromfpl): Define as weak alias.
3577         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
3578         __ufromfpxl.
3579         (ufromfpxl): Define as weak alias.
3580         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
3581         __fromfpl.
3582         (fromfpl): Define as weak alias.
3583         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
3584         __fromfpxl.
3585         (fromfpxl): Define as weak alias.
3586         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
3587         __getpayloadl and define as weak alias.
3588         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
3589         __roundevenl and define as weak alias.
3590         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
3591         __setpayloadl.
3592         (setpayloadl): Define as weak alias.
3593         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
3594         __setpayloadsigl.
3595         (setpayloadsigl): Define as weak alias.
3596         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
3597         __totalorderl and define as weak alias.
3598         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
3599         Rename to __totalordermagl and define as weak alias.
3600         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
3601         __ufromfpl.
3602         (ufromfpl): Define as weak alias.
3603         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
3604         __ufromfpxl.
3605         (ufromfpxl): Define as weak alias.
3607 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3609         * benchtests/bench-string.h (realloc_bufs): New function.
3610         (test_init): Call it.
3611         * benchtests/bench-memset-large.c (do_test): Likewise.
3612         * benchtests/bench-memset.c (do_test): Likewise.
3614         * benchtests/bench-memset-large.c: Print output in JSON
3615         format.
3616         * benchtests/bench-memset.c: Likewise.
3618 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
3620         [BZ #21084]
3621         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
3622         * iconvdata/Makefile: Add IBM858.
3623         * iconvdata/gconv-modules: Likewise.
3624         * iconvdata/tst-tables.sh: Likewise.
3625         * iconvdata/ibm858.c: New file.
3626         * localedata/charmaps/IBM858: Likewise.
3628 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
3630         [BZ #22023]
3631         * locales/niu_NZ (LC_TIME): copy "niu_NU".
3632         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
3634 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
3636         [BZ #22112]
3637         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
3638         and add tel_int_fmt.
3640 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
3642         * sysdeps/generic/libm-alias-float128.h: New file.
3643         * sysdeps/generic/math-type-macros-float128.h: Include
3644         <libm-alias-float128.h>.
3645         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3647 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
3649         * sysdeps/generic/libm-alias-ldouble.h: New file.
3650         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
3651         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
3652         * sysdeps/generic/math-type-macros-ldouble.h: Include
3653         <libm-alias-ldouble.h>.
3654         [!declare_mgen_alias] (declare_mgen_alias): Define to use
3655         libm_alias_ldouble.
3657 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3659         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
3660         * math/w_exp_compat.c: ... here.
3661         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
3662         * math/w_expf_compat.c: ... here.
3663         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
3664         * math/w_expl_compat.c: ... here.
3665         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
3666         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
3667         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
3668         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3670 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
3672         * math/w_scalbln_template.c (strong_alias): Do not undefine and
3673         redefine.
3674         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
3675         macro.
3676         (ldexpl): Only define as compat symbol for libc, not libm.
3677         (scalbnl): Define as compat symbol for libc here.
3678         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
3679         define for [IS_IN (libc)].
3680         (__ldexpl_2): Remove alias.
3681         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
3682         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
3683         name in long_double_symbol call.
3684         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
3685         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
3686         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
3687         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
3688         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
3689         Remove macro.
3690         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
3691         Define as compat symbol.
3693 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3695         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
3696         * sysdeps/unix/sysv/linux/alpha/Makefile
3697         [$(subdir) = csu] (sysdep_routines): Remove rule.
3699 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
3701         * sysdeps/generic/libm-alias-double.h: New file.
3702         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
3703         * sysdeps/generic/math-type-macros-double.h: Include
3704         <libm-alias-double.h>.
3705         [declare_mgen_alias] (declare_mgen_alias): Define to use
3706         libm_alias_double.
3707         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
3708         (M_LIBM_NEED_COMPAT): Remove macro.
3709         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
3710         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
3711         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
3712         code.
3713         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3714         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3715         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3716         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3717         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3718         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3719         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3720         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3721         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3722         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3723         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3724         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3725         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3726         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3727         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3728         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3729         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3730         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3731         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3732         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3733         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3734         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3735         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3736         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3737         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3738         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3739         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3740         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
3741         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
3742         macro.
3743         (declare_mgen_alias): New macro.
3744         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
3745         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
3746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
3747         (M_LIBM_NEED_COMPAT): Remove macro.
3748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
3749         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
3750         <first-versions.h>.
3751         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
3752         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
3754 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
3756         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
3757         (declare_mgen_alias_2): Remove.
3758         * sysdeps/generic/math-type-macros-double.h
3759         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
3760         Likewise.
3761         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
3762         alias.
3763         (ldexp): Define with declare_mgen_alias.
3764         (scalbn): Likewise.
3766 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
3768         * grp/initgroups.c: Include config.h.
3769         (DEFAULT_CONFIG): New macro.
3770         (internal_getgrouplist): Use DEFAULT_CONFIG.
3771         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3772         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
3773         (DEFAULT_DEFCONFIG): New macro.
3774         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
3775         * nss/grp-lookup.c: Include config.h
3776         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
3777         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
3778         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
3779         * manual/nss.texi: Update default values section.
3781 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
3783         [BZ #21967]
3784         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
3785         New.
3786         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
3787         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3788         Handle MathVec_Prefer_No_AVX512.
3789         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
3790         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
3791         is set.
3793 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3795         * posix/sched_primax.c (__sched_get_priority_max): Add
3796         libc_hidden_def.
3797         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
3798         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3799         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
3800         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
3801         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
3802         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
3803         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
3804         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
3805         Add aliases.
3807 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
3809         * sysdeps/generic/libm-alias-float.h: New file.
3810         * sysdeps/generic/math-type-macros-float.h: Include
3811         <libm-alias-float.h>.
3812         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3814 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3816         [BZ #22093]
3817         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
3818         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
3819         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
3820         (HWCAP_IMPORTANT): Likewise.
3821         (HWCAP_X86_64): New enum.
3822         (HWCAP_X86_AVX512_1): Updated.
3823         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
3824         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
3825         (modules-names): Add x86_64/tst-x86_64mod-1.
3826         (LDFLAGS-tst-x86_64mod-1.so): New.
3827         ($(objpfx)tst-x86_64-1): Likewise.
3828         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
3829         (tst-x86_64-1-clean): Likewise.
3830         * sysdeps/x86_64/tst-x86_64-1.c: New file.
3831         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
3833 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3835         * po/sv.po: Update translations.
3836         * po/fr.po: Likewise.
3838 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3840         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
3841         seconds.
3842         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
3843         seconds.
3844         * elf/rtld-Rules: Fix $(error) use.
3846 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
3848         [BZ #14925]
3849         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
3850         * locale/iso-639.def: Change “Bengali” to “Bangla”.
3851         * localedata/locales/bn_BD: “Bengali” was still used in some
3852         comments. Change it to “Bangla”.
3854 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
3856         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
3858 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
3860         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
3861         thunderx2t99p1 to list of cpu names.
3862         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3863         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
3865 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
3867         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
3868         Use strcmp instead of tunable_is_name.
3870 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
3872         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3873         (F_GET_RW_HINT): New macro.
3874         [__USE_GNU] (F_SET_RW_HINT): Likewise.
3875         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
3876         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
3877         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
3878         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
3879         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
3880         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
3881         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
3882         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
3884         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3885         (F_ADD_SEALS): New macro.
3886         [__USE_GNU] (F_GET_SEALS): Likewise.
3887         [__USE_GNU] (F_SEAL_SEAL): Likewise.
3888         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
3889         [__USE_GNU] (F_SEAL_GROW): Likewise.
3890         [__USE_GNU] (F_SEAL_WRITE): Likewise.
3892 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3894         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3895         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3896         * posix/glob_internal.h (__glob_pattern_type):
3897         * posix/glob.c (glob):
3898         * posix/glob_pattern_p.c (__glob_pattern_p):
3899         Use them.
3901         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
3902         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
3903         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
3904         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
3905         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
3906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
3907         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
3908         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
3909         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
3910         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3911         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
3912         * sysdeps/wordsize-64/glob.c: Likewise.
3913         * sysdeps/wordsize-64/glob64.c: Likewise.
3914         * sysdeps/wordsize-64/globfree.c: Likewise.
3915         * sysdeps/wordsize-64/globfree64.c: Likewise.
3916         * sysdeps/unix/sysv/linux/glob.c: New file.
3917         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
3918         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
3919         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
3920         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
3921         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
3922         adds !GLOB_NO_OLD_VERSION as an extra condition.
3923         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
3924         using relative path instead of absolute one.
3925         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
3926         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3927         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3928         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3929         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
3930         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
3932         [BZ #1062]
3933         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
3934         (glob): Use the same scratch buffer for both getlogin_r and
3935         getpwnam_r.  Don’t require preallocation of the login name.  This
3936         simplifies storage allocation, and corrects the handling of
3937         long login names.
3939         [BZ #1062]
3940         * posix/glob.c (glob): Port recent patches to platforms
3941         lacking getpwnam_r.
3942         (glob): Fix longstanding misuse of errno after getpwnam_r, which
3943         returns an error number rather than setting errno.
3945         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
3946         instead of GCC extension.
3947         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
3948         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
3949         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
3951         [BZ #866]
3952         [BZ #1062]
3953         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
3954         * posix/bug-glob1.c: Remove file.
3955         * posix/tst-glob_symlinks.c: New file.
3956         * posix/glob.c (__lstat64): New macro.
3957         (is_dir): New function.
3958         (glob, glob_in_dir): Match symlinks even if they are dangling.
3959         (link_stat, link_exists_p): Remove.  All uses removed.
3961         [BZ #1062]
3962         [BZ #19971]
3963         * posix/glob.c (struct readdir_result): Remove skip_entry member.
3964         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3965         All uses removed.
3967         [BZ #1062]
3968         CVE-2017-15671
3969         * posix/Makefile (routines): Add globfree, globfree64, and
3970         glob_pattern_p.
3971         * posix/flexmember.h: New file.
3972         * posix/glob_internal.h: Likewise.
3973         * posix/glob_pattern_p.c: Likewise.
3974         * posix/globfree.c: Likewise.
3975         * posix/globfree64.c: Likewise.
3976         * sysdeps/gnu/globfree64.c: Likewise.
3977         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
3978         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
3979         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
3980         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
3981         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
3982         * sysdeps/wordsize-64/globfree.c: Likewise.
3983         * sysdeps/wordsize-64/globfree64.c: Likewise.
3984         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
3985         [NDEBUG): Remove comments.
3986         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
3987         (dirent_type): New type.  Use uint_fast8_t not
3988         uint8_t, as C99 does not require uint8_t.
3989         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
3990         (struct readdir_result): Use dirent_type.  Do not define skip_entry
3991         unless it is needed; this saves a byte on platforms lacking d_ino.
3992         (readdir_result_type, readdir_result_skip_entry):
3993         New functions, replacing ...
3994         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3995          these functions, which were removed.  This makes the callers
3996         easier to read.  All callers changed.
3997         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3998         (size_add_wrapv, glob_use_alloca): New static functions.
3999         (glob, glob_in_dir): Check for size_t overflow in several places,
4000         and fix some size_t checks that were not quite right.
4001         Remove old code using SHELL since Bash no longer
4002         uses this.
4003         (glob, prefix_array): Separate MS code better.
4004         (glob_in_dir): Remove old Amiga and VMS code.
4005         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
4006         separate files.
4007         (glob_in_dir): Do not rely on undefined behavior in accessing
4008         struct members beyond their bounds.  Use a flexible array member
4009         instead
4010         (link_stat): Rename from link_exists2_p and return -1/0 instead of
4011         0/1.  Caller changed.
4012         (glob): Fix memory leaks.
4013         * posix/glob64 (globfree64): Move to separate file.
4014         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
4015         (globfree64): Remove hidden alias.
4016         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
4017         oldglob.
4018         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
4019         separate file.
4020         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
4021         define.
4022         Move compat code to separate file.
4023         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
4024         separate file.
4026 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
4028         * resolv/tst-resolv-qtypes.c (domain): Changed to
4029         "const char domain[] =".
4031 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
4033         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
4034         version to 3.1.6.
4036         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
4037         (TCP_MD5SIG_EXT): Likewise.
4038         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
4039         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
4040         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
4042         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
4044 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
4046         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
4048 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
4050         [BZ #22100]
4051         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
4053 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4055         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
4056         before assuming that the file is empty.  Avoid testing buffer content
4057         when nread == 0.
4059 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4061         [BZ #18858]
4062         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
4063         Remove define.
4064         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
4065         Likewise.
4066         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
4067         Likewise.
4068         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
4069         Likewise.
4070         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
4071         Likewise.
4072         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
4073         Likewise.
4074         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
4075         Likewise.
4077 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4079         * malloc/dynarray_emplace_enlarge.c
4080         (__libc_dynarray_emplace_enlarge): Add missing else.
4082 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4084         [BZ #22096]
4085         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
4086         case of failure to obtain the global conf object.
4088 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4090         [BZ #22095]
4091         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
4092         dynarray allocation failure.
4094 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4096         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
4097         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
4098         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
4099         New functions.
4100         (response): Call them.  Add 'p', '6' flag processing.
4101         (test_reverse): New function.
4102         (test_get2_any): Call it.
4103         (test_no_inet6): Add 'p' test.
4104         (test_inet6): Likewise.
4106 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4108         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
4109         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
4110         the QNAME.
4111         (test_gai): Adjust query names.  Add additional tests.
4112         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
4113         test_get2.  Adjust query names.  Add additional tests.
4114         (test_no_inet6): New function, extracted from threadfunc.
4115         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
4116         Add additional tests.
4118 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
4120         [BZ #22070]
4121         * localedata/unicode-gen/utf8_gen.py: Set the width for
4122         characters with Prepended_Concatenation_Mark property to 1
4123         * localedata/charmaps/UTF-8: Updated using the improved script.
4125 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
4127         [BZ #21750]
4128         * localedata/unicode-gen/utf8_gen.py: Improve the script to
4129         use the range notation for all ranges of neighbouring characters
4130         with the same width.
4132 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
4134         * sysdeps/generic/math-type-macros-double.h: Include
4135         <math-svid-compat.h>.
4136         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4137         * sysdeps/generic/math-type-macros-float.h: Include
4138         <math-svid-compat.h>.
4139         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4140         * sysdeps/generic/math-type-macros-ldouble.h: Include
4141         <math-svid-compat.h>.
4142         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4143         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
4144         condition.
4145         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
4146         * math/w_acosf_compat.c: Likewise.
4147         * math/w_acosh_compat.c: Likewise.
4148         * math/w_acoshf_compat.c: Likewise.
4149         * math/w_acoshl_compat.c: Likewise.
4150         * math/w_acosl_compat.c: Likewise.
4151         * math/w_asin_compat.c: Likewise.
4152         * math/w_asinf_compat.c: Likewise.
4153         * math/w_asinl_compat.c: Likewise.
4154         * math/w_atan2_compat.c: Likewise.
4155         * math/w_atan2f_compat.c: Likewise.
4156         * math/w_atan2l_compat.c: Likewise.
4157         * math/w_atanh_compat.c: Likewise.
4158         * math/w_atanhf_compat.c: Likewise.
4159         * math/w_atanhl_compat.c: Likewise.
4160         * math/w_cosh_compat.c: Likewise.
4161         * math/w_coshf_compat.c: Likewise.
4162         * math/w_coshl_compat.c: Likewise.
4163         * math/w_exp10_compat.c: Likewise.
4164         * math/w_exp10f_compat.c: Likewise.
4165         * math/w_exp10l_compat.c: Likewise.
4166         * math/w_exp2_compat.c: Likewise.
4167         * math/w_exp2f_compat.c: Likewise.
4168         * math/w_exp2l_compat.c: Likewise.
4169         * math/w_fmod_compat.c: Likewise.
4170         * math/w_fmodf_compat.c: Likewise.
4171         * math/w_fmodl_compat.c: Likewise.
4172         * math/w_hypot_compat.c: Likewise.
4173         * math/w_hypotf_compat.c: Likewise.
4174         * math/w_hypotl_compat.c: Likewise.
4175         * math/w_j0_compat.c: Likewise.
4176         * math/w_j0f_compat.c: Likewise.
4177         * math/w_j0l_compat.c: Likewise.
4178         * math/w_j1_compat.c: Likewise.
4179         * math/w_j1f_compat.c: Likewise.
4180         * math/w_j1l_compat.c: Likewise.
4181         * math/w_jn_compat.c: Likewise.
4182         * math/w_jnf_compat.c: Likewise.
4183         * math/w_jnl_compat.c: Likewise.
4184         * math/w_lgamma_r_compat.c: Likewise.
4185         * math/w_lgammaf_r_compat.c: Likewise.
4186         * math/w_lgammal_r_compat.c: Likewise.
4187         * math/w_log10_compat.c: Likewise.
4188         * math/w_log10f_compat.c: Likewise.
4189         * math/w_log10l_compat.c: Likewise.
4190         * math/w_log2_compat.c: Likewise.
4191         * math/w_log2f_compat.c: Likewise.
4192         * math/w_log2l_compat.c: Likewise.
4193         * math/w_log_compat.c: Likewise.
4194         * math/w_logf_compat.c: Likewise.
4195         * math/w_logl_compat.c: Likewise.
4196         * math/w_pow_compat.c: Likewise.
4197         * math/w_powf_compat.c: Likewise.
4198         * math/w_powl_compat.c: Likewise.
4199         * math/w_remainder_compat.c: Likewise.
4200         * math/w_remainderf_compat.c: Likewise.
4201         * math/w_remainderl_compat.c: Likewise.
4202         * math/w_sinh_compat.c: Likewise.
4203         * math/w_sinhf_compat.c: Likewise.
4204         * math/w_sinhl_compat.c: Likewise.
4205         * math/w_sqrt_compat.c: Likewise.
4206         * math/w_sqrtf_compat.c: Likewise.
4207         * math/w_sqrtl_compat.c: Likewise.
4208         * math/w_tgamma_compat.c: Likewise.
4209         * math/w_tgammaf_compat.c: Likewise.
4210         * math/w_tgammal_compat.c: Likewise.
4211         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
4212         [LIBM_SVID_COMPAT].
4213         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
4214         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
4215         [LIBM_SVID_COMPAT].
4216         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
4217         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
4218         [LIBM_SVID_COMPAT].
4219         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
4220         * sysdeps/i386/fpu/w_sqrt.c: New file.
4221         * sysdeps/ia64/fpu/w_acos.c: Likewise.
4222         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
4223         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
4224         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
4225         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
4226         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
4227         * sysdeps/ia64/fpu/w_asin.c: Likewise.
4228         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
4229         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
4230         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
4231         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
4232         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
4233         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
4234         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
4235         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
4236         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
4237         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
4238         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
4239         * sysdeps/ia64/fpu/w_exp.c: Likewise.
4240         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
4241         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
4242         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
4243         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
4244         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
4245         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
4246         * sysdeps/ia64/fpu/w_expf.c: Likewise.
4247         * sysdeps/ia64/fpu/w_expl.c: Likewise.
4248         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
4249         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
4250         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
4251         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
4252         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
4253         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
4254         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
4255         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
4256         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
4257         * sysdeps/ia64/fpu/w_log.c: Likewise.
4258         * sysdeps/ia64/fpu/w_log10.c: Likewise.
4259         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
4260         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
4261         * sysdeps/ia64/fpu/w_log2.c: Likewise.
4262         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
4263         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
4264         * sysdeps/ia64/fpu/w_logf.c: Likewise.
4265         * sysdeps/ia64/fpu/w_logl.c: Likewise.
4266         * sysdeps/ia64/fpu/w_pow.c: Likewise.
4267         * sysdeps/ia64/fpu/w_powf.c: Likewise.
4268         * sysdeps/ia64/fpu/w_powl.c: Likewise.
4269         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
4270         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
4271         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
4272         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
4273         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
4274         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
4275         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
4276         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
4277         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
4278         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
4279         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
4280         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
4281         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
4282         [LIBM_SVID_COMPAT].
4283         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
4284         * sysdeps/ieee754/k_standard.c: Likewise.
4285         * sysdeps/ieee754/k_standardf.c: Likewise.
4286         * sysdeps/ieee754/k_standardl.c: Likewise.
4287         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
4288         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
4289         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
4290         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
4291         long_double_symbol call on [LIBM_SVID_COMPAT].
4292         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4293         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4294         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4295         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4296         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4297         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4298         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4299         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4300         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4301         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4302         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4303         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
4304         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4305         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4306         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4307         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4308         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
4309         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4310         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4311         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4312         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
4313         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
4315 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
4317         * include/shlib-compat.h (TEST_COMPAT): New Macro.
4318         * malloc/tst-mallocstate.c: Convert from test-skeleton
4319         to test-driver.  Ifdef code using TEST_COMPAT macro.
4320         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
4321         * math/test-matherr.c: Likewise.
4323 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
4325         [BZ #22086]
4326         * debug/pcprofiledump.c (main): Use byte-swapped mask when
4327         comparing word with byte-swapped constant.
4329 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
4331         [BZ #20498]
4332         * locale/iso-639.def: add Miskito.
4333         * localedata/SUPPORTED: Add miq_NI/UTF-8.
4334         * localedata/locales/miq_NI: New file.
4336 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
4338         [BZ #18822]
4339         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
4340         (__mkdir): Likewise.
4341         * io/chmod.c (__chmod): Add libc_hidden_def.
4342         * io/mkdir.c (__mkdir): Likewise.
4343         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
4344         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
4345         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
4346         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
4348 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
4350         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4351         version to 4.13.
4353         [BZ #22082]
4354         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
4355         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
4357 2017-09-04  Florian Weimer  <fweimer@redhat.com>
4359         * math/math.h: Issue warning if log is defined.
4361 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
4363         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4364         kernel version to 4.13.
4366 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4368         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
4369         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
4370         parameter.
4371         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
4372         just <bits/types.h>.
4373         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
4374         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
4375         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
4376         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
4377         * misc/preadv2.c: Include <errno.h>.
4378         * misc/preadv64v2.c: Include <errno.h>.
4379         * misc/pwritev2.c: Include <errno.h>.
4380         * misc/pwritev64v2.c: Include <errno.h>.
4381         * sysdeps/posix/preadv2.c: Include <errno.h>.
4382         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
4383         Fix <unistd.h> inclusion.
4384         * sysdeps/posix/pwritev2.c: Include <errno.h>.
4385         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
4386         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
4387         __strtoul_internal): New functions.
4388         * sysdeps/posix/pause.c: Include <sigsetops.h>.
4389         * sysdeps/posix/system.c: Include <sigsetops.h>.
4390         * sysdeps/mach/hurd/i386/Makefile
4391         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
4392         [$(subdir) = csu] (sysdep-only-routines): Likewise.
4393         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
4394         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
4395         __feraiseexcept_renamed to feraiseexcept instead of
4396         __GI_feraiseexcept.
4397         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
4398         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
4399         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
4400         RWF_NOWAIT): Define to 0 if undefined already.
4401         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
4402         boils down to 0.
4403         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
4404         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
4406 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
4408         * manual/math.texi (pow10): Do not document.
4409         (pow10f): Likewise.
4410         (pow10l): Likewise.
4411         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
4412         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
4413         * math/libm-test-exp10.inc (pow10_test): Remove.
4414         (do_test): Do not call pow10.
4415         * math/w_exp10_compat.c (pow10): Make into compat symbol.
4416         [NO_LONG_DOUBLE] (pow10l): Likewise.
4417         * math/w_exp10f_compat.c (pow10f): Likewise.
4418         * math/w_exp10l_compat.c (pow10l): Likewise.
4419         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
4420         (pow10): Make into compat symbol.
4421         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
4422         (pow10f): Make into compat symbol.
4423         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
4424         (pow10l): Make into compat symbol.
4425         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
4426         pow10.
4427         (CFLAGS-nldbl-pow10.c): Remove variable..
4428         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
4429         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
4430         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
4431         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
4432         Undefine and redefine.
4433         (pow10l): Make into compat symbol.
4434         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
4435         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
4436         * sysdeps/arm/libm-test-ulps: Likewise.
4437         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
4438         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4439         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4440         * sysdeps/microblaze/libm-test-ulps: Likewise.
4441         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4442         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4443         * sysdeps/nios2/libm-test-ulps: Likewise.
4444         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4445         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4446         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4447         * sysdeps/sh/libm-test-ulps: Likewise.
4448         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4449         * sysdeps/tile/libm-test-ulps: Likewise.
4450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4452 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4454         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
4456 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
4458         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
4459         "../ChangeLog.old/ChangeLog.8".
4460         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
4461         "../ChangeLog.old/ChangeLog.14".
4463 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
4465         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
4466         Threads Library.
4468 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
4470         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
4472 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
4474         * csu/version.c (banner): Remove "by Roland McGrath et al.".
4475         * nptl/Banner: Remove "by Ulrich Drepper et al.".
4477 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4479         * stdlib/tst-atexit-common.c (do_test): Test support for at least
4480         32 atexit handlers.
4482 2017-09-01  Zack Weinberg  <zackw@panix.com>
4484         * math/math.h (HUGE_VAL): Improve commentary.
4486 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4487             Andreas Schwab  <schwab@suse.de>
4489         [BZ #21530]
4490         * include/stdio.h (__gen_tempfd): New function.
4491         * stdio-common/Makefile (routines): Add gentempfd.
4492         * stdio-common/gentempfd.c: New file.
4493         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
4494         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
4495         unnamed file first.
4497 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4499         [BZ #21915]
4500         [BZ #21922]
4501         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
4502         result to determine success or failure, not the errno value.
4503         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
4504         (tst-nss-files-hosts-erange): Link with -ldl.
4505         * nss/tst-nss-files-hosts-erange.c: New file.
4506         * nss/tst-resolv-basic.c (response): Handle nodata.example.
4507         (do_test): Add NO_DATA tests.
4508         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
4509         (do_test): Call it.
4511 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4513         [BZ #21922]
4514         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
4515         coming from gethostbyname2_r.
4517 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4519         * support/namespace.h (struct support_chroot_configuration): Add
4520         hosts, host_conf.
4521         (struct support_chroot): Add path_hosts, path_host_conf.
4522         * support/support_chroot.c (write_file): New function.
4523         (support_chroot_create): Call it to process /etc/resolv.conf,
4524         /etc/hosts, /etc/host.conf.
4525         (support_chroot_free): Update.
4527 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4529         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
4530         status indicates it is set.
4532 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4534         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
4535         function lookup failures more reliable.
4537 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4539         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
4540         (getcanonname): Likewise.
4541         (gaih_inet): Likewise.
4543 2017-09-01  Florian Weimer  <fweimer@redhat.com>
4545         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
4546         (getcanonname): Likewise.
4547         (gaih_inet): Likewise.
4549 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
4550             Richard Henderson <rth@twiddle.net>
4552         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
4553         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
4554         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
4555         (IREG_SIZE, OREG_SIZE): New macros.
4556         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
4557         (IREG_SIZE, OREG_SIZE): New macros.
4558         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
4559         (IREG_SIZE): New macro.
4560         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
4561         (IREG_SIZE): New macro.
4562         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
4563         New includes.
4564         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
4565         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4566         (__CONCATX): Handle exceptions correctly on large values that may
4567         set FE_INVALID.
4568         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
4569         Initialize if not already set.
4570         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4572 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4574         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
4575         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
4576         Likewise.
4577         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
4578         Likewise.
4579         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
4580         Likewise.
4581         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
4582         Likewise.
4583         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
4584         Likewise.
4585         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
4586         Likewise.
4587         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
4588         Likewise.
4589         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
4590         (NO_CANCELLATION): Likewise.
4591         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
4592         Likewise.
4593         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
4594         Likewise.
4595         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
4596         Likewise.
4597         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4598         (NO_CANCELLATION): Likewise.
4599         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4600         (NO_CANCELLATION): Likewise.
4601         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
4602         Likewise
4603         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
4604         Likewise.
4605         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
4606         Likewise.
4607         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
4608         Likewise.
4609         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
4610         hidden prototype.
4611         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
4612         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
4614 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
4616         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
4617         in resolver call.
4619 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4621         * include/libc-symbols.h (internal_function): Remove.
4623 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4625         * stdlib/fmtmsg.c (internal_addseverity): Remove
4626         internal_function.
4628 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4630         * stdio-common/printf_fp.c (group_number): Remove
4631         internal_function.
4632         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4634 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4636         * posix/fnmatch.c (internal_function): Remove definition.
4637         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
4638         * posix/regcomp.c (peek_token, init_word_char)
4639         (duplicate_node_closure, fetch_token, peek_token)
4640         (peek_token_bracket, build_range_exp, build_collating_symbol):
4641         Likewise.
4642         * posix/regex_internal.c (re_string_construct_common)
4643         (create_ci_newstate, create_cd_newstate, re_string_allocate)
4644         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
4645         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
4646         (re_string_translate_buffer, re_string_reconstruct)
4647         (re_string_peek_byte_case, re_string_fetch_byte_case)
4648         (re_string_destruct, re_string_context_at, re_node_set_alloc)
4649         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
4650         (re_node_set_add_intersect, re_node_set_init_union)
4651         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
4652         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
4653         (re_dfa_add_node, calc_state_hash, re_acquire_state)
4654         (re_acquire_state_context): Likewise.
4655         * posix/regex_internal.h (internal_function): Remove definition.
4656         (re_string_realloc_buffers, build_wcs_buffer)
4657         (build_wcs_upper_buffer, build_upper_buffer)
4658         (re_string_translate_buffer, re_string_context_at)
4659         (re_string_char_size_at, re_string_wchar_at)
4660         (re_string_elem_size_at): Likewise.
4661         * posix/regexec.c (match_ctx_init, match_ctx_clean)
4662         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
4663         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
4664         (re_search_internal, re_search_2_stub, re_search_stub)
4665         (re_copy_regs, prune_impossible_nodes, check_matching)
4666         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
4667         (free_fail_stack_return, sift_states_iter_mb)
4668         (sift_states_backward, build_sifted_states)
4669         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
4670         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
4671         (check_subexp_limits, sift_states_bkref, merge_state_array)
4672         (find_recover_state, transit_state, merge_state_with_log)
4673         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
4674         (transit_state_mb, transit_state_bkref, get_subexp)
4675         (get_subexp_sub, find_subexp_node, check_arrival)
4676         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
4677         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
4678         (check_node_accept_bytes, find_collation_sequence_value)
4679         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
4680         (acquire_init_state_context, check_halt_node_context)
4681         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
4682         (sub_epsilon_src_nodes): Likewise.
4683         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
4684         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
4685         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
4686         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
4687         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
4688         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
4689         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
4690         * sysdeps/posix/ttyname.c (getttyname): Likewise.
4691         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
4692         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
4693         (PREADV): Likewise.
4694         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
4695         (PREADV): Likewise.
4696         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
4697         (PWRITEV): Likewise.
4698         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
4699         (PWRITEV): Likewise.
4700         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
4701         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
4703 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4705         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
4706         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
4707         Remove internal_function.
4708         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
4709         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
4710         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
4711         (__deallocate_stack, __libc_pthread_init)
4712         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
4713         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
4714         (__libc_disable_asynccancel, __librt_disable_asynccancel):
4715         Likewise.
4716         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
4717         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
4718         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
4719         Likewise.
4720         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
4721         (__pthread_mutex_unlock_usercnt): Likewise.
4723 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4725         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
4726         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
4727         (fts_safe_changedir): Remove internal_function.
4728         * io/ftw.c (internal_function): Remove definition.
4729         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
4731 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4733         * inet/deadline.c (__deadline_current_time)
4734         (__deadline_from_timeval, __deadline_to_ms): Remove
4735         internal_function.
4736         * inet/getnameinfo.c (nrl_domainname): Likewise.
4737         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
4738         * inet/inet6_option.c (add_pad): Likewise.
4739         * inet/net-internal.h (__deadline_current_time)
4740         (__deadline_from_timeval, __deadline_to_ms): Likewise.
4741         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
4742         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
4743         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
4745 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
4747         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
4748         include <bits/nan.h>.
4749         * math/Makefile (headers): Remove bits/nan.h.
4750         * bits/nan.h: Remove.
4751         * sysdeps/ieee754/bits/nan.h: Likewise.
4752         * sysdeps/mips/bits/nan.h: Likewise.
4754         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
4755         not include <bits/inf.h>.
4756         * math/Makefile (headers): Remove bits/inf.h.
4757         * bits/inf.h: Remove.
4758         * sysdeps/ieee754/bits/inf.h: Likewise.
4760         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
4761         bits/huge_vall.h or bits/huge_val_flt128.h.
4762         (HUGE_VAL): Define directly here.
4763         [__USE_ISOC99] (HUGE_VALF): Likewise.
4764         [__USE_ISOC99] (HUGE_VALL): Likewise.
4765         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4766         (HUGE_VAL_F128): Likewise.
4767         * math/Makefile (headers): Remove bits/huge_val.h,
4768         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
4769         * bits/huge_val.h: Remove.
4770         * bits/huge_val_flt128.h: Likewise.
4771         * bits/huge_valf.h: Likewise.
4772         * bits/huge_vall.h: Likewise.
4773         * sysdeps/ia64/bits/huge_vall.h: Likewise.
4774         * sysdeps/ieee754/bits/huge_val.h: Likewise.
4775         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
4776         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
4777         * sysdeps/sh/bits/huge_val.h: Likewise.
4778         * sysdeps/sparc/bits/huge_vall.h: Likewise.
4779         * sysdeps/x86/bits/huge_vall.h: Likewise.
4781 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4783         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
4784         internal_function.
4785         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
4786         Likewise.
4787         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
4788         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
4789         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
4790         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
4791         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4792         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
4793         * elf/dl-libc.c (dlerror_run): Likewise.
4794         * elf/dl-load.c (add_name_to_object, decompose_rpath)
4795         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
4796         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
4797         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
4798         Likewise.
4799         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
4800         (_dl_higher_prime_number, _dl_strtoul): Likewise.
4801         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
4802         * elf/dl-profile.c (_dl_start_profile): Likewise.
4803         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
4804         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
4805         Likewise.
4806         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
4807         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
4808         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
4809         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
4810         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
4811         (_dl_allocate_tls_storage): Likewise.
4812         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
4813         (_dl_check_all_versions): Likewise.
4814         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
4815         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
4816         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
4817         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4818         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
4819         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
4820         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
4821         internal_function from __dl_start.
4822         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
4823         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
4824         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
4825         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
4826         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
4827         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
4828         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
4829         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
4830         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
4831         (_dl_next_ld_env_entry, _dl_important_hwcaps)
4832         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
4833         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
4834         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
4835         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
4836         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
4837         Likewise.
4838         (struct rtld_global_ro): Remove internal_function from the
4839         _dl_lookup_symbol_x member.
4840         (_dl_symbol_value): Remove.  No longer defined anywhere.
4841         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
4842         internal_function.
4843         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4844         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
4845         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
4846         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
4847         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
4848         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
4849         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
4850         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
4851         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
4852         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
4853         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4854         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
4856 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4858         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
4859         Remove internal_function.
4860         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
4861         Likewise.
4862         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
4863         Likewise.
4865 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4867         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
4868         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
4869         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
4871 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4873         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
4874         (__gai_enqueue_request): Remove internal_function.
4875         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
4876         (__gai_remove_request, __gai_notify, __gai_notify_only)
4877         (__gai_sigqueue): Likewise.
4878         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
4879         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
4880         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
4881         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4882         Likewise.
4884 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4886         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
4887         * include/dirent.h (__opendirat, __getdents, __getdents64)
4888         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
4889         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
4890         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4891         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4892         Likewise.
4893         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
4895 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4897         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
4898         internal_function.
4899         (GETCWD_RETURN_TYPE): Likewise.
4901 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4903         * include/time.h (__tz_compute, __strptime_internal): Remove
4904         internal_function.
4905         * time/strptime_l.c (__strptime_internal): Likewise.
4906         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
4908 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4910         * iconv/gconv.c (__gconv): Remove internal_function.
4911         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
4912         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
4913         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
4914         (__gconv_release_cache): Likewise.
4915         * iconv/gconv_close.c (__gconv_close): Likewise.
4916         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
4917         (read_conf_file, __gconv_get_path): Likewise.
4918         * iconv/gconv_db.c (derivation_lookup, add_derivation)
4919         (__gconv_release_step, gen_steps, increment_counter)
4920         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
4921         (__gconv_close_transform, free_modules_db): Likewise.
4922         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
4923         Likewise.
4924         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
4925         (__gconv_find_transform, __gconv_lookup_cache)
4926         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
4927         (__gconv_close_transform, __gconv_release_cache)
4928         (__gconv_loaded_object, __gconv_release_shlib)
4929         (__gconv_compare_alias): Likewise.
4930         * iconv/gconv_open.c (__gconv_open): Likewise.
4931         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
4932         * iconv/iconvconfig.c (add_module): Likewise.
4933         * intl/dcigettext.c (plural_lookup, guess_category_value)
4934         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
4935         * intl/eval-plural.h (plural_eval): Likewise.
4936         * intl/finddomain.c (_nl_find_domain): Likewise.
4937         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
4938         (_nl_load_domain, _nl_find_msg): Likewise.
4939         (internal_function): Remove definition.
4940         * intl/loadinfo.h (internal_function): Likewise.
4941         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
4942         internal_function.
4943         * intl/localealias.c (internal_function): Remove definition.
4944         (read_alias_file): Remove internal_function.
4945         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
4946         * intl/plural-exp.h (internal_function): Remove definition.
4947         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
4948         internal_function.
4949         * intl/plural.c: Regenerate.
4950         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
4951         * locale/coll-lookup.c (__collidx_table_lookup)
4952         (__collseq_table_lookup): Likewise.
4953         * locale/coll-lookup.h (__collidx_table_lookup)
4954         (__collseq_table_lookup): Likewise.
4955         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
4956         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4957         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
4958         (_nl_unload_locale): Likewise.
4959         * locale/localeinfo.h (struct __locale_data): Remove
4960         internal_function from cleanup member.
4961         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
4962         (_nl_remove_locale, _nl_load_locale_from_archive)
4963         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
4964         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
4965         (_nl_cleanup_time): Remove internal_function.
4966         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
4967         (_nl_parse_alt_digit): Likewise.
4968         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
4969         (_nl_select_era_entry): Likewise.
4970         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4971         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
4972         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
4973         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
4974         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
4976 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4978         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
4979         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4980         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
4981         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
4982         Likewise.
4983         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
4984         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
4985         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
4986         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
4987         Likewise.
4988         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
4990 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4992         * misc/getttyent.c (skip, value): Remove internal_function.
4993         * misc/syslog.c (openlog_internal): Likewise.
4994         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
4996 2017-08-31  Florian Weimer  <fweimer@redhat.com>
4998         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
4999         (__nss_rewrite_field): Remove internal_function.
5000         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5001         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5002         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5003         * nss/nsswitch.c (nss_parse_file, nss_getline)
5004         (nss_parse_service_list, nss_new_service): Likewise.
5005         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
5006         * nss/valid_field.c (__nss_valid_field): Likewise.
5007         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
5009 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5011         * malloc/arena.c (__malloc_fork_lock_parent)
5012         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
5013         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
5014         internal_function from defintions.
5015         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
5016         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
5017         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
5018         internal_function from declarations.
5019         * malloc/malloc.c (internal_function): Do not define.
5020         (mem2mem_check): Remove internal_function from declaration.
5021         (munmap_chunk, mremap_chunk): Remove internal_function.
5022         * malloc/mtrace.c (tr_where): Likewise.
5024 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5026         * include/rpc/pmap_clnt.h (__get_socket): Remove
5027         internal_function.
5028         * sunrpc/auth_des.c (synchronize): Likewise.
5029         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
5030         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
5031         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
5032         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
5033         (key_call): Likewise.
5034         * sunrpc/pm_getport.c (__get_socket): Likewise.
5035         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
5036         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
5037         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
5038         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
5039         (invalidate): Likewise.
5040         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
5041         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
5042         (set_input_fragment, get_input_bytes): Likewise.
5044 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5046         * malloc/malloc.c (_int_free): Remove locked variable and related
5047         asserts.
5049 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
5051         [BZ #22051]
5052         * Makerules (build-module-helper-objlist): Filter out
5053         $(elf-objpfx)sofini.os.
5054         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
5055         needed.
5057 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5059         * libio/fcloseall.c: Assume weak_alias is defined.
5060         * libio/feof.c: Likewise.
5061         * libio/fileno.c: Likewise.
5062         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
5063         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5064         definitions.
5065         (_IO_file_open): Call __open directly.
5066         (_IO_new_file_sync): Assume ESPIPE is defined.
5067         (_IO_file_seekoff_maybe_mmap): Call __read directly.
5068         (_IO_new_file_write): Call __write directly.
5069         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
5070         * libio/ftello64.c (__ftello64): Assume EIO is defined.
5071         * libio/genops.c: Assume _LIBC is defined.
5072         (save_for_backup): Remove internal_function.
5073         * libio/getc.c: Assume weak_alias is defined.
5074         * libio/getwc.c: Likewise.
5075         * libio/iofclose.c: Assume _LIBC is defined.
5076         * libio/iofdopen.c: Likewise.
5077         (_IO_fcntl): Remove macro definition.
5078         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
5079         Call __fcntl directly.
5080         * libio/iofflush.c: Assume weak_alias is defined.
5081         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
5082         defined.
5083         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
5084         * libio/iofgets.c: Likewise.
5085         * libio/iofopen.c: Assume _LIBC is defined.
5086         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
5087         * libio/iofputs.c: Assume weak_alias is defined.
5088         * libio/iofread.c: Likewise.
5089         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
5090         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
5091         * libio/ioftell.c: Assume weak_alias is defined.
5092         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
5093         * libio/iofwide.c: Assume _LIBC is defined.
5094         (_IO_fwide): Drop SHARED conditional because it is implied by
5095         SHLIB_COMPAT.
5096         * libio/iofwrite.c: Assume weak_alias is defined.
5097         * libio/iogetdelim.c: Likewise.
5098         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
5099         * libio/iogetwline.c (wmemcpy): Remove macro definition.
5100         (_IO_getwline): Call __wmemcpy directly.
5101         * libio/iopopen.c: Assume _LIBC is defined.
5102         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5103         (_IO_close): Remove macro definitions.
5104         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
5105         _exit directly.
5106         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
5107         directly.
5108         * libio/ioputs.c: Assume weak_alias is defined.
5109         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
5110         * libio/iosetbuffer.c: Assume weak_alias is defined.
5111         * libio/iosetvbuf.c: Likewise.
5112         * libio/ioungetc.c: Likewise.
5113         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
5114         libc_hidden_def, libc_hidden_weak, NULL are defined.
5115         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
5116         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
5117         defined.
5118         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5119         definitions.
5120         (_IO_old_file_init_internal): Drop SHARED conditional because it
5121         is implied by SHLIB_COMPAT.
5122         (_IO_old_file_fopen): Call __open directly.
5123         (_IO_old_file_sync): Assume ESPIPE is defined.
5124         (_IO_old_file_write): Call __write directly.
5125         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
5126         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
5127         Call __fcntl directly.
5128         * libio/oldiofgetpos.c: Assume weak_alias is defined.
5129         (_IO_old_fgetpos): Assume EIO is defined.
5130         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
5131         (_IO_old_fgetpos64): Assume EIO is defined.
5132         * libio/oldiofsetpos.c: Assume weak_alias is defined.
5133         (_IO_old_fsetpos): Assume EIO is defined.
5134         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
5135         (_IO_old_fsetpos64): Assume EIO is defined.
5136         * libio/oldiopopen.c:  Assume _LIBC is defined.
5137         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5138         (_IO_close): Remove macro definitions.
5139         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
5140         directly.
5141         (_IO_old_proc_close): Call __close, __waitpid directly.
5142         * libio/put.c: Assume weak_alias is defined.
5143         * libio/stdfiles.c: Assume _LIBC is defined.
5144         * libio/stdio.c: Likewise.
5145         * libio/wfileops.c: Likewise.
5146         (_IO_wfile_sync): Assume ESPIPE is defined.
5147         * libio/wgenops.c: Assume _LIBC is defined.
5148         (save_for_wbackup): Remove internal_function.
5150 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5152         * malloc/malloc.c (top_check): Change return type to void.  Remove
5153         internal_function.
5154         * malloc/hooks.c (top_check): Likewise.
5155         (malloc_check, realloc_check, memalign_check): Adjust.
5157 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
5159         [BZ #21457]
5160         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5161         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
5162         sigcontext and namespace requirements.
5163         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5164         * sysdeps/m68k/sys/ucontext.h: Likewise.
5165         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
5166         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
5167         <bits/sigcontext.h>.
5168         (__ctx): Define earlier.
5169         (mcontext_t): Define structure contents rather than using struct
5170         sigcontext.
5171         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
5172         __glibc_reserved1 instead of __reserved.
5173         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
5174         <bits/sigcontext.h>.
5175         (__ctx): Define earlier.
5176         (mcontext_t): Define structure contents rather than using struct
5177         sigcontext.
5178         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
5179         mcontext_t instead of struct sigcontext.
5180         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
5181         <bits/sigcontext.h>.
5182         (__ctx): Define earlier.
5183         (mcontext_t): Define structure contents rather than using struct
5184         sigcontext.
5185         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
5186         <bits/sigcontext.h>.
5187         (__ctx): Define earlier.
5188         (mcontext_t): Define structure contents rather than using struct
5189         sigcontext.
5190         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
5191         mcontext_t instead of struct sigcontext.
5192         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
5193         mcontext_t instead of struct sigcontext.
5194         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5195         <bits/sigcontext.h>.
5196         (__ctx): New macro.
5197         (struct __ia64_fpreg_mcontext): New type.
5198         (mcontext_t): Define structure contents rather than using struct
5199         sigcontext.
5200         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
5201         (uc_sigmask): Define using __ctx.
5202         (uc_stack): Likewise.
5203         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
5204         <bits/sigcontext.h>.
5205         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5206         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
5207         <bits/sigcontext.h>.
5208         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
5209         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
5210         <bits/sigcontext.h>.
5211         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
5212         <bits/sigcontext.h>.
5213         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
5214         <bits/sigcontext.h>.
5215         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
5216         <bits/sigcontext.h>.
5217         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
5218         <bits/sigcontext.h>.
5219         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
5220         <bits/sigcontext.h>.
5221         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
5222         <bits/sigcontext.h>.
5223         (__ctx): Define earlier.
5224         (mcontext_t): Define structure contents rather than using struct
5225         sigcontext.
5226         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
5227         <bits/sigcontext.h>.  Include <bits/types.h>.
5228         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
5229         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
5230         (test-xfail-XPG42/ucontext.h/conform): Likewise.
5231         (test-xfail-UNIX98/signal.h/conform): Likewise.
5232         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5233         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5234         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5235         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5236         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5237         (test-xfail-POSIX2008/signal.h/conform): Likewise.
5238         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5239         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5240         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5242 2017-08-30  Florian Weimer  <fweimer@redhat.com>
5244         * malloc/dynarray_emplace_enlarge.c
5245         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
5246         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5247         * malloc/tst-dynarray.c (test_long_overflow): New function.
5248         (do_test): Call it.
5250 2017-08-30  Florian Weimer  <fweimer@redhat.com>
5252         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
5253         (set_arena_corrupt): Remove definitions.
5254         (mtrim): Do not check for corrupt arena.
5255         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
5256         Likewise.
5258 2017-08-30  Florian Weimer  <fweimer@redhat.com>
5260         [BZ #21754]
5261         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
5262         check_action.
5263         (ptmalloc_init): Do not set or use check_action.
5264         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
5265         call to malloc_printerr.  Remove return statement.
5266         (free_check): Likewise.  Remove arena unlock.
5267         (top_check): Update comment.  Adjust call to malloc_printerr.
5268         Remove heap repair code.
5269         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
5270         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
5271         (sysmalloc): Adjust call to malloc_printerr.
5272         (munmap_chunk, __libc_realloc): Likewise.  Remove return
5273         statement.
5274         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
5275         Remove errout label and corresponding gotos.
5276         (_int_free): Likewise.  Remove arena unlock.
5277         (do_set_mallopt_check): Do not set check_action.
5278         (malloc_printerr): Adjust parameter list.  Do not mark arena as
5279         corrupt.
5280         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
5281         comment.
5282         * manual/probes.texi (Memory Allocation Probes): Remove
5283         memory_mallopt_check_action.
5285 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
5287         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
5288         Use pointer to uint64_t instead of long int for sp.
5290 2017-08-30  Florian Weimer  <fweimer@redhat.com>
5292         [BZ #21754]
5293         * malloc/malloc.c (malloc_printerr): Always terminate the process,
5294         without printing a backtrace.  Do not leak any information in the
5295         error message.
5296         * manual/memory.texi (Heap Consistency Checking): Update.
5297         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
5299 2017-08-30  Florian Weimer  <fweimer@redhat.com>
5301         Do not scale NPTL tests with available number of CPUs.
5302         * nptl/tst-cond16.c (count): Set to constant value of 8.
5303         * nptl/tst-cond18.c (count): Likewise.
5305 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
5307         [BZ #22035]
5308         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
5309         Define to take a second argument that is a macro that
5310         concatentates a suffix, not the suffix itself.
5311         (__CONCAT_d): New macro.
5312         (__CONCAT_f): Likewise.
5313         (__CONCAT_l): Likewise.
5315 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
5317         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
5318         by child.
5320 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5321             Aurelien Jarno  <aurelien@aurel32.net>
5322             Maciej W. Rozycki  <macro@imgtec.com>
5324         [BZ #21956]
5325         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
5326         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
5327         `mips16-syscall6' and `mips16-syscall7'.
5328         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
5329         (CFLAGS-mips16-syscall7.c): Remove.
5330         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
5331         Remove `__mips16_syscall5', `__mips16_syscall6' and
5332         `__mips16_syscall7'.
5333         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
5334         (__mips16_syscall0): Rename `__mips16_syscall_return' to
5335         `__mips_syscall_return'.
5336         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
5337         (__mips16_syscall1): Likewise.
5338         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
5339         (__mips16_syscall2): Likewise.
5340         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
5341         (__mips16_syscall3): Likewise.
5342         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
5343         (__mips16_syscall4): Likewise.
5344         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
5345         Remove.
5346         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
5347         Remove.
5348         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
5349         Remove.
5350         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
5351         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
5352         `__mips16_syscall5'.  Remove prototype.
5353         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
5354         `__mips16_syscall6'.  Remove prototype.
5355         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
5356         `__mips16_syscall7'.  Remove prototype.
5357         (__nomips16, __mips16_syscall_return): Move to...
5358         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
5359         (__nomips16, __mips_syscall_return): ... here.
5360         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
5361         `__mips16_syscall_return' to `__mips_syscall_return'.
5362         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
5363         `internal_syscall##nr'.
5364         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
5365         `internal_syscall##nr'.
5366         (FORCE_FRAME_POINTER): Remove.
5367         (__mips_syscall5): New prototype.
5368         (internal_syscall5): Rewrite to call `__mips_syscall5'.
5369         (__mips_syscall6): New prototype.
5370         (internal_syscall6): Rewrite to call `__mips_syscall6'.
5371         (__mips_syscall7): New prototype.
5372         (internal_syscall7): Rewrite to call `__mips_syscall7'.
5373         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
5374         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
5375         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
5376         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
5377         (sysdep_routines): Add libc-do-syscall.
5378         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
5379         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
5381 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5383         [BZ #21672]
5384         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
5385         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
5386         (advise_stack_range): New function.
5387         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
5388         stack non required to advise_stack_range at allocatestack.c
5390 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5392         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
5394 2017-08-29  Florian Weimer  <fweimer@redhat.com>
5396         [BZ #22026]
5397         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
5398         __end_fct.  Mangle __end_fct after setting it to NULL.
5399         * iconv/Makefile (tests): Add tst-gconv-init-failure.
5400         (modules-names, modules-names-tests): Add
5401         tst-gconv-init-failure-mod.
5402         (gconv-modules): New target.
5403         (tst-gconv-init-failure-mod.so): Link against libsupport.
5404         (tst-gconv-init-failure): Depend on gconv-modules,
5405         tst-gconv-init-failure-mod.so.
5406         * iconv/tst-gconv-init-failure-mod.c: New file.
5407         * iconv/tst-gconv-init-failure.c: Likewise.
5408         * iconv/test-gconv-modules: Likewise.
5410 2017-08-29  Florian Weimer  <fweimer@redhat.com>
5412         [BZ #22025]
5413         * iconv/gconv_db.c (free_derivation): Remove redundant
5414         parentheses.
5415         (gen_steps): Unconditionally mangle __btowc_fct after
5416         initialization.
5417         (increment_counter): Likewise.  Do not call init_fct for internal
5418         modules.
5420 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
5422         [BZ #22028]
5423         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
5424         (_MSUF_): Remove macro.
5425         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
5426         Likewise.
5427         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
5428         (__REDIRFROM_X): New macro.
5429         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
5430         Likewise.
5431         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
5432         (__REDIRTO_X): Likewise.
5433         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
5434         arguments.
5435         (__MATH_REDIRCALL_2): Likewise.
5436         (__MATH_REDIRCALL_INTERNAL): Likewise.
5437         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5438         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
5439         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
5440         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5441         * math/test-finite-macros.c: New file.
5442         * math/Makefile (tests): Add test-finite-macros.
5443         (CFLAGS-test-finite-macros.c): New variable.
5445 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
5446             Jeff Law  <law@redhat.com>
5448         [BZ #22025]
5449         Mangle NULL pointers in iconv/gconv.
5450         * iconv/gconv_cache.c (find_module): Demangle init_fct before
5451         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
5452         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
5453         is non-NULL before demangling the end_fct.  Check for NULL
5454         end_fct after demangling.
5455         (__gconv_release_step): Demangle the end_fct before checking
5456         it for NULL.   Remove assert on __shlibc_handle != NULL.
5457         (gen_steps): Don't check btowc_fct for NULL before mangling.
5458         Demangle init_fct before checking for NULL.
5459         (increment_counter): Likewise.
5460         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
5461         end_fct for NULL before mangling.
5462         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
5463         for NULL.
5465 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
5467         [BZ #21971]
5468         * locale/iso-639.def: add Morisyen.
5470 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5472         [BZ #21930]
5473         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
5474         (iszero): New C++ implementation that does not use
5475         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
5476         signaling nans are enabled, since __builtin_types_compatible_p
5477         is a C-only feature.
5478         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
5479         defined, include ieee754_float128.h for access to the union and
5480         member ieee854_float128.ieee.
5481         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
5482         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
5483         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
5484         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
5485         options of test-math-zero on powerpc64le.
5487 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
5489         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
5490         Change double to float.
5492 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
5494         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
5495         unconditional.
5496         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
5497         conditional code; define contents only for [LIBM_SVID_COMPAT].
5499 2017-08-28  Florian Weimer  <fweimer@redhat.com>
5501         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
5502         (abi-lp64_be-options): Remove.
5503         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
5504         (abi-hard-options): Likewise.
5505         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
5506         (abi-o32_hard-options, abi-o32_soft_2008-options)
5507         (abi-o32_hard_2008-options, abi-n32_soft-options)
5508         (abi-n32_hard-options, abi-n32_soft_2008-options)
5509         (abi-n32_hard_2008-options, abi-n64_soft-options)
5510         (abi-n64_hard-options, abi-n64_soft_2008-options)
5511         (abi-n64_hard_2008-options): Likewise.
5512         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
5513         (abi-64-v1-options, abi-64-v2-options): Likewise.
5514         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
5515         (abi-64-options): Likewise.
5516         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
5517         (abi-64-options): Likewise.
5518         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
5519         (abi-64-options): Likewise.
5520         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
5521         (abi-64-options, abi-x32-options): Likewise.
5523 2017-08-28  Florian Weimer  <fweimer@redhat.com>
5525         Store supported list of SYS_* system calls in the source tree.
5526         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5527         (bits/syscall.h): Generate from list file.
5528         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
5529         [$(subdir) = misc] (tests): Add tst-syscall-list.
5530         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
5531         [$(subdir) = misc] (tst-syscall-list-macros.list)
5532         [$(subdir) = misc] (tst-syscall-list-nr.list)
5533         (tst-syscall-list-sys.list): Helper targets for new
5534         tst-syscall-list test.
5535         [$(subdir) = misc] (tst-syscall-list.out): Run test script
5536         tst-syscall-list.sh.
5537         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
5538         target. Do not include bits/syscall.d.
5539         [$(subdir) = misc] (generated): Do not update.
5540         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
5541         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
5542         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
5543         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
5545 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
5547         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
5548         (tst-cxa_atexit, tst-on_exit): Likewise.
5549         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
5550         tst-cxa_atexit, and tst-on_exit.
5551         * stdlib/tst-atexit-common.c: New file.
5552         * stdlib/tst-atexit.c: New file.
5553         * stdlib/tst-at_quick_exit.c: New file.
5554         * stdlib/tst-cxa_atexit.c: New file.
5555         * stdlib/tst-on_exit.c: New file.
5557 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5559         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
5560         * mach/stack_chk_fail_local.c: New file.
5561         * hurd/stack_chk_fail_local.c: New file.
5562         * mach/Machrules ($(interface-library)-routines): Add
5563         stack_chk_fail_local.
5564         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
5565         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
5566         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
5567         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
5568         * hurd/Makefile (CFLAGS-hurdstartup.o,
5569         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
5571 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
5573         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
5574         (index_cpu_*, index_arch_*): Removed.
5576 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5578         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
5579         Use uint64_t instead of unsigned long.
5581 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
5583         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
5584         [__HAVE_DISTINCT_FLOAT128].
5586         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
5587         of <bits/math-finite.h>.
5588         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
5589         inclusion of <bits/math-finite.h>.
5590         * math/bits/math-finite.h (__REDIRTO_X): Do not define
5591         conditionally on [__MATH_DECLARING_LDOUBLE && defined
5592         __NO_LONG_DOUBLE_MATH].
5593         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
5594         (__MATH_REDIRCALL_2): Likewise.
5595         (__MATH_REDIRCALL_INTERNAL): Likewise.
5596         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5597         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
5598         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5601         Remove file.
5602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5603         Likewise.
5604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5605         Likewise.
5606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5607         Likewise.
5608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5609         Likewise.
5610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5611         Likewise.
5612         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5613         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5614         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5615         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5617         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
5618         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
5619         w_sqrtf_compat-ppc32.
5621 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5623         * math/math.h [defined __cplusplus] (issignaling): In the long
5624         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
5625         is not defined.  Call __issignaling, otherwise.
5627 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5629         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
5630         syscall definitions and replace __builtin_expect with __glibc_likely.
5631         * sysdeps/unix/syscall-template.S: Update comment about cancellable
5632         syscall.
5633          (SYSCALL_CANCELLABLE): Removedefinition
5634         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
5635         definition.
5636         (PSEUDO_END): Likewise.
5637         [IS_IN (libpthread)] (CENABLE): Likewise.
5638         [IS_IN (libpthread)] (CDISABLE): Likewise.
5639         [IS_IN (libc)] (CENABLE): Likewise.
5640         [IS_IN (libc)] (CENABLE): Likewise.
5641         [IS_IN (librt)] (CDISABLE): Likewise.
5642         [IS_IN (librt)] (CDISABLE): Likewise.
5643         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5644         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
5645         definition.
5646         (PSEUDO_END): Likewise.
5647         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
5648         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
5649         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5650         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5651         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5652         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5653         (CENABLE): Likewise.
5654         (CDISABLE): Likewise.
5655         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5656         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
5657         defintion.
5658         (PSEUDO_END): Likewise.
5659         [IS_IN (libpthread)] (CENABLE): Likewise.
5660         [IS_IN (libpthread)] (CDISABLE): Likewise.
5661         [IS_IN (libc)] (CENABLE): Likewise.
5662         [IS_IN (libc)] (CENABLE): Likewise.
5663         [IS_IN (librt)] (CDISABLE): Likewise.
5664         [IS_IN (librt)] (CDISABLE): Likewise.
5665         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5666         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
5667         definition.
5668         (PSEUDO_END): Likewise.
5669         [IS_IN (libpthread)] (CENABLE): Likewise.
5670         [IS_IN (libpthread)] (CDISABLE): Likewise.
5671         [IS_IN (libc)] (CENABLE): Likewise.
5672         [IS_IN (libc)] (CENABLE): Likewise.
5673         [IS_IN (librt)] (CDISABLE): Likewise.
5674         [IS_IN (librt)] (CDISABLE): Likewise.
5675         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5676         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
5677         definition.
5678         (PSEUDO_END): Likewise.
5679         [IS_IN (libpthread)] (CENABLE): Likewise.
5680         [IS_IN (libpthread)] (CDISABLE): Likewise.
5681         [IS_IN (libc)] (CENABLE): Likewise.
5682         [IS_IN (libc)] (CENABLE): Likewise.
5683         [IS_IN (librt)] (CDISABLE): Likewise.
5684         [IS_IN (librt)] (CDISABLE): Likewise.
5685         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5686         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
5687         definition.
5688         (PSEUDO_END): Likewise.
5689         [IS_IN (libpthread)] (CENABLE): Likewise.
5690         [IS_IN (libpthread)] (CDISABLE): Likewise.
5691         [IS_IN (libc)] (CENABLE): Likewise.
5692         [IS_IN (libc)] (CENABLE): Likewise.
5693         [IS_IN (librt)] (CDISABLE): Likewise.
5694         [IS_IN (librt)] (CDISABLE): Likewise.
5695         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5696         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
5697         definition.
5698         (PSEUDO_END): Likewise.
5699         [IS_IN (libpthread)] (CENABLE): Likewise.
5700         [IS_IN (libpthread)] (CDISABLE): Likewise.
5701         [IS_IN (libc)] (CENABLE): Likewise.
5702         [IS_IN (libc)] (CENABLE): Likewise.
5703         [IS_IN (librt)] (CDISABLE): Likewise.
5704         [IS_IN (librt)] (CDISABLE): Likewise.
5705         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5706         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
5707         definition.
5708         (PSEUDO_END): Likewise.
5709         [IS_IN (libpthread)] (CENABLE): Likewise.
5710         [IS_IN (libpthread)] (CDISABLE): Likewise.
5711         [IS_IN (libc)] (CENABLE): Likewise.
5712         [IS_IN (libc)] (CENABLE): Likewise.
5713         [IS_IN (librt)] (CDISABLE): Likewise.
5714         [IS_IN (librt)] (CDISABLE): Likewise.
5715         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5716         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
5717         Remove definition.
5718         (PSEUDO_END): Likewise.
5719         [IS_IN (libpthread)] (CENABLE): Likewise.
5720         [IS_IN (libpthread)] (CDISABLE): Likewise.
5721         [IS_IN (libc)] (CENABLE): Likewise.
5722         [IS_IN (libc)] (CENABLE): Likewise.
5723         [IS_IN (librt)] (CDISABLE): Likewise.
5724         [IS_IN (librt)] (CDISABLE): Likewise.
5725         (SINGLE_THREAD_P): Likewise.
5726         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
5727         definition.
5728         (PSEUDO_END): Likewise.
5729         [IS_IN (libpthread)] (CENABLE): Likewise.
5730         [IS_IN (libpthread)] (CDISABLE): Likewise.
5731         [IS_IN (libc)] (CENABLE): Likewise.
5732         [IS_IN (libc)] (CENABLE): Likewise.
5733         [IS_IN (librt)] (CDISABLE): Likewise.
5734         [IS_IN (librt)] (CDISABLE): Likewise.
5735         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5736         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
5737         definition.
5738         (PSEUDO_END): Likewise.
5739         [IS_IN (libpthread)] (CENABLE): Likewise.
5740         [IS_IN (libpthread)] (CDISABLE): Likewise.
5741         [IS_IN (libc)] (CENABLE): Likewise.
5742         [IS_IN (libc)] (CENABLE): Likewise.
5743         [IS_IN (librt)] (CDISABLE): Likewise.
5744         [IS_IN (librt)] (CDISABLE): Likewise.
5745         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5746         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
5747         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
5748         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
5749         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
5750         definition.
5751         (PSEUDO_END): Likewise.
5752         [IS_IN (libpthread)] (CENABLE): Likewise.
5753         [IS_IN (libpthread)] (CDISABLE): Likewise.
5754         [IS_IN (libc)] (CENABLE): Likewise.
5755         [IS_IN (libc)] (CENABLE): Likewise.
5756         [IS_IN (librt)] (CDISABLE): Likewise.
5757         [IS_IN (librt)] (CDISABLE): Likewise.
5758         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5759         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
5760         definition.
5761         (PSEUDO_END): Likewise.
5762         [IS_IN (libpthread)] (CENABLE): Likewise.
5763         [IS_IN (libpthread)] (CDISABLE): Likewise.
5764         [IS_IN (libc)] (CENABLE): Likewise.
5765         [IS_IN (libc)] (CENABLE): Likewise.
5766         [IS_IN (librt)] (CDISABLE): Likewise.
5767         [IS_IN (librt)] (CDISABLE): Likewise.
5768         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5769         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
5770         definition.
5771         (PSEUDO_END): Likewise.
5772         [IS_IN (libpthread)] (CENABLE): Likewise.
5773         [IS_IN (libpthread)] (CDISABLE): Likewise.
5774         [IS_IN (libc)] (CENABLE): Likewise.
5775         [IS_IN (libc)] (CENABLE): Likewise.
5776         [IS_IN (librt)] (CDISABLE): Likewise.
5777         [IS_IN (librt)] (CDISABLE): Likewise.
5778         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5779         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
5780         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
5781         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
5782         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
5783         definition.
5784         (PSEUDO_END): Likewise.
5785         [IS_IN (libpthread)] (CENABLE): Likewise.
5786         [IS_IN (libpthread)] (CDISABLE): Likewise.
5787         [IS_IN (libc)] (CENABLE): Likewise.
5788         [IS_IN (libc)] (CENABLE): Likewise.
5789         [IS_IN (librt)] (CDISABLE): Likewise.
5790         [IS_IN (librt)] (CDISABLE): Likewise.
5791         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5792         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
5793         definition.
5794         (PSEUDO_END): Likewise.
5795         [IS_IN (libpthread)] (CENABLE): Likewise.
5796         [IS_IN (libpthread)] (CDISABLE): Likewise.
5797         [IS_IN (libc)] (CENABLE): Likewise.
5798         [IS_IN (libc)] (CENABLE): Likewise.
5799         [IS_IN (librt)] (CDISABLE): Likewise.
5800         [IS_IN (librt)] (CDISABLE): Likewise.
5801         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5803 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5805         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
5807 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
5809         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5811 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
5813         [BZ #21982]
5814         * string/stratcliff.c (do_test): Declare size, nchars, inner,
5815         middle and outer with size_t instead of int.  Repleace %d and
5816         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
5817         "MAX (outer, nchars - 64)" to support unsigned outer and
5818         nchars.  Also exit loop when outer == 0.
5820 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5822         * include/fcntl.h (__fcntl_nocancel): Remove definition.
5823         * include/signal.h (__sigsuspend_nocancel): Likewise.
5824         * include/time.h (__nanosleep_nocancel): Likewise.
5825         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
5826         * login/utmp_file.c: Include non cancellable syscall header.
5827         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
5828         prototype.
5830 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
5832         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
5833         .byte sequences with AVX512F instructions.
5834         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
5835         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
5836         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
5837         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
5838         Likewise.
5839         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
5840         Likewise.
5842 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5843             Steve Ellcey  <sellcey@cavium.com>
5845         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
5846         Use PTR_REG macro in cmp instruction.
5848 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5850         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
5851         Change the return type of the ifunc resolver to match the return
5852         type of the target function.
5854 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5856         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
5857         (preadv64): Likewise.
5858         (pwrite64(: Likewise.
5859         (pwritev64): Likewise.
5861         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5862         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
5863         (LOAD_ARGS_0): Likewise.
5864         (LOAD_ARGS_1): Likewise.
5865         (LOAD_ARGS_2): Likewise.
5866         (LOAD_ARGS_3): Likewise.
5867         (LOAD_ARGS_4): Likewise.
5868         (LOAD_ARGS_5): Likewise.
5869         (LOAD_ARGS_6): Likewise.
5870         (LOAD_REGS_0): Likewise.
5871         (LOAD_REGS_1): Likewise.
5872         (LOAD_REGS_2): Likewise.
5873         (LOAD_REGS_3): Likewise.
5874         (LOAD_REGS_4): Likewise.
5875         (LOAD_REGS_5): Likewise.
5876         (LOAD_REGS_6): Likewise.
5877         (ASM_ARGS_0): Likewise.
5878         (ASM_ARGS_1): Likewise.
5879         (ASM_ARGS_2): Likewise.
5880         (ASM_ARGS_3): Likewise.
5881         (ASM_ARGS_4): Likewise.
5882         (ASM_ARGS_5): Likewise.
5883         (ASM_ARGS_6): Likewise.
5884         (LOAD_ARGS_TYPES_1): Likewise.
5885         (LOAD_ARGS_TYPES_2): Likewise.
5886         (LOAD_ARGS_TYPES_3): Likewise.
5887         (LOAD_ARGS_TYPES_4): Likewise.
5888         (LOAD_ARGS_TYPES_5): Likewise.
5889         (LOAD_ARGS_TYPES_6): Likewise.
5890         (LOAD_REGS_TYPES_1): Likewise.
5891         (LOAD_REGS_TYPES_2): Likewise.
5892         (LOAD_REGS_TYPES_3): Likewise.
5893         (LOAD_REGS_TYPES_4): Likewise.
5894         (LOAD_REGS_TYPES_5): Likewise.
5895         (LOAD_REGS_TYPES_6): Likewise.
5896         (TYPEFY): New define.
5897         (ARGIFY): Likewise.
5898         (internal_syscall0): Likewise.
5899         (internal_syscall1): Likewise.
5900         (internal_syscall2): Likewise.
5901         (internal_syscall3): Likewise.
5902         (internal_syscall4): Likewise.
5903         (internal_syscall5): Likewise.
5904         (internal_syscall6): Likewise.
5905         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
5906         (INTERNAL_SYSCALL_NCS): Remove define.
5907         (internal_syscall1): Add define.
5909 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5911         * math/w_remainder_compat.c: Remove duplicate inclusion of
5912         math-svid-compat.h.
5913         * math/w_remainderf_compat.c: Likewise.
5914         * math/w_remainderl_compat.c: Likewise.
5916 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5918         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5920 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
5922         [BZ #21684]
5923         * math/tgmath.h (__floating_type): Simplify definitions.
5924         (__real_integer_type): New macro.
5925         (__complex_integer_type): Likewise.
5926         (__expr_is_real): Likewise.
5927         (__tgmath_real_type_sub): Update comment to describe handling of
5928         complex types.
5929         (__tgmath_complex_type_sub): New macro.
5930         (__tgmath_complex_type): Likewise.
5931         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5932         (__TGMATH_CF128): Use __expr_is_real.
5933         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
5934         __expr_is_real.
5935         (__TGMATH_BINARY_REAL_IMAG): Likewise.
5936         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
5937         * math/gen-tgmath-tests.py (Type.create_type): Create complex
5938         integer types.
5940 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5942         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
5943         macro.
5944         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
5945         alias.
5946         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
5947         Likewise.
5949         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
5950         nanosleep_not_cancel with __nanosleep_nocancel.
5951         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
5952         (__nanosleep_nocancel): New macro.
5953         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
5954         function.
5955         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
5956         macro.
5957         (__nanosleep_nocancel): New prototype.
5959         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
5960         pause_not_cancel with __pause_nocancel.
5961         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
5962         (__pause_nocancel): New macro.
5963         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
5964         macro.
5965         (__pause_nocancel): New prototype.
5966         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
5968 2017-08-22  Martin Sebor  <msebor@redhat.com>
5970         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
5971         to return a pointer to the same type as the target function.
5973 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5975         [BZ #18822]
5976         [BZ #21986]
5977         * include/printf.h (__printf_fphex): Add attribute_hidden.
5978         (__guess_grouping): New prototype.
5979         * stdio-common/printf_fp.c (__guess_grouping): Removed.
5980         * stdio-common/reg-printf.c (__register_printf_specifier): Add
5981         libc_hidden_proto and libc_hidden_def.
5982         * stdlib/strfmon_l.c (__guess_grouping): Removed.
5983         (__vstrfmon_l): Remove the third argument passed to
5984         __guess_grouping.
5986 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5988         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
5989         definition for issignaling that does not rely on __MATH_TG,
5990         since __MATH_TG uses __builtin_types_compatible_p, which is only
5991         available in C mode.
5992         (CFLAGS-test-math-issignaling.cc): New variable.
5993         * math/Makefile [CXX] (tests): Add test-math-issignaling.
5994         * math/test-math-issignaling.cc: New test for C++ implementation
5995         of type-generic issignaling.
5996         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
5997         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
5998         options of test-math-issignaling on powerpc64le.
6000 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
6002         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6003         building libc.a.
6004         (hidden_proto): Likewise.
6005         (hidden_tls_proto): Likewise.
6006         (__hidden_proto): Likewise.
6008 2017-08-22  Florian Weimer  <fweimer@redhat.com>
6010         math: Statically link tests of internal functionality.
6011         * math/Makefile (tests): Remove atest-exp, atest-sincos,
6012         atest-exp2.
6013         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
6014         (gmp-objs): Remove assignment.
6015         (atest-exp, atest-sincos, atest-exp2): Remove targets.
6017 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
6019         [BZ #21987]
6020         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
6021         and copy to ...
6022         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
6023         ... here.
6024         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
6025         ... and here.
6027         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
6028         variable definitions above inclusion of ../Rules.
6030 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
6032         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
6033         case calling __builtin_unreachable.
6035 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6037         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
6038         __waitpid_nocancel.
6039         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
6040         (__waitpid_nocancel): New macro.
6041         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
6042         macro.
6043         (__waitpid_nocancel): Replace macro with a function.
6044         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
6045         function.
6047         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
6048         __fcntl_nocancel.
6049         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
6050         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
6052         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
6053         __writev_nocancel_nostatus.
6054         (write_call_graph): Likewise.
6055         (write_bb_counts): Likewise.
6056         * resolv/herror.c (herror): Likewise.
6057         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
6058         macro.
6059         (__writev_nocancel_nostatus): New macro.
6060         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
6061         Remove macro.
6062         (__writev_nocancel_nostatus): New function.
6064 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
6066         Revert:
6067         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6069         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6070         building libc.a.
6071         (hidden_proto): Likewise.
6072         (hidden_tls_proto): Likewise.
6073         (__hidden_proto): Likewise.
6075         [BZ #21973]
6076         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
6077         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
6078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
6079         Likewise.
6080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
6081         Likewise.
6082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
6083         Likewise.
6084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
6085         Likewise.
6086         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
6087         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
6088         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
6089         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6090         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
6091         GLIBC_2.0 sqrtl symbol.
6093         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
6094         [__USE_MISC] (_LIB_VERSION): Likewise.
6095         [__USE_MISC] (struct exception): Likewise.
6096         [__USE_MISC] (matherr): Likewise.
6097         [__USE_MISC] (DOMAIN): Likewise.
6098         [__USE_MISC] (SING): Likewise.
6099         [__USE_MISC] (OVERFLOW): Likewise.
6100         [__USE_MISC] (UNDERFLOW): Likewise.
6101         [__USE_MISC] (TLOSS): Likewise.
6102         [__USE_MISC] (PLOSS): Likewise.
6103         [__USE_MISC] (HUGE): Likewise.
6104         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
6105         * math/math-svid-compat.h: New file.
6106         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
6107         and matherrl.
6108         * include/math.h [!_ISOMAC] (__matherr): Remove.
6109         * manual/arith.texi (FP Exceptions): Do not document matherr.
6110         * math/Makefile (tests): Change test-matherr to test-matherr-3.
6111         (tests-internal): New variable.
6112         (install-lib): Do not add libieee.a.
6113         (non-lib.a): Likewise.
6114         (extra-objs): Do not add libieee.a and ieee-math.o.
6115         (CPPFLAGS-s_lib_version.c): Remove variable.
6116         ($(objpfx)libieee.a): Remove rule.
6117         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
6118         * math/ieee-math.c: Remove.
6119         * math/libm-test-support.c (matherr): Remove.
6120         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
6121         and license notices.  Include <math-svid-compat.h> and
6122         <shlib-compat.h>.
6123         (matherr): Undefine as macro.  Use compat_symbol_reference.
6124         (_LIB_VERSION): Likewise.
6125         * math/test-matherr-2.c: New file.
6126         * math/test-matherr-3.c: Likewise.
6127         * sysdeps/generic/math_private.h (__kernel_standard): Remove
6128         declaration.
6129         (__kernel_standard_f): Likewise.
6130         (__kernel_standard_l): Likewise.
6131         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
6132         <math_private.h>.  Include <math-svid-compat.h>.
6133         (_LIB_VERSION): Undefine as macro.
6134         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
6135         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
6136         [LIBM_SVID_COMPAT], use compat_symbol.
6137         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
6138         <math_private.h>.  Include <math-svid-compat.h>.
6139         (matherr): Undefine as macro.
6140         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
6141         compat_symbol.
6142         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
6143         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
6144         compat_symbol_reference.
6145         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
6146         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
6147         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
6148         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
6149         (MATHERR_D): Remove declaration.
6150         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
6151         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
6152         [LIBM_BUILD] (pmatherrf): Likewise.
6153         [LIBM_BUILD] (pmatherr): Likewise.
6154         [LIBM_BUILD] (pmatherrl): Likewise.
6155         (DOMAIN): Likewise.
6156         (SING): Likewise.
6157         (OVERFLOW): Likewise.
6158         (UNDERFLOW): Likewise.
6159         (TLOSS): Likewise.
6160         (PLOSS): Likewise.
6161         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
6162         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
6163         compat_symbol.
6164         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
6165         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
6166         compat_symbol.
6167         * math/lgamma-compat.h: Include <math-svid-compat.h>.
6168         * math/w_acos_compat.c: Likewise.
6169         * math/w_acosf_compat.c: Likewise.
6170         * math/w_acosh_compat.c: Likewise.
6171         * math/w_acoshf_compat.c: Likewise.
6172         * math/w_acoshl_compat.c: Likewise.
6173         * math/w_acosl_compat.c: Likewise.
6174         * math/w_asin_compat.c: Likewise.
6175         * math/w_asinf_compat.c: Likewise.
6176         * math/w_asinl_compat.c: Likewise.
6177         * math/w_atan2_compat.c: Likewise.
6178         * math/w_atan2f_compat.c: Likewise.
6179         * math/w_atan2l_compat.c: Likewise.
6180         * math/w_atanh_compat.c: Likewise.
6181         * math/w_atanhf_compat.c: Likewise.
6182         * math/w_atanhl_compat.c: Likewise.
6183         * math/w_cosh_compat.c: Likewise.
6184         * math/w_coshf_compat.c: Likewise.
6185         * math/w_coshl_compat.c: Likewise.
6186         * math/w_exp10_compat.c: Likewise.
6187         * math/w_exp10f_compat.c: Likewise.
6188         * math/w_exp10l_compat.c: Likewise.
6189         * math/w_exp2_compat.c: Likewise.
6190         * math/w_exp2f_compat.c: Likewise.
6191         * math/w_exp2l_compat.c: Likewise.
6192         * math/w_fmod_compat.c: Likewise.
6193         * math/w_fmodf_compat.c: Likewise.
6194         * math/w_fmodl_compat.c: Likewise.
6195         * math/w_hypot_compat.c: Likewise.
6196         * math/w_hypotf_compat.c: Likewise.
6197         * math/w_hypotl_compat.c: Likewise.
6198         * math/w_j0_compat.c: Likewise.
6199         * math/w_j0f_compat.c: Likewise.
6200         * math/w_j0l_compat.c: Likewise.
6201         * math/w_j1_compat.c: Likewise.
6202         * math/w_j1f_compat.c: Likewise.
6203         * math/w_j1l_compat.c: Likewise.
6204         * math/w_jn_compat.c: Likewise.
6205         * math/w_jnf_compat.c: Likewise.
6206         * math/w_jnl_compat.c: Likewise.
6207         * math/w_lgamma_main.c: Likewise.
6208         * math/w_lgamma_r_compat.c: Likewise.
6209         * math/w_lgammaf_main.c: Likewise.
6210         * math/w_lgammaf_r_compat.c: Likewise.
6211         * math/w_lgammal_main.c: Likewise.
6212         * math/w_lgammal_r_compat.c: Likewise.
6213         * math/w_log10_compat.c: Likewise.
6214         * math/w_log10f_compat.c: Likewise.
6215         * math/w_log10l_compat.c: Likewise.
6216         * math/w_log2_compat.c: Likewise.
6217         * math/w_log2f_compat.c: Likewise.
6218         * math/w_log2l_compat.c: Likewise.
6219         * math/w_log_compat.c: Likewise.
6220         * math/w_logf_compat.c: Likewise.
6221         * math/w_logl_compat.c: Likewise.
6222         * math/w_pow_compat.c: Likewise.
6223         * math/w_powf_compat.c: Likewise.
6224         * math/w_powl_compat.c: Likewise.
6225         * math/w_remainder_compat.c: Likewise.
6226         * math/w_remainderf_compat.c: Likewise.
6227         * math/w_remainderl_compat.c: Likewise.
6228         * math/w_scalb_compat.c: Likewise.
6229         * math/w_scalbf_compat.c: Likewise.
6230         * math/w_scalbl_compat.c: Likewise.
6231         * math/w_sinh_compat.c: Likewise.
6232         * math/w_sinhf_compat.c: Likewise.
6233         * math/w_sinhl_compat.c: Likewise.
6234         * math/w_sqrt_compat.c: Likewise.
6235         * math/w_sqrtf_compat.c: Likewise.
6236         * math/w_sqrtl_compat.c: Likewise.
6237         * math/w_tgamma_compat.c: Likewise.
6238         * math/w_tgammaf_compat.c: Likewise.
6239         * math/w_tgammal_compat.c: Likewise.
6240         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
6241         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6242         * sysdeps/ieee754/k_standard.c: Likewise.
6243         * sysdeps/ieee754/k_standardf.c: Likewise.
6244         * sysdeps/ieee754/k_standardl.c: Likewise.
6245         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6246         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6247         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6248         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6249         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6250         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6251         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6252         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
6253         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
6254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
6255         Likewise.
6256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
6257         Likewise.
6258         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
6259         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
6260         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
6261         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6263 2017-08-21  Florian Weimer  <fweimer@redhat.com>
6265         [BZ #21864]
6266         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
6267         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
6268         Move before inclusion of ../Rules.
6270 2017-08-21  Florian Weimer  <fweimer@redhat.com>
6272         [BZ #21972]
6273         * assert/assert.h (assert): Use static_cast (bool) for C++.
6274         Use the ternary operator in the warning branch for GNU C.
6275         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
6276         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
6277         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
6278         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
6279         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
6281 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6283         [BZ #18822]
6284         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6285         (__syscall_clock_gettime): Add attribute_hidden.
6286         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
6287         (__start_context): Likewise.
6289 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6291         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6292         building libc.a.
6293         (hidden_proto): Likewise.
6294         (hidden_tls_proto): Likewise.
6295         (__hidden_proto): Likewise.
6297 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6299         * include/libc-symbols.h (attribute_hidden): Enable hidden
6300         visibility in libc.a compiled with PIE.
6302 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6304         [BZ #18822]
6305         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
6306         Add attribute_hidden.
6308 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6310         [BZ #21864]
6311         * Makerules (all-nonlib): Add $(others-extras).
6312         * catgets/Makefile (others-extras): New.
6313         * elf/Makefile (others-extras): Likewise.
6314         * nss/Makefile (others-extras): Likewise.
6316 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6318         [BZ #18822]
6319         * csu/libc-start.c (__libc_multiple_libcs): Removed.
6320         * elf/dl-open.c: Include <libc-internal.h>.
6321         (__libc_multiple_libcs): Removed.
6322         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
6323         <hp-timing.h>.
6324         * include/libc-internal.h (__libc_multiple_libcs): New.
6325         * misc/sbrk.c: Include <libc-internal.h>.
6326         (__libc_multiple_libcs): Removed.
6328 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6330         [BZ #18822]
6331         * grp/initgroups.c (__nss_group_database): Removed.
6332         (__nss_initgroups_database): Likewise.
6333         * nscd/gai.c (__nss_hosts_database): Likewise.
6334         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
6335         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
6336         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
6337         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
6338         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
6339         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
6340         attribute_hidden.
6341         * nss/nsswitch.c (__nss_database_custom): Define only if
6342         USE_NSCD is defined.
6343         (__nss_configure_lookup): Use __nss_database_custom only if
6344         USE_NSCD is defined.
6345         * nss/nsswitch.h (__nss_database_custom): Declare only if
6346         USE_NSCD is defined.  Add attribute_hidden.
6347         (__nss_setent): Add attribute_hidden.
6348         (__nss_endent): Likewise.
6349         (__nss_getent_r): Likewise.
6350         (__nss_getent): Likewise.
6351         (DEFINE_DATABASE): Declare __nss_##arg##_database.
6353 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6355         [BZ #18822]
6356         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
6357         libc_hidden_proto and libc_hidden_def.
6359 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6361         [BZ #18822]
6362         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
6363         Add libc_hidden_proto.
6364         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
6365         Add libc_hidden_def.
6367 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6369         [BZ #21974]
6370         * gmon/Makefile (routines): Remove bb_init_func and
6371         bb_exit_func.
6372         (elide-routines.os): Removed.
6373         * gmon/bb_exit_func.c: Likewise.
6374         * gmon/bb_init_func.c: Likewise.
6375         * include/sys/gmon.h (__bb): Likewise.
6376         (__bb_init_func): Likewise.
6377         (__bb_exit_func): Likewise.
6378         * sysdeps/alpha/bb_init_func.S: Likewise.
6380 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6382         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
6383         * include/setjmp.h (____longjmp_chk): Here.  Add
6384         attribute_hidden.
6386 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6388         [BZ #18822]
6389         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
6390         attribute_hidden.
6391         (__strspn_sse2): Likewise.
6393 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6395         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
6396         (close_not_cancel_no_status): Likewise.
6397         (__close_nocancel): New macro.
6398         (__close_nocancel_nostatus): Likewise.
6399         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
6400         macro.
6401         (close_not_cancel): Likewise.
6402         (close_not_cancel_no_status): Likewise.
6403         (__close_nocancel): New prototype.
6404         (__close_nocancel_nostatus): New function.
6405         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
6406         * catgets/open_catalog.c (__open_catalog): Replace
6407         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
6408         * gmon/gmon.c (write_gmon): Likewise.
6409         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6410         * intl/loadmsgcat.c (close): Likewise.
6411         * io/ftw.c (open_dir_stream): Likewise.
6412         (ftw_startup): Likewise.
6413         * libio/fileops.c (_IO_file_open): Likewise.
6414         (_IO_file_close_mmap): Likewise.
6415         (_IO_file_close): Likewise.
6416         * libio/iopopen.c (_IO_dup2): Likewise.
6417         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6418         * locale/loadlocale.c (_nl_load_locale): Likewise.
6419         * login/utmp_file.c (pututline_file): Likewise.
6420         (endutent_file): Likewise.
6421         * misc/daemon.c (daemon): Likewise.
6422         * nscd/nscd_getai.c (__nscd_getai): Likewise.
6423         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6424         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6425         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6426         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6427         * nscd/nscd_helper.c (open_socket): Likewise.
6428         (__nscd_open_socket): Likewise.
6429         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6430         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
6431         (__nscd_innetgr): Likewise.
6432         * nss/nss_db/db-open.c (internal_setent): Likewise.
6433         * resolv/res-close.c (__res_iclose): Likewise.
6434         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
6435         * sysdeps/posix/closedir.c (__closedir): Likewise.
6436         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
6437         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6438         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6439         (opendir_tail): Likewise.
6440         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6441         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
6442         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
6443         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
6444         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6445         (gethostid): Likewise.
6446         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6447         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6448         Likewise.
6449         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6450         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
6451         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6452         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6453         Likewise.
6454         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
6455         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
6456         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6457         Likewise.
6458         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
6459         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6460         Likewise.
6461         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6462         Likewise.
6463         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6464         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6465         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6466         __close_nocancel.
6468         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
6469         (openat_not_cancel_3): Likewise.
6470         (openat64_not_cancel_3): Likewise).
6471         (openat_not_cancel_3): Likewise).
6472         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
6473         macro.
6474         (openat_not_cancel_3): Likewise.
6475         (openat64_not_cancel): Likewise.
6476         (openat64_not_cancel_3): Likewise.
6477         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
6478         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
6479         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
6480         __open{64}_nocancel.
6481         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6482         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6483         * sysdeps/posix/opendir.c (__opendirat): Likewise.
6485 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6487         [BZ #18822]
6488         * include/argz.h (__argz_create_sep): New function prototype.
6489         (__argz_append): Likewise.
6490         (__argz_add): Likewise.
6491         (__argz_add_sep): Likewise.
6492         (__argz_delete): Likewise.
6493         (__argz_insert): Likewise.
6494         (__argz_replace): Likewise.
6495         * string/argz.h (__argz_create_sep): Removed.
6496         (__argz_append): Likewise.
6497         (__argz_add): Likewise.
6498         (__argz_add_sep): Likewise.
6499         (__argz_delete): Likewise.
6500         (__argz_insert): Likewise.
6501         (__argz_replace): Likewise.
6503 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6505         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
6506         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
6507         (GNU_PROPERTY_STACK_SIZE): Likewie.
6508         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
6509         (GNU_PROPERTY_LOPROC): Likewise.
6510         (GNU_PROPERTY_HIPROC): Likewise.
6511         (GNU_PROPERTY_LOUSER): Likewise.
6512         (GNU_PROPERTY_HIUSER): Likewise.
6513         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
6514         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
6515         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
6516         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
6517         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
6518         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
6519         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
6520         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
6521         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
6522         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
6523         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
6524         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
6525         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
6526         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
6527         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
6528         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
6529         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
6530         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
6531         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
6532         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
6533         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
6534         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
6535         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
6537 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6539         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
6540         in C++ mode.
6542 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6544         [BZ #21930]
6545         * math/math.h (isinf): Check if in C or C++ mode before using
6546         __builtin_types_compatible_p, since this is a C mode feature.
6548 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6550         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
6551         (__write_nocancel): New macro.
6552         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
6553         Rewrite as a function prototype.
6554         (write_not_cancel): Remove macro.
6555         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
6556         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
6557         (write_gmon): Likewise.
6558         * libio/fileops.c (_IO_new_file_write): Likewise.
6559         * login/utmp_file.c (pututline_file): Likewise.
6560         (updwtmp_file): Likewise.
6561         * stdio-common/psiginfo.c (psiginfo): Likewise.
6562         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6563         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6564         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6565         Likewise.
6566         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6567         Likewise.
6569         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
6570         (__read_nocancel): New macro.
6571         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6572         __read_nocancel.
6573         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
6574         macro.
6575         (__read_nocancel): New prototype.
6576         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
6577         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
6578         with __read_nocancel.
6579         * intl/loadmsgcat.c (read): Likewise.
6580         * libio/fileops.c (_IO_file_read): Likewise.
6581         * locale/loadlocale.c (_nl_load_locale): Likewise.
6582         * login/utmp_file.c (getutent_r_file): Likewise.
6583         (internal_getut_r): Likewise.
6584         (getutline_r_file): Likewise.
6585         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6586         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6587         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6588         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6589         Likewise.
6590         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
6591         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6592         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6593         Likewise.
6594         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6595         Likewise.
6596         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6597         Likewise.
6598         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6599         Likewise.
6600         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6602 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6604         [BZ #21966]
6605         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
6606         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
6607         usable.
6609 2017-08-17  DJ Delorie  <dj@redhat.com>
6611         * bug17079.c: Update to new test harness.
6612         * test-digits-dots.c: Likewise.
6613         * test-netdb.c: Likewise.
6614         * tst-field.c: Likewise.
6615         * tst-nss-getpwent.c: Likewise.
6616         * tst-nss-static.c: Likewise.
6617         * tst-nss-test1.c: Likewise.
6618         * tst-nss-test2.c: Likewise.
6619         * tst-nss-test3.c: Likewise.
6620         * tst-nss-test4.c: Likewise.
6621         * tst-nss-test5.c: Likewise.
6623 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6625         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
6626         (open_not_cancel_2): Likewise.
6627         (open_nocancel): New macro.
6628         (open64_nocancel): Likewise.
6629         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
6630         (open_not_cancel_2): Likewise.
6631         (__open_nocancel): New prototype.
6632         (__open64_nocancel): Likewise.
6633         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6634         __open_nocancel.
6635         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
6636         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
6637         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
6638         with __open_nocancel.
6639         * csu/check_fds.c (check_one_fd): Likewise.
6640         * gmon/gmon.c (write_gmon): Likewise.
6641         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
6642         * intl/loadmsgcat.c (open): Likewise.
6643         * libio/fileops.c (_IO_file_open): Likewise.
6644         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6645         * locale/loadlocale.c (_nl_load_locale): Likewise.
6646         * login/utmp_file.c (setutent_file): Likewise.
6647         * misc/daemon.c (daemon): Likewise.
6648         * nss/nss_db/db-open.c (internal_setent): Likewise.
6649         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6650         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
6651         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6652         (__opendir): Likewise.
6653         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6654         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6655         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6656         (gethostid): Likewise.
6657         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6658         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6659         Likewise.
6660         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6661         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
6662         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6663         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6664         Likewise.
6665         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6666         Likewise.
6667         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6668         Likewise.
6669         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
6670         Likewise.
6671         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6672         Likewise.
6673         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6674         Likewise.
6675         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6676         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6678 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
6680         * benchtests/bench-skeleton.c (main): Add support for
6681         latency benchmarking.
6682         * benchtests/scripts/bench.py: Add support for latency benchmarking.
6684 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6686         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
6687         the startup object.
6689 2017-08-17  Florian Weimer  <fweimer@redhat.com>
6691         * include/sys/socket.h (__opensock): Remove internal_function.
6692         * socket/opensock.c (__opensock): Likewise.
6693         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
6695 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
6697         [BZ #21944]
6698         * signal/bits/types/__sigval_t.h: New file.
6699         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
6700         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
6701         and define sigval_t using __sigval_t.
6702         * include/bits/types/__sigval_t.h: New file.
6703         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
6704         instead of <bits/types/__sigval_t.h>.
6705         (struct sigevent): Use __sigval_t instead of sigval_t.
6706         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
6707         instead of <bits/types/__sigval_t.h>.
6708         (siginfo_t): Use __sigval_t instead of sigval_t.
6709         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
6710         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6711         (struct sigevent): Use __sigval_t instead of sigval_t.
6712         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
6713         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6714         (siginfo_t): Use __sigval_t instead of sigval_t.
6715         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
6717 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6719         * NEWS: Remove "[Add new features here]" for 2.27.
6721 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
6723         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
6724         libc.so.
6726 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6728         * NEWS: Mention x86-64 FMA optimization.
6730 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6732         [BZ #21912]
6733         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6734         Add e_expf-fma.
6735         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
6736         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
6737         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
6739 2017-08-16  Andreas Schwab  <schwab@suse.de>
6741         [BZ #16750]
6742         CVE-2009-5064
6743         * elf/ldd.bash.in: Never run file directly.
6745 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
6747         [BZ #21955]
6748         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
6749         (L(SP_INF_0)): Likewise.
6751 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6753         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
6754         run-built-tests.
6756 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6758         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
6759         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
6760         BROKEN_THREAD_SIGNALS code.
6761         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
6762         request_list): Remove caller_pid member used for
6763         BROKEN_THREAD_SIGNALS.
6764         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
6765         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6766         Remove BROKEN_THREAD_SIGNALS support.
6767         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
6768         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
6770 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6772         * gmon/Makefile (tests): Add tst-gmon.
6773         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
6774         Set.
6775         (tests-special): Add tst-gmon-prof.out.
6776         (tst-gmon.out): Depend on clean-tst-gmon-data.
6777         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
6778         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
6779         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
6780         startup object.
6781         * aclocal.m4 (GPROF): Set and substitute.
6782         * config.amke.in (GPROF): Set.
6783         * configure: Regenerate.
6785 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
6787         * elf/elf.h A (NT_PPC_TAR): New macro.
6788         (NT_PPC_PPR): Likewise.
6789         (NT_PPC_DSCR): Likewise.
6790         (NT_PPC_EBB): Likewise.
6791         (NT_PPC_PMU): Likewise.
6792         (NT_PPC_TM_CGPR): Likewise.
6793         (NT_PPC_TM_CFPR): Likewise.
6794         (NT_PPC_TM_CVMX): Likewise.
6795         (NT_PPC_TM_CVSX): Likewise.
6796         (NT_PPC_TM_SPR): Likewise.
6797         (NT_PPC_TM_CTAR): Likewise.
6798         (NT_PPC_TM_CPPR): Likewise.
6799         (NT_PPC_TM_CDSCR): Likewise.
6801 2017-08-15  Florian Weimer  <fweimer@redhat.com>
6803         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
6804         regparm (2) instead of internal_function.
6805         (_MCOUNT_DECL): Adjust.
6807 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
6809         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
6810         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
6812 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
6814         * conform/data/sys/wait.h-data (si_value): Do not expect for
6815         XPG42.
6817 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6819         [BZ #21962]
6820         NSS: Create stubs for accidentally exported lookup functions.
6821         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
6822         Remove declaration.
6823         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
6824         (ether_hostton): Call __nss_ethers_lookup2 instead.
6825         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
6826         (ether_ntohost): Call __nss_ethers_lookup2 instead.
6827         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
6828         (setup): Call __nss_netgroup_lookup2 instead.
6829         * nss/Makefile (routines): Add compat-lookup.
6830         * nss/Versions (GLIBC_2.27): Add symbol version.
6831         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
6832         (DB_COMPAT_FCT): Remove.
6833         * nss/compat-lookup.c: New file.
6834         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
6835         from databases.def.
6836         * nss/service-lookup.c (NO_COMPAT): Remove definition.
6837         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
6838         (netname2user): Call __nss_publickey_lookup2 instead.
6839         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
6840         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
6841         instead.
6843 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6844             Sergei Trofimovich  <slyfox@inbox.ru>
6846         [BZ #21908]
6847         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
6848         Rename to MMAP2_PAGE_UNIT.
6849         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
6850         __OFF_T_MATCHES_OFF64_T is not defined.
6851         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
6852         uint64_t.
6853         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
6854         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
6856 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6858         i386: Do not set internal_function.
6859         * config.h.in (USE_REGPARMS, internal_function): Remove.
6860         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
6861         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
6863 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6865         * elf/dl-init.c (_dl_init): Remove internal_function.
6866         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
6867         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
6869 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6871         * elf/rtld.c (_dl_start): Remove internal_function.
6872         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
6873         _dl_start.
6875 2017-08-14  Florian Weimer  <fweimer@redhat.com>
6877         * elf/dl-fini.c (_dl_fini): Remove internal_function
6878         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
6880 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
6882         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
6883         (bit_cpu_SHSTK): Likewise.
6884         (index_cpu_IBT): Likewise.
6885         (index_cpu_SHSTK): Likewise.
6886         (reg_IBT): Likewise.
6887         (reg_SHSTK): Likewise.
6888         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6889         Handle index_cpu_IBT and index_cpu_SHSTK.
6891 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
6893         [BZ #19982]
6894         * po/fr.po: Fix spelling mistake.
6896 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6898         * elf/dl-addr.c (_dl_addr): Remove internal_function.
6899         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
6900         (_dl_catch_error, _dl_receive_error): Likewise.
6901         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
6902         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
6903         (_dl_deallocate_tls): Likewise.
6904         * include/dlfcn.h (_dl_addr): Likewise.
6905         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
6906         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
6907         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
6908         Likewise.
6910 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6912         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
6913         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
6914         internal_function.
6915         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
6917 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6919         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
6920         internal_function.
6921         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
6922         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
6923         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
6924         internal_function from _dl_make_stack_executable_hook member.
6925         (_dl_make_stack_executable): Remove internal_function.
6926         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
6927         Likewise.
6928         * sysdeps/unix/sysv/linux/dl-execstack.c
6929         (_dl_make_stack_executable): Likewise.
6931 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6933         * sysdeps/unix/sysv/linux/netlinkaccess.h
6934         (__netlink_assert_response): Remove internal_function.
6935         * sysdeps/unix/sysv/linux/netlink_assert_response.c
6936         (__netlink_assert_response): Likewise.
6938 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6940         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
6941         internal_function.
6942         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
6944 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6946         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
6947         internal_function.
6948         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
6949         * inet/netgroup.h (__internal_setnetgrent)
6950         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
6951         * inet/getnetgrent_r.c (__internal_setnetgrent)
6952         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
6953         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
6954         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
6955         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
6956         * nss/nsswitch.h (db_lookup_function): Likewise.
6958 2017-08-13  Florian Weimer  <fweimer@redhat.com>
6960         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
6961         Remove internal_function.
6962         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
6963         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
6964         message argument on the stack.
6965         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
6966         Likeweise.
6968 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
6970         Adapt test case data to the changes in the thousands
6971         separators.
6973         [BZ #20756]
6974         * localedata/tst-langinfo.sh: Adapt test case data.
6975         * stdlib/tst-strfmon_l.c: Likewise.
6976         * stdlib/tst-strtod4.c: Likewise.
6977         * stdlib/tst-strtod5i.c: Likewise.
6979 2017-08-11  Florian Weimer  <fweimer@redhat.com>
6981         [BZ #21242]
6982         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
6983         Suppress pedantic warning resulting from statement expression.
6984         (__ASSERT_FUNCTION): Add missing __extension__.
6986 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6988         * benchtests/bench-memmove-large.c: Print output in JSON
6989         format.
6990         * benchtests/bench-memmove.c: Likewise.
6992         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
6993         * benchtests/bench-memchr.c (do_one_test): Likewise.
6994         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
6995         * benchtests/bench-memcpy.c (do_one_test): Likewise.
6996         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
6997         * benchtests/bench-memmove.c (do_one_test): Likewise.
6998         * benchtests/bench-memset-large.c (do_one_test): Likewise.
6999         * benchtests/bench-memset.c (do_one_test): Likewise.
7000         * benchtests/bench-string.h (test_init): Remove memsets.
7002 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
7004         * manual/lang.texi
7005         (Computing the Width of an Integer Data Type): Rename section to
7006         "Width of an Integer Type".  Remove inaccurate statement regarding
7007         lack of C language facilities for determining width of integer
7008         types, and reorder content to improve flow and context of
7009         discussion.
7011 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
7013         * lang.texi (va_copy): Change standard from ISO to C99.
7014         (__va_copy): Add standard and header annotation.
7015         Update description for clarity of origins and current use.
7017 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7019         [BZ #21941]
7020         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
7021         xssqrtqp requires operands to be in Vector Registers
7022         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
7023         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
7024         (__ieee754_sqrtf128): Likewise.
7026 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
7028         * sysdeps/aarch64/memcmp.S (memcmp):
7029         Rewrite of optimized memcmp.
7031 2017-08-10  Florian Weimer  <fweimer@redhat.com>
7033         Introduce ld.so exceptions.
7034         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
7035         (_dl_exception_create, _dl_exception_create_format)
7036         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
7037         (_dl_catch_exception): Declare.
7038         (_dl_catch_error): Update comment.
7039         * elf/dl-error-skeleton.c (struct catch): Replace objname,
7040         errstring, malloced members with exception member.
7041         (_dl_out_of_memory): Remove.
7042         (fatal_error): New function, extracted from _dl_signal_error.
7043         (_dl_signal_exception, _dl_signal_cexception): New functions.
7044         (_dl_signal_error): Call _dl_exception_create to allocate an
7045         exception object.
7046         (_dl_catch_exception): New function, based on _dl_catch_error.
7047         (_dl_catch_error): Implement using _dl_catch_exception.
7048         * elf/dl-exception.c: New file.
7049         * elf/Makefile (dl-routines): Add dl-exception.
7050         (elide-routines.os): Likewise.
7051         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
7052         _dl_exception_create_format, _dl_exception_free.
7053         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
7054         _dl_signal_exception.
7055         * elf/dl-lookup.c (make_string): Remove.
7056         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
7057         _dl_signal_cexception, _dl_exception_free.
7058         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
7059         _dl_signal_exception.
7060         * elf/dl-sym.c (do_sym): Likewise.
7061         * elf/dl-version.c (make_string): Remove.
7062         (match_symbol): Use _dl_exception_create_format,
7063         _dl_signal_cexception, _dl_exception_free.
7064         (_dl_check_map_versions): Likewise.
7065         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
7066         _dl_catch_exception.
7067         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7068         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7069         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7070         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7071         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7072         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7073         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7074         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
7075         Likewise.
7076         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7078         (ld.so): Likewise.
7079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7080         (ld.so): Likewise.
7081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7082         Likewise.
7083         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7084         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7085         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
7086         Likewise.
7087         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
7088         Likewise.
7089         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7091 2017-08-10  Florian Weimer  <fweimer@redhat.com>
7093         * inet/net-internal.h (__inet6_scopeid_pton): Remove
7094         attribute_hidden, internal_function.
7095         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
7096         internal_function.
7098 2017-08-10  Florian Weimer  <fweimer@redhat.com>
7100         * malloc/malloc.c (get_max_fast): Reimplement as an inline
7101         function which calls __builtin_unreachable.
7103 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
7105         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
7106         Indian monetary formatting
7107         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
7108         test cases.
7110 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
7112         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
7113         Fix typo in comment.
7115         [BZ #21928]
7116         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
7117         PTRACE_SEIZE_DEVEL): Remove.
7118         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
7119         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7120         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7121         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7122         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7124 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
7126         * posix/bits/types.h (__qaddr_t): Remove.
7128         [BZ #21457]
7129         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
7130         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7131         __glibc_reserved1.
7132         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
7133         (ucontext_t): Use __ctx with uc_flags.
7134         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
7135         (__ctxt): Likewise.
7136         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7137         __glibc_reserved1.
7138         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
7139         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7140         __glibc_reserved1.
7141         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
7142         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7143         __glibc_reserved1.
7144         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
7145         macro.
7146         (ucontext_t): Use __ctx with uc_flags.
7147         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
7148         (ucontext_t): Use __ctx with uc_flags.
7149         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
7150         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
7151         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
7152         (ucontext_t): Use __ctx with uc_flags.
7153         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
7154         undefine further down.
7155         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7156         __glibc_reserved1.
7157         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
7158         undefine further down.
7159         (ucontext_t): Use __ctx with uc_flags.
7160         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
7161         undefine further down.
7162         (ucontext_t): Use __ctx with uc_flags.
7163         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
7164         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
7165         Rename uc_pad to __glibc_reserved1.
7166         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
7167         undefine further down.
7168         (ucontext_t): Use __ctx with uc_flags.
7169         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
7170         further down.
7171         (ucontext_t): Use __ctx with uc_flags.
7172         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
7173         __ctx with uc_flags.
7174         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
7175         (ucontext_t): Use __ctx with uc_flags.
7176         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
7177         __ctx with uc_flags.
7179 2017-08-09  Florian Weimer  <fweimer@redhat.com>
7181         [BZ #21932]
7182         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
7183         before early return.
7185 2017-08-09  Andreas Schwab  <schwab@suse.de>
7187         [BZ #21041]
7188         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
7189         renamed alias.
7191         [BZ #21041]
7192         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
7193         tst-compat-forwarder.
7194         (modules-names): Add tst-compat-forwarder-mod.
7195         ($(objpfx)tst-compat-forwarder): Depend on
7196         $(objpfx)tst-compat-forwarder-mod.so.
7197         * nptl/tst-compat-forwarder.c: New file.
7198         * nptl/tst-compat-forwarder-mod.c: New file.
7200 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7202         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
7203         comments.
7205         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
7206         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7207         memcpy_falkor.
7208         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
7209         Bump.
7210         (__libc_ifunc_impl_list): Add __memcpy_falkor.
7211         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
7212         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
7213         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7214         Add falkor.
7215         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
7216         New macro.
7218 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7220         [BZ #759]
7221         * manual/setjmp.texi (getcontex): Document uc_stack value
7222         compatibility differences.
7224 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
7226         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
7227         (old_malloc_hook): Likewise.
7228         (old_memalign_hook): Likewise.
7229         (old_realloc_hook): Likewise.
7230         (struct hdr): Likewise.
7231         (flood): Likewise.
7232         (freehook): Likewise.
7233         (mallochook): Likewise.
7234         (memalignhook): Likewise.
7235         (reallochook): Likewise.
7236         (mprobe): Likewise.
7237         * malloc/mtrace.c (mallwatch): Likewise.
7238         (tr_old_free_hook): Likewise.
7239         (tr_old_malloc_hook): Likewise.
7240         (tr_old_realloc_hook): Likewise.
7241         (tr_old_memalign_hook): Likewise.
7242         (tr_where): Likewise.
7243         (lock_and_info): Likewise.
7244         (tr_freehook): Likewise.
7245         (tr_mallochook): Likewise.
7246         (tr_reallochook): Likewise.
7247         (tr_memalignhook): Likewise.
7248         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
7249         * misc/mmap.c (__mmap): Likewise.
7250         * misc/mmap64.c (__mmap64): Likewise.
7251         * misc/mprotect.c (__mprotect): Likewise.
7252         * misc/msync.c (msync): Likewise.
7253         * misc/munmap.c (__munmap): Likewise.
7254         * posix/posix_madvise.c (posix_madvise): Likewise.
7255         * socket/send.c (__send): Likewise.
7256         * socket/sendto.c (__sendto): Likewise.
7257         * socket/setsockopt.c (__setsockopt): Likewise.
7258         * string/memcmp.c (__ptr_t): Remove macro.
7259         (MEMCMP): Use void * instead of ptr_t.
7260         * string/memrchr.c (__ptr_t): Remove macro.
7261         (__memrchr): Use void * instead of ptr_t.
7262         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
7263         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
7264         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
7265         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
7266         * sysdeps/mach/msync.c (msync): Likewise.
7267         * sysdeps/mach/munmap.c (__munmap): Likewise.
7268         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
7269         Likewise.
7270         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7271         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
7272         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
7273         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
7274         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
7275         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
7276         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
7277         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
7278         Likewise.
7279         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
7280         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
7281         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
7282         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
7283         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
7284         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
7285         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
7286         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
7287         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
7288         Likewise.
7289         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
7290         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
7291         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
7292         (MEMCMP): Use void * instead of ptr_t.
7293         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
7294         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
7296 2017-08-08  Florian Weimer  <fweimer@redhat.com>
7298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
7299         return statement.
7301 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
7303         [BZ #21913]
7304         * csu/libc-tls.c: Include <startup.h> first.
7305         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
7306         * elf/dl-tunables.c: Include <startup.h> first.
7307         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
7308         * sysdeps/generic/startup.h: New file.
7309         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
7310         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
7311         (I386_USE_SYSENTER): New.  Defined to 0.
7313 2017-08-08  Andreas Schwab  <schwab@suse.de>
7315         [BZ #21041]
7316         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
7317         * nptl/pt-system.c (system): Likewise.
7319 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7321         [BZ #21780]
7322         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
7323         EOPNOTSUPP.
7324         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
7325         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
7326         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
7327         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
7328         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
7329         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
7330         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
7332 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
7334         [BZ #21899]
7335         * bits/sigaction.h (struct sigaction): Define sa_handler and
7336         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
7337         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7338         [__USE_XOPEN_EXTENDED].
7339         (SA_RESTART): Likewise.
7340         (SA_NODEFER): Likewise.
7341         (SA_RESETHAND): Likewise.
7342         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
7343         (struct sigaction): Define sa_handler and sa_sigaction using union
7344         also for [__USE_XOPEN_EXTENDED].
7345         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7346         [__USE_XOPEN_EXTENDED].
7347         (SA_RESTART): Likewise.
7348         (SA_NODEFER): Likewise.
7349         (SA_RESETHAND): Likewise.
7350         * sysdeps/unix/sysv/linux/bits/sigaction.h
7351         (struct sigaction): Define sa_handler and sa_sigaction using union
7352         also for [__USE_XOPEN_EXTENDED].
7353         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7354         [__USE_XOPEN_EXTENDED].
7355         (SA_RESTART): Likewise.
7356         (SA_NODEFER): Likewise.
7357         (SA_RESETHAND): Likewise.
7358         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
7359         (struct sigaction): Define sa_handler and sa_sigaction using union
7360         also for [__USE_XOPEN_EXTENDED].
7361         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7362         [__USE_XOPEN_EXTENDED].
7363         (SA_RESTART): Likewise.
7364         (SA_NODEFER): Likewise.
7365         (SA_RESETHAND): Likewise.
7366         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
7367         (struct sigaction): Define sa_handler and sa_sigaction using union
7368         also for [__USE_XOPEN_EXTENDED].
7369         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7370         [__USE_XOPEN_EXTENDED].
7371         (SA_RESTART): Likewise.
7372         (SA_NODEFER): Likewise.
7373         (SA_RESETHAND): Likewise.
7374         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
7375         (struct sigaction): Define sa_handler and sa_sigaction using union
7376         also for [__USE_XOPEN_EXTENDED].
7377         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7378         [__USE_XOPEN_EXTENDED].
7379         (SA_RESTART): Likewise.
7380         (SA_NODEFER): Likewise.
7381         (SA_RESETHAND): Likewise.
7382         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
7383         (struct sigaction): Define sa_handler and sa_sigaction using union
7384         also for [__USE_XOPEN_EXTENDED].
7385         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7386         [__USE_XOPEN_EXTENDED].
7387         (SA_RESTART): Likewise.
7388         (SA_NODEFER): Likewise.
7389         (SA_RESETHAND): Likewise.
7390         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
7391         (struct sigaction): Define sa_handler and sa_sigaction using union
7392         also for [__USE_XOPEN_EXTENDED].
7393         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7394         [__USE_XOPEN_EXTENDED].
7395         (SA_RESTART): Likewise.
7396         (SA_NODEFER): Likewise.  Define directly rather than as alias.
7397         (SA_RESETHAND): Likewise.
7398         (SA_INTERRUPT): Define only for [__USE_MISC].
7399         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
7400         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
7401         [__USE_MISC].
7402         (SA_STACK): Define only for [__USE_MISC].
7403         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
7404         (struct sigaction): Define sa_handler and sa_sigaction using union
7405         also for [__USE_XOPEN_EXTENDED].
7406         (SA_ONSTACK): Change [__USE_UNIX98] condition to
7407         [__USE_XOPEN_EXTENDED].
7408         (SA_RESTART): Likewise.
7409         (SA_NODEFER): Likewise.
7410         (SA_RESETHAND): Likewise.
7411         (SA_NOPTRACE): Define only for [__USE_MISC].
7413         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
7414         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
7415         (struct catalog_info): Likewise.
7416         * inet/htontest.c (lo): Likewise.
7417         (foo): Likewise.
7418         * inet/inet_lnaof.c (inet_lnaof): Likewise.
7419         * inet/inet_net.c (inet_network): Likewise.
7420         * inet/inet_netof.c (inet_netof): Likewise.
7421         * inet/rcmd.c (__ivaliduser): Likewise.
7422         (iruserok): Likewise.
7423         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
7424         * locale/programs/locale-spec.c (locale_special): Likewise.
7425         * nis/nis_findserv.c (struct findserv_req): Likewise.
7426         (__nis_findfastest_with_timeout): Likewise.
7427         * nss/test-netdb.c (test_network): Likewise.
7428         * resolv/inet_neta.c (inet_neta): Likewise.
7429         * resolv/ns_date.c (ns_datetosecs): Likewise.
7430         (SECS_PER_DAY): Likewise.
7431         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
7432         Likewise.
7433         * resolv/res_comp.c (__putlong): Likewise.
7434         (__putshort): Likewise.
7435         (_getlong): Likewise.
7436         (_getshort): Likewise.
7437         * resolv/res_debug.c (p_time): Likewise.
7438         (precsize_ntoa): Likewise.
7439         (precsize_aton): Likewise.
7440         (latlon2ul): Likewise.
7441         (loc_aton): Likewise.
7442         (loc_ntoa): Likewise.
7443         * resolv/res_hconf.c (struct netaddr): Likewise.
7444         (_res_hconf_reorder_addrs): Likewise.
7445         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
7446         (clnttcp_control): Likewise.
7447         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7448         (clntudp_control): Likewise.
7449         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
7450         (clntunix_control): Likewise.
7451         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7452         * sunrpc/rpc/auth.h (union des_block): Likewise.
7453         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
7454         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
7455         (xdrrec_create): Likewise.
7456         (xdrrec_endofrecord): Likewise.
7457         (flush_out): Likewise.
7458         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
7459         (xdrstdio_putlong): Likewise.
7460         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
7461         Likewise.
7463         * misc/sys/cdefs.h (__long_double_t): Remove.
7464         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
7465         instead of __long_double_t,
7466         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
7468 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7470         * benchtests/scripts/compare_strings.py: Avoid display error when
7471         running on a text terminal.
7473         * benchtests/scripts/compare_strings.py (main): Add an
7474         optional -base option.
7475         (process_results): New argument base_func.
7477         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
7478         hardcoding memcpy.
7479         * benchtests/bench-memcpy-large.c (test_name): Likewise.
7480         * benchtests/bench-memcpy-random.c (test_name): Likewise.
7482 2017-08-07  Andreas Schwab  <schwab@suse.de>
7484         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
7485         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7486         * intl/Makefile ($(objpfx)tst-gettext.out)
7487         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
7488         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
7489         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7490         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7491         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
7492         * posix/Makefile ($(objpfx)globtest.out)
7493         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
7494         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
7495         ($(objpfx)tst-printf.out): Likewise.
7496         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
7497         ($(objpfx)tst-setcontext3.out): Likewise.
7499 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
7501         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7502         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
7503         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
7504         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
7505         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
7506         and mptan-fma.
7507         (CFLAGS-doasin-fma.c): New.
7508         (CFLAGS-dosincos-fma.c): Likewise.
7509         (CFLAGS-e_asin-fma.c): Likewise.
7510         (CFLAGS-e_atan2-fma.c): Likewise.
7511         (CFLAGS-e_exp-fma.c): Likewise.
7512         (CFLAGS-e_log-fma.c): Likewise.
7513         (CFLAGS-e_pow-fma.c): Likewise.
7514         (CFLAGS-halfulp-fma.c): Likewise.
7515         (CFLAGS-mpa-fma.c): Likewise.
7516         (CFLAGS-mpatan-fma.c): Likewise.
7517         (CFLAGS-mpatan2-fma.c): Likewise.
7518         (CFLAGS-mpexp-fma.c): Likewise.
7519         (CFLAGS-mplog-fma.c): Likewise.
7520         (CFLAGS-mpsqrt-fma.c): Likewise.
7521         (CFLAGS-mptan-fma.c): Likewise.
7522         (CFLAGS-s_atan-fma.c): Likewise.
7523         (CFLAGS-sincos32-fma.c): Likewise.
7524         (CFLAGS-slowexp-fma.c): Likewise.
7525         (CFLAGS-slowpow-fma.c): Likewise.
7526         (CFLAGS-s_sin-fma.c): Likewise.
7527         (CFLAGS-s_tan-fma.c): Likewise.
7528         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
7529         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
7530         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
7531         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
7532         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
7533         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
7534         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
7535         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
7536         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
7537         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
7538         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
7539         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
7540         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
7541         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
7542         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
7543         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
7544         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
7545         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
7546         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
7547         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
7548         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
7549         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
7550         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
7551         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
7552         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7553         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7554         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7555         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
7556         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7557         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7558         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7560 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
7562         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
7563         (min_of_type_f): New macro.
7564         (min_of_type_): Likewise.
7565         (min_of_type_l): Likewise.
7566         (min_of_type_f128): Likewise.
7567         (min_of_type): Define using __MATH_TG and taking an expression
7568         argument.
7569         (math_check_force_underflow): Pass expression instead of type to
7570         min_of_type.
7571         (math_check_force_underflow_nonneg): Likewise.
7573 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7575         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7576         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
7577         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
7579 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7581         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7582         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
7583         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
7584         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
7585         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
7586         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
7587         memcpy_chk-nonshared, mempcpy_chk-nonshared,
7588         memmove_chk-nonshared and memset_chk-nonshared
7589         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
7590         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
7591         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
7592         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
7593         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
7594         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
7595         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
7596         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
7597         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
7598         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
7599         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
7600         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
7601         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
7602         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
7603         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
7604         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
7605         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
7606         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
7607         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
7608         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
7609         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
7610         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
7611         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
7612         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
7613         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
7614         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
7615         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
7616         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
7617         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
7618         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
7619         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
7620         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
7621         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
7622         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7623         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7624         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
7625         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
7626         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
7627         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
7628         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
7629         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
7630         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
7631         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
7632         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
7633         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
7634         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
7635         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
7636         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
7637         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
7638         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
7639         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
7640         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
7641         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
7642         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
7643         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
7644         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
7645         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
7646         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
7647         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
7648         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
7649         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
7650         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
7651         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
7652         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
7653         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
7654         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
7655         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
7656         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
7657         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
7658         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7659         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
7660         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7661         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7662         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7663         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7664         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7665         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7666         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7667         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7668         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7669         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7670         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7671         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7672         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7673         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
7674         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
7675         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7676         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
7677         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7678         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7679         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7680         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7681         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7682         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7683         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
7684         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
7685         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
7686         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
7687         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7688         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
7689         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7690         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7691         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7692         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7693         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7694         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7695         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7696         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7698 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7700         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
7701         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
7702         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
7703         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
7704         svml_d_log2_core-sse2, svml_d_log4_core-sse,
7705         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
7706         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
7707         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
7708         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
7709         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
7710         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
7711         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
7712         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
7713         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
7714         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
7715         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
7716         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
7717         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
7718         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
7719         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
7720         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
7721         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
7722         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
7723         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
7724         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
7725         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
7726         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
7727         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
7728         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
7729         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
7730         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
7731         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
7732         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
7733         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
7734         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
7735         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
7736         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
7737         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
7738         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
7739         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
7740         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
7741         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
7742         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
7743         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
7744         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
7745         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
7746         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
7747         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
7748         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
7749         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
7750         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
7751         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
7752         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
7753         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
7754         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
7755         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
7756         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
7757         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
7758         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
7759         ...
7760         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
7761         Don't include <sysdep.h> nor <init-arch.h>.
7762         (_ZGVbN2v_cos): Removed.
7763         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
7764         ...
7765         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
7766         Don't include <sysdep.h> nor <init-arch.h>.
7767         (_ZGVdN4v_cos): Removed.
7768         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
7769         ...
7770         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
7771         Don't include <sysdep.h> nor <init-arch.h>.
7772         (_ZGVeN8v_cos): Removed.
7773         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
7774         ...
7775         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
7776         Don't include <sysdep.h> nor <init-arch.h>.
7777         (_ZGVbN2v_exp): Removed.
7778         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
7779         ...
7780         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
7781         Don't include <sysdep.h> nor <init-arch.h>.
7782         (_ZGVdN4v_exp): Removed.
7783         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
7784         ...
7785         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
7786         Don't include <sysdep.h> nor <init-arch.h>.
7787         (_ZGVeN8v_exp): Removed.
7788         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
7789         ...
7790         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
7791         Don't include <sysdep.h> nor <init-arch.h>.
7792         (_ZGVbN2v_log): Removed.
7793         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
7794         ...
7795         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
7796         Don't include <sysdep.h> nor <init-arch.h>.
7797         (_ZGVdN4v_log): Removed.
7798         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
7799         ...
7800         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
7801         Don't include <sysdep.h> nor <init-arch.h>.
7802         (_ZGVeN8v_log): Removed.
7803         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
7804         ...
7805         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
7806         Don't include <sysdep.h> nor <init-arch.h>.
7807         (_ZGVbN2vv_pow): Removed.
7808         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
7809         ...
7810         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
7811         Don't include <sysdep.h> nor <init-arch.h>.
7812         (_ZGVdN4vv_pow): Removed.
7813         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
7814         ...
7815         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
7816         Don't include <sysdep.h> nor <init-arch.h>.
7817         (_ZGVeN8vv_pow): Removed.
7818         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
7819         ...
7820         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
7821         Don't include <sysdep.h> nor <init-arch.h>.
7822         (_ZGVbN2v_sin): Removed.
7823         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
7824         ...
7825         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
7826         Don't include <sysdep.h> nor <init-arch.h>.
7827         (_ZGVbN4v_sin): Removed.
7828         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
7829         ...
7830         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
7831         Don't include <sysdep.h> nor <init-arch.h>.
7832         (_ZGVbN8v_sin): Removed.
7833         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
7834         ...
7835         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
7836         Don't include <sysdep.h> nor <init-arch.h>.
7837         (_ZGVbN2vvv_sincos): Removed.
7838         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
7839         ...
7840         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
7841         Don't include <sysdep.h> nor <init-arch.h>.
7842         (_ZGVdN4vvv_sincos): Removed.
7843         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
7844         ...
7845         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
7846         Don't include <sysdep.h> nor <init-arch.h>.
7847         (_ZGVeN8vvv_sincos): Removed.
7848         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
7849         ...
7850         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
7851         Don't include <sysdep.h> nor <init-arch.h>.
7852         (_ZGVeN16v_cosf): Removed.
7853         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
7854         ...
7855         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
7856         Don't include <sysdep.h> nor <init-arch.h>.
7857         (_ZGVbN4v_cosf): Removed.
7858         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
7859         ...
7860         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
7861         Don't include <sysdep.h> nor <init-arch.h>.
7862         (_ZGVdN8v_cosf): Removed.
7863         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
7864         ...
7865         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
7866         Don't include <sysdep.h> nor <init-arch.h>.
7867         (_ZGVeN16v_expf): Removed.
7868         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
7869         ...
7870         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
7871         Don't include <sysdep.h> nor <init-arch.h>.
7872         (_ZGVbN4v_expf): Removed.
7873         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
7874         ...
7875         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
7876         Don't include <sysdep.h> nor <init-arch.h>.
7877         (_ZGVdN8v_expf): Removed.
7878         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
7879         ...
7880         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
7881         Don't include <sysdep.h> nor <init-arch.h>.
7882         (_ZGVeN16v_logf): Removed.
7883         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
7884         ...
7885         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
7886         Don't include <sysdep.h> nor <init-arch.h>.
7887         (_ZGVbN4v_logf): Removed.
7888         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
7889         ...
7890         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
7891         Don't include <sysdep.h> nor <init-arch.h>.
7892         (_ZGVdN8v_logf): Removed.
7893         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
7894         ...
7895         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
7896         Don't include <sysdep.h> nor <init-arch.h>.
7897         (_ZGVeN16vv_powf): Removed.
7898         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
7899         ...
7900         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
7901         Don't include <sysdep.h> nor <init-arch.h>.
7902         (_ZGVbN4vv_powf): Removed.
7903         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
7904         ...
7905         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
7906         Don't include <sysdep.h> nor <init-arch.h>.
7907         (_ZGVdN8vv_powf): Removed.
7908         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
7909         ...
7910         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
7911         Don't include <sysdep.h> nor <init-arch.h>.
7912         (_ZGVeN16vvv_sincosf): Removed.
7913         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
7914         ...
7915         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
7916         Don't include <sysdep.h> nor <init-arch.h>.
7917         (_ZGVbN4vvv_sincosf): Removed.
7918         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
7919         ...
7920         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
7921         Don't include <sysdep.h> nor <init-arch.h>.
7922         (_ZGVdN8vvv_sincosf): Removed.
7923         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
7924         ...
7925         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
7926         Don't include <sysdep.h> nor <init-arch.h>.
7927         (_ZGVeN16v_sinf): Removed.
7928         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
7929         ...
7930         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
7931         Don't include <sysdep.h> nor <init-arch.h>.
7932         (_ZGVbN4v_sinf): Removed.
7933         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
7934         ...
7935         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
7936         Don't include <sysdep.h> nor <init-arch.h>.
7937         (_ZGVdN8v_sinf): Removed.
7939 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7941         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7942         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
7943         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
7944         s_rint-sse4_1 and s_rintf-sse4_1.
7945         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
7946         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7947         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7948         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7949         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7950         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
7951         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
7952         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7953         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7954         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
7955         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
7956         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7957         (__ceil): Removed.
7958         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
7959         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
7960         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7961         (__ceilf): Removed.
7962         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
7963         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
7964         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7965         (__floor): Removed.
7966         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
7967         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
7968         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7969         (__floorf): Removed.
7970         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
7971         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
7972         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7973         (__nearbyint): Removed.
7974         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
7975         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
7976         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7977         (__nearbyintf): Removed.
7978         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
7979         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
7980         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7981         (__rint): Removed.
7982         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
7983         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
7984         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
7985         (__rintf): Removed.
7987 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7989         * sysdeps/i386/start.S (_start): Check Check PIC instead of
7990         SHARED.  Avoid dynamic relocation against main in static PIE.
7992 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7994         [BZ #21815]
7995         * elf/Makefile (CFLAGS-tst-prelink.c): New.
7996         (LDFLAGS-tst-prelink): Likewise.
7998 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8000         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8001         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
8002         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
8003         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
8004         (INTERNAL_SYSCALL_NCS): Likewise.
8005         (LOADARGS_1): Likewise.
8006         (LOADARGS_5): Likewise.
8007         (RESTOREARGS_1): Likewise.
8008         (RESTOREARGS_5): Likewise.
8010 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8012         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
8013         (MEMPCPY_SYMBOL): Likewise.
8014         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8015         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
8016         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
8017         in libc.a.
8018         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
8019         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
8020         Likewise.
8021         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
8022         (__hidden_ver1): Don't use in libc.a.
8023         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
8024         (__mempcpy): Don't create a weak alias in libc.a.
8025         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
8026         libc.a.
8027         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
8028         (__hidden_ver1): Don't use in libc.a.
8030 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8032         * config.make.in (have-insert): New.
8033         * configure.ac (libc_cv_insert): New.  Set to yes if linker
8034         supports INSERT in linker script.
8035         (AC_SUBST(libc_cv_insert): New.
8036         * configure: Regenerated.
8037         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
8038         if $(have-insert) == yes.
8040 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8042         * elf/Makefile (tests): Add vismain only if
8043         $(have-protected-data) == yes.
8044         (tests-pie): Likewise.
8046 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8048         [BZ #21871]
8049         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
8050         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
8052 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8054         [BZ #21790]
8055         * sysdeps/i386/i586/memset.S
8056         (__memset_zero_constant_len_parameter): Removed.
8057         * sysdeps/i386/i686/memset.S
8058         (__memset_zero_constant_len_parameter): Likewise.
8059         * sysdeps/i386/i686/multiarch/memset_chk.S
8060         (__memset_zero_constant_len_parameter): Likewise.
8061         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
8062         Likewise.
8064 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
8066         * stdlib/getentropy.c (getentropy): Change return type to int.
8068 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
8070         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
8072 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
8074         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
8075         u_intN_t.
8076         * math/s_nexttowardf.c (__nexttowardf): Likewise.
8077         * sysdeps/generic/math_private.h (ieee_double_shape_type):
8078         Likewise.
8079         (ieee_float_shape_type): Likewise.
8080         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
8081         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
8082         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
8083         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8084         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
8085         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
8086         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
8087         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8088         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8089         Likewise.
8090         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8091         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8092         (__ieee754_yn): Likewise.
8093         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8094         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8095         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
8096         Likewise.
8097         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8098         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
8099         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
8100         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
8101         (__erfc): Likewise.
8102         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
8103         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
8104         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
8105         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
8106         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
8107         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
8108         Likewise.
8109         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
8110         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
8111         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8112         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
8113         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8114         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
8115         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
8116         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
8117         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
8118         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
8119         (__issignaling): Likewise.
8120         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
8121         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
8122         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8123         Likewise.
8124         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8125         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
8126         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
8127         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
8128         Likewise.
8129         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
8130         Likewise.
8131         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
8132         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
8133         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
8134         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
8135         (__erfcf): Likewise.
8136         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
8137         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
8138         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
8139         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
8140         Likewise.
8141         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
8142         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
8143         Likewise.
8144         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8145         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
8146         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8147         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
8148         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
8149         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
8150         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
8151         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
8152         Likewise.
8153         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
8154         Likewise.
8155         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
8156         Likewise.
8157         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
8158         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8159         Likewise.
8160         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
8161         Likewise.
8162         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8163         (__ieee754_ynl): Likewise.
8164         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8165         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
8166         Likewise.
8167         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
8168         Likewise.
8169         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
8170         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
8171         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8172         Likewise.
8173         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
8174         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
8175         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
8176         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
8177         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
8178         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
8179         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
8180         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
8181         Likewise.
8182         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
8183         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
8184         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
8185         Likewise.
8186         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8187         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
8188         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8189         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
8190         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
8191         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8192         Likewise.
8193         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
8194         Likewise.
8195         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8196         Likewise.
8197         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8198         Likewise.
8199         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
8200         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
8201         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
8202         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
8203         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
8204         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
8205         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
8206         Likewise.
8207         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8208         Likewise.
8209         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8210         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
8211         Likewise.
8212         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
8213         (__ieee754_remainderl): Likewise.
8214         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8215         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8216         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
8217         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
8218         Likewise.
8219         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
8220         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8221         Likewise.
8222         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
8223         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
8224         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
8225         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
8226         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
8227         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8228         Likewise.
8229         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
8230         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
8231         (__ieee754_y0l): Likewise.
8232         (pzero): Likewise.
8233         (qzero): Likewise.
8234         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8235         (__ieee754_y1l): Likewise.
8236         (pone): Likewise.
8237         (qone): Likewise.
8238         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8239         (__ieee754_ynl): Likewise.
8240         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8241         (__ieee754_lgammal_r): Likewise.
8242         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
8243         Likewise.
8244         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
8245         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
8246         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
8247         (__erfcl): Likewise.
8248         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
8249         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
8250         Likewise.
8251         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8252         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
8253         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8254         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
8255         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
8256         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8257         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8258         Likewise.
8259         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
8260         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
8261         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
8262         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
8263         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8264         Likewise.
8265         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
8266         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
8267         Likewise.
8268         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
8269         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
8270         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
8271         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
8272         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8274 2017-08-03  Florian Weimer  <fweimer@redhat.com>
8276         [BZ #21885]
8277         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
8278         on memory allocation failure.
8280 2017-08-03  Alan Modra  <amodra@gmail.com>
8282         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
8283         tst-tlsopt-powerpc.c with function name change and no test harness.
8284         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
8285         Call tls_get_addr_opt_test.
8286         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
8287         (modules-names): Add mod-tlsopt-powerpc.
8288         (mod-tlsopt-powerpc.so-no-z-defs): Define.
8289         (tst-tlsopt-powerpc): Depend on .so.
8290         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
8291         define.  Expand use in TLS_GD and TLS_LD.
8293 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8295         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
8296         function.
8297         * sysdeps/posix/shm_open.c: Include <pthread.h>.
8299 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
8301         [BZ #21686]
8302         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
8303         comparing size with that of double.
8304         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8305         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8306         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
8307         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8308         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8309         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
8310         unsigned __int128 types.
8312 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
8314         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
8315         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
8316         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
8317         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
8318         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
8320 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8322         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
8324 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8326         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
8327         of SHARED.
8328         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
8329         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8330         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8331         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8332         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8333         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8334         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8336 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
8338         [BZ #21685]
8339         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
8340         bit-field expressions passed to sizeof or typeof.
8341         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8342         (__TGMATH_F128): Likewise.
8343         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8344         (__TGMATH_CF128): Likewise.
8345         (__TGMATH_UNARY_REAL_ONLY): Likewise.
8346         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
8347         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
8348         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
8349         (__TGMATH_BINARY_REAL_ONLY): Likewise.
8350         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8351         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8352         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
8353         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8354         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
8355         (__TGMATH_UNARY_REAL_IMAG): Likewise.
8356         (__TGMATH_UNARY_IMAG): Likewise.
8357         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8358         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8359         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
8360         type.
8361         (define_vars_for_type): Handle bit_field type specially.
8362         (Tests.__init__): Declare structure with bit-field element.
8364 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8366         [BZ #21791]
8367         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
8368         (MEMCPY_CHK): Define only if SHARED is defined.
8369         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
8370         Likewise.
8371         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
8372         Likewise.
8374 See ChangeLog.18 for earlier changes.