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