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