Update kernel version in syscall-names.list to 4.14.
[glibc.git] / ChangeLog
blobb0d0e70291b80ee4236e3005ba16858f386e59b7
1 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
3         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4         version to 4.14.
6 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8         * INSTALL: Fix botched up regeneration.
10         * NEWS: Update sourceare link to https.
11         * configure.ac: Likewise.
12         * crypt/md5test-giant.c: Likewise.
13         * dlfcn/bug-atexit1.c: Likewise.
14         * dlfcn/bug-atexit2.c: Likewise.
15         * localedata/README: Likewise.
16         * malloc/tst-mallocfork.c: Likewise.
17         * manual/install.texi: Likewise.
18         * nptl/tst-pthread-getattr.c: Likewise.
19         * stdio-common/tst-fgets.c: Likewise.
20         * stdio-common/tst-fwrite.c: Likewise.
21         * sunrpc/Makefile: Likewise.
22         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
23         * wcsmbs/tst-mbrtowc2.c: Likewise.
24         * configure: Regenerate.
25         * INSTALL: Regenerate.
27 2017-11-15  Martin Sebor  <msebor@redhat.com>
29         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
30         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
31         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
33 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
35         [BZ #22145]
36         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
37         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
39         [BZ #22145]
40         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
41         Defer is_pty check until end of the function.
42         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44         [BZ #22145]
45         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
46         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
47         (ttyname): Likewise.
48         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
49         (__ttyname_r): Likewise.
51         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
52         int to bool.
54         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
56         * manual/terminal.texi (Is It a Terminal):
57         Mention ENODEV for ttyname and ttyname_r.
59 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
61         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
62         constant and macro.
64         * sysdeps/unix/sysv/linux/bits/mman-linux.h
65         [__USE_MISC] (MADV_WIPEONFORK): New macro.
66         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
67         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
68         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
69         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
71 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
73         * signal/sigrelse.c (sigrelse): Optimize implementation.
75         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
76         (__sigpause): Rely on __sigsuspend to implement single thread
77         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
79 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
81         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
82         kernel version to 4.14.
84 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
86         [BZ #22442]
87         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
88         Check if ifname is too long.
90 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
92         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
94 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
96         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
97         was accidentally lost.
99 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
101         * localedata/locales/az_IR: Add standard copyright header.
103 2017-11-15  Florian Weimer  <fweimer@redhat.com>
105         [BZ #22439]
106         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
107         not just the top one.  Output a new "subheaps" statistic.
109 2017-11-15  Florian Weimer  <fweimer@redhat.com>
111         [BZ #22408]
112         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
113         under the per-arena lock.
114         * malloc/Makefile (tests): Add tst-malloc_info.
115         (tst-malloc_info): Link with libpthread.
116         * malloc/tst-malloc_info.c: New file.
118 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
120         [BZ #21660]
121         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
122         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
123         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
124         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
125         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
126         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
127         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
128         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
129         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
130         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
131         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
132         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
133         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
134         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
135         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
136         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
137         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
138         (__floating_type): Likewise.
139         (__real_integer_type): Likewise.
140         (__complex_integer_type): Likewise.
141         (__expr_is_real): Likewise.
142         (__tgmath_real_type_sub): Likewise.
143         (__tgmath_real_type): Likewise.
144         (__tgmath_complex_type_sub): Likewise.
145         (__tgmath_complex_type): Likewise.
146         (__TGMATH_F128): Likewise.
147         (__TGMATH_CF128): Likewise.
148         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
149         new macros.
150         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
151         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
152         Likewise.
153         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
154         Likewise.
155         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
156         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
157         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
158         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
159         Likewise.
160         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
161         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
162         Likewise.
163         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
164         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
165         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
166         Likewise.
167         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
168         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
169         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
170         (cimag): Likewise.
171         (creal): Likewise.
173 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
175         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
176         for stpncpy calls for GCC 8.
177         (test_strncat): Disable -Wstringop-truncation warning for strncat
178         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
179         strncat call for GCC 7.
180         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
181         calls for GCC 8.
182         (test_memcmp): Use memcpy instead of strncpy for calls not copying
183         trailing NUL.
185         * string/bug-strncat1.c: Include <libc-diag.h>.
186         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
188 2017-11-13  Claude Paroz <claude@2xlibre.net>
190         [BZ #22387]
191         * localedata/locales/aa_DJ: Improved readibility by replacing
192         <Uxxxx> sequences in the ASCII printable range by their ASCII
193         character equivalents.
194         * localedata/locales/aa_ER: Likewise.
195         * localedata/locales/aa_ER@saaho: Likewise.
196         * localedata/locales/aa_ET: Likewise.
197         * localedata/locales/af_ZA: Likewise.
198         * localedata/locales/agr_PE: Likewise.
199         * localedata/locales/ak_GH: Likewise.
200         * localedata/locales/am_ET: Likewise.
201         * localedata/locales/anp_IN: Likewise.
202         * localedata/locales/ar_AE: Likewise.
203         * localedata/locales/ar_BH: Likewise.
204         * localedata/locales/ar_DZ: Likewise.
205         * localedata/locales/ar_EG: Likewise.
206         * localedata/locales/ar_IN: Likewise.
207         * localedata/locales/ar_IQ: Likewise.
208         * localedata/locales/ar_JO: Likewise.
209         * localedata/locales/ar_KW: Likewise.
210         * localedata/locales/ar_LB: Likewise.
211         * localedata/locales/ar_LY: Likewise.
212         * localedata/locales/ar_MA: Likewise.
213         * localedata/locales/ar_OM: Likewise.
214         * localedata/locales/ar_QA: Likewise.
215         * localedata/locales/ar_SA: Likewise.
216         * localedata/locales/ar_SD: Likewise.
217         * localedata/locales/ar_SS: Likewise.
218         * localedata/locales/ar_SY: Likewise.
219         * localedata/locales/ar_TN: Likewise.
220         * localedata/locales/ar_YE: Likewise.
221         * localedata/locales/as_IN: Likewise.
222         * localedata/locales/ast_ES: Likewise.
223         * localedata/locales/ayc_PE: Likewise.
224         * localedata/locales/az_AZ: Likewise.
225         * localedata/locales/az_IR: Likewise.
226         * localedata/locales/be_BY: Likewise.
227         * localedata/locales/be_BY@latin: Likewise.
228         * localedata/locales/bem_ZM: Likewise.
229         * localedata/locales/ber_DZ: Likewise.
230         * localedata/locales/ber_MA: Likewise.
231         * localedata/locales/bg_BG: Likewise.
232         * localedata/locales/bhb_IN: Likewise.
233         * localedata/locales/bho_IN: Likewise.
234         * localedata/locales/bi_VU: Likewise.
235         * localedata/locales/bn_BD: Likewise.
236         * localedata/locales/bn_IN: Likewise.
237         * localedata/locales/bo_CN: Likewise.
238         * localedata/locales/bo_IN: Likewise.
239         * localedata/locales/br_FR: Likewise.
240         * localedata/locales/brx_IN: Likewise.
241         * localedata/locales/bs_BA: Likewise.
242         * localedata/locales/byn_ER: Likewise.
243         * localedata/locales/ca_AD: Likewise.
244         * localedata/locales/ca_ES: Likewise.
245         * localedata/locales/ca_FR: Likewise.
246         * localedata/locales/ca_IT: Likewise.
247         * localedata/locales/ce_RU: Likewise.
248         * localedata/locales/chr_US: Likewise.
249         * localedata/locales/cmn_TW: Likewise.
250         * localedata/locales/crh_UA: Likewise.
251         * localedata/locales/cs_CZ: Likewise.
252         * localedata/locales/csb_PL: Likewise.
253         * localedata/locales/cv_RU: Likewise.
254         * localedata/locales/cy_GB: Likewise.
255         * localedata/locales/da_DK: Likewise.
256         * localedata/locales/de_AT: Likewise.
257         * localedata/locales/de_BE: Likewise.
258         * localedata/locales/de_CH: Likewise.
259         * localedata/locales/de_DE: Likewise.
260         * localedata/locales/de_IT: Likewise.
261         * localedata/locales/de_LI: Likewise.
262         * localedata/locales/de_LU: Likewise.
263         * localedata/locales/doi_IN: Likewise.
264         * localedata/locales/dv_MV: Likewise.
265         * localedata/locales/dz_BT: Likewise.
266         * localedata/locales/el_CY: Likewise.
267         * localedata/locales/el_GR: Likewise.
268         * localedata/locales/en_AG: Likewise.
269         * localedata/locales/en_AU: Likewise.
270         * localedata/locales/en_BW: Likewise.
271         * localedata/locales/en_CA: Likewise.
272         * localedata/locales/en_DK: Likewise.
273         * localedata/locales/en_GB: Likewise.
274         * localedata/locales/en_HK: Likewise.
275         * localedata/locales/en_IE: Likewise.
276         * localedata/locales/en_IL: Likewise.
277         * localedata/locales/en_IN: Likewise.
278         * localedata/locales/en_NG: Likewise.
279         * localedata/locales/en_NZ: Likewise.
280         * localedata/locales/en_PH: Likewise.
281         * localedata/locales/en_SG: Likewise.
282         * localedata/locales/en_US: Likewise.
283         * localedata/locales/en_ZA: Likewise.
284         * localedata/locales/en_ZM: Likewise.
285         * localedata/locales/en_ZW: Likewise.
286         * localedata/locales/eo: Likewise.
287         * localedata/locales/es_AR: Likewise.
288         * localedata/locales/es_BO: Likewise.
289         * localedata/locales/es_CL: Likewise.
290         * localedata/locales/es_CO: Likewise.
291         * localedata/locales/es_CR: Likewise.
292         * localedata/locales/es_CU: Likewise.
293         * localedata/locales/es_DO: Likewise.
294         * localedata/locales/es_EC: Likewise.
295         * localedata/locales/es_ES: Likewise.
296         * localedata/locales/es_GT: Likewise.
297         * localedata/locales/es_HN: Likewise.
298         * localedata/locales/es_MX: Likewise.
299         * localedata/locales/es_NI: Likewise.
300         * localedata/locales/es_PA: Likewise.
301         * localedata/locales/es_PE: Likewise.
302         * localedata/locales/es_PR: Likewise.
303         * localedata/locales/es_PY: Likewise.
304         * localedata/locales/es_SV: Likewise.
305         * localedata/locales/es_US: Likewise.
306         * localedata/locales/es_UY: Likewise.
307         * localedata/locales/es_VE: Likewise.
308         * localedata/locales/et_EE: Likewise.
309         * localedata/locales/eu_ES: Likewise.
310         * localedata/locales/eu_ES@euro: Likewise.
311         * localedata/locales/fa_IR: Likewise.
312         * localedata/locales/ff_SN: Likewise.
313         * localedata/locales/fi_FI: Likewise.
314         * localedata/locales/fil_PH: Likewise.
315         * localedata/locales/fo_FO: Likewise.
316         * localedata/locales/fr_BE: Likewise.
317         * localedata/locales/fr_CA: Likewise.
318         * localedata/locales/fr_CH: Likewise.
319         * localedata/locales/fr_FR: Likewise.
320         * localedata/locales/fr_LU: Likewise.
321         * localedata/locales/fur_IT: Likewise.
322         * localedata/locales/fy_DE: Likewise.
323         * localedata/locales/fy_NL: Likewise.
324         * localedata/locales/ga_IE: Likewise.
325         * localedata/locales/gd_GB: Likewise.
326         * localedata/locales/gez_ER: Likewise.
327         * localedata/locales/gez_ET: Likewise.
328         * localedata/locales/gl_ES: Likewise.
329         * localedata/locales/gu_IN: Likewise.
330         * localedata/locales/gv_GB: Likewise.
331         * localedata/locales/ha_NG: Likewise.
332         * localedata/locales/hak_TW: Likewise.
333         * localedata/locales/he_IL: Likewise.
334         * localedata/locales/hi_IN: Likewise.
335         * localedata/locales/hif_FJ: Likewise.
336         * localedata/locales/hne_IN: Likewise.
337         * localedata/locales/hr_HR: Likewise.
338         * localedata/locales/hsb_DE: Likewise.
339         * localedata/locales/ht_HT: Likewise.
340         * localedata/locales/hu_HU: Likewise.
341         * localedata/locales/hy_AM: Likewise.
342         * localedata/locales/i18n: Likewise.
343         * localedata/locales/ia_FR: Likewise.
344         * localedata/locales/id_ID: Likewise.
345         * localedata/locales/ig_NG: Likewise.
346         * localedata/locales/ik_CA: Likewise.
347         * localedata/locales/is_IS: Likewise.
348         * localedata/locales/it_CH: Likewise.
349         * localedata/locales/it_IT: Likewise.
350         * localedata/locales/iu_CA: Likewise.
351         * localedata/locales/ja_JP: Likewise.
352         * localedata/locales/ka_GE: Likewise.
353         * localedata/locales/kk_KZ: Likewise.
354         * localedata/locales/kl_GL: Likewise.
355         * localedata/locales/kn_IN: Likewise.
356         * localedata/locales/ko_KR: Likewise.
357         * localedata/locales/kok_IN: Likewise.
358         * localedata/locales/ks_IN: Likewise.
359         * localedata/locales/ks_IN@devanagari: Likewise.
360         * localedata/locales/ku_TR: Likewise.
361         * localedata/locales/kw_GB: Likewise.
362         * localedata/locales/ky_KG: Likewise.
363         * localedata/locales/lb_LU: Likewise.
364         * localedata/locales/lg_UG: Likewise.
365         * localedata/locales/li_BE: Likewise.
366         * localedata/locales/li_NL: Likewise.
367         * localedata/locales/lij_IT: Likewise.
368         * localedata/locales/ln_CD: Likewise.
369         * localedata/locales/lo_LA: Likewise.
370         * localedata/locales/lt_LT: Likewise.
371         * localedata/locales/lv_LV: Likewise.
372         * localedata/locales/lzh_TW: Likewise.
373         * localedata/locales/mag_IN: Likewise.
374         * localedata/locales/mai_IN: Likewise.
375         * localedata/locales/mg_MG: Likewise.
376         * localedata/locales/mhr_RU: Likewise.
377         * localedata/locales/mi_NZ: Likewise.
378         * localedata/locales/mk_MK: Likewise.
379         * localedata/locales/ml_IN: Likewise.
380         * localedata/locales/mn_MN: Likewise.
381         * localedata/locales/mni_IN: Likewise.
382         * localedata/locales/mr_IN: Likewise.
383         * localedata/locales/ms_MY: Likewise.
384         * localedata/locales/mt_MT: Likewise.
385         * localedata/locales/my_MM: Likewise.
386         * localedata/locales/nan_TW: Likewise.
387         * localedata/locales/nan_TW@latin: Likewise.
388         * localedata/locales/nb_NO: Likewise.
389         * localedata/locales/nds_DE: Likewise.
390         * localedata/locales/nds_NL: Likewise.
391         * localedata/locales/ne_NP: Likewise.
392         * localedata/locales/nhn_MX: Likewise.
393         * localedata/locales/niu_NU: Likewise.
394         * localedata/locales/niu_NZ: Likewise.
395         * localedata/locales/nl_AW: Likewise.
396         * localedata/locales/nl_BE: Likewise.
397         * localedata/locales/nl_NL: Likewise.
398         * localedata/locales/nn_NO: Likewise.
399         * localedata/locales/nr_ZA: Likewise.
400         * localedata/locales/nso_ZA: Likewise.
401         * localedata/locales/oc_FR: Likewise.
402         * localedata/locales/om_ET: Likewise.
403         * localedata/locales/om_KE: Likewise.
404         * localedata/locales/or_IN: Likewise.
405         * localedata/locales/os_RU: Likewise.
406         * localedata/locales/pa_IN: Likewise.
407         * localedata/locales/pa_PK: Likewise.
408         * localedata/locales/pap_AW: Likewise.
409         * localedata/locales/pap_CW: Likewise.
410         * localedata/locales/pl_PL: Likewise.
411         * localedata/locales/ps_AF: Likewise.
412         * localedata/locales/pt_BR: Likewise.
413         * localedata/locales/pt_PT: Likewise.
414         * localedata/locales/quz_PE: Likewise.
415         * localedata/locales/raj_IN: Likewise.
416         * localedata/locales/ro_RO: Likewise.
417         * localedata/locales/ru_RU: Likewise.
418         * localedata/locales/ru_UA: Likewise.
419         * localedata/locales/rw_RW: Likewise.
420         * localedata/locales/sa_IN: Likewise.
421         * localedata/locales/sat_IN: Likewise.
422         * localedata/locales/sc_IT: Likewise.
423         * localedata/locales/sd_IN: Likewise.
424         * localedata/locales/sd_IN@devanagari: Likewise.
425         * localedata/locales/se_NO: Likewise.
426         * localedata/locales/sgs_LT: Likewise.
427         * localedata/locales/shs_CA: Likewise.
428         * localedata/locales/si_LK: Likewise.
429         * localedata/locales/sid_ET: Likewise.
430         * localedata/locales/sk_SK: Likewise.
431         * localedata/locales/sl_SI: Likewise.
432         * localedata/locales/sm_WS: Likewise.
433         * localedata/locales/so_DJ: Likewise.
434         * localedata/locales/so_ET: Likewise.
435         * localedata/locales/so_KE: Likewise.
436         * localedata/locales/so_SO: Likewise.
437         * localedata/locales/sq_AL: Likewise.
438         * localedata/locales/sq_MK: Likewise.
439         * localedata/locales/sr_ME: Likewise.
440         * localedata/locales/sr_RS: Likewise.
441         * localedata/locales/sr_RS@latin: Likewise.
442         * localedata/locales/ss_ZA: Likewise.
443         * localedata/locales/st_ZA: Likewise.
444         * localedata/locales/sv_FI: Likewise.
445         * localedata/locales/sv_SE: Likewise.
446         * localedata/locales/sw_KE: Likewise.
447         * localedata/locales/sw_TZ: Likewise.
448         * localedata/locales/szl_PL: Likewise.
449         * localedata/locales/ta_IN: Likewise.
450         * localedata/locales/ta_LK: Likewise.
451         * localedata/locales/tcy_IN: Likewise.
452         * localedata/locales/te_IN: Likewise.
453         * localedata/locales/tg_TJ: Likewise.
454         * localedata/locales/th_TH: Likewise.
455         * localedata/locales/the_NP: Likewise.
456         * localedata/locales/ti_ER: Likewise.
457         * localedata/locales/ti_ET: Likewise.
458         * localedata/locales/tig_ER: Likewise.
459         * localedata/locales/tk_TM: Likewise.
460         * localedata/locales/tl_PH: Likewise.
461         * localedata/locales/tn_ZA: Likewise.
462         * localedata/locales/to_TO: Likewise.
463         * localedata/locales/tpi_PG: Likewise.
464         * localedata/locales/tr_CY: Likewise.
465         * localedata/locales/tr_TR: Likewise.
466         * localedata/locales/ts_ZA: Likewise.
467         * localedata/locales/tt_RU: Likewise.
468         * localedata/locales/tt_RU@iqtelif: Likewise.
469         * localedata/locales/ug_CN: Likewise.
470         * localedata/locales/uk_UA: Likewise.
471         * localedata/locales/unm_US: Likewise.
472         * localedata/locales/ur_IN: Likewise.
473         * localedata/locales/ur_PK: Likewise.
474         * localedata/locales/uz_UZ: Likewise.
475         * localedata/locales/uz_UZ@cyrillic: Likewise.
476         * localedata/locales/ve_ZA: Likewise.
477         * localedata/locales/vi_VN: Likewise.
478         * localedata/locales/wa_BE: Likewise.
479         * localedata/locales/wae_CH: Likewise.
480         * localedata/locales/wal_ET: Likewise.
481         * localedata/locales/wo_SN: Likewise.
482         * localedata/locales/xh_ZA: Likewise.
483         * localedata/locales/yi_US: Likewise.
484         * localedata/locales/yo_NG: Likewise.
485         * localedata/locales/yue_HK: Likewise.
486         * localedata/locales/yuw_PG: Likewise.
487         * localedata/locales/zh_CN: Likewise.
488         * localedata/locales/zh_HK: Likewise.
489         * localedata/locales/zh_SG: Likewise.
490         * localedata/locales/zh_TW: Likewise.
491         * localedata/locales/zu_ZA: Likewise.
493 2017-11-13  Florian Weimer  <fweimer@redhat.com>
495         * support/next_to_fault.h, support/next_to_fault.c: New files.
496         * support/Makefile (libsupport-routines): Add next_to_fault.
497         * resolv/tst-inet_pton.c (struct next_to_fault)
498         (next_to_fault_allocate, next_to_fault_free): Remove.
499         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
501 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
503         * elf/dl-support.c: Include <dl-procruntime.c>.
504         * include/link.h: Include <link_map.h>.
505         * sysdeps/generic/dl-procruntime.c: New file.
506         * sysdeps/generic/link_map.h: Likewise.
507         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
508         the writable ld.so namespace.
510 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
512         timezone: pacify GCC -Wstringop-truncation
513         Problem reported by Martin Sebor in:
514         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
515         * timezone/zic.c (writezone): Use memcpy, not strncpy.
517 2017-11-12  Florian Weimer  <fweimer@redhat.com>
519         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
520         tst-xreadlink.
521         (tests): Add tst-xreadlink.
522         * support/support.h (xstrndup): Declare.
523         * support/xunistd.h (xunlink, xreadlink): Declare.
524         * support/temp_file.h (support_create_temp_directory): Declare.
525         * support/temp_file.c (support_create_temp_directory): New function.
526         * support/support_chroot.c (support_chroot_create): Use it.
527         * support/xreadlink.c: New file.
528         * support/xstrndup.c: Likewise.
529         * support/xunlink.c: Likewise.
530         * support/tst-xreadlink.c: Likewise.
532 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
534         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
536 2017-11-11  Florian Weimer  <fweimer@redhat.com>
538         [BZ #22409]
539         [BZ #22412]
540         * resolv/res_comp.c (printable_string, binary_hnok)
541         (binary_leading_dash): New functions.
542         (res_hnok): Reimplement using these functions and ns_name_pton.
543         (res_ownok): Likewise.
544         (res_mailok): Reimplement using printable_string, ns_name_pton and
545         binary_hnok.
546         (res_dnok): Reimplement using printable_string and ns_name_pton.
547         * resolv/tst-res_hnok.c (tests): Add additional tests.
548         (LETTERDIGITS, PRINTABLE): Define.
549         (do_test): Adjust one_char results.
551 2017-11-11  Florian Weimer  <fweimer@redhat.com>
553         [BZ #22413]
554         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
555         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
557 2017-11-11  Florian Weimer  <fweimer@redhat.com>
559         * resolv/tst-ns_name_pton.c: New file.
560         * resolv/Makefile (tests): Add tst-ns_name_pton.
561         (tst-ns_name_pton): Link against libresolv.
563 2017-11-11  Florian Weimer  <fweimer@redhat.com>
565         * resolv/tst-res_hnok.c: New file.
566         * resolv/Makefile (tests): Add tst-res_hnok.
567         (tst-res_hnok): Link against libresolv.
569 2017-11-11  Florian Weimer  <fweimer@redhat.com>
571         * resolv/tst-resolv-network.c: Use test framework instead explicit
572         main function.
574 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
576         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
577         <jmp_buf-macros.h>.
578         [!_ISOMAC] (STR_HELPER): New.
579         [!_ISOMAC] (STR): Likewise.
580         [!_ISOMAC] (TEST_SIZE): Likewise.
581         [!_ISOMAC] (TEST_ALIGN): Likewise.
582         [!_ISOMAC] (TEST_OFFSET): Likewise.
583         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
584         field offsets of jmp_buf as well as sigjmp_buf.
585         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
586         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
587         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
588         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
589         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
590         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
591         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
592         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
593         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
594         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
595         Likewise.
596         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
597         Likewise.
598         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
600         Likewise.
601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
602         Likewise.
603         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
604         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
605         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
606         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
607         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
608         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
609         Likewise.
610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
611         Likewise.
612         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
613         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
614         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
616 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
618         * include/float.h
619         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
620         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
621         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
622         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
623         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
624         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
625         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
626         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
627         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
628         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
629         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
630         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
631         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
632         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
633         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
634         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
635         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
636         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
637         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
638         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
639         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
640         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
641         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
642         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
643         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
644         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
645         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
646         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
647         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
648         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
649         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
650         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
651         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
652         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
653         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
654         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
655         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
656         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
657         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
658         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
659         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
660         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
661         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
662         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
663         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
664         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
665         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
666         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
667         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
668         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
669         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
670         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
671         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
672         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
673         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
674         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
675         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
676         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
677         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
678         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
679         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
680         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
681         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
682         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
683         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
684         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
685         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
686         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
687         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
688         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
689         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
690         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
691         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
692         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
693         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
694         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
695         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
696         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
697         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
698         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
699         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
700         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
701         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
702         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
703         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
704         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
705         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
706         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
708         * stdlib/tst-strtod.h (F16): New macro.
709         (F32): Likewise.
710         (F64): Likewise.
711         (F32X): Likewise.
712         (F64X): Likewise.
713         (F128X): Likewise.
714         (IF_FLOAT16): Likewise.
715         (IF_FLOAT32): Likewise.
716         (IF_FLOAT64): Likewise.
717         (IF_FLOAT32X): Likewise.
718         (IF_FLOAT64X): Likewise.
719         (IF_FLOAT128X): Likewise.
720         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
721         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
722         (STRTOD_TEST_FOREACH): Likewise.
723         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
724         (CHOOSE_f64): Likewise.
725         (CHOOSE_f32x): Likewise.
726         (CHOOSE_f64x): Likewise.
728 2017-11-07  Andreas Schwab  <schwab@suse.de>
730         * nptl/Makefile (tests-internal): Remove tst-typesizes.
732 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
734         [BZ #22403]
735         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
736         to be escaped.
737         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
738         to be escaped.
740 2017-11-07  Claude Paroz <claude@2xlibre.net>
742         [BZ #22403]
743         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
744         to be escaped.
745         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
746         to be escaped.
747         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
748         to be escaped.
750 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
752         [BZ #22298]
753         * nptl/allocatestack.c (allocate_stack): Check if
754         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
755         __PTHREAD_MUTEX_HAVE_PREV is defined.
756         * nptl/descr.h (pthread): Likewise.
757         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
758         Likewise.
759         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
760         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
761         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
762         * sysdeps/nptl/bits/thread-shared-types.h
763         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
764         defines.
765         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
766         of __WORDSIZE for internal layout.
767         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
768         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
769         instead of __WORDSIZE whether to use an union for __spins and __list
770         fields.
771         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
772         case.
773         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
774         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
775         defines.
776         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
777         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
778         Likewise.
779         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
780         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
781         Likewise.
782         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
783         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
784         Likewise.
785         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
786         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
787         Likewise.
788         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
789         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
790         Likewise.
791         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
792         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
793         Likewise.
794         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
795         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
796         Likewise.
797         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
798         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
799         Likewise.
800         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
801         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
802         Likewise.
803         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
804         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
805         Likewise.
806         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
807         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
808         Likewise.
809         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
810         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
811         Likewise.
812         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
813         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
814         Likewise.
815         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
816         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
817         Likewise.
819         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
820         New macros.
821         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
822         checks for expected input type size.
823         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
824         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
825         Likewise.
826         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
827         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
828         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
829         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
830         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
831         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
832         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
833         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
834         superflous runtime assert check.
835         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
836         Likewise.
837         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
838         Likewise.
839         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
840         Likewise.
841         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
842         Likewise.
843         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
844         Likewise.
845         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
846         Likewise.
847         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
848         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
849         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
850         Likewise.
851         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
852         Likewise.
853         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
854         Likewise.
855         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
856         Likewise.
857         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
858         Likewise.
859         * nptl/pthread_attr_setinheritsched.c
860         (__pthread_attr_setinheritsched): Likewise.
861         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
862         Likewise.
863         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
864         Likewise.
865         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
866         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
867         __old_pthread_attr_setstack): Likewise.
868         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
869         Likewise.
870         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
871         Likewise.
872         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
873         Likewise.
874         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
875         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
876         Likewise.
877         * nptl/tst-typesizes.c: Remove file.
879         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
880         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
881         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
882         checks for internal pthread_mutex_t offsets.
883         * sysdeps/aarch64/nptl/pthread-offsets.h
884         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
885         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
886         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
887         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
888         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
889         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
890         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
891         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
892         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
893         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
894         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
895         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
896         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
897         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
898         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
899         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
900         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
901         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
903 2017-11-07  Florian Weimer  <fweimer@redhat.com>
905         * bits/mman-linux.h: Move ...
906         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
907         comment.
908         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
909         outdated comment.
911 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
913         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
914         Redefine STRNLEN as __strnlen_power8.
916 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
918         * signal/sighold.c (sighold): Optimize implementation.
920         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
921         __NR_rt_sigqueueinfo.
923         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
924         __sigtimedwait.
925         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
926         assume __NR_rt_sigtimedwait.
927         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
928         and add LIBC_CANCEL_HANDLED for cancellation marking.
929         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
931         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
932         (sysdeps_routines): Add memchr_noneon.
933         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
934         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
935         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
936         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
937         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
938         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
939         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
941         * sysdeps/arm/arm-ifunc.h: New file.
942         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
943         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
944         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
945         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
946         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
947         (__memcpy_neon): Avoid create hidden alias.
948         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
949         (__memcpy_vfp): Likewise.
950         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
951         (sysdep_routines): Add memcpy_arm.
952         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
954 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
956         [BZ #22362]
957         * Makerules (make-link-multidir): New.
958         * config.make.in (multidir): New.
959         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
960         * configure: Regenerated.
961         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
962         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
963         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
964         New target.
966 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
968         [BZ #22402]
969         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
970         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
972 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
974         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
975         to be escaped.
977 2017-11-04  Florian Weimer  <fweimer@redhat.com>
979         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
981 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
983         * math/math.h [__HAVE_DISTINCT_FLOAT16
984         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
985         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
986         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
987         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
988         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
989         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
990         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
991         (__MATH_TG_F32): New macro.
992         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
993         (__MATH_TG_F64X): Likewise.
994         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
995         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
997 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
999         * po/de.po: Update translations.
1000         * po/ru.po: Likewise.
1002 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1004         * manual/filesys.texi (Hard Links): Document linkat.
1006 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1008         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1009         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1010         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1011         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1012         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1013         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1014         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1015         the same as _Float128.
1016         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1017         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1018         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1020         * stdlib/stdlib.h
1021         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1022         Declare.
1023         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1024         Likewise.
1025         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1026         Likewise.
1027         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1028         (strtof32x): Likewise.
1029         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1030         (strtof64x): Likewise.
1031         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1032         (strtof128x): Likewise.
1033         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1034         (strfromf16): Likewise.
1035         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1036         (strfromf32): Likewise.
1037         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1038         (strfromf64): Likewise.
1039         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1040         (strfromf32x): Likewise.
1041         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1042         (strfromf64x): Likewise.
1043         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1044         (strfromf128x): Likewise.
1045         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1046         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1047         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1048         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1049         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1050         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1052 2017-11-03  Richard Henderson  <rth@twiddle.net>
1054         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1056 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1058         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1060 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1062         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1063         DT_TLSDESC_GOT initialization.
1064         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1065         (_dl_tlsdesc_resolve_hold): Likewise.
1066         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1067         (_dl_tlsdesc_resolve_hold): Likewise.
1068         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1069         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1071 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1073         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1075 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1077         [BZ #18572]
1078         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1079         non-lazily for R_ARM_TLS_DESC.
1081 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1083         [BZ #17078]
1084         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1085         R_ARM_TLS_DESC case.
1086         (elf_machine_lazy_rel): Remove the prelink check.
1088 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1090         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1091         DT_TLSDESC_GOT initialization.
1092         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1093         (_dl_tlsdesc_resolve_rela): Likewise.
1094         (_dl_tlsdesc_resolve_hold): Likewise.
1095         (_dl_tlsdesc_undefweak): Remove ldar.
1096         (_dl_tlsdesc_dynamic): Likewise.
1097         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1098         (_dl_tlsdesc_resolve_rela): Likewise.
1099         (_dl_tlsdesc_resolve_hold): Likewise.
1100         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1101         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1102         (_dl_tlsdesc_resolve_rela): Likewise.
1103         (_dl_tlsdesc_resolve_hold): Likewise.
1105 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1107         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1108         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1110 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1112         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1113         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1115 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1117         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1118         Declare.
1119         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1120         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1121         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1122         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1123         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1124         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1125         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1126         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1127         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1128         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1129         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1131 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1133         [BZ #22382]
1134         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1135         * localedata/locales/tpi_PG: Add standard header.
1137 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1139         test-errno-linux: quotactl can fail with EPERM in containers.
1140         * sysdeps/unix/sysv/linux/test-errno-linux.c
1141         (LIST, LIST_FORWARD): New macros.
1142         (check_error_in_list): New function.
1143         (test_wrp_rv): Accept list of permitted error codes.
1144         (test_wrp_rv2): Remove.
1145         (test_wrp): Call test_wrp_rv with list of error codes.
1146         (test_wrp2): Accept list of error codes.
1147         (do_test): Adjust.  Allow EPERM for quotactl.
1149 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1151         * stdio-common/bug16.c (do_test): Use array_length.
1152         * stdio-common/errlist.c (_sys_nerr): Likewise.
1153         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1154         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1155         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1156         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1157         (do_test): Use array_length.
1158         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1159         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1160         * stdio-common/tst-printf-round.c (do_test): Likewise.
1161         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1162         (CHECK): Use array_length.
1163         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1164         * stdio-common/tstscanf.c (main): Likewise.
1165         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1167 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1169         Add array_length and array_end macros.
1170         * include/array_length.h: New file.
1172 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1174         [BZ #22332]
1175         * posix/tst-glob-tilde.c (do_noescape): New variable.
1176         (one_test): Process it.
1177         (do_test): Set do_noescape.  Add unescaping test case.
1179 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1181         * math/complex.h
1182         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1183         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1184         with appropriate macros defined and undefined.
1185         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1186         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1187         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1188         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1189         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1190         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1191         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1192         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1193         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1194         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1196         * math/complex.h
1197         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1198         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1199         that for long double.  Do not condition define and undefine of
1200         _Mdouble_complex_ on [__CFLOAT128].
1202 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1204         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1205         of <sysdeps/generic/sysdep.h>.
1206         (ALIGNARG): Removed.
1207         (ASM_SIZE_DIRECTIVE): Likewise.
1208         (ENTRY): Likewise.
1209         (END): Likewise.
1210         (ENTRY_CHK): Likewise.
1211         (END_CHK): Likewise.
1212         (syscall_error): Likewise.
1213         (mcount): Likewise.
1214         (PSEUDO_END): Likewise.
1215         (L): Likewise.
1216         (atom_text_section): Likewise.
1217         * sysdeps/x86/sysdep.h: New file.
1218         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1219         of <sysdeps/generic/sysdep.h>.
1220         (ALIGNARG): Removed.
1221         (ASM_SIZE_DIRECTIVE): Likewise.
1222         (ENTRY): Likewise.
1223         (END): Likewise.
1224         (ENTRY_CHK): Likewise.
1225         (END_CHK): Likewise.
1226         (syscall_error): Likewise.
1227         (mcount): Likewise.
1228         (PSEUDO_END): Likewise.
1229         (L): Likewise.
1230         (atom_text_section): Likewise.
1232 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1234         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1235         category of LC_CTYPE set to "i18n:2012".
1236         * localedata/locales/i18n_ctype: Regenerate.
1238 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1240         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1241         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1242         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1243         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1245         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1246         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1247         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1248         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1250 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1252         * math/complex.h
1253         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1254         New macro.
1255         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1256         Likewise.
1257         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1258         Likewise.
1259         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1260         (CMPLXF32X): Likewise.
1261         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1262         (CMPLXF64X): Likewise.
1263         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1264         (CMPLXF128X): Likewise.
1266         * math/math.h
1267         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1268         (__MATH_EVAL_FMT2): Define to add 0.0f.
1270 2017-10-31  Alan Modra  <amodra@gmail.com>
1272         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1273         include sysdep.h.
1274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1287         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1288         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1289         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1290         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1291         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1292         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1293         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1294         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1295         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1296         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1297         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1298         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1299         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1300         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1301         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1302         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1303         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1304         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1305         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1306         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1307         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1308         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1309         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1310         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1311         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1312         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1313         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1314         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1315         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1316         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1317         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1318         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1319         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1320         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1321         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1322         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1323         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1324         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1325         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1326         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1327         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1328         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1329         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1330         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1331         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1332         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1333         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1334         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1335         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1336         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1337         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1338         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1339         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1340         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1341         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1342         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1345         include sysdep.h and math_ldbl_opt.h.
1347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1348         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1350         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1362         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1364         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1374 2017-10-31  Alan Modra  <amodra@gmail.com>
1376         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1377         string/strncase_l.c, not string/strncase.c.
1378         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1379         (libc_hidden_def): Redefine.
1381 2017-10-31  Alan Modra  <amodra@gmail.com>
1383         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1384         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1385         (__strcasecmp): Don't define.
1387 2017-10-31  Alan Modra  <amodra@gmail.com>
1389         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1390         IS_IN (libc).
1391         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1392         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1393         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1395 2017-10-31  Alan Modra  <amodra@gmail.com>
1397         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1398         USE_AS_STPNCPY.
1400 2017-10-31  Alan Modra  <amodra@gmail.com>
1402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1403         Redefine only when SHARED.
1405 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1407         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1408         Include <bits/math-finite.h> with appropriate macros defined and
1409         undefined.
1410         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1411         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1412         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1413         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1414         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1416         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1417         [!_Mlong_double_] (_Mlong_double_): Likewise.
1418         [!_Mfloat16_] (_Mfloat16_): Likewise.
1419         [!_Mfloat32_] (_Mfloat32_): Likewise.
1420         [!_Mfloat64_] (_Mfloat64_): Likewise.
1421         [!_Mfloat128_] (_Mfloat128_): Likewise.
1422         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1423         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1424         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1425         (_Mdouble_): Define without indirection through those macros.
1426         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1427         [!_Mfloat128_] (_Mfloat128_): Likewise.
1428         [_Mlong_double_] (_Mlong_double_): Likewise.
1429         (_Mdouble_): Define without indirection through those macros.
1430         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1431         not add -D_Mlong_double_=double.
1432         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1433         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1435 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1437         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1439 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1441         * sysdeps/x86/libc-start.c: Reformat.
1443 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1445         [BZ #22353]
1446         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1447         (1): Renamed to ...
1448         (L(Src0)): This.
1449         (L(Src1)): New.
1450         (L(Src2)): Likewise.
1451         (L(1)): Renamed to ...
1452         (L(Src3)): This.
1454 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1456         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1457         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1458         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1459         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1460         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1461         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1462         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1463         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1464         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1465         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1466         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1467         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1468         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1469         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1470         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1471         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1472         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1473         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1474         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1475         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1476         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1477         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1478         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1479         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1480         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1481         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1482         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1483         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1484         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1485         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1486         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1487         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1488         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1489         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1490         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1491         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1492         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1493         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1494         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1495         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1496         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1497         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1498         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1499         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1500         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1501         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1502         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1503         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1504         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1505         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1506         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1507         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1508         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1509         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1510         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1511         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1512         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1513         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1514         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1515         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1516         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1517         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1518         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1519         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1520         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1521         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1523 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1525         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1526         always defined.
1527         * io/tst-mkdirat.c (do_test): Likewise.
1528         * io/tst-mkfifoat.c (do_test): Likewise.
1529         * io/tst-mknodat.c (do_test): Likewise.
1530         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1531         * locale/programs/locale.c (select_dirs): Likewise.
1532         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1533         * posix/bug-glob2.c (my_readdir): Likewise.
1534         * posix/tst-dir.c (main): Likewise.
1535         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1536         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1538 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1540         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1541         just __USE_GNU.
1543 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1545         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1546         Convert to support/test-driver.c.
1547         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1548         New macro parameters.
1549         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1550         * posix/tst-gnuglob.c: New file.
1551         * posix/tst-gnuglob64.c: Likewise.
1552         * posix/Makefile (tests): Add tst-gnuglob64.
1554 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1556         [BZ #19485]
1557         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1558         and use a better translation for March in “mon”.
1559         * localedata/locales/csb_PL: Use more ASCII to improve the
1560         readability of the source.
1562 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1564         [BZ #13953]
1565         * localedata/locales/km_KH: Use ASCII as much
1566         as possible for better readability of the source and
1567         remove useless comments.
1568         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1569         was commented out and apparently wrong anyway because it was
1570         using Lao characters. If Buddhist era should be used
1571         for km_KH, a native speaker should write the correct formaat
1572         for Khmer.
1573         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1574         (According to CLDR, the first weekday for Cambodia is Sunday).
1575         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1576         (These were using Lao characters which must be wrong. If we get
1577         the correct data from a native speaker, we could add it back, until
1578         then it is better not to have name_mr and name_mrs at all than
1579         having it wrong).
1581 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1583         * locale/loadlocale.c: Correct size of
1584         _nl_value_type_LC_<category> arrays.
1586 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1588         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1589         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1590         with appropriate macros defined and undefined.
1591         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1592         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1593         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1594         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1595         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1597 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1599         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1600         "-O2 -march=i586".
1602 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1604         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1605         with lowercase letters to make it agree with CLDR.
1607 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1609         [BZ #15260]
1610         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1611         first letters of yesstr and nostr in yesexpr and noexpr,
1612         not for the full words.
1613         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1614         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1615         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1616         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1617         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1618         first letters of yesstr and nostr in yesexpr and noexpr,
1619         until now only English was matched in yesexpr and noexpr.
1620         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1621         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1622         fil but not for tl. As tl and fil are very similar, using fil
1623         is probably better than using English.
1625 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1627         [BZ #21706]
1628         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1629         in yesstr and nostr.
1631 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1633         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1634         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1635         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1636         Likewise.
1637         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1638         Likewise.
1639         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1640         Likewise.
1641         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1642         Likewise.
1643         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1644         (SNANF128X): Likewise.
1646         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1647         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1648         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1649         (HUGE_VAL_F32): Likewise.
1650         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1651         (HUGE_VAL_F64): Likewise.
1652         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1653         (HUGE_VAL_F32X): Likewise.
1654         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1655         (HUGE_VAL_F64X): Likewise.
1656         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1657         (HUGE_VAL_F128X): Likewise.
1659 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1661         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1662         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1663         for the br_FR locale.
1665 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1667         [BZ #21706]
1668         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1670 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1672         * locale/programs/record-status.h: Define globals, and function
1673         prototypes. Move function bodies...
1674         * locale/programs/record-status.c: ... to here. New file.
1675         * iconv/Makefile (iconv_prog-modules): Add record-status.
1676         * locale/Makefile (lib-modules): Likewise.
1677         * iconv/iconv_prog.c: Remove verbose.
1678         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1679         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1680         record a warning about ASCII compatibility.
1681         * locale/programs/ld-monetary.c (monetary_finish): If
1682         warn_int_curr_symbol is true then record a warning about the symbol
1683         not being in our ISO 4217 list.
1684         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1685         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1686         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1687         (OPT_NO_WARN): Define.
1688         (OPT_WARN): Define.
1689         (options): Add entry for --no-warnings, and --warnings.
1690         (set_warnings): New function to enable/disable warnings.
1691         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1692         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1693         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1694         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1695         Pass flags to generate_locale.
1696         (generate_locale): Accept new flag argument and pass it to localedef
1697         invocation.
1698         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1699         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1701         * localedata/Makefile (test-input-data): Use full file name.
1702         * localedata/da_DK.in: Rename to...
1703         * localedata/da_DK.ISO-8859-1.in: ...this.
1704         * localedata/de_DE.in: Rename to...
1705         * localedata/de_DE.ISO-8859-1.in: ...this.
1706         * localedata/en_US.in: Rename to...
1707         * localedata/en_US.ISO-8859-1.in: ...this.
1708         * localedata/fr_FR.in: Rename to...
1709         * localedata/fr_FR.UTF-8.in: ... this.
1710         * localedata/hr_HR.in: Rename to...
1711         * localedata/hr_HR.ISO-8859-2.in: ...this.
1712         * localedata/hu_HU.in: Rename to...
1713         * localedata/hu_HU.UTF-8.in: ...this.
1714         * localedata/si_LK.in: Rename to...
1715         * localedata/si_LK.UTF-8.in: ...this.
1716         * localedata/sv_SE.in: Rename to...
1717         * localedata/sv_SE.ISO-8859-1.in: ...this.
1718         * localedata/tr_TR.in: Rename to...
1719         * localedata/tr_TR.UTF-8.in: ...this.
1720         * localedata/uk_UA.in: Rename to...
1721         * localedata/uk_UA.UTF-8.in: ...this.
1722         * localedata/sort-test.sh: Test file is locale name with the
1723         suffix.
1725         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1726         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1727         file.
1728         * localedata/locales/i18n_ctype: Regenerate.
1729         * localedata/locales/tr_TR: Likewise.
1730         * localedata/locales/translit_circle: Likewise.
1731         * localedata/locales/translit_cjk_compat: Likewise.
1732         * localedata/locales/translit_combining: Likewise.
1733         * localedata/locales/translit_compat: Likewise.
1734         * localedata/locales/translit_font: Likewise.
1735         * localedata/locales/translit_fraction: Likewise.
1737 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1739         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1740         lxvd2x/stxvd2x with lvx/stvx.
1741         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1743 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1745         * include/alloc_buffer.h: Replace "if if " with "if " in
1746         comments.
1747         * sysdeps/mips/memcpy.S: Likkewise.
1748         * sysdeps/mips/memset.S: Likewise.
1749         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1750         Likewise.
1751         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1752         Likewise.
1753         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1754         Likewise.
1756 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1758         [BZ #15261]
1759         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1760         yesexpr and noexpr.
1761         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1762         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1763         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1764         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1765         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1766         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1767         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1769 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1771         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1772         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1773         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1774         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1775         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1776         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1777         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1778         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1779         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1780         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1781         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1782         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1784 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1786         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1787         as possible for better readability of the source.
1788         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1789         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1790         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1791         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1792         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1793         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1794         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1795         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1796         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1797         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1798         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1799         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1800         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1801         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1802         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1803         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1804         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1805         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1806         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1807         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1808         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1809         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1810         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1811         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1812         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1813         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1814         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1815         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1816         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1817         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1818         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1819         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1820         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1821         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1822         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1823         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1824         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1825         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1826         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1827         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1828         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1829         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1830         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1831         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1832         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1833         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1834         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1835         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1836         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1837         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1838         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1839         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1840         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1841         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1842         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1843         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1844         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1845         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1846         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1847         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1848         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1849         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1850         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1851         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1852         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1853         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1854         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1855         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1856         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1857         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1858         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1859         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1860         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1861         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1862         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1863         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1864         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1865         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1866         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1867         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1868         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1869         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
1870         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
1871         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1872         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
1873         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
1874         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
1875         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1876         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
1877         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
1878         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
1879         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
1880         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1881         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
1882         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
1883         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1884         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
1885         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1886         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
1887         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
1888         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
1889         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
1890         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
1891         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
1892         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
1893         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
1894         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
1895         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
1896         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
1897         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
1898         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
1899         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
1900         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1901         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
1902         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
1903         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
1904         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
1905         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
1906         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
1907         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
1908         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
1909         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
1910         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
1911         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
1912         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
1913         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
1914         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
1915         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
1916         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
1917         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
1918         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
1919         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
1920         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
1921         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
1922         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
1923         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
1924         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
1925         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
1926         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
1927         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
1928         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
1929         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
1930         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
1931         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
1932         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
1933         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1934         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
1935         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
1936         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
1937         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
1938         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
1939         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
1940         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
1941         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
1942         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1943         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
1944         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
1945         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
1946         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
1947         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
1948         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
1949         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
1950         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
1951         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
1952         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
1953         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1954         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
1955         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
1956         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
1957         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
1958         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1959         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1960         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1961         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
1963 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1965         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1966         (Use first letters of yesstr and nostr correctly instead of using
1967         full words).
1969 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1971         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1972         (Use first letters of yesstr and nostr correctly).
1974 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1976         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1977         also check for the first characters of yesstr and nostr.
1978         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1979         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1981 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1983         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
1984         also check for Chinese characters.
1986 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1988         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
1989         match also for the contents of yesstr and nostr. As the first letter
1990         of yesstr and nostr is equal, checking only for the first letter
1991         is not enough.
1993 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1995         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
1996         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
1998 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2000         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2001         of main contributor.
2003 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2005         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2006         instead of using English.
2008 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2010         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2011         by including the first letters of nostr and yesexpr in the regexp.
2012         Also make it more readable by using ASCII where possible.
2014 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2016         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2017         the first letter of nostr in the regexp. It agrees with CLDR now.
2018         Also make it more readable by using ASCII where possible.
2020 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2022         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2023         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2024         these strings contain a U+17D6 (which somewhat looks like a colon)
2025         instead of a real colon to separate the full words for “yes”
2026         and “no” from the single letter responses.
2028 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2030         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2031         it agree with CLDR (include the first letter of yesstr).
2032         Also make it more readable by using ASCII where possible.
2034 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2036         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2037         and improve yesexpr and noexpr. The yesstr and nostr apparently
2038         came from CLDR. And CLDR has a bug there: these strings contain
2039         a U+0903 (which looks like a colon) instead of a real colon
2040         to separate the full words for “yes” and “no” from the single
2041         letter responses.
2043 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2045         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2046         letters of the full yesstr and nostr in yesexpr and noexpr.
2048 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2050         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2051         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2052         * localedata/locales/an_ES: Make source more readable by using ASCII
2053         where possible.
2055 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2057         [BZ #20952]
2058         * localedata/locales/yuw_PG: New file.
2059         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2060         * locale/iso-639.def: Add Yau (Uruwa).
2062 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2064         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2066 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2068         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2069         (__libc_realloc): Likewise.
2070         (_mid_memalign): Likewise.
2071         (__libc_calloc): Likewise.
2073 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2075         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2076         by adding the generic +1 and -0 as in all other locales.
2077         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2078         day names and make it more readable by using ASCII where possible.
2080 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2082         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2083         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2085 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2087         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2088         WNOHANG in waitpid call.
2090 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2092         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2093         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2095         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2096         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2097         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2098         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2099         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2100         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2101         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2102         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2103         variables.
2105 2017-10-23  Michael Collison  <michael.collison@arm.com>
2107         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2108         with __builtin_sqrt.
2109         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2110         with __builtin_sqrtf.
2111         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2112         with __builtin_ceil.
2113         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2114         with __builtin_ceilf.
2115         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2116         with __builtin_floor.
2117         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2118         with __builtin_floorf.
2119         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2120         with __builtin_fma.
2121         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2122         with __builtin_fmaf.
2123         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2124         with __builtin_fmax.
2125         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2126         with __builtin_fmaxf.
2127         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2128         with __builtin_fmin.
2129         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2130         with __builtin_fminf.
2131         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2132         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2133         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2134         with builtin_rint and conversion to int.
2135         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2136         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2137         with builtin_llround.
2138         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2139         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2140         with builtin_rint and conversion to long int.
2141         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2142         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2143         with builtin_lround.
2144         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2145         with builtin_lroundf.
2146         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2147         statements with __builtin_nearbyint.
2148         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2149         statements with __builtin_nearbyintf.
2150         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2151         with __builtin_rint.
2152         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2153         with __builtin_rintf.
2154         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2155         with __builtin_round.
2156         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2157         with __builtin_roundf.
2158         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2159         with __builtin_trunc.
2160         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2161         with __builtin_truncf.
2162         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2163         and s_l[l]round[f].c too.
2165 2017-10-23  Alan Modra  <amodra@gmail.com>
2167         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2168         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2170 2017-10-23  Alan Modra  <amodra@gmail.com>
2172         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2173         Move LR save and frame setup/teardown and LR restore to
2174         immediately around memset call.  Provide cfi.
2176 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2178         * sysdeps/i386/fpu/e_powf.S: Removed.
2179         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2180         * sysdeps/i386/fpu/w_powf.c: Likewise.
2181         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2182         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2183         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2184         Add e_powf-sse2.
2185         (CFLAGS-e_powf-sse2.c): New.
2186         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2187         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2189 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2191         * sysdeps/i386/fpu/e_log2f.S: Removed.
2192         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2193         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2194         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2195         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2196         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2197         Add e_log2f-sse2.
2198         (CFLAGS-e_log2f-sse2.c): New.
2199         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2200         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2202 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2204         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2205         Add e_powf-fma.
2206         (CFLAGS-e_powf-fma.c): New.
2207         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2208         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2210 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2212         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2213         Add e_log2f-fma.
2214         (CFLAGS-e_log2f-fma.c): New.
2215         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2216         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2218 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2220         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2221         Add e_logf-fma.
2222         (CFLAGS-e_logf-fma.c): New.
2223         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2224         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2226 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2228         * sysdeps/i386/fpu/e_logf.S: Removed.
2229         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2230         * sysdeps/i386/fpu/w_logf.c: Likewise.
2231         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2232         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2233         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2234         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2235         Add e_logf-sse2.
2236         (CFLAGS-e_logf-sse2.c): New.
2237         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2238         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2240 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2242         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2243         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2244         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2245         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2246         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2247         Add e_exp2f-sse2.
2248         (CFLAGS-e_exp2f-sse2.c): New.
2249         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2250         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2252 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2254         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2255         Add e_exp2f-fma.
2256         (CFLAGS-e_exp2f-fma.c): New.
2257         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2258         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2260 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2262         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2263         * sysdeps/i386/fpu/e_expf.S: Likewise.
2264         * sysdeps/i386/fpu/math_errf.c: Likewise.
2265         * sysdeps/i386/fpu/w_expf.c: Likewise.
2266         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2267         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2268         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2269         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2270         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2271         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2272         Remove e_expf-ia32.
2273         (CFLAGS-e_expf-sse2.c): New.
2274         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2275         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2277 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2279         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2280         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2281         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2282         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2283         e_expf.c.
2284         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2285         New.
2286         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2287         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2288         Renamed to ...
2289         (__redirect_expf): This.
2290         (SYMBOL_NAME): Changed to expf.
2291         (__ieee754_expf): Renamed to ...
2292         (__expf): This.
2293         (__GI___expf): This.
2294         (__ieee754_expf): Add strong_alias.
2295         (__expf_finite): Likewise.
2296         (__expf): New.
2297         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2299 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2301         [BZ #22332]
2302         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2303         unescaping.
2305 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2307         * posix/Makefile (tests): Add tst-glob-tilde.
2308         (tests-special): Add tst-glob-tilde-mem.out
2309         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2310         (tst-glob-tilde-mem.out): Add mtrace check.
2311         * posix/tst-glob-tilde.c: New file.
2313 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2315         * bits/floatn-common.h: New file.
2316         * math/Makefile (headers): Add bits/floatn-common.h.
2317         * bits/floatn.h: Include <bits/floatn-common.h>.
2318         * sysdeps/ia64/bits/floatn.h: Likewise.
2319         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2320         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2321         * sysdeps/powerpc/bits/floatn.h: Likewise.
2322         * sysdeps/x86/bits/floatn.h: Likewise.
2324 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2326         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2327         indicates whether compiler emits an warning for alias for
2328         functions with incompatible types.
2330         [BZ #22273]
2331         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2332         the auxiliary process is terminated by a signal before calling _exit
2333         or execve.
2335 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2337         [BZ #21265]
2338         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2339         New.
2340         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2341         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2342         and bit_arch_XSAVEC_Usable if needed.
2343         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2344         and bit_arch_Use_dl_runtime_resolve_opt.
2345         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2346         Removed.
2347         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2348         (bit_arch_Prefer_No_AVX512): Updated.
2349         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2350         (bit_arch_XSAVEC_Usable): New.
2351         (STATE_SAVE_OFFSET): Likewise.
2352         (STATE_SAVE_MASK): Likewise.
2353         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2354         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2355         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2356         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2357         (index_arch_XSAVEC_Usable): New.
2358         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2359         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2360         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2361         is enabled.
2362         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2363         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2364         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2365         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2366         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2367         _dl_runtime_resolve_xsavec.
2368         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2369         Removed.
2370         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2371         instead of VEC_SIZE.
2372         (REGISTER_SAVE_BND0): Removed.
2373         (REGISTER_SAVE_BND1): Likewise.
2374         (REGISTER_SAVE_BND3): Likewise.
2375         (REGISTER_SAVE_RAX): Always defined to 0.
2376         (VMOV): Removed.
2377         (_dl_runtime_resolve_avx): Likewise.
2378         (_dl_runtime_resolve_avx_slow): Likewise.
2379         (_dl_runtime_resolve_avx_opt): Likewise.
2380         (_dl_runtime_resolve_avx512): Likewise.
2381         (_dl_runtime_resolve_avx512_opt): Likewise.
2382         (_dl_runtime_resolve_sse): Likewise.
2383         (_dl_runtime_resolve_sse_vex): Likewise.
2384         (USE_FXSAVE): New.
2385         (_dl_runtime_resolve_fxsave): Likewise.
2386         (USE_XSAVE): Likewise.
2387         (_dl_runtime_resolve_xsave): Likewise.
2388         (USE_XSAVEC): Likewise.
2389         (_dl_runtime_resolve_xsavec): Likewise.
2390         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2391         Removed.
2392         (_dl_runtime_resolve_avx512_opt): Likewise.
2393         (_dl_runtime_resolve_avx): Likewise.
2394         (_dl_runtime_resolve_avx_opt): Likewise.
2395         (_dl_runtime_resolve_sse): Likewise.
2396         (_dl_runtime_resolve_sse_vex): Likewise.
2397         (_dl_runtime_resolve_fxsave): New.
2398         (_dl_runtime_resolve_xsave): Likewise.
2399         (_dl_runtime_resolve_xsavec): Likewise.
2401 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2403         [BZ #22320]
2404         CVE-2017-15670
2405         * posix/glob.c (__glob): Fix one-byte overflow.
2407 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2409         * malloc/malloc.c (sysdep-cancel.h): Add include.
2411 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2413         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2415 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2417         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2418         (tests): Remove $(objpfx)ga_test depdendency.
2419         * resolv/ga_test.c: Remove file.
2421 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2423         [BZ #18812]
2424         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2425         * localedata/locales/kab_DZ: New file.
2427 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2429         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2430         _dl_relocate_static_pie instead of _dl_start to compute load
2431         address in static PIE.
2433 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2435         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2437 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2439         [BZ #13605]
2440         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2441         * localedata/locales/shn_MM: New file.
2443 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2445         [BZ #22321]
2446         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2447         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2448         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2449         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2450         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2451         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2453 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2455         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2457 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2459         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2461         [BZ #22322]
2462         * sysdeps/mips/bits/long-double.h: Move to ....
2463         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2465 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2467         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2469 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2470             H.J. Lu  <hongjiu.lu@intel.com>
2472         [BZ #22299]
2473         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2474         GLRO(dl_platform) to NULL.
2475         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2476         (modules-names): Add tst-platformmod-1 and
2477         x86_64/tst-platformmod-2.
2478         (CFLAGS-tst-platform-1.c): New.
2479         (CFLAGS-tst-platformmod-1.c): Likewise.
2480         (CFLAGS-tst-platformmod-2.c): Likewise.
2481         (LDFLAGS-tst-platformmod-2.so): Likewise.
2482         ($(objpfx)tst-platform-1): Likewise.
2483         ($(objpfx)tst-platform-1.out): Likewise.
2484         (tst-platform-1-ENV): Likewise.
2485         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2486         * sysdeps/x86_64/tst-platform-1.c: New file.
2487         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2488         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2490 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2492         [BZ #13994]
2493         * locale/iso-639.def: Add Karbi.
2494         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2495         * localedata/locales/mjw_IN: New file.
2497 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2499         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2500         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2501         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2502         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2503         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2504         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2505         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2506         <bits/floatn.h>.
2507         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2508         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2509         * manual/math.texi (Mathematics): Document additional architecture
2510         support for _Float128.
2511         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2512         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2513         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2514         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2515         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2516         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2517         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2518         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2519         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2520         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2521         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2522         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2523         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2524         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2525         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2527 2017-10-18  Renlin Li  <renlin.li@arm.com>
2529         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2530         _DYNAMIC symbol to calculate load address.
2532 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2534         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2535         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2536         summary bits.
2537         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2538         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2540 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2542         [BZ #16777]
2543         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2544         and improve readability by using more ASCII.
2545         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2546         and improve readability by using more ASCII.
2548 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2550         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2551         not all targets support atomics on bool.
2553 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2555         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2556         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2557         __f128.
2558         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2559         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2560         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2561         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2562         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2563         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2565 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2567         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2568         defines.
2570 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2572         [BZ #22159]
2573         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2574         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2575         (do_check_remalloced_chunk): Fix build bug.
2576         (do_check_malloc_state): Add assert that checks arena->top.
2577         (malloc_consolidate): Remove initialization.
2578         (int_mallinfo): Remove call to malloc_consolidate.
2579          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2581 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2583         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2584         (have_fastchunks): Remove.
2585         (clear_fastchunks): Remove.
2586         (set_fastchunks): Remove.
2587         (malloc_state): Add have_fastchunks.
2588         (malloc_init_state): Use have_fastchunks.
2589         (do_check_malloc_state): Remove incorrect invariant checks.
2590         (_int_malloc): Use have_fastchunks.
2591         (_int_free): Likewise.
2592         (malloc_consolidate): Likewise.
2594 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2596         * malloc/malloc.c (tcache_put): Inline.
2597         (tcache_get): Inline.
2599 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2601         Aurelien Jarno  <aurelien@aurel32.net>
2602         [BZ #2522]
2603         * localedata/locales/ca_ES@valencia: New file.
2604         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2606 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2608         [BZ #22296]
2609         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2610         < 6.x
2612 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2614         * scripts/build-many-glibcs.py (Context.add_all_configs):
2615         Add arm-linux-gnueabihf multiarch extra_glibcs.
2617         * sysdeps/generic/ifunc-init.h: New file.
2618         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2620 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2622         [BZ #22019]
2623         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2624         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2625         * stdlib/tst-strfmon_l.c: adapt test case.
2627 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2629         * sysdeps/generic/float128-abi.h: New file.
2630         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2631         non-__prefixed symbols to ....
2632         * math/Versions: ... here.  Include <float128-abi.h>.
2633         * stdlib/Versions ... and here.  Include <float128-abi.h>
2635 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2637         * version.h (VERSION): Switch to ".9000" as the development
2638         version suffix.
2640 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2642         [BZ #22050]
2643         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2644         compat_symbol_reference to access non-default version.
2646 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2648         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2650 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2652         * include/shlib-compat.h (compat_symbol_reference): Update
2653         comment.
2655 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2657         * math/Makefile (test-types): Add
2658         $(type-float128-$(float128-alias-fcts)).
2659         * math/test-float128.h (TYPE_STR): Define conditional on
2660         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2661         (ULP_IDX): Likewise.
2662         (ULP_I_IDX): Likewise.
2664         * stdlib/strtold.c: Include <bits/floatn.h>
2665         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2666         and later undefine as macro.  Define as weak alias if
2667         [!USE_WIDE_CHAR].
2668         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2669         and later undefine as macro.  Define as weak alias if
2670         [USE_WIDE_CHAR].
2671         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2672         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2673         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2674         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2675         Define and later undefine as macro.  Define as weak alias if
2676         [USE_WIDE_CHAR].
2677         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2678         <bits/floatn.h>.
2679         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2680         Define and later undefine as macro.  Define as weak alias if
2681         [!USE_WIDE_CHAR].
2682         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2683         Define and later undefine as macro.  Define as weak alias if
2684         [USE_WIDE_CHAR].
2686 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2688         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2689         record_verbose messages.
2691 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2693         [BZ #22052]
2694         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2695         to silence -O3 -Wall warning with GCC 7.
2697 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2699         * Makeconfig (+link-static-before-libc): Use the first of
2700         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2701         * gmon/Makefile (tests): Add tst-gmon-static.
2702         (tests-static): Likewise.
2703         (CFLAGS-tst-gmon-static.c): New.
2704         (CRT-tst-gmon-static): Likewise.
2705         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2706         (tst-gmon-static-ENV): Likewise.
2707         (tests-special): Likewise.
2708         ($(objpfx)tst-gmon-static.out): Likewise.
2709         (clean-tst-gmon-static-data): Likewise.
2710         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2711         * gmon/tst-gmon-static-gprof.sh: New file.
2712         * gmon/tst-gmon-static.c: Likewise.
2714 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2716         [BZ #22295]
2717         * locale/programs/linereader.c (get_string): Don't warn on
2718         non-symbolic character.
2720         [BZ #22294]
2721         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2722         int_curr_symbol.
2724         [BZ #22292]
2725         * locale/programs/record-status.h: New file
2726         * locale/programs/locale.c: Add comment.
2727         * locale/programs/charmap-dir.c: Don't include error.h.
2728         (charmap_opendir): Use record_error.
2729         * locale/programs/charmap.c: Don't include error.h.
2730         (charmap_read): Use record_error, and record_warning.
2731         (parse_charmap): Likewise.
2732         * locale/programs/ld-address.c: Don't include error.h.
2733         (address_finish): Use record_error, and record_warning.
2734         * locale/programs/ld-collate.c: Don't include error.h.
2735         (collate_finish): Use record_error, and record_error_at_line.
2736         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2737         (ctype_class_new): Likewise.
2738         (ctype_map_new): Likewise.
2739         (set_one_default): Likewise.
2740         (set_class_defaults): Likewise.
2741         (translit_flatten): Likewise.
2742         (allocate_arrays): Use record_error, and record_verbose.
2743         * locale/programs/ld-identification.c: Don't include error.h.
2744         (indentation_finish): Use record_error and record_warning.
2745         * locale/programs/ld-measurement.c: Don't include error.h.
2746         (measurement_finish): Use record_error.
2747         * locale/programs/ld-messages.c
2748         (message_finish): Likewise.
2749         * locale/programs/ld-monetary.c
2750         (monetary_finish): Likewise.
2751         * locale/programs/ld-name.c (name_finish): Use record_error
2752         and record_warning.
2753         * locale/programs/ld-numeric.c
2754         (numeric_finish): Use record_error.
2755         * locale/programs/ld-paper.c: Don't include error.h.
2756         (paper_finish): Use record_error.
2757         * locale/programs/ld-telephone.c: Don't include error.h.
2758         (telephone_finish): Use record_error.
2759         * locale/programs/ld-time.c (time_finish): Likewise.
2760         * locale/programs/linereader.h (lr_error): Make inline func.
2761         * locale/programs/localedef.c: Define recorded_warning_count,
2762         and recorded_error_count.
2763         (main): Use record_error. Use recorded_error_count and
2764         recorded_warning_count to issue correct error returns.
2765         (add_to_readlist): Use record_error.
2766         (find_locale): Likewise.
2767         (load_locale): Likewise.
2768         * locale/programs/localedef.h: Remove be_quiet
2769         and WITH_CUR_LOCALE.
2770         * locale/programs/locarchive.c (compare_from_file): Use
2771         record_error.
2772         * locale/programs/locfile.c (write_locale_data): Use
2773         record_error.
2774         * locale/programs/repertoire.c: Dont include error.h.
2775         (repertoire_complain): Use record_error.
2776         * localedata/tst-fmon.sh: Expect failures from localedef.
2777         * localedata/tst-locale.sh: Likewise.
2778         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2780         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2781         (REPORTS): Likewise.
2782         (check): Likewise.
2783         (i18n): Rename to...
2784         (i18n_ctype): ...this.
2785         (i18n-report): Rename to...
2786         (i18n_ctype-report): ...this.
2787         * localedata/locales/i18n_ctype: Regenerate.
2788         * localedata/locales/i18n: copy i18n_ctype.
2790 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2792         * stdlib/strfroml.c: Include <bits/floatn.h>.
2793         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2794         Define before include of <stdlib.h> and undefine afterwards, then
2795         define as weak alias.
2797         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2798         Undefine and restore default definition.  Use
2799         libm_alias_ldouble_other.
2801 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2803         [BZ #22153]
2804         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2805         in coredumps.
2807 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2809         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2810         Assign sym_map to be map for local symbols, as TLS relocations
2811         use sym_map to determine whether the symbol is defined and to
2812         extract the TLS information.
2813         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2814         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2816 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2818         [BZ #22189]
2819         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2820         (math_force_eval): Add powerpc version.
2822         [BZ #22142]
2823         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2824         -DBL_MAX.
2825         (do_test): Likewise.
2826         * stdio-common/tst-printf.sh: Likewise.
2827         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2828         ifdef clause in order to set the carry bit right.  Replace r0 by
2829         0 without changing the behavior.
2831 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2833         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2834         <libm-alias-ldouble.h>.
2835         (fabsl): Define using libm_alias_ldouble.
2836         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2837         <libm-alias-ldouble.h>.
2838         (fabsl): Define using libm_alias_ldouble.
2840         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2841         Remove conditional code.
2843         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2844         Rename to __clog10_internal_l.
2845         (__clog10_internal_l): Define aliases using
2846         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2847         with __clog10.
2849 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2851         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2852         * benchtests/sincosf-inputs: New file.
2853         * benchtests/cosf-inputs: New file.
2854         * benchtests/sinf-inputs: New file.
2856 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2858         * posix/tst-spawn.c (do_test): Wait for both children.
2860 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2862         [BZ #22284]
2863         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2864         tests-pie): Add tst-gmon-pie.
2865         (CFLAGS-tst-gmon-pie.c): New.
2866         (CRT-tst-gmon-pie): Likewise.
2867         (tst-gmon-pie-ENV): Likewise.
2868         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2869         ($(objpfx)tst-gmon-pie.out): Likewise.
2870         (clean-tst-gmon-pie-data): Likewise.
2871         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
2872         * gmon/gmon.c [PIC]: Include <link.h>.
2873         [PIC] (callback): New function.
2874         (write_hist): Add an argument for load address.  Subtract load
2875         address from PCs.
2876         (write_call_graph): Likewise.
2877         (write_gmon): Call __dl_iterate_phdr to get load address, pass
2878         it to write_hist and write_call_graph.
2879         * gmon/tst-gmon-pie.c: New file.
2881 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2883         * math/Makefile (test-types-basic): New variable.
2884         (test-types): Likewise.
2885         (libm-test-support): Use $(test-types) instead of $(types).
2886         (libm-tests-base-normal): Likewise.
2887         (libm-tests-base-finite): Likewise.
2888         (libm-tests-base-inline): Likewise.
2889         (generated): Likewise.
2890         ($(objpfx)libm-test-support-$(t).c): Likewise.
2891         (libm-tests-for-type iterator): Likewise.
2892         (libm-test-support iterator): Likewise.
2893         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
2894         (ulp_idx): Use ULP_IDX.
2895         * math/test-ldouble.h: Include <float.h>.
2896         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
2897         (ULP_IDX): New macro.
2898         (ULP_I_IDX): Likewise.
2899         * math/test-double.h (ULP_IDX): Likewise.
2900         (ULP_I_IDX): Likewise.
2901         * math/test-float.h (ULP_IDX): Likewise.
2902         (ULP_I_IDX): Likewise.
2903         * math/test-float128.h (ULP_IDX): Likewise.
2904         (ULP_I_IDX): Likewise.
2906 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2908         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
2909         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
2910         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
2911         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
2912         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
2913         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
2914         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
2915         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
2916         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
2917         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
2918         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
2919         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
2920         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
2921         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2922         (SINGLE_THREAD_BY_GLOBAL): Define.
2923         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2924         Likewise.
2925         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2926         Likewise.
2927         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2928         Likewise.
2929         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2930         Likewise.
2931         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
2932         (SINGLE_THREAD_BY_GLOBAL): Likewise.
2933         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2934         Likewise.
2936 2017-10-11  Andreas Schwab  <schwab@suse.de>
2938         * nis/Makefile (aux): Remove.
2939         * nscd/Makefile (aux): Add nscd_hash.
2940         (nscd-modules): Likewise.
2941         ($(objpfx)nscd): Don't depend on libnsl.
2942         * nscd/nscd_hash.c: New file.
2943         * nscd/nscd_hash.h: Likewise.
2944         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
2945         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
2946         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
2947         instead of <nis/rpcsvc/nis.h>.
2948         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
2950 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2952         [BZ #22078]
2953         Avoid large NSS buffers with many addresses, aliases.
2954         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
2955         using dynarrays and struct alloc_buffer.
2956         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
2957         (tst-nss-files-hosts-multi): Link with -ldl.
2958         * nss/tst-nss-files-hosts-multi.c: New file.
2960 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2962         [BZ #18023]
2963         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
2964         scratch_buffer.  Eliminate gotos.
2966 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2968         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2969         libm_alias_ldouble_other.
2970         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2971         undefine and redefine.
2972         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2973         (exp10l): Do not define here.
2974         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2975         (weak_alias): Undefine and redefine.
2976         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2977         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2978         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2979         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2981         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
2982         [!__fma] (fma): Define using libm_alias_double.
2983         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
2984         [!__fmaf] (fmaf): Define using libm_alias_float.
2985         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
2986         (fmal): Define using libm_alias_ldouble.
2988 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
2990         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
2991         New macro.
2992         (libm_alias_double_other): Likewise.
2993         (libm_alias_double_r): Use libm_alias_double_other_r.
2994         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
2995         New macro.
2996         (libm_alias_float_other): Likewise.
2997         (libm_alias_float_r): Use libm_alias_float_other_r.
2998         * sysdeps/generic/libm-alias-float128.h
2999         (libm_alias_float128_other_r): New macro.
3000         (libm_alias_float128_other): Likewise.
3001         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3002         * sysdeps/generic/libm-alias-ldouble.h
3003         (libm_alias_ldouble_other_r): New macro.
3004         (libm_alias_ldouble_other): Likewise.
3005         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3006         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3007         (libm_alias_double_other_r): New macro.
3008         (libm_alias_double_other): Likewise.
3009         (libm_alias_double_r): Use libm_alias_double_other_r.
3010         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3011         (libm_alias_ldouble_other_r): New macro.
3012         (libm_alias_ldouble_other): Likewise.
3013         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3014         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3015         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3016         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3017         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3018         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3019         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3020         * math/w_exp2f.c: Use libm_alias_float_other.
3021         * math/w_expf.c: Likewise.
3022         * math/w_log2f.c: Likewise.
3023         * math/w_logf.c: Likewise.
3024         * math/w_powf.c: Likewise.
3025         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3026         [!__exp2f]: Use libm_alias_float_other.
3027         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3028         [!__expf]: Use libm_alias_float_other.
3029         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3030         [!__log2f]: Use libm_alias_float_other.
3031         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3032         [!__logf]: Use libm_alias_float_other.
3033         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3034         [!__powf]: Use libm_alias_float_other.
3036 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3038         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3039         function.
3040         (_nss_files_gethostbyname3_r): Call it.
3042 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3044         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3045         error.  Remove default definition of declare_mgen_alias.
3046         [!declare_mgen_alias_r]: Likewise.
3047         * sysdeps/generic/math-type-macros-double.h
3048         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3049         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3050         (declare_mgen_alias_r): Likewise.
3051         * sysdeps/generic/math-type-macros-float128.h
3052         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3053         * sysdeps/generic/math-type-macros-ldouble.h
3054         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3055         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3056         macro.
3057         (declare_mgen_alias_r_s): Likewise.
3058         (declare_mgen_alias_r): Likewise.
3059         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3060         (lgamma_r): Define using libm_alias_double_r.
3061         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3062         (lgammaf_r): Define using libm_alias_float_r.
3063         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3064         (lgammal_r): Define using libm_alias_ldouble_r.
3065         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3066         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3068 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3070         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3071         extern declaration.
3073 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3075         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3077 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3079         [BZ #21326]
3080         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3081         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3082         * math/Makefile (test-math-cxx11): New test.
3083         * math/test-math-cxx11.cc: New file.
3085 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3087         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3089         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3090         call to allocate the slave pty file descriptor.
3092 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3094         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3095         [!__fma] (fma): Define using libm_alias_double.
3096         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3097         [!__fma] (fma): Define using libm_alias_double.
3099         * sysdeps/ieee754/float128/float128_private.h: Include
3100         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3101         (libm_alias_ldouble_r): Undefine and redefine.
3102         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3103         <libm-alias-ldouble.h>.
3104         (asinhl): Define using libm_alias_ldouble.
3105         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3106         <libm-alias-ldouble.h>.
3107         (atanl): Define using libm_alias_ldouble.
3108         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3109         <libm-alias-ldouble.h>.
3110         (cbrtl): Define using libm_alias_ldouble.
3111         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3112         <libm-alias-ldouble.h>.
3113         (ceill): Define using libm_alias_ldouble.
3114         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3115         <libm-alias-ldouble.h>.
3116         (copysignl): Define using libm_alias_ldouble.
3117         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3118         <libm-alias-ldouble.h>.
3119         (cosl): Define using libm_alias_ldouble.
3120         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3121         <libm-alias-ldouble.h>.
3122         (erfl): Define using libm_alias_ldouble.
3123         (erfcl): Likewise.
3124         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3125         <libm-alias-ldouble.h>.
3126         (expm1l): Define using libm_alias_ldouble.
3127         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3128         <libm-alias-ldouble.h>.
3129         (fabsl): Define using libm_alias_ldouble.
3130         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3131         <libm-alias-ldouble.h>.
3132         (floorl): Define using libm_alias_ldouble.
3133         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3134         <libm-alias-ldouble.h>.
3135         (fmal): Define using libm_alias_ldouble.
3136         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3137         <libm-alias-ldouble.h>.
3138         (frexpl): Define using libm_alias_ldouble.
3139         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3140         libm_alias_ldouble.
3141         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3142         <libm-alias-ldouble.h>.
3143         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3144         libm_alias_ldouble.
3145         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3146         <libm-alias-ldouble.h>.
3147         (getpayloadl): Define using libm_alias_ldouble.
3148         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3149         <libm-alias-ldouble.h>.
3150         (llrintl): Define using libm_alias_ldouble.
3151         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3152         <libm-alias-ldouble.h>.
3153         (llroundl): Define using libm_alias_ldouble.
3154         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3155         <libm-alias-ldouble.h>.
3156         (logbl): Define using libm_alias_ldouble.
3157         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3158         <libm-alias-ldouble.h>.
3159         (lrintl): Define using libm_alias_ldouble.
3160         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3161         <libm-alias-ldouble.h>.
3162         (lroundl): Define using libm_alias_ldouble.
3163         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3164         <libm-alias-ldouble.h>.
3165         (modfl): Define using libm_alias_ldouble.
3166         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3167         <libm-alias-ldouble.h>.
3168         (nearbyintl): Define using libm_alias_ldouble.
3169         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3170         <libm-alias-ldouble.h>.
3171         (nextafterl): Define using libm_alias_ldouble.
3172         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3173         <libm-alias-ldouble.h>.
3174         (nextupl): Define using libm_alias_ldouble.
3175         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3176         <libm-alias-ldouble.h>.
3177         (remquol): Define using libm_alias_ldouble.
3178         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3179         <libm-alias-ldouble.h>.
3180         (rintl): Define using libm_alias_ldouble.
3181         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3182         <libm-alias-ldouble.h>.
3183         (roundevenl): Define using libm_alias_ldouble.
3184         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3185         <libm-alias-ldouble.h>.
3186         (roundl): Define using libm_alias_ldouble.
3187         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3188         using libm_alias_ldouble.
3189         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3190         <libm-alias-ldouble.h>.
3191         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3192         Define using libm_alias_ldouble.
3193         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3194         <libm-alias-ldouble.h>.
3195         (sincosl): Define using libm_alias_ldouble.
3196         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3197         <libm-alias-ldouble.h>.
3198         (sinl): Define using libm_alias_ldouble.
3199         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3200         <libm-alias-ldouble.h>.
3201         (tanhl): Define using libm_alias_ldouble.
3202         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3203         <libm-alias-ldouble.h>.
3204         (tanl): Define using libm_alias_ldouble.
3205         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3206         <libm-alias-ldouble.h>.
3207         (totalorderl): Define using libm_alias_ldouble.
3208         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3209         <libm-alias-ldouble.h>.
3210         (totalordermagl): Define using libm_alias_ldouble.
3211         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3212         <libm-alias-ldouble.h>.
3213         (truncl): Define using libm_alias_ldouble.
3214         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3215         libm_alias_ldouble.
3216         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3217         libm_alias_ldouble.
3218         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3219         <libm-alias-ldouble.h>.
3220         (weak_alias): Do not undefine and redefine.
3221         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3222         (copysignl): Define with long_double_symbol only if [IS_IN
3223         (libc)].
3224         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3225         <libm-alias-ldouble.h>.
3226         (weak_alias): Do not undefine and redefine.
3227         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3228         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3229         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3230         <libm-alias-ldouble.h>.
3231         (weak_alias): Do not undefine and redefine.
3232         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3233         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3234         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3235         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3236         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3237         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3238         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3239         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3240         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3241         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3242         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3243         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3244         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3245         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3246         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3247         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3248         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3249         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3250         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3251         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3252         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3253         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3254         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3255         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3256         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3257         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3259 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3261         [BZ #22111]
3262         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3263         (tcache_thread_freeres): Set tcache_shutting_down before
3264         freeing the tcache.
3265         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3266         * malloc/tst-malloc-tcache-leak.c: New file.
3268 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3270         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3271         back to powerpc32 file.
3272         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3273         (memrchr): Add __memrchr_power8 to ifunc list.
3274         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3275         extra bytes for unaligned inputs.
3277 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3279         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3280         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3281         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3282         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3283         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3285 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3287         * sysdeps/arm/libm-test-ulps: Update.
3289         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3290         <libm-alias-ldouble.h>.
3291         (asinhl): Define using libm_alias_ldouble.
3292         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3293         <libm-alias-ldouble.h>.
3294         (cbrtl): Define using libm_alias_ldouble.
3295         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3296         <libm-alias-ldouble.h>.
3297         (copysignl): Define using libm_alias_ldouble.
3298         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3299         <libm-alias-ldouble.h>.
3300         (cosl): Define using libm_alias_ldouble.
3301         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3302         <libm-alias-ldouble.h>.
3303         (erfl): Define using libm_alias_ldouble.
3304         (erfcl): Likewise.
3305         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3306         <libm-alias-ldouble.h>.
3307         (fmal): Define using libm_alias_ldouble.
3308         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3309         <libm-alias-ldouble.h>.
3310         (frexpl): Define using libm_alias_ldouble.
3311         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3312         libm_alias_ldouble.
3313         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3314         <libm-alias-ldouble.h>.
3315         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3316         libm_alias_ldouble.
3317         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3318         <libm-alias-ldouble.h>.
3319         (getpayloadl): Define using libm_alias_ldouble.
3320         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3321         <libm-alias-ldouble.h>.
3322         (llrintl): Define using libm_alias_ldouble.
3323         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3324         <libm-alias-ldouble.h>.
3325         (llroundl): Define using libm_alias_ldouble.
3326         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3327         <libm-alias-ldouble.h>.
3328         (lrintl): Define using libm_alias_ldouble.
3329         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3330         <libm-alias-ldouble.h>.
3331         (lroundl): Define using libm_alias_ldouble.
3332         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3333         <libm-alias-ldouble.h>.
3334         (modfl): Define using libm_alias_ldouble.
3335         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3336         <libm-alias-ldouble.h>.
3337         (nextupl): Define using libm_alias_ldouble.
3338         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3339         <libm-alias-ldouble.h>.
3340         (remquol): Define using libm_alias_ldouble.
3341         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3342         <libm-alias-ldouble.h>.
3343         (roundevenl): Define using libm_alias_ldouble.
3344         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3345         <libm-alias-ldouble.h>.
3346         (roundl): Define using libm_alias_ldouble.
3347         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3348         using libm_alias_ldouble.
3349         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3350         <libm-alias-ldouble.h>.
3351         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3352         <libm-alias-ldouble.h>.
3353         (setpayloadsigl): Define using libm_alias_ldouble.
3354         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3355         <libm-alias-ldouble.h>.
3356         (sincosl): Define using libm_alias_ldouble.
3357         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3358         <libm-alias-ldouble.h>.
3359         (sinl): Define using libm_alias_ldouble.
3360         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3361         <libm-alias-ldouble.h>.
3362         (tanhl): Define using libm_alias_ldouble.
3363         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3364         <libm-alias-ldouble.h>.
3365         (tanl): Define using libm_alias_ldouble.
3366         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3367         <libm-alias-ldouble.h>.
3368         (totalorderl): Define using libm_alias_ldouble.
3369         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3370         <libm-alias-ldouble.h>.
3371         (totalordermagl): Define using libm_alias_ldouble.
3372         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3373         libm_alias_ldouble.
3374         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3375         libm_alias_ldouble.
3377 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3379         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3380         memmove_falkor.
3381         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3382         (__libc_ifunc_impl_list): Likewise.
3383         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3384         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3386         * benchtests/bench-memmove-walk.c: New file.
3387         * benchtests/Makefile (string-benchset): Add it.
3389         * benchtests/bench-memset-walk.c: New file.
3390         * benchtests/Makefile (string-benchset): Add it.
3392         * benchtests/bench-memcpy-walk.c: New file.
3393         * benchtests/Makefile (string-benchset): Add it.
3395 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3397         nscd: Eliminate compilation time dependency in the build output.
3398         * nscd/nscd_stat.c (STATDATA_VERSION)
3399         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3400         (STATDATA_VERSION_FULL): New macro definitions.
3401         (compilation): Remove.
3402         (struct statdata): Adjust version member.
3403         (send_stats): Set version from STATDATA_VERSION_FULL.
3404         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3406 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3408         * configure.ac (--enable-add-ons): Remove option.
3409         (machine): Do not mention add-ons in comment.
3410         (LIBC_PRECONFIGURE): Likewise.
3411         (add_ons): Remove variable and sanity checks and logic to locate
3412         add-ons.
3413         (add_ons_automatic): Remove variable.
3414         (configured_add_ons): Likewise.
3415         (add_ons_sfx): Likewise.
3416         (add_ons_pfx): Likewise.
3417         (add_on_subdirs): Likewise.
3418         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3419         consideration of add-ons in Implies handling.
3420         (sysdeps_add_ons): Likewise.
3421         * configure: Regenerated.
3422         * libidn/configure.ac: Remove.
3423         * libidn/configure: Likewise.
3424         * sysdeps/unix/inet/configure.ac: New file.
3425         * sysdeps/unix/inet/configure: New generated file.
3426         * sysdeps/unix/inet/Subdirs: Add libidn.
3427         * Makeconfig (sysdeps-srcdirs): Remove variable.
3428         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3429         ($(common-objpfx)config.status): Do not depend on add-on files.
3430         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3431         comment.
3432         (all-subdirs): Do not include $(add-on-subdirs).
3433         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3434         * config.make.in (add-ons): Remove variable.
3435         (add-on-subdirs): Likewise.
3436         (sysdeps-add-ons): Likewise.
3437         * manual/Makefile (add-chapters): Remove.
3438         ($(objpfx)texis): Do not depend on $(add-chapters).
3439         (nonexamples): Do not handle $(add-chapters).
3440         (examples): Do not handle $(add-ons).
3441         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3442         libc-texinfo.sh.
3443         * manual/install.texi (Installation): Do not mention add-ons.
3444         (--enable-add-ons): Do not document configure option.
3445         * INSTALL: Regenerated.
3446         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3447         * manual/maint.texi (Hierarchy Conventions): Do not mention
3448         add-ons.
3449         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3450         --enable-add-ons.
3451         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3452         add-ons.
3453         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3454         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3456 2017-10-05  Andreas Schwab  <schwab@suse.de>
3458         [BZ #15142]
3459         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3460         (_IO_flush_all_lockp): Always lock list_all_lock.
3461         (_IO_flush_all_linebuffered): Likewise.
3462         (_IO_unbuffer_all): Likewise.
3464 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3466         [BZ #15436]
3467         Do not flush stdio streams on abort.
3468         * stdlib/abort.c (fflush): Remove macro definition.
3469         (abort): Remove stages related to stdio flushing.
3471 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3473         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3475 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3477         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3479 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3481         * support/support_format_hostent.c (support_format_hostent): Add
3482         more error information for NETDB_INTERNAL.
3484 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3486         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3487         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3488         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3489         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3490         AC_DEFINE if multi-arch is enabled.
3491         * sysdeps/i386/configure: Regenerated.
3493 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3495         * Makeconfig (+link-static-before-libc): Use
3496         $(DEFAULT-LDFLAGS-$(@F)).
3497         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3498         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3499         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3501 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3503         * elf/Makefile (tests): Add tst-main1.
3504         (modules-names): Add tst-main1mod.
3505         ($(objpfx)tst-main1): New.
3506         (CRT-tst-main1): Likewise.
3507         (LDFLAGS-tst-main1): Likewise.
3508         (LDLIBS-tst-main1): Likewise.
3509         (tst-main1mod.so-no-z-defs): Likewise.
3510         * elf/tst-main1.c: New file.
3511         * elf/tst-main1mod.c: Likewise.
3513 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3515         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3517 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3519         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3520         (fma): Define using libm_alias_double.
3521         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3522         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3523         <math_ldbl_opt.h>.
3524         (fmal): Do not define as compat symbol here.
3525         * sysdeps/alpha/fpu/s_fma.c: New file.
3527 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3529         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3531 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3533         [BZ #22229]
3534         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3535         <math_ldbl_opt.h>
3536         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3537         and libc.
3538         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3539         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3540         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3541         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3543         Include <math_ldbl_opt.h>
3544         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3545         and libc.
3546         (compat_symbol): Undefine and redefine.
3547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3548         <math_ldbl_opt.h>
3549         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3550         (compat_symbol): Undefine and redefine.
3551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3552         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3553         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3554         GLIBC_2_1 for libm.
3555         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3556         GLIBC_2.0 copysignl symbol.
3557         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3558         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3560         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3562 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3564         * scripts/check-local-headers.sh: Ignore nspr4 header file
3565         directory in addition to nspr.
3567 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3569         [BZ #17956]
3570         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3571         * configure: Regenerate.
3572         * crypt/Makefile (nss-cpp-flags): New variable.
3573         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3574         (CPPFLAGS-md5-crypt.c): Use it.
3575         * scripts/check-local-headers.sh: Ignore nspr header file
3576         directory.
3578 2017-10-04  Andreas Schwab  <schwab@suse.de>
3580         * nis/Makefile (services): Remove compat.
3581         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3582         ($(objpfx)libnss_compat.so): Remove rule.
3583         * nis/Versions (libnss_compat): Remove.
3584         * nss/Makefile (services): Add compat.
3585         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3586         * nss/Versions (libnss_compat): Define.
3587         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3588         Don't include <rpc/types.h>.  Replace bool_t by bool.
3589         * nss/nss_compat/compat-initgroups.c: Likewise.
3590         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3591         instead of <rpcsrv/ypclnt.h>.
3592         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3593         yp_get_default_domain.
3594         * nss/nss_compat/compat-pwd.c: Likewise.
3595         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3596         yp_get_default_domain.
3597         * nss/nss_compat/nisdomain.c: New file.
3598         * nss/nss_compat/nisdomain.h: Likewise.
3600 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3602         [BZ #22244]
3603         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3604         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3606 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3608         [BZ #22243]
3609         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3610         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3612 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3614         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3615         "movl main@GOTOFF(%ebx), %eax".
3617 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3619         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3620         allow undefined _DYNAMIC in PIE libc.a.
3621         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3622         Likewse.
3624 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3626         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3627         check _DYNAMIC.
3629 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3631         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3632         check _DYNAMIC.
3634 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3636         * math/test-math-iscanonical.cc (error): Replace bool with int.
3638 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3640         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3641         (modf): Define using libm_alias_double, only if [!__modf].
3642         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3643         <libm-alias-double.h>.
3644         (modf): Define using libm_alias_double, only if [!__modf].
3645         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3646         compat symbol here.
3647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3648         (weak_alias): Do not undefine and redefine.
3649         (strong_alias): Likewise.
3650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3651         (weak_alias): Likewise.
3652         (strong_alias): Likewise.
3654         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3655         (logb): Define using libm_alias_double, only if [!__logb].
3656         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3657         <libm-alias-double.h>.
3658         (logb): Define using libm_alias_double, only if [!__logb].
3659         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3661         (weak_alias): Do not undefine and redefine.
3662         (strong_alias): Likewise.
3663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3664         (weak_alias): Likewise.
3665         (strong_alias): Likewise.
3667 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3669         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3670         Check SHARED instead PIC.
3672 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3674         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3675         [!__fmaf] (fmaf): Define using libm_alias_float.
3677         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3678         (frexp): Define using libm_alias_double.
3679         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3680         <libm-alias-double.h>.
3681         (frexp): Define using libm_alias_double.
3682         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3683         compat symbol here.
3685 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3687         [BZ #22235]
3688         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3689         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3690         (CFLAGS-test-math-iscanonical.cc): New variable.
3691         * math/test-math-iscanonical.cc: New file.
3692         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3693         Provide a C++ implementation based on function overloading,
3694         rather than using __MATH_TG, which uses C-only builtins.
3695         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3696         Likewise.
3697         * sysdeps/powerpc/powerpc64le/Makefile
3698         (CFLAGS-test-math-iscanonical.cc): New variable.
3700 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3702         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3703         (ceil): Define using libm_alias_double.
3704         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3705         (floor): Define using libm_alias_double.
3706         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3707         <libm-alias-double.h>.
3708         (llround): Define using libm_alias_double.
3709         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3710         <libm-alias-double.h>.
3711         (lround): Define using libm_alias_double.
3712         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3713         <libm-alias-double.h>.
3714         (nearbyint): Define using libm_alias_double.
3715         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3716         <libm-alias-double.h>.
3717         (remquo): Define using libm_alias_double.
3718         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3719         (rint): Define using libm_alias_double.
3720         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3721         (round): Define using libm_alias_double.
3722         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3723         (trunc): Define using libm_alias_double.
3724         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3725         <libm-alias-double.h>.
3726         (ceil): Define using libm_alias_double.
3727         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3728         <libm-alias-double.h>.
3729         (floor): Define using libm_alias_double.
3730         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3731         <libm-alias-double.h>.
3732         (llround): Define using libm_alias_double.
3733         [_LP64] (lround): Likewise.
3734         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3735         <libm-alias-double.h>.
3736         [!_LP64] (lround): Define using libm_alias_double.
3737         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3738         <libm-alias-double.h>.
3739         (nearbyint): Define using libm_alias_double.
3740         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3741         <libm-alias-double.h>.
3742         (remquo): Define using libm_alias_double.
3743         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3744         <libm-alias-double.h>.
3745         (rint): Define using libm_alias_double.
3746         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3747         <libm-alias-double.h>.
3748         (round): Define using libm_alias_double.
3749         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3750         <libm-alias-double.h>.
3751         (trunc): Define using libm_alias_double.
3752         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3753         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3754         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3755         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3756         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3757         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3758         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3759         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3760         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3762 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3764         * math/w_remainder.c: New file.
3765         * math/w_remainderf.c: New file.
3766         * math/w_remainderl.c: New file.
3768 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3770         * elf/rtld.c (BOOTSTRAP_MAP): New.
3771         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3772         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3773         Likewise.
3774         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3775         Likewise.
3776         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3777         Likewise.
3779 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3781         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3782         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3783         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3784         rtld_hidden_data_ver): Define to empty.
3785         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3786         __assert_perror_fail): Likewise.
3787         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3788         (__rewinddir): Likewise.
3789         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3790         (__profile_frequency): Likewise.
3791         * include/setjmp.h (__sigsetjmp): Likewise.
3792         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3793         __libc_sigaction): Likewise.
3794         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3795         not set hidden attribute.
3796         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3797         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3798         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3799         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3800         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3801         __fxstatat64): Likewise.
3802         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3803         (__uname): Likewise.
3804         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3805         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3806         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3807         (NO_RTLD_HIDDEN): Set.
3808         * sysdeps/mach/hurd/configure: Refresh.
3809         * config.h.in: Refresh.
3811 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3813         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3814         (atan): Define using libm_alias_double.
3815         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3816         (tan): Define using libm_alias_double.
3817         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3818         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3820         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3821         define as weak alias of __atan.  Do not define any aliases if
3822         [__atan].
3823         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3824         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3825         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3826         as weak alias of __tan.  Do not define any aliases if [__tan].
3827         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3828         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3829         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3830         __atan.
3831         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3832         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3833         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3834         and define as weak alias of __atan.
3835         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3836         __atan.
3837         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3838         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3839         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3840         define as weak alias of __tan.
3842 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3844         * math/w_lgamma.c: New file.
3845         * math/w_lgammaf.c: New file.
3846         * math/w_lgammal.c: New file.
3848 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3850         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3851         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3852         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3853         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3854         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3855         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3856         * sysdeps/i386/fpu/w_log2f.c: New file.
3857         * sysdeps/i386/fpu/w_logf.c: New file.
3858         * sysdeps/i386/fpu/w_powf.c: New file.
3859         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3860         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3861         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3863 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3864             H.J. Lu  <hongjiu.lu@intel.com>
3866         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3867         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3868         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3869         * sysdeps/ieee754/flt-32/w_expf.c: New file.
3870         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
3871         the new expf code.
3872         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
3873         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
3874         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
3875         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
3876         * sysdeps/i386/fpu/w_exp2f.c: New file.
3877         * sysdeps/i386/fpu/w_expf.c: New file.
3878         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
3879         * sysdeps/x86_64/fpu/w_expf.c: New file.
3881 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3883         * math/Versions (logf): New libm symbol at GLIBC_2.27.
3884         (log2f): Likewise.
3885         (powf): Likewise.
3886         * math/w_log2f.c: New file.
3887         * math/w_logf.c: New file.
3888         * math/w_powf.c: New file.
3889         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
3890         * math/w_logf_compat.c (__logf_compat): Likewise.
3891         * math/w_powf_compat.c (__powf_compat): Likewise.
3892         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
3893         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3894         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3895         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3896         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3897         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3898         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3899         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3900         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3901         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3902         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3903         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3904         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3905         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3906         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3908         Likewise.
3909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3910         Likewise.
3911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3912         Likewise.
3913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3914         Likewise.
3915         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3916         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3917         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3918         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3919         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3920         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3921         Likewise.
3922         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3923         Likewise.
3924         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3925         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3926         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3928 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3930         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3931         (sysdep_routines): Add memrchr_power8.
3932         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3933         (memrchr): Add __memrchr_power8 to list of memrchr functions.
3934         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
3935         New file.
3936         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3937         (memrchr): Add __memrchr_power8 to ifunc list.
3938         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
3940 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3942         [BZ #18822]
3943         * sysdeps/unix/sysv/linux/posix_fadvise64.c
3944         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
3945         libc_hidden_def.
3946         * sysdeps/unix/sysv/linux/posix_fallocate64.c
3947         (__posix_fallocate64_l64): Likewise.
3949 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3951         [BZ #18822]
3952         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3953         (__sched_setaffinity_new): Add libc_hidden_proto and
3954         libc_hidden_def.
3956 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3958         [BZ #18822]
3959         * include/glob.h (__glob64): Add libc_hidden_proto.
3960         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
3961         libc_hidden_def.
3963 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3965         [BZ #18822]
3966         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3967         attribute_hidden.
3969 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3971         [BZ #18822]
3972         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3974 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3976         [BZ #18822]
3977         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3978         libc_hidden_def.
3980 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3982         [BZ #18822]
3983         * csu/version.c (__libc_print_version): Add attribute_hidden.
3985 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3987         [BZ #18822]
3988         * include/libc-internal.h (__init_misc): Add attribute_hidden.
3990 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3992         [BZ #18822]
3993         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
3995 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3997         [BZ #18822]
3998         * nscd/nscd_helper.c (__nis_hash): New prototype.
4000 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4002         [BZ #18822]
4003         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4004         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4005         libc_hidden_def.
4006         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4007         * termios/tcgetattr.c (__tcgetattr): Likewise.
4009 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4011         [BZ #18822]
4012         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4013         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4014         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4015         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4016         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4018 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4020         [BZ #18822]
4021         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4023 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4025         [BZ #18822]
4026         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4027         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4029 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4031         [BZ #18822]
4032         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4034 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4036         [BZ #18822]
4037         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4038         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4040 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4042         [BZ #18822]
4043         * include/ifreq.h: New file.
4044         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4045         (__ifreq): Likewise.
4046         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4047         (__ifreq): Likewise.
4049 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4051         [BZ #18822]
4052         * include/idna.h: New file.
4053         * inet/getnameinfo.c: Include <idna.h> instead of
4054         <libidn/idna.h>.
4055         (__idna_to_unicode_lzlz): Removed.
4056         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4057         <libidn/idna.h>.
4058         (__idna_to_ascii_lz): Removed.
4059         (__idna_to_unicode_lzlz): Likewise.
4061 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4063         [BZ #18822]
4064         * include/plural-exp.h: New file.
4065         * intl/plural-exp.c: Include <plural-exp.h> instead of
4066         "plural-exp.h".
4068 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4070         [BZ #18822]
4071         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4072         "getsourcefilter.h".
4073         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4074         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4075         "getsourcefilter.h".
4076         (__get_sol): Removed.
4078 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4080         [BZ #18822]
4081         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4082         to ...
4083         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4085 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4087         [BZ #18822]
4088         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4089         attribute_hidden.
4091 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4093         [BZ #18822]
4094         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4096 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4098         [BZ #18822]
4099         * include/search.h (__tdestroy): Add libc_hidden_proto.
4100         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4102 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4104         [BZ #18822]
4105         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4107 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4109         [BZ #18822]
4110         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4111         attribute_hidden.
4113 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4115         [BZ #18822]
4116         * include/signal.h (__kill): Add libc_hidden_proto.
4117         (__sigblock): Likewise.
4118         (__sigprocmask): Likewise.
4119         (__sigaltstack): Likewise.
4120         * signal/kill.c (__kill): Add libc_hidden_def.
4121         * signal/sigblock.c (__sigblock): Likewise.
4122         * signal/sigprocmask.c (__sigprocmask): Likewise.
4123         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4124         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4125         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4126         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4127         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4128         Likewise.
4129         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4130         Likewise.
4131         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4132         (__sigprocmask): Likewise.
4133         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4134         Likewise.
4135         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4136         (__sigprocmask): Likewise.
4137         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4138         Likewise.
4140 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4142         [BZ #18822]
4143         * include/string.h (__strsep): Add libc_hidden_proto.
4144         * string/strsep.c (__strsep): Add libc_hidden_def.
4146 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4148         [BZ #18822]
4149         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4150         attribute_hidden.
4151         (__spawni): Likewise.
4153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4155         [BZ #18822]
4156         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4157         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4158         libc_hidden_def.
4160 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4162         [BZ #18822]
4163         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4165 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4167         [BZ #18822]
4168         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4169         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4170         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4171         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4172         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4173         Likewise.
4174         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4175         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4177 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4179         [BZ #18822]
4180         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4181         (__dcigettext): Likewise.
4183 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4185         [BZ #18822]
4186         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4187         libc_hidden_proto.
4188         (__get_nprocs): Likewise.
4189         (__get_phys_pages): Likewise.
4190         (__get_avphys_pages): Likewise.
4191         (__get_child_max): Add attribute_hidden.
4192         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4193         (__get_nprocs): Likewise.
4194         (__get_phys_pages): Likewise.
4195         (__get_avphys_pages): Likewise.
4196         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4197         libc_hidden_def.
4198         (__get_nprocs): Likewise.
4199         (__get_phys_pages): Likewise.
4200         (__get_avphys_pages): Likewise.
4201         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4202         libc_hidden_def.
4203         (__get_nprocs_conf): Likewise.
4204         (__get_phys_pages): Likewise.
4205         (__get_avphys_pages): Likewise.
4207 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4209         [BZ #18822]
4210         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4211         attribute_hidden.
4212         (__netlink_close): Likewise.
4213         (__netlink_free_handle): Likewise.
4214         (__netlink_request): Likewise.
4216 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4218         [BZ #18822]
4219         * include/rpc/rpc.h (__rpc_thread_variables): Add
4220         attribute_hidden.
4221         (__rpc_thread_svc_cleanup): Likewise.
4222         (__rpc_thread_clnt_cleanup): Likewise.
4223         (__rpc_thread_key_cleanup): Likewise.
4225 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4227         [BZ #18822]
4228         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4229         (__writev): Likewise.
4230         * misc/readv.c (__readv): Add libc_hidden_def.
4231         * misc/writev.c (__writev): Likewise.
4232         * sysdeps/posix/readv.c (__readv): Likewise.
4233         * sysdeps/posix/writev.c (__writev): Likewise.
4234         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4235         (__readv): Likewise.
4236         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4237         (__writev): Likewise.
4239 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4241         [BZ #18822]
4242         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4243         (__regcomp): Add libc_hidden_proto.
4244         (__regexec): Likewise.
4245         (__regfree): Likewise.
4246         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4247         (__regfree): Likewise.
4248         * posix/regexec.c (__regexec): Likewise.
4250 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4252         [BZ #18822]
4253         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4254         (__getutent): Likewise.
4255         (__getutid): Likewise.
4256         (__getutline): Likewise.
4257         (__pututline): Likewise.
4258         (__getutent_r): Likewise.
4259         (__getutid_r): Likewise.
4260         (__getutline_r): Likewise.
4261         (__utmpname): Add attribute_hidden.
4262         (__setutent): Likewise.
4263         (__endutent): Likewise.
4264         * login/getutent.c (__getutent): Add libc_hidden_def.
4265         * login/getutent_r.c (__getutent_r): Likewise.
4266         (__pututline): Likewise.
4267         * login/getutid.c (__getutid): Likewise.
4268         * login/getutid_r.c (__getutid_r): Likewise.
4269         * login/getutline.c (__getutline): Likewise.
4270         * login/getutline_r.c (__getutline_r): Likewise.
4271         * login/updwtmp.c (__updwtmp): Likewise.
4273 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4275         [BZ #18822]
4276         * include/dirent.h (__opendir): Always add attribute_hidden.
4277         (__fdopendir): Likewise.
4278         (__closedir): Likewise.
4279         (__readdir): Likewise.
4280         (__readdir64): Add libc_hidden_proto.
4281         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4282         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4283         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4284         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4285         New alias.
4287 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4289         [BZ #18822]
4290         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4291         * include/netdb.h (__gethostbyaddr_r): Likewise.
4292         (__gethostbyname_r): Likewise.
4293         (__gethostbyname2_r): Likewise.
4294         (__getnetbyaddr_r): Likewise.
4295         (__getnetbyname_r): Likewise.
4296         (__getservbyname_r): Likewise.
4297         (__getservbyport_r): Likewise.
4298         (__getprotobyname_r): Likewise.
4299         (__getprotobynumber_r): Likewise.
4300         (__getnetgrent_r): Likewise.
4301         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4302         (__getrpcbynumber_r): Likewise.
4303         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4305 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4307         [BZ #18822]
4308         * include/stdio.h (__fcloseall): Add attribute_hidden.
4309         (__getline): Likewise.
4310         (__path_search): Likewise.
4311         (__gen_tempname): Likewise.
4312         (__libc_message): Likewise.
4313         (__flockfile): Likewise.
4314         (__funlockfile): Likewise.
4315         (__fxprintf): Likewise.
4316         (__fxprintf_nocancel): Likewise.
4318 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4320         [BZ #18822]
4321         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4322         (__sgetsgent_r): Likewise.
4324 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4326         [BZ #18822]
4327         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4328         (__statfs64): Likewise.
4329         (__fstatfs64): Likewise.
4330         * include/sys/statvfs.h (__statvfs64): Likewise.
4331         (__fstatvfs64): Likewise.
4332         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4333         (__statfs_filesize_max): Likewise.
4334         (__statfs_symlinks): Likewise.
4335         (__statfs_chown_restricted): Likewise.
4337 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4339         [BZ #18822]
4340         * include/time.h (__tzstring): Add attribute_hidden.
4341         (__tzfile_read): Likewise.
4342         (__tzfile_compute): Likewise.
4343         (__tzfile_default): Likewise.
4344         (__tzset_parse_tz): Likewise.
4345         (__offtime): Likewise.
4346         (__asctime_r): Likewise.
4347         (__tzset): Likewise.
4348         (__tz_convert): Likewise.
4349         (__getdate_r): Likewise.
4350         (__getclktck): Likewise.
4352 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4354         [BZ #18822]
4355         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4356         (__nscd_unmap): Likewise.
4357         (__nscd_cache_search): Likewise.
4358         (__nscd_get_nl_timestamp): Likewise.
4359         (__nscd_getpwnam_r): Likewise.
4360         (__nscd_getpwuid_r): Likewise.
4361         (__nscd_getgrnam_r): Likewise.
4362         (__nscd_getgrgid_r): Likewise.
4363         (__nscd_gethostbyname_r): Likewise.
4364         (__nscd_gethostbyname2_r): Likewise.
4365         (__nscd_gethostbyaddr_r): Likewise.
4366         (__nscd_getai): Likewise.
4367         (__nscd_getgrouplist): Likewise.
4368         (__nscd_getservbyname_r): Likewise.
4369         (__nscd_getservbyport_r): Likewise.
4370         (__nscd_innetgr): Likewise.
4371         (__nscd_setnetgrent): Likewise.
4373 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4375         [BZ #18822]
4376         * include/gmp.h: Declare internal functions only if _ISOMAC is
4377         undefined.
4378         (__mpn_extract_double): Add attribute_hidden.
4379         (__mpn_extract_long_double): Likewise.
4380         (__mpn_extract_float128): Likewise.
4381         (__mpn_construct_float): Likewise.
4382         (__mpn_construct_double): Likewise.
4383         (__mpn_construct_long_double): Likewise.
4384         (__mpn_construct_float128): Likewise.
4385         (mpn_add_1): Likewise.
4386         (mpn_addmul_1): Likewise.
4387         (mpn_add_n): Likewise.
4388         (mpn_cmp): Likewise.
4389         (mpn_divrem): Likewise.
4390         (mpn_lshift): Likewise.
4391         (mpn_mul): Likewise.
4392         (mpn_mul_1): Likewise.
4393         (mpn_rshift): Likewise.
4394         (mpn_sub_1): Likewise.
4395         (mpn_submul_1): Likewise.
4396         (mpn_sub_n): Likewise.
4398 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4400         [BZ #18822]
4401         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4402         (__wcscat): Likewise.
4403         (__btowc): Likewise.
4404         (__wcrtomb): Likewise.
4405         (__mbsrtowcs): Likewise.
4406         (__wcsrtombs): Likewise.
4407         (__mbsnrtowcs): Likewise.
4408         (__wcsnrtombs): Likewise.
4409         (__wcsncpy): Likewise.
4410         (__wcpncpy): Likewise.
4411         (__wmemcpy): Likewise.
4412         (__wmempcpy): Likewise.
4413         (__wmemmove): Likewise.
4414         (__wcschrnul): Likewise.
4415         (__vfwscanf): Likewise.
4416         (__vswprintf): Likewise.
4417         (__fwprintf): Likewise.
4418         (__vfwprintf): Likewise.
4420 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4422         [BZ #18822]
4423         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4424         (__getgrgid_r): Likewise.
4425         (__getgrnam_r): Likewise.
4426         * include/pwd.h (__getpwuid_r): Likewise.
4427         (__getpwnam_r): Likewise.
4428         (__fgetpwent_r): Likewise.
4429         * include/shadow.h (__getspnam_r): Likewise.
4430         (__sgetspent_r): Likewise.
4431         (__fgetspent_r): Likewise.
4433 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4435         [BZ #18822]
4436         * include/unistd.h (__access): Add attribute_hidden.
4437         (__lseek64): Likewise.
4438         (__libc_pread64): Likewise.
4439         (__pipe2): Likewise.
4440         (__sleep): Likewise.
4441         (__chdir): Likewise.
4442         (__fchdir): Likewise.
4443         (__getcwd): Likewise.
4444         (__rmdir): Likewise.
4445         (__execvpe): Likewise.
4446         (__execve): Likewise.
4447         (__setsid): Likewise.
4448         (__getuid): Likewise.
4449         (__geteuid): Likewise.
4450         (__getgid): Likewise.
4451         (__getegid): Likewise.
4452         (__getgroups): Likewise.
4453         (__group_member): Likewise.
4454         (__ttyname_r): Likewise.
4455         (__isatty): Likewise.
4456         (__readlink): Likewise.
4457         (__unlink): Likewise.
4458         (__gethostname): Likewise.
4459         (__profil): Likewise.
4460         (__getdtablesize): Likewise.
4461         (__brk): Likewise.
4462         (__ftruncate): Likewise.
4463         (__ftruncate64): Likewise.
4465 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4467         [BZ #18822]
4468         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4469         * argp/argp-fs-xinl.c: Likewise.
4470         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4471         * argp/argp-parse.c: Include <argp.h>.
4472         * argp/argp-xinl.c: Likewise.
4473         * include/argp-fmtstream.h: New file.
4474         * include/argp.h (__argp_error): Add attribute_hidden.
4475         (__argp_failure): Likewise.
4476         (__argp_input): Likewise.
4477         (__argp_state_help): Likewise.
4479 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4481         [BZ #18822]
4482         * include/wchar.h (____wcstof_l_internal): New prototype.
4483         (____wcstod_l_internal): Likewise.
4484         (____wcstold_l_internal): Likewise.
4485         (____wcstol_l_internal): Likewise.
4486         (____wcstoul_l_internal): Likewise.
4487         (____wcstoll_l_internal): Likewise.
4488         (____wcstoull_l_internal): Likewise.
4489         (____wcstof128_l_internal): Likewise.
4490         * sysdeps/ieee754/float128/wcstof128.c
4491         (____wcstof128_l_internal): Removed.
4492         * sysdeps/ieee754/float128/wcstof128_l.c
4493         (____wcstof128_l_internal): Likewise.
4494         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4495         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4496         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4497         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4498         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4499         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4500         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4501         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4502         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4503         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4505 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4507         [BZ #18822]
4508         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4509         instead of <sys/statvfs.h>.
4510         (__internal_statvfs): Removed.
4511         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4512         instead of <sys/statvfs.h>.
4513         (__internal_statvfs64): Removed.
4514         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4515         "internal_statvfs.h" instead of <sys/statvfs.h>.
4516         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4517         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4518         instead of <sys/statvfs.h>.
4519         (__internal_statvfs): Removed.
4520         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4521         instead of <sys/statvfs.h>.
4522         (__internal_statvfs64): Removed.
4524 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4526         [BZ #18822]
4527         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4528         (__gconv_close): Likewise.
4529         (__gconv): Likewise.
4530         (__gconv_find_transform): Likewise.
4531         (__gconv_lookup_cache): Likewise.
4532         (__gconv_compare_alias_cache): Likewise.
4533         (__gconv_load_cache): Likewise.
4534         (__gconv_get_path): Likewise.
4535         (__gconv_close_transform): Likewise.
4536         (__gconv_release_cache): Likewise.
4537         (__gconv_find_shlib): Likewise.
4538         (__gconv_release_shlib): Likewise.
4539         (__gconv_get_builtin_trans): Likewise.
4540         (__gconv_compare_alias): Likewise.
4541         * include/dlfcn.h (_dlerror_run): Likewise.
4542         * include/stdio.h (__fortify_fail_abort): Likewise.
4543         * include/time.h (__tz_compute): Likewise.
4544         (__strptime_internal): Likewise.
4545         * intl/gettextP.h (_nl_find_domain): Likewise.
4546         (_nl_load_domain): Likewise.
4547         (_nl_find_msg): Likewise.
4548         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4549         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4550         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4551         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4552         (__gai_find_request): Likewise.
4553         (__gai_remove_request): Likewise.
4554         (__gai_notify): Likewise.
4555         (__gai_notify_only): Likewise.
4556         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4557         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4558         (_dl_non_dynamic_init): Likewise.
4559         (_dl_aux_init): Likewise.
4560         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4561         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4562         Likewise.
4563         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4564         (__wcsmbs_clone_conv): Likewise.
4565         (__wcsmbs_named_conv): Likewise.
4567 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4569         [BZ #18822]
4570         * include/stdlib.h (__random): Add attribute_hidden.
4571         (__random_r): Likewise.
4572         (__srandom_r): Likewise.
4573         (__initstate_r): Likewise.
4574         (__setstate_r): Likewise.
4575         (__erand48_r): Likewise.
4576         (__nrand48_r): Likewise.
4577         (__jrand48_r): Likewise.
4578         (__srand48_r): Likewise.
4579         (__seed48_r): Likewise.
4580         (__lcong48_r): Likewise.
4581         (__drand48_iterate): Likewise.
4582         (__setenv): Likewise.
4583         (__unsetenv): Likewise.
4584         (__clearenv): Likewise.
4585         (__ptsname_r): Likewise.
4586         (__posix_openpt): Likewise.
4587         (__add_to_environ): Likewise.
4588         (__realpath): Add libc_hidden_proto.
4589         (__ecvt_r): Likewise.
4590         (__fcvt_r): Likewise.
4591         (__qecvt_r): Likewise.
4592         (__qfcvt_r): Likewise.
4593         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4594         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4596 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4598         [BZ #18822]
4599         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4600         * include/time.h (__mktime_internal): Likewise.
4601         * libio/iolibio.h (__fopen_internal): Likewise.
4603 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4605         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4606         pointer in frame.
4607         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4608         Correct offset used to restore PIC register.
4610 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4612         [BZ libc/22165]
4613         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4614         code to load address of __getcontext_ret when generating PIC code.
4616 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4618         * elf/Makefile (tests-static-internal): Add
4619         tst-tls1-static-non-pie.
4620         (LDFLAGS-tst-tls1-static-non-pie): New.
4621         * elf/tst-tls1-static-non-pie.c: New file.
4623 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4625         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4626         (asinh): Define using libm_alias_double.
4627         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4628         (cbrt): Define using libm_alias_double.
4629         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4630         <libm-alias-double.h>.
4631         (copysign): Define using libm_alias_double.
4632         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4633         (erf): Define using libm_alias_double.
4634         (erfc): Likewise.
4635         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4636         (expm1): Define using libm_alias_double.
4637         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4638         (fabs): Define using libm_alias_double.
4639         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4640         libm_alias_double.
4641         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4642         <libm-alias-double.h>.
4643         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4644         libm_alias_double.
4645         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4646         <libm-alias-double.h>.
4647         (getpayload): Define using libm_alias_double.
4648         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4649         <libm-alias-double.h>.
4650         (llrint): Define using libm_alias_double.
4651         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4652         (lrint): Define using libm_alias_double.
4653         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4654         <libm-alias-double.h>.
4655         (nextup): Define using libm_alias_double.
4656         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4657         <libm-alias-double.h>.
4658         (roundeven): Define using libm_alias_double.
4659         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4660         libm_alias_double.
4661         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4662         <libm-alias-double.h>.
4663         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4664         using libm_alias_double.
4665         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4666         (cos): Define using libm_alias_double.
4667         (sin): Likewise.
4668         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4669         <libm-alias-double.h>.
4670         (sincos): Define using libm_alias_double.
4671         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4672         (tanh): Define using libm_alias_double.
4673         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4674         <libm-alias-double.h>.
4675         (totalorder): Define using libm_alias_double.
4676         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4677         <libm-alias-double.h>.
4678         (totalordermag): Define using libm_alias_double.
4679         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4680         libm_alias_double.
4681         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4682         libm_alias_double.
4683         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4684         <libm-alias-double.h>.
4685         (getpayload): Define using libm_alias_double.
4686         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4687         <libm-alias-double.h>.
4688         (roundeven): Define using libm_alias_double.
4689         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4690         <libm-alias-double.h>.
4691         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4692         <libm-alias-double.h>.
4693         (totalorder): Define using libm_alias_double.
4694         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4695         <libm-alias-double.h>.
4696         (totalordermag): Define using libm_alias_double.
4697         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4698         libc compat symbol here.
4699         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4700         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4701         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4702         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4703         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4704         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4705         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4706         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4707         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4708         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4710 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4712         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4713         _dl_relocate_static_pie instead of _dl_start to compute load
4714         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4715         static executable.
4717 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4719         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4720         _DYNAMIC is undefined for static executable.
4722 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4724         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4726 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4728         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4730 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4732         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4733         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4734         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4735         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4736         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4737         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4738         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4739         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4740         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4741         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4742         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4743         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4744         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4745         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4746         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4747         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4748         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4750 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4752         * math/bits/cmathcalls.h (cimag): Remove inline.
4753         (creal): Remove inline.
4754         (conj): Remove inline.
4756 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4758         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4759         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4760         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4761         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4762         (issignalingf_inline): Likewise.
4763         (POWF_LOG2_TABLE_BITS): Likewise.
4764         (POWF_LOG2_POLY_ORDER): Likewise.
4765         (POWF_SCALE_BITS): Likewise.
4766         (POWF_SCALE): Likewise.
4767         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4768         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4769         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4771 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4773         * math/Makefile (type-float-routines): Add e_log2f_data.
4774         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4775         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4776         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4777         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4778         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4779         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4780         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4782 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4784         * math/Makefile (type-float-routines): Add e_logf_data.
4785         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4786         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4787         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4788         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4789         * sysdeps/i386/fpu/e_logf_data.c: New file.
4790         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4791         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4793 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4795         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4796         undefined _DYNAMIC in PIE libc.a.
4797         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4798         Likewse.
4800 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4802         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4803         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4804         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4805         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4806         (__signbit): Remove.
4807         (__signbitl): Remove.
4808         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4809         (__signbit): Remove.
4810         (__signbitl): Remove.
4811         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4812         (__signbit): Remove.
4813         (__signbitl): Remove.
4814         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4815         (__signbit): Remove.
4816         (__signbitl): Remove.
4817         * sysdeps/tile/bits/mathinline.h: Delete file.
4818         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4819         (__signbit): Remove.
4820         (__signbitl): Remove.
4822 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4824         * math/math.h: Improve handling of C99 isgreater macros.
4825         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4826         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4827         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4828         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4829         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4831 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4833         * sysdeps/aarch64/libm-test-ulps: Update.
4835 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4837         [BZ #22225]
4838         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4839         math_opt_barrier on argument when doing arithmetic on it.
4840         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4841         Likewise.  Use math_force_eval not math_opt_barrier after
4842         arithmetic.
4843         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4844         math_opt_barrier on argument when doing arithmetic on it.
4845         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4846         Likewise.
4848 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4850         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4851         libc_hidden_def.
4852         (__freeifaddrs): Likewise.
4854 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4856         * include/dirent.h (__dirfd): New declaration.
4857         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4858         alias.
4859         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4860         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4861         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4862         * include/unistd.h (__revoke): New declaration.
4863         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4864         alias.
4865         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4866         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4867         revoke.
4868         * include/dirent.h (__seekdir): New declaration.
4869         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
4870         redefine as weak alias.
4871         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
4872         of seekdir.
4873         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
4874         and use libc_hidden_def on them.
4875         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
4876         them.
4877         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
4878         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
4879         instead of getifaddrs and freeifaddrs.
4881 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4883         [BZ #18822]
4884         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
4885         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
4886         (__dso_handle): Remove declaration.
4887         * dlfcn/tstatexit.c (__dso_handle): Removed.
4888         (main): Don't check __dso_handle.
4889         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
4890         (main): Don't check __dso_handle.
4891         * include/dso_handle.h: New file.
4892         * malloc/mtrace.c: Include <dso_handle.h>.
4893         (mtrace): Pass __dso_handle directly.
4894         * nptl/pthread_atfork.c: Include <dso_handle.h>.
4895         (__dso_handle): Remove declaration.
4896         (__pthread_atfork): Pass __dso_handle directly.
4897         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
4898         (__dso_handle): Removed.
4899         * posix/wordexp-test.c: Include <dso_handle.h>.
4900         (__dso_handle): Remove declaration.
4901         (__app_register_atfork): Pass __dso_handle directly.
4902         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
4903         (__dso_handle): Remove declaration.
4904         (at_quick_exit): Pass __dso_handle directly.
4905         * stdlib/atexit.c: Include <dso_handle.h>.
4906         (__dso_handle): Remove declaration.
4907         (atexit): Pass __dso_handle directly.
4908         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
4909         (__dso_handle): Removed.
4911 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4913         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
4914         using VDSO.
4916 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
4918         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
4919         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
4920         values to correct default value for given type.
4922 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4924         [BZ #22101]
4925         * elf/Makefile (tests): Add tst-debug1.
4926         ($(objpfx)tst-debug1): New.
4927         ($(objpfx)tst-debug1.out): Likewise.
4928         ($(objpfx)tst-debug1mod1.so): Likewise.
4929         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
4930         with p_filesz == 0.
4931         * elf/tst-debug1.c: New file.
4933 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4935         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
4936         Define using __ifunc.
4938 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4940         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
4941         exp2f() values.
4943 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4945         [BZ #22156]
4946         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
4948 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4950         * resolv/Makefile (tests-internal): Fix typo in comment.
4952 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4954         * resolv/nss_dns/dns-host.c: Fix typo in comment.
4956 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4958         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
4959         Use an union instead of a max_align_t array for __space,
4960         so that __space is the same size on all platforms.
4961         * malloc/scratch_buffer_grow_preserve.c
4962         (__libc_scratch_buffer_grow_preserve): Likewise.
4964         [BZ #22183]
4965         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4966         version to 2.
4967         * posix/Makefile (routines): Add glob-lstat-compat and
4968         glob64-lstat-compat.
4969         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4970         * posix/glob-lstat-compat.c: New file.
4971         * posix/glob64-lstat-compat.c: Likewise.
4972         * posix/tst-glob_lstat_compat.c: Likewise.
4973         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4974         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4975         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4976         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4977         Likewise.
4978         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4979         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4980         * posix/glob.c (glob_lstat): New function.
4981         (glob): Rename to __glob and add versioned symbol to 2.27.
4982         (glob_in_dir): Use glob_lstat.
4983         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
4984         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4985         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
4986         2.27.
4987         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
4988         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
4989         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
4990         gl_lstat on glob call.
4991         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
4992         and glob64 symbols.
4993         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4994         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4995         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4996         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4997         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4998         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4999         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5000         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5001         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5002         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5003         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5004         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5006         Likewise.
5007         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5009         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5010         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5011         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5012         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5013         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5014         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5015         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5016         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5017         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5018         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5020 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5022         * configure.ac (AS): Require binutils 2.25 or later.
5023         * configure: Regenerated.
5025 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5027         [BZ #22207]
5028         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5029         VM size.
5031 2017-09-25  DJ Delorie  <dj@redhat.com>
5033         [BZ #22161]
5034         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5035         resetting timeout.
5037 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5039         * sysdeps/ieee754/dbl-64/sincos32.h
5040         [SINCCOS32_H]: Remove define.
5041         [SINCOS32_H]: Define.
5043 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5045         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5046         (exp2f): Likewise.
5047         * math/w_exp2f.c: New file.
5048         * math/w_expf.c: New file.
5049         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5050         * math/w_expf_compat.c (__expf_compat): Likewise.
5051         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5052         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5053         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5054         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5055         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5056         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5057         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5058         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5059         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5060         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5061         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5062         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5063         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5064         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5066         Likewise.
5067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5068         Likewise.
5069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5070         Likewise.
5071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5072         Likewise.
5073         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5074         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5075         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5076         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5077         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5079         Likewise.
5080         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5081         Likewise.
5082         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5083         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5084         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5086 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5088         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5089         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5090         (roundtoint, converttoint): Likewise.
5091         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5092         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5093         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5094         * sysdeps/ieee754/flt-32/math_config.h: New file.
5095         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5096         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5097         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5098         * sysdeps/i386/fpu/math_errf.c: New file.
5099         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5100         * sysdeps/ia64/fpu/math_errf.c: New file.
5101         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5102         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5104 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5106         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5107         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5108         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5109         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5110         to make sure that these symbols are defined.
5111         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5112         of <limits.h>
5113         (__need_NULL): Do not define.
5114         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5115         alignment.
5116         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5117         CMGROUP_MAX, cmsgcred): Do not define.
5118         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5119         NULL.
5120         * bits/socket.h: Likewise.
5121         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5122         __gettimeofday instead of gettimeofday.
5123         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5124         instead of settimeofday.
5126 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5128         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5129         (asinhf): Define using libm_alias_float.
5130         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5131         (atanf): Define using libm_alias_float.
5132         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5133         (cbrtf): Define using libm_alias_float.
5134         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5135         (ceilf): Define using libm_alias_float.
5136         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5137         <libm-alias-float.h>.
5138         (copysignf): Define using libm_alias_float.
5139         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5140         (cosf): Define using libm_alias_float.
5141         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5142         (erff): Define using libm_alias_float.
5143         (erfcf): Likewise.
5144         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5145         (expm1f): Define using libm_alias_float.
5146         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5147         (fabsf): Define using libm_alias_float.
5148         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5149         (floorf): Define using libm_alias_float.
5150         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5151         (frexpf): Define using libm_alias_float.
5152         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5153         libm_alias_float.
5154         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5155         <libm-alias-float.h>.
5156         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5157         libm_alias_float.
5158         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5159         <libm-alias-float.h>.
5160         (getpayloadf): Define using libm_alias_float.
5161         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5162         <libm-alias-float.h>.
5163         (llrintf): Define using libm_alias_float.
5164         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5165         <libm-alias-float.h>.
5166         (llroundf): Define using libm_alias_float.
5167         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5168         (logbf): Define using libm_alias_float.
5169         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5170         (lrintf): Define using libm_alias_float.
5171         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5172         (lroundf): Define using libm_alias_float.
5173         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5174         (modff): Define using libm_alias_float.
5175         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5176         <libm-alias-float.h>.
5177         (nearbyintf): Define using libm_alias_float.
5178         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5179         <libm-alias-float.h>.
5180         (nextafterf): Define using libm_alias_float.
5181         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5182         <libm-alias-float.h>.
5183         (nextupf): Define using libm_alias_float.
5184         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5185         <libm-alias-float.h>.
5186         (remquof): Define using libm_alias_float.
5187         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5188         (rintf): Define using libm_alias_float.
5189         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5190         <libm-alias-float.h>.
5191         (roundevenf): Define using libm_alias_float.
5192         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5193         (roundf): Define using libm_alias_float.
5194         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5195         using libm_alias_float.
5196         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5197         <libm-alias-float.h>.
5198         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5199         Define using libm_alias_float.
5200         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5201         <libm-alias-float.h>.
5202         (sincosf): Define using libm_alias_float.
5203         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5204         (sinf): Define using libm_alias_float.
5205         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5206         (tanf): Define using libm_alias_float.
5207         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5208         (tanhf): Define using libm_alias_float.
5209         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5210         <libm-alias-float.h>.
5211         (totalorderf): Define using libm_alias_float.
5212         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5213         <libm-alias-float.h>.
5214         (totalordermagf): Define using libm_alias_float.
5215         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5216         (truncf): Define using libm_alias_float.
5217         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5218         libm_alias_float.
5219         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5220         libm_alias_float.
5222 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5224         [BZ #22146]
5225         math/math.h: Let fpclassify use the builtin in C++ mode, even
5226         when optimazing for size.
5228 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5230         * csu/Makefile (generated): Do not add version-info.h.
5231         (before-compile): Likewise.
5232         (all-Banner-files): Remove variable.
5233         ($(objpfx)version-info.h): Remove rule.
5234         * csu/version.c (banner): Do not include "version-info.h".
5235         * libidn/Banner: Remove.
5236         * manual/contrib.texi (Simon Josefsson): New entry.
5238 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5240         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5241         Remove conditionals on LDBL_MANT_DIG.
5242         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5243         (__ieee754_lgammal_r): Likewise.
5245 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5247         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5248         _Float128 and L().
5249         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5250         _Float128 and L(). Replace _Float128 with long double and L(x)
5251         with xL, throughout the file.
5252         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5253         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5254         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5255         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5257 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5259         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5260         sysdeps/ieee754/ldbl-128ibm.
5261         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5262         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5263         of including it.  Keep _Float128 and L() intact.  These will be
5264         reviewed by a separate patch.
5265         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5266         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5267         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5268         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5270 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5273         (__finitef128): Define to __redirect___finitef128.
5274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5275         (__isinff128): Define to __redirect___isinff128.
5276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5277         (__isnanf128): Define to __redirect___isnanf128.
5279 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5281         * sysdeps/powerpc/powerpc64le/Makefile
5282         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5283         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5285 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5286             Carlos O'Donell  <carlos@redhat.com>
5288         [BZ #22180]
5289         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5290         * stdlib/test-dlclose-exit-race.c: New file.
5291         * stdlib/test-dlclose-exit-race-helper.c: New file.
5292         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5294 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5296         * crypt/Banner: Remove file.
5297         * nptl/Banner: Likewise.
5298         * resolv/Banner: Likewise.
5299         * soft-fp/Banner: Likewise.
5300         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5301         ($(objpfx)version.d): Remove dependency on banner.h.
5302         ($(objpfx)version.os): Likewise.
5303         * nptl/version.c (banner): Do not include banner.h.
5304         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5305         Jelinek and BIND code.
5307 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5308             Carlos O'Donell  <carlos@redhat.com>
5310         * support/xdlfcn.h: New file.
5311         * support/xdlfcn.c: New file.
5312         * support/Makefile (libsupport-routines): Add xdlfcn.
5313         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5315 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5317         [BZ #20142]
5318         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5319         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5320         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5321         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5322         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5323         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5324         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5325         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5327 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5328             Ricky Zhou  <rickyz@google.com>
5329             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5331         [BZ #14333]
5332         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5333         Remove atomics.
5334         (__new_exitfn): Fail registration when we finished at_exit processing.
5335         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5336         * stdlib/on_exit.c (__on_exit): Likewise.
5337         * stdlib/exit.c (__exit_funcs_done): New variable.
5338         (__run_exit_handlers): Use __exit_funcs_lock.
5339         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5340         declarations.
5341         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5342         (test-cxa_atexit-race, test-on_exit-race): New tests.
5343         * stdlib/test-atexit-race-common.c: New file.
5344         * stdlib/test-atexit-race.c: New file.
5345         * stdlib/test-at_quick_exit-race.c: New file.
5346         * stdlib/test-cxa_atexit-race.c: New file.
5347         * stdlib/test-on_exit-race.c: New file.
5349 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5351         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5352         * benchtests/exp2f-inputs: Copy of expf-inputs.
5353         * benchtests/log2f-inputs: Copy of logf-inputs.
5355 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5357         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5358         Explicitly take address of first element of array arguments in
5359         call to INLINE_SYSCALL.
5361 2017-09-19  Andreas Schwab  <schwab@suse.de>
5363         [BZ #22134]
5364         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5365         execveat first.
5366         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5367         unimplemented.
5368         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5369         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5370         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5371         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5372         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5373         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5374         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5375         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5376         * posix/Makefile (tests): Add tst-fexecve.
5377         * posix/tst-fexecve.c: New file.
5379 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5381         * benchtests/Makefile: Add logf benchmark.
5382         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5384 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5386         * benchtests/Makefile: Add expf benchmark.
5387         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5389 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5391         * csu/Makefile: Add -funwind-tables to libc-start.c.
5392         * debug/Makefile: Add -funwind-tables to backtrace.c.
5393         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5394         * sysdeps/arm/Makefile: Likewise.
5395         * sysdeps/i386/Makefile: Likewise.
5396         * sysdeps/m68k/Makefile: Likewise.
5397         * sysdeps/mips/Makefile: Likewise.
5398         * sysdeps/nios2/Makefile: Likewise.
5399         * sysdeps/sh/Makefile: Likewise.
5400         * sysdeps/sparc/Makefile: Likewise.
5402 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5404         * benchtests/Makefile (bench-math): Add trunc and truncf.
5405         (CFLAGS-bench-trunc.c): New variable.
5406         (CFLAGS-bench-truncf.c): Likewise.
5407         * benchtests/trunc-inputs: New file.
5408         * benchtests/truncf-inputs: Likewise.
5410 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5412         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5414 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5416         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5417         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5418         redefine.
5419         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5420         (exp10l): Define as weak alias.
5421         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5422         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5423         and redefine.
5424         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5425         (remainderl): Define as weak alias.
5427         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5428         (fmal): Define using libm_alias_ldouble.
5429         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5430         (acoshl): Define using libm_alias_ldouble.
5431         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5432         (acosl): Define using libm_alias_ldouble.
5433         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5434         (asinl): Define using libm_alias_ldouble.
5435         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5436         (atan2l): Define using libm_alias_ldouble.
5437         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5438         (atanhl): Define using libm_alias_ldouble.
5439         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5440         (coshl): Define using libm_alias_ldouble.
5441         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5442         (exp10l): Define using libm_alias_ldouble.
5443         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5444         (exp2l): Define using libm_alias_ldouble.
5445         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5446         (expl): Define using libm_alias_ldouble.
5447         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5448         (fmodl): Define using libm_alias_ldouble.
5449         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5450         (hypotl): Define using libm_alias_ldouble.
5451         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5452         (j0l): Define using libm_alias_ldouble.
5453         (y0l): Likewise.
5454         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5455         (j1l): Define using libm_alias_ldouble.
5456         (y1l): Likewise.
5457         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5458         (jnl): Define using libm_alias_ldouble.
5459         (ynl): Likewise.
5460         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5461         (log10l): Define using libm_alias_ldouble.
5462         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5463         (log2l): Define using libm_alias_ldouble.
5464         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5465         (logl): Define using libm_alias_ldouble.
5466         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5467         (powl): Define using libm_alias_ldouble.
5468         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5469         (remainderl): Define using libm_alias_ldouble.
5470         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5471         (sinhl): Define using libm_alias_ldouble.
5472         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5473         (sqrtl): Define using libm_alias_ldouble.
5474         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5475         (tgammal): Define using libm_alias_ldouble.
5476         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5477         (exp10l): Do not use long_double_symbol here.
5478         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5479         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5480         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5481         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5482         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5483         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5484         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5485         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5486         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5487         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5488         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5489         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5490         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5491         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5492         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5493         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5494         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5495         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5496         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5497         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5498         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5499         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5501 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5503         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5504         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5506 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5508         * io/read.c (read): Add libc_hidden_weak.
5509         * sysdeps/mach/hurd/read.c (read): Likewise.
5510         * io/write.c (write): Likewise.
5511         * sysdeps/mach/hurd/write.c (write): Likewise.
5512         * io/pread64.c (__pread64): Likewise.
5513         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5514         * posix/pread64.c (__pread64): Add libc_hidden_def.
5516 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5518         * benchtests/scripts/compare_strings.py: New option -g.
5519         (draw_graph): Print a message that a graph is being generated.
5520         (process_results): Generate graph only if -g is passed.
5521         (main): Process option -g.
5523         * benchtests/scripts/compare_strings.py (process_results):
5524         Better spacing for output.
5526         * benchtests/scripts/compare_strings.py: Use argparse.
5527         * benchtests/README: Document existence of compare_strings.py.
5529 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5531         * math/s_fma.c: Include <libm-alias-double.h>.
5532         (fma): Define using libm_alias_double.
5533         * math/s_nextafter.c: Include <libm-alias-double.h>.
5534         (nextafter): Define using libm_alias_double.
5535         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5536         (acos): Define using libm_alias_double.
5537         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5538         (aocsh): Define using libm_alias_double.
5539         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5540         (asin): Define using libm_alias_double.
5541         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5542         (atan2): Define using libm_alias_double.
5543         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5544         (atanh): Define using libm_alias_double.
5545         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5546         (cosh): Define using libm_alias_double.
5547         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5548         (exp10): Define using libm_alias_double.
5549         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5550         (exp2): Define using libm_alias_double.
5551         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5552         (exp): Define using libm_alias_double.
5553         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5554         (fmod): Define using libm_alias_double.
5555         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5556         (hypot): Define using libm_alias_double.
5557         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5558         (j0): Define using libm_alias_double.
5559         (y0): Likewise.
5560         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5561         (j1): Define using libm_alias_double.
5562         (y1): Likewise.
5563         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5564         (jn): Define using libm_alias_double.
5565         (yn): Likewise.
5566         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5567         (log10): Define using libm_alias_double.
5568         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5569         (log2): Define using libm_alias_double.
5570         * math/w_log_compat.c: Include <libm-alias-double.h>.
5571         (log): Define using libm_alias_double.
5572         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5573         (pow): Define using libm_alias_double.
5574         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5575         (remainder): Define using libm_alias_double.
5576         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5577         (sinh): Define using libm_alias_double.
5578         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5579         (sqrt): Define using libm_alias_double.
5580         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5581         (tgamma): Define using libm_alias_double.
5582         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5583         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5584         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5585         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5586         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5587         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5588         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5589         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5590         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5591         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5592         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5593         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5594         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5595         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5596         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5597         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5598         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5599         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5600         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5601         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5602         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5603         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5604         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5605         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5606         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5608         * math/e_acoshl.c: Remove.
5609         * math/e_acosl.c: Likewise.
5610         * math/e_asinl.c: Likewise.
5611         * math/e_atan2l.c: Likewise.
5612         * math/e_atanhl.c: Likewise.
5613         * math/e_coshl.c: Likewise.
5614         * math/e_expl.c: Likewise.
5615         * math/e_fmodl.c: Likewise.
5616         * math/e_gammal_r.c: Likewise.
5617         * math/e_hypotl.c: Likewise.
5618         * math/e_j0l.c: Likewise.
5619         * math/e_j1l.c: Likewise.
5620         * math/e_jnl.c: Likewise.
5621         * math/e_lgammal_r.c: Likewise.
5622         * math/e_log10l.c: Likewise.
5623         * math/e_log2l.c: Likewise.
5624         * math/e_logl.c: Likewise.
5625         * math/e_powl.c: Likewise.
5626         * math/e_rem_pio2l.c: Likewise.
5627         * math/e_sinhl.c: Likewise.
5628         * math/e_sqrtf128.c: Likewise.
5629         * math/e_sqrtl.c: Likewise.
5630         * math/k_cosl.c: Likewise.
5631         * math/k_sinl.c: Likewise.
5632         * math/k_tanl.c: Likewise.
5633         * math/s_asinhl.c: Likewise.
5634         * math/s_atanl.c: Likewise.
5635         * math/s_cbrtl.c: Likewise.
5636         * math/s_erfl.c: Likewise.
5637         * math/s_expm1l.c: Likewise.
5638         * math/s_log1pl.c: Likewise.
5639         * math/s_tanhl.c: Likewise.
5641 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5643         [BZ #21745]
5644         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5645         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5646         previous contents of sysdep_routines, but re-sorted..
5647         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5648         sysdep_calls.
5649         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5650         defined in sysdep_calls and replace by the respective m_* names.
5651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5652         (compat_symbol): Undefine to avoid duplicated compat symbols in
5653         libc.
5655 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5657         * math/s_fmaf.c: Include <libm-alias-float.h>.
5658         (fmaf): Define using libm_alias_float.
5659         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5660         (acosf): Define using libm_alias_float.
5661         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5662         (acoshf): Define using libm_alias_float.
5663         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5664         (asinf): Define using libm_alias_float.
5665         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5666         (atan2f): Define using libm_alias_float.
5667         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5668         (atanhf): Define using libm_alias_float.
5669         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5670         (coshf): Define using libm_alias_float.
5671         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5672         (exp10f): Define using libm_alias_float.
5673         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5674         (fmodf): Define using libm_alias_float.
5675         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5676         (hypotf): Define using libm_alias_float.
5677         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5678         (j0f): Define using libm_alias_float.
5679         (y0f): Likewise.
5680         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5681         (j1f): Define using libm_alias_float.
5682         (y1f): Likewise.
5683         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5684         (jnf): Define using libm_alias_float.
5685         (ynf): Likewise.
5686         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5687         (log10f): Define using libm_alias_float.
5688         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5689         (log2f): Define using libm_alias_float.
5690         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5691         (logf): Define using libm_alias_float.
5692         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5693         (powf): Define using libm_alias_float.
5694         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5695         (remainderf): Define using libm_alias_float.
5696         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5697         (sinhf): Define using libm_alias_float.
5698         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5699         (sqrtf): Define using libm_alias_float.
5700         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5701         (tgammaf): Define using libm_alias_float.
5703 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5705         * include/math.h (roundeven): Change hidden_proto call to
5706         __roundeven.
5707         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5708         alias.
5709         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5710         (y0): Rename to __y0 and define as weak alias.
5711         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5712         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5713         alias.
5714         (y0f): Rename to __y0f and define as weak alias.
5715         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5716         alias.
5717         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5718         (y1): Rename to __y1 and define as weak alias.
5719         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5720         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5721         alias.
5722         (y1f): Rename to __y1f and define as weak alias.
5723         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5724         alias.
5725         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5726         (yn): Rename to __yn and define as weak alias.
5727         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5728         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5729         alias.
5730         (ynf): Rename to __ynf and define as weak alias.
5731         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5732         (fromfp): Define as weak alias.
5733         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5734         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5735         (fromfpx): Define as weak alias.
5736         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5737         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5738         __getpayload and define as weak alias.
5739         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5740         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5741         __roundeven and define as weak alias.
5742         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5743         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5744         __setpayload.
5745         (setpayload): Define as weak alias.
5746         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5747         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5748         __setpayloadsig.
5749         (setpayloadsig): Define as weak alias.
5750         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5751         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5752         __totalorder and define as weak alias.
5753         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5754         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5755         to __totalordermag and define as weak alias.
5756         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5757         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5758         (ufromfp): Define as weak alias.
5759         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5760         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5761         __ufromfpx.
5762         (ufromfpx): Define as weak alias.
5763         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5764         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5765         Rename to __getpayload and define as weak alias.
5766         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5767         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5768         Rename to __roundeven and define as weak alias.
5769         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5770         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5771         Rename to __totalorder and define as weak alias.
5772         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5773         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5774         (totalordermag): Rename to __totalordermag and define as weak
5775         alias.
5776         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5777         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5778         macro.
5779         (__roundevenl): Likewise.
5780         (__totalorderl): Likewise.
5781         (__totalordermagl): Likewise
5782         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5783         __fromfpf128.
5784         (fromfpf128): Define as weak alias.
5785         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5786         __fromfpxf128.
5787         (fromfpxf128): Define as weak alias.
5788         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5789         __setpayloadf128.
5790         (setpayloadf128): Define as weak alias.
5791         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5792         __setpayloadsigf128.
5793         (setpayloadsigf128): Define as weak alias.
5794         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5795         __ufromfpf128.
5796         (ufromfpf128): Define as weak alias.
5797         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5798         __ufromfpxf128.
5799         (ufromfpxf128): Define as weak alias.
5800         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5801         (fromfpf): Define as weak alias.
5802         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5803         __fromfpxf.
5804         (fromfpxf): Define as weak alias.
5805         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5806         __getpayloadf and define as weak alias.
5807         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5808         __roundevenf and define as weak alias.
5809         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5810         __setpayloadf.
5811         (setpayloadf): Define as weak alias.
5812         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5813         __setpayloadsigf.
5814         (setpayloadsigf): Define as weak alias.
5815         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5816         __totalorderf and define as weak alias.
5817         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5818         Rename to __totalordermagf and define as weak alias.
5819         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5820         __ufromfpf.
5821         (ufromfpf): Define as weak alias.
5822         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5823         __ufromfpxf.
5824         (ufromfpxf): Define as weak alias.
5825         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5826         __fromfpl.
5827         (fromfpl): Define as weak alias.
5828         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5829         __fromfpxl.
5830         (fromfpxl): Define as weak alias.
5831         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5832         to __getpayloadl and define as weak alias.
5833         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5834         __roundevenl and define as weak alias.
5835         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5836         __setpayloadl.
5837         (setpayloadl): Define as weak alias.
5838         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5839         __setpayloadsigl.
5840         (setpayloadsigl): Define as weak alias.
5841         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5842         to __totalorderl and define as weak alias.
5843         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5844         Rename to __totalordermagl and define as weak alias.
5845         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5846         __ufromfpl.
5847         (ufromfpl): Define as weak alias.
5848         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5849         __ufromfpxl.
5850         (ufromfpxl): Define as weak alias.
5851         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5852         __fromfpl.
5853         (fromfpl): Define as weak alias.
5854         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5855         __fromfpxl.
5856         (fromfpxl): Define as weak alias.
5857         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5858         Rename to __getpayloadl and define as weak alias.
5859         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5860         to __roundevenl and define as weak alias.  Call __roundeven
5861         instead of roundeven.
5862         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5863         __setpayloadl.
5864         (setpayloadl): Define as weak alias.
5865         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5866         __setpayloadsigl.
5867         (setpayloadsigl): Define as weak alias.
5868         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5869         Rename to __totalorderl and define as weak alias.
5870         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
5871         Rename to __totalordermagl and define as weak alias.
5872         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
5873         __ufromfpl.
5874         (ufromfpl): Define as weak alias.
5875         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
5876         __ufromfpxl.
5877         (ufromfpxl): Define as weak alias.
5878         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
5879         __fromfpl.
5880         (fromfpl): Define as weak alias.
5881         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
5882         __fromfpxl.
5883         (fromfpxl): Define as weak alias.
5884         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
5885         __getpayloadl and define as weak alias.
5886         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
5887         __roundevenl and define as weak alias.
5888         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
5889         __setpayloadl.
5890         (setpayloadl): Define as weak alias.
5891         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
5892         __setpayloadsigl.
5893         (setpayloadsigl): Define as weak alias.
5894         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
5895         __totalorderl and define as weak alias.
5896         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
5897         Rename to __totalordermagl and define as weak alias.
5898         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
5899         __ufromfpl.
5900         (ufromfpl): Define as weak alias.
5901         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
5902         __ufromfpxl.
5903         (ufromfpxl): Define as weak alias.
5905 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5907         * benchtests/bench-string.h (realloc_bufs): New function.
5908         (test_init): Call it.
5909         * benchtests/bench-memset-large.c (do_test): Likewise.
5910         * benchtests/bench-memset.c (do_test): Likewise.
5912         * benchtests/bench-memset-large.c: Print output in JSON
5913         format.
5914         * benchtests/bench-memset.c: Likewise.
5916 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5918         [BZ #21084]
5919         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
5920         * iconvdata/Makefile: Add IBM858.
5921         * iconvdata/gconv-modules: Likewise.
5922         * iconvdata/tst-tables.sh: Likewise.
5923         * iconvdata/ibm858.c: New file.
5924         * localedata/charmaps/IBM858: Likewise.
5926 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
5928         [BZ #22023]
5929         * locales/niu_NZ (LC_TIME): copy "niu_NU".
5930         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
5932 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5934         [BZ #22112]
5935         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
5936         and add tel_int_fmt.
5938 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5940         * sysdeps/generic/libm-alias-float128.h: New file.
5941         * sysdeps/generic/math-type-macros-float128.h: Include
5942         <libm-alias-float128.h>.
5943         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5945 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5947         * sysdeps/generic/libm-alias-ldouble.h: New file.
5948         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
5949         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
5950         * sysdeps/generic/math-type-macros-ldouble.h: Include
5951         <libm-alias-ldouble.h>.
5952         [!declare_mgen_alias] (declare_mgen_alias): Define to use
5953         libm_alias_ldouble.
5955 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5957         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
5958         * math/w_exp_compat.c: ... here.
5959         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
5960         * math/w_expf_compat.c: ... here.
5961         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
5962         * math/w_expl_compat.c: ... here.
5963         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
5964         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5965         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5966         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5968 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5970         * math/w_scalbln_template.c (strong_alias): Do not undefine and
5971         redefine.
5972         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5973         macro.
5974         (ldexpl): Only define as compat symbol for libc, not libm.
5975         (scalbnl): Define as compat symbol for libc here.
5976         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5977         define for [IS_IN (libc)].
5978         (__ldexpl_2): Remove alias.
5979         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5980         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
5981         name in long_double_symbol call.
5982         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
5983         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
5984         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
5985         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
5986         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
5987         Remove macro.
5988         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
5989         Define as compat symbol.
5991 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5993         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
5994         * sysdeps/unix/sysv/linux/alpha/Makefile
5995         [$(subdir) = csu] (sysdep_routines): Remove rule.
5997 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5999         * sysdeps/generic/libm-alias-double.h: New file.
6000         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6001         * sysdeps/generic/math-type-macros-double.h: Include
6002         <libm-alias-double.h>.
6003         [declare_mgen_alias] (declare_mgen_alias): Define to use
6004         libm_alias_double.
6005         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6006         (M_LIBM_NEED_COMPAT): Remove macro.
6007         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6008         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6009         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6010         code.
6011         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6012         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6013         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6014         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6015         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6016         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6017         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6018         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6019         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6020         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6021         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6022         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6023         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6024         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6025         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6026         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6027         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6028         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6029         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6030         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6031         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6032         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6033         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6034         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6035         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6036         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6037         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6038         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6039         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6040         macro.
6041         (declare_mgen_alias): New macro.
6042         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6043         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6045         (M_LIBM_NEED_COMPAT): Remove macro.
6046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6047         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6048         <first-versions.h>.
6049         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6050         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6052 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6054         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6055         (declare_mgen_alias_2): Remove.
6056         * sysdeps/generic/math-type-macros-double.h
6057         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6058         Likewise.
6059         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6060         alias.
6061         (ldexp): Define with declare_mgen_alias.
6062         (scalbn): Likewise.
6064 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6066         * grp/initgroups.c: Include config.h.
6067         (DEFAULT_CONFIG): New macro.
6068         (internal_getgrouplist): Use DEFAULT_CONFIG.
6069         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6070         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6071         (DEFAULT_DEFCONFIG): New macro.
6072         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6073         * nss/grp-lookup.c: Include config.h
6074         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6075         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6076         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6077         * manual/nss.texi: Update default values section.
6079 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6081         [BZ #21967]
6082         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6083         New.
6084         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6085         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6086         Handle MathVec_Prefer_No_AVX512.
6087         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6088         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6089         is set.
6091 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6093         * posix/sched_primax.c (__sched_get_priority_max): Add
6094         libc_hidden_def.
6095         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6096         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6097         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6098         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6099         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6100         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6101         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6102         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6103         Add aliases.
6105 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6107         * sysdeps/generic/libm-alias-float.h: New file.
6108         * sysdeps/generic/math-type-macros-float.h: Include
6109         <libm-alias-float.h>.
6110         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6112 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6114         [BZ #22093]
6115         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6116         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6117         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6118         (HWCAP_IMPORTANT): Likewise.
6119         (HWCAP_X86_64): New enum.
6120         (HWCAP_X86_AVX512_1): Updated.
6121         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6122         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6123         (modules-names): Add x86_64/tst-x86_64mod-1.
6124         (LDFLAGS-tst-x86_64mod-1.so): New.
6125         ($(objpfx)tst-x86_64-1): Likewise.
6126         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6127         (tst-x86_64-1-clean): Likewise.
6128         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6129         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6131 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6133         * po/sv.po: Update translations.
6134         * po/fr.po: Likewise.
6136 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6138         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6139         seconds.
6140         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6141         seconds.
6142         * elf/rtld-Rules: Fix $(error) use.
6144 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6146         [BZ #14925]
6147         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6148         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6149         * localedata/locales/bn_BD: “Bengali” was still used in some
6150         comments. Change it to “Bangla”.
6152 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6154         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6156 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6158         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6159         thunderx2t99p1 to list of cpu names.
6160         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6161         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6163 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6165         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6166         Use strcmp instead of tunable_is_name.
6168 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6170         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6171         (F_GET_RW_HINT): New macro.
6172         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6173         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6174         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6175         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6176         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6177         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6178         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6179         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6180         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6182         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6183         (F_ADD_SEALS): New macro.
6184         [__USE_GNU] (F_GET_SEALS): Likewise.
6185         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6186         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6187         [__USE_GNU] (F_SEAL_GROW): Likewise.
6188         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6190 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6192         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6193         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6194         * posix/glob_internal.h (__glob_pattern_type):
6195         * posix/glob.c (glob):
6196         * posix/glob_pattern_p.c (__glob_pattern_p):
6197         Use them.
6199         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6200         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6201         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6202         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6203         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6205         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6206         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6207         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6208         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6209         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6210         * sysdeps/wordsize-64/glob.c: Likewise.
6211         * sysdeps/wordsize-64/glob64.c: Likewise.
6212         * sysdeps/wordsize-64/globfree.c: Likewise.
6213         * sysdeps/wordsize-64/globfree64.c: Likewise.
6214         * sysdeps/unix/sysv/linux/glob.c: New file.
6215         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6216         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6217         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6218         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6219         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6220         adds !GLOB_NO_OLD_VERSION as an extra condition.
6221         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6222         using relative path instead of absolute one.
6223         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6224         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6225         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6226         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6227         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6228         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6230         [BZ #1062]
6231         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6232         (glob): Use the same scratch buffer for both getlogin_r and
6233         getpwnam_r.  Don’t require preallocation of the login name.  This
6234         simplifies storage allocation, and corrects the handling of
6235         long login names.
6237         [BZ #1062]
6238         * posix/glob.c (glob): Port recent patches to platforms
6239         lacking getpwnam_r.
6240         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6241         returns an error number rather than setting errno.
6243         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6244         instead of GCC extension.
6245         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6246         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6247         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6249         [BZ #866]
6250         [BZ #1062]
6251         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6252         * posix/bug-glob1.c: Remove file.
6253         * posix/tst-glob_symlinks.c: New file.
6254         * posix/glob.c (__lstat64): New macro.
6255         (is_dir): New function.
6256         (glob, glob_in_dir): Match symlinks even if they are dangling.
6257         (link_stat, link_exists_p): Remove.  All uses removed.
6259         [BZ #1062]
6260         [BZ #19971]
6261         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6262         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6263         All uses removed.
6265         [BZ #1062]
6266         CVE-2017-15671
6267         * posix/Makefile (routines): Add globfree, globfree64, and
6268         glob_pattern_p.
6269         * posix/flexmember.h: New file.
6270         * posix/glob_internal.h: Likewise.
6271         * posix/glob_pattern_p.c: Likewise.
6272         * posix/globfree.c: Likewise.
6273         * posix/globfree64.c: Likewise.
6274         * sysdeps/gnu/globfree64.c: Likewise.
6275         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6276         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6277         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6278         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6279         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6280         * sysdeps/wordsize-64/globfree.c: Likewise.
6281         * sysdeps/wordsize-64/globfree64.c: Likewise.
6282         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6283         [NDEBUG): Remove comments.
6284         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6285         (dirent_type): New type.  Use uint_fast8_t not
6286         uint8_t, as C99 does not require uint8_t.
6287         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6288         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6289         unless it is needed; this saves a byte on platforms lacking d_ino.
6290         (readdir_result_type, readdir_result_skip_entry):
6291         New functions, replacing ...
6292         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6293          these functions, which were removed.  This makes the callers
6294         easier to read.  All callers changed.
6295         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6296         (size_add_wrapv, glob_use_alloca): New static functions.
6297         (glob, glob_in_dir): Check for size_t overflow in several places,
6298         and fix some size_t checks that were not quite right.
6299         Remove old code using SHELL since Bash no longer
6300         uses this.
6301         (glob, prefix_array): Separate MS code better.
6302         (glob_in_dir): Remove old Amiga and VMS code.
6303         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6304         separate files.
6305         (glob_in_dir): Do not rely on undefined behavior in accessing
6306         struct members beyond their bounds.  Use a flexible array member
6307         instead
6308         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6309         0/1.  Caller changed.
6310         (glob): Fix memory leaks.
6311         * posix/glob64 (globfree64): Move to separate file.
6312         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6313         (globfree64): Remove hidden alias.
6314         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6315         oldglob.
6316         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6317         separate file.
6318         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6319         define.
6320         Move compat code to separate file.
6321         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6322         separate file.
6324 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6326         * resolv/tst-resolv-qtypes.c (domain): Changed to
6327         "const char domain[] =".
6329 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6331         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6332         version to 3.1.6.
6334         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6335         (TCP_MD5SIG_EXT): Likewise.
6336         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6337         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6338         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6340         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6342 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6344         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6346 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6348         [BZ #22100]
6349         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6351 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6353         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6354         before assuming that the file is empty.  Avoid testing buffer content
6355         when nread == 0.
6357 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6359         [BZ #18858]
6360         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6361         Remove define.
6362         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6363         Likewise.
6364         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6365         Likewise.
6366         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6367         Likewise.
6368         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6369         Likewise.
6370         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6371         Likewise.
6372         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6373         Likewise.
6375 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6377         * malloc/dynarray_emplace_enlarge.c
6378         (__libc_dynarray_emplace_enlarge): Add missing else.
6380 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6382         [BZ #22096]
6383         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6384         case of failure to obtain the global conf object.
6386 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6388         [BZ #22095]
6389         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6390         dynarray allocation failure.
6392 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6394         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6395         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6396         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6397         New functions.
6398         (response): Call them.  Add 'p', '6' flag processing.
6399         (test_reverse): New function.
6400         (test_get2_any): Call it.
6401         (test_no_inet6): Add 'p' test.
6402         (test_inet6): Likewise.
6404 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6406         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6407         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6408         the QNAME.
6409         (test_gai): Adjust query names.  Add additional tests.
6410         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6411         test_get2.  Adjust query names.  Add additional tests.
6412         (test_no_inet6): New function, extracted from threadfunc.
6413         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6414         Add additional tests.
6416 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6418         [BZ #22070]
6419         * localedata/unicode-gen/utf8_gen.py: Set the width for
6420         characters with Prepended_Concatenation_Mark property to 1
6421         * localedata/charmaps/UTF-8: Updated using the improved script.
6423 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6425         [BZ #21750]
6426         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6427         use the range notation for all ranges of neighbouring characters
6428         with the same width.
6430 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6432         * sysdeps/generic/math-type-macros-double.h: Include
6433         <math-svid-compat.h>.
6434         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6435         * sysdeps/generic/math-type-macros-float.h: Include
6436         <math-svid-compat.h>.
6437         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6438         * sysdeps/generic/math-type-macros-ldouble.h: Include
6439         <math-svid-compat.h>.
6440         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6441         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6442         condition.
6443         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6444         * math/w_acosf_compat.c: Likewise.
6445         * math/w_acosh_compat.c: Likewise.
6446         * math/w_acoshf_compat.c: Likewise.
6447         * math/w_acoshl_compat.c: Likewise.
6448         * math/w_acosl_compat.c: Likewise.
6449         * math/w_asin_compat.c: Likewise.
6450         * math/w_asinf_compat.c: Likewise.
6451         * math/w_asinl_compat.c: Likewise.
6452         * math/w_atan2_compat.c: Likewise.
6453         * math/w_atan2f_compat.c: Likewise.
6454         * math/w_atan2l_compat.c: Likewise.
6455         * math/w_atanh_compat.c: Likewise.
6456         * math/w_atanhf_compat.c: Likewise.
6457         * math/w_atanhl_compat.c: Likewise.
6458         * math/w_cosh_compat.c: Likewise.
6459         * math/w_coshf_compat.c: Likewise.
6460         * math/w_coshl_compat.c: Likewise.
6461         * math/w_exp10_compat.c: Likewise.
6462         * math/w_exp10f_compat.c: Likewise.
6463         * math/w_exp10l_compat.c: Likewise.
6464         * math/w_exp2_compat.c: Likewise.
6465         * math/w_exp2f_compat.c: Likewise.
6466         * math/w_exp2l_compat.c: Likewise.
6467         * math/w_fmod_compat.c: Likewise.
6468         * math/w_fmodf_compat.c: Likewise.
6469         * math/w_fmodl_compat.c: Likewise.
6470         * math/w_hypot_compat.c: Likewise.
6471         * math/w_hypotf_compat.c: Likewise.
6472         * math/w_hypotl_compat.c: Likewise.
6473         * math/w_j0_compat.c: Likewise.
6474         * math/w_j0f_compat.c: Likewise.
6475         * math/w_j0l_compat.c: Likewise.
6476         * math/w_j1_compat.c: Likewise.
6477         * math/w_j1f_compat.c: Likewise.
6478         * math/w_j1l_compat.c: Likewise.
6479         * math/w_jn_compat.c: Likewise.
6480         * math/w_jnf_compat.c: Likewise.
6481         * math/w_jnl_compat.c: Likewise.
6482         * math/w_lgamma_r_compat.c: Likewise.
6483         * math/w_lgammaf_r_compat.c: Likewise.
6484         * math/w_lgammal_r_compat.c: Likewise.
6485         * math/w_log10_compat.c: Likewise.
6486         * math/w_log10f_compat.c: Likewise.
6487         * math/w_log10l_compat.c: Likewise.
6488         * math/w_log2_compat.c: Likewise.
6489         * math/w_log2f_compat.c: Likewise.
6490         * math/w_log2l_compat.c: Likewise.
6491         * math/w_log_compat.c: Likewise.
6492         * math/w_logf_compat.c: Likewise.
6493         * math/w_logl_compat.c: Likewise.
6494         * math/w_pow_compat.c: Likewise.
6495         * math/w_powf_compat.c: Likewise.
6496         * math/w_powl_compat.c: Likewise.
6497         * math/w_remainder_compat.c: Likewise.
6498         * math/w_remainderf_compat.c: Likewise.
6499         * math/w_remainderl_compat.c: Likewise.
6500         * math/w_sinh_compat.c: Likewise.
6501         * math/w_sinhf_compat.c: Likewise.
6502         * math/w_sinhl_compat.c: Likewise.
6503         * math/w_sqrt_compat.c: Likewise.
6504         * math/w_sqrtf_compat.c: Likewise.
6505         * math/w_sqrtl_compat.c: Likewise.
6506         * math/w_tgamma_compat.c: Likewise.
6507         * math/w_tgammaf_compat.c: Likewise.
6508         * math/w_tgammal_compat.c: Likewise.
6509         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6510         [LIBM_SVID_COMPAT].
6511         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6512         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6513         [LIBM_SVID_COMPAT].
6514         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6515         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6516         [LIBM_SVID_COMPAT].
6517         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6518         * sysdeps/i386/fpu/w_sqrt.c: New file.
6519         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6520         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6521         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6522         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6523         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6524         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6525         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6526         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6527         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6528         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6529         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6530         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6531         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6532         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6533         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6534         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6535         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6536         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6537         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6538         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6539         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6540         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6541         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6542         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6543         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6544         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6545         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6546         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6547         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6548         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6549         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6550         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6551         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6552         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6553         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6554         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6555         * sysdeps/ia64/fpu/w_log.c: Likewise.
6556         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6557         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6558         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6559         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6560         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6561         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6562         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6563         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6564         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6565         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6566         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6567         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6568         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6569         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6570         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6571         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6572         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6573         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6574         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6575         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6576         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6577         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6578         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6579         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6580         [LIBM_SVID_COMPAT].
6581         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6582         * sysdeps/ieee754/k_standard.c: Likewise.
6583         * sysdeps/ieee754/k_standardf.c: Likewise.
6584         * sysdeps/ieee754/k_standardl.c: Likewise.
6585         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6586         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6587         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6588         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6589         long_double_symbol call on [LIBM_SVID_COMPAT].
6590         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6591         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6592         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6593         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6594         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6595         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6596         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6597         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6598         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6599         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6600         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6601         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6602         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6603         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6604         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6605         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6606         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6607         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6608         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6609         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6610         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6611         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6613 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6615         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6616         * malloc/tst-mallocstate.c: Convert from test-skeleton
6617         to test-driver.  Ifdef code using TEST_COMPAT macro.
6618         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6619         * math/test-matherr.c: Likewise.
6621 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6623         [BZ #22086]
6624         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6625         comparing word with byte-swapped constant.
6627 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6629         [BZ #20498]
6630         * locale/iso-639.def: add Miskito.
6631         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6632         * localedata/locales/miq_NI: New file.
6634 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6636         [BZ #18822]
6637         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6638         (__mkdir): Likewise.
6639         * io/chmod.c (__chmod): Add libc_hidden_def.
6640         * io/mkdir.c (__mkdir): Likewise.
6641         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6642         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6643         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6644         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6646 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6648         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6649         version to 4.13.
6651         [BZ #22082]
6652         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6653         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6655 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6657         * math/math.h: Issue warning if log is defined.
6659 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6661         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6662         kernel version to 4.13.
6664 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6666         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6667         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6668         parameter.
6669         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6670         just <bits/types.h>.
6671         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6672         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6673         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6674         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6675         * misc/preadv2.c: Include <errno.h>.
6676         * misc/preadv64v2.c: Include <errno.h>.
6677         * misc/pwritev2.c: Include <errno.h>.
6678         * misc/pwritev64v2.c: Include <errno.h>.
6679         * sysdeps/posix/preadv2.c: Include <errno.h>.
6680         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6681         Fix <unistd.h> inclusion.
6682         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6683         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6684         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6685         __strtoul_internal): New functions.
6686         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6687         * sysdeps/posix/system.c: Include <sigsetops.h>.
6688         * sysdeps/mach/hurd/i386/Makefile
6689         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6690         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6691         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6692         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6693         __feraiseexcept_renamed to feraiseexcept instead of
6694         __GI_feraiseexcept.
6695         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6696         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6697         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6698         RWF_NOWAIT): Define to 0 if undefined already.
6699         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6700         boils down to 0.
6701         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6702         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6704 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6706         * manual/math.texi (pow10): Do not document.
6707         (pow10f): Likewise.
6708         (pow10l): Likewise.
6709         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6710         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6711         * math/libm-test-exp10.inc (pow10_test): Remove.
6712         (do_test): Do not call pow10.
6713         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6714         [NO_LONG_DOUBLE] (pow10l): Likewise.
6715         * math/w_exp10f_compat.c (pow10f): Likewise.
6716         * math/w_exp10l_compat.c (pow10l): Likewise.
6717         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6718         (pow10): Make into compat symbol.
6719         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6720         (pow10f): Make into compat symbol.
6721         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6722         (pow10l): Make into compat symbol.
6723         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6724         pow10.
6725         (CFLAGS-nldbl-pow10.c): Remove variable..
6726         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6727         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6728         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6729         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6730         Undefine and redefine.
6731         (pow10l): Make into compat symbol.
6732         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6733         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6734         * sysdeps/arm/libm-test-ulps: Likewise.
6735         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6736         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6737         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6738         * sysdeps/microblaze/libm-test-ulps: Likewise.
6739         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6740         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6741         * sysdeps/nios2/libm-test-ulps: Likewise.
6742         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6743         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6744         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6745         * sysdeps/sh/libm-test-ulps: Likewise.
6746         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6747         * sysdeps/tile/libm-test-ulps: Likewise.
6748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6750 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6752         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6754 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6756         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6757         "../ChangeLog.old/ChangeLog.8".
6758         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6759         "../ChangeLog.old/ChangeLog.14".
6761 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6763         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6764         Threads Library.
6766 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6768         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6770 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6772         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6773         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6775 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6777         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6778         32 atexit handlers.
6780 2017-09-01  Zack Weinberg  <zackw@panix.com>
6782         * math/math.h (HUGE_VAL): Improve commentary.
6784 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6785             Andreas Schwab  <schwab@suse.de>
6787         [BZ #21530]
6788         * include/stdio.h (__gen_tempfd): New function.
6789         * stdio-common/Makefile (routines): Add gentempfd.
6790         * stdio-common/gentempfd.c: New file.
6791         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6792         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6793         unnamed file first.
6795 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6797         [BZ #21915]
6798         [BZ #21922]
6799         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6800         result to determine success or failure, not the errno value.
6801         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6802         (tst-nss-files-hosts-erange): Link with -ldl.
6803         * nss/tst-nss-files-hosts-erange.c: New file.
6804         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6805         (do_test): Add NO_DATA tests.
6806         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6807         (do_test): Call it.
6809 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6811         [BZ #21922]
6812         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6813         coming from gethostbyname2_r.
6815 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6817         * support/namespace.h (struct support_chroot_configuration): Add
6818         hosts, host_conf.
6819         (struct support_chroot): Add path_hosts, path_host_conf.
6820         * support/support_chroot.c (write_file): New function.
6821         (support_chroot_create): Call it to process /etc/resolv.conf,
6822         /etc/hosts, /etc/host.conf.
6823         (support_chroot_free): Update.
6825 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6827         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6828         status indicates it is set.
6830 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6832         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6833         function lookup failures more reliable.
6835 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6837         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6838         (getcanonname): Likewise.
6839         (gaih_inet): Likewise.
6841 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6843         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6844         (getcanonname): Likewise.
6845         (gaih_inet): Likewise.
6847 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6848             Richard Henderson <rth@twiddle.net>
6850         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6851         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6852         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6853         (IREG_SIZE, OREG_SIZE): New macros.
6854         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6855         (IREG_SIZE, OREG_SIZE): New macros.
6856         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6857         (IREG_SIZE): New macro.
6858         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6859         (IREG_SIZE): New macro.
6860         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6861         New includes.
6862         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6863         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6864         (__CONCATX): Handle exceptions correctly on large values that may
6865         set FE_INVALID.
6866         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6867         Initialize if not already set.
6868         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6870 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6872         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
6873         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
6874         Likewise.
6875         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
6876         Likewise.
6877         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
6878         Likewise.
6879         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
6880         Likewise.
6881         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
6882         Likewise.
6883         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
6884         Likewise.
6885         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
6886         Likewise.
6887         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
6888         (NO_CANCELLATION): Likewise.
6889         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
6890         Likewise.
6891         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
6892         Likewise.
6893         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
6894         Likewise.
6895         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
6896         (NO_CANCELLATION): Likewise.
6897         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
6898         (NO_CANCELLATION): Likewise.
6899         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
6900         Likewise
6901         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
6902         Likewise.
6903         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
6904         Likewise.
6905         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
6906         Likewise.
6907         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
6908         hidden prototype.
6909         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
6910         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
6912 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6914         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
6915         in resolver call.
6917 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6919         * include/libc-symbols.h (internal_function): Remove.
6921 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6923         * stdlib/fmtmsg.c (internal_addseverity): Remove
6924         internal_function.
6926 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6928         * stdio-common/printf_fp.c (group_number): Remove
6929         internal_function.
6930         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6932 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6934         * posix/fnmatch.c (internal_function): Remove definition.
6935         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
6936         * posix/regcomp.c (peek_token, init_word_char)
6937         (duplicate_node_closure, fetch_token, peek_token)
6938         (peek_token_bracket, build_range_exp, build_collating_symbol):
6939         Likewise.
6940         * posix/regex_internal.c (re_string_construct_common)
6941         (create_ci_newstate, create_cd_newstate, re_string_allocate)
6942         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
6943         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
6944         (re_string_translate_buffer, re_string_reconstruct)
6945         (re_string_peek_byte_case, re_string_fetch_byte_case)
6946         (re_string_destruct, re_string_context_at, re_node_set_alloc)
6947         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
6948         (re_node_set_add_intersect, re_node_set_init_union)
6949         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
6950         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
6951         (re_dfa_add_node, calc_state_hash, re_acquire_state)
6952         (re_acquire_state_context): Likewise.
6953         * posix/regex_internal.h (internal_function): Remove definition.
6954         (re_string_realloc_buffers, build_wcs_buffer)
6955         (build_wcs_upper_buffer, build_upper_buffer)
6956         (re_string_translate_buffer, re_string_context_at)
6957         (re_string_char_size_at, re_string_wchar_at)
6958         (re_string_elem_size_at): Likewise.
6959         * posix/regexec.c (match_ctx_init, match_ctx_clean)
6960         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
6961         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
6962         (re_search_internal, re_search_2_stub, re_search_stub)
6963         (re_copy_regs, prune_impossible_nodes, check_matching)
6964         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6965         (free_fail_stack_return, sift_states_iter_mb)
6966         (sift_states_backward, build_sifted_states)
6967         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6968         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6969         (check_subexp_limits, sift_states_bkref, merge_state_array)
6970         (find_recover_state, transit_state, merge_state_with_log)
6971         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6972         (transit_state_mb, transit_state_bkref, get_subexp)
6973         (get_subexp_sub, find_subexp_node, check_arrival)
6974         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6975         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6976         (check_node_accept_bytes, find_collation_sequence_value)
6977         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6978         (acquire_init_state_context, check_halt_node_context)
6979         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6980         (sub_epsilon_src_nodes): Likewise.
6981         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
6982         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
6983         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
6984         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
6985         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
6986         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
6987         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
6988         * sysdeps/posix/ttyname.c (getttyname): Likewise.
6989         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
6990         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
6991         (PREADV): Likewise.
6992         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
6993         (PREADV): Likewise.
6994         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
6995         (PWRITEV): Likewise.
6996         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
6997         (PWRITEV): Likewise.
6998         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
6999         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7001 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7003         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7004         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7005         Remove internal_function.
7006         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7007         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7008         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7009         (__deallocate_stack, __libc_pthread_init)
7010         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7011         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7012         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7013         Likewise.
7014         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7015         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7016         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7017         Likewise.
7018         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7019         (__pthread_mutex_unlock_usercnt): Likewise.
7021 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7023         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7024         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7025         (fts_safe_changedir): Remove internal_function.
7026         * io/ftw.c (internal_function): Remove definition.
7027         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7029 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7031         * inet/deadline.c (__deadline_current_time)
7032         (__deadline_from_timeval, __deadline_to_ms): Remove
7033         internal_function.
7034         * inet/getnameinfo.c (nrl_domainname): Likewise.
7035         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7036         * inet/inet6_option.c (add_pad): Likewise.
7037         * inet/net-internal.h (__deadline_current_time)
7038         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7039         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7040         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7041         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7043 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7045         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7046         include <bits/nan.h>.
7047         * math/Makefile (headers): Remove bits/nan.h.
7048         * bits/nan.h: Remove.
7049         * sysdeps/ieee754/bits/nan.h: Likewise.
7050         * sysdeps/mips/bits/nan.h: Likewise.
7052         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7053         not include <bits/inf.h>.
7054         * math/Makefile (headers): Remove bits/inf.h.
7055         * bits/inf.h: Remove.
7056         * sysdeps/ieee754/bits/inf.h: Likewise.
7058         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7059         bits/huge_vall.h or bits/huge_val_flt128.h.
7060         (HUGE_VAL): Define directly here.
7061         [__USE_ISOC99] (HUGE_VALF): Likewise.
7062         [__USE_ISOC99] (HUGE_VALL): Likewise.
7063         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7064         (HUGE_VAL_F128): Likewise.
7065         * math/Makefile (headers): Remove bits/huge_val.h,
7066         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7067         * bits/huge_val.h: Remove.
7068         * bits/huge_val_flt128.h: Likewise.
7069         * bits/huge_valf.h: Likewise.
7070         * bits/huge_vall.h: Likewise.
7071         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7072         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7073         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7074         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7075         * sysdeps/sh/bits/huge_val.h: Likewise.
7076         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7077         * sysdeps/x86/bits/huge_vall.h: Likewise.
7079 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7081         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7082         internal_function.
7083         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7084         Likewise.
7085         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7086         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7087         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7088         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7089         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7090         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7091         * elf/dl-libc.c (dlerror_run): Likewise.
7092         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7093         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7094         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7095         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7096         Likewise.
7097         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7098         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7099         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7100         * elf/dl-profile.c (_dl_start_profile): Likewise.
7101         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7102         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7103         Likewise.
7104         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7105         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7106         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7107         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7108         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7109         (_dl_allocate_tls_storage): Likewise.
7110         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7111         (_dl_check_all_versions): Likewise.
7112         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7113         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7114         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7115         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7116         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7117         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7118         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7119         internal_function from __dl_start.
7120         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7121         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7122         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7123         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7124         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7125         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7126         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7127         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7128         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7129         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7130         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7131         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7132         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7133         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7134         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7135         Likewise.
7136         (struct rtld_global_ro): Remove internal_function from the
7137         _dl_lookup_symbol_x member.
7138         (_dl_symbol_value): Remove.  No longer defined anywhere.
7139         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7140         internal_function.
7141         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7142         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7143         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7144         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7145         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7146         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7147         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7148         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7149         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7150         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7151         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7152         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7154 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7156         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7157         Remove internal_function.
7158         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7159         Likewise.
7160         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7161         Likewise.
7163 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7165         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7166         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7167         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7169 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7171         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7172         (__gai_enqueue_request): Remove internal_function.
7173         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7174         (__gai_remove_request, __gai_notify, __gai_notify_only)
7175         (__gai_sigqueue): Likewise.
7176         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7177         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7178         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7179         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7180         Likewise.
7182 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7184         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7185         * include/dirent.h (__opendirat, __getdents, __getdents64)
7186         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7187         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7188         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7189         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7190         Likewise.
7191         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7193 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7195         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7196         internal_function.
7197         (GETCWD_RETURN_TYPE): Likewise.
7199 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7201         * include/time.h (__tz_compute, __strptime_internal): Remove
7202         internal_function.
7203         * time/strptime_l.c (__strptime_internal): Likewise.
7204         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7206 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7208         * iconv/gconv.c (__gconv): Remove internal_function.
7209         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7210         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7211         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7212         (__gconv_release_cache): Likewise.
7213         * iconv/gconv_close.c (__gconv_close): Likewise.
7214         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7215         (read_conf_file, __gconv_get_path): Likewise.
7216         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7217         (__gconv_release_step, gen_steps, increment_counter)
7218         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7219         (__gconv_close_transform, free_modules_db): Likewise.
7220         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7221         Likewise.
7222         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7223         (__gconv_find_transform, __gconv_lookup_cache)
7224         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7225         (__gconv_close_transform, __gconv_release_cache)
7226         (__gconv_loaded_object, __gconv_release_shlib)
7227         (__gconv_compare_alias): Likewise.
7228         * iconv/gconv_open.c (__gconv_open): Likewise.
7229         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7230         * iconv/iconvconfig.c (add_module): Likewise.
7231         * intl/dcigettext.c (plural_lookup, guess_category_value)
7232         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7233         * intl/eval-plural.h (plural_eval): Likewise.
7234         * intl/finddomain.c (_nl_find_domain): Likewise.
7235         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7236         (_nl_load_domain, _nl_find_msg): Likewise.
7237         (internal_function): Remove definition.
7238         * intl/loadinfo.h (internal_function): Likewise.
7239         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7240         internal_function.
7241         * intl/localealias.c (internal_function): Remove definition.
7242         (read_alias_file): Remove internal_function.
7243         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7244         * intl/plural-exp.h (internal_function): Remove definition.
7245         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7246         internal_function.
7247         * intl/plural.c: Regenerate.
7248         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7249         * locale/coll-lookup.c (__collidx_table_lookup)
7250         (__collseq_table_lookup): Likewise.
7251         * locale/coll-lookup.h (__collidx_table_lookup)
7252         (__collseq_table_lookup): Likewise.
7253         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7254         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7255         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7256         (_nl_unload_locale): Likewise.
7257         * locale/localeinfo.h (struct __locale_data): Remove
7258         internal_function from cleanup member.
7259         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7260         (_nl_remove_locale, _nl_load_locale_from_archive)
7261         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7262         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7263         (_nl_cleanup_time): Remove internal_function.
7264         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7265         (_nl_parse_alt_digit): Likewise.
7266         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7267         (_nl_select_era_entry): Likewise.
7268         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7269         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7270         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7271         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7272         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7274 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7276         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7277         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7278         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7279         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7280         Likewise.
7281         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7282         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7283         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7284         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7285         Likewise.
7286         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7288 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7290         * misc/getttyent.c (skip, value): Remove internal_function.
7291         * misc/syslog.c (openlog_internal): Likewise.
7292         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7294 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7296         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7297         (__nss_rewrite_field): Remove internal_function.
7298         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7299         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7300         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7301         * nss/nsswitch.c (nss_parse_file, nss_getline)
7302         (nss_parse_service_list, nss_new_service): Likewise.
7303         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7304         * nss/valid_field.c (__nss_valid_field): Likewise.
7305         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7307 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7309         * malloc/arena.c (__malloc_fork_lock_parent)
7310         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7311         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7312         internal_function from defintions.
7313         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7314         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7315         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7316         internal_function from declarations.
7317         * malloc/malloc.c (internal_function): Do not define.
7318         (mem2mem_check): Remove internal_function from declaration.
7319         (munmap_chunk, mremap_chunk): Remove internal_function.
7320         * malloc/mtrace.c (tr_where): Likewise.
7322 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7324         * include/rpc/pmap_clnt.h (__get_socket): Remove
7325         internal_function.
7326         * sunrpc/auth_des.c (synchronize): Likewise.
7327         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7328         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7329         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7330         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7331         (key_call): Likewise.
7332         * sunrpc/pm_getport.c (__get_socket): Likewise.
7333         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7334         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7335         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7336         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7337         (invalidate): Likewise.
7338         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7339         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7340         (set_input_fragment, get_input_bytes): Likewise.
7342 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7344         * malloc/malloc.c (_int_free): Remove locked variable and related
7345         asserts.
7347 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7349         [BZ #22051]
7350         * Makerules (build-module-helper-objlist): Filter out
7351         $(elf-objpfx)sofini.os.
7352         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7353         needed.
7355 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7357         * libio/fcloseall.c: Assume weak_alias is defined.
7358         * libio/feof.c: Likewise.
7359         * libio/fileno.c: Likewise.
7360         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7361         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7362         definitions.
7363         (_IO_file_open): Call __open directly.
7364         (_IO_new_file_sync): Assume ESPIPE is defined.
7365         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7366         (_IO_new_file_write): Call __write directly.
7367         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7368         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7369         * libio/genops.c: Assume _LIBC is defined.
7370         (save_for_backup): Remove internal_function.
7371         * libio/getc.c: Assume weak_alias is defined.
7372         * libio/getwc.c: Likewise.
7373         * libio/iofclose.c: Assume _LIBC is defined.
7374         * libio/iofdopen.c: Likewise.
7375         (_IO_fcntl): Remove macro definition.
7376         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7377         Call __fcntl directly.
7378         * libio/iofflush.c: Assume weak_alias is defined.
7379         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7380         defined.
7381         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7382         * libio/iofgets.c: Likewise.
7383         * libio/iofopen.c: Assume _LIBC is defined.
7384         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7385         * libio/iofputs.c: Assume weak_alias is defined.
7386         * libio/iofread.c: Likewise.
7387         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7388         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7389         * libio/ioftell.c: Assume weak_alias is defined.
7390         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7391         * libio/iofwide.c: Assume _LIBC is defined.
7392         (_IO_fwide): Drop SHARED conditional because it is implied by
7393         SHLIB_COMPAT.
7394         * libio/iofwrite.c: Assume weak_alias is defined.
7395         * libio/iogetdelim.c: Likewise.
7396         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7397         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7398         (_IO_getwline): Call __wmemcpy directly.
7399         * libio/iopopen.c: Assume _LIBC is defined.
7400         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7401         (_IO_close): Remove macro definitions.
7402         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7403         _exit directly.
7404         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7405         directly.
7406         * libio/ioputs.c: Assume weak_alias is defined.
7407         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7408         * libio/iosetbuffer.c: Assume weak_alias is defined.
7409         * libio/iosetvbuf.c: Likewise.
7410         * libio/ioungetc.c: Likewise.
7411         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7412         libc_hidden_def, libc_hidden_weak, NULL are defined.
7413         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7414         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7415         defined.
7416         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7417         definitions.
7418         (_IO_old_file_init_internal): Drop SHARED conditional because it
7419         is implied by SHLIB_COMPAT.
7420         (_IO_old_file_fopen): Call __open directly.
7421         (_IO_old_file_sync): Assume ESPIPE is defined.
7422         (_IO_old_file_write): Call __write directly.
7423         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7424         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7425         Call __fcntl directly.
7426         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7427         (_IO_old_fgetpos): Assume EIO is defined.
7428         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7429         (_IO_old_fgetpos64): Assume EIO is defined.
7430         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7431         (_IO_old_fsetpos): Assume EIO is defined.
7432         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7433         (_IO_old_fsetpos64): Assume EIO is defined.
7434         * libio/oldiopopen.c:  Assume _LIBC is defined.
7435         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7436         (_IO_close): Remove macro definitions.
7437         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7438         directly.
7439         (_IO_old_proc_close): Call __close, __waitpid directly.
7440         * libio/put.c: Assume weak_alias is defined.
7441         * libio/stdfiles.c: Assume _LIBC is defined.
7442         * libio/stdio.c: Likewise.
7443         * libio/wfileops.c: Likewise.
7444         (_IO_wfile_sync): Assume ESPIPE is defined.
7445         * libio/wgenops.c: Assume _LIBC is defined.
7446         (save_for_wbackup): Remove internal_function.
7448 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7450         * malloc/malloc.c (top_check): Change return type to void.  Remove
7451         internal_function.
7452         * malloc/hooks.c (top_check): Likewise.
7453         (malloc_check, realloc_check, memalign_check): Adjust.
7455 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7457         [BZ #21457]
7458         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7459         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7460         sigcontext and namespace requirements.
7461         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7462         * sysdeps/m68k/sys/ucontext.h: Likewise.
7463         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7464         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7465         <bits/sigcontext.h>.
7466         (__ctx): Define earlier.
7467         (mcontext_t): Define structure contents rather than using struct
7468         sigcontext.
7469         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7470         __glibc_reserved1 instead of __reserved.
7471         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7472         <bits/sigcontext.h>.
7473         (__ctx): Define earlier.
7474         (mcontext_t): Define structure contents rather than using struct
7475         sigcontext.
7476         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7477         mcontext_t instead of struct sigcontext.
7478         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7479         <bits/sigcontext.h>.
7480         (__ctx): Define earlier.
7481         (mcontext_t): Define structure contents rather than using struct
7482         sigcontext.
7483         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7484         <bits/sigcontext.h>.
7485         (__ctx): Define earlier.
7486         (mcontext_t): Define structure contents rather than using struct
7487         sigcontext.
7488         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7489         mcontext_t instead of struct sigcontext.
7490         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7491         mcontext_t instead of struct sigcontext.
7492         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7493         <bits/sigcontext.h>.
7494         (__ctx): New macro.
7495         (struct __ia64_fpreg_mcontext): New type.
7496         (mcontext_t): Define structure contents rather than using struct
7497         sigcontext.
7498         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7499         (uc_sigmask): Define using __ctx.
7500         (uc_stack): Likewise.
7501         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7502         <bits/sigcontext.h>.
7503         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7504         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7505         <bits/sigcontext.h>.
7506         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7507         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7508         <bits/sigcontext.h>.
7509         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7510         <bits/sigcontext.h>.
7511         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7512         <bits/sigcontext.h>.
7513         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7514         <bits/sigcontext.h>.
7515         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7516         <bits/sigcontext.h>.
7517         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7518         <bits/sigcontext.h>.
7519         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7520         <bits/sigcontext.h>.
7521         (__ctx): Define earlier.
7522         (mcontext_t): Define structure contents rather than using struct
7523         sigcontext.
7524         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7525         <bits/sigcontext.h>.  Include <bits/types.h>.
7526         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7527         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7528         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7529         (test-xfail-UNIX98/signal.h/conform): Likewise.
7530         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7531         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7532         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7533         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7534         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7535         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7536         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7537         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7538         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7540 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7542         * malloc/dynarray_emplace_enlarge.c
7543         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7544         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7545         * malloc/tst-dynarray.c (test_long_overflow): New function.
7546         (do_test): Call it.
7548 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7550         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7551         (set_arena_corrupt): Remove definitions.
7552         (mtrim): Do not check for corrupt arena.
7553         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7554         Likewise.
7556 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7558         [BZ #21754]
7559         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7560         check_action.
7561         (ptmalloc_init): Do not set or use check_action.
7562         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7563         call to malloc_printerr.  Remove return statement.
7564         (free_check): Likewise.  Remove arena unlock.
7565         (top_check): Update comment.  Adjust call to malloc_printerr.
7566         Remove heap repair code.
7567         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7568         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7569         (sysmalloc): Adjust call to malloc_printerr.
7570         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7571         statement.
7572         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7573         Remove errout label and corresponding gotos.
7574         (_int_free): Likewise.  Remove arena unlock.
7575         (do_set_mallopt_check): Do not set check_action.
7576         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7577         corrupt.
7578         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7579         comment.
7580         * manual/probes.texi (Memory Allocation Probes): Remove
7581         memory_mallopt_check_action.
7583 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7585         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7586         Use pointer to uint64_t instead of long int for sp.
7588 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7590         [BZ #21754]
7591         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7592         without printing a backtrace.  Do not leak any information in the
7593         error message.
7594         * manual/memory.texi (Heap Consistency Checking): Update.
7595         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7597 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7599         Do not scale NPTL tests with available number of CPUs.
7600         * nptl/tst-cond16.c (count): Set to constant value of 8.
7601         * nptl/tst-cond18.c (count): Likewise.
7603 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7605         [BZ #22035]
7606         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7607         Define to take a second argument that is a macro that
7608         concatentates a suffix, not the suffix itself.
7609         (__CONCAT_d): New macro.
7610         (__CONCAT_f): Likewise.
7611         (__CONCAT_l): Likewise.
7613 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7615         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7616         by child.
7618 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7619             Aurelien Jarno  <aurelien@aurel32.net>
7620             Maciej W. Rozycki  <macro@imgtec.com>
7622         [BZ #21956]
7623         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7624         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7625         `mips16-syscall6' and `mips16-syscall7'.
7626         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7627         (CFLAGS-mips16-syscall7.c): Remove.
7628         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7629         Remove `__mips16_syscall5', `__mips16_syscall6' and
7630         `__mips16_syscall7'.
7631         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7632         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7633         `__mips_syscall_return'.
7634         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7635         (__mips16_syscall1): Likewise.
7636         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7637         (__mips16_syscall2): Likewise.
7638         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7639         (__mips16_syscall3): Likewise.
7640         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7641         (__mips16_syscall4): Likewise.
7642         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7643         Remove.
7644         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7645         Remove.
7646         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7647         Remove.
7648         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7649         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7650         `__mips16_syscall5'.  Remove prototype.
7651         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7652         `__mips16_syscall6'.  Remove prototype.
7653         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7654         `__mips16_syscall7'.  Remove prototype.
7655         (__nomips16, __mips16_syscall_return): Move to...
7656         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7657         (__nomips16, __mips_syscall_return): ... here.
7658         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7659         `__mips16_syscall_return' to `__mips_syscall_return'.
7660         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7661         `internal_syscall##nr'.
7662         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7663         `internal_syscall##nr'.
7664         (FORCE_FRAME_POINTER): Remove.
7665         (__mips_syscall5): New prototype.
7666         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7667         (__mips_syscall6): New prototype.
7668         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7669         (__mips_syscall7): New prototype.
7670         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7671         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7672         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7673         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7674         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7675         (sysdep_routines): Add libc-do-syscall.
7676         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7677         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7679 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7681         [BZ #21672]
7682         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7683         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7684         (advise_stack_range): New function.
7685         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7686         stack non required to advise_stack_range at allocatestack.c
7688 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7690         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7692 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7694         [BZ #22026]
7695         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7696         __end_fct.  Mangle __end_fct after setting it to NULL.
7697         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7698         (modules-names, modules-names-tests): Add
7699         tst-gconv-init-failure-mod.
7700         (gconv-modules): New target.
7701         (tst-gconv-init-failure-mod.so): Link against libsupport.
7702         (tst-gconv-init-failure): Depend on gconv-modules,
7703         tst-gconv-init-failure-mod.so.
7704         * iconv/tst-gconv-init-failure-mod.c: New file.
7705         * iconv/tst-gconv-init-failure.c: Likewise.
7706         * iconv/test-gconv-modules: Likewise.
7708 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7710         [BZ #22025]
7711         * iconv/gconv_db.c (free_derivation): Remove redundant
7712         parentheses.
7713         (gen_steps): Unconditionally mangle __btowc_fct after
7714         initialization.
7715         (increment_counter): Likewise.  Do not call init_fct for internal
7716         modules.
7718 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7720         [BZ #22028]
7721         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7722         (_MSUF_): Remove macro.
7723         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7724         Likewise.
7725         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7726         (__REDIRFROM_X): New macro.
7727         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7728         Likewise.
7729         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7730         (__REDIRTO_X): Likewise.
7731         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7732         arguments.
7733         (__MATH_REDIRCALL_2): Likewise.
7734         (__MATH_REDIRCALL_INTERNAL): Likewise.
7735         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7736         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7737         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7738         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7739         * math/test-finite-macros.c: New file.
7740         * math/Makefile (tests): Add test-finite-macros.
7741         (CFLAGS-test-finite-macros.c): New variable.
7743 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7744             Jeff Law  <law@redhat.com>
7746         [BZ #22025]
7747         Mangle NULL pointers in iconv/gconv.
7748         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7749         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7750         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7751         is non-NULL before demangling the end_fct.  Check for NULL
7752         end_fct after demangling.
7753         (__gconv_release_step): Demangle the end_fct before checking
7754         it for NULL.   Remove assert on __shlibc_handle != NULL.
7755         (gen_steps): Don't check btowc_fct for NULL before mangling.
7756         Demangle init_fct before checking for NULL.
7757         (increment_counter): Likewise.
7758         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7759         end_fct for NULL before mangling.
7760         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7761         for NULL.
7763 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7765         [BZ #21971]
7766         * locale/iso-639.def: add Morisyen.
7768 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7770         [BZ #21930]
7771         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7772         (iszero): New C++ implementation that does not use
7773         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7774         signaling nans are enabled, since __builtin_types_compatible_p
7775         is a C-only feature.
7776         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7777         defined, include ieee754_float128.h for access to the union and
7778         member ieee854_float128.ieee.
7779         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7780         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7781         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7782         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7783         options of test-math-zero on powerpc64le.
7785 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7787         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7788         Change double to float.
7790 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7792         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7793         unconditional.
7794         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7795         conditional code; define contents only for [LIBM_SVID_COMPAT].
7797 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7799         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7800         (abi-lp64_be-options): Remove.
7801         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7802         (abi-hard-options): Likewise.
7803         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7804         (abi-o32_hard-options, abi-o32_soft_2008-options)
7805         (abi-o32_hard_2008-options, abi-n32_soft-options)
7806         (abi-n32_hard-options, abi-n32_soft_2008-options)
7807         (abi-n32_hard_2008-options, abi-n64_soft-options)
7808         (abi-n64_hard-options, abi-n64_soft_2008-options)
7809         (abi-n64_hard_2008-options): Likewise.
7810         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7811         (abi-64-v1-options, abi-64-v2-options): Likewise.
7812         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7813         (abi-64-options): Likewise.
7814         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7815         (abi-64-options): Likewise.
7816         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7817         (abi-64-options): Likewise.
7818         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7819         (abi-64-options, abi-x32-options): Likewise.
7821 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7823         Store supported list of SYS_* system calls in the source tree.
7824         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7825         (bits/syscall.h): Generate from list file.
7826         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7827         [$(subdir) = misc] (tests): Add tst-syscall-list.
7828         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7829         [$(subdir) = misc] (tst-syscall-list-macros.list)
7830         [$(subdir) = misc] (tst-syscall-list-nr.list)
7831         (tst-syscall-list-sys.list): Helper targets for new
7832         tst-syscall-list test.
7833         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7834         tst-syscall-list.sh.
7835         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7836         target. Do not include bits/syscall.d.
7837         [$(subdir) = misc] (generated): Do not update.
7838         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7839         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7840         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7841         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7843 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7845         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7846         (tst-cxa_atexit, tst-on_exit): Likewise.
7847         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7848         tst-cxa_atexit, and tst-on_exit.
7849         * stdlib/tst-atexit-common.c: New file.
7850         * stdlib/tst-atexit.c: New file.
7851         * stdlib/tst-at_quick_exit.c: New file.
7852         * stdlib/tst-cxa_atexit.c: New file.
7853         * stdlib/tst-on_exit.c: New file.
7855 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7857         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7858         * mach/stack_chk_fail_local.c: New file.
7859         * hurd/stack_chk_fail_local.c: New file.
7860         * mach/Machrules ($(interface-library)-routines): Add
7861         stack_chk_fail_local.
7862         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7863         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7864         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7865         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7866         * hurd/Makefile (CFLAGS-hurdstartup.o,
7867         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7869 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7871         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7872         (index_cpu_*, index_arch_*): Removed.
7874 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7876         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
7877         Use uint64_t instead of unsigned long.
7879 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
7881         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
7882         [__HAVE_DISTINCT_FLOAT128].
7884         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
7885         of <bits/math-finite.h>.
7886         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
7887         inclusion of <bits/math-finite.h>.
7888         * math/bits/math-finite.h (__REDIRTO_X): Do not define
7889         conditionally on [__MATH_DECLARING_LDOUBLE && defined
7890         __NO_LONG_DOUBLE_MATH].
7891         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
7892         (__MATH_REDIRCALL_2): Likewise.
7893         (__MATH_REDIRCALL_INTERNAL): Likewise.
7894         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7895         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
7896         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
7899         Remove file.
7900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
7901         Likewise.
7902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
7903         Likewise.
7904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
7905         Likewise.
7906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
7907         Likewise.
7908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
7909         Likewise.
7910         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7911         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7912         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7913         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
7915         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
7916         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
7917         w_sqrtf_compat-ppc32.
7919 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7921         * math/math.h [defined __cplusplus] (issignaling): In the long
7922         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
7923         is not defined.  Call __issignaling, otherwise.
7925 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7927         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
7928         syscall definitions and replace __builtin_expect with __glibc_likely.
7929         * sysdeps/unix/syscall-template.S: Update comment about cancellable
7930         syscall.
7931          (SYSCALL_CANCELLABLE): Removedefinition
7932         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
7933         definition.
7934         (PSEUDO_END): Likewise.
7935         [IS_IN (libpthread)] (CENABLE): Likewise.
7936         [IS_IN (libpthread)] (CDISABLE): Likewise.
7937         [IS_IN (libc)] (CENABLE): Likewise.
7938         [IS_IN (libc)] (CENABLE): Likewise.
7939         [IS_IN (librt)] (CDISABLE): Likewise.
7940         [IS_IN (librt)] (CDISABLE): Likewise.
7941         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7942         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
7943         definition.
7944         (PSEUDO_END): Likewise.
7945         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
7946         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
7947         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7948         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7949         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7950         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7951         (CENABLE): Likewise.
7952         (CDISABLE): Likewise.
7953         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7954         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
7955         defintion.
7956         (PSEUDO_END): Likewise.
7957         [IS_IN (libpthread)] (CENABLE): Likewise.
7958         [IS_IN (libpthread)] (CDISABLE): Likewise.
7959         [IS_IN (libc)] (CENABLE): Likewise.
7960         [IS_IN (libc)] (CENABLE): Likewise.
7961         [IS_IN (librt)] (CDISABLE): Likewise.
7962         [IS_IN (librt)] (CDISABLE): Likewise.
7963         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7964         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7965         definition.
7966         (PSEUDO_END): Likewise.
7967         [IS_IN (libpthread)] (CENABLE): Likewise.
7968         [IS_IN (libpthread)] (CDISABLE): Likewise.
7969         [IS_IN (libc)] (CENABLE): Likewise.
7970         [IS_IN (libc)] (CENABLE): Likewise.
7971         [IS_IN (librt)] (CDISABLE): Likewise.
7972         [IS_IN (librt)] (CDISABLE): Likewise.
7973         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7974         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7975         definition.
7976         (PSEUDO_END): Likewise.
7977         [IS_IN (libpthread)] (CENABLE): Likewise.
7978         [IS_IN (libpthread)] (CDISABLE): Likewise.
7979         [IS_IN (libc)] (CENABLE): Likewise.
7980         [IS_IN (libc)] (CENABLE): Likewise.
7981         [IS_IN (librt)] (CDISABLE): Likewise.
7982         [IS_IN (librt)] (CDISABLE): Likewise.
7983         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7984         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
7985         definition.
7986         (PSEUDO_END): Likewise.
7987         [IS_IN (libpthread)] (CENABLE): Likewise.
7988         [IS_IN (libpthread)] (CDISABLE): Likewise.
7989         [IS_IN (libc)] (CENABLE): Likewise.
7990         [IS_IN (libc)] (CENABLE): Likewise.
7991         [IS_IN (librt)] (CDISABLE): Likewise.
7992         [IS_IN (librt)] (CDISABLE): Likewise.
7993         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7994         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
7995         definition.
7996         (PSEUDO_END): Likewise.
7997         [IS_IN (libpthread)] (CENABLE): Likewise.
7998         [IS_IN (libpthread)] (CDISABLE): Likewise.
7999         [IS_IN (libc)] (CENABLE): Likewise.
8000         [IS_IN (libc)] (CENABLE): Likewise.
8001         [IS_IN (librt)] (CDISABLE): Likewise.
8002         [IS_IN (librt)] (CDISABLE): Likewise.
8003         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8004         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8005         definition.
8006         (PSEUDO_END): Likewise.
8007         [IS_IN (libpthread)] (CENABLE): Likewise.
8008         [IS_IN (libpthread)] (CDISABLE): Likewise.
8009         [IS_IN (libc)] (CENABLE): Likewise.
8010         [IS_IN (libc)] (CENABLE): Likewise.
8011         [IS_IN (librt)] (CDISABLE): Likewise.
8012         [IS_IN (librt)] (CDISABLE): Likewise.
8013         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8014         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8015         Remove definition.
8016         (PSEUDO_END): Likewise.
8017         [IS_IN (libpthread)] (CENABLE): Likewise.
8018         [IS_IN (libpthread)] (CDISABLE): Likewise.
8019         [IS_IN (libc)] (CENABLE): Likewise.
8020         [IS_IN (libc)] (CENABLE): Likewise.
8021         [IS_IN (librt)] (CDISABLE): Likewise.
8022         [IS_IN (librt)] (CDISABLE): Likewise.
8023         (SINGLE_THREAD_P): Likewise.
8024         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8025         definition.
8026         (PSEUDO_END): Likewise.
8027         [IS_IN (libpthread)] (CENABLE): Likewise.
8028         [IS_IN (libpthread)] (CDISABLE): Likewise.
8029         [IS_IN (libc)] (CENABLE): Likewise.
8030         [IS_IN (libc)] (CENABLE): Likewise.
8031         [IS_IN (librt)] (CDISABLE): Likewise.
8032         [IS_IN (librt)] (CDISABLE): Likewise.
8033         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8034         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8035         definition.
8036         (PSEUDO_END): Likewise.
8037         [IS_IN (libpthread)] (CENABLE): Likewise.
8038         [IS_IN (libpthread)] (CDISABLE): Likewise.
8039         [IS_IN (libc)] (CENABLE): Likewise.
8040         [IS_IN (libc)] (CENABLE): Likewise.
8041         [IS_IN (librt)] (CDISABLE): Likewise.
8042         [IS_IN (librt)] (CDISABLE): Likewise.
8043         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8044         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8045         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8046         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8047         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8048         definition.
8049         (PSEUDO_END): Likewise.
8050         [IS_IN (libpthread)] (CENABLE): Likewise.
8051         [IS_IN (libpthread)] (CDISABLE): Likewise.
8052         [IS_IN (libc)] (CENABLE): Likewise.
8053         [IS_IN (libc)] (CENABLE): Likewise.
8054         [IS_IN (librt)] (CDISABLE): Likewise.
8055         [IS_IN (librt)] (CDISABLE): Likewise.
8056         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8057         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8058         definition.
8059         (PSEUDO_END): Likewise.
8060         [IS_IN (libpthread)] (CENABLE): Likewise.
8061         [IS_IN (libpthread)] (CDISABLE): Likewise.
8062         [IS_IN (libc)] (CENABLE): Likewise.
8063         [IS_IN (libc)] (CENABLE): Likewise.
8064         [IS_IN (librt)] (CDISABLE): Likewise.
8065         [IS_IN (librt)] (CDISABLE): Likewise.
8066         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8067         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8068         definition.
8069         (PSEUDO_END): Likewise.
8070         [IS_IN (libpthread)] (CENABLE): Likewise.
8071         [IS_IN (libpthread)] (CDISABLE): Likewise.
8072         [IS_IN (libc)] (CENABLE): Likewise.
8073         [IS_IN (libc)] (CENABLE): Likewise.
8074         [IS_IN (librt)] (CDISABLE): Likewise.
8075         [IS_IN (librt)] (CDISABLE): Likewise.
8076         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8077         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8078         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8079         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8080         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8081         definition.
8082         (PSEUDO_END): Likewise.
8083         [IS_IN (libpthread)] (CENABLE): Likewise.
8084         [IS_IN (libpthread)] (CDISABLE): Likewise.
8085         [IS_IN (libc)] (CENABLE): Likewise.
8086         [IS_IN (libc)] (CENABLE): Likewise.
8087         [IS_IN (librt)] (CDISABLE): Likewise.
8088         [IS_IN (librt)] (CDISABLE): Likewise.
8089         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8090         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8091         definition.
8092         (PSEUDO_END): Likewise.
8093         [IS_IN (libpthread)] (CENABLE): Likewise.
8094         [IS_IN (libpthread)] (CDISABLE): Likewise.
8095         [IS_IN (libc)] (CENABLE): Likewise.
8096         [IS_IN (libc)] (CENABLE): Likewise.
8097         [IS_IN (librt)] (CDISABLE): Likewise.
8098         [IS_IN (librt)] (CDISABLE): Likewise.
8099         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8101 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8103         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8105 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8107         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8109 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8111         [BZ #21982]
8112         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8113         middle and outer with size_t instead of int.  Repleace %d and
8114         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8115         "MAX (outer, nchars - 64)" to support unsigned outer and
8116         nchars.  Also exit loop when outer == 0.
8118 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8120         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8121         * include/signal.h (__sigsuspend_nocancel): Likewise.
8122         * include/time.h (__nanosleep_nocancel): Likewise.
8123         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8124         * login/utmp_file.c: Include non cancellable syscall header.
8125         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8126         prototype.
8128 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8130         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8131         .byte sequences with AVX512F instructions.
8132         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8133         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8134         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8135         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8136         Likewise.
8137         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8138         Likewise.
8140 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8141             Steve Ellcey  <sellcey@cavium.com>
8143         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8144         Use PTR_REG macro in cmp instruction.
8146 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8148         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8149         Change the return type of the ifunc resolver to match the return
8150         type of the target function.
8152 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8154         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8155         (preadv64): Likewise.
8156         (pwrite64(: Likewise.
8157         (pwritev64): Likewise.
8159         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8160         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8161         (LOAD_ARGS_0): Likewise.
8162         (LOAD_ARGS_1): Likewise.
8163         (LOAD_ARGS_2): Likewise.
8164         (LOAD_ARGS_3): Likewise.
8165         (LOAD_ARGS_4): Likewise.
8166         (LOAD_ARGS_5): Likewise.
8167         (LOAD_ARGS_6): Likewise.
8168         (LOAD_REGS_0): Likewise.
8169         (LOAD_REGS_1): Likewise.
8170         (LOAD_REGS_2): Likewise.
8171         (LOAD_REGS_3): Likewise.
8172         (LOAD_REGS_4): Likewise.
8173         (LOAD_REGS_5): Likewise.
8174         (LOAD_REGS_6): Likewise.
8175         (ASM_ARGS_0): Likewise.
8176         (ASM_ARGS_1): Likewise.
8177         (ASM_ARGS_2): Likewise.
8178         (ASM_ARGS_3): Likewise.
8179         (ASM_ARGS_4): Likewise.
8180         (ASM_ARGS_5): Likewise.
8181         (ASM_ARGS_6): Likewise.
8182         (LOAD_ARGS_TYPES_1): Likewise.
8183         (LOAD_ARGS_TYPES_2): Likewise.
8184         (LOAD_ARGS_TYPES_3): Likewise.
8185         (LOAD_ARGS_TYPES_4): Likewise.
8186         (LOAD_ARGS_TYPES_5): Likewise.
8187         (LOAD_ARGS_TYPES_6): Likewise.
8188         (LOAD_REGS_TYPES_1): Likewise.
8189         (LOAD_REGS_TYPES_2): Likewise.
8190         (LOAD_REGS_TYPES_3): Likewise.
8191         (LOAD_REGS_TYPES_4): Likewise.
8192         (LOAD_REGS_TYPES_5): Likewise.
8193         (LOAD_REGS_TYPES_6): Likewise.
8194         (TYPEFY): New define.
8195         (ARGIFY): Likewise.
8196         (internal_syscall0): Likewise.
8197         (internal_syscall1): Likewise.
8198         (internal_syscall2): Likewise.
8199         (internal_syscall3): Likewise.
8200         (internal_syscall4): Likewise.
8201         (internal_syscall5): Likewise.
8202         (internal_syscall6): Likewise.
8203         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8204         (INTERNAL_SYSCALL_NCS): Remove define.
8205         (internal_syscall1): Add define.
8207 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8209         * math/w_remainder_compat.c: Remove duplicate inclusion of
8210         math-svid-compat.h.
8211         * math/w_remainderf_compat.c: Likewise.
8212         * math/w_remainderl_compat.c: Likewise.
8214 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8216         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8218 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8220         [BZ #21684]
8221         * math/tgmath.h (__floating_type): Simplify definitions.
8222         (__real_integer_type): New macro.
8223         (__complex_integer_type): Likewise.
8224         (__expr_is_real): Likewise.
8225         (__tgmath_real_type_sub): Update comment to describe handling of
8226         complex types.
8227         (__tgmath_complex_type_sub): New macro.
8228         (__tgmath_complex_type): Likewise.
8229         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8230         (__TGMATH_CF128): Use __expr_is_real.
8231         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8232         __expr_is_real.
8233         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8234         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8235         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8236         integer types.
8238 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8240         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8241         macro.
8242         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8243         alias.
8244         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8245         Likewise.
8247         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8248         nanosleep_not_cancel with __nanosleep_nocancel.
8249         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8250         (__nanosleep_nocancel): New macro.
8251         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8252         function.
8253         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8254         macro.
8255         (__nanosleep_nocancel): New prototype.
8257         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8258         pause_not_cancel with __pause_nocancel.
8259         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8260         (__pause_nocancel): New macro.
8261         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8262         macro.
8263         (__pause_nocancel): New prototype.
8264         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8266 2017-08-22  Martin Sebor  <msebor@redhat.com>
8268         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8269         to return a pointer to the same type as the target function.
8271 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8273         [BZ #18822]
8274         [BZ #21986]
8275         * include/printf.h (__printf_fphex): Add attribute_hidden.
8276         (__guess_grouping): New prototype.
8277         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8278         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8279         libc_hidden_proto and libc_hidden_def.
8280         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8281         (__vstrfmon_l): Remove the third argument passed to
8282         __guess_grouping.
8284 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8286         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8287         definition for issignaling that does not rely on __MATH_TG,
8288         since __MATH_TG uses __builtin_types_compatible_p, which is only
8289         available in C mode.
8290         (CFLAGS-test-math-issignaling.cc): New variable.
8291         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8292         * math/test-math-issignaling.cc: New test for C++ implementation
8293         of type-generic issignaling.
8294         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8295         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8296         options of test-math-issignaling on powerpc64le.
8298 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8300         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8301         building libc.a.
8302         (hidden_proto): Likewise.
8303         (hidden_tls_proto): Likewise.
8304         (__hidden_proto): Likewise.
8306 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8308         math: Statically link tests of internal functionality.
8309         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8310         atest-exp2.
8311         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8312         (gmp-objs): Remove assignment.
8313         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8315 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8317         [BZ #21987]
8318         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8319         and copy to ...
8320         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8321         ... here.
8322         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8323         ... and here.
8325         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8326         variable definitions above inclusion of ../Rules.
8328 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8330         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8331         case calling __builtin_unreachable.
8333 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8335         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8336         __waitpid_nocancel.
8337         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8338         (__waitpid_nocancel): New macro.
8339         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8340         macro.
8341         (__waitpid_nocancel): Replace macro with a function.
8342         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8343         function.
8345         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8346         __fcntl_nocancel.
8347         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8348         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8350         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8351         __writev_nocancel_nostatus.
8352         (write_call_graph): Likewise.
8353         (write_bb_counts): Likewise.
8354         * resolv/herror.c (herror): Likewise.
8355         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8356         macro.
8357         (__writev_nocancel_nostatus): New macro.
8358         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8359         Remove macro.
8360         (__writev_nocancel_nostatus): New function.
8362 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8364         Revert:
8365         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8367         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8368         building libc.a.
8369         (hidden_proto): Likewise.
8370         (hidden_tls_proto): Likewise.
8371         (__hidden_proto): Likewise.
8373         [BZ #21973]
8374         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8375         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8377         Likewise.
8378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8379         Likewise.
8380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8381         Likewise.
8382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8383         Likewise.
8384         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8385         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8386         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8387         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8388         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8389         GLIBC_2.0 sqrtl symbol.
8391         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8392         [__USE_MISC] (_LIB_VERSION): Likewise.
8393         [__USE_MISC] (struct exception): Likewise.
8394         [__USE_MISC] (matherr): Likewise.
8395         [__USE_MISC] (DOMAIN): Likewise.
8396         [__USE_MISC] (SING): Likewise.
8397         [__USE_MISC] (OVERFLOW): Likewise.
8398         [__USE_MISC] (UNDERFLOW): Likewise.
8399         [__USE_MISC] (TLOSS): Likewise.
8400         [__USE_MISC] (PLOSS): Likewise.
8401         [__USE_MISC] (HUGE): Likewise.
8402         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8403         * math/math-svid-compat.h: New file.
8404         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8405         and matherrl.
8406         * include/math.h [!_ISOMAC] (__matherr): Remove.
8407         * manual/arith.texi (FP Exceptions): Do not document matherr.
8408         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8409         (tests-internal): New variable.
8410         (install-lib): Do not add libieee.a.
8411         (non-lib.a): Likewise.
8412         (extra-objs): Do not add libieee.a and ieee-math.o.
8413         (CPPFLAGS-s_lib_version.c): Remove variable.
8414         ($(objpfx)libieee.a): Remove rule.
8415         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8416         * math/ieee-math.c: Remove.
8417         * math/libm-test-support.c (matherr): Remove.
8418         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8419         and license notices.  Include <math-svid-compat.h> and
8420         <shlib-compat.h>.
8421         (matherr): Undefine as macro.  Use compat_symbol_reference.
8422         (_LIB_VERSION): Likewise.
8423         * math/test-matherr-2.c: New file.
8424         * math/test-matherr-3.c: Likewise.
8425         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8426         declaration.
8427         (__kernel_standard_f): Likewise.
8428         (__kernel_standard_l): Likewise.
8429         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8430         <math_private.h>.  Include <math-svid-compat.h>.
8431         (_LIB_VERSION): Undefine as macro.
8432         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8433         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8434         [LIBM_SVID_COMPAT], use compat_symbol.
8435         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8436         <math_private.h>.  Include <math-svid-compat.h>.
8437         (matherr): Undefine as macro.
8438         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8439         compat_symbol.
8440         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8441         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8442         compat_symbol_reference.
8443         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8444         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8445         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8446         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8447         (MATHERR_D): Remove declaration.
8448         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8449         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8450         [LIBM_BUILD] (pmatherrf): Likewise.
8451         [LIBM_BUILD] (pmatherr): Likewise.
8452         [LIBM_BUILD] (pmatherrl): Likewise.
8453         (DOMAIN): Likewise.
8454         (SING): Likewise.
8455         (OVERFLOW): Likewise.
8456         (UNDERFLOW): Likewise.
8457         (TLOSS): Likewise.
8458         (PLOSS): Likewise.
8459         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8460         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8461         compat_symbol.
8462         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8463         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8464         compat_symbol.
8465         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8466         * math/w_acos_compat.c: Likewise.
8467         * math/w_acosf_compat.c: Likewise.
8468         * math/w_acosh_compat.c: Likewise.
8469         * math/w_acoshf_compat.c: Likewise.
8470         * math/w_acoshl_compat.c: Likewise.
8471         * math/w_acosl_compat.c: Likewise.
8472         * math/w_asin_compat.c: Likewise.
8473         * math/w_asinf_compat.c: Likewise.
8474         * math/w_asinl_compat.c: Likewise.
8475         * math/w_atan2_compat.c: Likewise.
8476         * math/w_atan2f_compat.c: Likewise.
8477         * math/w_atan2l_compat.c: Likewise.
8478         * math/w_atanh_compat.c: Likewise.
8479         * math/w_atanhf_compat.c: Likewise.
8480         * math/w_atanhl_compat.c: Likewise.
8481         * math/w_cosh_compat.c: Likewise.
8482         * math/w_coshf_compat.c: Likewise.
8483         * math/w_coshl_compat.c: Likewise.
8484         * math/w_exp10_compat.c: Likewise.
8485         * math/w_exp10f_compat.c: Likewise.
8486         * math/w_exp10l_compat.c: Likewise.
8487         * math/w_exp2_compat.c: Likewise.
8488         * math/w_exp2f_compat.c: Likewise.
8489         * math/w_exp2l_compat.c: Likewise.
8490         * math/w_fmod_compat.c: Likewise.
8491         * math/w_fmodf_compat.c: Likewise.
8492         * math/w_fmodl_compat.c: Likewise.
8493         * math/w_hypot_compat.c: Likewise.
8494         * math/w_hypotf_compat.c: Likewise.
8495         * math/w_hypotl_compat.c: Likewise.
8496         * math/w_j0_compat.c: Likewise.
8497         * math/w_j0f_compat.c: Likewise.
8498         * math/w_j0l_compat.c: Likewise.
8499         * math/w_j1_compat.c: Likewise.
8500         * math/w_j1f_compat.c: Likewise.
8501         * math/w_j1l_compat.c: Likewise.
8502         * math/w_jn_compat.c: Likewise.
8503         * math/w_jnf_compat.c: Likewise.
8504         * math/w_jnl_compat.c: Likewise.
8505         * math/w_lgamma_main.c: Likewise.
8506         * math/w_lgamma_r_compat.c: Likewise.
8507         * math/w_lgammaf_main.c: Likewise.
8508         * math/w_lgammaf_r_compat.c: Likewise.
8509         * math/w_lgammal_main.c: Likewise.
8510         * math/w_lgammal_r_compat.c: Likewise.
8511         * math/w_log10_compat.c: Likewise.
8512         * math/w_log10f_compat.c: Likewise.
8513         * math/w_log10l_compat.c: Likewise.
8514         * math/w_log2_compat.c: Likewise.
8515         * math/w_log2f_compat.c: Likewise.
8516         * math/w_log2l_compat.c: Likewise.
8517         * math/w_log_compat.c: Likewise.
8518         * math/w_logf_compat.c: Likewise.
8519         * math/w_logl_compat.c: Likewise.
8520         * math/w_pow_compat.c: Likewise.
8521         * math/w_powf_compat.c: Likewise.
8522         * math/w_powl_compat.c: Likewise.
8523         * math/w_remainder_compat.c: Likewise.
8524         * math/w_remainderf_compat.c: Likewise.
8525         * math/w_remainderl_compat.c: Likewise.
8526         * math/w_scalb_compat.c: Likewise.
8527         * math/w_scalbf_compat.c: Likewise.
8528         * math/w_scalbl_compat.c: Likewise.
8529         * math/w_sinh_compat.c: Likewise.
8530         * math/w_sinhf_compat.c: Likewise.
8531         * math/w_sinhl_compat.c: Likewise.
8532         * math/w_sqrt_compat.c: Likewise.
8533         * math/w_sqrtf_compat.c: Likewise.
8534         * math/w_sqrtl_compat.c: Likewise.
8535         * math/w_tgamma_compat.c: Likewise.
8536         * math/w_tgammaf_compat.c: Likewise.
8537         * math/w_tgammal_compat.c: Likewise.
8538         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8539         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8540         * sysdeps/ieee754/k_standard.c: Likewise.
8541         * sysdeps/ieee754/k_standardf.c: Likewise.
8542         * sysdeps/ieee754/k_standardl.c: Likewise.
8543         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8544         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8545         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8546         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8547         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8548         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8549         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8550         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8551         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8553         Likewise.
8554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8555         Likewise.
8556         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8557         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8558         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8559         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8561 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8563         [BZ #21864]
8564         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8565         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8566         Move before inclusion of ../Rules.
8568 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8570         [BZ #21972]
8571         * assert/assert.h (assert): Use static_cast (bool) for C++.
8572         Use the ternary operator in the warning branch for GNU C.
8573         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8574         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8575         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8576         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8577         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8579 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8581         [BZ #18822]
8582         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8583         (__syscall_clock_gettime): Add attribute_hidden.
8584         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8585         (__start_context): Likewise.
8587 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8589         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8590         building libc.a.
8591         (hidden_proto): Likewise.
8592         (hidden_tls_proto): Likewise.
8593         (__hidden_proto): Likewise.
8595 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8597         * include/libc-symbols.h (attribute_hidden): Enable hidden
8598         visibility in libc.a compiled with PIE.
8600 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8602         [BZ #18822]
8603         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8604         Add attribute_hidden.
8606 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8608         [BZ #21864]
8609         * Makerules (all-nonlib): Add $(others-extras).
8610         * catgets/Makefile (others-extras): New.
8611         * elf/Makefile (others-extras): Likewise.
8612         * nss/Makefile (others-extras): Likewise.
8614 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8616         [BZ #18822]
8617         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8618         * elf/dl-open.c: Include <libc-internal.h>.
8619         (__libc_multiple_libcs): Removed.
8620         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8621         <hp-timing.h>.
8622         * include/libc-internal.h (__libc_multiple_libcs): New.
8623         * misc/sbrk.c: Include <libc-internal.h>.
8624         (__libc_multiple_libcs): Removed.
8626 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8628         [BZ #18822]
8629         * grp/initgroups.c (__nss_group_database): Removed.
8630         (__nss_initgroups_database): Likewise.
8631         * nscd/gai.c (__nss_hosts_database): Likewise.
8632         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8633         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8634         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8635         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8636         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8637         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8638         attribute_hidden.
8639         * nss/nsswitch.c (__nss_database_custom): Define only if
8640         USE_NSCD is defined.
8641         (__nss_configure_lookup): Use __nss_database_custom only if
8642         USE_NSCD is defined.
8643         * nss/nsswitch.h (__nss_database_custom): Declare only if
8644         USE_NSCD is defined.  Add attribute_hidden.
8645         (__nss_setent): Add attribute_hidden.
8646         (__nss_endent): Likewise.
8647         (__nss_getent_r): Likewise.
8648         (__nss_getent): Likewise.
8649         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8651 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8653         [BZ #18822]
8654         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8655         libc_hidden_proto and libc_hidden_def.
8657 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8659         [BZ #18822]
8660         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8661         Add libc_hidden_proto.
8662         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8663         Add libc_hidden_def.
8665 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8667         [BZ #21974]
8668         * gmon/Makefile (routines): Remove bb_init_func and
8669         bb_exit_func.
8670         (elide-routines.os): Removed.
8671         * gmon/bb_exit_func.c: Likewise.
8672         * gmon/bb_init_func.c: Likewise.
8673         * include/sys/gmon.h (__bb): Likewise.
8674         (__bb_init_func): Likewise.
8675         (__bb_exit_func): Likewise.
8676         * sysdeps/alpha/bb_init_func.S: Likewise.
8678 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8680         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8681         * include/setjmp.h (____longjmp_chk): Here.  Add
8682         attribute_hidden.
8684 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8686         [BZ #18822]
8687         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8688         attribute_hidden.
8689         (__strspn_sse2): Likewise.
8691 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8693         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8694         (close_not_cancel_no_status): Likewise.
8695         (__close_nocancel): New macro.
8696         (__close_nocancel_nostatus): Likewise.
8697         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8698         macro.
8699         (close_not_cancel): Likewise.
8700         (close_not_cancel_no_status): Likewise.
8701         (__close_nocancel): New prototype.
8702         (__close_nocancel_nostatus): New function.
8703         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8704         * catgets/open_catalog.c (__open_catalog): Replace
8705         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8706         * gmon/gmon.c (write_gmon): Likewise.
8707         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8708         * intl/loadmsgcat.c (close): Likewise.
8709         * io/ftw.c (open_dir_stream): Likewise.
8710         (ftw_startup): Likewise.
8711         * libio/fileops.c (_IO_file_open): Likewise.
8712         (_IO_file_close_mmap): Likewise.
8713         (_IO_file_close): Likewise.
8714         * libio/iopopen.c (_IO_dup2): Likewise.
8715         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8716         * locale/loadlocale.c (_nl_load_locale): Likewise.
8717         * login/utmp_file.c (pututline_file): Likewise.
8718         (endutent_file): Likewise.
8719         * misc/daemon.c (daemon): Likewise.
8720         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8721         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8722         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8723         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8724         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8725         * nscd/nscd_helper.c (open_socket): Likewise.
8726         (__nscd_open_socket): Likewise.
8727         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8728         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8729         (__nscd_innetgr): Likewise.
8730         * nss/nss_db/db-open.c (internal_setent): Likewise.
8731         * resolv/res-close.c (__res_iclose): Likewise.
8732         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8733         * sysdeps/posix/closedir.c (__closedir): Likewise.
8734         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8735         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8736         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8737         (opendir_tail): Likewise.
8738         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8739         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8740         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8741         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8742         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8743         (gethostid): Likewise.
8744         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8745         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8746         Likewise.
8747         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8748         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8749         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8750         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8751         Likewise.
8752         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8753         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8754         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8755         Likewise.
8756         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8757         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8758         Likewise.
8759         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8760         Likewise.
8761         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8762         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8763         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8764         __close_nocancel.
8766         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8767         (openat_not_cancel_3): Likewise.
8768         (openat64_not_cancel_3): Likewise).
8769         (openat_not_cancel_3): Likewise).
8770         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8771         macro.
8772         (openat_not_cancel_3): Likewise.
8773         (openat64_not_cancel): Likewise.
8774         (openat64_not_cancel_3): Likewise.
8775         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8776         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8777         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8778         __open{64}_nocancel.
8779         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8780         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8781         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8783 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8785         [BZ #18822]
8786         * include/argz.h (__argz_create_sep): New function prototype.
8787         (__argz_append): Likewise.
8788         (__argz_add): Likewise.
8789         (__argz_add_sep): Likewise.
8790         (__argz_delete): Likewise.
8791         (__argz_insert): Likewise.
8792         (__argz_replace): Likewise.
8793         * string/argz.h (__argz_create_sep): Removed.
8794         (__argz_append): Likewise.
8795         (__argz_add): Likewise.
8796         (__argz_add_sep): Likewise.
8797         (__argz_delete): Likewise.
8798         (__argz_insert): Likewise.
8799         (__argz_replace): Likewise.
8801 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8803         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8804         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8805         (GNU_PROPERTY_STACK_SIZE): Likewie.
8806         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8807         (GNU_PROPERTY_LOPROC): Likewise.
8808         (GNU_PROPERTY_HIPROC): Likewise.
8809         (GNU_PROPERTY_LOUSER): Likewise.
8810         (GNU_PROPERTY_HIUSER): Likewise.
8811         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8812         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8813         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8814         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8815         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8816         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8817         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8818         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8819         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8820         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8821         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8822         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8823         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8824         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8825         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8826         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8827         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8828         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8829         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8830         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8831         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8832         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8833         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8835 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8837         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8838         in C++ mode.
8840 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8842         [BZ #21930]
8843         * math/math.h (isinf): Check if in C or C++ mode before using
8844         __builtin_types_compatible_p, since this is a C mode feature.
8846 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8848         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8849         (__write_nocancel): New macro.
8850         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8851         Rewrite as a function prototype.
8852         (write_not_cancel): Remove macro.
8853         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8854         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8855         (write_gmon): Likewise.
8856         * libio/fileops.c (_IO_new_file_write): Likewise.
8857         * login/utmp_file.c (pututline_file): Likewise.
8858         (updwtmp_file): Likewise.
8859         * stdio-common/psiginfo.c (psiginfo): Likewise.
8860         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8861         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8862         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8863         Likewise.
8864         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8865         Likewise.
8867         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8868         (__read_nocancel): New macro.
8869         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8870         __read_nocancel.
8871         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
8872         macro.
8873         (__read_nocancel): New prototype.
8874         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
8875         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
8876         with __read_nocancel.
8877         * intl/loadmsgcat.c (read): Likewise.
8878         * libio/fileops.c (_IO_file_read): Likewise.
8879         * locale/loadlocale.c (_nl_load_locale): Likewise.
8880         * login/utmp_file.c (getutent_r_file): Likewise.
8881         (internal_getut_r): Likewise.
8882         (getutline_r_file): Likewise.
8883         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8884         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8885         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8886         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8887         Likewise.
8888         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
8889         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8890         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8891         Likewise.
8892         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8893         Likewise.
8894         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8895         Likewise.
8896         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8897         Likewise.
8898         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8900 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8902         [BZ #21966]
8903         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
8904         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
8905         usable.
8907 2017-08-17  DJ Delorie  <dj@redhat.com>
8909         * bug17079.c: Update to new test harness.
8910         * test-digits-dots.c: Likewise.
8911         * test-netdb.c: Likewise.
8912         * tst-field.c: Likewise.
8913         * tst-nss-getpwent.c: Likewise.
8914         * tst-nss-static.c: Likewise.
8915         * tst-nss-test1.c: Likewise.
8916         * tst-nss-test2.c: Likewise.
8917         * tst-nss-test3.c: Likewise.
8918         * tst-nss-test4.c: Likewise.
8919         * tst-nss-test5.c: Likewise.
8921 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8923         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
8924         (open_not_cancel_2): Likewise.
8925         (open_nocancel): New macro.
8926         (open64_nocancel): Likewise.
8927         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
8928         (open_not_cancel_2): Likewise.
8929         (__open_nocancel): New prototype.
8930         (__open64_nocancel): Likewise.
8931         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8932         __open_nocancel.
8933         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
8934         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
8935         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
8936         with __open_nocancel.
8937         * csu/check_fds.c (check_one_fd): Likewise.
8938         * gmon/gmon.c (write_gmon): Likewise.
8939         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
8940         * intl/loadmsgcat.c (open): Likewise.
8941         * libio/fileops.c (_IO_file_open): Likewise.
8942         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8943         * locale/loadlocale.c (_nl_load_locale): Likewise.
8944         * login/utmp_file.c (setutent_file): Likewise.
8945         * misc/daemon.c (daemon): Likewise.
8946         * nss/nss_db/db-open.c (internal_setent): Likewise.
8947         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8948         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
8949         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8950         (__opendir): Likewise.
8951         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8952         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8953         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8954         (gethostid): Likewise.
8955         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8956         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8957         Likewise.
8958         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8959         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
8960         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8961         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8962         Likewise.
8963         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8964         Likewise.
8965         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8966         Likewise.
8967         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8968         Likewise.
8969         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8970         Likewise.
8971         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8972         Likewise.
8973         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8974         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8976 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
8978         * benchtests/bench-skeleton.c (main): Add support for
8979         latency benchmarking.
8980         * benchtests/scripts/bench.py: Add support for latency benchmarking.
8982 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8984         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
8985         the startup object.
8987 2017-08-17  Florian Weimer  <fweimer@redhat.com>
8989         * include/sys/socket.h (__opensock): Remove internal_function.
8990         * socket/opensock.c (__opensock): Likewise.
8991         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8993 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8995         [BZ #21944]
8996         * signal/bits/types/__sigval_t.h: New file.
8997         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
8998         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
8999         and define sigval_t using __sigval_t.
9000         * include/bits/types/__sigval_t.h: New file.
9001         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9002         instead of <bits/types/__sigval_t.h>.
9003         (struct sigevent): Use __sigval_t instead of sigval_t.
9004         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9005         instead of <bits/types/__sigval_t.h>.
9006         (siginfo_t): Use __sigval_t instead of sigval_t.
9007         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9008         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9009         (struct sigevent): Use __sigval_t instead of sigval_t.
9010         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9011         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9012         (siginfo_t): Use __sigval_t instead of sigval_t.
9013         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9015 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9017         * NEWS: Remove "[Add new features here]" for 2.27.
9019 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9021         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9022         libc.so.
9024 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9026         * NEWS: Mention x86-64 FMA optimization.
9028 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9030         [BZ #21912]
9031         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9032         Add e_expf-fma.
9033         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9034         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9035         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9037 2017-08-16  Andreas Schwab  <schwab@suse.de>
9039         [BZ #16750]
9040         CVE-2009-5064
9041         * elf/ldd.bash.in: Never run file directly.
9043 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9045         [BZ #21955]
9046         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9047         (L(SP_INF_0)): Likewise.
9049 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9051         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9052         run-built-tests.
9054 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9056         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9057         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9058         BROKEN_THREAD_SIGNALS code.
9059         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9060         request_list): Remove caller_pid member used for
9061         BROKEN_THREAD_SIGNALS.
9062         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9063         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9064         Remove BROKEN_THREAD_SIGNALS support.
9065         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9066         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9068 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9070         * gmon/Makefile (tests): Add tst-gmon.
9071         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9072         Set.
9073         (tests-special): Add tst-gmon-prof.out.
9074         (tst-gmon.out): Depend on clean-tst-gmon-data.
9075         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9076         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9077         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9078         startup object.
9079         * aclocal.m4 (GPROF): Set and substitute.
9080         * config.amke.in (GPROF): Set.
9081         * configure: Regenerate.
9083 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9085         * elf/elf.h A (NT_PPC_TAR): New macro.
9086         (NT_PPC_PPR): Likewise.
9087         (NT_PPC_DSCR): Likewise.
9088         (NT_PPC_EBB): Likewise.
9089         (NT_PPC_PMU): Likewise.
9090         (NT_PPC_TM_CGPR): Likewise.
9091         (NT_PPC_TM_CFPR): Likewise.
9092         (NT_PPC_TM_CVMX): Likewise.
9093         (NT_PPC_TM_CVSX): Likewise.
9094         (NT_PPC_TM_SPR): Likewise.
9095         (NT_PPC_TM_CTAR): Likewise.
9096         (NT_PPC_TM_CPPR): Likewise.
9097         (NT_PPC_TM_CDSCR): Likewise.
9099 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9101         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9102         regparm (2) instead of internal_function.
9103         (_MCOUNT_DECL): Adjust.
9105 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9107         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9108         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9110 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9112         * conform/data/sys/wait.h-data (si_value): Do not expect for
9113         XPG42.
9115 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9117         [BZ #21962]
9118         NSS: Create stubs for accidentally exported lookup functions.
9119         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9120         Remove declaration.
9121         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9122         (ether_hostton): Call __nss_ethers_lookup2 instead.
9123         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9124         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9125         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9126         (setup): Call __nss_netgroup_lookup2 instead.
9127         * nss/Makefile (routines): Add compat-lookup.
9128         * nss/Versions (GLIBC_2.27): Add symbol version.
9129         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9130         (DB_COMPAT_FCT): Remove.
9131         * nss/compat-lookup.c: New file.
9132         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9133         from databases.def.
9134         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9135         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9136         (netname2user): Call __nss_publickey_lookup2 instead.
9137         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9138         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9139         instead.
9141 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9142             Sergei Trofimovich  <slyfox@inbox.ru>
9144         [BZ #21908]
9145         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9146         Rename to MMAP2_PAGE_UNIT.
9147         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9148         __OFF_T_MATCHES_OFF64_T is not defined.
9149         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9150         uint64_t.
9151         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9152         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9154 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9156         i386: Do not set internal_function.
9157         * config.h.in (USE_REGPARMS, internal_function): Remove.
9158         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9159         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9161 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9163         * elf/dl-init.c (_dl_init): Remove internal_function.
9164         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9165         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9167 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9169         * elf/rtld.c (_dl_start): Remove internal_function.
9170         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9171         _dl_start.
9173 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9175         * elf/dl-fini.c (_dl_fini): Remove internal_function
9176         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9178 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9180         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9181         (bit_cpu_SHSTK): Likewise.
9182         (index_cpu_IBT): Likewise.
9183         (index_cpu_SHSTK): Likewise.
9184         (reg_IBT): Likewise.
9185         (reg_SHSTK): Likewise.
9186         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9187         Handle index_cpu_IBT and index_cpu_SHSTK.
9189 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9191         [BZ #19982]
9192         * po/fr.po: Fix spelling mistake.
9194 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9196         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9197         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9198         (_dl_catch_error, _dl_receive_error): Likewise.
9199         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9200         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9201         (_dl_deallocate_tls): Likewise.
9202         * include/dlfcn.h (_dl_addr): Likewise.
9203         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9204         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9205         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9206         Likewise.
9208 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9210         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9211         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9212         internal_function.
9213         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9215 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9217         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9218         internal_function.
9219         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9220         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9221         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9222         internal_function from _dl_make_stack_executable_hook member.
9223         (_dl_make_stack_executable): Remove internal_function.
9224         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9225         Likewise.
9226         * sysdeps/unix/sysv/linux/dl-execstack.c
9227         (_dl_make_stack_executable): Likewise.
9229 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9231         * sysdeps/unix/sysv/linux/netlinkaccess.h
9232         (__netlink_assert_response): Remove internal_function.
9233         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9234         (__netlink_assert_response): Likewise.
9236 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9238         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9239         internal_function.
9240         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9242 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9244         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9245         internal_function.
9246         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9247         * inet/netgroup.h (__internal_setnetgrent)
9248         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9249         * inet/getnetgrent_r.c (__internal_setnetgrent)
9250         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9251         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9252         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9253         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9254         * nss/nsswitch.h (db_lookup_function): Likewise.
9256 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9258         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9259         Remove internal_function.
9260         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9261         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9262         message argument on the stack.
9263         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9264         Likeweise.
9266 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9268         Adapt test case data to the changes in the thousands
9269         separators.
9271         [BZ #20756]
9272         * localedata/tst-langinfo.sh: Adapt test case data.
9273         * stdlib/tst-strfmon_l.c: Likewise.
9274         * stdlib/tst-strtod4.c: Likewise.
9275         * stdlib/tst-strtod5i.c: Likewise.
9277 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9279         [BZ #21242]
9280         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9281         Suppress pedantic warning resulting from statement expression.
9282         (__ASSERT_FUNCTION): Add missing __extension__.
9284 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9286         * benchtests/bench-memmove-large.c: Print output in JSON
9287         format.
9288         * benchtests/bench-memmove.c: Likewise.
9290         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9291         * benchtests/bench-memchr.c (do_one_test): Likewise.
9292         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9293         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9294         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9295         * benchtests/bench-memmove.c (do_one_test): Likewise.
9296         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9297         * benchtests/bench-memset.c (do_one_test): Likewise.
9298         * benchtests/bench-string.h (test_init): Remove memsets.
9300 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9302         * manual/lang.texi
9303         (Computing the Width of an Integer Data Type): Rename section to
9304         "Width of an Integer Type".  Remove inaccurate statement regarding
9305         lack of C language facilities for determining width of integer
9306         types, and reorder content to improve flow and context of
9307         discussion.
9309 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9311         * lang.texi (va_copy): Change standard from ISO to C99.
9312         (__va_copy): Add standard and header annotation.
9313         Update description for clarity of origins and current use.
9315 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9317         [BZ #21941]
9318         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9319         xssqrtqp requires operands to be in Vector Registers
9320         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9321         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9322         (__ieee754_sqrtf128): Likewise.
9324 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9326         * sysdeps/aarch64/memcmp.S (memcmp):
9327         Rewrite of optimized memcmp.
9329 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9331         Introduce ld.so exceptions.
9332         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9333         (_dl_exception_create, _dl_exception_create_format)
9334         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9335         (_dl_catch_exception): Declare.
9336         (_dl_catch_error): Update comment.
9337         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9338         errstring, malloced members with exception member.
9339         (_dl_out_of_memory): Remove.
9340         (fatal_error): New function, extracted from _dl_signal_error.
9341         (_dl_signal_exception, _dl_signal_cexception): New functions.
9342         (_dl_signal_error): Call _dl_exception_create to allocate an
9343         exception object.
9344         (_dl_catch_exception): New function, based on _dl_catch_error.
9345         (_dl_catch_error): Implement using _dl_catch_exception.
9346         * elf/dl-exception.c: New file.
9347         * elf/Makefile (dl-routines): Add dl-exception.
9348         (elide-routines.os): Likewise.
9349         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9350         _dl_exception_create_format, _dl_exception_free.
9351         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9352         _dl_signal_exception.
9353         * elf/dl-lookup.c (make_string): Remove.
9354         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9355         _dl_signal_cexception, _dl_exception_free.
9356         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9357         _dl_signal_exception.
9358         * elf/dl-sym.c (do_sym): Likewise.
9359         * elf/dl-version.c (make_string): Remove.
9360         (match_symbol): Use _dl_exception_create_format,
9361         _dl_signal_cexception, _dl_exception_free.
9362         (_dl_check_map_versions): Likewise.
9363         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9364         _dl_catch_exception.
9365         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9366         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9367         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9368         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9369         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9370         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9371         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9372         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9373         Likewise.
9374         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9376         (ld.so): Likewise.
9377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9378         (ld.so): Likewise.
9379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9380         Likewise.
9381         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9382         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9383         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9384         Likewise.
9385         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9386         Likewise.
9387         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9389 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9391         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9392         attribute_hidden, internal_function.
9393         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9394         internal_function.
9396 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9398         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9399         function which calls __builtin_unreachable.
9401 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9403         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9404         Indian monetary formatting
9405         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9406         test cases.
9408 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9410         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9411         Fix typo in comment.
9413         [BZ #21928]
9414         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9415         PTRACE_SEIZE_DEVEL): Remove.
9416         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9417         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9418         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9419         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9420         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9422 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9424         * posix/bits/types.h (__qaddr_t): Remove.
9426         [BZ #21457]
9427         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9428         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9429         __glibc_reserved1.
9430         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9431         (ucontext_t): Use __ctx with uc_flags.
9432         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9433         (__ctxt): Likewise.
9434         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9435         __glibc_reserved1.
9436         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9437         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9438         __glibc_reserved1.
9439         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9440         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9441         __glibc_reserved1.
9442         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9443         macro.
9444         (ucontext_t): Use __ctx with uc_flags.
9445         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9446         (ucontext_t): Use __ctx with uc_flags.
9447         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9448         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9449         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9450         (ucontext_t): Use __ctx with uc_flags.
9451         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9452         undefine further down.
9453         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9454         __glibc_reserved1.
9455         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9456         undefine further down.
9457         (ucontext_t): Use __ctx with uc_flags.
9458         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9459         undefine further down.
9460         (ucontext_t): Use __ctx with uc_flags.
9461         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9462         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9463         Rename uc_pad to __glibc_reserved1.
9464         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9465         undefine further down.
9466         (ucontext_t): Use __ctx with uc_flags.
9467         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9468         further down.
9469         (ucontext_t): Use __ctx with uc_flags.
9470         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9471         __ctx with uc_flags.
9472         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9473         (ucontext_t): Use __ctx with uc_flags.
9474         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9475         __ctx with uc_flags.
9477 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9479         [BZ #21932]
9480         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9481         before early return.
9483 2017-08-09  Andreas Schwab  <schwab@suse.de>
9485         [BZ #21041]
9486         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9487         renamed alias.
9489         [BZ #21041]
9490         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9491         tst-compat-forwarder.
9492         (modules-names): Add tst-compat-forwarder-mod.
9493         ($(objpfx)tst-compat-forwarder): Depend on
9494         $(objpfx)tst-compat-forwarder-mod.so.
9495         * nptl/tst-compat-forwarder.c: New file.
9496         * nptl/tst-compat-forwarder-mod.c: New file.
9498 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9500         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9501         comments.
9503         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9504         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9505         memcpy_falkor.
9506         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9507         Bump.
9508         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9509         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9510         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9511         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9512         Add falkor.
9513         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9514         New macro.
9516 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9518         [BZ #759]
9519         * manual/setjmp.texi (getcontex): Document uc_stack value
9520         compatibility differences.
9522 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9524         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9525         (old_malloc_hook): Likewise.
9526         (old_memalign_hook): Likewise.
9527         (old_realloc_hook): Likewise.
9528         (struct hdr): Likewise.
9529         (flood): Likewise.
9530         (freehook): Likewise.
9531         (mallochook): Likewise.
9532         (memalignhook): Likewise.
9533         (reallochook): Likewise.
9534         (mprobe): Likewise.
9535         * malloc/mtrace.c (mallwatch): Likewise.
9536         (tr_old_free_hook): Likewise.
9537         (tr_old_malloc_hook): Likewise.
9538         (tr_old_realloc_hook): Likewise.
9539         (tr_old_memalign_hook): Likewise.
9540         (tr_where): Likewise.
9541         (lock_and_info): Likewise.
9542         (tr_freehook): Likewise.
9543         (tr_mallochook): Likewise.
9544         (tr_reallochook): Likewise.
9545         (tr_memalignhook): Likewise.
9546         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9547         * misc/mmap.c (__mmap): Likewise.
9548         * misc/mmap64.c (__mmap64): Likewise.
9549         * misc/mprotect.c (__mprotect): Likewise.
9550         * misc/msync.c (msync): Likewise.
9551         * misc/munmap.c (__munmap): Likewise.
9552         * posix/posix_madvise.c (posix_madvise): Likewise.
9553         * socket/send.c (__send): Likewise.
9554         * socket/sendto.c (__sendto): Likewise.
9555         * socket/setsockopt.c (__setsockopt): Likewise.
9556         * string/memcmp.c (__ptr_t): Remove macro.
9557         (MEMCMP): Use void * instead of ptr_t.
9558         * string/memrchr.c (__ptr_t): Remove macro.
9559         (__memrchr): Use void * instead of ptr_t.
9560         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9561         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9562         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9563         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9564         * sysdeps/mach/msync.c (msync): Likewise.
9565         * sysdeps/mach/munmap.c (__munmap): Likewise.
9566         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9567         Likewise.
9568         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9569         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9570         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9571         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9572         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9573         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9574         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9575         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9576         Likewise.
9577         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9578         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9579         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9580         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9581         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9582         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9583         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9584         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9585         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9586         Likewise.
9587         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9588         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9589         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9590         (MEMCMP): Use void * instead of ptr_t.
9591         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9592         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9594 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9596         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9597         return statement.
9599 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9601         [BZ #21913]
9602         * csu/libc-tls.c: Include <startup.h> first.
9603         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9604         * elf/dl-tunables.c: Include <startup.h> first.
9605         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9606         * sysdeps/generic/startup.h: New file.
9607         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9608         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9609         (I386_USE_SYSENTER): New.  Defined to 0.
9611 2017-08-08  Andreas Schwab  <schwab@suse.de>
9613         [BZ #21041]
9614         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9615         * nptl/pt-system.c (system): Likewise.
9617 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9619         [BZ #21780]
9620         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9621         EOPNOTSUPP.
9622         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9623         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9624         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9625         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9626         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9627         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9628         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9630 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9632         [BZ #21899]
9633         * bits/sigaction.h (struct sigaction): Define sa_handler and
9634         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9635         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9636         [__USE_XOPEN_EXTENDED].
9637         (SA_RESTART): Likewise.
9638         (SA_NODEFER): Likewise.
9639         (SA_RESETHAND): Likewise.
9640         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9641         (struct sigaction): Define sa_handler and sa_sigaction using union
9642         also for [__USE_XOPEN_EXTENDED].
9643         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9644         [__USE_XOPEN_EXTENDED].
9645         (SA_RESTART): Likewise.
9646         (SA_NODEFER): Likewise.
9647         (SA_RESETHAND): Likewise.
9648         * sysdeps/unix/sysv/linux/bits/sigaction.h
9649         (struct sigaction): Define sa_handler and sa_sigaction using union
9650         also for [__USE_XOPEN_EXTENDED].
9651         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9652         [__USE_XOPEN_EXTENDED].
9653         (SA_RESTART): Likewise.
9654         (SA_NODEFER): Likewise.
9655         (SA_RESETHAND): Likewise.
9656         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9657         (struct sigaction): Define sa_handler and sa_sigaction using union
9658         also for [__USE_XOPEN_EXTENDED].
9659         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9660         [__USE_XOPEN_EXTENDED].
9661         (SA_RESTART): Likewise.
9662         (SA_NODEFER): Likewise.
9663         (SA_RESETHAND): Likewise.
9664         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9665         (struct sigaction): Define sa_handler and sa_sigaction using union
9666         also for [__USE_XOPEN_EXTENDED].
9667         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9668         [__USE_XOPEN_EXTENDED].
9669         (SA_RESTART): Likewise.
9670         (SA_NODEFER): Likewise.
9671         (SA_RESETHAND): Likewise.
9672         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9673         (struct sigaction): Define sa_handler and sa_sigaction using union
9674         also for [__USE_XOPEN_EXTENDED].
9675         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9676         [__USE_XOPEN_EXTENDED].
9677         (SA_RESTART): Likewise.
9678         (SA_NODEFER): Likewise.
9679         (SA_RESETHAND): Likewise.
9680         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9681         (struct sigaction): Define sa_handler and sa_sigaction using union
9682         also for [__USE_XOPEN_EXTENDED].
9683         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9684         [__USE_XOPEN_EXTENDED].
9685         (SA_RESTART): Likewise.
9686         (SA_NODEFER): Likewise.
9687         (SA_RESETHAND): Likewise.
9688         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9689         (struct sigaction): Define sa_handler and sa_sigaction using union
9690         also for [__USE_XOPEN_EXTENDED].
9691         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9692         [__USE_XOPEN_EXTENDED].
9693         (SA_RESTART): Likewise.
9694         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9695         (SA_RESETHAND): Likewise.
9696         (SA_INTERRUPT): Define only for [__USE_MISC].
9697         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9698         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9699         [__USE_MISC].
9700         (SA_STACK): Define only for [__USE_MISC].
9701         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9702         (struct sigaction): Define sa_handler and sa_sigaction using union
9703         also for [__USE_XOPEN_EXTENDED].
9704         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9705         [__USE_XOPEN_EXTENDED].
9706         (SA_RESTART): Likewise.
9707         (SA_NODEFER): Likewise.
9708         (SA_RESETHAND): Likewise.
9709         (SA_NOPTRACE): Define only for [__USE_MISC].
9711         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9712         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9713         (struct catalog_info): Likewise.
9714         * inet/htontest.c (lo): Likewise.
9715         (foo): Likewise.
9716         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9717         * inet/inet_net.c (inet_network): Likewise.
9718         * inet/inet_netof.c (inet_netof): Likewise.
9719         * inet/rcmd.c (__ivaliduser): Likewise.
9720         (iruserok): Likewise.
9721         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9722         * locale/programs/locale-spec.c (locale_special): Likewise.
9723         * nis/nis_findserv.c (struct findserv_req): Likewise.
9724         (__nis_findfastest_with_timeout): Likewise.
9725         * nss/test-netdb.c (test_network): Likewise.
9726         * resolv/inet_neta.c (inet_neta): Likewise.
9727         * resolv/ns_date.c (ns_datetosecs): Likewise.
9728         (SECS_PER_DAY): Likewise.
9729         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9730         Likewise.
9731         * resolv/res_comp.c (__putlong): Likewise.
9732         (__putshort): Likewise.
9733         (_getlong): Likewise.
9734         (_getshort): Likewise.
9735         * resolv/res_debug.c (p_time): Likewise.
9736         (precsize_ntoa): Likewise.
9737         (precsize_aton): Likewise.
9738         (latlon2ul): Likewise.
9739         (loc_aton): Likewise.
9740         (loc_ntoa): Likewise.
9741         * resolv/res_hconf.c (struct netaddr): Likewise.
9742         (_res_hconf_reorder_addrs): Likewise.
9743         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9744         (clnttcp_control): Likewise.
9745         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9746         (clntudp_control): Likewise.
9747         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9748         (clntunix_control): Likewise.
9749         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9750         * sunrpc/rpc/auth.h (union des_block): Likewise.
9751         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9752         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9753         (xdrrec_create): Likewise.
9754         (xdrrec_endofrecord): Likewise.
9755         (flush_out): Likewise.
9756         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9757         (xdrstdio_putlong): Likewise.
9758         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9759         Likewise.
9761         * misc/sys/cdefs.h (__long_double_t): Remove.
9762         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9763         instead of __long_double_t,
9764         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9766 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9768         * benchtests/scripts/compare_strings.py: Avoid display error when
9769         running on a text terminal.
9771         * benchtests/scripts/compare_strings.py (main): Add an
9772         optional -base option.
9773         (process_results): New argument base_func.
9775         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9776         hardcoding memcpy.
9777         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9778         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9780 2017-08-07  Andreas Schwab  <schwab@suse.de>
9782         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9783         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9784         * intl/Makefile ($(objpfx)tst-gettext.out)
9785         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9786         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9787         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9788         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9789         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9790         * posix/Makefile ($(objpfx)globtest.out)
9791         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9792         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9793         ($(objpfx)tst-printf.out): Likewise.
9794         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9795         ($(objpfx)tst-setcontext3.out): Likewise.
9797 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9799         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9800         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9801         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9802         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9803         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9804         and mptan-fma.
9805         (CFLAGS-doasin-fma.c): New.
9806         (CFLAGS-dosincos-fma.c): Likewise.
9807         (CFLAGS-e_asin-fma.c): Likewise.
9808         (CFLAGS-e_atan2-fma.c): Likewise.
9809         (CFLAGS-e_exp-fma.c): Likewise.
9810         (CFLAGS-e_log-fma.c): Likewise.
9811         (CFLAGS-e_pow-fma.c): Likewise.
9812         (CFLAGS-halfulp-fma.c): Likewise.
9813         (CFLAGS-mpa-fma.c): Likewise.
9814         (CFLAGS-mpatan-fma.c): Likewise.
9815         (CFLAGS-mpatan2-fma.c): Likewise.
9816         (CFLAGS-mpexp-fma.c): Likewise.
9817         (CFLAGS-mplog-fma.c): Likewise.
9818         (CFLAGS-mpsqrt-fma.c): Likewise.
9819         (CFLAGS-mptan-fma.c): Likewise.
9820         (CFLAGS-s_atan-fma.c): Likewise.
9821         (CFLAGS-sincos32-fma.c): Likewise.
9822         (CFLAGS-slowexp-fma.c): Likewise.
9823         (CFLAGS-slowpow-fma.c): Likewise.
9824         (CFLAGS-s_sin-fma.c): Likewise.
9825         (CFLAGS-s_tan-fma.c): Likewise.
9826         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9827         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9828         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9829         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9830         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9831         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9832         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9833         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9834         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9835         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9836         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9837         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9838         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9839         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9840         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9841         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9842         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9843         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9844         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9845         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9846         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9847         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9848         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9849         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9850         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9851         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9852         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9853         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9854         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9855         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9856         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9858 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9860         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9861         (min_of_type_f): New macro.
9862         (min_of_type_): Likewise.
9863         (min_of_type_l): Likewise.
9864         (min_of_type_f128): Likewise.
9865         (min_of_type): Define using __MATH_TG and taking an expression
9866         argument.
9867         (math_check_force_underflow): Pass expression instead of type to
9868         min_of_type.
9869         (math_check_force_underflow_nonneg): Likewise.
9871 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9873         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
9874         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
9875         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
9877 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9879         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9880         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
9881         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
9882         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
9883         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
9884         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
9885         memcpy_chk-nonshared, mempcpy_chk-nonshared,
9886         memmove_chk-nonshared and memset_chk-nonshared
9887         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
9888         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
9889         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
9890         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
9891         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
9892         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
9893         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
9894         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
9895         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
9896         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
9897         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
9898         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
9899         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
9900         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
9901         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
9902         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
9903         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
9904         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
9905         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
9906         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
9907         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
9908         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
9909         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
9910         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
9911         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
9912         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
9913         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
9914         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
9915         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
9916         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
9917         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
9918         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
9919         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
9920         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9921         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9922         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
9923         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
9924         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
9925         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
9926         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
9927         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
9928         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
9929         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
9930         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
9931         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
9932         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
9933         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
9934         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
9935         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
9936         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
9937         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
9938         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
9939         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
9940         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
9941         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
9942         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
9943         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
9944         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
9945         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
9946         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
9947         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
9948         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
9949         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
9950         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
9951         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
9952         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
9953         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
9954         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
9955         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
9956         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
9957         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
9958         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9959         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9960         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9961         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9962         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9963         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9964         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9965         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9966         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9967         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9968         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9969         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9970         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9971         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9972         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9973         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9974         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9975         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9976         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9977         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9978         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9979         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9980         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9981         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9982         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9983         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9984         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9985         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9986         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9987         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9988         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9989         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9990         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9991         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9992         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9993         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9994         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9996 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9998         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
9999         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10000         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10001         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10002         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10003         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10004         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10005         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10006         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10007         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10008         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10009         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10010         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10011         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10012         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10013         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10014         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10015         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10016         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10017         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10018         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10019         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10020         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10021         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10022         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10023         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10024         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10025         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10026         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10027         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10028         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10029         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10030         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10031         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10032         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10033         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10034         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10035         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10036         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10037         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10038         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10039         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10040         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10041         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10042         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10043         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10044         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10045         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10046         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10047         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10048         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10049         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10050         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10051         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10053         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10054         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10055         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10056         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10057         ...
10058         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10059         Don't include <sysdep.h> nor <init-arch.h>.
10060         (_ZGVbN2v_cos): Removed.
10061         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10062         ...
10063         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10064         Don't include <sysdep.h> nor <init-arch.h>.
10065         (_ZGVdN4v_cos): Removed.
10066         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10067         ...
10068         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10069         Don't include <sysdep.h> nor <init-arch.h>.
10070         (_ZGVeN8v_cos): Removed.
10071         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10072         ...
10073         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10074         Don't include <sysdep.h> nor <init-arch.h>.
10075         (_ZGVbN2v_exp): Removed.
10076         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10077         ...
10078         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10079         Don't include <sysdep.h> nor <init-arch.h>.
10080         (_ZGVdN4v_exp): Removed.
10081         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10082         ...
10083         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10084         Don't include <sysdep.h> nor <init-arch.h>.
10085         (_ZGVeN8v_exp): Removed.
10086         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10087         ...
10088         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10089         Don't include <sysdep.h> nor <init-arch.h>.
10090         (_ZGVbN2v_log): Removed.
10091         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10092         ...
10093         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10094         Don't include <sysdep.h> nor <init-arch.h>.
10095         (_ZGVdN4v_log): Removed.
10096         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10097         ...
10098         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10099         Don't include <sysdep.h> nor <init-arch.h>.
10100         (_ZGVeN8v_log): Removed.
10101         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10102         ...
10103         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10104         Don't include <sysdep.h> nor <init-arch.h>.
10105         (_ZGVbN2vv_pow): Removed.
10106         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10107         ...
10108         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10109         Don't include <sysdep.h> nor <init-arch.h>.
10110         (_ZGVdN4vv_pow): Removed.
10111         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10112         ...
10113         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10114         Don't include <sysdep.h> nor <init-arch.h>.
10115         (_ZGVeN8vv_pow): Removed.
10116         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10117         ...
10118         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10119         Don't include <sysdep.h> nor <init-arch.h>.
10120         (_ZGVbN2v_sin): Removed.
10121         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10122         ...
10123         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10124         Don't include <sysdep.h> nor <init-arch.h>.
10125         (_ZGVbN4v_sin): Removed.
10126         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10127         ...
10128         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10129         Don't include <sysdep.h> nor <init-arch.h>.
10130         (_ZGVbN8v_sin): Removed.
10131         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10132         ...
10133         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10134         Don't include <sysdep.h> nor <init-arch.h>.
10135         (_ZGVbN2vvv_sincos): Removed.
10136         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10137         ...
10138         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10139         Don't include <sysdep.h> nor <init-arch.h>.
10140         (_ZGVdN4vvv_sincos): Removed.
10141         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10142         ...
10143         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10144         Don't include <sysdep.h> nor <init-arch.h>.
10145         (_ZGVeN8vvv_sincos): Removed.
10146         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10147         ...
10148         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10149         Don't include <sysdep.h> nor <init-arch.h>.
10150         (_ZGVeN16v_cosf): Removed.
10151         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10152         ...
10153         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10154         Don't include <sysdep.h> nor <init-arch.h>.
10155         (_ZGVbN4v_cosf): Removed.
10156         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10157         ...
10158         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10159         Don't include <sysdep.h> nor <init-arch.h>.
10160         (_ZGVdN8v_cosf): Removed.
10161         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10162         ...
10163         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10164         Don't include <sysdep.h> nor <init-arch.h>.
10165         (_ZGVeN16v_expf): Removed.
10166         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10167         ...
10168         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10169         Don't include <sysdep.h> nor <init-arch.h>.
10170         (_ZGVbN4v_expf): Removed.
10171         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10172         ...
10173         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10174         Don't include <sysdep.h> nor <init-arch.h>.
10175         (_ZGVdN8v_expf): Removed.
10176         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10177         ...
10178         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10179         Don't include <sysdep.h> nor <init-arch.h>.
10180         (_ZGVeN16v_logf): Removed.
10181         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10182         ...
10183         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10184         Don't include <sysdep.h> nor <init-arch.h>.
10185         (_ZGVbN4v_logf): Removed.
10186         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10187         ...
10188         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10189         Don't include <sysdep.h> nor <init-arch.h>.
10190         (_ZGVdN8v_logf): Removed.
10191         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10192         ...
10193         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10194         Don't include <sysdep.h> nor <init-arch.h>.
10195         (_ZGVeN16vv_powf): Removed.
10196         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10197         ...
10198         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10199         Don't include <sysdep.h> nor <init-arch.h>.
10200         (_ZGVbN4vv_powf): Removed.
10201         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10202         ...
10203         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10204         Don't include <sysdep.h> nor <init-arch.h>.
10205         (_ZGVdN8vv_powf): Removed.
10206         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10207         ...
10208         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10209         Don't include <sysdep.h> nor <init-arch.h>.
10210         (_ZGVeN16vvv_sincosf): Removed.
10211         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10212         ...
10213         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10214         Don't include <sysdep.h> nor <init-arch.h>.
10215         (_ZGVbN4vvv_sincosf): Removed.
10216         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10217         ...
10218         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10219         Don't include <sysdep.h> nor <init-arch.h>.
10220         (_ZGVdN8vvv_sincosf): Removed.
10221         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10222         ...
10223         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10224         Don't include <sysdep.h> nor <init-arch.h>.
10225         (_ZGVeN16v_sinf): Removed.
10226         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10227         ...
10228         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10229         Don't include <sysdep.h> nor <init-arch.h>.
10230         (_ZGVbN4v_sinf): Removed.
10231         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10232         ...
10233         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10234         Don't include <sysdep.h> nor <init-arch.h>.
10235         (_ZGVdN8v_sinf): Removed.
10237 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10239         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10240         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10241         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10242         s_rint-sse4_1 and s_rintf-sse4_1.
10243         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10244         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10245         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10246         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10247         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10248         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10249         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10250         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10251         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10252         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10253         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10254         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10255         (__ceil): Removed.
10256         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10257         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10258         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10259         (__ceilf): Removed.
10260         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10261         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10262         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10263         (__floor): Removed.
10264         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10265         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10266         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10267         (__floorf): Removed.
10268         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10269         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10270         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10271         (__nearbyint): Removed.
10272         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10273         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10274         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10275         (__nearbyintf): Removed.
10276         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10277         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10278         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10279         (__rint): Removed.
10280         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10281         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10282         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10283         (__rintf): Removed.
10285 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10287         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10288         SHARED.  Avoid dynamic relocation against main in static PIE.
10290 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10292         [BZ #21815]
10293         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10294         (LDFLAGS-tst-prelink): Likewise.
10296 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10298         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10299         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10300         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10301         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10302         (INTERNAL_SYSCALL_NCS): Likewise.
10303         (LOADARGS_1): Likewise.
10304         (LOADARGS_5): Likewise.
10305         (RESTOREARGS_1): Likewise.
10306         (RESTOREARGS_5): Likewise.
10308 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10310         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10311         (MEMPCPY_SYMBOL): Likewise.
10312         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10313         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10314         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10315         in libc.a.
10316         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10317         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10318         Likewise.
10319         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10320         (__hidden_ver1): Don't use in libc.a.
10321         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10322         (__mempcpy): Don't create a weak alias in libc.a.
10323         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10324         libc.a.
10325         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10326         (__hidden_ver1): Don't use in libc.a.
10328 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10330         * config.make.in (have-insert): New.
10331         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10332         supports INSERT in linker script.
10333         (AC_SUBST(libc_cv_insert): New.
10334         * configure: Regenerated.
10335         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10336         if $(have-insert) == yes.
10338 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10340         * elf/Makefile (tests): Add vismain only if
10341         $(have-protected-data) == yes.
10342         (tests-pie): Likewise.
10344 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10346         [BZ #21871]
10347         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10348         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10350 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10352         [BZ #21790]
10353         * sysdeps/i386/i586/memset.S
10354         (__memset_zero_constant_len_parameter): Removed.
10355         * sysdeps/i386/i686/memset.S
10356         (__memset_zero_constant_len_parameter): Likewise.
10357         * sysdeps/i386/i686/multiarch/memset_chk.S
10358         (__memset_zero_constant_len_parameter): Likewise.
10359         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10360         Likewise.
10362 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10364         * stdlib/getentropy.c (getentropy): Change return type to int.
10366 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10368         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10370 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10372         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10373         u_intN_t.
10374         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10375         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10376         Likewise.
10377         (ieee_float_shape_type): Likewise.
10378         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10379         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10380         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10381         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10382         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10383         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10384         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10385         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10386         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10387         Likewise.
10388         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10389         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10390         (__ieee754_yn): Likewise.
10391         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10392         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10393         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10394         Likewise.
10395         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10396         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10397         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10398         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10399         (__erfc): Likewise.
10400         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10401         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10402         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10403         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10404         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10405         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10406         Likewise.
10407         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10408         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10409         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10410         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10411         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10412         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10413         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10414         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10415         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10416         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10417         (__issignaling): Likewise.
10418         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10419         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10420         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10421         Likewise.
10422         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10423         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10424         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10425         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10426         Likewise.
10427         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10428         Likewise.
10429         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10430         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10431         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10432         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10433         (__erfcf): Likewise.
10434         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10435         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10436         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10437         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10438         Likewise.
10439         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10440         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10441         Likewise.
10442         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10443         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10444         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10445         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10446         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10447         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10448         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10449         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10450         Likewise.
10451         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10452         Likewise.
10453         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10454         Likewise.
10455         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10456         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10457         Likewise.
10458         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10459         Likewise.
10460         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10461         (__ieee754_ynl): Likewise.
10462         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10463         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10464         Likewise.
10465         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10466         Likewise.
10467         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10468         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10469         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10470         Likewise.
10471         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10472         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10473         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10474         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10475         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10476         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10477         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10478         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10479         Likewise.
10480         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10481         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10482         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10483         Likewise.
10484         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10485         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10486         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10487         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10488         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10489         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10490         Likewise.
10491         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10492         Likewise.
10493         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10494         Likewise.
10495         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10496         Likewise.
10497         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10498         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10499         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10500         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10501         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10502         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10503         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10504         Likewise.
10505         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10506         Likewise.
10507         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10508         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10509         Likewise.
10510         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10511         (__ieee754_remainderl): Likewise.
10512         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10513         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10514         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10515         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10516         Likewise.
10517         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10518         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10519         Likewise.
10520         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10521         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10522         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10523         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10524         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10525         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10526         Likewise.
10527         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10528         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10529         (__ieee754_y0l): Likewise.
10530         (pzero): Likewise.
10531         (qzero): Likewise.
10532         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10533         (__ieee754_y1l): Likewise.
10534         (pone): Likewise.
10535         (qone): Likewise.
10536         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10537         (__ieee754_ynl): Likewise.
10538         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10539         (__ieee754_lgammal_r): Likewise.
10540         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10541         Likewise.
10542         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10543         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10544         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10545         (__erfcl): Likewise.
10546         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10547         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10548         Likewise.
10549         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10550         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10551         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10552         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10553         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10554         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10555         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10556         Likewise.
10557         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10558         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10559         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10560         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10561         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10562         Likewise.
10563         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10564         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10565         Likewise.
10566         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10567         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10568         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10569         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10570         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10572 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10574         [BZ #21885]
10575         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10576         on memory allocation failure.
10578 2017-08-03  Alan Modra  <amodra@gmail.com>
10580         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10581         tst-tlsopt-powerpc.c with function name change and no test harness.
10582         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10583         Call tls_get_addr_opt_test.
10584         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10585         (modules-names): Add mod-tlsopt-powerpc.
10586         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10587         (tst-tlsopt-powerpc): Depend on .so.
10588         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10589         define.  Expand use in TLS_GD and TLS_LD.
10591 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10593         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10594         function.
10595         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10597 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10599         [BZ #21686]
10600         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10601         comparing size with that of double.
10602         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10603         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10604         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10605         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10606         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10607         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10608         unsigned __int128 types.
10610 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10612         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10613         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10614         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10615         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10616         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10618 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10620         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10622 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10624         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10625         of SHARED.
10626         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10627         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10628         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10629         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10630         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10631         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10632         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10634 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10636         [BZ #21685]
10637         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10638         bit-field expressions passed to sizeof or typeof.
10639         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10640         (__TGMATH_F128): Likewise.
10641         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10642         (__TGMATH_CF128): Likewise.
10643         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10644         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10645         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10646         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10647         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10648         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10649         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10650         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10651         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10652         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10653         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10654         (__TGMATH_UNARY_IMAG): Likewise.
10655         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10656         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10657         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10658         type.
10659         (define_vars_for_type): Handle bit_field type specially.
10660         (Tests.__init__): Declare structure with bit-field element.
10662 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10664         [BZ #21791]
10665         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10666         (MEMCPY_CHK): Define only if SHARED is defined.
10667         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10668         Likewise.
10669         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10670         Likewise.
10672 See ChangeLog.18 for earlier changes.