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