hurd: Fix getting ssize_t for <sys/socket.h>
[glibc.git] / ChangeLog
blobcf6866cd11ade2a2d7e793be2a8377a1465644b3
1 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
4         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
5         parameter.
6         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
7         just <bits/types.h>.
9 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
11         * manual/math.texi (pow10): Do not document.
12         (pow10f): Likewise.
13         (pow10l): Likewise.
14         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
15         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
16         * math/libm-test-exp10.inc (pow10_test): Remove.
17         (do_test): Do not call pow10.
18         * math/w_exp10_compat.c (pow10): Make into compat symbol.
19         [NO_LONG_DOUBLE] (pow10l): Likewise.
20         * math/w_exp10f_compat.c (pow10f): Likewise.
21         * math/w_exp10l_compat.c (pow10l): Likewise.
22         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
23         (pow10): Make into compat symbol.
24         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
25         (pow10f): Make into compat symbol.
26         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
27         (pow10l): Make into compat symbol.
28         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29         pow10.
30         (CFLAGS-nldbl-pow10.c): Remove variable..
31         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
32         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
33         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
35         Undefine and redefine.
36         (pow10l): Make into compat symbol.
37         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
38         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
39         * sysdeps/arm/libm-test-ulps: Likewise.
40         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
41         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
42         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
43         * sysdeps/microblaze/libm-test-ulps: Likewise.
44         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
45         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
46         * sysdeps/nios2/libm-test-ulps: Likewise.
47         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
48         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
49         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50         * sysdeps/sh/libm-test-ulps: Likewise.
51         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
52         * sysdeps/tile/libm-test-ulps: Likewise.
53         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
57         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
59 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
61         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
62         "../ChangeLog.old/ChangeLog.8".
63         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
64         "../ChangeLog.old/ChangeLog.14".
66 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
68         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
69         Threads Library.
71 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
73         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
75 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
77         * csu/version.c (banner): Remove "by Roland McGrath et al.".
78         * nptl/Banner: Remove "by Ulrich Drepper et al.".
80 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
82         * stdlib/tst-atexit-common.c (do_test): Test support for at least
83         32 atexit handlers.
85 2017-09-01  Zack Weinberg  <zackw@panix.com>
87         * math/math.h (HUGE_VAL): Improve commentary.
89 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
90             Andreas Schwab  <schwab@suse.de>
92         [BZ #21530]
93         * include/stdio.h (__gen_tempfd): New function.
94         * stdio-common/Makefile (routines): Add gentempfd.
95         * stdio-common/gentempfd.c: New file.
96         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
97         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
98         unnamed file first.
100 2017-09-01  Florian Weimer  <fweimer@redhat.com>
102         [BZ #21915]
103         [BZ #21922]
104         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
105         result to determine success or failure, not the errno value.
106         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
107         (tst-nss-files-hosts-erange): Link with -ldl.
108         * nss/tst-nss-files-hosts-erange.c: New file.
109         * nss/tst-resolv-basic.c (response): Handle nodata.example.
110         (do_test): Add NO_DATA tests.
111         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
112         (do_test): Call it.
114 2017-09-01  Florian Weimer  <fweimer@redhat.com>
116         [BZ #21922]
117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
118         coming from gethostbyname2_r.
120 2017-09-01  Florian Weimer  <fweimer@redhat.com>
122         * support/namespace.h (struct support_chroot_configuration): Add
123         hosts, host_conf.
124         (struct support_chroot): Add path_hosts, path_host_conf.
125         * support/support_chroot.c (write_file): New function.
126         (support_chroot_create): Call it to process /etc/resolv.conf,
127         /etc/hosts, /etc/host.conf.
128         (support_chroot_free): Update.
130 2017-09-01  Florian Weimer  <fweimer@redhat.com>
132         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
133         status indicates it is set.
135 2017-09-01  Florian Weimer  <fweimer@redhat.com>
137         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
138         function lookup failures more reliable.
140 2017-09-01  Florian Weimer  <fweimer@redhat.com>
142         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
143         (getcanonname): Likewise.
144         (gaih_inet): Likewise.
146 2017-09-01  Florian Weimer  <fweimer@redhat.com>
148         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
149         (getcanonname): Likewise.
150         (gaih_inet): Likewise.
152 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
153             Richard Henderson <rth@twiddle.net>
155         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
156         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
157         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
158         (IREG_SIZE, OREG_SIZE): New macros.
159         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
160         (IREG_SIZE, OREG_SIZE): New macros.
161         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
162         (IREG_SIZE): New macro.
163         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
164         (IREG_SIZE): New macro.
165         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
166         New includes.
167         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
168         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
169         (__CONCATX): Handle exceptions correctly on large values that may
170         set FE_INVALID.
171         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
172         Initialize if not already set.
173         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
175 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
177         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
178         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
179         Likewise.
180         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
181         Likewise.
182         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
183         Likewise.
184         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
185         Likewise.
186         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
187         Likewise.
188         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
189         Likewise.
190         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
191         Likewise.
192         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
193         (NO_CANCELLATION): Likewise.
194         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
195         Likewise.
196         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
197         Likewise.
198         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
199         Likewise.
200         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
201         (NO_CANCELLATION): Likewise.
202         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
203         (NO_CANCELLATION): Likewise.
204         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
205         Likewise
206         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
207         Likewise.
208         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
209         Likewise.
210         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
211         Likewise.
212         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
213         hidden prototype.
214         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
215         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
217 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
219         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
220         in resolver call.
222 2017-08-31  Florian Weimer  <fweimer@redhat.com>
224         * include/libc-symbols.h (internal_function): Remove.
226 2017-08-31  Florian Weimer  <fweimer@redhat.com>
228         * stdlib/fmtmsg.c (internal_addseverity): Remove
229         internal_function.
231 2017-08-31  Florian Weimer  <fweimer@redhat.com>
233         * stdio-common/printf_fp.c (group_number): Remove
234         internal_function.
235         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
237 2017-08-31  Florian Weimer  <fweimer@redhat.com>
239         * posix/fnmatch.c (internal_function): Remove definition.
240         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
241         * posix/regcomp.c (peek_token, init_word_char)
242         (duplicate_node_closure, fetch_token, peek_token)
243         (peek_token_bracket, build_range_exp, build_collating_symbol):
244         Likewise.
245         * posix/regex_internal.c (re_string_construct_common)
246         (create_ci_newstate, create_cd_newstate, re_string_allocate)
247         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
248         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
249         (re_string_translate_buffer, re_string_reconstruct)
250         (re_string_peek_byte_case, re_string_fetch_byte_case)
251         (re_string_destruct, re_string_context_at, re_node_set_alloc)
252         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
253         (re_node_set_add_intersect, re_node_set_init_union)
254         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
255         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
256         (re_dfa_add_node, calc_state_hash, re_acquire_state)
257         (re_acquire_state_context): Likewise.
258         * posix/regex_internal.h (internal_function): Remove definition.
259         (re_string_realloc_buffers, build_wcs_buffer)
260         (build_wcs_upper_buffer, build_upper_buffer)
261         (re_string_translate_buffer, re_string_context_at)
262         (re_string_char_size_at, re_string_wchar_at)
263         (re_string_elem_size_at): Likewise.
264         * posix/regexec.c (match_ctx_init, match_ctx_clean)
265         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
266         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
267         (re_search_internal, re_search_2_stub, re_search_stub)
268         (re_copy_regs, prune_impossible_nodes, check_matching)
269         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
270         (free_fail_stack_return, sift_states_iter_mb)
271         (sift_states_backward, build_sifted_states)
272         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
273         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
274         (check_subexp_limits, sift_states_bkref, merge_state_array)
275         (find_recover_state, transit_state, merge_state_with_log)
276         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
277         (transit_state_mb, transit_state_bkref, get_subexp)
278         (get_subexp_sub, find_subexp_node, check_arrival)
279         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
280         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
281         (check_node_accept_bytes, find_collation_sequence_value)
282         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
283         (acquire_init_state_context, check_halt_node_context)
284         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
285         (sub_epsilon_src_nodes): Likewise.
286         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
287         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
288         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
289         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
290         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
291         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
292         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
293         * sysdeps/posix/ttyname.c (getttyname): Likewise.
294         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
295         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
296         (PREADV): Likewise.
297         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
298         (PREADV): Likewise.
299         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
300         (PWRITEV): Likewise.
301         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
302         (PWRITEV): Likewise.
303         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
304         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
306 2017-08-31  Florian Weimer  <fweimer@redhat.com>
308         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
309         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
310         Remove internal_function.
311         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
312         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
313         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
314         (__deallocate_stack, __libc_pthread_init)
315         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
316         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
317         (__libc_disable_asynccancel, __librt_disable_asynccancel):
318         Likewise.
319         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
320         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
321         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
322         Likewise.
323         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
324         (__pthread_mutex_unlock_usercnt): Likewise.
326 2017-08-31  Florian Weimer  <fweimer@redhat.com>
328         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
329         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
330         (fts_safe_changedir): Remove internal_function.
331         * io/ftw.c (internal_function): Remove definition.
332         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
334 2017-08-31  Florian Weimer  <fweimer@redhat.com>
336         * inet/deadline.c (__deadline_current_time)
337         (__deadline_from_timeval, __deadline_to_ms): Remove
338         internal_function.
339         * inet/getnameinfo.c (nrl_domainname): Likewise.
340         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
341         * inet/inet6_option.c (add_pad): Likewise.
342         * inet/net-internal.h (__deadline_current_time)
343         (__deadline_from_timeval, __deadline_to_ms): Likewise.
344         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
345         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
346         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
348 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
350         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
351         include <bits/nan.h>.
352         * math/Makefile (headers): Remove bits/nan.h.
353         * bits/nan.h: Remove.
354         * sysdeps/ieee754/bits/nan.h: Likewise.
355         * sysdeps/mips/bits/nan.h: Likewise.
357         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
358         not include <bits/inf.h>.
359         * math/Makefile (headers): Remove bits/inf.h.
360         * bits/inf.h: Remove.
361         * sysdeps/ieee754/bits/inf.h: Likewise.
363         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
364         bits/huge_vall.h or bits/huge_val_flt128.h.
365         (HUGE_VAL): Define directly here.
366         [__USE_ISOC99] (HUGE_VALF): Likewise.
367         [__USE_ISOC99] (HUGE_VALL): Likewise.
368         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
369         (HUGE_VAL_F128): Likewise.
370         * math/Makefile (headers): Remove bits/huge_val.h,
371         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
372         * bits/huge_val.h: Remove.
373         * bits/huge_val_flt128.h: Likewise.
374         * bits/huge_valf.h: Likewise.
375         * bits/huge_vall.h: Likewise.
376         * sysdeps/ia64/bits/huge_vall.h: Likewise.
377         * sysdeps/ieee754/bits/huge_val.h: Likewise.
378         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
379         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
380         * sysdeps/sh/bits/huge_val.h: Likewise.
381         * sysdeps/sparc/bits/huge_vall.h: Likewise.
382         * sysdeps/x86/bits/huge_vall.h: Likewise.
384 2017-08-31  Florian Weimer  <fweimer@redhat.com>
386         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
387         internal_function.
388         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
389         Likewise.
390         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
391         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
392         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
393         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
394         * elf/dl-fini.c (_dl_sort_fini): Likewise.
395         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
396         * elf/dl-libc.c (dlerror_run): Likewise.
397         * elf/dl-load.c (add_name_to_object, decompose_rpath)
398         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
399         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
400         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
401         Likewise.
402         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
403         (_dl_higher_prime_number, _dl_strtoul): Likewise.
404         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
405         * elf/dl-profile.c (_dl_start_profile): Likewise.
406         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
407         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
408         Likewise.
409         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
410         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
411         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
412         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
413         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
414         (_dl_allocate_tls_storage): Likewise.
415         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
416         (_dl_check_all_versions): Likewise.
417         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
418         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
419         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
420         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
421         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
422         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
423         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
424         internal_function from __dl_start.
425         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
426         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
427         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
428         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
429         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
430         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
431         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
432         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
433         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
434         (_dl_next_ld_env_entry, _dl_important_hwcaps)
435         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
436         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
437         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
438         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
439         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
440         Likewise.
441         (struct rtld_global_ro): Remove internal_function from the
442         _dl_lookup_symbol_x member.
443         (_dl_symbol_value): Remove.  No longer defined anywhere.
444         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
445         internal_function.
446         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
447         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
448         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
449         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
450         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
451         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
452         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
453         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
454         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
455         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
456         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
457         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
459 2017-08-31  Florian Weimer  <fweimer@redhat.com>
461         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
462         Remove internal_function.
463         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
464         Likewise.
465         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
466         Likewise.
468 2017-08-31  Florian Weimer  <fweimer@redhat.com>
470         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
471         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
472         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
474 2017-08-31  Florian Weimer  <fweimer@redhat.com>
476         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
477         (__gai_enqueue_request): Remove internal_function.
478         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
479         (__gai_remove_request, __gai_notify, __gai_notify_only)
480         (__gai_sigqueue): Likewise.
481         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
482         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
483         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
484         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
485         Likewise.
487 2017-08-31  Florian Weimer  <fweimer@redhat.com>
489         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
490         * include/dirent.h (__opendirat, __getdents, __getdents64)
491         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
492         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
493         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
494         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
495         Likewise.
496         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
498 2017-08-31  Florian Weimer  <fweimer@redhat.com>
500         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
501         internal_function.
502         (GETCWD_RETURN_TYPE): Likewise.
504 2017-08-31  Florian Weimer  <fweimer@redhat.com>
506         * include/time.h (__tz_compute, __strptime_internal): Remove
507         internal_function.
508         * time/strptime_l.c (__strptime_internal): Likewise.
509         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
511 2017-08-31  Florian Weimer  <fweimer@redhat.com>
513         * iconv/gconv.c (__gconv): Remove internal_function.
514         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
515         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
516         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
517         (__gconv_release_cache): Likewise.
518         * iconv/gconv_close.c (__gconv_close): Likewise.
519         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
520         (read_conf_file, __gconv_get_path): Likewise.
521         * iconv/gconv_db.c (derivation_lookup, add_derivation)
522         (__gconv_release_step, gen_steps, increment_counter)
523         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
524         (__gconv_close_transform, free_modules_db): Likewise.
525         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
526         Likewise.
527         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
528         (__gconv_find_transform, __gconv_lookup_cache)
529         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
530         (__gconv_close_transform, __gconv_release_cache)
531         (__gconv_loaded_object, __gconv_release_shlib)
532         (__gconv_compare_alias): Likewise.
533         * iconv/gconv_open.c (__gconv_open): Likewise.
534         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
535         * iconv/iconvconfig.c (add_module): Likewise.
536         * intl/dcigettext.c (plural_lookup, guess_category_value)
537         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
538         * intl/eval-plural.h (plural_eval): Likewise.
539         * intl/finddomain.c (_nl_find_domain): Likewise.
540         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
541         (_nl_load_domain, _nl_find_msg): Likewise.
542         (internal_function): Remove definition.
543         * intl/loadinfo.h (internal_function): Likewise.
544         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
545         internal_function.
546         * intl/localealias.c (internal_function): Remove definition.
547         (read_alias_file): Remove internal_function.
548         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
549         * intl/plural-exp.h (internal_function): Remove definition.
550         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
551         internal_function.
552         * intl/plural.c: Regenerate.
553         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
554         * locale/coll-lookup.c (__collidx_table_lookup)
555         (__collseq_table_lookup): Likewise.
556         * locale/coll-lookup.h (__collidx_table_lookup)
557         (__collseq_table_lookup): Likewise.
558         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
559         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
560         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
561         (_nl_unload_locale): Likewise.
562         * locale/localeinfo.h (struct __locale_data): Remove
563         internal_function from cleanup member.
564         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
565         (_nl_remove_locale, _nl_load_locale_from_archive)
566         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
567         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
568         (_nl_cleanup_time): Remove internal_function.
569         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
570         (_nl_parse_alt_digit): Likewise.
571         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
572         (_nl_select_era_entry): Likewise.
573         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
574         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
575         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
576         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
577         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
579 2017-08-31  Florian Weimer  <fweimer@redhat.com>
581         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
582         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
583         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
584         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
585         Likewise.
586         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
587         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
588         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
589         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
590         Likewise.
591         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
593 2017-08-31  Florian Weimer  <fweimer@redhat.com>
595         * misc/getttyent.c (skip, value): Remove internal_function.
596         * misc/syslog.c (openlog_internal): Likewise.
597         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
599 2017-08-31  Florian Weimer  <fweimer@redhat.com>
601         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
602         (__nss_rewrite_field): Remove internal_function.
603         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
604         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
605         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
606         * nss/nsswitch.c (nss_parse_file, nss_getline)
607         (nss_parse_service_list, nss_new_service): Likewise.
608         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
609         * nss/valid_field.c (__nss_valid_field): Likewise.
610         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
612 2017-08-31  Florian Weimer  <fweimer@redhat.com>
614         * malloc/arena.c (__malloc_fork_lock_parent)
615         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
616         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
617         internal_function from defintions.
618         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
619         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
620         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
621         internal_function from declarations.
622         * malloc/malloc.c (internal_function): Do not define.
623         (mem2mem_check): Remove internal_function from declaration.
624         (munmap_chunk, mremap_chunk): Remove internal_function.
625         * malloc/mtrace.c (tr_where): Likewise.
627 2017-08-31  Florian Weimer  <fweimer@redhat.com>
629         * include/rpc/pmap_clnt.h (__get_socket): Remove
630         internal_function.
631         * sunrpc/auth_des.c (synchronize): Likewise.
632         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
633         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
634         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
635         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
636         (key_call): Likewise.
637         * sunrpc/pm_getport.c (__get_socket): Likewise.
638         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
639         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
640         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
641         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
642         (invalidate): Likewise.
643         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
644         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
645         (set_input_fragment, get_input_bytes): Likewise.
647 2017-08-31  Florian Weimer  <fweimer@redhat.com>
649         * malloc/malloc.c (_int_free): Remove locked variable and related
650         asserts.
652 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
654         [BZ #22051]
655         * Makerules (build-module-helper-objlist): Filter out
656         $(elf-objpfx)sofini.os.
657         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
658         needed.
660 2017-08-31  Florian Weimer  <fweimer@redhat.com>
662         * libio/fcloseall.c: Assume weak_alias is defined.
663         * libio/feof.c: Likewise.
664         * libio/fileno.c: Likewise.
665         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
666         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
667         definitions.
668         (_IO_file_open): Call __open directly.
669         (_IO_new_file_sync): Assume ESPIPE is defined.
670         (_IO_file_seekoff_maybe_mmap): Call __read directly.
671         (_IO_new_file_write): Call __write directly.
672         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
673         * libio/ftello64.c (__ftello64): Assume EIO is defined.
674         * libio/genops.c: Assume _LIBC is defined.
675         (save_for_backup): Remove internal_function.
676         * libio/getc.c: Assume weak_alias is defined.
677         * libio/getwc.c: Likewise.
678         * libio/iofclose.c: Assume _LIBC is defined.
679         * libio/iofdopen.c: Likewise.
680         (_IO_fcntl): Remove macro definition.
681         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
682         Call __fcntl directly.
683         * libio/iofflush.c: Assume weak_alias is defined.
684         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
685         defined.
686         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
687         * libio/iofgets.c: Likewise.
688         * libio/iofopen.c: Assume _LIBC is defined.
689         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
690         * libio/iofputs.c: Assume weak_alias is defined.
691         * libio/iofread.c: Likewise.
692         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
693         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
694         * libio/ioftell.c: Assume weak_alias is defined.
695         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
696         * libio/iofwide.c: Assume _LIBC is defined.
697         (_IO_fwide): Drop SHARED conditional because it is implied by
698         SHLIB_COMPAT.
699         * libio/iofwrite.c: Assume weak_alias is defined.
700         * libio/iogetdelim.c: Likewise.
701         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
702         * libio/iogetwline.c (wmemcpy): Remove macro definition.
703         (_IO_getwline): Call __wmemcpy directly.
704         * libio/iopopen.c: Assume _LIBC is defined.
705         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
706         (_IO_close): Remove macro definitions.
707         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
708         _exit directly.
709         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
710         directly.
711         * libio/ioputs.c: Assume weak_alias is defined.
712         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
713         * libio/iosetbuffer.c: Assume weak_alias is defined.
714         * libio/iosetvbuf.c: Likewise.
715         * libio/ioungetc.c: Likewise.
716         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
717         libc_hidden_def, libc_hidden_weak, NULL are defined.
718         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
719         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
720         defined.
721         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
722         definitions.
723         (_IO_old_file_init_internal): Drop SHARED conditional because it
724         is implied by SHLIB_COMPAT.
725         (_IO_old_file_fopen): Call __open directly.
726         (_IO_old_file_sync): Assume ESPIPE is defined.
727         (_IO_old_file_write): Call __write directly.
728         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
729         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
730         Call __fcntl directly.
731         * libio/oldiofgetpos.c: Assume weak_alias is defined.
732         (_IO_old_fgetpos): Assume EIO is defined.
733         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
734         (_IO_old_fgetpos64): Assume EIO is defined.
735         * libio/oldiofsetpos.c: Assume weak_alias is defined.
736         (_IO_old_fsetpos): Assume EIO is defined.
737         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
738         (_IO_old_fsetpos64): Assume EIO is defined.
739         * libio/oldiopopen.c:  Assume _LIBC is defined.
740         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
741         (_IO_close): Remove macro definitions.
742         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
743         directly.
744         (_IO_old_proc_close): Call __close, __waitpid directly.
745         * libio/put.c: Assume weak_alias is defined.
746         * libio/stdfiles.c: Assume _LIBC is defined.
747         * libio/stdio.c: Likewise.
748         * libio/wfileops.c: Likewise.
749         (_IO_wfile_sync): Assume ESPIPE is defined.
750         * libio/wgenops.c: Assume _LIBC is defined.
751         (save_for_wbackup): Remove internal_function.
753 2017-08-31  Florian Weimer  <fweimer@redhat.com>
755         * malloc/malloc.c (top_check): Change return type to void.  Remove
756         internal_function.
757         * malloc/hooks.c (top_check): Likewise.
758         (malloc_check, realloc_check, memalign_check): Adjust.
760 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
762         [BZ #21457]
763         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
764         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
765         sigcontext and namespace requirements.
766         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
767         * sysdeps/m68k/sys/ucontext.h: Likewise.
768         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
769         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
770         <bits/sigcontext.h>.
771         (__ctx): Define earlier.
772         (mcontext_t): Define structure contents rather than using struct
773         sigcontext.
774         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
775         __glibc_reserved1 instead of __reserved.
776         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
777         <bits/sigcontext.h>.
778         (__ctx): Define earlier.
779         (mcontext_t): Define structure contents rather than using struct
780         sigcontext.
781         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
782         mcontext_t instead of struct sigcontext.
783         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
784         <bits/sigcontext.h>.
785         (__ctx): Define earlier.
786         (mcontext_t): Define structure contents rather than using struct
787         sigcontext.
788         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
789         <bits/sigcontext.h>.
790         (__ctx): Define earlier.
791         (mcontext_t): Define structure contents rather than using struct
792         sigcontext.
793         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
794         mcontext_t instead of struct sigcontext.
795         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
796         mcontext_t instead of struct sigcontext.
797         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
798         <bits/sigcontext.h>.
799         (__ctx): New macro.
800         (struct __ia64_fpreg_mcontext): New type.
801         (mcontext_t): Define structure contents rather than using struct
802         sigcontext.
803         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
804         (uc_sigmask): Define using __ctx.
805         (uc_stack): Likewise.
806         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
807         <bits/sigcontext.h>.
808         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
809         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
810         <bits/sigcontext.h>.
811         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
812         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
813         <bits/sigcontext.h>.
814         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
815         <bits/sigcontext.h>.
816         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
817         <bits/sigcontext.h>.
818         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
819         <bits/sigcontext.h>.
820         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
821         <bits/sigcontext.h>.
822         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
823         <bits/sigcontext.h>.
824         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
825         <bits/sigcontext.h>.
826         (__ctx): Define earlier.
827         (mcontext_t): Define structure contents rather than using struct
828         sigcontext.
829         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
830         <bits/sigcontext.h>.  Include <bits/types.h>.
831         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
832         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
833         (test-xfail-XPG42/ucontext.h/conform): Likewise.
834         (test-xfail-UNIX98/signal.h/conform): Likewise.
835         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
836         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
837         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
838         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
839         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
840         (test-xfail-POSIX2008/signal.h/conform): Likewise.
841         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
842         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
843         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
845 2017-08-30  Florian Weimer  <fweimer@redhat.com>
847         * malloc/dynarray_emplace_enlarge.c
848         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
849         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
850         * malloc/tst-dynarray.c (test_long_overflow): New function.
851         (do_test): Call it.
853 2017-08-30  Florian Weimer  <fweimer@redhat.com>
855         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
856         (set_arena_corrupt): Remove definitions.
857         (mtrim): Do not check for corrupt arena.
858         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
859         Likewise.
861 2017-08-30  Florian Weimer  <fweimer@redhat.com>
863         [BZ #21754]
864         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
865         check_action.
866         (ptmalloc_init): Do not set or use check_action.
867         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
868         call to malloc_printerr.  Remove return statement.
869         (free_check): Likewise.  Remove arena unlock.
870         (top_check): Update comment.  Adjust call to malloc_printerr.
871         Remove heap repair code.
872         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
873         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
874         (sysmalloc): Adjust call to malloc_printerr.
875         (munmap_chunk, __libc_realloc): Likewise.  Remove return
876         statement.
877         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
878         Remove errout label and corresponding gotos.
879         (_int_free): Likewise.  Remove arena unlock.
880         (do_set_mallopt_check): Do not set check_action.
881         (malloc_printerr): Adjust parameter list.  Do not mark arena as
882         corrupt.
883         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
884         comment.
885         * manual/probes.texi (Memory Allocation Probes): Remove
886         memory_mallopt_check_action.
888 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
890         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
891         Use pointer to uint64_t instead of long int for sp.
893 2017-08-30  Florian Weimer  <fweimer@redhat.com>
895         [BZ #21754]
896         * malloc/malloc.c (malloc_printerr): Always terminate the process,
897         without printing a backtrace.  Do not leak any information in the
898         error message.
899         * manual/memory.texi (Heap Consistency Checking): Update.
900         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
902 2017-08-30  Florian Weimer  <fweimer@redhat.com>
904         Do not scale NPTL tests with available number of CPUs.
905         * nptl/tst-cond16.c (count): Set to constant value of 8.
906         * nptl/tst-cond18.c (count): Likewise.
908 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
910         [BZ #22035]
911         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
912         Define to take a second argument that is a macro that
913         concatentates a suffix, not the suffix itself.
914         (__CONCAT_d): New macro.
915         (__CONCAT_f): Likewise.
916         (__CONCAT_l): Likewise.
918 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
920         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
921         by child.
923 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
924             Aurelien Jarno  <aurelien@aurel32.net>
925             Maciej W. Rozycki  <macro@imgtec.com>
927         [BZ #21956]
928         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
929         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
930         `mips16-syscall6' and `mips16-syscall7'.
931         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
932         (CFLAGS-mips16-syscall7.c): Remove.
933         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
934         Remove `__mips16_syscall5', `__mips16_syscall6' and
935         `__mips16_syscall7'.
936         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
937         (__mips16_syscall0): Rename `__mips16_syscall_return' to
938         `__mips_syscall_return'.
939         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
940         (__mips16_syscall1): Likewise.
941         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
942         (__mips16_syscall2): Likewise.
943         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
944         (__mips16_syscall3): Likewise.
945         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
946         (__mips16_syscall4): Likewise.
947         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
948         Remove.
949         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
950         Remove.
951         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
952         Remove.
953         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
954         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
955         `__mips16_syscall5'.  Remove prototype.
956         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
957         `__mips16_syscall6'.  Remove prototype.
958         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
959         `__mips16_syscall7'.  Remove prototype.
960         (__nomips16, __mips16_syscall_return): Move to...
961         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
962         (__nomips16, __mips_syscall_return): ... here.
963         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
964         `__mips16_syscall_return' to `__mips_syscall_return'.
965         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
966         `internal_syscall##nr'.
967         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
968         `internal_syscall##nr'.
969         (FORCE_FRAME_POINTER): Remove.
970         (__mips_syscall5): New prototype.
971         (internal_syscall5): Rewrite to call `__mips_syscall5'.
972         (__mips_syscall6): New prototype.
973         (internal_syscall6): Rewrite to call `__mips_syscall6'.
974         (__mips_syscall7): New prototype.
975         (internal_syscall7): Rewrite to call `__mips_syscall7'.
976         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
977         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
978         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
979         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
980         (sysdep_routines): Add libc-do-syscall.
981         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
982         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
984 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
986         [BZ #21672]
987         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
988         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
989         (advise_stack_range): New function.
990         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
991         stack non required to advise_stack_range at allocatestack.c
993 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
995         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
997 2017-08-29  Florian Weimer  <fweimer@redhat.com>
999         [BZ #22026]
1000         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
1001         __end_fct.  Mangle __end_fct after setting it to NULL.
1002         * iconv/Makefile (tests): Add tst-gconv-init-failure.
1003         (modules-names, modules-names-tests): Add
1004         tst-gconv-init-failure-mod.
1005         (gconv-modules): New target.
1006         (tst-gconv-init-failure-mod.so): Link against libsupport.
1007         (tst-gconv-init-failure): Depend on gconv-modules,
1008         tst-gconv-init-failure-mod.so.
1009         * iconv/tst-gconv-init-failure-mod.c: New file.
1010         * iconv/tst-gconv-init-failure.c: Likewise.
1011         * iconv/test-gconv-modules: Likewise.
1013 2017-08-29  Florian Weimer  <fweimer@redhat.com>
1015         [BZ #22025]
1016         * iconv/gconv_db.c (free_derivation): Remove redundant
1017         parentheses.
1018         (gen_steps): Unconditionally mangle __btowc_fct after
1019         initialization.
1020         (increment_counter): Likewise.  Do not call init_fct for internal
1021         modules.
1023 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
1025         [BZ #22028]
1026         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
1027         (_MSUF_): Remove macro.
1028         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
1029         Likewise.
1030         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
1031         (__REDIRFROM_X): New macro.
1032         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
1033         Likewise.
1034         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
1035         (__REDIRTO_X): Likewise.
1036         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
1037         arguments.
1038         (__MATH_REDIRCALL_2): Likewise.
1039         (__MATH_REDIRCALL_INTERNAL): Likewise.
1040         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
1041         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
1042         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
1043         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
1044         * math/test-finite-macros.c: New file.
1045         * math/Makefile (tests): Add test-finite-macros.
1046         (CFLAGS-test-finite-macros.c): New variable.
1048 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
1049             Jeff Law  <law@redhat.com>
1051         [BZ #22025]
1052         Mangle NULL pointers in iconv/gconv.
1053         * iconv/gconv_cache.c (find_module): Demangle init_fct before
1054         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
1055         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
1056         is non-NULL before demangling the end_fct.  Check for NULL
1057         end_fct after demangling.
1058         (__gconv_release_step): Demangle the end_fct before checking
1059         it for NULL.   Remove assert on __shlibc_handle != NULL.
1060         (gen_steps): Don't check btowc_fct for NULL before mangling.
1061         Demangle init_fct before checking for NULL.
1062         (increment_counter): Likewise.
1063         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
1064         end_fct for NULL before mangling.
1065         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
1066         for NULL.
1068 2017-08-29  Akhilesh Kumar <akhilesh.k@samsung.com>
1070         [BZ #21971]
1071         * locale/iso-639.def: add Morisyen.
1073 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1075         [BZ #21930]
1076         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
1077         (iszero): New C++ implementation that does not use
1078         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
1079         signaling nans are enabled, since __builtin_types_compatible_p
1080         is a C-only feature.
1081         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
1082         defined, include ieee754_float128.h for access to the union and
1083         member ieee854_float128.ieee.
1084         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
1085         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
1086         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
1087         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
1088         options of test-math-zero on powerpc64le.
1090 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
1092         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1093         Change double to float.
1095 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
1097         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
1098         unconditional.
1099         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
1100         conditional code; define contents only for [LIBM_SVID_COMPAT].
1102 2017-08-28  Florian Weimer  <fweimer@redhat.com>
1104         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
1105         (abi-lp64_be-options): Remove.
1106         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
1107         (abi-hard-options): Likewise.
1108         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
1109         (abi-o32_hard-options, abi-o32_soft_2008-options)
1110         (abi-o32_hard_2008-options, abi-n32_soft-options)
1111         (abi-n32_hard-options, abi-n32_soft_2008-options)
1112         (abi-n32_hard_2008-options, abi-n64_soft-options)
1113         (abi-n64_hard-options, abi-n64_soft_2008-options)
1114         (abi-n64_hard_2008-options): Likewise.
1115         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
1116         (abi-64-v1-options, abi-64-v2-options): Likewise.
1117         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
1118         (abi-64-options): Likewise.
1119         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
1120         (abi-64-options): Likewise.
1121         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
1122         (abi-64-options): Likewise.
1123         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
1124         (abi-64-options, abi-x32-options): Likewise.
1126 2017-08-28  Florian Weimer  <fweimer@redhat.com>
1128         Store supported list of SYS_* system calls in the source tree.
1129         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1130         (bits/syscall.h): Generate from list file.
1131         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
1132         [$(subdir) = misc] (tests): Add tst-syscall-list.
1133         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
1134         [$(subdir) = misc] (tst-syscall-list-macros.list)
1135         [$(subdir) = misc] (tst-syscall-list-nr.list)
1136         (tst-syscall-list-sys.list): Helper targets for new
1137         tst-syscall-list test.
1138         [$(subdir) = misc] (tst-syscall-list.out): Run test script
1139         tst-syscall-list.sh.
1140         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
1141         target. Do not include bits/syscall.d.
1142         [$(subdir) = misc] (generated): Do not update.
1143         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
1144         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
1145         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
1146         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
1148 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
1150         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
1151         (tst-cxa_atexit, tst-on_exit): Likewise.
1152         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
1153         tst-cxa_atexit, and tst-on_exit.
1154         * stdlib/tst-atexit-common.c: New file.
1155         * stdlib/tst-atexit.c: New file.
1156         * stdlib/tst-at_quick_exit.c: New file.
1157         * stdlib/tst-cxa_atexit.c: New file.
1158         * stdlib/tst-on_exit.c: New file.
1160 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1162         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
1163         * mach/stack_chk_fail_local.c: New file.
1164         * hurd/stack_chk_fail_local.c: New file.
1165         * mach/Machrules ($(interface-library)-routines): Add
1166         stack_chk_fail_local.
1167         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
1168         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
1169         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
1170         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
1171         * hurd/Makefile (CFLAGS-hurdstartup.o,
1172         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
1174 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
1176         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
1177         (index_cpu_*, index_arch_*): Removed.
1179 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1181         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
1182         Use uint64_t instead of unsigned long.
1184 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
1186         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
1187         [__HAVE_DISTINCT_FLOAT128].
1189         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
1190         of <bits/math-finite.h>.
1191         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
1192         inclusion of <bits/math-finite.h>.
1193         * math/bits/math-finite.h (__REDIRTO_X): Do not define
1194         conditionally on [__MATH_DECLARING_LDOUBLE && defined
1195         __NO_LONG_DOUBLE_MATH].
1196         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
1197         (__MATH_REDIRCALL_2): Likewise.
1198         (__MATH_REDIRCALL_INTERNAL): Likewise.
1199         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
1200         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
1201         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
1203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
1204         Remove file.
1205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
1206         Likewise.
1207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
1208         Likewise.
1209         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
1210         Likewise.
1211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
1212         Likewise.
1213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
1214         Likewise.
1215         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
1216         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
1217         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
1218         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
1219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1220         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
1221         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
1222         w_sqrtf_compat-ppc32.
1224 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1226         * math/math.h [defined __cplusplus] (issignaling): In the long
1227         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
1228         is not defined.  Call __issignaling, otherwise.
1230 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1232         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
1233         syscall definitions and replace __builtin_expect with __glibc_likely.
1234         * sysdeps/unix/syscall-template.S: Update comment about cancellable
1235         syscall.
1236          (SYSCALL_CANCELLABLE): Removedefinition
1237         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
1238         definition.
1239         (PSEUDO_END): Likewise.
1240         [IS_IN (libpthread)] (CENABLE): Likewise.
1241         [IS_IN (libpthread)] (CDISABLE): Likewise.
1242         [IS_IN (libc)] (CENABLE): Likewise.
1243         [IS_IN (libc)] (CENABLE): Likewise.
1244         [IS_IN (librt)] (CDISABLE): Likewise.
1245         [IS_IN (librt)] (CDISABLE): Likewise.
1246         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1247         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
1248         definition.
1249         (PSEUDO_END): Likewise.
1250         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
1251         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
1252         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
1253         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
1254         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
1255         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
1256         (CENABLE): Likewise.
1257         (CDISABLE): Likewise.
1258         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1259         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
1260         defintion.
1261         (PSEUDO_END): Likewise.
1262         [IS_IN (libpthread)] (CENABLE): Likewise.
1263         [IS_IN (libpthread)] (CDISABLE): Likewise.
1264         [IS_IN (libc)] (CENABLE): Likewise.
1265         [IS_IN (libc)] (CENABLE): Likewise.
1266         [IS_IN (librt)] (CDISABLE): Likewise.
1267         [IS_IN (librt)] (CDISABLE): Likewise.
1268         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1269         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
1270         definition.
1271         (PSEUDO_END): Likewise.
1272         [IS_IN (libpthread)] (CENABLE): Likewise.
1273         [IS_IN (libpthread)] (CDISABLE): Likewise.
1274         [IS_IN (libc)] (CENABLE): Likewise.
1275         [IS_IN (libc)] (CENABLE): Likewise.
1276         [IS_IN (librt)] (CDISABLE): Likewise.
1277         [IS_IN (librt)] (CDISABLE): Likewise.
1278         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1279         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
1280         definition.
1281         (PSEUDO_END): Likewise.
1282         [IS_IN (libpthread)] (CENABLE): Likewise.
1283         [IS_IN (libpthread)] (CDISABLE): Likewise.
1284         [IS_IN (libc)] (CENABLE): Likewise.
1285         [IS_IN (libc)] (CENABLE): Likewise.
1286         [IS_IN (librt)] (CDISABLE): Likewise.
1287         [IS_IN (librt)] (CDISABLE): Likewise.
1288         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1289         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
1290         definition.
1291         (PSEUDO_END): Likewise.
1292         [IS_IN (libpthread)] (CENABLE): Likewise.
1293         [IS_IN (libpthread)] (CDISABLE): Likewise.
1294         [IS_IN (libc)] (CENABLE): Likewise.
1295         [IS_IN (libc)] (CENABLE): Likewise.
1296         [IS_IN (librt)] (CDISABLE): Likewise.
1297         [IS_IN (librt)] (CDISABLE): Likewise.
1298         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1299         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
1300         definition.
1301         (PSEUDO_END): Likewise.
1302         [IS_IN (libpthread)] (CENABLE): Likewise.
1303         [IS_IN (libpthread)] (CDISABLE): Likewise.
1304         [IS_IN (libc)] (CENABLE): Likewise.
1305         [IS_IN (libc)] (CENABLE): Likewise.
1306         [IS_IN (librt)] (CDISABLE): Likewise.
1307         [IS_IN (librt)] (CDISABLE): Likewise.
1308         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1309         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
1310         definition.
1311         (PSEUDO_END): Likewise.
1312         [IS_IN (libpthread)] (CENABLE): Likewise.
1313         [IS_IN (libpthread)] (CDISABLE): Likewise.
1314         [IS_IN (libc)] (CENABLE): Likewise.
1315         [IS_IN (libc)] (CENABLE): Likewise.
1316         [IS_IN (librt)] (CDISABLE): Likewise.
1317         [IS_IN (librt)] (CDISABLE): Likewise.
1318         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1319         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
1320         Remove definition.
1321         (PSEUDO_END): Likewise.
1322         [IS_IN (libpthread)] (CENABLE): Likewise.
1323         [IS_IN (libpthread)] (CDISABLE): Likewise.
1324         [IS_IN (libc)] (CENABLE): Likewise.
1325         [IS_IN (libc)] (CENABLE): Likewise.
1326         [IS_IN (librt)] (CDISABLE): Likewise.
1327         [IS_IN (librt)] (CDISABLE): Likewise.
1328         (SINGLE_THREAD_P): Likewise.
1329         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
1330         definition.
1331         (PSEUDO_END): Likewise.
1332         [IS_IN (libpthread)] (CENABLE): Likewise.
1333         [IS_IN (libpthread)] (CDISABLE): Likewise.
1334         [IS_IN (libc)] (CENABLE): Likewise.
1335         [IS_IN (libc)] (CENABLE): Likewise.
1336         [IS_IN (librt)] (CDISABLE): Likewise.
1337         [IS_IN (librt)] (CDISABLE): Likewise.
1338         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1339         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
1340         definition.
1341         (PSEUDO_END): Likewise.
1342         [IS_IN (libpthread)] (CENABLE): Likewise.
1343         [IS_IN (libpthread)] (CDISABLE): Likewise.
1344         [IS_IN (libc)] (CENABLE): Likewise.
1345         [IS_IN (libc)] (CENABLE): Likewise.
1346         [IS_IN (librt)] (CDISABLE): Likewise.
1347         [IS_IN (librt)] (CDISABLE): Likewise.
1348         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1349         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
1350         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
1351         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
1352         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
1353         definition.
1354         (PSEUDO_END): Likewise.
1355         [IS_IN (libpthread)] (CENABLE): Likewise.
1356         [IS_IN (libpthread)] (CDISABLE): Likewise.
1357         [IS_IN (libc)] (CENABLE): Likewise.
1358         [IS_IN (libc)] (CENABLE): Likewise.
1359         [IS_IN (librt)] (CDISABLE): Likewise.
1360         [IS_IN (librt)] (CDISABLE): Likewise.
1361         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1362         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
1363         definition.
1364         (PSEUDO_END): Likewise.
1365         [IS_IN (libpthread)] (CENABLE): Likewise.
1366         [IS_IN (libpthread)] (CDISABLE): Likewise.
1367         [IS_IN (libc)] (CENABLE): Likewise.
1368         [IS_IN (libc)] (CENABLE): Likewise.
1369         [IS_IN (librt)] (CDISABLE): Likewise.
1370         [IS_IN (librt)] (CDISABLE): Likewise.
1371         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1372         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
1373         definition.
1374         (PSEUDO_END): Likewise.
1375         [IS_IN (libpthread)] (CENABLE): Likewise.
1376         [IS_IN (libpthread)] (CDISABLE): Likewise.
1377         [IS_IN (libc)] (CENABLE): Likewise.
1378         [IS_IN (libc)] (CENABLE): Likewise.
1379         [IS_IN (librt)] (CDISABLE): Likewise.
1380         [IS_IN (librt)] (CDISABLE): Likewise.
1381         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1382         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
1383         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
1384         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
1385         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
1386         definition.
1387         (PSEUDO_END): Likewise.
1388         [IS_IN (libpthread)] (CENABLE): Likewise.
1389         [IS_IN (libpthread)] (CDISABLE): Likewise.
1390         [IS_IN (libc)] (CENABLE): Likewise.
1391         [IS_IN (libc)] (CENABLE): Likewise.
1392         [IS_IN (librt)] (CDISABLE): Likewise.
1393         [IS_IN (librt)] (CDISABLE): Likewise.
1394         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1395         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
1396         definition.
1397         (PSEUDO_END): Likewise.
1398         [IS_IN (libpthread)] (CENABLE): Likewise.
1399         [IS_IN (libpthread)] (CDISABLE): Likewise.
1400         [IS_IN (libc)] (CENABLE): Likewise.
1401         [IS_IN (libc)] (CENABLE): Likewise.
1402         [IS_IN (librt)] (CDISABLE): Likewise.
1403         [IS_IN (librt)] (CDISABLE): Likewise.
1404         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
1406 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1408         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
1410 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
1412         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1414 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
1416         [BZ #21982]
1417         * string/stratcliff.c (do_test): Declare size, nchars, inner,
1418         middle and outer with size_t instead of int.  Repleace %d and
1419         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
1420         "MAX (outer, nchars - 64)" to support unsigned outer and
1421         nchars.  Also exit loop when outer == 0.
1423 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1425         * include/fcntl.h (__fcntl_nocancel): Remove definition.
1426         * include/signal.h (__sigsuspend_nocancel): Likewise.
1427         * include/time.h (__nanosleep_nocancel): Likewise.
1428         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
1429         * login/utmp_file.c: Include non cancellable syscall header.
1430         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
1431         prototype.
1433 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
1435         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
1436         .byte sequences with AVX512F instructions.
1437         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
1438         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
1439         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
1440         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
1441         Likewise.
1442         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1443         Likewise.
1445 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1446             Steve Ellcey  <sellcey@cavium.com>
1448         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
1449         Use PTR_REG macro in cmp instruction.
1451 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1453         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
1454         Change the return type of the ifunc resolver to match the return
1455         type of the target function.
1457 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1459         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
1460         (preadv64): Likewise.
1461         (pwrite64(: Likewise.
1462         (pwritev64): Likewise.
1464         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1465         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
1466         (LOAD_ARGS_0): Likewise.
1467         (LOAD_ARGS_1): Likewise.
1468         (LOAD_ARGS_2): Likewise.
1469         (LOAD_ARGS_3): Likewise.
1470         (LOAD_ARGS_4): Likewise.
1471         (LOAD_ARGS_5): Likewise.
1472         (LOAD_ARGS_6): Likewise.
1473         (LOAD_REGS_0): Likewise.
1474         (LOAD_REGS_1): Likewise.
1475         (LOAD_REGS_2): Likewise.
1476         (LOAD_REGS_3): Likewise.
1477         (LOAD_REGS_4): Likewise.
1478         (LOAD_REGS_5): Likewise.
1479         (LOAD_REGS_6): Likewise.
1480         (ASM_ARGS_0): Likewise.
1481         (ASM_ARGS_1): Likewise.
1482         (ASM_ARGS_2): Likewise.
1483         (ASM_ARGS_3): Likewise.
1484         (ASM_ARGS_4): Likewise.
1485         (ASM_ARGS_5): Likewise.
1486         (ASM_ARGS_6): Likewise.
1487         (LOAD_ARGS_TYPES_1): Likewise.
1488         (LOAD_ARGS_TYPES_2): Likewise.
1489         (LOAD_ARGS_TYPES_3): Likewise.
1490         (LOAD_ARGS_TYPES_4): Likewise.
1491         (LOAD_ARGS_TYPES_5): Likewise.
1492         (LOAD_ARGS_TYPES_6): Likewise.
1493         (LOAD_REGS_TYPES_1): Likewise.
1494         (LOAD_REGS_TYPES_2): Likewise.
1495         (LOAD_REGS_TYPES_3): Likewise.
1496         (LOAD_REGS_TYPES_4): Likewise.
1497         (LOAD_REGS_TYPES_5): Likewise.
1498         (LOAD_REGS_TYPES_6): Likewise.
1499         (TYPEFY): New define.
1500         (ARGIFY): Likewise.
1501         (internal_syscall0): Likewise.
1502         (internal_syscall1): Likewise.
1503         (internal_syscall2): Likewise.
1504         (internal_syscall3): Likewise.
1505         (internal_syscall4): Likewise.
1506         (internal_syscall5): Likewise.
1507         (internal_syscall6): Likewise.
1508         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
1509         (INTERNAL_SYSCALL_NCS): Remove define.
1510         (internal_syscall1): Add define.
1512 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1514         * math/w_remainder_compat.c: Remove duplicate inclusion of
1515         math-svid-compat.h.
1516         * math/w_remainderf_compat.c: Likewise.
1517         * math/w_remainderl_compat.c: Likewise.
1519 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1521         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1523 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
1525         [BZ #21684]
1526         * math/tgmath.h (__floating_type): Simplify definitions.
1527         (__real_integer_type): New macro.
1528         (__complex_integer_type): Likewise.
1529         (__expr_is_real): Likewise.
1530         (__tgmath_real_type_sub): Update comment to describe handling of
1531         complex types.
1532         (__tgmath_complex_type_sub): New macro.
1533         (__tgmath_complex_type): Likewise.
1534         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1535         (__TGMATH_CF128): Use __expr_is_real.
1536         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
1537         __expr_is_real.
1538         (__TGMATH_BINARY_REAL_IMAG): Likewise.
1539         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
1540         * math/gen-tgmath-tests.py (Type.create_type): Create complex
1541         integer types.
1543 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1545         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
1546         macro.
1547         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
1548         alias.
1549         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
1550         Likewise.
1552         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
1553         nanosleep_not_cancel with __nanosleep_nocancel.
1554         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
1555         (__nanosleep_nocancel): New macro.
1556         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
1557         function.
1558         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
1559         macro.
1560         (__nanosleep_nocancel): New prototype.
1562         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
1563         pause_not_cancel with __pause_nocancel.
1564         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
1565         (__pause_nocancel): New macro.
1566         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
1567         macro.
1568         (__pause_nocancel): New prototype.
1569         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
1571 2017-08-22  Martin Sebor  <msebor@redhat.com>
1573         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
1574         to return a pointer to the same type as the target function.
1576 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1578         [BZ #18822]
1579         [BZ #21986]
1580         * include/printf.h (__printf_fphex): Add attribute_hidden.
1581         (__guess_grouping): New prototype.
1582         * stdio-common/printf_fp.c (__guess_grouping): Removed.
1583         * stdio-common/reg-printf.c (__register_printf_specifier): Add
1584         libc_hidden_proto and libc_hidden_def.
1585         * stdlib/strfmon_l.c (__guess_grouping): Removed.
1586         (__vstrfmon_l): Remove the third argument passed to
1587         __guess_grouping.
1589 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1591         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
1592         definition for issignaling that does not rely on __MATH_TG,
1593         since __MATH_TG uses __builtin_types_compatible_p, which is only
1594         available in C mode.
1595         (CFLAGS-test-math-issignaling.cc): New variable.
1596         * math/Makefile [CXX] (tests): Add test-math-issignaling.
1597         * math/test-math-issignaling.cc: New test for C++ implementation
1598         of type-generic issignaling.
1599         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
1600         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
1601         options of test-math-issignaling on powerpc64le.
1603 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1605         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1606         building libc.a.
1607         (hidden_proto): Likewise.
1608         (hidden_tls_proto): Likewise.
1609         (__hidden_proto): Likewise.
1611 2017-08-22  Florian Weimer  <fweimer@redhat.com>
1613         math: Statically link tests of internal functionality.
1614         * math/Makefile (tests): Remove atest-exp, atest-sincos,
1615         atest-exp2.
1616         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
1617         (gmp-objs): Remove assignment.
1618         (atest-exp, atest-sincos, atest-exp2): Remove targets.
1620 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
1622         [BZ #21987]
1623         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
1624         and copy to ...
1625         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
1626         ... here.
1627         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
1628         ... and here.
1630         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
1631         variable definitions above inclusion of ../Rules.
1633 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
1635         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
1636         case calling __builtin_unreachable.
1638 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1640         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
1641         __waitpid_nocancel.
1642         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
1643         (__waitpid_nocancel): New macro.
1644         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
1645         macro.
1646         (__waitpid_nocancel): Replace macro with a function.
1647         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
1648         function.
1650         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
1651         __fcntl_nocancel.
1652         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
1653         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
1655         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
1656         __writev_nocancel_nostatus.
1657         (write_call_graph): Likewise.
1658         (write_bb_counts): Likewise.
1659         * resolv/herror.c (herror): Likewise.
1660         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
1661         macro.
1662         (__writev_nocancel_nostatus): New macro.
1663         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
1664         Remove macro.
1665         (__writev_nocancel_nostatus): New function.
1667 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
1669         Revert:
1670         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1672         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1673         building libc.a.
1674         (hidden_proto): Likewise.
1675         (hidden_tls_proto): Likewise.
1676         (__hidden_proto): Likewise.
1678         [BZ #21973]
1679         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
1680         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
1681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
1682         Likewise.
1683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
1684         Likewise.
1685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
1686         Likewise.
1687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
1688         Likewise.
1689         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
1690         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
1691         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
1692         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
1693         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
1694         GLIBC_2.0 sqrtl symbol.
1696         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
1697         [__USE_MISC] (_LIB_VERSION): Likewise.
1698         [__USE_MISC] (struct exception): Likewise.
1699         [__USE_MISC] (matherr): Likewise.
1700         [__USE_MISC] (DOMAIN): Likewise.
1701         [__USE_MISC] (SING): Likewise.
1702         [__USE_MISC] (OVERFLOW): Likewise.
1703         [__USE_MISC] (UNDERFLOW): Likewise.
1704         [__USE_MISC] (TLOSS): Likewise.
1705         [__USE_MISC] (PLOSS): Likewise.
1706         [__USE_MISC] (HUGE): Likewise.
1707         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
1708         * math/math-svid-compat.h: New file.
1709         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
1710         and matherrl.
1711         * include/math.h [!_ISOMAC] (__matherr): Remove.
1712         * manual/arith.texi (FP Exceptions): Do not document matherr.
1713         * math/Makefile (tests): Change test-matherr to test-matherr-3.
1714         (tests-internal): New variable.
1715         (install-lib): Do not add libieee.a.
1716         (non-lib.a): Likewise.
1717         (extra-objs): Do not add libieee.a and ieee-math.o.
1718         (CPPFLAGS-s_lib_version.c): Remove variable.
1719         ($(objpfx)libieee.a): Remove rule.
1720         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
1721         * math/ieee-math.c: Remove.
1722         * math/libm-test-support.c (matherr): Remove.
1723         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
1724         and license notices.  Include <math-svid-compat.h> and
1725         <shlib-compat.h>.
1726         (matherr): Undefine as macro.  Use compat_symbol_reference.
1727         (_LIB_VERSION): Likewise.
1728         * math/test-matherr-2.c: New file.
1729         * math/test-matherr-3.c: Likewise.
1730         * sysdeps/generic/math_private.h (__kernel_standard): Remove
1731         declaration.
1732         (__kernel_standard_f): Likewise.
1733         (__kernel_standard_l): Likewise.
1734         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
1735         <math_private.h>.  Include <math-svid-compat.h>.
1736         (_LIB_VERSION): Undefine as macro.
1737         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
1738         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
1739         [LIBM_SVID_COMPAT], use compat_symbol.
1740         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
1741         <math_private.h>.  Include <math-svid-compat.h>.
1742         (matherr): Undefine as macro.
1743         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
1744         compat_symbol.
1745         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
1746         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
1747         compat_symbol_reference.
1748         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
1749         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
1750         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
1751         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
1752         (MATHERR_D): Remove declaration.
1753         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
1754         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
1755         [LIBM_BUILD] (pmatherrf): Likewise.
1756         [LIBM_BUILD] (pmatherr): Likewise.
1757         [LIBM_BUILD] (pmatherrl): Likewise.
1758         (DOMAIN): Likewise.
1759         (SING): Likewise.
1760         (OVERFLOW): Likewise.
1761         (UNDERFLOW): Likewise.
1762         (TLOSS): Likewise.
1763         (PLOSS): Likewise.
1764         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
1765         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
1766         compat_symbol.
1767         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
1768         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
1769         compat_symbol.
1770         * math/lgamma-compat.h: Include <math-svid-compat.h>.
1771         * math/w_acos_compat.c: Likewise.
1772         * math/w_acosf_compat.c: Likewise.
1773         * math/w_acosh_compat.c: Likewise.
1774         * math/w_acoshf_compat.c: Likewise.
1775         * math/w_acoshl_compat.c: Likewise.
1776         * math/w_acosl_compat.c: Likewise.
1777         * math/w_asin_compat.c: Likewise.
1778         * math/w_asinf_compat.c: Likewise.
1779         * math/w_asinl_compat.c: Likewise.
1780         * math/w_atan2_compat.c: Likewise.
1781         * math/w_atan2f_compat.c: Likewise.
1782         * math/w_atan2l_compat.c: Likewise.
1783         * math/w_atanh_compat.c: Likewise.
1784         * math/w_atanhf_compat.c: Likewise.
1785         * math/w_atanhl_compat.c: Likewise.
1786         * math/w_cosh_compat.c: Likewise.
1787         * math/w_coshf_compat.c: Likewise.
1788         * math/w_coshl_compat.c: Likewise.
1789         * math/w_exp10_compat.c: Likewise.
1790         * math/w_exp10f_compat.c: Likewise.
1791         * math/w_exp10l_compat.c: Likewise.
1792         * math/w_exp2_compat.c: Likewise.
1793         * math/w_exp2f_compat.c: Likewise.
1794         * math/w_exp2l_compat.c: Likewise.
1795         * math/w_fmod_compat.c: Likewise.
1796         * math/w_fmodf_compat.c: Likewise.
1797         * math/w_fmodl_compat.c: Likewise.
1798         * math/w_hypot_compat.c: Likewise.
1799         * math/w_hypotf_compat.c: Likewise.
1800         * math/w_hypotl_compat.c: Likewise.
1801         * math/w_j0_compat.c: Likewise.
1802         * math/w_j0f_compat.c: Likewise.
1803         * math/w_j0l_compat.c: Likewise.
1804         * math/w_j1_compat.c: Likewise.
1805         * math/w_j1f_compat.c: Likewise.
1806         * math/w_j1l_compat.c: Likewise.
1807         * math/w_jn_compat.c: Likewise.
1808         * math/w_jnf_compat.c: Likewise.
1809         * math/w_jnl_compat.c: Likewise.
1810         * math/w_lgamma_main.c: Likewise.
1811         * math/w_lgamma_r_compat.c: Likewise.
1812         * math/w_lgammaf_main.c: Likewise.
1813         * math/w_lgammaf_r_compat.c: Likewise.
1814         * math/w_lgammal_main.c: Likewise.
1815         * math/w_lgammal_r_compat.c: Likewise.
1816         * math/w_log10_compat.c: Likewise.
1817         * math/w_log10f_compat.c: Likewise.
1818         * math/w_log10l_compat.c: Likewise.
1819         * math/w_log2_compat.c: Likewise.
1820         * math/w_log2f_compat.c: Likewise.
1821         * math/w_log2l_compat.c: Likewise.
1822         * math/w_log_compat.c: Likewise.
1823         * math/w_logf_compat.c: Likewise.
1824         * math/w_logl_compat.c: Likewise.
1825         * math/w_pow_compat.c: Likewise.
1826         * math/w_powf_compat.c: Likewise.
1827         * math/w_powl_compat.c: Likewise.
1828         * math/w_remainder_compat.c: Likewise.
1829         * math/w_remainderf_compat.c: Likewise.
1830         * math/w_remainderl_compat.c: Likewise.
1831         * math/w_scalb_compat.c: Likewise.
1832         * math/w_scalbf_compat.c: Likewise.
1833         * math/w_scalbl_compat.c: Likewise.
1834         * math/w_sinh_compat.c: Likewise.
1835         * math/w_sinhf_compat.c: Likewise.
1836         * math/w_sinhl_compat.c: Likewise.
1837         * math/w_sqrt_compat.c: Likewise.
1838         * math/w_sqrtf_compat.c: Likewise.
1839         * math/w_sqrtl_compat.c: Likewise.
1840         * math/w_tgamma_compat.c: Likewise.
1841         * math/w_tgammaf_compat.c: Likewise.
1842         * math/w_tgammal_compat.c: Likewise.
1843         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
1844         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
1845         * sysdeps/ieee754/k_standard.c: Likewise.
1846         * sysdeps/ieee754/k_standardf.c: Likewise.
1847         * sysdeps/ieee754/k_standardl.c: Likewise.
1848         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
1849         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
1850         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
1851         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
1852         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
1853         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
1854         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
1855         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
1856         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
1857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
1858         Likewise.
1859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
1860         Likewise.
1861         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
1862         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
1863         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
1864         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
1866 2017-08-21  Florian Weimer  <fweimer@redhat.com>
1868         [BZ #21864]
1869         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
1870         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
1871         Move before inclusion of ../Rules.
1873 2017-08-21  Florian Weimer  <fweimer@redhat.com>
1875         [BZ #21972]
1876         * assert/assert.h (assert): Use static_cast (bool) for C++.
1877         Use the ternary operator in the warning branch for GNU C.
1878         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
1879         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
1880         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
1881         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
1882         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
1884 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1886         [BZ #18822]
1887         * sysdeps/unix/sysv/linux/x86_64/init-first.c
1888         (__syscall_clock_gettime): Add attribute_hidden.
1889         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
1890         (__start_context): Likewise.
1892 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1894         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
1895         building libc.a.
1896         (hidden_proto): Likewise.
1897         (hidden_tls_proto): Likewise.
1898         (__hidden_proto): Likewise.
1900 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1902         * include/libc-symbols.h (attribute_hidden): Enable hidden
1903         visibility in libc.a compiled with PIE.
1905 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1907         [BZ #18822]
1908         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
1909         Add attribute_hidden.
1911 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1913         [BZ #21864]
1914         * Makerules (all-nonlib): Add $(others-extras).
1915         * catgets/Makefile (others-extras): New.
1916         * elf/Makefile (others-extras): Likewise.
1917         * nss/Makefile (others-extras): Likewise.
1919 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1921         [BZ #18822]
1922         * csu/libc-start.c (__libc_multiple_libcs): Removed.
1923         * elf/dl-open.c: Include <libc-internal.h>.
1924         (__libc_multiple_libcs): Removed.
1925         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
1926         <hp-timing.h>.
1927         * include/libc-internal.h (__libc_multiple_libcs): New.
1928         * misc/sbrk.c: Include <libc-internal.h>.
1929         (__libc_multiple_libcs): Removed.
1931 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
1933         [BZ #18822]
1934         * grp/initgroups.c (__nss_group_database): Removed.
1935         (__nss_initgroups_database): Likewise.
1936         * nscd/gai.c (__nss_hosts_database): Likewise.
1937         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
1938         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
1939         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
1940         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
1941         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
1942         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
1943         attribute_hidden.
1944         * nss/nsswitch.c (__nss_database_custom): Define only if
1945         USE_NSCD is defined.
1946         (__nss_configure_lookup): Use __nss_database_custom only if
1947         USE_NSCD is defined.
1948         * nss/nsswitch.h (__nss_database_custom): Declare only if
1949         USE_NSCD is defined.  Add attribute_hidden.
1950         (__nss_setent): Add attribute_hidden.
1951         (__nss_endent): Likewise.
1952         (__nss_getent_r): Likewise.
1953         (__nss_getent): Likewise.
1954         (DEFINE_DATABASE): Declare __nss_##arg##_database.
1956 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1958         [BZ #18822]
1959         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
1960         libc_hidden_proto and libc_hidden_def.
1962 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1964         [BZ #18822]
1965         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
1966         Add libc_hidden_proto.
1967         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
1968         Add libc_hidden_def.
1970 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1972         [BZ #21974]
1973         * gmon/Makefile (routines): Remove bb_init_func and
1974         bb_exit_func.
1975         (elide-routines.os): Removed.
1976         * gmon/bb_exit_func.c: Likewise.
1977         * gmon/bb_init_func.c: Likewise.
1978         * include/sys/gmon.h (__bb): Likewise.
1979         (__bb_init_func): Likewise.
1980         (__bb_exit_func): Likewise.
1981         * sysdeps/alpha/bb_init_func.S: Likewise.
1983 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1985         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
1986         * include/setjmp.h (____longjmp_chk): Here.  Add
1987         attribute_hidden.
1989 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1991         [BZ #18822]
1992         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
1993         attribute_hidden.
1994         (__strspn_sse2): Likewise.
1996 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1998         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
1999         (close_not_cancel_no_status): Likewise.
2000         (__close_nocancel): New macro.
2001         (__close_nocancel_nostatus): Likewise.
2002         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
2003         macro.
2004         (close_not_cancel): Likewise.
2005         (close_not_cancel_no_status): Likewise.
2006         (__close_nocancel): New prototype.
2007         (__close_nocancel_nostatus): New function.
2008         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
2009         * catgets/open_catalog.c (__open_catalog): Replace
2010         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
2011         * gmon/gmon.c (write_gmon): Likewise.
2012         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2013         * intl/loadmsgcat.c (close): Likewise.
2014         * io/ftw.c (open_dir_stream): Likewise.
2015         (ftw_startup): Likewise.
2016         * libio/fileops.c (_IO_file_open): Likewise.
2017         (_IO_file_close_mmap): Likewise.
2018         (_IO_file_close): Likewise.
2019         * libio/iopopen.c (_IO_dup2): Likewise.
2020         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2021         * locale/loadlocale.c (_nl_load_locale): Likewise.
2022         * login/utmp_file.c (pututline_file): Likewise.
2023         (endutent_file): Likewise.
2024         * misc/daemon.c (daemon): Likewise.
2025         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2026         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2027         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2028         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2029         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2030         * nscd/nscd_helper.c (open_socket): Likewise.
2031         (__nscd_open_socket): Likewise.
2032         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2033         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
2034         (__nscd_innetgr): Likewise.
2035         * nss/nss_db/db-open.c (internal_setent): Likewise.
2036         * resolv/res-close.c (__res_iclose): Likewise.
2037         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
2038         * sysdeps/posix/closedir.c (__closedir): Likewise.
2039         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
2040         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2041         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
2042         (opendir_tail): Likewise.
2043         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2044         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
2045         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
2046         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
2047         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
2048         (gethostid): Likewise.
2049         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
2050         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2051         Likewise.
2052         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2053         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
2054         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
2055         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
2056         Likewise.
2057         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
2058         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
2059         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
2060         Likewise.
2061         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
2062         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
2063         Likewise.
2064         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
2065         Likewise.
2066         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
2067         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2068         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
2069         __close_nocancel.
2071         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
2072         (openat_not_cancel_3): Likewise.
2073         (openat64_not_cancel_3): Likewise).
2074         (openat_not_cancel_3): Likewise).
2075         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
2076         macro.
2077         (openat_not_cancel_3): Likewise.
2078         (openat64_not_cancel): Likewise.
2079         (openat64_not_cancel_3): Likewise.
2080         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
2081         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
2082         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
2083         __open{64}_nocancel.
2084         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
2085         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2086         * sysdeps/posix/opendir.c (__opendirat): Likewise.
2088 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2090         [BZ #18822]
2091         * include/argz.h (__argz_create_sep): New function prototype.
2092         (__argz_append): Likewise.
2093         (__argz_add): Likewise.
2094         (__argz_add_sep): Likewise.
2095         (__argz_delete): Likewise.
2096         (__argz_insert): Likewise.
2097         (__argz_replace): Likewise.
2098         * string/argz.h (__argz_create_sep): Removed.
2099         (__argz_append): Likewise.
2100         (__argz_add): Likewise.
2101         (__argz_add_sep): Likewise.
2102         (__argz_delete): Likewise.
2103         (__argz_insert): Likewise.
2104         (__argz_replace): Likewise.
2106 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2108         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
2109         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
2110         (GNU_PROPERTY_STACK_SIZE): Likewie.
2111         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
2112         (GNU_PROPERTY_LOPROC): Likewise.
2113         (GNU_PROPERTY_HIPROC): Likewise.
2114         (GNU_PROPERTY_LOUSER): Likewise.
2115         (GNU_PROPERTY_HIUSER): Likewise.
2116         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
2117         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
2118         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
2119         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
2120         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
2121         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
2122         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
2123         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
2124         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
2125         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
2126         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
2127         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
2128         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
2129         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
2130         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
2131         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
2132         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
2133         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
2134         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
2135         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
2136         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
2137         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
2138         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
2140 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2142         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
2143         in C++ mode.
2145 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2147         [BZ #21930]
2148         * math/math.h (isinf): Check if in C or C++ mode before using
2149         __builtin_types_compatible_p, since this is a C mode feature.
2151 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2153         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
2154         (__write_nocancel): New macro.
2155         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
2156         Rewrite as a function prototype.
2157         (write_not_cancel): Remove macro.
2158         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
2159         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
2160         (write_gmon): Likewise.
2161         * libio/fileops.c (_IO_new_file_write): Likewise.
2162         * login/utmp_file.c (pututline_file): Likewise.
2163         (updwtmp_file): Likewise.
2164         * stdio-common/psiginfo.c (psiginfo): Likewise.
2165         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2166         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
2167         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
2168         Likewise.
2169         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
2170         Likewise.
2172         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
2173         (__read_nocancel): New macro.
2174         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
2175         __read_nocancel.
2176         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
2177         macro.
2178         (__read_nocancel): New prototype.
2179         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
2180         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
2181         with __read_nocancel.
2182         * intl/loadmsgcat.c (read): Likewise.
2183         * libio/fileops.c (_IO_file_read): Likewise.
2184         * locale/loadlocale.c (_nl_load_locale): Likewise.
2185         * login/utmp_file.c (getutent_r_file): Likewise.
2186         (internal_getut_r): Likewise.
2187         (getutline_r_file): Likewise.
2188         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
2189         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2190         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
2191         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2192         Likewise.
2193         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
2194         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
2195         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
2196         Likewise.
2197         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
2198         Likewise.
2199         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
2200         Likewise.
2201         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
2202         Likewise.
2203         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2205 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2207         [BZ #21966]
2208         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
2209         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
2210         usable.
2212 2017-08-17  DJ Delorie  <dj@redhat.com>
2214         * bug17079.c: Update to new test harness.
2215         * test-digits-dots.c: Likewise.
2216         * test-netdb.c: Likewise.
2217         * tst-field.c: Likewise.
2218         * tst-nss-getpwent.c: Likewise.
2219         * tst-nss-static.c: Likewise.
2220         * tst-nss-test1.c: Likewise.
2221         * tst-nss-test2.c: Likewise.
2222         * tst-nss-test3.c: Likewise.
2223         * tst-nss-test4.c: Likewise.
2224         * tst-nss-test5.c: Likewise.
2226 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2228         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
2229         (open_not_cancel_2): Likewise.
2230         (open_nocancel): New macro.
2231         (open64_nocancel): Likewise.
2232         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
2233         (open_not_cancel_2): Likewise.
2234         (__open_nocancel): New prototype.
2235         (__open64_nocancel): Likewise.
2236         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
2237         __open_nocancel.
2238         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
2239         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
2240         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
2241         with __open_nocancel.
2242         * csu/check_fds.c (check_one_fd): Likewise.
2243         * gmon/gmon.c (write_gmon): Likewise.
2244         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
2245         * intl/loadmsgcat.c (open): Likewise.
2246         * libio/fileops.c (_IO_file_open): Likewise.
2247         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
2248         * locale/loadlocale.c (_nl_load_locale): Likewise.
2249         * login/utmp_file.c (setutent_file): Likewise.
2250         * misc/daemon.c (daemon): Likewise.
2251         * nss/nss_db/db-open.c (internal_setent): Likewise.
2252         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
2253         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
2254         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
2255         (__opendir): Likewise.
2256         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2257         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
2258         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
2259         (gethostid): Likewise.
2260         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
2261         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2262         Likewise.
2263         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2264         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
2265         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
2266         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
2267         Likewise.
2268         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
2269         Likewise.
2270         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
2271         Likewise.
2272         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
2273         Likewise.
2274         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
2275         Likewise.
2276         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
2277         Likewise.
2278         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
2279         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2281 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
2283         * benchtests/bench-skeleton.c (main): Add support for
2284         latency benchmarking.
2285         * benchtests/scripts/bench.py: Add support for latency benchmarking.
2287 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2289         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
2290         the startup object.
2292 2017-08-17  Florian Weimer  <fweimer@redhat.com>
2294         * include/sys/socket.h (__opensock): Remove internal_function.
2295         * socket/opensock.c (__opensock): Likewise.
2296         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
2298 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
2300         [BZ #21944]
2301         * signal/bits/types/__sigval_t.h: New file.
2302         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
2303         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
2304         and define sigval_t using __sigval_t.
2305         * include/bits/types/__sigval_t.h: New file.
2306         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
2307         instead of <bits/types/__sigval_t.h>.
2308         (struct sigevent): Use __sigval_t instead of sigval_t.
2309         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
2310         instead of <bits/types/__sigval_t.h>.
2311         (siginfo_t): Use __sigval_t instead of sigval_t.
2312         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
2313         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
2314         (struct sigevent): Use __sigval_t instead of sigval_t.
2315         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
2316         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
2317         (siginfo_t): Use __sigval_t instead of sigval_t.
2318         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
2320 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
2322         * NEWS: Remove "[Add new features here]" for 2.27.
2324 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
2326         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
2327         libc.so.
2329 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
2331         * NEWS: Mention x86-64 FMA optimization.
2333 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
2335         [BZ #21912]
2336         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2337         Add e_expf-fma.
2338         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
2339         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
2340         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
2342 2017-08-16  Andreas Schwab  <schwab@suse.de>
2344         [BZ #16750]
2345         CVE-2009-5064
2346         * elf/ldd.bash.in: Never run file directly.
2348 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
2350         [BZ #21955]
2351         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
2352         (L(SP_INF_0)): Likewise.
2354 2017-08-15  Florian Weimer  <fweimer@redhat.com>
2356         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
2357         run-built-tests.
2359 2017-08-15  Florian Weimer  <fweimer@redhat.com>
2361         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
2362         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
2363         BROKEN_THREAD_SIGNALS code.
2364         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
2365         request_list): Remove caller_pid member used for
2366         BROKEN_THREAD_SIGNALS.
2367         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
2368         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
2369         Remove BROKEN_THREAD_SIGNALS support.
2370         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
2371         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
2373 2017-08-15  Florian Weimer  <fweimer@redhat.com>
2375         * gmon/Makefile (tests): Add tst-gmon.
2376         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
2377         Set.
2378         (tests-special): Add tst-gmon-prof.out.
2379         (tst-gmon.out): Depend on clean-tst-gmon-data.
2380         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
2381         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
2382         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
2383         startup object.
2384         * aclocal.m4 (GPROF): Set and substitute.
2385         * config.amke.in (GPROF): Set.
2386         * configure: Regenerate.
2388 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
2390         * elf/elf.h A (NT_PPC_TAR): New macro.
2391         (NT_PPC_PPR): Likewise.
2392         (NT_PPC_DSCR): Likewise.
2393         (NT_PPC_EBB): Likewise.
2394         (NT_PPC_PMU): Likewise.
2395         (NT_PPC_TM_CGPR): Likewise.
2396         (NT_PPC_TM_CFPR): Likewise.
2397         (NT_PPC_TM_CVMX): Likewise.
2398         (NT_PPC_TM_CVSX): Likewise.
2399         (NT_PPC_TM_SPR): Likewise.
2400         (NT_PPC_TM_CTAR): Likewise.
2401         (NT_PPC_TM_CPPR): Likewise.
2402         (NT_PPC_TM_CDSCR): Likewise.
2404 2017-08-15  Florian Weimer  <fweimer@redhat.com>
2406         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
2407         regparm (2) instead of internal_function.
2408         (_MCOUNT_DECL): Adjust.
2410 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
2412         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
2413         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
2415 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
2417         * conform/data/sys/wait.h-data (si_value): Do not expect for
2418         XPG42.
2420 2017-08-14  Florian Weimer  <fweimer@redhat.com>
2422         [BZ #21962]
2423         NSS: Create stubs for accidentally exported lookup functions.
2424         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
2425         Remove declaration.
2426         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2427         (ether_hostton): Call __nss_ethers_lookup2 instead.
2428         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
2429         (ether_ntohost): Call __nss_ethers_lookup2 instead.
2430         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
2431         (setup): Call __nss_netgroup_lookup2 instead.
2432         * nss/Makefile (routines): Add compat-lookup.
2433         * nss/Versions (GLIBC_2.27): Add symbol version.
2434         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
2435         (DB_COMPAT_FCT): Remove.
2436         * nss/compat-lookup.c: New file.
2437         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
2438         from databases.def.
2439         * nss/service-lookup.c (NO_COMPAT): Remove definition.
2440         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
2441         (netname2user): Call __nss_publickey_lookup2 instead.
2442         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
2443         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
2444         instead.
2446 2017-08-14 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2447             Sergei Trofimovich  <slyfox@inbox.ru>
2449         [BZ #21908]
2450         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
2451         Rename to MMAP2_PAGE_UNIT.
2452         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
2453         __OFF_T_MATCHES_OFF64_T is not defined.
2454         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
2455         uint64_t.
2456         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
2457         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
2459 2017-08-14  Florian Weimer  <fweimer@redhat.com>
2461         i386: Do not set internal_function.
2462         * config.h.in (USE_REGPARMS, internal_function): Remove.
2463         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
2464         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
2466 2017-08-14  Florian Weimer  <fweimer@redhat.com>
2468         * elf/dl-init.c (_dl_init): Remove internal_function.
2469         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
2470         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
2472 2017-08-14  Florian Weimer  <fweimer@redhat.com>
2474         * elf/rtld.c (_dl_start): Remove internal_function.
2475         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
2476         _dl_start.
2478 2017-08-14  Florian Weimer  <fweimer@redhat.com>
2480         * elf/dl-fini.c (_dl_fini): Remove internal_function
2481         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
2483 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
2485         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
2486         (bit_cpu_SHSTK): Likewise.
2487         (index_cpu_IBT): Likewise.
2488         (index_cpu_SHSTK): Likewise.
2489         (reg_IBT): Likewise.
2490         (reg_SHSTK): Likewise.
2491         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2492         Handle index_cpu_IBT and index_cpu_SHSTK.
2494 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
2496         [BZ #19982]
2497         * po/fr.po: Fix spelling mistake.
2499 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2501         * elf/dl-addr.c (_dl_addr): Remove internal_function.
2502         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
2503         (_dl_catch_error, _dl_receive_error): Likewise.
2504         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
2505         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
2506         (_dl_deallocate_tls): Likewise.
2507         * include/dlfcn.h (_dl_addr): Likewise.
2508         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
2509         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
2510         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
2511         Likewise.
2513 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2515         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
2516         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
2517         internal_function.
2518         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
2520 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2522         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
2523         internal_function.
2524         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
2525         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
2526         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
2527         internal_function from _dl_make_stack_executable_hook member.
2528         (_dl_make_stack_executable): Remove internal_function.
2529         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
2530         Likewise.
2531         * sysdeps/unix/sysv/linux/dl-execstack.c
2532         (_dl_make_stack_executable): Likewise.
2534 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2536         * sysdeps/unix/sysv/linux/netlinkaccess.h
2537         (__netlink_assert_response): Remove internal_function.
2538         * sysdeps/unix/sysv/linux/netlink_assert_response.c
2539         (__netlink_assert_response): Likewise.
2541 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2543         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
2544         internal_function.
2545         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
2547 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2549         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
2550         internal_function.
2551         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
2552         * inet/netgroup.h (__internal_setnetgrent)
2553         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
2554         * inet/getnetgrent_r.c (__internal_setnetgrent)
2555         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
2556         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
2557         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
2558         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
2559         * nss/nsswitch.h (db_lookup_function): Likewise.
2561 2017-08-13  Florian Weimer  <fweimer@redhat.com>
2563         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
2564         Remove internal_function.
2565         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
2566         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
2567         message argument on the stack.
2568         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
2569         Likeweise.
2571 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
2573         Adapt test case data to the changes in the thousands
2574         separators.
2576         [BZ #20756]
2577         * localedata/tst-langinfo.sh: Adapt test case data.
2578         * stdlib/tst-strfmon_l.c: Likewise.
2579         * stdlib/tst-strtod4.c: Likewise.
2580         * stdlib/tst-strtod5i.c: Likewise.
2582 2017-08-11  Florian Weimer  <fweimer@redhat.com>
2584         [BZ #21242]
2585         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
2586         Suppress pedantic warning resulting from statement expression.
2587         (__ASSERT_FUNCTION): Add missing __extension__.
2589 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2591         * benchtests/bench-memmove-large.c: Print output in JSON
2592         format.
2593         * benchtests/bench-memmove.c: Likewise.
2595         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
2596         * benchtests/bench-memchr.c (do_one_test): Likewise.
2597         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
2598         * benchtests/bench-memcpy.c (do_one_test): Likewise.
2599         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
2600         * benchtests/bench-memmove.c (do_one_test): Likewise.
2601         * benchtests/bench-memset-large.c (do_one_test): Likewise.
2602         * benchtests/bench-memset.c (do_one_test): Likewise.
2603         * benchtests/bench-string.h (test_init): Remove memsets.
2605 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
2607         * manual/lang.texi
2608         (Computing the Width of an Integer Data Type): Rename section to
2609         "Width of an Integer Type".  Remove inaccurate statement regarding
2610         lack of C language facilities for determining width of integer
2611         types, and reorder content to improve flow and context of
2612         discussion.
2614 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
2616         * lang.texi (va_copy): Change standard from ISO to C99.
2617         (__va_copy): Add standard and header annotation.
2618         Update description for clarity of origins and current use.
2620 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2622         [BZ #21941]
2623         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
2624         xssqrtqp requires operands to be in Vector Registers
2625         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
2626         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
2627         (__ieee754_sqrtf128): Likewise.
2629 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
2631         * sysdeps/aarch64/memcmp.S (memcmp):
2632         Rewrite of optimized memcmp.
2634 2017-08-10  Florian Weimer  <fweimer@redhat.com>
2636         Introduce ld.so exceptions.
2637         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
2638         (_dl_exception_create, _dl_exception_create_format)
2639         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
2640         (_dl_catch_exception): Declare.
2641         (_dl_catch_error): Update comment.
2642         * elf/dl-error-skeleton.c (struct catch): Replace objname,
2643         errstring, malloced members with exception member.
2644         (_dl_out_of_memory): Remove.
2645         (fatal_error): New function, extracted from _dl_signal_error.
2646         (_dl_signal_exception, _dl_signal_cexception): New functions.
2647         (_dl_signal_error): Call _dl_exception_create to allocate an
2648         exception object.
2649         (_dl_catch_exception): New function, based on _dl_catch_error.
2650         (_dl_catch_error): Implement using _dl_catch_exception.
2651         * elf/dl-exception.c: New file.
2652         * elf/Makefile (dl-routines): Add dl-exception.
2653         (elide-routines.os): Likewise.
2654         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
2655         _dl_exception_create_format, _dl_exception_free.
2656         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
2657         _dl_signal_exception.
2658         * elf/dl-lookup.c (make_string): Remove.
2659         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
2660         _dl_signal_cexception, _dl_exception_free.
2661         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
2662         _dl_signal_exception.
2663         * elf/dl-sym.c (do_sym): Likewise.
2664         * elf/dl-version.c (make_string): Remove.
2665         (match_symbol): Use _dl_exception_create_format,
2666         _dl_signal_cexception, _dl_exception_free.
2667         (_dl_check_map_versions): Likewise.
2668         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
2669         _dl_catch_exception.
2670         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
2671         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
2672         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
2673         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
2674         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
2675         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
2676         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
2677         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
2678         Likewise.
2679         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
2680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
2681         (ld.so): Likewise.
2682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
2683         (ld.so): Likewise.
2684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
2685         Likewise.
2686         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
2687         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
2688         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
2689         Likewise.
2690         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
2691         Likewise.
2692         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
2694 2017-08-10  Florian Weimer  <fweimer@redhat.com>
2696         * inet/net-internal.h (__inet6_scopeid_pton): Remove
2697         attribute_hidden, internal_function.
2698         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
2699         internal_function.
2701 2017-08-10  Florian Weimer  <fweimer@redhat.com>
2703         * malloc/malloc.c (get_max_fast): Reimplement as an inline
2704         function which calls __builtin_unreachable.
2706 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
2708         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
2709         Indian monetary formatting
2710         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
2711         test cases.
2713 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
2715         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
2716         Fix typo in comment.
2718         [BZ #21928]
2719         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
2720         PTRACE_SEIZE_DEVEL): Remove.
2721         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
2722         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2723         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2724         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2725         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2727 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
2729         * posix/bits/types.h (__qaddr_t): Remove.
2731         [BZ #21457]
2732         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
2733         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
2734         __glibc_reserved1.
2735         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
2736         (ucontext_t): Use __ctx with uc_flags.
2737         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
2738         (__ctxt): Likewise.
2739         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
2740         __glibc_reserved1.
2741         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
2742         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
2743         __glibc_reserved1.
2744         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
2745         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
2746         __glibc_reserved1.
2747         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
2748         macro.
2749         (ucontext_t): Use __ctx with uc_flags.
2750         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
2751         (ucontext_t): Use __ctx with uc_flags.
2752         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
2753         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
2754         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
2755         (ucontext_t): Use __ctx with uc_flags.
2756         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
2757         undefine further down.
2758         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
2759         __glibc_reserved1.
2760         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
2761         undefine further down.
2762         (ucontext_t): Use __ctx with uc_flags.
2763         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
2764         undefine further down.
2765         (ucontext_t): Use __ctx with uc_flags.
2766         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
2767         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
2768         Rename uc_pad to __glibc_reserved1.
2769         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
2770         undefine further down.
2771         (ucontext_t): Use __ctx with uc_flags.
2772         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
2773         further down.
2774         (ucontext_t): Use __ctx with uc_flags.
2775         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
2776         __ctx with uc_flags.
2777         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
2778         (ucontext_t): Use __ctx with uc_flags.
2779         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
2780         __ctx with uc_flags.
2782 2017-08-09  Florian Weimer  <fweimer@redhat.com>
2784         [BZ #21932]
2785         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
2786         before early return.
2788 2017-08-09  Andreas Schwab  <schwab@suse.de>
2790         [BZ #21041]
2791         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
2792         renamed alias.
2794         [BZ #21041]
2795         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
2796         tst-compat-forwarder.
2797         (modules-names): Add tst-compat-forwarder-mod.
2798         ($(objpfx)tst-compat-forwarder): Depend on
2799         $(objpfx)tst-compat-forwarder-mod.so.
2800         * nptl/tst-compat-forwarder.c: New file.
2801         * nptl/tst-compat-forwarder-mod.c: New file.
2803 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2805         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
2806         comments.
2808         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
2809         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2810         memcpy_falkor.
2811         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
2812         Bump.
2813         (__libc_ifunc_impl_list): Add __memcpy_falkor.
2814         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
2815         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
2816         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2817         Add falkor.
2818         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
2819         New macro.
2821 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2823         [BZ #759]
2824         * manual/setjmp.texi (getcontex): Document uc_stack value
2825         compatibility differences.
2827 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
2829         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
2830         (old_malloc_hook): Likewise.
2831         (old_memalign_hook): Likewise.
2832         (old_realloc_hook): Likewise.
2833         (struct hdr): Likewise.
2834         (flood): Likewise.
2835         (freehook): Likewise.
2836         (mallochook): Likewise.
2837         (memalignhook): Likewise.
2838         (reallochook): Likewise.
2839         (mprobe): Likewise.
2840         * malloc/mtrace.c (mallwatch): Likewise.
2841         (tr_old_free_hook): Likewise.
2842         (tr_old_malloc_hook): Likewise.
2843         (tr_old_realloc_hook): Likewise.
2844         (tr_old_memalign_hook): Likewise.
2845         (tr_where): Likewise.
2846         (lock_and_info): Likewise.
2847         (tr_freehook): Likewise.
2848         (tr_mallochook): Likewise.
2849         (tr_reallochook): Likewise.
2850         (tr_memalignhook): Likewise.
2851         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
2852         * misc/mmap.c (__mmap): Likewise.
2853         * misc/mmap64.c (__mmap64): Likewise.
2854         * misc/mprotect.c (__mprotect): Likewise.
2855         * misc/msync.c (msync): Likewise.
2856         * misc/munmap.c (__munmap): Likewise.
2857         * posix/posix_madvise.c (posix_madvise): Likewise.
2858         * socket/send.c (__send): Likewise.
2859         * socket/sendto.c (__sendto): Likewise.
2860         * socket/setsockopt.c (__setsockopt): Likewise.
2861         * string/memcmp.c (__ptr_t): Remove macro.
2862         (MEMCMP): Use void * instead of ptr_t.
2863         * string/memrchr.c (__ptr_t): Remove macro.
2864         (__memrchr): Use void * instead of ptr_t.
2865         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
2866         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2867         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
2868         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
2869         * sysdeps/mach/msync.c (msync): Likewise.
2870         * sysdeps/mach/munmap.c (__munmap): Likewise.
2871         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
2872         Likewise.
2873         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2874         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
2875         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
2876         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
2877         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
2878         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2879         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
2880         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
2881         Likewise.
2882         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2883         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
2884         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
2885         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
2886         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
2887         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
2888         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
2889         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
2890         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
2891         Likewise.
2892         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
2893         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
2894         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
2895         (MEMCMP): Use void * instead of ptr_t.
2896         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
2897         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
2899 2017-08-08  Florian Weimer  <fweimer@redhat.com>
2901         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
2902         return statement.
2904 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2906         [BZ #21913]
2907         * csu/libc-tls.c: Include <startup.h> first.
2908         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
2909         * elf/dl-tunables.c: Include <startup.h> first.
2910         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
2911         * sysdeps/generic/startup.h: New file.
2912         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
2913         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
2914         (I386_USE_SYSENTER): New.  Defined to 0.
2916 2017-08-08  Andreas Schwab  <schwab@suse.de>
2918         [BZ #21041]
2919         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
2920         * nptl/pt-system.c (system): Likewise.
2922 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2924         [BZ #21780]
2925         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
2926         EOPNOTSUPP.
2927         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2928         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2929         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
2930         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2931         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2932         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2933         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2935 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
2937         [BZ #21899]
2938         * bits/sigaction.h (struct sigaction): Define sa_handler and
2939         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
2940         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2941         [__USE_XOPEN_EXTENDED].
2942         (SA_RESTART): Likewise.
2943         (SA_NODEFER): Likewise.
2944         (SA_RESETHAND): Likewise.
2945         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
2946         (struct sigaction): Define sa_handler and sa_sigaction using union
2947         also for [__USE_XOPEN_EXTENDED].
2948         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2949         [__USE_XOPEN_EXTENDED].
2950         (SA_RESTART): Likewise.
2951         (SA_NODEFER): Likewise.
2952         (SA_RESETHAND): Likewise.
2953         * sysdeps/unix/sysv/linux/bits/sigaction.h
2954         (struct sigaction): Define sa_handler and sa_sigaction using union
2955         also for [__USE_XOPEN_EXTENDED].
2956         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2957         [__USE_XOPEN_EXTENDED].
2958         (SA_RESTART): Likewise.
2959         (SA_NODEFER): Likewise.
2960         (SA_RESETHAND): Likewise.
2961         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
2962         (struct sigaction): Define sa_handler and sa_sigaction using union
2963         also for [__USE_XOPEN_EXTENDED].
2964         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2965         [__USE_XOPEN_EXTENDED].
2966         (SA_RESTART): Likewise.
2967         (SA_NODEFER): Likewise.
2968         (SA_RESETHAND): Likewise.
2969         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
2970         (struct sigaction): Define sa_handler and sa_sigaction using union
2971         also for [__USE_XOPEN_EXTENDED].
2972         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2973         [__USE_XOPEN_EXTENDED].
2974         (SA_RESTART): Likewise.
2975         (SA_NODEFER): Likewise.
2976         (SA_RESETHAND): Likewise.
2977         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
2978         (struct sigaction): Define sa_handler and sa_sigaction using union
2979         also for [__USE_XOPEN_EXTENDED].
2980         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2981         [__USE_XOPEN_EXTENDED].
2982         (SA_RESTART): Likewise.
2983         (SA_NODEFER): Likewise.
2984         (SA_RESETHAND): Likewise.
2985         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
2986         (struct sigaction): Define sa_handler and sa_sigaction using union
2987         also for [__USE_XOPEN_EXTENDED].
2988         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2989         [__USE_XOPEN_EXTENDED].
2990         (SA_RESTART): Likewise.
2991         (SA_NODEFER): Likewise.
2992         (SA_RESETHAND): Likewise.
2993         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
2994         (struct sigaction): Define sa_handler and sa_sigaction using union
2995         also for [__USE_XOPEN_EXTENDED].
2996         (SA_ONSTACK): Change [__USE_UNIX98] condition to
2997         [__USE_XOPEN_EXTENDED].
2998         (SA_RESTART): Likewise.
2999         (SA_NODEFER): Likewise.  Define directly rather than as alias.
3000         (SA_RESETHAND): Likewise.
3001         (SA_INTERRUPT): Define only for [__USE_MISC].
3002         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
3003         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
3004         [__USE_MISC].
3005         (SA_STACK): Define only for [__USE_MISC].
3006         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
3007         (struct sigaction): Define sa_handler and sa_sigaction using union
3008         also for [__USE_XOPEN_EXTENDED].
3009         (SA_ONSTACK): Change [__USE_UNIX98] condition to
3010         [__USE_XOPEN_EXTENDED].
3011         (SA_RESTART): Likewise.
3012         (SA_NODEFER): Likewise.
3013         (SA_RESETHAND): Likewise.
3014         (SA_NOPTRACE): Define only for [__USE_MISC].
3016         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
3017         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
3018         (struct catalog_info): Likewise.
3019         * inet/htontest.c (lo): Likewise.
3020         (foo): Likewise.
3021         * inet/inet_lnaof.c (inet_lnaof): Likewise.
3022         * inet/inet_net.c (inet_network): Likewise.
3023         * inet/inet_netof.c (inet_netof): Likewise.
3024         * inet/rcmd.c (__ivaliduser): Likewise.
3025         (iruserok): Likewise.
3026         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
3027         * locale/programs/locale-spec.c (locale_special): Likewise.
3028         * nis/nis_findserv.c (struct findserv_req): Likewise.
3029         (__nis_findfastest_with_timeout): Likewise.
3030         * nss/test-netdb.c (test_network): Likewise.
3031         * resolv/inet_neta.c (inet_neta): Likewise.
3032         * resolv/ns_date.c (ns_datetosecs): Likewise.
3033         (SECS_PER_DAY): Likewise.
3034         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
3035         Likewise.
3036         * resolv/res_comp.c (__putlong): Likewise.
3037         (__putshort): Likewise.
3038         (_getlong): Likewise.
3039         (_getshort): Likewise.
3040         * resolv/res_debug.c (p_time): Likewise.
3041         (precsize_ntoa): Likewise.
3042         (precsize_aton): Likewise.
3043         (latlon2ul): Likewise.
3044         (loc_aton): Likewise.
3045         (loc_ntoa): Likewise.
3046         * resolv/res_hconf.c (struct netaddr): Likewise.
3047         (_res_hconf_reorder_addrs): Likewise.
3048         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
3049         (clnttcp_control): Likewise.
3050         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
3051         (clntudp_control): Likewise.
3052         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
3053         (clntunix_control): Likewise.
3054         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
3055         * sunrpc/rpc/auth.h (union des_block): Likewise.
3056         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
3057         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
3058         (xdrrec_create): Likewise.
3059         (xdrrec_endofrecord): Likewise.
3060         (flush_out): Likewise.
3061         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
3062         (xdrstdio_putlong): Likewise.
3063         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
3064         Likewise.
3066         * misc/sys/cdefs.h (__long_double_t): Remove.
3067         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
3068         instead of __long_double_t,
3069         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
3071 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3073         * benchtests/scripts/compare_strings.py: Avoid display error when
3074         running on a text terminal.
3076         * benchtests/scripts/compare_strings.py (main): Add an
3077         optional -base option.
3078         (process_results): New argument base_func.
3080         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
3081         hardcoding memcpy.
3082         * benchtests/bench-memcpy-large.c (test_name): Likewise.
3083         * benchtests/bench-memcpy-random.c (test_name): Likewise.
3085 2017-08-07  Andreas Schwab  <schwab@suse.de>
3087         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
3088         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
3089         * intl/Makefile ($(objpfx)tst-gettext.out)
3090         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
3091         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
3092         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
3093         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
3094         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
3095         * posix/Makefile ($(objpfx)globtest.out)
3096         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
3097         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
3098         ($(objpfx)tst-printf.out): Likewise.
3099         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
3100         ($(objpfx)tst-setcontext3.out): Likewise.
3102 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3104         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3105         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
3106         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
3107         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
3108         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
3109         and mptan-fma.
3110         (CFLAGS-doasin-fma.c): New.
3111         (CFLAGS-dosincos-fma.c): Likewise.
3112         (CFLAGS-e_asin-fma.c): Likewise.
3113         (CFLAGS-e_atan2-fma.c): Likewise.
3114         (CFLAGS-e_exp-fma.c): Likewise.
3115         (CFLAGS-e_log-fma.c): Likewise.
3116         (CFLAGS-e_pow-fma.c): Likewise.
3117         (CFLAGS-halfulp-fma.c): Likewise.
3118         (CFLAGS-mpa-fma.c): Likewise.
3119         (CFLAGS-mpatan-fma.c): Likewise.
3120         (CFLAGS-mpatan2-fma.c): Likewise.
3121         (CFLAGS-mpexp-fma.c): Likewise.
3122         (CFLAGS-mplog-fma.c): Likewise.
3123         (CFLAGS-mpsqrt-fma.c): Likewise.
3124         (CFLAGS-mptan-fma.c): Likewise.
3125         (CFLAGS-s_atan-fma.c): Likewise.
3126         (CFLAGS-sincos32-fma.c): Likewise.
3127         (CFLAGS-slowexp-fma.c): Likewise.
3128         (CFLAGS-slowpow-fma.c): Likewise.
3129         (CFLAGS-s_sin-fma.c): Likewise.
3130         (CFLAGS-s_tan-fma.c): Likewise.
3131         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
3132         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
3133         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
3134         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
3135         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
3136         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
3137         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
3138         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
3139         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
3140         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
3141         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
3142         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
3143         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
3144         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
3145         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
3146         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
3147         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
3148         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
3149         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
3150         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
3151         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
3152         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
3153         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
3154         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
3155         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
3156         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
3157         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
3158         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
3159         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
3160         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
3161         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
3163 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
3165         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
3166         (min_of_type_f): New macro.
3167         (min_of_type_): Likewise.
3168         (min_of_type_l): Likewise.
3169         (min_of_type_f128): Likewise.
3170         (min_of_type): Define using __MATH_TG and taking an expression
3171         argument.
3172         (math_check_force_underflow): Pass expression instead of type to
3173         min_of_type.
3174         (math_check_force_underflow_nonneg): Likewise.
3176 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3178         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
3179         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
3180         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
3182 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3184         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3185         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
3186         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
3187         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
3188         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
3189         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
3190         memcpy_chk-nonshared, mempcpy_chk-nonshared,
3191         memmove_chk-nonshared and memset_chk-nonshared
3192         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
3193         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
3194         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
3195         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
3196         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
3197         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
3198         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
3199         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
3200         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
3201         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
3202         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
3203         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
3204         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
3205         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
3206         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
3207         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
3208         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
3209         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
3210         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
3211         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
3212         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
3213         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
3214         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
3215         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
3216         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
3217         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
3218         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
3219         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
3220         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
3221         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
3222         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
3223         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
3224         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
3225         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
3226         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
3227         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
3228         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
3229         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
3230         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
3231         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
3232         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
3233         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
3234         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
3235         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
3236         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
3237         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
3238         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
3239         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
3240         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
3241         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
3242         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
3243         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
3244         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
3245         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
3246         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
3247         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
3248         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
3249         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
3250         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
3251         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
3252         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
3253         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
3254         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
3255         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
3256         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
3257         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
3258         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
3259         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
3260         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
3261         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3262         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
3263         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3264         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3265         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3266         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3267         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3268         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3269         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3270         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3271         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3272         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3273         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3274         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3275         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3276         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
3277         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
3278         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3279         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
3280         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3281         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3282         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3283         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3284         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3285         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3286         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
3287         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
3288         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
3289         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
3290         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3291         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
3292         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3293         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3294         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3295         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3296         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3297         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3298         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3299         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3301 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3303         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
3304         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
3305         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
3306         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
3307         svml_d_log2_core-sse2, svml_d_log4_core-sse,
3308         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
3309         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
3310         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
3311         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
3312         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
3313         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
3314         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
3315         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
3316         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
3317         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
3318         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
3319         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
3320         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
3321         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
3322         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
3323         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
3324         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
3325         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
3326         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
3327         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
3328         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
3329         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
3330         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
3331         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
3332         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
3333         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
3334         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
3335         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
3336         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
3337         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
3338         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
3339         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
3340         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
3341         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
3342         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
3343         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
3344         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
3345         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
3346         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
3347         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
3348         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
3349         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
3350         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
3351         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
3352         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
3353         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
3354         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
3355         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
3356         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
3357         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
3358         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
3359         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
3360         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
3361         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
3362         ...
3363         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
3364         Don't include <sysdep.h> nor <init-arch.h>.
3365         (_ZGVbN2v_cos): Removed.
3366         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
3367         ...
3368         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
3369         Don't include <sysdep.h> nor <init-arch.h>.
3370         (_ZGVdN4v_cos): Removed.
3371         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
3372         ...
3373         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
3374         Don't include <sysdep.h> nor <init-arch.h>.
3375         (_ZGVeN8v_cos): Removed.
3376         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
3377         ...
3378         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
3379         Don't include <sysdep.h> nor <init-arch.h>.
3380         (_ZGVbN2v_exp): Removed.
3381         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
3382         ...
3383         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
3384         Don't include <sysdep.h> nor <init-arch.h>.
3385         (_ZGVdN4v_exp): Removed.
3386         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
3387         ...
3388         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
3389         Don't include <sysdep.h> nor <init-arch.h>.
3390         (_ZGVeN8v_exp): Removed.
3391         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
3392         ...
3393         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
3394         Don't include <sysdep.h> nor <init-arch.h>.
3395         (_ZGVbN2v_log): Removed.
3396         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
3397         ...
3398         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
3399         Don't include <sysdep.h> nor <init-arch.h>.
3400         (_ZGVdN4v_log): Removed.
3401         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
3402         ...
3403         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
3404         Don't include <sysdep.h> nor <init-arch.h>.
3405         (_ZGVeN8v_log): Removed.
3406         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
3407         ...
3408         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
3409         Don't include <sysdep.h> nor <init-arch.h>.
3410         (_ZGVbN2vv_pow): Removed.
3411         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
3412         ...
3413         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
3414         Don't include <sysdep.h> nor <init-arch.h>.
3415         (_ZGVdN4vv_pow): Removed.
3416         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
3417         ...
3418         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
3419         Don't include <sysdep.h> nor <init-arch.h>.
3420         (_ZGVeN8vv_pow): Removed.
3421         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
3422         ...
3423         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
3424         Don't include <sysdep.h> nor <init-arch.h>.
3425         (_ZGVbN2v_sin): Removed.
3426         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
3427         ...
3428         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
3429         Don't include <sysdep.h> nor <init-arch.h>.
3430         (_ZGVbN4v_sin): Removed.
3431         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
3432         ...
3433         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
3434         Don't include <sysdep.h> nor <init-arch.h>.
3435         (_ZGVbN8v_sin): Removed.
3436         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
3437         ...
3438         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
3439         Don't include <sysdep.h> nor <init-arch.h>.
3440         (_ZGVbN2vvv_sincos): Removed.
3441         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
3442         ...
3443         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
3444         Don't include <sysdep.h> nor <init-arch.h>.
3445         (_ZGVdN4vvv_sincos): Removed.
3446         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
3447         ...
3448         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
3449         Don't include <sysdep.h> nor <init-arch.h>.
3450         (_ZGVeN8vvv_sincos): Removed.
3451         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
3452         ...
3453         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
3454         Don't include <sysdep.h> nor <init-arch.h>.
3455         (_ZGVeN16v_cosf): Removed.
3456         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
3457         ...
3458         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
3459         Don't include <sysdep.h> nor <init-arch.h>.
3460         (_ZGVbN4v_cosf): Removed.
3461         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
3462         ...
3463         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
3464         Don't include <sysdep.h> nor <init-arch.h>.
3465         (_ZGVdN8v_cosf): Removed.
3466         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
3467         ...
3468         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
3469         Don't include <sysdep.h> nor <init-arch.h>.
3470         (_ZGVeN16v_expf): Removed.
3471         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
3472         ...
3473         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
3474         Don't include <sysdep.h> nor <init-arch.h>.
3475         (_ZGVbN4v_expf): Removed.
3476         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
3477         ...
3478         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
3479         Don't include <sysdep.h> nor <init-arch.h>.
3480         (_ZGVdN8v_expf): Removed.
3481         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
3482         ...
3483         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
3484         Don't include <sysdep.h> nor <init-arch.h>.
3485         (_ZGVeN16v_logf): Removed.
3486         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
3487         ...
3488         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
3489         Don't include <sysdep.h> nor <init-arch.h>.
3490         (_ZGVbN4v_logf): Removed.
3491         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
3492         ...
3493         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
3494         Don't include <sysdep.h> nor <init-arch.h>.
3495         (_ZGVdN8v_logf): Removed.
3496         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
3497         ...
3498         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
3499         Don't include <sysdep.h> nor <init-arch.h>.
3500         (_ZGVeN16vv_powf): Removed.
3501         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
3502         ...
3503         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
3504         Don't include <sysdep.h> nor <init-arch.h>.
3505         (_ZGVbN4vv_powf): Removed.
3506         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
3507         ...
3508         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
3509         Don't include <sysdep.h> nor <init-arch.h>.
3510         (_ZGVdN8vv_powf): Removed.
3511         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
3512         ...
3513         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
3514         Don't include <sysdep.h> nor <init-arch.h>.
3515         (_ZGVeN16vvv_sincosf): Removed.
3516         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
3517         ...
3518         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
3519         Don't include <sysdep.h> nor <init-arch.h>.
3520         (_ZGVbN4vvv_sincosf): Removed.
3521         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
3522         ...
3523         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
3524         Don't include <sysdep.h> nor <init-arch.h>.
3525         (_ZGVdN8vvv_sincosf): Removed.
3526         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
3527         ...
3528         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
3529         Don't include <sysdep.h> nor <init-arch.h>.
3530         (_ZGVeN16v_sinf): Removed.
3531         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
3532         ...
3533         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
3534         Don't include <sysdep.h> nor <init-arch.h>.
3535         (_ZGVbN4v_sinf): Removed.
3536         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
3537         ...
3538         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
3539         Don't include <sysdep.h> nor <init-arch.h>.
3540         (_ZGVdN8v_sinf): Removed.
3542 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3544         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3545         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
3546         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
3547         s_rint-sse4_1 and s_rintf-sse4_1.
3548         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
3549         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
3550         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
3551         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
3552         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
3553         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
3554         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
3555         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
3556         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
3557         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
3558         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
3559         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3560         (__ceil): Removed.
3561         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
3562         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
3563         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3564         (__ceilf): Removed.
3565         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
3566         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
3567         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3568         (__floor): Removed.
3569         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
3570         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
3571         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3572         (__floorf): Removed.
3573         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
3574         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
3575         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3576         (__nearbyint): Removed.
3577         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
3578         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
3579         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3580         (__nearbyintf): Removed.
3581         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
3582         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
3583         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3584         (__rint): Removed.
3585         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
3586         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
3587         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
3588         (__rintf): Removed.
3590 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3592         * sysdeps/i386/start.S (_start): Check Check PIC instead of
3593         SHARED.  Avoid dynamic relocation against main in static PIE.
3595 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3597         [BZ #21815]
3598         * elf/Makefile (CFLAGS-tst-prelink.c): New.
3599         (LDFLAGS-tst-prelink): Likewise.
3601 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3603         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
3604         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
3605         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
3606         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
3607         (INTERNAL_SYSCALL_NCS): Likewise.
3608         (LOADARGS_1): Likewise.
3609         (LOADARGS_5): Likewise.
3610         (RESTOREARGS_1): Likewise.
3611         (RESTOREARGS_5): Likewise.
3613 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3615         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
3616         (MEMPCPY_SYMBOL): Likewise.
3617         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3618         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
3619         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
3620         in libc.a.
3621         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3622         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3623         Likewise.
3624         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
3625         (__hidden_ver1): Don't use in libc.a.
3626         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3627         (__mempcpy): Don't create a weak alias in libc.a.
3628         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
3629         libc.a.
3630         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
3631         (__hidden_ver1): Don't use in libc.a.
3633 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3635         * config.make.in (have-insert): New.
3636         * configure.ac (libc_cv_insert): New.  Set to yes if linker
3637         supports INSERT in linker script.
3638         (AC_SUBST(libc_cv_insert): New.
3639         * configure: Regenerated.
3640         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
3641         if $(have-insert) == yes.
3643 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3645         * elf/Makefile (tests): Add vismain only if
3646         $(have-protected-data) == yes.
3647         (tests-pie): Likewise.
3649 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3651         [BZ #21871]
3652         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3653         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
3655 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
3657         [BZ #21790]
3658         * sysdeps/i386/i586/memset.S
3659         (__memset_zero_constant_len_parameter): Removed.
3660         * sysdeps/i386/i686/memset.S
3661         (__memset_zero_constant_len_parameter): Likewise.
3662         * sysdeps/i386/i686/multiarch/memset_chk.S
3663         (__memset_zero_constant_len_parameter): Likewise.
3664         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
3665         Likewise.
3667 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
3669         * stdlib/getentropy.c (getentropy): Change return type to int.
3671 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
3673         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
3675 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
3677         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
3678         u_intN_t.
3679         * math/s_nexttowardf.c (__nexttowardf): Likewise.
3680         * sysdeps/generic/math_private.h (ieee_double_shape_type):
3681         Likewise.
3682         (ieee_float_shape_type): Likewise.
3683         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
3684         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
3685         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
3686         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
3687         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
3688         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
3689         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
3690         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
3691         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3692         Likewise.
3693         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
3694         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
3695         (__ieee754_yn): Likewise.
3696         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3697         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3698         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
3699         Likewise.
3700         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
3701         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
3702         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
3703         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
3704         (__erfc): Likewise.
3705         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
3706         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
3707         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
3708         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
3709         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
3710         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
3711         Likewise.
3712         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
3713         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
3714         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
3715         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
3716         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
3717         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
3718         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
3719         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
3720         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
3721         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
3722         (__issignaling): Likewise.
3723         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
3724         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
3725         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3726         Likewise.
3727         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3728         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3729         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
3730         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
3731         Likewise.
3732         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
3733         Likewise.
3734         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
3735         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
3736         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
3737         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
3738         (__erfcf): Likewise.
3739         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
3740         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
3741         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
3742         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
3743         Likewise.
3744         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
3745         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
3746         Likewise.
3747         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
3748         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
3749         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
3750         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
3751         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
3752         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
3753         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
3754         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
3755         Likewise.
3756         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
3757         Likewise.
3758         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
3759         Likewise.
3760         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
3761         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3762         Likewise.
3763         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
3764         Likewise.
3765         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3766         (__ieee754_ynl): Likewise.
3767         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3768         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
3769         Likewise.
3770         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
3771         Likewise.
3772         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
3773         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
3774         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
3775         Likewise.
3776         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
3777         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
3778         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
3779         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
3780         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
3781         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
3782         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
3783         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
3784         Likewise.
3785         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
3786         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
3787         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
3788         Likewise.
3789         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3790         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
3791         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3792         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
3793         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
3794         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3795         Likewise.
3796         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
3797         Likewise.
3798         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
3799         Likewise.
3800         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
3801         Likewise.
3802         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
3803         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
3804         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3805         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
3806         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
3807         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
3808         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
3809         Likewise.
3810         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3811         Likewise.
3812         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3813         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3814         Likewise.
3815         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
3816         (__ieee754_remainderl): Likewise.
3817         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
3818         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
3819         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
3820         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
3821         Likewise.
3822         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
3823         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3824         Likewise.
3825         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
3826         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
3827         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
3828         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
3829         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
3830         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3831         Likewise.
3832         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
3833         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
3834         (__ieee754_y0l): Likewise.
3835         (pzero): Likewise.
3836         (qzero): Likewise.
3837         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
3838         (__ieee754_y1l): Likewise.
3839         (pone): Likewise.
3840         (qone): Likewise.
3841         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3842         (__ieee754_ynl): Likewise.
3843         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3844         (__ieee754_lgammal_r): Likewise.
3845         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
3846         Likewise.
3847         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
3848         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
3849         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
3850         (__erfcl): Likewise.
3851         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
3852         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
3853         Likewise.
3854         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3855         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
3856         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3857         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
3858         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
3859         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3860         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
3861         Likewise.
3862         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
3863         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
3864         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
3865         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
3866         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
3867         Likewise.
3868         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
3869         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
3870         Likewise.
3871         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
3872         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
3873         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
3874         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
3875         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
3877 2017-08-03  Florian Weimer  <fweimer@redhat.com>
3879         [BZ #21885]
3880         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
3881         on memory allocation failure.
3883 2017-08-03  Alan Modra  <amodra@gmail.com>
3885         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
3886         tst-tlsopt-powerpc.c with function name change and no test harness.
3887         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
3888         Call tls_get_addr_opt_test.
3889         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
3890         (modules-names): Add mod-tlsopt-powerpc.
3891         (mod-tlsopt-powerpc.so-no-z-defs): Define.
3892         (tst-tlsopt-powerpc): Depend on .so.
3893         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
3894         define.  Expand use in TLS_GD and TLS_LD.
3896 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3898         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
3899         function.
3900         * sysdeps/posix/shm_open.c: Include <pthread.h>.
3902 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
3904         [BZ #21686]
3905         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
3906         comparing size with that of double.
3907         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3908         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3909         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3910         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3911         (__TGMATH_BINARY_REAL_IMAG): Likewise.
3912         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
3913         unsigned __int128 types.
3915 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
3917         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
3918         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
3919         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
3920         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
3921         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
3923 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3925         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
3927 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3929         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
3930         of SHARED.
3931         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
3932         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3933         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3934         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3935         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3936         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3937         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3939 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
3941         [BZ #21685]
3942         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
3943         bit-field expressions passed to sizeof or typeof.
3944         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3945         (__TGMATH_F128): Likewise.
3946         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3947         (__TGMATH_CF128): Likewise.
3948         (__TGMATH_UNARY_REAL_ONLY): Likewise.
3949         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
3950         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
3951         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
3952         (__TGMATH_BINARY_REAL_ONLY): Likewise.
3953         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3954         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3955         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
3956         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3957         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
3958         (__TGMATH_UNARY_REAL_IMAG): Likewise.
3959         (__TGMATH_UNARY_IMAG): Likewise.
3960         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3961         (__TGMATH_BINARY_REAL_IMAG): Likewise.
3962         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
3963         type.
3964         (define_vars_for_type): Handle bit_field type specially.
3965         (Tests.__init__): Declare structure with bit-field element.
3967 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3969         [BZ #21791]
3970         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
3971         (MEMCPY_CHK): Define only if SHARED is defined.
3972         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
3973         Likewise.
3974         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
3975         Likewise.
3977 See ChangeLog.18 for earlier changes.