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