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