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