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