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