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