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