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