aio: Remove support for BROKEN_THREAD_SIGNALS
[glibc.git] / ChangeLog
blobfdea6b60a25959bd152a6fdbaac46b8088d6657c
1 2017-08-15  Florian Weimer  <fweimer@redhat.com>
3         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
4         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
5         BROKEN_THREAD_SIGNALS code.
6         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
7         request_list): Remove caller_pid member used for
8         BROKEN_THREAD_SIGNALS.
9         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
10         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
11         Remove BROKEN_THREAD_SIGNALS support.
12         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
13         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
15 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17         * gmon/Makefile (tests): Add tst-gmon.
18         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
19         Set.
20         (tests-special): Add tst-gmon-prof.out.
21         (tst-gmon.out): Depend on clean-tst-gmon-data.
22         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
23         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
24         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
25         startup object.
26         * aclocal.m4 (GPROF): Set and substitute.
27         * config.amke.in (GPROF): Set.
28         * configure: Regenerate.
30 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
32         * elf/elf.h A (NT_PPC_TAR): New macro.
33         (NT_PPC_PPR): Likewise.
34         (NT_PPC_DSCR): Likewise.
35         (NT_PPC_EBB): Likewise.
36         (NT_PPC_PMU): Likewise.
37         (NT_PPC_TM_CGPR): Likewise.
38         (NT_PPC_TM_CFPR): Likewise.
39         (NT_PPC_TM_CVMX): Likewise.
40         (NT_PPC_TM_CVSX): Likewise.
41         (NT_PPC_TM_SPR): Likewise.
42         (NT_PPC_TM_CTAR): Likewise.
43         (NT_PPC_TM_CPPR): Likewise.
44         (NT_PPC_TM_CDSCR): Likewise.
46 2017-08-15  Florian Weimer  <fweimer@redhat.com>
48         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
49         regparm (2) instead of internal_function.
50         (_MCOUNT_DECL): Adjust.
52 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
54         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
55         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
57 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
59         * conform/data/sys/wait.h-data (si_value): Do not expect for
60         XPG42.
62 2017-08-14  Florian Weimer  <fweimer@redhat.com>
64         [BZ #21962]
65         NSS: Create stubs for accidentally exported lookup functions.
66         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
67         Remove declaration.
68         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
69         (ether_hostton): Call __nss_ethers_lookup2 instead.
70         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
71         (ether_ntohost): Call __nss_ethers_lookup2 instead.
72         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
73         (setup): Call __nss_netgroup_lookup2 instead.
74         * nss/Makefile (routines): Add compat-lookup.
75         * nss/Versions (GLIBC_2.27): Add symbol version.
76         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
77         (DB_COMPAT_FCT): Remove.
78         * nss/compat-lookup.c: New file.
79         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
80         from databases.def.
81         * nss/service-lookup.c (NO_COMPAT): Remove definition.
82         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
83         (netname2user): Call __nss_publickey_lookup2 instead.
84         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
85         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
86         instead.
88 2017-08-14 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
89             Sergei Trofimovich  <slyfox@inbox.ru>
91         [BZ #21908]
92         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
93         Rename to MMAP2_PAGE_UNIT.
94         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
95         __OFF_T_MATCHES_OFF64_T is not defined.
96         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
97         uint64_t.
98         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
99         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
101 2017-08-14  Florian Weimer  <fweimer@redhat.com>
103         i386: Do not set internal_function.
104         * config.h.in (USE_REGPARMS, internal_function): Remove.
105         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
106         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
108 2017-08-14  Florian Weimer  <fweimer@redhat.com>
110         * elf/dl-init.c (_dl_init): Remove internal_function.
111         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
112         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
114 2017-08-14  Florian Weimer  <fweimer@redhat.com>
116         * elf/rtld.c (_dl_start): Remove internal_function.
117         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
118         _dl_start.
120 2017-08-14  Florian Weimer  <fweimer@redhat.com>
122         * elf/dl-fini.c (_dl_fini): Remove internal_function
123         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
125 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
127         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
128         (bit_cpu_SHSTK): Likewise.
129         (index_cpu_IBT): Likewise.
130         (index_cpu_SHSTK): Likewise.
131         (reg_IBT): Likewise.
132         (reg_SHSTK): Likewise.
133         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
134         Handle index_cpu_IBT and index_cpu_SHSTK.
136 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
138         [BZ #19982]
139         * po/fr.po: Fix spelling mistake.
141 2017-08-13  Florian Weimer  <fweimer@redhat.com>
143         * elf/dl-addr.c (_dl_addr): Remove internal_function.
144         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
145         (_dl_catch_error, _dl_receive_error): Likewise.
146         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
147         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
148         (_dl_deallocate_tls): Likewise.
149         * include/dlfcn.h (_dl_addr): Likewise.
150         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
151         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
152         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
153         Likewise.
155 2017-08-13  Florian Weimer  <fweimer@redhat.com>
157         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
158         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
159         internal_function.
160         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
162 2017-08-13  Florian Weimer  <fweimer@redhat.com>
164         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
165         internal_function.
166         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
167         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
168         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
169         internal_function from _dl_make_stack_executable_hook member.
170         (_dl_make_stack_executable): Remove internal_function.
171         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
172         Likewise.
173         * sysdeps/unix/sysv/linux/dl-execstack.c
174         (_dl_make_stack_executable): Likewise.
176 2017-08-13  Florian Weimer  <fweimer@redhat.com>
178         * sysdeps/unix/sysv/linux/netlinkaccess.h
179         (__netlink_assert_response): Remove internal_function.
180         * sysdeps/unix/sysv/linux/netlink_assert_response.c
181         (__netlink_assert_response): Likewise.
183 2017-08-13  Florian Weimer  <fweimer@redhat.com>
185         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
186         internal_function.
187         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
189 2017-08-13  Florian Weimer  <fweimer@redhat.com>
191         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
192         internal_function.
193         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
194         * inet/netgroup.h (__internal_setnetgrent)
195         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
196         * inet/getnetgrent_r.c (__internal_setnetgrent)
197         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
198         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
199         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
200         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
201         * nss/nsswitch.h (db_lookup_function): Likewise.
203 2017-08-13  Florian Weimer  <fweimer@redhat.com>
205         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
206         Remove internal_function.
207         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
208         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
209         message argument on the stack.
210         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
211         Likeweise.
213 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
215         Adapt test case data to the changes in the thousands
216         separators.
218         [BZ #20756]
219         * localedata/tst-langinfo.sh: Adapt test case data.
220         * stdlib/tst-strfmon_l.c: Likewise.
221         * stdlib/tst-strtod4.c: Likewise.
222         * stdlib/tst-strtod5i.c: Likewise.
224 2017-08-11  Florian Weimer  <fweimer@redhat.com>
226         [BZ #21242]
227         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
228         Suppress pedantic warning resulting from statement expression.
229         (__ASSERT_FUNCTION): Add missing __extension__.
231 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
233         * benchtests/bench-memmove-large.c: Print output in JSON
234         format.
235         * benchtests/bench-memmove.c: Likewise.
237         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
238         * benchtests/bench-memchr.c (do_one_test): Likewise.
239         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
240         * benchtests/bench-memcpy.c (do_one_test): Likewise.
241         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
242         * benchtests/bench-memmove.c (do_one_test): Likewise.
243         * benchtests/bench-memset-large.c (do_one_test): Likewise.
244         * benchtests/bench-memset.c (do_one_test): Likewise.
245         * benchtests/bench-string.h (test_init): Remove memsets.
247 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
249         * manual/lang.texi
250         (Computing the Width of an Integer Data Type): Rename section to
251         "Width of an Integer Type".  Remove inaccurate statement regarding
252         lack of C language facilities for determining width of integer
253         types, and reorder content to improve flow and context of
254         discussion.
256 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
258         * lang.texi (va_copy): Change standard from ISO to C99.
259         (__va_copy): Add standard and header annotation.
260         Update description for clarity of origins and current use.
262 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
264         [BZ #21941]
265         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
266         xssqrtqp requires operands to be in Vector Registers
267         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
268         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
269         (__ieee754_sqrtf128): Likewise.
271 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
273         * sysdeps/aarch64/memcmp.S (memcmp):
274         Rewrite of optimized memcmp.
276 2017-08-10  Florian Weimer  <fweimer@redhat.com>
278         Introduce ld.so exceptions.
279         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
280         (_dl_exception_create, _dl_exception_create_format)
281         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
282         (_dl_catch_exception): Declare.
283         (_dl_catch_error): Update comment.
284         * elf/dl-error-skeleton.c (struct catch): Replace objname,
285         errstring, malloced members with exception member.
286         (_dl_out_of_memory): Remove.
287         (fatal_error): New function, extracted from _dl_signal_error.
288         (_dl_signal_exception, _dl_signal_cexception): New functions.
289         (_dl_signal_error): Call _dl_exception_create to allocate an
290         exception object.
291         (_dl_catch_exception): New function, based on _dl_catch_error.
292         (_dl_catch_error): Implement using _dl_catch_exception.
293         * elf/dl-exception.c: New file.
294         * elf/Makefile (dl-routines): Add dl-exception.
295         (elide-routines.os): Likewise.
296         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
297         _dl_exception_create_format, _dl_exception_free.
298         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
299         _dl_signal_exception.
300         * elf/dl-lookup.c (make_string): Remove.
301         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
302         _dl_signal_cexception, _dl_exception_free.
303         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
304         _dl_signal_exception.
305         * elf/dl-sym.c (do_sym): Likewise.
306         * elf/dl-version.c (make_string): Remove.
307         (match_symbol): Use _dl_exception_create_format,
308         _dl_signal_cexception, _dl_exception_free.
309         (_dl_check_map_versions): Likewise.
310         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
311         _dl_catch_exception.
312         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
313         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
314         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
315         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
316         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
317         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
318         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
319         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
320         Likewise.
321         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
323         (ld.so): Likewise.
324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
325         (ld.so): Likewise.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
327         Likewise.
328         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
329         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
330         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
331         Likewise.
332         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
333         Likewise.
334         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
336 2017-08-10  Florian Weimer  <fweimer@redhat.com>
338         * inet/net-internal.h (__inet6_scopeid_pton): Remove
339         attribute_hidden, internal_function.
340         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
341         internal_function.
343 2017-08-10  Florian Weimer  <fweimer@redhat.com>
345         * malloc/malloc.c (get_max_fast): Reimplement as an inline
346         function which calls __builtin_unreachable.
348 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
350         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
351         Indian monetary formatting
352         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
353         test cases.
355 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
357         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
358         Fix typo in comment.
360         [BZ #21928]
361         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
362         PTRACE_SEIZE_DEVEL): Remove.
363         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
364         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
365         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
366         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
367         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
369 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
371         * posix/bits/types.h (__qaddr_t): Remove.
373         [BZ #21457]
374         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
375         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
376         __glibc_reserved1.
377         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
378         (ucontext_t): Use __ctx with uc_flags.
379         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
380         (__ctxt): Likewise.
381         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
382         __glibc_reserved1.
383         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
384         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
385         __glibc_reserved1.
386         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
387         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
388         __glibc_reserved1.
389         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
390         macro.
391         (ucontext_t): Use __ctx with uc_flags.
392         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
393         (ucontext_t): Use __ctx with uc_flags.
394         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
395         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
396         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
397         (ucontext_t): Use __ctx with uc_flags.
398         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
399         undefine further down.
400         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
401         __glibc_reserved1.
402         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
403         undefine further down.
404         (ucontext_t): Use __ctx with uc_flags.
405         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
406         undefine further down.
407         (ucontext_t): Use __ctx with uc_flags.
408         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
409         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
410         Rename uc_pad to __glibc_reserved1.
411         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
412         undefine further down.
413         (ucontext_t): Use __ctx with uc_flags.
414         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
415         further down.
416         (ucontext_t): Use __ctx with uc_flags.
417         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
418         __ctx with uc_flags.
419         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
420         (ucontext_t): Use __ctx with uc_flags.
421         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
422         __ctx with uc_flags.
424 2017-08-09  Florian Weimer  <fweimer@redhat.com>
426         [BZ #21932]
427         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
428         before early return.
430 2017-08-09  Andreas Schwab  <schwab@suse.de>
432         [BZ #21041]
433         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
434         renamed alias.
436         [BZ #21041]
437         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
438         tst-compat-forwarder.
439         (modules-names): Add tst-compat-forwarder-mod.
440         ($(objpfx)tst-compat-forwarder): Depend on
441         $(objpfx)tst-compat-forwarder-mod.so.
442         * nptl/tst-compat-forwarder.c: New file.
443         * nptl/tst-compat-forwarder-mod.c: New file.
445 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
447         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
448         comments.
450         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
451         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
452         memcpy_falkor.
453         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
454         Bump.
455         (__libc_ifunc_impl_list): Add __memcpy_falkor.
456         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
457         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
458         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
459         Add falkor.
460         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
461         New macro.
463 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
465         [BZ #759]
466         * manual/setjmp.texi (getcontex): Document uc_stack value
467         compatibility differences.
469 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
471         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
472         (old_malloc_hook): Likewise.
473         (old_memalign_hook): Likewise.
474         (old_realloc_hook): Likewise.
475         (struct hdr): Likewise.
476         (flood): Likewise.
477         (freehook): Likewise.
478         (mallochook): Likewise.
479         (memalignhook): Likewise.
480         (reallochook): Likewise.
481         (mprobe): Likewise.
482         * malloc/mtrace.c (mallwatch): Likewise.
483         (tr_old_free_hook): Likewise.
484         (tr_old_malloc_hook): Likewise.
485         (tr_old_realloc_hook): Likewise.
486         (tr_old_memalign_hook): Likewise.
487         (tr_where): Likewise.
488         (lock_and_info): Likewise.
489         (tr_freehook): Likewise.
490         (tr_mallochook): Likewise.
491         (tr_reallochook): Likewise.
492         (tr_memalignhook): Likewise.
493         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
494         * misc/mmap.c (__mmap): Likewise.
495         * misc/mmap64.c (__mmap64): Likewise.
496         * misc/mprotect.c (__mprotect): Likewise.
497         * misc/msync.c (msync): Likewise.
498         * misc/munmap.c (__munmap): Likewise.
499         * posix/posix_madvise.c (posix_madvise): Likewise.
500         * socket/send.c (__send): Likewise.
501         * socket/sendto.c (__sendto): Likewise.
502         * socket/setsockopt.c (__setsockopt): Likewise.
503         * string/memcmp.c (__ptr_t): Remove macro.
504         (MEMCMP): Use void * instead of ptr_t.
505         * string/memrchr.c (__ptr_t): Remove macro.
506         (__memrchr): Use void * instead of ptr_t.
507         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
508         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
509         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
510         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
511         * sysdeps/mach/msync.c (msync): Likewise.
512         * sysdeps/mach/munmap.c (__munmap): Likewise.
513         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
514         Likewise.
515         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
516         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
517         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
518         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
519         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
520         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
521         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
522         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
523         Likewise.
524         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
525         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
526         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
527         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
528         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
529         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
530         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
531         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
532         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
533         Likewise.
534         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
535         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
536         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
537         (MEMCMP): Use void * instead of ptr_t.
538         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
539         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
541 2017-08-08  Florian Weimer  <fweimer@redhat.com>
543         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
544         return statement.
546 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
548         [BZ #21913]
549         * csu/libc-tls.c: Include <startup.h> first.
550         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
551         * elf/dl-tunables.c: Include <startup.h> first.
552         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
553         * sysdeps/generic/startup.h: New file.
554         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
555         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
556         (I386_USE_SYSENTER): New.  Defined to 0.
558 2017-08-08  Andreas Schwab  <schwab@suse.de>
560         [BZ #21041]
561         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
562         * nptl/pt-system.c (system): Likewise.
564 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
566         [BZ #21780]
567         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
568         EOPNOTSUPP.
569         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
570         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
571         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
572         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
573         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
574         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
575         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
577 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
579         [BZ #21899]
580         * bits/sigaction.h (struct sigaction): Define sa_handler and
581         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
582         (SA_ONSTACK): Change [__USE_UNIX98] condition to
583         [__USE_XOPEN_EXTENDED].
584         (SA_RESTART): Likewise.
585         (SA_NODEFER): Likewise.
586         (SA_RESETHAND): Likewise.
587         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
588         (struct sigaction): Define sa_handler and sa_sigaction using union
589         also for [__USE_XOPEN_EXTENDED].
590         (SA_ONSTACK): Change [__USE_UNIX98] condition to
591         [__USE_XOPEN_EXTENDED].
592         (SA_RESTART): Likewise.
593         (SA_NODEFER): Likewise.
594         (SA_RESETHAND): Likewise.
595         * sysdeps/unix/sysv/linux/bits/sigaction.h
596         (struct sigaction): Define sa_handler and sa_sigaction using union
597         also for [__USE_XOPEN_EXTENDED].
598         (SA_ONSTACK): Change [__USE_UNIX98] condition to
599         [__USE_XOPEN_EXTENDED].
600         (SA_RESTART): Likewise.
601         (SA_NODEFER): Likewise.
602         (SA_RESETHAND): Likewise.
603         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
604         (struct sigaction): Define sa_handler and sa_sigaction using union
605         also for [__USE_XOPEN_EXTENDED].
606         (SA_ONSTACK): Change [__USE_UNIX98] condition to
607         [__USE_XOPEN_EXTENDED].
608         (SA_RESTART): Likewise.
609         (SA_NODEFER): Likewise.
610         (SA_RESETHAND): Likewise.
611         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
612         (struct sigaction): Define sa_handler and sa_sigaction using union
613         also for [__USE_XOPEN_EXTENDED].
614         (SA_ONSTACK): Change [__USE_UNIX98] condition to
615         [__USE_XOPEN_EXTENDED].
616         (SA_RESTART): Likewise.
617         (SA_NODEFER): Likewise.
618         (SA_RESETHAND): Likewise.
619         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
620         (struct sigaction): Define sa_handler and sa_sigaction using union
621         also for [__USE_XOPEN_EXTENDED].
622         (SA_ONSTACK): Change [__USE_UNIX98] condition to
623         [__USE_XOPEN_EXTENDED].
624         (SA_RESTART): Likewise.
625         (SA_NODEFER): Likewise.
626         (SA_RESETHAND): Likewise.
627         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
628         (struct sigaction): Define sa_handler and sa_sigaction using union
629         also for [__USE_XOPEN_EXTENDED].
630         (SA_ONSTACK): Change [__USE_UNIX98] condition to
631         [__USE_XOPEN_EXTENDED].
632         (SA_RESTART): Likewise.
633         (SA_NODEFER): Likewise.
634         (SA_RESETHAND): Likewise.
635         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
636         (struct sigaction): Define sa_handler and sa_sigaction using union
637         also for [__USE_XOPEN_EXTENDED].
638         (SA_ONSTACK): Change [__USE_UNIX98] condition to
639         [__USE_XOPEN_EXTENDED].
640         (SA_RESTART): Likewise.
641         (SA_NODEFER): Likewise.  Define directly rather than as alias.
642         (SA_RESETHAND): Likewise.
643         (SA_INTERRUPT): Define only for [__USE_MISC].
644         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
645         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
646         [__USE_MISC].
647         (SA_STACK): Define only for [__USE_MISC].
648         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
649         (struct sigaction): Define sa_handler and sa_sigaction using union
650         also for [__USE_XOPEN_EXTENDED].
651         (SA_ONSTACK): Change [__USE_UNIX98] condition to
652         [__USE_XOPEN_EXTENDED].
653         (SA_RESTART): Likewise.
654         (SA_NODEFER): Likewise.
655         (SA_RESETHAND): Likewise.
656         (SA_NOPTRACE): Define only for [__USE_MISC].
658         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
659         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
660         (struct catalog_info): Likewise.
661         * inet/htontest.c (lo): Likewise.
662         (foo): Likewise.
663         * inet/inet_lnaof.c (inet_lnaof): Likewise.
664         * inet/inet_net.c (inet_network): Likewise.
665         * inet/inet_netof.c (inet_netof): Likewise.
666         * inet/rcmd.c (__ivaliduser): Likewise.
667         (iruserok): Likewise.
668         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
669         * locale/programs/locale-spec.c (locale_special): Likewise.
670         * nis/nis_findserv.c (struct findserv_req): Likewise.
671         (__nis_findfastest_with_timeout): Likewise.
672         * nss/test-netdb.c (test_network): Likewise.
673         * resolv/inet_neta.c (inet_neta): Likewise.
674         * resolv/ns_date.c (ns_datetosecs): Likewise.
675         (SECS_PER_DAY): Likewise.
676         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
677         Likewise.
678         * resolv/res_comp.c (__putlong): Likewise.
679         (__putshort): Likewise.
680         (_getlong): Likewise.
681         (_getshort): Likewise.
682         * resolv/res_debug.c (p_time): Likewise.
683         (precsize_ntoa): Likewise.
684         (precsize_aton): Likewise.
685         (latlon2ul): Likewise.
686         (loc_aton): Likewise.
687         (loc_ntoa): Likewise.
688         * resolv/res_hconf.c (struct netaddr): Likewise.
689         (_res_hconf_reorder_addrs): Likewise.
690         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
691         (clnttcp_control): Likewise.
692         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
693         (clntudp_control): Likewise.
694         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
695         (clntunix_control): Likewise.
696         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
697         * sunrpc/rpc/auth.h (union des_block): Likewise.
698         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
699         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
700         (xdrrec_create): Likewise.
701         (xdrrec_endofrecord): Likewise.
702         (flush_out): Likewise.
703         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
704         (xdrstdio_putlong): Likewise.
705         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
706         Likewise.
708         * misc/sys/cdefs.h (__long_double_t): Remove.
709         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
710         instead of __long_double_t,
711         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
713 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
715         * benchtests/scripts/compare_strings.py: Avoid display error when
716         running on a text terminal.
718         * benchtests/scripts/compare_strings.py (main): Add an
719         optional -base option.
720         (process_results): New argument base_func.
722         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
723         hardcoding memcpy.
724         * benchtests/bench-memcpy-large.c (test_name): Likewise.
725         * benchtests/bench-memcpy-random.c (test_name): Likewise.
727 2017-08-07  Andreas Schwab  <schwab@suse.de>
729         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
730         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
731         * intl/Makefile ($(objpfx)tst-gettext.out)
732         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
733         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
734         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
735         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
736         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
737         * posix/Makefile ($(objpfx)globtest.out)
738         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
739         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
740         ($(objpfx)tst-printf.out): Likewise.
741         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
742         ($(objpfx)tst-setcontext3.out): Likewise.
744 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
746         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
747         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
748         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
749         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
750         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
751         and mptan-fma.
752         (CFLAGS-doasin-fma.c): New.
753         (CFLAGS-dosincos-fma.c): Likewise.
754         (CFLAGS-e_asin-fma.c): Likewise.
755         (CFLAGS-e_atan2-fma.c): Likewise.
756         (CFLAGS-e_exp-fma.c): Likewise.
757         (CFLAGS-e_log-fma.c): Likewise.
758         (CFLAGS-e_pow-fma.c): Likewise.
759         (CFLAGS-halfulp-fma.c): Likewise.
760         (CFLAGS-mpa-fma.c): Likewise.
761         (CFLAGS-mpatan-fma.c): Likewise.
762         (CFLAGS-mpatan2-fma.c): Likewise.
763         (CFLAGS-mpexp-fma.c): Likewise.
764         (CFLAGS-mplog-fma.c): Likewise.
765         (CFLAGS-mpsqrt-fma.c): Likewise.
766         (CFLAGS-mptan-fma.c): Likewise.
767         (CFLAGS-s_atan-fma.c): Likewise.
768         (CFLAGS-sincos32-fma.c): Likewise.
769         (CFLAGS-slowexp-fma.c): Likewise.
770         (CFLAGS-slowpow-fma.c): Likewise.
771         (CFLAGS-s_sin-fma.c): Likewise.
772         (CFLAGS-s_tan-fma.c): Likewise.
773         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
774         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
775         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
776         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
777         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
778         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
779         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
780         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
781         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
782         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
783         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
784         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
785         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
786         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
787         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
788         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
789         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
790         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
791         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
792         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
793         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
794         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
795         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
796         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
797         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
798         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
799         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
800         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
801         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
802         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
803         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
805 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
807         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
808         (min_of_type_f): New macro.
809         (min_of_type_): Likewise.
810         (min_of_type_l): Likewise.
811         (min_of_type_f128): Likewise.
812         (min_of_type): Define using __MATH_TG and taking an expression
813         argument.
814         (math_check_force_underflow): Pass expression instead of type to
815         min_of_type.
816         (math_check_force_underflow_nonneg): Likewise.
818 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
820         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
821         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
822         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
824 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
826         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
827         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
828         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
829         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
830         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
831         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
832         memcpy_chk-nonshared, mempcpy_chk-nonshared,
833         memmove_chk-nonshared and memset_chk-nonshared
834         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
835         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
836         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
837         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
838         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
839         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
840         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
841         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
842         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
843         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
844         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
845         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
846         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
847         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
848         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
849         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
850         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
851         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
852         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
853         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
854         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
855         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
856         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
857         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
858         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
859         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
860         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
861         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
862         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
863         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
864         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
865         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
866         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
867         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
868         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
869         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
870         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
871         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
872         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
873         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
874         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
875         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
876         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
877         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
878         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
879         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
880         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
881         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
882         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
883         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
884         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
885         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
886         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
887         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
888         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
889         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
890         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
891         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
892         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
893         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
894         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
895         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
896         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
897         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
898         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
899         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
900         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
901         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
902         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
903         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
904         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
905         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
906         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
907         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
908         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
909         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
910         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
911         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
912         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
913         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
914         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
915         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
916         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
917         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
918         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
919         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
920         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
921         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
922         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
923         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
924         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
925         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
926         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
927         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
928         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
929         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
930         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
931         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
932         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
933         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
934         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
935         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
936         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
937         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
938         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
939         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
940         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
941         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
943 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
945         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
946         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
947         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
948         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
949         svml_d_log2_core-sse2, svml_d_log4_core-sse,
950         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
951         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
952         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
953         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
954         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
955         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
956         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
957         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
958         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
959         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
960         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
961         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
962         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
963         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
964         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
965         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
966         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
967         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
968         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
969         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
970         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
971         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
972         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
973         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
974         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
975         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
976         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
977         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
978         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
979         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
980         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
981         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
982         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
983         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
984         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
985         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
986         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
987         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
988         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
989         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
990         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
991         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
992         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
993         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
994         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
995         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
996         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
997         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
998         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
999         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
1000         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
1001         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
1002         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
1003         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
1004         ...
1005         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
1006         Don't include <sysdep.h> nor <init-arch.h>.
1007         (_ZGVbN2v_cos): Removed.
1008         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
1009         ...
1010         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
1011         Don't include <sysdep.h> nor <init-arch.h>.
1012         (_ZGVdN4v_cos): Removed.
1013         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
1014         ...
1015         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
1016         Don't include <sysdep.h> nor <init-arch.h>.
1017         (_ZGVeN8v_cos): Removed.
1018         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
1019         ...
1020         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
1021         Don't include <sysdep.h> nor <init-arch.h>.
1022         (_ZGVbN2v_exp): Removed.
1023         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
1024         ...
1025         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
1026         Don't include <sysdep.h> nor <init-arch.h>.
1027         (_ZGVdN4v_exp): Removed.
1028         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
1029         ...
1030         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
1031         Don't include <sysdep.h> nor <init-arch.h>.
1032         (_ZGVeN8v_exp): Removed.
1033         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
1034         ...
1035         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
1036         Don't include <sysdep.h> nor <init-arch.h>.
1037         (_ZGVbN2v_log): Removed.
1038         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
1039         ...
1040         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
1041         Don't include <sysdep.h> nor <init-arch.h>.
1042         (_ZGVdN4v_log): Removed.
1043         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
1044         ...
1045         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
1046         Don't include <sysdep.h> nor <init-arch.h>.
1047         (_ZGVeN8v_log): Removed.
1048         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
1049         ...
1050         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
1051         Don't include <sysdep.h> nor <init-arch.h>.
1052         (_ZGVbN2vv_pow): Removed.
1053         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
1054         ...
1055         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
1056         Don't include <sysdep.h> nor <init-arch.h>.
1057         (_ZGVdN4vv_pow): Removed.
1058         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
1059         ...
1060         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
1061         Don't include <sysdep.h> nor <init-arch.h>.
1062         (_ZGVeN8vv_pow): Removed.
1063         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
1064         ...
1065         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
1066         Don't include <sysdep.h> nor <init-arch.h>.
1067         (_ZGVbN2v_sin): Removed.
1068         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
1069         ...
1070         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
1071         Don't include <sysdep.h> nor <init-arch.h>.
1072         (_ZGVbN4v_sin): Removed.
1073         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
1074         ...
1075         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
1076         Don't include <sysdep.h> nor <init-arch.h>.
1077         (_ZGVbN8v_sin): Removed.
1078         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
1079         ...
1080         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
1081         Don't include <sysdep.h> nor <init-arch.h>.
1082         (_ZGVbN2vvv_sincos): Removed.
1083         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
1084         ...
1085         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
1086         Don't include <sysdep.h> nor <init-arch.h>.
1087         (_ZGVdN4vvv_sincos): Removed.
1088         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
1089         ...
1090         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
1091         Don't include <sysdep.h> nor <init-arch.h>.
1092         (_ZGVeN8vvv_sincos): Removed.
1093         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
1094         ...
1095         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
1096         Don't include <sysdep.h> nor <init-arch.h>.
1097         (_ZGVeN16v_cosf): Removed.
1098         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
1099         ...
1100         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
1101         Don't include <sysdep.h> nor <init-arch.h>.
1102         (_ZGVbN4v_cosf): Removed.
1103         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
1104         ...
1105         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
1106         Don't include <sysdep.h> nor <init-arch.h>.
1107         (_ZGVdN8v_cosf): Removed.
1108         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
1109         ...
1110         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
1111         Don't include <sysdep.h> nor <init-arch.h>.
1112         (_ZGVeN16v_expf): Removed.
1113         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
1114         ...
1115         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
1116         Don't include <sysdep.h> nor <init-arch.h>.
1117         (_ZGVbN4v_expf): Removed.
1118         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
1119         ...
1120         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
1121         Don't include <sysdep.h> nor <init-arch.h>.
1122         (_ZGVdN8v_expf): Removed.
1123         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
1124         ...
1125         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
1126         Don't include <sysdep.h> nor <init-arch.h>.
1127         (_ZGVeN16v_logf): Removed.
1128         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
1129         ...
1130         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
1131         Don't include <sysdep.h> nor <init-arch.h>.
1132         (_ZGVbN4v_logf): Removed.
1133         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
1134         ...
1135         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
1136         Don't include <sysdep.h> nor <init-arch.h>.
1137         (_ZGVdN8v_logf): Removed.
1138         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
1139         ...
1140         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
1141         Don't include <sysdep.h> nor <init-arch.h>.
1142         (_ZGVeN16vv_powf): Removed.
1143         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
1144         ...
1145         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
1146         Don't include <sysdep.h> nor <init-arch.h>.
1147         (_ZGVbN4vv_powf): Removed.
1148         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
1149         ...
1150         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
1151         Don't include <sysdep.h> nor <init-arch.h>.
1152         (_ZGVdN8vv_powf): Removed.
1153         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
1154         ...
1155         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
1156         Don't include <sysdep.h> nor <init-arch.h>.
1157         (_ZGVeN16vvv_sincosf): Removed.
1158         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
1159         ...
1160         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
1161         Don't include <sysdep.h> nor <init-arch.h>.
1162         (_ZGVbN4vvv_sincosf): Removed.
1163         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
1164         ...
1165         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
1166         Don't include <sysdep.h> nor <init-arch.h>.
1167         (_ZGVdN8vvv_sincosf): Removed.
1168         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
1169         ...
1170         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
1171         Don't include <sysdep.h> nor <init-arch.h>.
1172         (_ZGVeN16v_sinf): Removed.
1173         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
1174         ...
1175         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
1176         Don't include <sysdep.h> nor <init-arch.h>.
1177         (_ZGVbN4v_sinf): Removed.
1178         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
1179         ...
1180         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
1181         Don't include <sysdep.h> nor <init-arch.h>.
1182         (_ZGVdN8v_sinf): Removed.
1184 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1186         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1187         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
1188         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
1189         s_rint-sse4_1 and s_rintf-sse4_1.
1190         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
1191         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
1192         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
1193         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
1194         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
1195         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
1196         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
1197         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
1198         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
1199         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
1200         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
1201         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1202         (__ceil): Removed.
1203         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
1204         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
1205         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1206         (__ceilf): Removed.
1207         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
1208         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
1209         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1210         (__floor): Removed.
1211         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
1212         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
1213         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1214         (__floorf): Removed.
1215         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
1216         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
1217         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1218         (__nearbyint): Removed.
1219         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
1220         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
1221         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1222         (__nearbyintf): Removed.
1223         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
1224         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
1225         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1226         (__rint): Removed.
1227         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
1228         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
1229         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
1230         (__rintf): Removed.
1232 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1234         * sysdeps/i386/start.S (_start): Check Check PIC instead of
1235         SHARED.  Avoid dynamic relocation against main in static PIE.
1237 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1239         [BZ #21815]
1240         * elf/Makefile (CFLAGS-tst-prelink.c): New.
1241         (LDFLAGS-tst-prelink): Likewise.
1243 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1245         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
1246         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
1247         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
1248         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
1249         (INTERNAL_SYSCALL_NCS): Likewise.
1250         (LOADARGS_1): Likewise.
1251         (LOADARGS_5): Likewise.
1252         (RESTOREARGS_1): Likewise.
1253         (RESTOREARGS_5): Likewise.
1255 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1257         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
1258         (MEMPCPY_SYMBOL): Likewise.
1259         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1260         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
1261         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
1262         in libc.a.
1263         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1264         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1265         Likewise.
1266         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
1267         (__hidden_ver1): Don't use in libc.a.
1268         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
1269         (__mempcpy): Don't create a weak alias in libc.a.
1270         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
1271         libc.a.
1272         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
1273         (__hidden_ver1): Don't use in libc.a.
1275 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1277         * config.make.in (have-insert): New.
1278         * configure.ac (libc_cv_insert): New.  Set to yes if linker
1279         supports INSERT in linker script.
1280         (AC_SUBST(libc_cv_insert): New.
1281         * configure: Regenerated.
1282         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
1283         if $(have-insert) == yes.
1285 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1287         * elf/Makefile (tests): Add vismain only if
1288         $(have-protected-data) == yes.
1289         (tests-pie): Likewise.
1291 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1293         [BZ #21871]
1294         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
1295         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
1297 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1299         [BZ #21790]
1300         * sysdeps/i386/i586/memset.S
1301         (__memset_zero_constant_len_parameter): Removed.
1302         * sysdeps/i386/i686/memset.S
1303         (__memset_zero_constant_len_parameter): Likewise.
1304         * sysdeps/i386/i686/multiarch/memset_chk.S
1305         (__memset_zero_constant_len_parameter): Likewise.
1306         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
1307         Likewise.
1309 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
1311         * stdlib/getentropy.c (getentropy): Change return type to int.
1313 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
1315         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
1317 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
1319         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
1320         u_intN_t.
1321         * math/s_nexttowardf.c (__nexttowardf): Likewise.
1322         * sysdeps/generic/math_private.h (ieee_double_shape_type):
1323         Likewise.
1324         (ieee_float_shape_type): Likewise.
1325         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
1326         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
1327         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
1328         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
1329         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
1330         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
1331         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
1332         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
1333         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
1334         Likewise.
1335         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
1336         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
1337         (__ieee754_yn): Likewise.
1338         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
1339         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
1340         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
1341         Likewise.
1342         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
1343         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
1344         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
1345         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
1346         (__erfc): Likewise.
1347         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
1348         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
1349         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
1350         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
1351         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
1352         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
1353         Likewise.
1354         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
1355         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
1356         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1357         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
1358         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
1359         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
1360         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
1361         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
1362         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
1363         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
1364         (__issignaling): Likewise.
1365         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
1366         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
1367         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
1368         Likewise.
1369         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1370         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
1371         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
1372         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
1373         Likewise.
1374         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
1375         Likewise.
1376         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
1377         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
1378         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
1379         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
1380         (__erfcf): Likewise.
1381         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
1382         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
1383         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
1384         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
1385         Likewise.
1386         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
1387         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
1388         Likewise.
1389         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1390         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
1391         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1392         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
1393         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
1394         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
1395         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
1396         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
1397         Likewise.
1398         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
1399         Likewise.
1400         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
1401         Likewise.
1402         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
1403         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
1404         Likewise.
1405         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
1406         Likewise.
1407         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1408         (__ieee754_ynl): Likewise.
1409         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
1410         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
1411         Likewise.
1412         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
1413         Likewise.
1414         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
1415         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
1416         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1417         Likewise.
1418         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
1419         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
1420         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
1421         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
1422         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
1423         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
1424         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
1425         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
1426         Likewise.
1427         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
1428         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
1429         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
1430         Likewise.
1431         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1432         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
1433         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1434         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
1435         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
1436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
1437         Likewise.
1438         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
1439         Likewise.
1440         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
1441         Likewise.
1442         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
1443         Likewise.
1444         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
1445         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
1446         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
1447         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
1448         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
1449         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
1450         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
1451         Likewise.
1452         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1453         Likewise.
1454         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1455         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
1456         Likewise.
1457         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
1458         (__ieee754_remainderl): Likewise.
1459         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1460         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1461         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
1462         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
1463         Likewise.
1464         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
1465         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1466         Likewise.
1467         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
1468         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
1469         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
1470         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
1471         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
1472         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1473         Likewise.
1474         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
1475         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
1476         (__ieee754_y0l): Likewise.
1477         (pzero): Likewise.
1478         (qzero): Likewise.
1479         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
1480         (__ieee754_y1l): Likewise.
1481         (pone): Likewise.
1482         (qone): Likewise.
1483         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1484         (__ieee754_ynl): Likewise.
1485         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
1486         (__ieee754_lgammal_r): Likewise.
1487         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
1488         Likewise.
1489         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
1490         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
1491         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
1492         (__erfcl): Likewise.
1493         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
1494         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
1495         Likewise.
1496         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1497         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
1498         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1499         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
1500         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
1501         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1502         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
1503         Likewise.
1504         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
1505         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
1506         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
1507         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
1508         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
1509         Likewise.
1510         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
1511         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
1512         Likewise.
1513         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
1514         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
1515         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
1516         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
1517         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
1519 2017-08-03  Florian Weimer  <fweimer@redhat.com>
1521         [BZ #21885]
1522         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
1523         on memory allocation failure.
1525 2017-08-03  Alan Modra  <amodra@gmail.com>
1527         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
1528         tst-tlsopt-powerpc.c with function name change and no test harness.
1529         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
1530         Call tls_get_addr_opt_test.
1531         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
1532         (modules-names): Add mod-tlsopt-powerpc.
1533         (mod-tlsopt-powerpc.so-no-z-defs): Define.
1534         (tst-tlsopt-powerpc): Depend on .so.
1535         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
1536         define.  Expand use in TLS_GD and TLS_LD.
1538 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1540         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
1541         function.
1542         * sysdeps/posix/shm_open.c: Include <pthread.h>.
1544 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
1546         [BZ #21686]
1547         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
1548         comparing size with that of double.
1549         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
1550         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
1551         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
1552         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
1553         (__TGMATH_BINARY_REAL_IMAG): Likewise.
1554         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
1555         unsigned __int128 types.
1557 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
1559         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
1560         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
1561         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
1562         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
1563         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
1565 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1567         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
1569 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1571         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
1572         of SHARED.
1573         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
1574         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
1575         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
1576         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
1577         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
1578         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
1579         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
1581 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
1583         [BZ #21685]
1584         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
1585         bit-field expressions passed to sizeof or typeof.
1586         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1587         (__TGMATH_F128): Likewise.
1588         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1589         (__TGMATH_CF128): Likewise.
1590         (__TGMATH_UNARY_REAL_ONLY): Likewise.
1591         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
1592         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
1593         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
1594         (__TGMATH_BINARY_REAL_ONLY): Likewise.
1595         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
1596         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
1597         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
1598         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
1599         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
1600         (__TGMATH_UNARY_REAL_IMAG): Likewise.
1601         (__TGMATH_UNARY_IMAG): Likewise.
1602         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
1603         (__TGMATH_BINARY_REAL_IMAG): Likewise.
1604         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
1605         type.
1606         (define_vars_for_type): Handle bit_field type specially.
1607         (Tests.__init__): Declare structure with bit-field element.
1609 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1611         [BZ #21791]
1612         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
1613         (MEMCPY_CHK): Define only if SHARED is defined.
1614         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
1615         Likewise.
1616         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
1617         Likewise.
1619 See ChangeLog.18 for earlier changes.