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