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