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