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