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