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