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