Fix decimal point and thousands separator in es_CU locale to agree with CLDR.
[glibc.git] / ChangeLog
blob988c4024d702920ab5c9d00c59b3b8aa2377964f
1 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
3         [BZ #21457]
4         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6         sigcontext and namespace requirements.
7         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
8         * sysdeps/m68k/sys/ucontext.h: Likewise.
9         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
10         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
11         <bits/sigcontext.h>.
12         (__ctx): Define earlier.
13         (mcontext_t): Define structure contents rather than using struct
14         sigcontext.
15         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
16         __glibc_reserved1 instead of __reserved.
17         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
18         <bits/sigcontext.h>.
19         (__ctx): Define earlier.
20         (mcontext_t): Define structure contents rather than using struct
21         sigcontext.
22         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
23         mcontext_t instead of struct sigcontext.
24         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
25         <bits/sigcontext.h>.
26         (__ctx): Define earlier.
27         (mcontext_t): Define structure contents rather than using struct
28         sigcontext.
29         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30         <bits/sigcontext.h>.
31         (__ctx): Define earlier.
32         (mcontext_t): Define structure contents rather than using struct
33         sigcontext.
34         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35         mcontext_t instead of struct sigcontext.
36         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
37         mcontext_t instead of struct sigcontext.
38         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
39         <bits/sigcontext.h>.
40         (__ctx): New macro.
41         (struct __ia64_fpreg_mcontext): New type.
42         (mcontext_t): Define structure contents rather than using struct
43         sigcontext.
44         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
45         (uc_sigmask): Define using __ctx.
46         (uc_stack): Likewise.
47         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
48         <bits/sigcontext.h>.
49         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
50         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
51         <bits/sigcontext.h>.
52         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
53         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
54         <bits/sigcontext.h>.
55         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
56         <bits/sigcontext.h>.
57         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
58         <bits/sigcontext.h>.
59         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
60         <bits/sigcontext.h>.
61         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
62         <bits/sigcontext.h>.
63         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
64         <bits/sigcontext.h>.
65         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
66         <bits/sigcontext.h>.
67         (__ctx): Define earlier.
68         (mcontext_t): Define structure contents rather than using struct
69         sigcontext.
70         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
71         <bits/sigcontext.h>.  Include <bits/types.h>.
72         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
73         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
74         (test-xfail-XPG42/ucontext.h/conform): Likewise.
75         (test-xfail-UNIX98/signal.h/conform): Likewise.
76         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
77         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
78         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
79         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
80         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
81         (test-xfail-POSIX2008/signal.h/conform): Likewise.
82         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
83         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
84         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
86 2017-08-30  Florian Weimer  <fweimer@redhat.com>
88         * malloc/dynarray_emplace_enlarge.c
89         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
90         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
91         * malloc/tst-dynarray.c (test_long_overflow): New function.
92         (do_test): Call it.
94 2017-08-30  Florian Weimer  <fweimer@redhat.com>
96         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
97         (set_arena_corrupt): Remove definitions.
98         (mtrim): Do not check for corrupt arena.
99         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
100         Likewise.
102 2017-08-30  Florian Weimer  <fweimer@redhat.com>
104         [BZ #21754]
105         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
106         check_action.
107         (ptmalloc_init): Do not set or use check_action.
108         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
109         call to malloc_printerr.  Remove return statement.
110         (free_check): Likewise.  Remove arena unlock.
111         (top_check): Update comment.  Adjust call to malloc_printerr.
112         Remove heap repair code.
113         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
114         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
115         (sysmalloc): Adjust call to malloc_printerr.
116         (munmap_chunk, __libc_realloc): Likewise.  Remove return
117         statement.
118         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
119         Remove errout label and corresponding gotos.
120         (_int_free): Likewise.  Remove arena unlock.
121         (do_set_mallopt_check): Do not set check_action.
122         (malloc_printerr): Adjust parameter list.  Do not mark arena as
123         corrupt.
124         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
125         comment.
126         * manual/probes.texi (Memory Allocation Probes): Remove
127         memory_mallopt_check_action.
129 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
131         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
132         Use pointer to uint64_t instead of long int for sp.
134 2017-08-30  Florian Weimer  <fweimer@redhat.com>
136         [BZ #21754]
137         * malloc/malloc.c (malloc_printerr): Always terminate the process,
138         without printing a backtrace.  Do not leak any information in the
139         error message.
140         * manual/memory.texi (Heap Consistency Checking): Update.
141         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
143 2017-08-30  Florian Weimer  <fweimer@redhat.com>
145         Do not scale NPTL tests with available number of CPUs.
146         * nptl/tst-cond16.c (count): Set to constant value of 8.
147         * nptl/tst-cond18.c (count): Likewise.
149 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
151         [BZ #22035]
152         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
153         Define to take a second argument that is a macro that
154         concatentates a suffix, not the suffix itself.
155         (__CONCAT_d): New macro.
156         (__CONCAT_f): Likewise.
157         (__CONCAT_l): Likewise.
159 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
161         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
162         by child.
164 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
165             Aurelien Jarno  <aurelien@aurel32.net>
166             Maciej W. Rozycki  <macro@imgtec.com>
168         [BZ #21956]
169         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
170         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
171         `mips16-syscall6' and `mips16-syscall7'.
172         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
173         (CFLAGS-mips16-syscall7.c): Remove.
174         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
175         Remove `__mips16_syscall5', `__mips16_syscall6' and
176         `__mips16_syscall7'.
177         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
178         (__mips16_syscall0): Rename `__mips16_syscall_return' to
179         `__mips_syscall_return'.
180         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
181         (__mips16_syscall1): Likewise.
182         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
183         (__mips16_syscall2): Likewise.
184         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
185         (__mips16_syscall3): Likewise.
186         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
187         (__mips16_syscall4): Likewise.
188         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
189         Remove.
190         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
191         Remove.
192         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
193         Remove.
194         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
195         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
196         `__mips16_syscall5'.  Remove prototype.
197         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
198         `__mips16_syscall6'.  Remove prototype.
199         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
200         `__mips16_syscall7'.  Remove prototype.
201         (__nomips16, __mips16_syscall_return): Move to...
202         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
203         (__nomips16, __mips_syscall_return): ... here.
204         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
205         `__mips16_syscall_return' to `__mips_syscall_return'.
206         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
207         `internal_syscall##nr'.
208         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
209         `internal_syscall##nr'.
210         (FORCE_FRAME_POINTER): Remove.
211         (__mips_syscall5): New prototype.
212         (internal_syscall5): Rewrite to call `__mips_syscall5'.
213         (__mips_syscall6): New prototype.
214         (internal_syscall6): Rewrite to call `__mips_syscall6'.
215         (__mips_syscall7): New prototype.
216         (internal_syscall7): Rewrite to call `__mips_syscall7'.
217         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
218         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
219         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
220         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
221         (sysdep_routines): Add libc-do-syscall.
222         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
223         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
225 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
227         [BZ #21672]
228         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
229         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
230         (advise_stack_range): New function.
231         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
232         stack non required to advise_stack_range at allocatestack.c
234 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
236         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
238 2017-08-29  Florian Weimer  <fweimer@redhat.com>
240         [BZ #22026]
241         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
242         __end_fct.  Mangle __end_fct after setting it to NULL.
243         * iconv/Makefile (tests): Add tst-gconv-init-failure.
244         (modules-names, modules-names-tests): Add
245         tst-gconv-init-failure-mod.
246         (gconv-modules): New target.
247         (tst-gconv-init-failure-mod.so): Link against libsupport.
248         (tst-gconv-init-failure): Depend on gconv-modules,
249         tst-gconv-init-failure-mod.so.
250         * iconv/tst-gconv-init-failure-mod.c: New file.
251         * iconv/tst-gconv-init-failure.c: Likewise.
252         * iconv/test-gconv-modules: Likewise.
254 2017-08-29  Florian Weimer  <fweimer@redhat.com>
256         [BZ #22025]
257         * iconv/gconv_db.c (free_derivation): Remove redundant
258         parentheses.
259         (gen_steps): Unconditionally mangle __btowc_fct after
260         initialization.
261         (increment_counter): Likewise.  Do not call init_fct for internal
262         modules.
264 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
266         [BZ #22028]
267         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
268         (_MSUF_): Remove macro.
269         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
270         Likewise.
271         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
272         (__REDIRFROM_X): New macro.
273         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
274         Likewise.
275         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
276         (__REDIRTO_X): Likewise.
277         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
278         arguments.
279         (__MATH_REDIRCALL_2): Likewise.
280         (__MATH_REDIRCALL_INTERNAL): Likewise.
281         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
282         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
283         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
284         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
285         * math/test-finite-macros.c: New file.
286         * math/Makefile (tests): Add test-finite-macros.
287         (CFLAGS-test-finite-macros.c): New variable.
289 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
290             Jeff Law  <law@redhat.com>
292         [BZ #22025]
293         Mangle NULL pointers in iconv/gconv.
294         * iconv/gconv_cache.c (find_module): Demangle init_fct before
295         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
296         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
297         is non-NULL before demangling the end_fct.  Check for NULL
298         end_fct after demangling.
299         (__gconv_release_step): Demangle the end_fct before checking
300         it for NULL.   Remove assert on __shlibc_handle != NULL.
301         (gen_steps): Don't check btowc_fct for NULL before mangling.
302         Demangle init_fct before checking for NULL.
303         (increment_counter): Likewise.
304         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
305         end_fct for NULL before mangling.
306         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
307         for NULL.
309 2017-08-29  Akhilesh Kumar <akhilesh.k@samsung.com>
311         [BZ #21971]
312         * locale/iso-639.def: add Morisyen.
314 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
316         [BZ #21930]
317         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
318         (iszero): New C++ implementation that does not use
319         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
320         signaling nans are enabled, since __builtin_types_compatible_p
321         is a C-only feature.
322         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
323         defined, include ieee754_float128.h for access to the union and
324         member ieee854_float128.ieee.
325         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
326         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
327         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
328         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
329         options of test-math-zero on powerpc64le.
331 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
333         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
334         Change double to float.
336 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
338         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
339         unconditional.
340         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
341         conditional code; define contents only for [LIBM_SVID_COMPAT].
343 2017-08-28  Florian Weimer  <fweimer@redhat.com>
345         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
346         (abi-lp64_be-options): Remove.
347         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
348         (abi-hard-options): Likewise.
349         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
350         (abi-o32_hard-options, abi-o32_soft_2008-options)
351         (abi-o32_hard_2008-options, abi-n32_soft-options)
352         (abi-n32_hard-options, abi-n32_soft_2008-options)
353         (abi-n32_hard_2008-options, abi-n64_soft-options)
354         (abi-n64_hard-options, abi-n64_soft_2008-options)
355         (abi-n64_hard_2008-options): Likewise.
356         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
357         (abi-64-v1-options, abi-64-v2-options): Likewise.
358         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
359         (abi-64-options): Likewise.
360         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
361         (abi-64-options): Likewise.
362         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
363         (abi-64-options): Likewise.
364         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
365         (abi-64-options, abi-x32-options): Likewise.
367 2017-08-28  Florian Weimer  <fweimer@redhat.com>
369         Store supported list of SYS_* system calls in the source tree.
370         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
371         (bits/syscall.h): Generate from list file.
372         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
373         [$(subdir) = misc] (tests): Add tst-syscall-list.
374         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
375         [$(subdir) = misc] (tst-syscall-list-macros.list)
376         [$(subdir) = misc] (tst-syscall-list-nr.list)
377         (tst-syscall-list-sys.list): Helper targets for new
378         tst-syscall-list test.
379         [$(subdir) = misc] (tst-syscall-list.out): Run test script
380         tst-syscall-list.sh.
381         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
382         target. Do not include bits/syscall.d.
383         [$(subdir) = misc] (generated): Do not update.
384         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
385         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
386         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
387         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
389 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
391         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
392         (tst-cxa_atexit, tst-on_exit): Likewise.
393         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
394         tst-cxa_atexit, and tst-on_exit.
395         * stdlib/tst-atexit-common.c: New file.
396         * stdlib/tst-atexit.c: New file.
397         * stdlib/tst-at_quick_exit.c: New file.
398         * stdlib/tst-cxa_atexit.c: New file.
399         * stdlib/tst-on_exit.c: New file.
401 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
403         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
404         * mach/stack_chk_fail_local.c: New file.
405         * hurd/stack_chk_fail_local.c: New file.
406         * mach/Machrules ($(interface-library)-routines): Add
407         stack_chk_fail_local.
408         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
409         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
410         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
411         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
412         * hurd/Makefile (CFLAGS-hurdstartup.o,
413         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
415 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
417         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
418         (index_cpu_*, index_arch_*): Removed.
420 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
422         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
423         Use uint64_t instead of unsigned long.
425 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
427         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
428         [__HAVE_DISTINCT_FLOAT128].
430         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
431         of <bits/math-finite.h>.
432         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
433         inclusion of <bits/math-finite.h>.
434         * math/bits/math-finite.h (__REDIRTO_X): Do not define
435         conditionally on [__MATH_DECLARING_LDOUBLE && defined
436         __NO_LONG_DOUBLE_MATH].
437         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
438         (__MATH_REDIRCALL_2): Likewise.
439         (__MATH_REDIRCALL_INTERNAL): Likewise.
440         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
441         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
442         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
444         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
445         Remove file.
446         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
447         Likewise.
448         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
449         Likewise.
450         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
451         Likewise.
452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
453         Likewise.
454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
455         Likewise.
456         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
457         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
458         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
459         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
461         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
462         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
463         w_sqrtf_compat-ppc32.
465 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
467         * math/math.h [defined __cplusplus] (issignaling): In the long
468         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
469         is not defined.  Call __issignaling, otherwise.
471 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
473         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
474         syscall definitions and replace __builtin_expect with __glibc_likely.
475         * sysdeps/unix/syscall-template.S: Update comment about cancellable
476         syscall.
477          (SYSCALL_CANCELLABLE): Removedefinition
478         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
479         definition.
480         (PSEUDO_END): Likewise.
481         [IS_IN (libpthread)] (CENABLE): Likewise.
482         [IS_IN (libpthread)] (CDISABLE): Likewise.
483         [IS_IN (libc)] (CENABLE): Likewise.
484         [IS_IN (libc)] (CENABLE): Likewise.
485         [IS_IN (librt)] (CDISABLE): Likewise.
486         [IS_IN (librt)] (CDISABLE): Likewise.
487         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
488         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
489         definition.
490         (PSEUDO_END): Likewise.
491         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
492         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
493         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
494         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
495         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
496         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
497         (CENABLE): Likewise.
498         (CDISABLE): Likewise.
499         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
500         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
501         defintion.
502         (PSEUDO_END): Likewise.
503         [IS_IN (libpthread)] (CENABLE): Likewise.
504         [IS_IN (libpthread)] (CDISABLE): Likewise.
505         [IS_IN (libc)] (CENABLE): Likewise.
506         [IS_IN (libc)] (CENABLE): Likewise.
507         [IS_IN (librt)] (CDISABLE): Likewise.
508         [IS_IN (librt)] (CDISABLE): Likewise.
509         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
510         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
511         definition.
512         (PSEUDO_END): Likewise.
513         [IS_IN (libpthread)] (CENABLE): Likewise.
514         [IS_IN (libpthread)] (CDISABLE): Likewise.
515         [IS_IN (libc)] (CENABLE): Likewise.
516         [IS_IN (libc)] (CENABLE): Likewise.
517         [IS_IN (librt)] (CDISABLE): Likewise.
518         [IS_IN (librt)] (CDISABLE): Likewise.
519         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
520         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
521         definition.
522         (PSEUDO_END): Likewise.
523         [IS_IN (libpthread)] (CENABLE): Likewise.
524         [IS_IN (libpthread)] (CDISABLE): Likewise.
525         [IS_IN (libc)] (CENABLE): Likewise.
526         [IS_IN (libc)] (CENABLE): Likewise.
527         [IS_IN (librt)] (CDISABLE): Likewise.
528         [IS_IN (librt)] (CDISABLE): Likewise.
529         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
530         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
531         definition.
532         (PSEUDO_END): Likewise.
533         [IS_IN (libpthread)] (CENABLE): Likewise.
534         [IS_IN (libpthread)] (CDISABLE): Likewise.
535         [IS_IN (libc)] (CENABLE): Likewise.
536         [IS_IN (libc)] (CENABLE): Likewise.
537         [IS_IN (librt)] (CDISABLE): Likewise.
538         [IS_IN (librt)] (CDISABLE): Likewise.
539         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
540         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
541         definition.
542         (PSEUDO_END): Likewise.
543         [IS_IN (libpthread)] (CENABLE): Likewise.
544         [IS_IN (libpthread)] (CDISABLE): Likewise.
545         [IS_IN (libc)] (CENABLE): Likewise.
546         [IS_IN (libc)] (CENABLE): Likewise.
547         [IS_IN (librt)] (CDISABLE): Likewise.
548         [IS_IN (librt)] (CDISABLE): Likewise.
549         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
550         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
551         definition.
552         (PSEUDO_END): Likewise.
553         [IS_IN (libpthread)] (CENABLE): Likewise.
554         [IS_IN (libpthread)] (CDISABLE): Likewise.
555         [IS_IN (libc)] (CENABLE): Likewise.
556         [IS_IN (libc)] (CENABLE): Likewise.
557         [IS_IN (librt)] (CDISABLE): Likewise.
558         [IS_IN (librt)] (CDISABLE): Likewise.
559         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
560         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
561         Remove definition.
562         (PSEUDO_END): Likewise.
563         [IS_IN (libpthread)] (CENABLE): Likewise.
564         [IS_IN (libpthread)] (CDISABLE): Likewise.
565         [IS_IN (libc)] (CENABLE): Likewise.
566         [IS_IN (libc)] (CENABLE): Likewise.
567         [IS_IN (librt)] (CDISABLE): Likewise.
568         [IS_IN (librt)] (CDISABLE): Likewise.
569         (SINGLE_THREAD_P): Likewise.
570         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
571         definition.
572         (PSEUDO_END): Likewise.
573         [IS_IN (libpthread)] (CENABLE): Likewise.
574         [IS_IN (libpthread)] (CDISABLE): Likewise.
575         [IS_IN (libc)] (CENABLE): Likewise.
576         [IS_IN (libc)] (CENABLE): Likewise.
577         [IS_IN (librt)] (CDISABLE): Likewise.
578         [IS_IN (librt)] (CDISABLE): Likewise.
579         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
580         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
581         definition.
582         (PSEUDO_END): Likewise.
583         [IS_IN (libpthread)] (CENABLE): Likewise.
584         [IS_IN (libpthread)] (CDISABLE): Likewise.
585         [IS_IN (libc)] (CENABLE): Likewise.
586         [IS_IN (libc)] (CENABLE): Likewise.
587         [IS_IN (librt)] (CDISABLE): Likewise.
588         [IS_IN (librt)] (CDISABLE): Likewise.
589         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
590         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
591         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
592         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
593         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
594         definition.
595         (PSEUDO_END): Likewise.
596         [IS_IN (libpthread)] (CENABLE): Likewise.
597         [IS_IN (libpthread)] (CDISABLE): Likewise.
598         [IS_IN (libc)] (CENABLE): Likewise.
599         [IS_IN (libc)] (CENABLE): Likewise.
600         [IS_IN (librt)] (CDISABLE): Likewise.
601         [IS_IN (librt)] (CDISABLE): Likewise.
602         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
603         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
604         definition.
605         (PSEUDO_END): Likewise.
606         [IS_IN (libpthread)] (CENABLE): Likewise.
607         [IS_IN (libpthread)] (CDISABLE): Likewise.
608         [IS_IN (libc)] (CENABLE): Likewise.
609         [IS_IN (libc)] (CENABLE): Likewise.
610         [IS_IN (librt)] (CDISABLE): Likewise.
611         [IS_IN (librt)] (CDISABLE): Likewise.
612         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
613         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
614         definition.
615         (PSEUDO_END): Likewise.
616         [IS_IN (libpthread)] (CENABLE): Likewise.
617         [IS_IN (libpthread)] (CDISABLE): Likewise.
618         [IS_IN (libc)] (CENABLE): Likewise.
619         [IS_IN (libc)] (CENABLE): Likewise.
620         [IS_IN (librt)] (CDISABLE): Likewise.
621         [IS_IN (librt)] (CDISABLE): Likewise.
622         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
623         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
624         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
625         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
626         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
627         definition.
628         (PSEUDO_END): Likewise.
629         [IS_IN (libpthread)] (CENABLE): Likewise.
630         [IS_IN (libpthread)] (CDISABLE): Likewise.
631         [IS_IN (libc)] (CENABLE): Likewise.
632         [IS_IN (libc)] (CENABLE): Likewise.
633         [IS_IN (librt)] (CDISABLE): Likewise.
634         [IS_IN (librt)] (CDISABLE): Likewise.
635         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
636         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
637         definition.
638         (PSEUDO_END): Likewise.
639         [IS_IN (libpthread)] (CENABLE): Likewise.
640         [IS_IN (libpthread)] (CDISABLE): Likewise.
641         [IS_IN (libc)] (CENABLE): Likewise.
642         [IS_IN (libc)] (CENABLE): Likewise.
643         [IS_IN (librt)] (CDISABLE): Likewise.
644         [IS_IN (librt)] (CDISABLE): Likewise.
645         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
647 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
649         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
651 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
653         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
655 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
657         [BZ #21982]
658         * string/stratcliff.c (do_test): Declare size, nchars, inner,
659         middle and outer with size_t instead of int.  Repleace %d and
660         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
661         "MAX (outer, nchars - 64)" to support unsigned outer and
662         nchars.  Also exit loop when outer == 0.
664 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
666         * include/fcntl.h (__fcntl_nocancel): Remove definition.
667         * include/signal.h (__sigsuspend_nocancel): Likewise.
668         * include/time.h (__nanosleep_nocancel): Likewise.
669         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
670         * login/utmp_file.c: Include non cancellable syscall header.
671         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
672         prototype.
674 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
676         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
677         .byte sequences with AVX512F instructions.
678         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
679         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
680         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
681         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
682         Likewise.
683         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
684         Likewise.
686 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
687             Steve Ellcey  <sellcey@cavium.com>
689         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
690         Use PTR_REG macro in cmp instruction.
692 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
694         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
695         Change the return type of the ifunc resolver to match the return
696         type of the target function.
698 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
700         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
701         (preadv64): Likewise.
702         (pwrite64(: Likewise.
703         (pwritev64): Likewise.
705         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
706         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
707         (LOAD_ARGS_0): Likewise.
708         (LOAD_ARGS_1): Likewise.
709         (LOAD_ARGS_2): Likewise.
710         (LOAD_ARGS_3): Likewise.
711         (LOAD_ARGS_4): Likewise.
712         (LOAD_ARGS_5): Likewise.
713         (LOAD_ARGS_6): Likewise.
714         (LOAD_REGS_0): Likewise.
715         (LOAD_REGS_1): Likewise.
716         (LOAD_REGS_2): Likewise.
717         (LOAD_REGS_3): Likewise.
718         (LOAD_REGS_4): Likewise.
719         (LOAD_REGS_5): Likewise.
720         (LOAD_REGS_6): Likewise.
721         (ASM_ARGS_0): Likewise.
722         (ASM_ARGS_1): Likewise.
723         (ASM_ARGS_2): Likewise.
724         (ASM_ARGS_3): Likewise.
725         (ASM_ARGS_4): Likewise.
726         (ASM_ARGS_5): Likewise.
727         (ASM_ARGS_6): Likewise.
728         (LOAD_ARGS_TYPES_1): Likewise.
729         (LOAD_ARGS_TYPES_2): Likewise.
730         (LOAD_ARGS_TYPES_3): Likewise.
731         (LOAD_ARGS_TYPES_4): Likewise.
732         (LOAD_ARGS_TYPES_5): Likewise.
733         (LOAD_ARGS_TYPES_6): Likewise.
734         (LOAD_REGS_TYPES_1): Likewise.
735         (LOAD_REGS_TYPES_2): Likewise.
736         (LOAD_REGS_TYPES_3): Likewise.
737         (LOAD_REGS_TYPES_4): Likewise.
738         (LOAD_REGS_TYPES_5): Likewise.
739         (LOAD_REGS_TYPES_6): Likewise.
740         (TYPEFY): New define.
741         (ARGIFY): Likewise.
742         (internal_syscall0): Likewise.
743         (internal_syscall1): Likewise.
744         (internal_syscall2): Likewise.
745         (internal_syscall3): Likewise.
746         (internal_syscall4): Likewise.
747         (internal_syscall5): Likewise.
748         (internal_syscall6): Likewise.
749         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
750         (INTERNAL_SYSCALL_NCS): Remove define.
751         (internal_syscall1): Add define.
753 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
755         * math/w_remainder_compat.c: Remove duplicate inclusion of
756         math-svid-compat.h.
757         * math/w_remainderf_compat.c: Likewise.
758         * math/w_remainderl_compat.c: Likewise.
760 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
762         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
764 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
766         [BZ #21684]
767         * math/tgmath.h (__floating_type): Simplify definitions.
768         (__real_integer_type): New macro.
769         (__complex_integer_type): Likewise.
770         (__expr_is_real): Likewise.
771         (__tgmath_real_type_sub): Update comment to describe handling of
772         complex types.
773         (__tgmath_complex_type_sub): New macro.
774         (__tgmath_complex_type): Likewise.
775         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
776         (__TGMATH_CF128): Use __expr_is_real.
777         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
778         __expr_is_real.
779         (__TGMATH_BINARY_REAL_IMAG): Likewise.
780         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
781         * math/gen-tgmath-tests.py (Type.create_type): Create complex
782         integer types.
784 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
786         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
787         macro.
788         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
789         alias.
790         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
791         Likewise.
793         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
794         nanosleep_not_cancel with __nanosleep_nocancel.
795         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
796         (__nanosleep_nocancel): New macro.
797         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
798         function.
799         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
800         macro.
801         (__nanosleep_nocancel): New prototype.
803         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
804         pause_not_cancel with __pause_nocancel.
805         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
806         (__pause_nocancel): New macro.
807         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
808         macro.
809         (__pause_nocancel): New prototype.
810         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
812 2017-08-22  Martin Sebor  <msebor@redhat.com>
814         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
815         to return a pointer to the same type as the target function.
817 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
819         [BZ #18822]
820         [BZ #21986]
821         * include/printf.h (__printf_fphex): Add attribute_hidden.
822         (__guess_grouping): New prototype.
823         * stdio-common/printf_fp.c (__guess_grouping): Removed.
824         * stdio-common/reg-printf.c (__register_printf_specifier): Add
825         libc_hidden_proto and libc_hidden_def.
826         * stdlib/strfmon_l.c (__guess_grouping): Removed.
827         (__vstrfmon_l): Remove the third argument passed to
828         __guess_grouping.
830 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
832         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
833         definition for issignaling that does not rely on __MATH_TG,
834         since __MATH_TG uses __builtin_types_compatible_p, which is only
835         available in C mode.
836         (CFLAGS-test-math-issignaling.cc): New variable.
837         * math/Makefile [CXX] (tests): Add test-math-issignaling.
838         * math/test-math-issignaling.cc: New test for C++ implementation
839         of type-generic issignaling.
840         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
841         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
842         options of test-math-issignaling on powerpc64le.
844 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
846         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
847         building libc.a.
848         (hidden_proto): Likewise.
849         (hidden_tls_proto): Likewise.
850         (__hidden_proto): Likewise.
852 2017-08-22  Florian Weimer  <fweimer@redhat.com>
854         math: Statically link tests of internal functionality.
855         * math/Makefile (tests): Remove atest-exp, atest-sincos,
856         atest-exp2.
857         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
858         (gmp-objs): Remove assignment.
859         (atest-exp, atest-sincos, atest-exp2): Remove targets.
861 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
863         [BZ #21987]
864         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
865         and copy to ...
866         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
867         ... here.
868         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
869         ... and here.
871         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
872         variable definitions above inclusion of ../Rules.
874 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
876         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
877         case calling __builtin_unreachable.
879 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
881         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
882         __waitpid_nocancel.
883         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
884         (__waitpid_nocancel): New macro.
885         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
886         macro.
887         (__waitpid_nocancel): Replace macro with a function.
888         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
889         function.
891         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
892         __fcntl_nocancel.
893         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
894         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
896         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
897         __writev_nocancel_nostatus.
898         (write_call_graph): Likewise.
899         (write_bb_counts): Likewise.
900         * resolv/herror.c (herror): Likewise.
901         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
902         macro.
903         (__writev_nocancel_nostatus): New macro.
904         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
905         Remove macro.
906         (__writev_nocancel_nostatus): New function.
908 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
910         Revert:
911         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
913         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
914         building libc.a.
915         (hidden_proto): Likewise.
916         (hidden_tls_proto): Likewise.
917         (__hidden_proto): Likewise.
919         [BZ #21973]
920         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
921         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
923         Likewise.
924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
925         Likewise.
926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
927         Likewise.
928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
929         Likewise.
930         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
931         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
932         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
933         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
934         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
935         GLIBC_2.0 sqrtl symbol.
937         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
938         [__USE_MISC] (_LIB_VERSION): Likewise.
939         [__USE_MISC] (struct exception): Likewise.
940         [__USE_MISC] (matherr): Likewise.
941         [__USE_MISC] (DOMAIN): Likewise.
942         [__USE_MISC] (SING): Likewise.
943         [__USE_MISC] (OVERFLOW): Likewise.
944         [__USE_MISC] (UNDERFLOW): Likewise.
945         [__USE_MISC] (TLOSS): Likewise.
946         [__USE_MISC] (PLOSS): Likewise.
947         [__USE_MISC] (HUGE): Likewise.
948         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
949         * math/math-svid-compat.h: New file.
950         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
951         and matherrl.
952         * include/math.h [!_ISOMAC] (__matherr): Remove.
953         * manual/arith.texi (FP Exceptions): Do not document matherr.
954         * math/Makefile (tests): Change test-matherr to test-matherr-3.
955         (tests-internal): New variable.
956         (install-lib): Do not add libieee.a.
957         (non-lib.a): Likewise.
958         (extra-objs): Do not add libieee.a and ieee-math.o.
959         (CPPFLAGS-s_lib_version.c): Remove variable.
960         ($(objpfx)libieee.a): Remove rule.
961         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
962         * math/ieee-math.c: Remove.
963         * math/libm-test-support.c (matherr): Remove.
964         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
965         and license notices.  Include <math-svid-compat.h> and
966         <shlib-compat.h>.
967         (matherr): Undefine as macro.  Use compat_symbol_reference.
968         (_LIB_VERSION): Likewise.
969         * math/test-matherr-2.c: New file.
970         * math/test-matherr-3.c: Likewise.
971         * sysdeps/generic/math_private.h (__kernel_standard): Remove
972         declaration.
973         (__kernel_standard_f): Likewise.
974         (__kernel_standard_l): Likewise.
975         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
976         <math_private.h>.  Include <math-svid-compat.h>.
977         (_LIB_VERSION): Undefine as macro.
978         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
979         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
980         [LIBM_SVID_COMPAT], use compat_symbol.
981         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
982         <math_private.h>.  Include <math-svid-compat.h>.
983         (matherr): Undefine as macro.
984         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
985         compat_symbol.
986         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
987         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
988         compat_symbol_reference.
989         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
990         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
991         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
992         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
993         (MATHERR_D): Remove declaration.
994         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
995         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
996         [LIBM_BUILD] (pmatherrf): Likewise.
997         [LIBM_BUILD] (pmatherr): Likewise.
998         [LIBM_BUILD] (pmatherrl): Likewise.
999         (DOMAIN): Likewise.
1000         (SING): Likewise.
1001         (OVERFLOW): Likewise.
1002         (UNDERFLOW): Likewise.
1003         (TLOSS): Likewise.
1004         (PLOSS): Likewise.
1005         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
1006         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
1007         compat_symbol.
1008         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
1009         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
1010         compat_symbol.
1011         * math/lgamma-compat.h: Include <math-svid-compat.h>.
1012         * math/w_acos_compat.c: Likewise.
1013         * math/w_acosf_compat.c: Likewise.
1014         * math/w_acosh_compat.c: Likewise.
1015         * math/w_acoshf_compat.c: Likewise.
1016         * math/w_acoshl_compat.c: Likewise.
1017         * math/w_acosl_compat.c: Likewise.
1018         * math/w_asin_compat.c: Likewise.
1019         * math/w_asinf_compat.c: Likewise.
1020         * math/w_asinl_compat.c: Likewise.
1021         * math/w_atan2_compat.c: Likewise.
1022         * math/w_atan2f_compat.c: Likewise.
1023         * math/w_atan2l_compat.c: Likewise.
1024         * math/w_atanh_compat.c: Likewise.
1025         * math/w_atanhf_compat.c: Likewise.
1026         * math/w_atanhl_compat.c: Likewise.
1027         * math/w_cosh_compat.c: Likewise.
1028         * math/w_coshf_compat.c: Likewise.
1029         * math/w_coshl_compat.c: Likewise.
1030         * math/w_exp10_compat.c: Likewise.
1031         * math/w_exp10f_compat.c: Likewise.
1032         * math/w_exp10l_compat.c: Likewise.
1033         * math/w_exp2_compat.c: Likewise.
1034         * math/w_exp2f_compat.c: Likewise.
1035         * math/w_exp2l_compat.c: Likewise.
1036         * math/w_fmod_compat.c: Likewise.
1037         * math/w_fmodf_compat.c: Likewise.
1038         * math/w_fmodl_compat.c: Likewise.
1039         * math/w_hypot_compat.c: Likewise.
1040         * math/w_hypotf_compat.c: Likewise.
1041         * math/w_hypotl_compat.c: Likewise.
1042         * math/w_j0_compat.c: Likewise.
1043         * math/w_j0f_compat.c: Likewise.
1044         * math/w_j0l_compat.c: Likewise.
1045         * math/w_j1_compat.c: Likewise.
1046         * math/w_j1f_compat.c: Likewise.
1047         * math/w_j1l_compat.c: Likewise.
1048         * math/w_jn_compat.c: Likewise.
1049         * math/w_jnf_compat.c: Likewise.
1050         * math/w_jnl_compat.c: Likewise.
1051         * math/w_lgamma_main.c: Likewise.
1052         * math/w_lgamma_r_compat.c: Likewise.
1053         * math/w_lgammaf_main.c: Likewise.
1054         * math/w_lgammaf_r_compat.c: Likewise.
1055         * math/w_lgammal_main.c: Likewise.
1056         * math/w_lgammal_r_compat.c: Likewise.
1057         * math/w_log10_compat.c: Likewise.
1058         * math/w_log10f_compat.c: Likewise.
1059         * math/w_log10l_compat.c: Likewise.
1060         * math/w_log2_compat.c: Likewise.
1061         * math/w_log2f_compat.c: Likewise.
1062         * math/w_log2l_compat.c: Likewise.
1063         * math/w_log_compat.c: Likewise.
1064         * math/w_logf_compat.c: Likewise.
1065         * math/w_logl_compat.c: Likewise.
1066         * math/w_pow_compat.c: Likewise.
1067         * math/w_powf_compat.c: Likewise.
1068         * math/w_powl_compat.c: Likewise.
1069         * math/w_remainder_compat.c: Likewise.
1070         * math/w_remainderf_compat.c: Likewise.
1071         * math/w_remainderl_compat.c: Likewise.
1072         * math/w_scalb_compat.c: Likewise.
1073         * math/w_scalbf_compat.c: Likewise.
1074         * math/w_scalbl_compat.c: Likewise.
1075         * math/w_sinh_compat.c: Likewise.
1076         * math/w_sinhf_compat.c: Likewise.
1077         * math/w_sinhl_compat.c: Likewise.
1078         * math/w_sqrt_compat.c: Likewise.
1079         * math/w_sqrtf_compat.c: Likewise.
1080         * math/w_sqrtl_compat.c: Likewise.
1081         * math/w_tgamma_compat.c: Likewise.
1082         * math/w_tgammaf_compat.c: Likewise.
1083         * math/w_tgammal_compat.c: Likewise.
1084         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
1085         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
1086         * sysdeps/ieee754/k_standard.c: Likewise.
1087         * sysdeps/ieee754/k_standardf.c: Likewise.
1088         * sysdeps/ieee754/k_standardl.c: Likewise.
1089         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
1090         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
1091         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
1092         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
1093         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
1094         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
1095         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
1096         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
1097         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
1098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
1099         Likewise.
1100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
1101         Likewise.
1102         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
1103         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
1104         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
1105         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
1107 2017-08-21  Florian Weimer  <fweimer@redhat.com>
1109         [BZ #21864]
1110         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
1111         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
1112         Move before inclusion of ../Rules.
1114 2017-08-21  Florian Weimer  <fweimer@redhat.com>
1116         [BZ #21972]
1117         * assert/assert.h (assert): Use static_cast (bool) for C++.
1118         Use the ternary operator in the warning branch for GNU C.
1119         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
1120         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
1121         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
1122         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
1123         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
1125 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1127         [BZ #18822]
1128         * sysdeps/unix/sysv/linux/x86_64/init-first.c
1129         (__syscall_clock_gettime): Add attribute_hidden.
1130         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
1131         (__start_context): Likewise.
1133 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1135         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1136         building libc.a.
1137         (hidden_proto): Likewise.
1138         (hidden_tls_proto): Likewise.
1139         (__hidden_proto): Likewise.
1141 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1143         * include/libc-symbols.h (attribute_hidden): Enable hidden
1144         visibility in libc.a compiled with PIE.
1146 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1148         [BZ #18822]
1149         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
1150         Add attribute_hidden.
1152 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1154         [BZ #21864]
1155         * Makerules (all-nonlib): Add $(others-extras).
1156         * catgets/Makefile (others-extras): New.
1157         * elf/Makefile (others-extras): Likewise.
1158         * nss/Makefile (others-extras): Likewise.
1160 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1162         [BZ #18822]
1163         * csu/libc-start.c (__libc_multiple_libcs): Removed.
1164         * elf/dl-open.c: Include <libc-internal.h>.
1165         (__libc_multiple_libcs): Removed.
1166         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
1167         <hp-timing.h>.
1168         * include/libc-internal.h (__libc_multiple_libcs): New.
1169         * misc/sbrk.c: Include <libc-internal.h>.
1170         (__libc_multiple_libcs): Removed.
1172 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1174         [BZ #18822]
1175         * grp/initgroups.c (__nss_group_database): Removed.
1176         (__nss_initgroups_database): Likewise.
1177         * nscd/gai.c (__nss_hosts_database): Likewise.
1178         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
1179         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
1180         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
1181         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
1182         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
1183         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
1184         attribute_hidden.
1185         * nss/nsswitch.c (__nss_database_custom): Define only if
1186         USE_NSCD is defined.
1187         (__nss_configure_lookup): Use __nss_database_custom only if
1188         USE_NSCD is defined.
1189         * nss/nsswitch.h (__nss_database_custom): Declare only if
1190         USE_NSCD is defined.  Add attribute_hidden.
1191         (__nss_setent): Add attribute_hidden.
1192         (__nss_endent): Likewise.
1193         (__nss_getent_r): Likewise.
1194         (__nss_getent): Likewise.
1195         (DEFINE_DATABASE): Declare __nss_##arg##_database.
1197 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1199         [BZ #18822]
1200         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
1201         libc_hidden_proto and libc_hidden_def.
1203 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1205         [BZ #18822]
1206         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
1207         Add libc_hidden_proto.
1208         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
1209         Add libc_hidden_def.
1211 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1213         [BZ #21974]
1214         * gmon/Makefile (routines): Remove bb_init_func and
1215         bb_exit_func.
1216         (elide-routines.os): Removed.
1217         * gmon/bb_exit_func.c: Likewise.
1218         * gmon/bb_init_func.c: Likewise.
1219         * include/sys/gmon.h (__bb): Likewise.
1220         (__bb_init_func): Likewise.
1221         (__bb_exit_func): Likewise.
1222         * sysdeps/alpha/bb_init_func.S: Likewise.
1224 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1226         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
1227         * include/setjmp.h (____longjmp_chk): Here.  Add
1228         attribute_hidden.
1230 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1232         [BZ #18822]
1233         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
1234         attribute_hidden.
1235         (__strspn_sse2): Likewise.
1237 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1239         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
1240         (close_not_cancel_no_status): Likewise.
1241         (__close_nocancel): New macro.
1242         (__close_nocancel_nostatus): Likewise.
1243         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
1244         macro.
1245         (close_not_cancel): Likewise.
1246         (close_not_cancel_no_status): Likewise.
1247         (__close_nocancel): New prototype.
1248         (__close_nocancel_nostatus): New function.
1249         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
1250         * catgets/open_catalog.c (__open_catalog): Replace
1251         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
1252         * gmon/gmon.c (write_gmon): Likewise.
1253         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1254         * intl/loadmsgcat.c (close): Likewise.
1255         * io/ftw.c (open_dir_stream): Likewise.
1256         (ftw_startup): Likewise.
1257         * libio/fileops.c (_IO_file_open): Likewise.
1258         (_IO_file_close_mmap): Likewise.
1259         (_IO_file_close): Likewise.
1260         * libio/iopopen.c (_IO_dup2): Likewise.
1261         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1262         * locale/loadlocale.c (_nl_load_locale): Likewise.
1263         * login/utmp_file.c (pututline_file): Likewise.
1264         (endutent_file): Likewise.
1265         * misc/daemon.c (daemon): Likewise.
1266         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1267         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1268         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1269         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1270         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1271         * nscd/nscd_helper.c (open_socket): Likewise.
1272         (__nscd_open_socket): Likewise.
1273         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1274         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
1275         (__nscd_innetgr): Likewise.
1276         * nss/nss_db/db-open.c (internal_setent): Likewise.
1277         * resolv/res-close.c (__res_iclose): Likewise.
1278         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
1279         * sysdeps/posix/closedir.c (__closedir): Likewise.
1280         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
1281         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1282         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
1283         (opendir_tail): Likewise.
1284         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1285         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
1286         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
1287         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
1288         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1289         (gethostid): Likewise.
1290         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1291         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1292         Likewise.
1293         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1294         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
1295         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1296         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1297         Likewise.
1298         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
1299         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
1300         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1301         Likewise.
1302         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
1303         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1304         Likewise.
1305         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1306         Likewise.
1307         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1308         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1309         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1310         __close_nocancel.
1312         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
1313         (openat_not_cancel_3): Likewise.
1314         (openat64_not_cancel_3): Likewise).
1315         (openat_not_cancel_3): Likewise).
1316         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
1317         macro.
1318         (openat_not_cancel_3): Likewise.
1319         (openat64_not_cancel): Likewise.
1320         (openat64_not_cancel_3): Likewise.
1321         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
1322         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
1323         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
1324         __open{64}_nocancel.
1325         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1326         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1327         * sysdeps/posix/opendir.c (__opendirat): Likewise.
1329 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1331         [BZ #18822]
1332         * include/argz.h (__argz_create_sep): New function prototype.
1333         (__argz_append): Likewise.
1334         (__argz_add): Likewise.
1335         (__argz_add_sep): Likewise.
1336         (__argz_delete): Likewise.
1337         (__argz_insert): Likewise.
1338         (__argz_replace): Likewise.
1339         * string/argz.h (__argz_create_sep): Removed.
1340         (__argz_append): Likewise.
1341         (__argz_add): Likewise.
1342         (__argz_add_sep): Likewise.
1343         (__argz_delete): Likewise.
1344         (__argz_insert): Likewise.
1345         (__argz_replace): Likewise.
1347 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1349         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
1350         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
1351         (GNU_PROPERTY_STACK_SIZE): Likewie.
1352         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
1353         (GNU_PROPERTY_LOPROC): Likewise.
1354         (GNU_PROPERTY_HIPROC): Likewise.
1355         (GNU_PROPERTY_LOUSER): Likewise.
1356         (GNU_PROPERTY_HIUSER): Likewise.
1357         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
1358         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
1359         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
1360         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
1361         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
1362         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
1363         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
1364         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
1365         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
1366         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
1367         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
1368         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
1369         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
1370         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
1371         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
1372         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
1373         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
1374         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
1375         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
1376         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
1377         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
1378         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
1379         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
1381 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1383         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
1384         in C++ mode.
1386 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1388         [BZ #21930]
1389         * math/math.h (isinf): Check if in C or C++ mode before using
1390         __builtin_types_compatible_p, since this is a C mode feature.
1392 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1394         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
1395         (__write_nocancel): New macro.
1396         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
1397         Rewrite as a function prototype.
1398         (write_not_cancel): Remove macro.
1399         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
1400         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
1401         (write_gmon): Likewise.
1402         * libio/fileops.c (_IO_new_file_write): Likewise.
1403         * login/utmp_file.c (pututline_file): Likewise.
1404         (updwtmp_file): Likewise.
1405         * stdio-common/psiginfo.c (psiginfo): Likewise.
1406         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1407         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1408         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1409         Likewise.
1410         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1411         Likewise.
1413         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
1414         (__read_nocancel): New macro.
1415         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1416         __read_nocancel.
1417         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
1418         macro.
1419         (__read_nocancel): New prototype.
1420         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
1421         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
1422         with __read_nocancel.
1423         * intl/loadmsgcat.c (read): Likewise.
1424         * libio/fileops.c (_IO_file_read): Likewise.
1425         * locale/loadlocale.c (_nl_load_locale): Likewise.
1426         * login/utmp_file.c (getutent_r_file): Likewise.
1427         (internal_getut_r): Likewise.
1428         (getutline_r_file): Likewise.
1429         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
1430         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1431         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1432         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1433         Likewise.
1434         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
1435         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1436         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1437         Likewise.
1438         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1439         Likewise.
1440         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1441         Likewise.
1442         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1443         Likewise.
1444         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1446 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1448         [BZ #21966]
1449         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
1450         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
1451         usable.
1453 2017-08-17  DJ Delorie  <dj@redhat.com>
1455         * bug17079.c: Update to new test harness.
1456         * test-digits-dots.c: Likewise.
1457         * test-netdb.c: Likewise.
1458         * tst-field.c: Likewise.
1459         * tst-nss-getpwent.c: Likewise.
1460         * tst-nss-static.c: Likewise.
1461         * tst-nss-test1.c: Likewise.
1462         * tst-nss-test2.c: Likewise.
1463         * tst-nss-test3.c: Likewise.
1464         * tst-nss-test4.c: Likewise.
1465         * tst-nss-test5.c: Likewise.
1467 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1469         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
1470         (open_not_cancel_2): Likewise.
1471         (open_nocancel): New macro.
1472         (open64_nocancel): Likewise.
1473         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
1474         (open_not_cancel_2): Likewise.
1475         (__open_nocancel): New prototype.
1476         (__open64_nocancel): Likewise.
1477         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
1478         __open_nocancel.
1479         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
1480         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
1481         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
1482         with __open_nocancel.
1483         * csu/check_fds.c (check_one_fd): Likewise.
1484         * gmon/gmon.c (write_gmon): Likewise.
1485         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
1486         * intl/loadmsgcat.c (open): Likewise.
1487         * libio/fileops.c (_IO_file_open): Likewise.
1488         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
1489         * locale/loadlocale.c (_nl_load_locale): Likewise.
1490         * login/utmp_file.c (setutent_file): Likewise.
1491         * misc/daemon.c (daemon): Likewise.
1492         * nss/nss_db/db-open.c (internal_setent): Likewise.
1493         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
1494         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
1495         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
1496         (__opendir): Likewise.
1497         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1498         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
1499         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
1500         (gethostid): Likewise.
1501         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
1502         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
1503         Likewise.
1504         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1505         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
1506         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
1507         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
1508         Likewise.
1509         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
1510         Likewise.
1511         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
1512         Likewise.
1513         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
1514         Likewise.
1515         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
1516         Likewise.
1517         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
1518         Likewise.
1519         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1520         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
1522 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
1524         * benchtests/bench-skeleton.c (main): Add support for
1525         latency benchmarking.
1526         * benchtests/scripts/bench.py: Add support for latency benchmarking.
1528 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
1530         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
1531         the startup object.
1533 2017-08-17  Florian Weimer  <fweimer@redhat.com>
1535         * include/sys/socket.h (__opensock): Remove internal_function.
1536         * socket/opensock.c (__opensock): Likewise.
1537         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
1539 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
1541         [BZ #21944]
1542         * signal/bits/types/__sigval_t.h: New file.
1543         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
1544         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
1545         and define sigval_t using __sigval_t.
1546         * include/bits/types/__sigval_t.h: New file.
1547         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
1548         instead of <bits/types/__sigval_t.h>.
1549         (struct sigevent): Use __sigval_t instead of sigval_t.
1550         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
1551         instead of <bits/types/__sigval_t.h>.
1552         (siginfo_t): Use __sigval_t instead of sigval_t.
1553         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
1554         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
1555         (struct sigevent): Use __sigval_t instead of sigval_t.
1556         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
1557         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
1558         (siginfo_t): Use __sigval_t instead of sigval_t.
1559         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
1561 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
1563         * NEWS: Remove "[Add new features here]" for 2.27.
1565 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
1567         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
1568         libc.so.
1570 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
1572         * NEWS: Mention x86-64 FMA optimization.
1574 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
1576         [BZ #21912]
1577         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1578         Add e_expf-fma.
1579         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
1580         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
1581         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
1583 2017-08-16  Andreas Schwab  <schwab@suse.de>
1585         [BZ #16750]
1586         CVE-2009-5064
1587         * elf/ldd.bash.in: Never run file directly.
1589 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
1591         [BZ #21955]
1592         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
1593         (L(SP_INF_0)): Likewise.
1595 2017-08-15  Florian Weimer  <fweimer@redhat.com>
1597         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
1598         run-built-tests.
1600 2017-08-15  Florian Weimer  <fweimer@redhat.com>
1602         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
1603         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
1604         BROKEN_THREAD_SIGNALS code.
1605         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
1606         request_list): Remove caller_pid member used for
1607         BROKEN_THREAD_SIGNALS.
1608         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
1609         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
1610         Remove BROKEN_THREAD_SIGNALS support.
1611         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1612         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
1614 2017-08-15  Florian Weimer  <fweimer@redhat.com>
1616         * gmon/Makefile (tests): Add tst-gmon.
1617         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
1618         Set.
1619         (tests-special): Add tst-gmon-prof.out.
1620         (tst-gmon.out): Depend on clean-tst-gmon-data.
1621         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
1622         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
1623         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
1624         startup object.
1625         * aclocal.m4 (GPROF): Set and substitute.
1626         * config.amke.in (GPROF): Set.
1627         * configure: Regenerate.
1629 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
1631         * elf/elf.h A (NT_PPC_TAR): New macro.
1632         (NT_PPC_PPR): Likewise.
1633         (NT_PPC_DSCR): Likewise.
1634         (NT_PPC_EBB): Likewise.
1635         (NT_PPC_PMU): Likewise.
1636         (NT_PPC_TM_CGPR): Likewise.
1637         (NT_PPC_TM_CFPR): Likewise.
1638         (NT_PPC_TM_CVMX): Likewise.
1639         (NT_PPC_TM_CVSX): Likewise.
1640         (NT_PPC_TM_SPR): Likewise.
1641         (NT_PPC_TM_CTAR): Likewise.
1642         (NT_PPC_TM_CPPR): Likewise.
1643         (NT_PPC_TM_CDSCR): Likewise.
1645 2017-08-15  Florian Weimer  <fweimer@redhat.com>
1647         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
1648         regparm (2) instead of internal_function.
1649         (_MCOUNT_DECL): Adjust.
1651 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
1653         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
1654         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
1656 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
1658         * conform/data/sys/wait.h-data (si_value): Do not expect for
1659         XPG42.
1661 2017-08-14  Florian Weimer  <fweimer@redhat.com>
1663         [BZ #21962]
1664         NSS: Create stubs for accidentally exported lookup functions.
1665         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
1666         Remove declaration.
1667         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
1668         (ether_hostton): Call __nss_ethers_lookup2 instead.
1669         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
1670         (ether_ntohost): Call __nss_ethers_lookup2 instead.
1671         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
1672         (setup): Call __nss_netgroup_lookup2 instead.
1673         * nss/Makefile (routines): Add compat-lookup.
1674         * nss/Versions (GLIBC_2.27): Add symbol version.
1675         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
1676         (DB_COMPAT_FCT): Remove.
1677         * nss/compat-lookup.c: New file.
1678         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
1679         from databases.def.
1680         * nss/service-lookup.c (NO_COMPAT): Remove definition.
1681         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
1682         (netname2user): Call __nss_publickey_lookup2 instead.
1683         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
1684         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
1685         instead.
1687 2017-08-14 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1688             Sergei Trofimovich  <slyfox@inbox.ru>
1690         [BZ #21908]
1691         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
1692         Rename to MMAP2_PAGE_UNIT.
1693         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
1694         __OFF_T_MATCHES_OFF64_T is not defined.
1695         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
1696         uint64_t.
1697         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
1698         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
1700 2017-08-14  Florian Weimer  <fweimer@redhat.com>
1702         i386: Do not set internal_function.
1703         * config.h.in (USE_REGPARMS, internal_function): Remove.
1704         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
1705         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
1707 2017-08-14  Florian Weimer  <fweimer@redhat.com>
1709         * elf/dl-init.c (_dl_init): Remove internal_function.
1710         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
1711         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
1713 2017-08-14  Florian Weimer  <fweimer@redhat.com>
1715         * elf/rtld.c (_dl_start): Remove internal_function.
1716         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
1717         _dl_start.
1719 2017-08-14  Florian Weimer  <fweimer@redhat.com>
1721         * elf/dl-fini.c (_dl_fini): Remove internal_function
1722         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
1724 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
1726         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
1727         (bit_cpu_SHSTK): Likewise.
1728         (index_cpu_IBT): Likewise.
1729         (index_cpu_SHSTK): Likewise.
1730         (reg_IBT): Likewise.
1731         (reg_SHSTK): Likewise.
1732         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1733         Handle index_cpu_IBT and index_cpu_SHSTK.
1735 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
1737         [BZ #19982]
1738         * po/fr.po: Fix spelling mistake.
1740 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1742         * elf/dl-addr.c (_dl_addr): Remove internal_function.
1743         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
1744         (_dl_catch_error, _dl_receive_error): Likewise.
1745         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
1746         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
1747         (_dl_deallocate_tls): Likewise.
1748         * include/dlfcn.h (_dl_addr): Likewise.
1749         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
1750         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
1751         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
1752         Likewise.
1754 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1756         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
1757         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
1758         internal_function.
1759         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
1761 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1763         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
1764         internal_function.
1765         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
1766         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
1767         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
1768         internal_function from _dl_make_stack_executable_hook member.
1769         (_dl_make_stack_executable): Remove internal_function.
1770         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
1771         Likewise.
1772         * sysdeps/unix/sysv/linux/dl-execstack.c
1773         (_dl_make_stack_executable): Likewise.
1775 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1777         * sysdeps/unix/sysv/linux/netlinkaccess.h
1778         (__netlink_assert_response): Remove internal_function.
1779         * sysdeps/unix/sysv/linux/netlink_assert_response.c
1780         (__netlink_assert_response): Likewise.
1782 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1784         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
1785         internal_function.
1786         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
1788 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1790         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
1791         internal_function.
1792         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
1793         * inet/netgroup.h (__internal_setnetgrent)
1794         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
1795         * inet/getnetgrent_r.c (__internal_setnetgrent)
1796         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
1797         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
1798         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
1799         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
1800         * nss/nsswitch.h (db_lookup_function): Likewise.
1802 2017-08-13  Florian Weimer  <fweimer@redhat.com>
1804         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
1805         Remove internal_function.
1806         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
1807         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
1808         message argument on the stack.
1809         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
1810         Likeweise.
1812 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
1814         Adapt test case data to the changes in the thousands
1815         separators.
1817         [BZ #20756]
1818         * localedata/tst-langinfo.sh: Adapt test case data.
1819         * stdlib/tst-strfmon_l.c: Likewise.
1820         * stdlib/tst-strtod4.c: Likewise.
1821         * stdlib/tst-strtod5i.c: Likewise.
1823 2017-08-11  Florian Weimer  <fweimer@redhat.com>
1825         [BZ #21242]
1826         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
1827         Suppress pedantic warning resulting from statement expression.
1828         (__ASSERT_FUNCTION): Add missing __extension__.
1830 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1832         * benchtests/bench-memmove-large.c: Print output in JSON
1833         format.
1834         * benchtests/bench-memmove.c: Likewise.
1836         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
1837         * benchtests/bench-memchr.c (do_one_test): Likewise.
1838         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
1839         * benchtests/bench-memcpy.c (do_one_test): Likewise.
1840         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
1841         * benchtests/bench-memmove.c (do_one_test): Likewise.
1842         * benchtests/bench-memset-large.c (do_one_test): Likewise.
1843         * benchtests/bench-memset.c (do_one_test): Likewise.
1844         * benchtests/bench-string.h (test_init): Remove memsets.
1846 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
1848         * manual/lang.texi
1849         (Computing the Width of an Integer Data Type): Rename section to
1850         "Width of an Integer Type".  Remove inaccurate statement regarding
1851         lack of C language facilities for determining width of integer
1852         types, and reorder content to improve flow and context of
1853         discussion.
1855 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
1857         * lang.texi (va_copy): Change standard from ISO to C99.
1858         (__va_copy): Add standard and header annotation.
1859         Update description for clarity of origins and current use.
1861 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1863         [BZ #21941]
1864         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
1865         xssqrtqp requires operands to be in Vector Registers
1866         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
1867         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
1868         (__ieee754_sqrtf128): Likewise.
1870 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
1872         * sysdeps/aarch64/memcmp.S (memcmp):
1873         Rewrite of optimized memcmp.
1875 2017-08-10  Florian Weimer  <fweimer@redhat.com>
1877         Introduce ld.so exceptions.
1878         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
1879         (_dl_exception_create, _dl_exception_create_format)
1880         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
1881         (_dl_catch_exception): Declare.
1882         (_dl_catch_error): Update comment.
1883         * elf/dl-error-skeleton.c (struct catch): Replace objname,
1884         errstring, malloced members with exception member.
1885         (_dl_out_of_memory): Remove.
1886         (fatal_error): New function, extracted from _dl_signal_error.
1887         (_dl_signal_exception, _dl_signal_cexception): New functions.
1888         (_dl_signal_error): Call _dl_exception_create to allocate an
1889         exception object.
1890         (_dl_catch_exception): New function, based on _dl_catch_error.
1891         (_dl_catch_error): Implement using _dl_catch_exception.
1892         * elf/dl-exception.c: New file.
1893         * elf/Makefile (dl-routines): Add dl-exception.
1894         (elide-routines.os): Likewise.
1895         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
1896         _dl_exception_create_format, _dl_exception_free.
1897         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
1898         _dl_signal_exception.
1899         * elf/dl-lookup.c (make_string): Remove.
1900         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
1901         _dl_signal_cexception, _dl_exception_free.
1902         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
1903         _dl_signal_exception.
1904         * elf/dl-sym.c (do_sym): Likewise.
1905         * elf/dl-version.c (make_string): Remove.
1906         (match_symbol): Use _dl_exception_create_format,
1907         _dl_signal_cexception, _dl_exception_free.
1908         (_dl_check_map_versions): Likewise.
1909         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
1910         _dl_catch_exception.
1911         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
1912         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
1913         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
1914         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
1915         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
1916         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
1917         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
1918         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
1919         Likewise.
1920         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
1921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
1922         (ld.so): Likewise.
1923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
1924         (ld.so): Likewise.
1925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
1926         Likewise.
1927         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
1928         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
1929         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
1930         Likewise.
1931         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
1932         Likewise.
1933         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
1935 2017-08-10  Florian Weimer  <fweimer@redhat.com>
1937         * inet/net-internal.h (__inet6_scopeid_pton): Remove
1938         attribute_hidden, internal_function.
1939         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
1940         internal_function.
1942 2017-08-10  Florian Weimer  <fweimer@redhat.com>
1944         * malloc/malloc.c (get_max_fast): Reimplement as an inline
1945         function which calls __builtin_unreachable.
1947 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
1949         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
1950         Indian monetary formatting
1951         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
1952         test cases.
1954 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
1956         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
1957         Fix typo in comment.
1959         [BZ #21928]
1960         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
1961         PTRACE_SEIZE_DEVEL): Remove.
1962         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
1963         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1964         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1965         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1966         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1968 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
1970         * posix/bits/types.h (__qaddr_t): Remove.
1972         [BZ #21457]
1973         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
1974         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
1975         __glibc_reserved1.
1976         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
1977         (ucontext_t): Use __ctx with uc_flags.
1978         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
1979         (__ctxt): Likewise.
1980         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
1981         __glibc_reserved1.
1982         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
1983         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
1984         __glibc_reserved1.
1985         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
1986         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
1987         __glibc_reserved1.
1988         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
1989         macro.
1990         (ucontext_t): Use __ctx with uc_flags.
1991         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
1992         (ucontext_t): Use __ctx with uc_flags.
1993         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
1994         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
1995         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
1996         (ucontext_t): Use __ctx with uc_flags.
1997         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
1998         undefine further down.
1999         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
2000         __glibc_reserved1.
2001         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
2002         undefine further down.
2003         (ucontext_t): Use __ctx with uc_flags.
2004         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
2005         undefine further down.
2006         (ucontext_t): Use __ctx with uc_flags.
2007         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
2008         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
2009         Rename uc_pad to __glibc_reserved1.
2010         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
2011         undefine further down.
2012         (ucontext_t): Use __ctx with uc_flags.
2013         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
2014         further down.
2015         (ucontext_t): Use __ctx with uc_flags.
2016         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
2017         __ctx with uc_flags.
2018         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
2019         (ucontext_t): Use __ctx with uc_flags.
2020         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
2021         __ctx with uc_flags.
2023 2017-08-09  Florian Weimer  <fweimer@redhat.com>
2025         [BZ #21932]
2026         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
2027         before early return.
2029 2017-08-09  Andreas Schwab  <schwab@suse.de>
2031         [BZ #21041]
2032         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
2033         renamed alias.
2035         [BZ #21041]
2036         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
2037         tst-compat-forwarder.
2038         (modules-names): Add tst-compat-forwarder-mod.
2039         ($(objpfx)tst-compat-forwarder): Depend on
2040         $(objpfx)tst-compat-forwarder-mod.so.
2041         * nptl/tst-compat-forwarder.c: New file.
2042         * nptl/tst-compat-forwarder-mod.c: New file.
2044 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2046         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
2047         comments.
2049         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
2050         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2051         memcpy_falkor.
2052         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
2053         Bump.
2054         (__libc_ifunc_impl_list): Add __memcpy_falkor.
2055         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
2056         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
2057         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2058         Add falkor.
2059         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
2060         New macro.
2062 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2064         [BZ #759]
2065         * manual/setjmp.texi (getcontex): Document uc_stack value
2066         compatibility differences.
2068 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
2070         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
2071         (old_malloc_hook): Likewise.
2072         (old_memalign_hook): Likewise.
2073         (old_realloc_hook): Likewise.
2074         (struct hdr): Likewise.
2075         (flood): Likewise.
2076         (freehook): Likewise.
2077         (mallochook): Likewise.
2078         (memalignhook): Likewise.
2079         (reallochook): Likewise.
2080         (mprobe): Likewise.
2081         * malloc/mtrace.c (mallwatch): Likewise.
2082         (tr_old_free_hook): Likewise.
2083         (tr_old_malloc_hook): Likewise.
2084         (tr_old_realloc_hook): Likewise.
2085         (tr_old_memalign_hook): Likewise.
2086         (tr_where): Likewise.
2087         (lock_and_info): Likewise.
2088         (tr_freehook): Likewise.
2089         (tr_mallochook): Likewise.
2090         (tr_reallochook): Likewise.
2091         (tr_memalignhook): Likewise.
2092         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
2093         * misc/mmap.c (__mmap): Likewise.
2094         * misc/mmap64.c (__mmap64): Likewise.
2095         * misc/mprotect.c (__mprotect): Likewise.
2096         * misc/msync.c (msync): Likewise.
2097         * misc/munmap.c (__munmap): Likewise.
2098         * posix/posix_madvise.c (posix_madvise): Likewise.
2099         * socket/send.c (__send): Likewise.
2100         * socket/sendto.c (__sendto): Likewise.
2101         * socket/setsockopt.c (__setsockopt): Likewise.
2102         * string/memcmp.c (__ptr_t): Remove macro.
2103         (MEMCMP): Use void * instead of ptr_t.
2104         * string/memrchr.c (__ptr_t): Remove macro.
2105         (__memrchr): Use void * instead of ptr_t.
2106         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
2107         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2108         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
2109         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
2110         * sysdeps/mach/msync.c (msync): Likewise.
2111         * sysdeps/mach/munmap.c (__munmap): Likewise.
2112         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
2113         Likewise.
2114         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2115         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2116         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
2117         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
2118         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
2119         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2120         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
2121         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
2122         Likewise.
2123         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2124         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2125         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2126         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
2127         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
2128         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
2129         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
2130         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
2131         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
2132         Likewise.
2133         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
2134         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
2135         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
2136         (MEMCMP): Use void * instead of ptr_t.
2137         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
2138         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
2140 2017-08-08  Florian Weimer  <fweimer@redhat.com>
2142         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
2143         return statement.
2145 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2147         [BZ #21913]
2148         * csu/libc-tls.c: Include <startup.h> first.
2149         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
2150         * elf/dl-tunables.c: Include <startup.h> first.
2151         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
2152         * sysdeps/generic/startup.h: New file.
2153         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
2154         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
2155         (I386_USE_SYSENTER): New.  Defined to 0.
2157 2017-08-08  Andreas Schwab  <schwab@suse.de>
2159         [BZ #21041]
2160         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
2161         * nptl/pt-system.c (system): Likewise.
2163 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2165         [BZ #21780]
2166         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
2167         EOPNOTSUPP.
2168         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2169         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2170         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
2171         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2172         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2173         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2174         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2176 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
2178         [BZ #21899]
2179         * bits/sigaction.h (struct sigaction): Define sa_handler and
2180         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
2181         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2182         [__USE_XOPEN_EXTENDED].
2183         (SA_RESTART): Likewise.
2184         (SA_NODEFER): Likewise.
2185         (SA_RESETHAND): Likewise.
2186         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
2187         (struct sigaction): Define sa_handler and sa_sigaction using union
2188         also for [__USE_XOPEN_EXTENDED].
2189         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2190         [__USE_XOPEN_EXTENDED].
2191         (SA_RESTART): Likewise.
2192         (SA_NODEFER): Likewise.
2193         (SA_RESETHAND): Likewise.
2194         * sysdeps/unix/sysv/linux/bits/sigaction.h
2195         (struct sigaction): Define sa_handler and sa_sigaction using union
2196         also for [__USE_XOPEN_EXTENDED].
2197         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2198         [__USE_XOPEN_EXTENDED].
2199         (SA_RESTART): Likewise.
2200         (SA_NODEFER): Likewise.
2201         (SA_RESETHAND): Likewise.
2202         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
2203         (struct sigaction): Define sa_handler and sa_sigaction using union
2204         also for [__USE_XOPEN_EXTENDED].
2205         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2206         [__USE_XOPEN_EXTENDED].
2207         (SA_RESTART): Likewise.
2208         (SA_NODEFER): Likewise.
2209         (SA_RESETHAND): Likewise.
2210         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
2211         (struct sigaction): Define sa_handler and sa_sigaction using union
2212         also for [__USE_XOPEN_EXTENDED].
2213         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2214         [__USE_XOPEN_EXTENDED].
2215         (SA_RESTART): Likewise.
2216         (SA_NODEFER): Likewise.
2217         (SA_RESETHAND): Likewise.
2218         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
2219         (struct sigaction): Define sa_handler and sa_sigaction using union
2220         also for [__USE_XOPEN_EXTENDED].
2221         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2222         [__USE_XOPEN_EXTENDED].
2223         (SA_RESTART): Likewise.
2224         (SA_NODEFER): Likewise.
2225         (SA_RESETHAND): Likewise.
2226         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2227         (struct sigaction): Define sa_handler and sa_sigaction using union
2228         also for [__USE_XOPEN_EXTENDED].
2229         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2230         [__USE_XOPEN_EXTENDED].
2231         (SA_RESTART): Likewise.
2232         (SA_NODEFER): Likewise.
2233         (SA_RESETHAND): Likewise.
2234         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
2235         (struct sigaction): Define sa_handler and sa_sigaction using union
2236         also for [__USE_XOPEN_EXTENDED].
2237         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2238         [__USE_XOPEN_EXTENDED].
2239         (SA_RESTART): Likewise.
2240         (SA_NODEFER): Likewise.  Define directly rather than as alias.
2241         (SA_RESETHAND): Likewise.
2242         (SA_INTERRUPT): Define only for [__USE_MISC].
2243         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
2244         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
2245         [__USE_MISC].
2246         (SA_STACK): Define only for [__USE_MISC].
2247         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
2248         (struct sigaction): Define sa_handler and sa_sigaction using union
2249         also for [__USE_XOPEN_EXTENDED].
2250         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2251         [__USE_XOPEN_EXTENDED].
2252         (SA_RESTART): Likewise.
2253         (SA_NODEFER): Likewise.
2254         (SA_RESETHAND): Likewise.
2255         (SA_NOPTRACE): Define only for [__USE_MISC].
2257         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
2258         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
2259         (struct catalog_info): Likewise.
2260         * inet/htontest.c (lo): Likewise.
2261         (foo): Likewise.
2262         * inet/inet_lnaof.c (inet_lnaof): Likewise.
2263         * inet/inet_net.c (inet_network): Likewise.
2264         * inet/inet_netof.c (inet_netof): Likewise.
2265         * inet/rcmd.c (__ivaliduser): Likewise.
2266         (iruserok): Likewise.
2267         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
2268         * locale/programs/locale-spec.c (locale_special): Likewise.
2269         * nis/nis_findserv.c (struct findserv_req): Likewise.
2270         (__nis_findfastest_with_timeout): Likewise.
2271         * nss/test-netdb.c (test_network): Likewise.
2272         * resolv/inet_neta.c (inet_neta): Likewise.
2273         * resolv/ns_date.c (ns_datetosecs): Likewise.
2274         (SECS_PER_DAY): Likewise.
2275         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
2276         Likewise.
2277         * resolv/res_comp.c (__putlong): Likewise.
2278         (__putshort): Likewise.
2279         (_getlong): Likewise.
2280         (_getshort): Likewise.
2281         * resolv/res_debug.c (p_time): Likewise.
2282         (precsize_ntoa): Likewise.
2283         (precsize_aton): Likewise.
2284         (latlon2ul): Likewise.
2285         (loc_aton): Likewise.
2286         (loc_ntoa): Likewise.
2287         * resolv/res_hconf.c (struct netaddr): Likewise.
2288         (_res_hconf_reorder_addrs): Likewise.
2289         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
2290         (clnttcp_control): Likewise.
2291         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
2292         (clntudp_control): Likewise.
2293         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
2294         (clntunix_control): Likewise.
2295         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
2296         * sunrpc/rpc/auth.h (union des_block): Likewise.
2297         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
2298         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
2299         (xdrrec_create): Likewise.
2300         (xdrrec_endofrecord): Likewise.
2301         (flush_out): Likewise.
2302         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
2303         (xdrstdio_putlong): Likewise.
2304         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
2305         Likewise.
2307         * misc/sys/cdefs.h (__long_double_t): Remove.
2308         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
2309         instead of __long_double_t,
2310         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
2312 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2314         * benchtests/scripts/compare_strings.py: Avoid display error when
2315         running on a text terminal.
2317         * benchtests/scripts/compare_strings.py (main): Add an
2318         optional -base option.
2319         (process_results): New argument base_func.
2321         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
2322         hardcoding memcpy.
2323         * benchtests/bench-memcpy-large.c (test_name): Likewise.
2324         * benchtests/bench-memcpy-random.c (test_name): Likewise.
2326 2017-08-07  Andreas Schwab  <schwab@suse.de>
2328         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
2329         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
2330         * intl/Makefile ($(objpfx)tst-gettext.out)
2331         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
2332         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
2333         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
2334         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
2335         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
2336         * posix/Makefile ($(objpfx)globtest.out)
2337         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
2338         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
2339         ($(objpfx)tst-printf.out): Likewise.
2340         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
2341         ($(objpfx)tst-setcontext3.out): Likewise.
2343 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2345         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2346         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
2347         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
2348         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
2349         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
2350         and mptan-fma.
2351         (CFLAGS-doasin-fma.c): New.
2352         (CFLAGS-dosincos-fma.c): Likewise.
2353         (CFLAGS-e_asin-fma.c): Likewise.
2354         (CFLAGS-e_atan2-fma.c): Likewise.
2355         (CFLAGS-e_exp-fma.c): Likewise.
2356         (CFLAGS-e_log-fma.c): Likewise.
2357         (CFLAGS-e_pow-fma.c): Likewise.
2358         (CFLAGS-halfulp-fma.c): Likewise.
2359         (CFLAGS-mpa-fma.c): Likewise.
2360         (CFLAGS-mpatan-fma.c): Likewise.
2361         (CFLAGS-mpatan2-fma.c): Likewise.
2362         (CFLAGS-mpexp-fma.c): Likewise.
2363         (CFLAGS-mplog-fma.c): Likewise.
2364         (CFLAGS-mpsqrt-fma.c): Likewise.
2365         (CFLAGS-mptan-fma.c): Likewise.
2366         (CFLAGS-s_atan-fma.c): Likewise.
2367         (CFLAGS-sincos32-fma.c): Likewise.
2368         (CFLAGS-slowexp-fma.c): Likewise.
2369         (CFLAGS-slowpow-fma.c): Likewise.
2370         (CFLAGS-s_sin-fma.c): Likewise.
2371         (CFLAGS-s_tan-fma.c): Likewise.
2372         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
2373         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
2374         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
2375         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
2376         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
2377         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
2378         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
2379         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
2380         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
2381         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
2382         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
2383         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
2384         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
2385         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
2386         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
2387         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
2388         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
2389         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
2390         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
2391         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
2392         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
2393         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
2394         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
2395         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
2396         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
2397         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
2398         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
2399         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
2400         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
2401         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
2402         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
2404 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
2406         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
2407         (min_of_type_f): New macro.
2408         (min_of_type_): Likewise.
2409         (min_of_type_l): Likewise.
2410         (min_of_type_f128): Likewise.
2411         (min_of_type): Define using __MATH_TG and taking an expression
2412         argument.
2413         (math_check_force_underflow): Pass expression instead of type to
2414         min_of_type.
2415         (math_check_force_underflow_nonneg): Likewise.
2417 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2419         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
2420         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
2421         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
2423 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2425         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2426         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
2427         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
2428         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
2429         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
2430         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
2431         memcpy_chk-nonshared, mempcpy_chk-nonshared,
2432         memmove_chk-nonshared and memset_chk-nonshared
2433         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
2434         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
2435         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
2436         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
2437         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
2438         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
2439         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
2440         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
2441         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
2442         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
2443         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
2444         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
2445         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
2446         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
2447         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
2448         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
2449         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
2450         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
2451         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
2452         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
2453         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
2454         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
2455         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
2456         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
2457         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
2458         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
2459         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
2460         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
2461         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
2462         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
2463         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
2464         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
2465         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
2466         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
2467         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
2468         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
2469         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
2470         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
2471         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
2472         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
2473         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
2474         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
2475         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
2476         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
2477         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
2478         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
2479         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
2480         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
2481         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
2482         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
2483         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
2484         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
2485         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
2486         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
2487         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
2488         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
2489         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
2490         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
2491         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
2492         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
2493         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
2494         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
2495         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
2496         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
2497         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
2498         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
2499         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
2500         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
2501         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
2502         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2503         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
2504         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2505         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2506         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2507         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2508         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2509         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2510         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2511         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2512         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2513         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2514         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2515         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2516         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2517         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2518         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2519         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2520         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2521         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2522         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2523         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2524         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2525         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2526         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2527         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2528         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2529         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2530         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2531         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2532         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2533         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2534         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2535         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2536         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2537         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2538         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2539         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2540         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2542 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2544         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
2545         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
2546         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
2547         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
2548         svml_d_log2_core-sse2, svml_d_log4_core-sse,
2549         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
2550         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
2551         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
2552         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
2553         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
2554         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
2555         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
2556         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
2557         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
2558         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
2559         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
2560         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
2561         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
2562         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
2563         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
2564         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
2565         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
2566         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
2567         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
2568         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
2569         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
2570         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
2571         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
2572         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
2573         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
2574         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
2575         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
2576         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
2577         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
2578         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
2579         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
2580         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
2581         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
2582         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
2583         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
2584         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
2585         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
2586         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
2587         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
2588         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
2589         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
2590         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
2591         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
2592         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
2593         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
2594         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
2595         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
2596         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
2597         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
2598         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
2599         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
2600         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
2601         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
2602         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
2603         ...
2604         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
2605         Don't include <sysdep.h> nor <init-arch.h>.
2606         (_ZGVbN2v_cos): Removed.
2607         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
2608         ...
2609         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
2610         Don't include <sysdep.h> nor <init-arch.h>.
2611         (_ZGVdN4v_cos): Removed.
2612         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
2613         ...
2614         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
2615         Don't include <sysdep.h> nor <init-arch.h>.
2616         (_ZGVeN8v_cos): Removed.
2617         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
2618         ...
2619         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
2620         Don't include <sysdep.h> nor <init-arch.h>.
2621         (_ZGVbN2v_exp): Removed.
2622         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
2623         ...
2624         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
2625         Don't include <sysdep.h> nor <init-arch.h>.
2626         (_ZGVdN4v_exp): Removed.
2627         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
2628         ...
2629         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
2630         Don't include <sysdep.h> nor <init-arch.h>.
2631         (_ZGVeN8v_exp): Removed.
2632         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
2633         ...
2634         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
2635         Don't include <sysdep.h> nor <init-arch.h>.
2636         (_ZGVbN2v_log): Removed.
2637         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
2638         ...
2639         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
2640         Don't include <sysdep.h> nor <init-arch.h>.
2641         (_ZGVdN4v_log): Removed.
2642         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
2643         ...
2644         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
2645         Don't include <sysdep.h> nor <init-arch.h>.
2646         (_ZGVeN8v_log): Removed.
2647         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
2648         ...
2649         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
2650         Don't include <sysdep.h> nor <init-arch.h>.
2651         (_ZGVbN2vv_pow): Removed.
2652         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
2653         ...
2654         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
2655         Don't include <sysdep.h> nor <init-arch.h>.
2656         (_ZGVdN4vv_pow): Removed.
2657         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
2658         ...
2659         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
2660         Don't include <sysdep.h> nor <init-arch.h>.
2661         (_ZGVeN8vv_pow): Removed.
2662         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
2663         ...
2664         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
2665         Don't include <sysdep.h> nor <init-arch.h>.
2666         (_ZGVbN2v_sin): Removed.
2667         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
2668         ...
2669         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
2670         Don't include <sysdep.h> nor <init-arch.h>.
2671         (_ZGVbN4v_sin): Removed.
2672         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
2673         ...
2674         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
2675         Don't include <sysdep.h> nor <init-arch.h>.
2676         (_ZGVbN8v_sin): Removed.
2677         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
2678         ...
2679         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
2680         Don't include <sysdep.h> nor <init-arch.h>.
2681         (_ZGVbN2vvv_sincos): Removed.
2682         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
2683         ...
2684         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
2685         Don't include <sysdep.h> nor <init-arch.h>.
2686         (_ZGVdN4vvv_sincos): Removed.
2687         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
2688         ...
2689         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
2690         Don't include <sysdep.h> nor <init-arch.h>.
2691         (_ZGVeN8vvv_sincos): Removed.
2692         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
2693         ...
2694         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
2695         Don't include <sysdep.h> nor <init-arch.h>.
2696         (_ZGVeN16v_cosf): Removed.
2697         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
2698         ...
2699         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
2700         Don't include <sysdep.h> nor <init-arch.h>.
2701         (_ZGVbN4v_cosf): Removed.
2702         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
2703         ...
2704         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
2705         Don't include <sysdep.h> nor <init-arch.h>.
2706         (_ZGVdN8v_cosf): Removed.
2707         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
2708         ...
2709         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
2710         Don't include <sysdep.h> nor <init-arch.h>.
2711         (_ZGVeN16v_expf): Removed.
2712         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
2713         ...
2714         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
2715         Don't include <sysdep.h> nor <init-arch.h>.
2716         (_ZGVbN4v_expf): Removed.
2717         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
2718         ...
2719         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
2720         Don't include <sysdep.h> nor <init-arch.h>.
2721         (_ZGVdN8v_expf): Removed.
2722         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
2723         ...
2724         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
2725         Don't include <sysdep.h> nor <init-arch.h>.
2726         (_ZGVeN16v_logf): Removed.
2727         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
2728         ...
2729         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
2730         Don't include <sysdep.h> nor <init-arch.h>.
2731         (_ZGVbN4v_logf): Removed.
2732         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
2733         ...
2734         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
2735         Don't include <sysdep.h> nor <init-arch.h>.
2736         (_ZGVdN8v_logf): Removed.
2737         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
2738         ...
2739         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
2740         Don't include <sysdep.h> nor <init-arch.h>.
2741         (_ZGVeN16vv_powf): Removed.
2742         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
2743         ...
2744         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
2745         Don't include <sysdep.h> nor <init-arch.h>.
2746         (_ZGVbN4vv_powf): Removed.
2747         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
2748         ...
2749         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
2750         Don't include <sysdep.h> nor <init-arch.h>.
2751         (_ZGVdN8vv_powf): Removed.
2752         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
2753         ...
2754         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
2755         Don't include <sysdep.h> nor <init-arch.h>.
2756         (_ZGVeN16vvv_sincosf): Removed.
2757         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
2758         ...
2759         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
2760         Don't include <sysdep.h> nor <init-arch.h>.
2761         (_ZGVbN4vvv_sincosf): Removed.
2762         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
2763         ...
2764         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
2765         Don't include <sysdep.h> nor <init-arch.h>.
2766         (_ZGVdN8vvv_sincosf): Removed.
2767         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
2768         ...
2769         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
2770         Don't include <sysdep.h> nor <init-arch.h>.
2771         (_ZGVeN16v_sinf): Removed.
2772         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
2773         ...
2774         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
2775         Don't include <sysdep.h> nor <init-arch.h>.
2776         (_ZGVbN4v_sinf): Removed.
2777         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
2778         ...
2779         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
2780         Don't include <sysdep.h> nor <init-arch.h>.
2781         (_ZGVdN8v_sinf): Removed.
2783 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2785         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2786         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
2787         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
2788         s_rint-sse4_1 and s_rintf-sse4_1.
2789         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
2790         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
2791         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
2792         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
2793         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
2794         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
2795         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
2796         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
2797         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
2798         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
2799         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
2800         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2801         (__ceil): Removed.
2802         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
2803         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
2804         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2805         (__ceilf): Removed.
2806         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
2807         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
2808         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2809         (__floor): Removed.
2810         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
2811         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
2812         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2813         (__floorf): Removed.
2814         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
2815         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
2816         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2817         (__nearbyint): Removed.
2818         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
2819         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
2820         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2821         (__nearbyintf): Removed.
2822         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
2823         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
2824         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2825         (__rint): Removed.
2826         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
2827         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
2828         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
2829         (__rintf): Removed.
2831 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2833         * sysdeps/i386/start.S (_start): Check Check PIC instead of
2834         SHARED.  Avoid dynamic relocation against main in static PIE.
2836 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2838         [BZ #21815]
2839         * elf/Makefile (CFLAGS-tst-prelink.c): New.
2840         (LDFLAGS-tst-prelink): Likewise.
2842 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2844         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
2845         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
2846         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
2847         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
2848         (INTERNAL_SYSCALL_NCS): Likewise.
2849         (LOADARGS_1): Likewise.
2850         (LOADARGS_5): Likewise.
2851         (RESTOREARGS_1): Likewise.
2852         (RESTOREARGS_5): Likewise.
2854 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2856         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
2857         (MEMPCPY_SYMBOL): Likewise.
2858         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
2859         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
2860         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
2861         in libc.a.
2862         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2863         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2864         Likewise.
2865         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
2866         (__hidden_ver1): Don't use in libc.a.
2867         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
2868         (__mempcpy): Don't create a weak alias in libc.a.
2869         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
2870         libc.a.
2871         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
2872         (__hidden_ver1): Don't use in libc.a.
2874 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2876         * config.make.in (have-insert): New.
2877         * configure.ac (libc_cv_insert): New.  Set to yes if linker
2878         supports INSERT in linker script.
2879         (AC_SUBST(libc_cv_insert): New.
2880         * configure: Regenerated.
2881         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
2882         if $(have-insert) == yes.
2884 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2886         * elf/Makefile (tests): Add vismain only if
2887         $(have-protected-data) == yes.
2888         (tests-pie): Likewise.
2890 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2892         [BZ #21871]
2893         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
2894         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
2896 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2898         [BZ #21790]
2899         * sysdeps/i386/i586/memset.S
2900         (__memset_zero_constant_len_parameter): Removed.
2901         * sysdeps/i386/i686/memset.S
2902         (__memset_zero_constant_len_parameter): Likewise.
2903         * sysdeps/i386/i686/multiarch/memset_chk.S
2904         (__memset_zero_constant_len_parameter): Likewise.
2905         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
2906         Likewise.
2908 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
2910         * stdlib/getentropy.c (getentropy): Change return type to int.
2912 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
2914         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
2916 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
2918         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
2919         u_intN_t.
2920         * math/s_nexttowardf.c (__nexttowardf): Likewise.
2921         * sysdeps/generic/math_private.h (ieee_double_shape_type):
2922         Likewise.
2923         (ieee_float_shape_type): Likewise.
2924         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
2925         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
2926         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
2927         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
2928         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
2929         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
2930         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
2931         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
2932         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
2933         Likewise.
2934         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
2935         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
2936         (__ieee754_yn): Likewise.
2937         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
2938         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2939         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
2940         Likewise.
2941         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
2942         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
2943         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
2944         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
2945         (__erfc): Likewise.
2946         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
2947         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
2948         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
2949         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
2950         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
2951         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
2952         Likewise.
2953         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
2954         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
2955         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2956         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
2957         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
2958         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
2959         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
2960         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
2961         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
2962         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
2963         (__issignaling): Likewise.
2964         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
2965         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
2966         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2967         Likewise.
2968         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2969         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2970         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
2971         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
2972         Likewise.
2973         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
2974         Likewise.
2975         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
2976         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
2977         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
2978         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
2979         (__erfcf): Likewise.
2980         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
2981         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
2982         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
2983         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
2984         Likewise.
2985         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
2986         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
2987         Likewise.
2988         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
2989         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
2990         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
2991         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
2992         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
2993         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
2994         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
2995         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
2996         Likewise.
2997         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
2998         Likewise.
2999         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
3000         Likewise.
3001         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
3002         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3003         Likewise.
3004         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
3005         Likewise.
3006         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3007         (__ieee754_ynl): Likewise.
3008         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3009         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
3010         Likewise.
3011         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
3012         Likewise.
3013         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
3014         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
3015         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3016         Likewise.
3017         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
3018         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
3019         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
3020         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
3021         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
3022         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
3023         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
3024         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
3025         Likewise.
3026         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
3027         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
3028         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
3029         Likewise.
3030         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3031         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
3032         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3033         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
3034         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
3035         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3036         Likewise.
3037         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
3038         Likewise.
3039         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
3040         Likewise.
3041         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
3042         Likewise.
3043         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
3044         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
3045         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3046         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
3047         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
3048         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
3049         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
3050         Likewise.
3051         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3052         Likewise.
3053         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3054         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3055         Likewise.
3056         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
3057         (__ieee754_remainderl): Likewise.
3058         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3059         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3060         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
3061         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
3062         Likewise.
3063         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
3064         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3065         Likewise.
3066         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
3067         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
3068         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
3069         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
3070         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
3071         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3072         Likewise.
3073         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
3074         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
3075         (__ieee754_y0l): Likewise.
3076         (pzero): Likewise.
3077         (qzero): Likewise.
3078         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
3079         (__ieee754_y1l): Likewise.
3080         (pone): Likewise.
3081         (qone): Likewise.
3082         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3083         (__ieee754_ynl): Likewise.
3084         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3085         (__ieee754_lgammal_r): Likewise.
3086         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
3087         Likewise.
3088         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
3089         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
3090         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
3091         (__erfcl): Likewise.
3092         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
3093         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
3094         Likewise.
3095         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3096         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
3097         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3098         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
3099         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
3100         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3101         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
3102         Likewise.
3103         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
3104         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
3105         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
3106         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
3107         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
3108         Likewise.
3109         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
3110         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
3111         Likewise.
3112         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
3113         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
3114         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
3115         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3116         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
3118 2017-08-03  Florian Weimer  <fweimer@redhat.com>
3120         [BZ #21885]
3121         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
3122         on memory allocation failure.
3124 2017-08-03  Alan Modra  <amodra@gmail.com>
3126         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
3127         tst-tlsopt-powerpc.c with function name change and no test harness.
3128         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
3129         Call tls_get_addr_opt_test.
3130         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
3131         (modules-names): Add mod-tlsopt-powerpc.
3132         (mod-tlsopt-powerpc.so-no-z-defs): Define.
3133         (tst-tlsopt-powerpc): Depend on .so.
3134         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
3135         define.  Expand use in TLS_GD and TLS_LD.
3137 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3139         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
3140         function.
3141         * sysdeps/posix/shm_open.c: Include <pthread.h>.
3143 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
3145         [BZ #21686]
3146         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
3147         comparing size with that of double.
3148         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3149         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3150         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3151         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3152         (__TGMATH_BINARY_REAL_IMAG): Likewise.
3153         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
3154         unsigned __int128 types.
3156 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
3158         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
3159         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
3160         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
3161         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
3162         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
3164 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3166         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
3168 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3170         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
3171         of SHARED.
3172         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
3173         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3174         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3175         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3176         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3177         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3178         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3180 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
3182         [BZ #21685]
3183         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
3184         bit-field expressions passed to sizeof or typeof.
3185         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3186         (__TGMATH_F128): Likewise.
3187         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3188         (__TGMATH_CF128): Likewise.
3189         (__TGMATH_UNARY_REAL_ONLY): Likewise.
3190         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
3191         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
3192         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
3193         (__TGMATH_BINARY_REAL_ONLY): Likewise.
3194         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3195         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3196         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3197         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3198         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
3199         (__TGMATH_UNARY_REAL_IMAG): Likewise.
3200         (__TGMATH_UNARY_IMAG): Likewise.
3201         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3202         (__TGMATH_BINARY_REAL_IMAG): Likewise.
3203         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
3204         type.
3205         (define_vars_for_type): Handle bit_field type specially.
3206         (Tests.__init__): Declare structure with bit-field element.
3208 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3210         [BZ #21791]
3211         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
3212         (MEMCPY_CHK): Define only if SHARED is defined.
3213         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
3214         Likewise.
3215         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
3216         Likewise.
3218 See ChangeLog.18 for earlier changes.