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