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