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