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