linux ttyname{_r}: Don't bail prematurely [BZ #22145]
[glibc.git] / ChangeLog
blob566591047f7a5058619c6247c796ae333cae6fc1
1 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
3         [BZ #22145]
4         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
5         Defer is_pty check until end of the function.
6         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8         [BZ #22145]
9         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
10         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
11         (ttyname): Likewise.
12         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
13         (__ttyname_r): Likewise.
15         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
16         int to bool.
18         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
20         * manual/terminal.texi (Is It a Terminal):
21         Mention ENODEV for ttyname and ttyname_r.
23 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
26         constant and macro.
28         * sysdeps/unix/sysv/linux/bits/mman-linux.h
29         [__USE_MISC] (MADV_WIPEONFORK): New macro.
30         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
31         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
32         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
33         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
35 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
37         * signal/sigrelse.c (sigrelse): Optimize implementation.
39         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
40         (__sigpause): Rely on __sigsuspend to implement single thread
41         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
43 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
45         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
46         kernel version to 4.14.
48 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
50         [BZ #22442]
51         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
52         Check if ifname is too long.
54 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
56         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
58 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
60         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
61         was accidentally lost.
63 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
65         * localedata/locales/az_IR: Add standard copyright header.
67 2017-11-15  Florian Weimer  <fweimer@redhat.com>
69         [BZ #22439]
70         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
71         not just the top one.  Output a new "subheaps" statistic.
73 2017-11-15  Florian Weimer  <fweimer@redhat.com>
75         [BZ #22408]
76         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
77         under the per-arena lock.
78         * malloc/Makefile (tests): Add tst-malloc_info.
79         (tst-malloc_info): Link with libpthread.
80         * malloc/tst-malloc_info.c: New file.
82 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
84         [BZ #21660]
85         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
86         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
87         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
88         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
89         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
90         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
91         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
92         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
93         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
94         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
95         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
96         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
97         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
98         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
99         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
100         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
101         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
102         (__floating_type): Likewise.
103         (__real_integer_type): Likewise.
104         (__complex_integer_type): Likewise.
105         (__expr_is_real): Likewise.
106         (__tgmath_real_type_sub): Likewise.
107         (__tgmath_real_type): Likewise.
108         (__tgmath_complex_type_sub): Likewise.
109         (__tgmath_complex_type): Likewise.
110         (__TGMATH_F128): Likewise.
111         (__TGMATH_CF128): Likewise.
112         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
113         new macros.
114         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
115         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
116         Likewise.
117         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
118         Likewise.
119         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
120         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
121         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
122         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
123         Likewise.
124         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
125         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
126         Likewise.
127         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
128         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
129         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
130         Likewise.
131         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
132         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
133         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
134         (cimag): Likewise.
135         (creal): Likewise.
137 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
139         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
140         for stpncpy calls for GCC 8.
141         (test_strncat): Disable -Wstringop-truncation warning for strncat
142         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
143         strncat call for GCC 7.
144         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
145         calls for GCC 8.
146         (test_memcmp): Use memcpy instead of strncpy for calls not copying
147         trailing NUL.
149         * string/bug-strncat1.c: Include <libc-diag.h>.
150         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
152 2017-11-13  Claude Paroz <claude@2xlibre.net>
154         [BZ #22387]
155         * localedata/locales/aa_DJ: Improved readibility by replacing
156         <Uxxxx> sequences in the ASCII printable range by their ASCII
157         character equivalents.
158         * localedata/locales/aa_ER: Likewise.
159         * localedata/locales/aa_ER@saaho: Likewise.
160         * localedata/locales/aa_ET: Likewise.
161         * localedata/locales/af_ZA: Likewise.
162         * localedata/locales/agr_PE: Likewise.
163         * localedata/locales/ak_GH: Likewise.
164         * localedata/locales/am_ET: Likewise.
165         * localedata/locales/anp_IN: Likewise.
166         * localedata/locales/ar_AE: Likewise.
167         * localedata/locales/ar_BH: Likewise.
168         * localedata/locales/ar_DZ: Likewise.
169         * localedata/locales/ar_EG: Likewise.
170         * localedata/locales/ar_IN: Likewise.
171         * localedata/locales/ar_IQ: Likewise.
172         * localedata/locales/ar_JO: Likewise.
173         * localedata/locales/ar_KW: Likewise.
174         * localedata/locales/ar_LB: Likewise.
175         * localedata/locales/ar_LY: Likewise.
176         * localedata/locales/ar_MA: Likewise.
177         * localedata/locales/ar_OM: Likewise.
178         * localedata/locales/ar_QA: Likewise.
179         * localedata/locales/ar_SA: Likewise.
180         * localedata/locales/ar_SD: Likewise.
181         * localedata/locales/ar_SS: Likewise.
182         * localedata/locales/ar_SY: Likewise.
183         * localedata/locales/ar_TN: Likewise.
184         * localedata/locales/ar_YE: Likewise.
185         * localedata/locales/as_IN: Likewise.
186         * localedata/locales/ast_ES: Likewise.
187         * localedata/locales/ayc_PE: Likewise.
188         * localedata/locales/az_AZ: Likewise.
189         * localedata/locales/az_IR: Likewise.
190         * localedata/locales/be_BY: Likewise.
191         * localedata/locales/be_BY@latin: Likewise.
192         * localedata/locales/bem_ZM: Likewise.
193         * localedata/locales/ber_DZ: Likewise.
194         * localedata/locales/ber_MA: Likewise.
195         * localedata/locales/bg_BG: Likewise.
196         * localedata/locales/bhb_IN: Likewise.
197         * localedata/locales/bho_IN: Likewise.
198         * localedata/locales/bi_VU: Likewise.
199         * localedata/locales/bn_BD: Likewise.
200         * localedata/locales/bn_IN: Likewise.
201         * localedata/locales/bo_CN: Likewise.
202         * localedata/locales/bo_IN: Likewise.
203         * localedata/locales/br_FR: Likewise.
204         * localedata/locales/brx_IN: Likewise.
205         * localedata/locales/bs_BA: Likewise.
206         * localedata/locales/byn_ER: Likewise.
207         * localedata/locales/ca_AD: Likewise.
208         * localedata/locales/ca_ES: Likewise.
209         * localedata/locales/ca_FR: Likewise.
210         * localedata/locales/ca_IT: Likewise.
211         * localedata/locales/ce_RU: Likewise.
212         * localedata/locales/chr_US: Likewise.
213         * localedata/locales/cmn_TW: Likewise.
214         * localedata/locales/crh_UA: Likewise.
215         * localedata/locales/cs_CZ: Likewise.
216         * localedata/locales/csb_PL: Likewise.
217         * localedata/locales/cv_RU: Likewise.
218         * localedata/locales/cy_GB: Likewise.
219         * localedata/locales/da_DK: Likewise.
220         * localedata/locales/de_AT: Likewise.
221         * localedata/locales/de_BE: Likewise.
222         * localedata/locales/de_CH: Likewise.
223         * localedata/locales/de_DE: Likewise.
224         * localedata/locales/de_IT: Likewise.
225         * localedata/locales/de_LI: Likewise.
226         * localedata/locales/de_LU: Likewise.
227         * localedata/locales/doi_IN: Likewise.
228         * localedata/locales/dv_MV: Likewise.
229         * localedata/locales/dz_BT: Likewise.
230         * localedata/locales/el_CY: Likewise.
231         * localedata/locales/el_GR: Likewise.
232         * localedata/locales/en_AG: Likewise.
233         * localedata/locales/en_AU: Likewise.
234         * localedata/locales/en_BW: Likewise.
235         * localedata/locales/en_CA: Likewise.
236         * localedata/locales/en_DK: Likewise.
237         * localedata/locales/en_GB: Likewise.
238         * localedata/locales/en_HK: Likewise.
239         * localedata/locales/en_IE: Likewise.
240         * localedata/locales/en_IL: Likewise.
241         * localedata/locales/en_IN: Likewise.
242         * localedata/locales/en_NG: Likewise.
243         * localedata/locales/en_NZ: Likewise.
244         * localedata/locales/en_PH: Likewise.
245         * localedata/locales/en_SG: Likewise.
246         * localedata/locales/en_US: Likewise.
247         * localedata/locales/en_ZA: Likewise.
248         * localedata/locales/en_ZM: Likewise.
249         * localedata/locales/en_ZW: Likewise.
250         * localedata/locales/eo: Likewise.
251         * localedata/locales/es_AR: Likewise.
252         * localedata/locales/es_BO: Likewise.
253         * localedata/locales/es_CL: Likewise.
254         * localedata/locales/es_CO: Likewise.
255         * localedata/locales/es_CR: Likewise.
256         * localedata/locales/es_CU: Likewise.
257         * localedata/locales/es_DO: Likewise.
258         * localedata/locales/es_EC: Likewise.
259         * localedata/locales/es_ES: Likewise.
260         * localedata/locales/es_GT: Likewise.
261         * localedata/locales/es_HN: Likewise.
262         * localedata/locales/es_MX: Likewise.
263         * localedata/locales/es_NI: Likewise.
264         * localedata/locales/es_PA: Likewise.
265         * localedata/locales/es_PE: Likewise.
266         * localedata/locales/es_PR: Likewise.
267         * localedata/locales/es_PY: Likewise.
268         * localedata/locales/es_SV: Likewise.
269         * localedata/locales/es_US: Likewise.
270         * localedata/locales/es_UY: Likewise.
271         * localedata/locales/es_VE: Likewise.
272         * localedata/locales/et_EE: Likewise.
273         * localedata/locales/eu_ES: Likewise.
274         * localedata/locales/eu_ES@euro: Likewise.
275         * localedata/locales/fa_IR: Likewise.
276         * localedata/locales/ff_SN: Likewise.
277         * localedata/locales/fi_FI: Likewise.
278         * localedata/locales/fil_PH: Likewise.
279         * localedata/locales/fo_FO: Likewise.
280         * localedata/locales/fr_BE: Likewise.
281         * localedata/locales/fr_CA: Likewise.
282         * localedata/locales/fr_CH: Likewise.
283         * localedata/locales/fr_FR: Likewise.
284         * localedata/locales/fr_LU: Likewise.
285         * localedata/locales/fur_IT: Likewise.
286         * localedata/locales/fy_DE: Likewise.
287         * localedata/locales/fy_NL: Likewise.
288         * localedata/locales/ga_IE: Likewise.
289         * localedata/locales/gd_GB: Likewise.
290         * localedata/locales/gez_ER: Likewise.
291         * localedata/locales/gez_ET: Likewise.
292         * localedata/locales/gl_ES: Likewise.
293         * localedata/locales/gu_IN: Likewise.
294         * localedata/locales/gv_GB: Likewise.
295         * localedata/locales/ha_NG: Likewise.
296         * localedata/locales/hak_TW: Likewise.
297         * localedata/locales/he_IL: Likewise.
298         * localedata/locales/hi_IN: Likewise.
299         * localedata/locales/hif_FJ: Likewise.
300         * localedata/locales/hne_IN: Likewise.
301         * localedata/locales/hr_HR: Likewise.
302         * localedata/locales/hsb_DE: Likewise.
303         * localedata/locales/ht_HT: Likewise.
304         * localedata/locales/hu_HU: Likewise.
305         * localedata/locales/hy_AM: Likewise.
306         * localedata/locales/i18n: Likewise.
307         * localedata/locales/ia_FR: Likewise.
308         * localedata/locales/id_ID: Likewise.
309         * localedata/locales/ig_NG: Likewise.
310         * localedata/locales/ik_CA: Likewise.
311         * localedata/locales/is_IS: Likewise.
312         * localedata/locales/it_CH: Likewise.
313         * localedata/locales/it_IT: Likewise.
314         * localedata/locales/iu_CA: Likewise.
315         * localedata/locales/ja_JP: Likewise.
316         * localedata/locales/ka_GE: Likewise.
317         * localedata/locales/kk_KZ: Likewise.
318         * localedata/locales/kl_GL: Likewise.
319         * localedata/locales/kn_IN: Likewise.
320         * localedata/locales/ko_KR: Likewise.
321         * localedata/locales/kok_IN: Likewise.
322         * localedata/locales/ks_IN: Likewise.
323         * localedata/locales/ks_IN@devanagari: Likewise.
324         * localedata/locales/ku_TR: Likewise.
325         * localedata/locales/kw_GB: Likewise.
326         * localedata/locales/ky_KG: Likewise.
327         * localedata/locales/lb_LU: Likewise.
328         * localedata/locales/lg_UG: Likewise.
329         * localedata/locales/li_BE: Likewise.
330         * localedata/locales/li_NL: Likewise.
331         * localedata/locales/lij_IT: Likewise.
332         * localedata/locales/ln_CD: Likewise.
333         * localedata/locales/lo_LA: Likewise.
334         * localedata/locales/lt_LT: Likewise.
335         * localedata/locales/lv_LV: Likewise.
336         * localedata/locales/lzh_TW: Likewise.
337         * localedata/locales/mag_IN: Likewise.
338         * localedata/locales/mai_IN: Likewise.
339         * localedata/locales/mg_MG: Likewise.
340         * localedata/locales/mhr_RU: Likewise.
341         * localedata/locales/mi_NZ: Likewise.
342         * localedata/locales/mk_MK: Likewise.
343         * localedata/locales/ml_IN: Likewise.
344         * localedata/locales/mn_MN: Likewise.
345         * localedata/locales/mni_IN: Likewise.
346         * localedata/locales/mr_IN: Likewise.
347         * localedata/locales/ms_MY: Likewise.
348         * localedata/locales/mt_MT: Likewise.
349         * localedata/locales/my_MM: Likewise.
350         * localedata/locales/nan_TW: Likewise.
351         * localedata/locales/nan_TW@latin: Likewise.
352         * localedata/locales/nb_NO: Likewise.
353         * localedata/locales/nds_DE: Likewise.
354         * localedata/locales/nds_NL: Likewise.
355         * localedata/locales/ne_NP: Likewise.
356         * localedata/locales/nhn_MX: Likewise.
357         * localedata/locales/niu_NU: Likewise.
358         * localedata/locales/niu_NZ: Likewise.
359         * localedata/locales/nl_AW: Likewise.
360         * localedata/locales/nl_BE: Likewise.
361         * localedata/locales/nl_NL: Likewise.
362         * localedata/locales/nn_NO: Likewise.
363         * localedata/locales/nr_ZA: Likewise.
364         * localedata/locales/nso_ZA: Likewise.
365         * localedata/locales/oc_FR: Likewise.
366         * localedata/locales/om_ET: Likewise.
367         * localedata/locales/om_KE: Likewise.
368         * localedata/locales/or_IN: Likewise.
369         * localedata/locales/os_RU: Likewise.
370         * localedata/locales/pa_IN: Likewise.
371         * localedata/locales/pa_PK: Likewise.
372         * localedata/locales/pap_AW: Likewise.
373         * localedata/locales/pap_CW: Likewise.
374         * localedata/locales/pl_PL: Likewise.
375         * localedata/locales/ps_AF: Likewise.
376         * localedata/locales/pt_BR: Likewise.
377         * localedata/locales/pt_PT: Likewise.
378         * localedata/locales/quz_PE: Likewise.
379         * localedata/locales/raj_IN: Likewise.
380         * localedata/locales/ro_RO: Likewise.
381         * localedata/locales/ru_RU: Likewise.
382         * localedata/locales/ru_UA: Likewise.
383         * localedata/locales/rw_RW: Likewise.
384         * localedata/locales/sa_IN: Likewise.
385         * localedata/locales/sat_IN: Likewise.
386         * localedata/locales/sc_IT: Likewise.
387         * localedata/locales/sd_IN: Likewise.
388         * localedata/locales/sd_IN@devanagari: Likewise.
389         * localedata/locales/se_NO: Likewise.
390         * localedata/locales/sgs_LT: Likewise.
391         * localedata/locales/shs_CA: Likewise.
392         * localedata/locales/si_LK: Likewise.
393         * localedata/locales/sid_ET: Likewise.
394         * localedata/locales/sk_SK: Likewise.
395         * localedata/locales/sl_SI: Likewise.
396         * localedata/locales/sm_WS: Likewise.
397         * localedata/locales/so_DJ: Likewise.
398         * localedata/locales/so_ET: Likewise.
399         * localedata/locales/so_KE: Likewise.
400         * localedata/locales/so_SO: Likewise.
401         * localedata/locales/sq_AL: Likewise.
402         * localedata/locales/sq_MK: Likewise.
403         * localedata/locales/sr_ME: Likewise.
404         * localedata/locales/sr_RS: Likewise.
405         * localedata/locales/sr_RS@latin: Likewise.
406         * localedata/locales/ss_ZA: Likewise.
407         * localedata/locales/st_ZA: Likewise.
408         * localedata/locales/sv_FI: Likewise.
409         * localedata/locales/sv_SE: Likewise.
410         * localedata/locales/sw_KE: Likewise.
411         * localedata/locales/sw_TZ: Likewise.
412         * localedata/locales/szl_PL: Likewise.
413         * localedata/locales/ta_IN: Likewise.
414         * localedata/locales/ta_LK: Likewise.
415         * localedata/locales/tcy_IN: Likewise.
416         * localedata/locales/te_IN: Likewise.
417         * localedata/locales/tg_TJ: Likewise.
418         * localedata/locales/th_TH: Likewise.
419         * localedata/locales/the_NP: Likewise.
420         * localedata/locales/ti_ER: Likewise.
421         * localedata/locales/ti_ET: Likewise.
422         * localedata/locales/tig_ER: Likewise.
423         * localedata/locales/tk_TM: Likewise.
424         * localedata/locales/tl_PH: Likewise.
425         * localedata/locales/tn_ZA: Likewise.
426         * localedata/locales/to_TO: Likewise.
427         * localedata/locales/tpi_PG: Likewise.
428         * localedata/locales/tr_CY: Likewise.
429         * localedata/locales/tr_TR: Likewise.
430         * localedata/locales/ts_ZA: Likewise.
431         * localedata/locales/tt_RU: Likewise.
432         * localedata/locales/tt_RU@iqtelif: Likewise.
433         * localedata/locales/ug_CN: Likewise.
434         * localedata/locales/uk_UA: Likewise.
435         * localedata/locales/unm_US: Likewise.
436         * localedata/locales/ur_IN: Likewise.
437         * localedata/locales/ur_PK: Likewise.
438         * localedata/locales/uz_UZ: Likewise.
439         * localedata/locales/uz_UZ@cyrillic: Likewise.
440         * localedata/locales/ve_ZA: Likewise.
441         * localedata/locales/vi_VN: Likewise.
442         * localedata/locales/wa_BE: Likewise.
443         * localedata/locales/wae_CH: Likewise.
444         * localedata/locales/wal_ET: Likewise.
445         * localedata/locales/wo_SN: Likewise.
446         * localedata/locales/xh_ZA: Likewise.
447         * localedata/locales/yi_US: Likewise.
448         * localedata/locales/yo_NG: Likewise.
449         * localedata/locales/yue_HK: Likewise.
450         * localedata/locales/yuw_PG: Likewise.
451         * localedata/locales/zh_CN: Likewise.
452         * localedata/locales/zh_HK: Likewise.
453         * localedata/locales/zh_SG: Likewise.
454         * localedata/locales/zh_TW: Likewise.
455         * localedata/locales/zu_ZA: Likewise.
457 2017-11-13  Florian Weimer  <fweimer@redhat.com>
459         * support/next_to_fault.h, support/next_to_fault.c: New files.
460         * support/Makefile (libsupport-routines): Add next_to_fault.
461         * resolv/tst-inet_pton.c (struct next_to_fault)
462         (next_to_fault_allocate, next_to_fault_free): Remove.
463         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
465 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
467         * elf/dl-support.c: Include <dl-procruntime.c>.
468         * include/link.h: Include <link_map.h>.
469         * sysdeps/generic/dl-procruntime.c: New file.
470         * sysdeps/generic/link_map.h: Likewise.
471         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
472         the writable ld.so namespace.
474 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
476         timezone: pacify GCC -Wstringop-truncation
477         Problem reported by Martin Sebor in:
478         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
479         * timezone/zic.c (writezone): Use memcpy, not strncpy.
481 2017-11-12  Florian Weimer  <fweimer@redhat.com>
483         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
484         tst-xreadlink.
485         (tests): Add tst-xreadlink.
486         * support/support.h (xstrndup): Declare.
487         * support/xunistd.h (xunlink, xreadlink): Declare.
488         * support/temp_file.h (support_create_temp_directory): Declare.
489         * support/temp_file.c (support_create_temp_directory): New function.
490         * support/support_chroot.c (support_chroot_create): Use it.
491         * support/xreadlink.c: New file.
492         * support/xstrndup.c: Likewise.
493         * support/xunlink.c: Likewise.
494         * support/tst-xreadlink.c: Likewise.
496 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
498         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
500 2017-11-11  Florian Weimer  <fweimer@redhat.com>
502         [BZ #22409]
503         [BZ #22412]
504         * resolv/res_comp.c (printable_string, binary_hnok)
505         (binary_leading_dash): New functions.
506         (res_hnok): Reimplement using these functions and ns_name_pton.
507         (res_ownok): Likewise.
508         (res_mailok): Reimplement using printable_string, ns_name_pton and
509         binary_hnok.
510         (res_dnok): Reimplement using printable_string and ns_name_pton.
511         * resolv/tst-res_hnok.c (tests): Add additional tests.
512         (LETTERDIGITS, PRINTABLE): Define.
513         (do_test): Adjust one_char results.
515 2017-11-11  Florian Weimer  <fweimer@redhat.com>
517         [BZ #22413]
518         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
519         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
521 2017-11-11  Florian Weimer  <fweimer@redhat.com>
523         * resolv/tst-ns_name_pton.c: New file.
524         * resolv/Makefile (tests): Add tst-ns_name_pton.
525         (tst-ns_name_pton): Link against libresolv.
527 2017-11-11  Florian Weimer  <fweimer@redhat.com>
529         * resolv/tst-res_hnok.c: New file.
530         * resolv/Makefile (tests): Add tst-res_hnok.
531         (tst-res_hnok): Link against libresolv.
533 2017-11-11  Florian Weimer  <fweimer@redhat.com>
535         * resolv/tst-resolv-network.c: Use test framework instead explicit
536         main function.
538 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
540         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
541         <jmp_buf-macros.h>.
542         [!_ISOMAC] (STR_HELPER): New.
543         [!_ISOMAC] (STR): Likewise.
544         [!_ISOMAC] (TEST_SIZE): Likewise.
545         [!_ISOMAC] (TEST_ALIGN): Likewise.
546         [!_ISOMAC] (TEST_OFFSET): Likewise.
547         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
548         field offsets of jmp_buf as well as sigjmp_buf.
549         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
550         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
551         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
552         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
553         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
554         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
555         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
556         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
557         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
558         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
559         Likewise.
560         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
561         Likewise.
562         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
564         Likewise.
565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
566         Likewise.
567         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
568         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
569         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
570         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
571         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
573         Likewise.
574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
575         Likewise.
576         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
577         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
578         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
580 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
582         * include/float.h
583         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
584         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
585         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
586         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
587         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
588         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
589         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
590         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
591         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
592         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
593         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
594         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
595         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
596         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
597         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
598         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
599         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
600         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
601         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
602         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
603         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
604         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
605         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
606         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
607         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
608         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
609         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
610         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
611         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
612         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
613         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
614         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
615         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
616         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
617         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
618         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
619         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
620         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
621         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
622         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
623         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
624         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
625         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
626         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
627         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
628         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
629         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
630         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
631         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
632         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
633         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
634         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
635         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
636         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
637         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
638         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
639         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
640         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
641         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
642         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
643         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
644         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
645         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
646         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
647         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
648         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
649         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
650         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
651         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
652         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
653         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
654         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
655         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
656         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
657         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
658         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
659         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
660         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
661         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
662         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
663         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
664         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
665         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
666         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
667         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
668         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
669         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
670         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
672         * stdlib/tst-strtod.h (F16): New macro.
673         (F32): Likewise.
674         (F64): Likewise.
675         (F32X): Likewise.
676         (F64X): Likewise.
677         (F128X): Likewise.
678         (IF_FLOAT16): Likewise.
679         (IF_FLOAT32): Likewise.
680         (IF_FLOAT64): Likewise.
681         (IF_FLOAT32X): Likewise.
682         (IF_FLOAT64X): Likewise.
683         (IF_FLOAT128X): Likewise.
684         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
685         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
686         (STRTOD_TEST_FOREACH): Likewise.
687         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
688         (CHOOSE_f64): Likewise.
689         (CHOOSE_f32x): Likewise.
690         (CHOOSE_f64x): Likewise.
692 2017-11-07  Andreas Schwab  <schwab@suse.de>
694         * nptl/Makefile (tests-internal): Remove tst-typesizes.
696 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
698         [BZ #22403]
699         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
700         to be escaped.
701         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
702         to be escaped.
704 2017-11-07  Claude Paroz <claude@2xlibre.net>
706         [BZ #22403]
707         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
708         to be escaped.
709         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
710         to be escaped.
711         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
712         to be escaped.
714 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
716         [BZ #22298]
717         * nptl/allocatestack.c (allocate_stack): Check if
718         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
719         __PTHREAD_MUTEX_HAVE_PREV is defined.
720         * nptl/descr.h (pthread): Likewise.
721         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
722         Likewise.
723         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
724         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
725         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
726         * sysdeps/nptl/bits/thread-shared-types.h
727         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
728         defines.
729         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
730         of __WORDSIZE for internal layout.
731         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
732         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
733         instead of __WORDSIZE whether to use an union for __spins and __list
734         fields.
735         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
736         case.
737         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
738         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
739         defines.
740         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
741         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
742         Likewise.
743         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
744         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
745         Likewise.
746         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
747         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
748         Likewise.
749         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
750         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
751         Likewise.
752         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
753         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
754         Likewise.
755         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
756         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
757         Likewise.
758         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
759         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
760         Likewise.
761         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
762         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
763         Likewise.
764         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
765         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
766         Likewise.
767         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
768         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
769         Likewise.
770         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
771         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
772         Likewise.
773         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
774         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
775         Likewise.
776         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
777         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
778         Likewise.
779         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
780         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
781         Likewise.
783         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
784         New macros.
785         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
786         checks for expected input type size.
787         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
788         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
789         Likewise.
790         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
791         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
792         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
793         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
794         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
795         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
796         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
797         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
798         superflous runtime assert check.
799         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
800         Likewise.
801         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
802         Likewise.
803         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
804         Likewise.
805         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
806         Likewise.
807         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
808         Likewise.
809         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
810         Likewise.
811         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
812         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
813         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
814         Likewise.
815         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
816         Likewise.
817         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
818         Likewise.
819         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
820         Likewise.
821         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
822         Likewise.
823         * nptl/pthread_attr_setinheritsched.c
824         (__pthread_attr_setinheritsched): Likewise.
825         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
826         Likewise.
827         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
828         Likewise.
829         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
830         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
831         __old_pthread_attr_setstack): Likewise.
832         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
833         Likewise.
834         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
835         Likewise.
836         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
837         Likewise.
838         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
839         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
840         Likewise.
841         * nptl/tst-typesizes.c: Remove file.
843         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
844         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
845         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
846         checks for internal pthread_mutex_t offsets.
847         * sysdeps/aarch64/nptl/pthread-offsets.h
848         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
849         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
850         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
851         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
852         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
853         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
854         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
855         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
856         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
857         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
858         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
859         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
860         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
861         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
862         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
863         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
864         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
865         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
867 2017-11-07  Florian Weimer  <fweimer@redhat.com>
869         * bits/mman-linux.h: Move ...
870         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
871         comment.
872         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
873         outdated comment.
875 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
877         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
878         Redefine STRNLEN as __strnlen_power8.
880 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
882         * signal/sighold.c (sighold): Optimize implementation.
884         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
885         __NR_rt_sigqueueinfo.
887         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
888         __sigtimedwait.
889         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
890         assume __NR_rt_sigtimedwait.
891         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
892         and add LIBC_CANCEL_HANDLED for cancellation marking.
893         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
895         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
896         (sysdeps_routines): Add memchr_noneon.
897         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
898         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
899         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
900         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
901         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
902         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
903         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
905         * sysdeps/arm/arm-ifunc.h: New file.
906         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
907         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
908         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
909         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
910         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
911         (__memcpy_neon): Avoid create hidden alias.
912         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
913         (__memcpy_vfp): Likewise.
914         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
915         (sysdep_routines): Add memcpy_arm.
916         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
918 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
920         [BZ #22362]
921         * Makerules (make-link-multidir): New.
922         * config.make.in (multidir): New.
923         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
924         * configure: Regenerated.
925         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
926         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
927         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
928         New target.
930 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
932         [BZ #22402]
933         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
934         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
936 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
938         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
939         to be escaped.
941 2017-11-04  Florian Weimer  <fweimer@redhat.com>
943         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
945 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
947         * math/math.h [__HAVE_DISTINCT_FLOAT16
948         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
949         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
950         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
951         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
952         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
953         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
954         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
955         (__MATH_TG_F32): New macro.
956         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
957         (__MATH_TG_F64X): Likewise.
958         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
959         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
961 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
963         * po/de.po: Update translations.
964         * po/ru.po: Likewise.
966 2017-11-03  Florian Weimer  <fweimer@redhat.com>
968         * manual/filesys.texi (Hard Links): Document linkat.
970 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
972         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
973         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
974         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
975         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
976         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
977         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
978         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
979         the same as _Float128.
980         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
981         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
982         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
984         * stdlib/stdlib.h
985         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
986         Declare.
987         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
988         Likewise.
989         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
990         Likewise.
991         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
992         (strtof32x): Likewise.
993         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
994         (strtof64x): Likewise.
995         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
996         (strtof128x): Likewise.
997         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
998         (strfromf16): Likewise.
999         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1000         (strfromf32): Likewise.
1001         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1002         (strfromf64): Likewise.
1003         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1004         (strfromf32x): Likewise.
1005         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1006         (strfromf64x): Likewise.
1007         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1008         (strfromf128x): Likewise.
1009         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1010         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1011         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1012         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1013         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1014         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1016 2017-11-03  Richard Henderson  <rth@twiddle.net>
1018         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1020 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1022         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1024 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1026         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1027         DT_TLSDESC_GOT initialization.
1028         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1029         (_dl_tlsdesc_resolve_hold): Likewise.
1030         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1031         (_dl_tlsdesc_resolve_hold): Likewise.
1032         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1033         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1035 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1037         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1039 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1041         [BZ #18572]
1042         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1043         non-lazily for R_ARM_TLS_DESC.
1045 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1047         [BZ #17078]
1048         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1049         R_ARM_TLS_DESC case.
1050         (elf_machine_lazy_rel): Remove the prelink check.
1052 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1054         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1055         DT_TLSDESC_GOT initialization.
1056         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1057         (_dl_tlsdesc_resolve_rela): Likewise.
1058         (_dl_tlsdesc_resolve_hold): Likewise.
1059         (_dl_tlsdesc_undefweak): Remove ldar.
1060         (_dl_tlsdesc_dynamic): Likewise.
1061         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1062         (_dl_tlsdesc_resolve_rela): Likewise.
1063         (_dl_tlsdesc_resolve_hold): Likewise.
1064         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1065         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1066         (_dl_tlsdesc_resolve_rela): Likewise.
1067         (_dl_tlsdesc_resolve_hold): Likewise.
1069 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1071         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1072         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1074 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1076         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1077         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1079 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1081         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1082         Declare.
1083         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1084         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1085         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1086         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1087         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1088         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1089         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1090         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1091         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1092         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1093         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1095 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1097         [BZ #22382]
1098         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1099         * localedata/locales/tpi_PG: Add standard header.
1101 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1103         test-errno-linux: quotactl can fail with EPERM in containers.
1104         * sysdeps/unix/sysv/linux/test-errno-linux.c
1105         (LIST, LIST_FORWARD): New macros.
1106         (check_error_in_list): New function.
1107         (test_wrp_rv): Accept list of permitted error codes.
1108         (test_wrp_rv2): Remove.
1109         (test_wrp): Call test_wrp_rv with list of error codes.
1110         (test_wrp2): Accept list of error codes.
1111         (do_test): Adjust.  Allow EPERM for quotactl.
1113 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1115         * stdio-common/bug16.c (do_test): Use array_length.
1116         * stdio-common/errlist.c (_sys_nerr): Likewise.
1117         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1118         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1119         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1120         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1121         (do_test): Use array_length.
1122         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1123         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1124         * stdio-common/tst-printf-round.c (do_test): Likewise.
1125         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1126         (CHECK): Use array_length.
1127         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1128         * stdio-common/tstscanf.c (main): Likewise.
1129         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1131 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1133         Add array_length and array_end macros.
1134         * include/array_length.h: New file.
1136 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1138         [BZ #22332]
1139         * posix/tst-glob-tilde.c (do_noescape): New variable.
1140         (one_test): Process it.
1141         (do_test): Set do_noescape.  Add unescaping test case.
1143 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1145         * math/complex.h
1146         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1147         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1148         with appropriate macros defined and undefined.
1149         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1150         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1151         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1152         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1153         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1154         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1155         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1156         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1157         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1158         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1160         * math/complex.h
1161         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1162         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1163         that for long double.  Do not condition define and undefine of
1164         _Mdouble_complex_ on [__CFLOAT128].
1166 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1168         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1169         of <sysdeps/generic/sysdep.h>.
1170         (ALIGNARG): Removed.
1171         (ASM_SIZE_DIRECTIVE): Likewise.
1172         (ENTRY): Likewise.
1173         (END): Likewise.
1174         (ENTRY_CHK): Likewise.
1175         (END_CHK): Likewise.
1176         (syscall_error): Likewise.
1177         (mcount): Likewise.
1178         (PSEUDO_END): Likewise.
1179         (L): Likewise.
1180         (atom_text_section): Likewise.
1181         * sysdeps/x86/sysdep.h: New file.
1182         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1183         of <sysdeps/generic/sysdep.h>.
1184         (ALIGNARG): Removed.
1185         (ASM_SIZE_DIRECTIVE): Likewise.
1186         (ENTRY): Likewise.
1187         (END): Likewise.
1188         (ENTRY_CHK): Likewise.
1189         (END_CHK): Likewise.
1190         (syscall_error): Likewise.
1191         (mcount): Likewise.
1192         (PSEUDO_END): Likewise.
1193         (L): Likewise.
1194         (atom_text_section): Likewise.
1196 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1198         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1199         category of LC_CTYPE set to "i18n:2012".
1200         * localedata/locales/i18n_ctype: Regenerate.
1202 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1204         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1205         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1206         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1207         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1209         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1210         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1211         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1212         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1214 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1216         * math/complex.h
1217         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1218         New macro.
1219         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1220         Likewise.
1221         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1222         Likewise.
1223         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1224         (CMPLXF32X): Likewise.
1225         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1226         (CMPLXF64X): Likewise.
1227         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1228         (CMPLXF128X): Likewise.
1230         * math/math.h
1231         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1232         (__MATH_EVAL_FMT2): Define to add 0.0f.
1234 2017-10-31  Alan Modra  <amodra@gmail.com>
1236         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1237         include sysdep.h.
1238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1242         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1252         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1253         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1254         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1255         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1256         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1257         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1258         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1259         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1260         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1261         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1262         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1263         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1264         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1265         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1266         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1267         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1268         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1269         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1270         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1271         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1272         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1273         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1274         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1275         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1276         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1277         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1278         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1279         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1280         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1281         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1282         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1283         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1284         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1285         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1286         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1287         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1288         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1289         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1290         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1291         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1292         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1293         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1294         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1295         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1296         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1297         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1298         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1299         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1300         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1301         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1302         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1303         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1304         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1305         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1306         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1309         include sysdep.h and math_ldbl_opt.h.
1311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1312         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1338 2017-10-31  Alan Modra  <amodra@gmail.com>
1340         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1341         string/strncase_l.c, not string/strncase.c.
1342         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1343         (libc_hidden_def): Redefine.
1345 2017-10-31  Alan Modra  <amodra@gmail.com>
1347         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1348         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1349         (__strcasecmp): Don't define.
1351 2017-10-31  Alan Modra  <amodra@gmail.com>
1353         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1354         IS_IN (libc).
1355         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1356         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1357         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1359 2017-10-31  Alan Modra  <amodra@gmail.com>
1361         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1362         USE_AS_STPNCPY.
1364 2017-10-31  Alan Modra  <amodra@gmail.com>
1366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1367         Redefine only when SHARED.
1369 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1371         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1372         Include <bits/math-finite.h> with appropriate macros defined and
1373         undefined.
1374         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1375         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1376         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1377         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1378         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1380         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1381         [!_Mlong_double_] (_Mlong_double_): Likewise.
1382         [!_Mfloat16_] (_Mfloat16_): Likewise.
1383         [!_Mfloat32_] (_Mfloat32_): Likewise.
1384         [!_Mfloat64_] (_Mfloat64_): Likewise.
1385         [!_Mfloat128_] (_Mfloat128_): Likewise.
1386         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1387         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1388         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1389         (_Mdouble_): Define without indirection through those macros.
1390         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1391         [!_Mfloat128_] (_Mfloat128_): Likewise.
1392         [_Mlong_double_] (_Mlong_double_): Likewise.
1393         (_Mdouble_): Define without indirection through those macros.
1394         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1395         not add -D_Mlong_double_=double.
1396         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1397         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1399 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1401         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1403 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1405         * sysdeps/x86/libc-start.c: Reformat.
1407 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1409         [BZ #22353]
1410         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1411         (1): Renamed to ...
1412         (L(Src0)): This.
1413         (L(Src1)): New.
1414         (L(Src2)): Likewise.
1415         (L(1)): Renamed to ...
1416         (L(Src3)): This.
1418 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1420         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1421         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1422         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1423         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1424         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1425         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1426         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1427         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1428         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1429         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1430         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1431         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1432         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1433         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1434         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1435         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1436         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1437         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1438         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1439         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1440         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1441         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1442         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1443         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1444         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1445         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1446         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1447         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1448         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1449         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1450         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1451         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1452         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1453         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1454         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1455         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1456         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1457         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1458         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1459         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1460         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1461         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1462         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1463         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1464         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1465         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1466         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1467         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1468         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1469         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1470         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1471         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1472         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1473         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1474         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1475         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1476         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1477         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1478         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1479         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1480         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1481         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1482         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1483         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1484         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1485         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1487 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1489         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1490         always defined.
1491         * io/tst-mkdirat.c (do_test): Likewise.
1492         * io/tst-mkfifoat.c (do_test): Likewise.
1493         * io/tst-mknodat.c (do_test): Likewise.
1494         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1495         * locale/programs/locale.c (select_dirs): Likewise.
1496         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1497         * posix/bug-glob2.c (my_readdir): Likewise.
1498         * posix/tst-dir.c (main): Likewise.
1499         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1500         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1502 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1504         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1505         just __USE_GNU.
1507 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1509         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1510         Convert to support/test-driver.c.
1511         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1512         New macro parameters.
1513         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1514         * posix/tst-gnuglob.c: New file.
1515         * posix/tst-gnuglob64.c: Likewise.
1516         * posix/Makefile (tests): Add tst-gnuglob64.
1518 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1520         [BZ #19485]
1521         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1522         and use a better translation for March in “mon”.
1523         * localedata/locales/csb_PL: Use more ASCII to improve the
1524         readability of the source.
1526 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1528         [BZ #13953]
1529         * localedata/locales/km_KH: Use ASCII as much
1530         as possible for better readability of the source and
1531         remove useless comments.
1532         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1533         was commented out and apparently wrong anyway because it was
1534         using Lao characters. If Buddhist era should be used
1535         for km_KH, a native speaker should write the correct formaat
1536         for Khmer.
1537         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1538         (According to CLDR, the first weekday for Cambodia is Sunday).
1539         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1540         (These were using Lao characters which must be wrong. If we get
1541         the correct data from a native speaker, we could add it back, until
1542         then it is better not to have name_mr and name_mrs at all than
1543         having it wrong).
1545 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1547         * locale/loadlocale.c: Correct size of
1548         _nl_value_type_LC_<category> arrays.
1550 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1552         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1553         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1554         with appropriate macros defined and undefined.
1555         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1556         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1557         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1558         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1559         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1561 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1563         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1564         "-O2 -march=i586".
1566 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1568         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1569         with lowercase letters to make it agree with CLDR.
1571 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1573         [BZ #15260]
1574         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1575         first letters of yesstr and nostr in yesexpr and noexpr,
1576         not for the full words.
1577         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1578         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1579         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1580         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1581         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1582         first letters of yesstr and nostr in yesexpr and noexpr,
1583         until now only English was matched in yesexpr and noexpr.
1584         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1585         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1586         fil but not for tl. As tl and fil are very similar, using fil
1587         is probably better than using English.
1589 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1591         [BZ #21706]
1592         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1593         in yesstr and nostr.
1595 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1597         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1598         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1599         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1600         Likewise.
1601         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1602         Likewise.
1603         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1604         Likewise.
1605         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1606         Likewise.
1607         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1608         (SNANF128X): Likewise.
1610         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1611         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1612         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1613         (HUGE_VAL_F32): Likewise.
1614         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1615         (HUGE_VAL_F64): Likewise.
1616         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1617         (HUGE_VAL_F32X): Likewise.
1618         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1619         (HUGE_VAL_F64X): Likewise.
1620         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1621         (HUGE_VAL_F128X): Likewise.
1623 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1625         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1626         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1627         for the br_FR locale.
1629 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1631         [BZ #21706]
1632         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1634 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1636         * locale/programs/record-status.h: Define globals, and function
1637         prototypes. Move function bodies...
1638         * locale/programs/record-status.c: ... to here. New file.
1639         * iconv/Makefile (iconv_prog-modules): Add record-status.
1640         * locale/Makefile (lib-modules): Likewise.
1641         * iconv/iconv_prog.c: Remove verbose.
1642         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1643         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1644         record a warning about ASCII compatibility.
1645         * locale/programs/ld-monetary.c (monetary_finish): If
1646         warn_int_curr_symbol is true then record a warning about the symbol
1647         not being in our ISO 4217 list.
1648         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1649         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1650         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1651         (OPT_NO_WARN): Define.
1652         (OPT_WARN): Define.
1653         (options): Add entry for --no-warnings, and --warnings.
1654         (set_warnings): New function to enable/disable warnings.
1655         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1656         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1657         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1658         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1659         Pass flags to generate_locale.
1660         (generate_locale): Accept new flag argument and pass it to localedef
1661         invocation.
1662         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1663         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1665         * localedata/Makefile (test-input-data): Use full file name.
1666         * localedata/da_DK.in: Rename to...
1667         * localedata/da_DK.ISO-8859-1.in: ...this.
1668         * localedata/de_DE.in: Rename to...
1669         * localedata/de_DE.ISO-8859-1.in: ...this.
1670         * localedata/en_US.in: Rename to...
1671         * localedata/en_US.ISO-8859-1.in: ...this.
1672         * localedata/fr_FR.in: Rename to...
1673         * localedata/fr_FR.UTF-8.in: ... this.
1674         * localedata/hr_HR.in: Rename to...
1675         * localedata/hr_HR.ISO-8859-2.in: ...this.
1676         * localedata/hu_HU.in: Rename to...
1677         * localedata/hu_HU.UTF-8.in: ...this.
1678         * localedata/si_LK.in: Rename to...
1679         * localedata/si_LK.UTF-8.in: ...this.
1680         * localedata/sv_SE.in: Rename to...
1681         * localedata/sv_SE.ISO-8859-1.in: ...this.
1682         * localedata/tr_TR.in: Rename to...
1683         * localedata/tr_TR.UTF-8.in: ...this.
1684         * localedata/uk_UA.in: Rename to...
1685         * localedata/uk_UA.UTF-8.in: ...this.
1686         * localedata/sort-test.sh: Test file is locale name with the
1687         suffix.
1689         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1690         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1691         file.
1692         * localedata/locales/i18n_ctype: Regenerate.
1693         * localedata/locales/tr_TR: Likewise.
1694         * localedata/locales/translit_circle: Likewise.
1695         * localedata/locales/translit_cjk_compat: Likewise.
1696         * localedata/locales/translit_combining: Likewise.
1697         * localedata/locales/translit_compat: Likewise.
1698         * localedata/locales/translit_font: Likewise.
1699         * localedata/locales/translit_fraction: Likewise.
1701 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1703         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1704         lxvd2x/stxvd2x with lvx/stvx.
1705         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1707 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1709         * include/alloc_buffer.h: Replace "if if " with "if " in
1710         comments.
1711         * sysdeps/mips/memcpy.S: Likkewise.
1712         * sysdeps/mips/memset.S: Likewise.
1713         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1714         Likewise.
1715         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1716         Likewise.
1717         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1718         Likewise.
1720 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1722         [BZ #15261]
1723         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1724         yesexpr and noexpr.
1725         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1726         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1727         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1728         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1729         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1730         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1731         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1733 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1735         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1736         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1737         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1738         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1739         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1740         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1741         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1742         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1743         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1744         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1745         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1746         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1748 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1750         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1751         as possible for better readability of the source.
1752         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1753         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1754         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1755         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1756         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1757         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1758         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1759         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1760         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1761         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1762         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1763         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1764         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1765         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1766         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1767         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1768         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1769         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1770         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1771         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1772         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1773         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1774         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1775         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1776         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1777         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1778         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1779         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1780         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1781         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1782         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1783         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1784         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1785         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1786         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1787         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1788         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1789         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1790         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1791         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1792         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1793         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1794         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1795         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1796         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1797         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1798         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1799         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1800         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1801         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1802         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1803         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1804         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1805         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1806         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1807         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1808         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1809         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1810         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1811         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1812         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1813         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1814         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1815         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1816         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1817         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1818         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1819         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1820         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1821         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1822         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1823         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1824         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1825         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1826         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1827         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1828         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1829         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1830         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1831         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1832         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1833         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
1834         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
1835         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1836         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
1837         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
1838         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
1839         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1840         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
1841         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
1842         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
1843         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
1844         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1845         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
1846         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
1847         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1848         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
1849         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1850         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
1851         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
1852         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
1853         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
1854         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
1855         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
1856         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
1857         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
1858         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
1859         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
1860         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
1861         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
1862         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
1863         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
1864         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1865         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
1866         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
1867         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
1868         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
1869         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
1870         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
1871         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
1872         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
1873         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
1874         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
1875         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
1876         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
1877         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
1878         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
1879         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
1880         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
1881         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
1882         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
1883         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
1884         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
1885         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
1886         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
1887         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
1888         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
1889         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
1890         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
1891         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
1892         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
1893         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
1894         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
1895         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
1896         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
1897         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1898         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
1899         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
1900         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
1901         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
1902         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
1903         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
1904         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
1905         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
1906         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1907         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
1908         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
1909         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
1910         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
1911         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
1912         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
1913         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
1914         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
1915         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
1916         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
1917         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1918         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
1919         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
1920         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
1921         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
1922         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1923         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1924         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1925         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
1927 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1929         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1930         (Use first letters of yesstr and nostr correctly instead of using
1931         full words).
1933 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1935         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1936         (Use first letters of yesstr and nostr correctly).
1938 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1940         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1941         also check for the first characters of yesstr and nostr.
1942         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1943         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1945 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1947         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
1948         also check for Chinese characters.
1950 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1952         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
1953         match also for the contents of yesstr and nostr. As the first letter
1954         of yesstr and nostr is equal, checking only for the first letter
1955         is not enough.
1957 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1959         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
1960         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
1962 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1964         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
1965         of main contributor.
1967 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1969         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
1970         instead of using English.
1972 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1974         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
1975         by including the first letters of nostr and yesexpr in the regexp.
1976         Also make it more readable by using ASCII where possible.
1978 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1980         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
1981         the first letter of nostr in the regexp. It agrees with CLDR now.
1982         Also make it more readable by using ASCII where possible.
1984 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1986         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
1987         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
1988         these strings contain a U+17D6 (which somewhat looks like a colon)
1989         instead of a real colon to separate the full words for “yes”
1990         and “no” from the single letter responses.
1992 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
1994         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
1995         it agree with CLDR (include the first letter of yesstr).
1996         Also make it more readable by using ASCII where possible.
1998 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2000         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2001         and improve yesexpr and noexpr. The yesstr and nostr apparently
2002         came from CLDR. And CLDR has a bug there: these strings contain
2003         a U+0903 (which looks like a colon) instead of a real colon
2004         to separate the full words for “yes” and “no” from the single
2005         letter responses.
2007 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2009         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2010         letters of the full yesstr and nostr in yesexpr and noexpr.
2012 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2014         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2015         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2016         * localedata/locales/an_ES: Make source more readable by using ASCII
2017         where possible.
2019 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2021         [BZ #20952]
2022         * localedata/locales/yuw_PG: New file.
2023         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2024         * locale/iso-639.def: Add Yau (Uruwa).
2026 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2028         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2030 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2032         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2033         (__libc_realloc): Likewise.
2034         (_mid_memalign): Likewise.
2035         (__libc_calloc): Likewise.
2037 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2039         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2040         by adding the generic +1 and -0 as in all other locales.
2041         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2042         day names and make it more readable by using ASCII where possible.
2044 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2046         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2047         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2049 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2051         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2052         WNOHANG in waitpid call.
2054 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2056         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2057         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2059         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2060         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2061         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2062         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2063         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2064         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2065         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2066         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2067         variables.
2069 2017-10-23  Michael Collison  <michael.collison@arm.com>
2071         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2072         with __builtin_sqrt.
2073         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2074         with __builtin_sqrtf.
2075         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2076         with __builtin_ceil.
2077         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2078         with __builtin_ceilf.
2079         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2080         with __builtin_floor.
2081         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2082         with __builtin_floorf.
2083         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2084         with __builtin_fma.
2085         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2086         with __builtin_fmaf.
2087         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2088         with __builtin_fmax.
2089         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2090         with __builtin_fmaxf.
2091         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2092         with __builtin_fmin.
2093         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2094         with __builtin_fminf.
2095         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2096         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2097         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2098         with builtin_rint and conversion to int.
2099         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2100         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2101         with builtin_llround.
2102         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2103         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2104         with builtin_rint and conversion to long int.
2105         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2106         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2107         with builtin_lround.
2108         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2109         with builtin_lroundf.
2110         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2111         statements with __builtin_nearbyint.
2112         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2113         statements with __builtin_nearbyintf.
2114         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2115         with __builtin_rint.
2116         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2117         with __builtin_rintf.
2118         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2119         with __builtin_round.
2120         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2121         with __builtin_roundf.
2122         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2123         with __builtin_trunc.
2124         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2125         with __builtin_truncf.
2126         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2127         and s_l[l]round[f].c too.
2129 2017-10-23  Alan Modra  <amodra@gmail.com>
2131         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2132         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2134 2017-10-23  Alan Modra  <amodra@gmail.com>
2136         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2137         Move LR save and frame setup/teardown and LR restore to
2138         immediately around memset call.  Provide cfi.
2140 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2142         * sysdeps/i386/fpu/e_powf.S: Removed.
2143         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2144         * sysdeps/i386/fpu/w_powf.c: Likewise.
2145         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2146         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2147         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2148         Add e_powf-sse2.
2149         (CFLAGS-e_powf-sse2.c): New.
2150         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2151         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2153 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2155         * sysdeps/i386/fpu/e_log2f.S: Removed.
2156         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2157         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2158         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2159         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2160         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2161         Add e_log2f-sse2.
2162         (CFLAGS-e_log2f-sse2.c): New.
2163         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2164         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2166 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2168         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2169         Add e_powf-fma.
2170         (CFLAGS-e_powf-fma.c): New.
2171         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2172         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2174 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2176         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2177         Add e_log2f-fma.
2178         (CFLAGS-e_log2f-fma.c): New.
2179         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2180         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2182 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2184         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2185         Add e_logf-fma.
2186         (CFLAGS-e_logf-fma.c): New.
2187         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2188         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2190 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2192         * sysdeps/i386/fpu/e_logf.S: Removed.
2193         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2194         * sysdeps/i386/fpu/w_logf.c: Likewise.
2195         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2196         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2197         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2198         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2199         Add e_logf-sse2.
2200         (CFLAGS-e_logf-sse2.c): New.
2201         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2202         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2204 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2206         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2207         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2208         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2209         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2210         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2211         Add e_exp2f-sse2.
2212         (CFLAGS-e_exp2f-sse2.c): New.
2213         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2214         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2216 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2218         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2219         Add e_exp2f-fma.
2220         (CFLAGS-e_exp2f-fma.c): New.
2221         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2222         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2224 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2226         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2227         * sysdeps/i386/fpu/e_expf.S: Likewise.
2228         * sysdeps/i386/fpu/math_errf.c: Likewise.
2229         * sysdeps/i386/fpu/w_expf.c: Likewise.
2230         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2231         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2232         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2233         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2234         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2235         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2236         Remove e_expf-ia32.
2237         (CFLAGS-e_expf-sse2.c): New.
2238         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2239         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2241 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2243         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2244         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2245         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2246         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2247         e_expf.c.
2248         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2249         New.
2250         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2251         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2252         Renamed to ...
2253         (__redirect_expf): This.
2254         (SYMBOL_NAME): Changed to expf.
2255         (__ieee754_expf): Renamed to ...
2256         (__expf): This.
2257         (__GI___expf): This.
2258         (__ieee754_expf): Add strong_alias.
2259         (__expf_finite): Likewise.
2260         (__expf): New.
2261         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2263 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2265         [BZ #22332]
2266         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2267         unescaping.
2269 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2271         * posix/Makefile (tests): Add tst-glob-tilde.
2272         (tests-special): Add tst-glob-tilde-mem.out
2273         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2274         (tst-glob-tilde-mem.out): Add mtrace check.
2275         * posix/tst-glob-tilde.c: New file.
2277 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2279         * bits/floatn-common.h: New file.
2280         * math/Makefile (headers): Add bits/floatn-common.h.
2281         * bits/floatn.h: Include <bits/floatn-common.h>.
2282         * sysdeps/ia64/bits/floatn.h: Likewise.
2283         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2284         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2285         * sysdeps/powerpc/bits/floatn.h: Likewise.
2286         * sysdeps/x86/bits/floatn.h: Likewise.
2288 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2290         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2291         indicates whether compiler emits an warning for alias for
2292         functions with incompatible types.
2294         [BZ #22273]
2295         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2296         the auxiliary process is terminated by a signal before calling _exit
2297         or execve.
2299 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2301         [BZ #21265]
2302         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2303         New.
2304         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2305         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2306         and bit_arch_XSAVEC_Usable if needed.
2307         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2308         and bit_arch_Use_dl_runtime_resolve_opt.
2309         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2310         Removed.
2311         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2312         (bit_arch_Prefer_No_AVX512): Updated.
2313         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2314         (bit_arch_XSAVEC_Usable): New.
2315         (STATE_SAVE_OFFSET): Likewise.
2316         (STATE_SAVE_MASK): Likewise.
2317         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2318         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2319         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2320         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2321         (index_arch_XSAVEC_Usable): New.
2322         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2323         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2324         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2325         is enabled.
2326         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2327         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2328         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2329         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2330         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2331         _dl_runtime_resolve_xsavec.
2332         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2333         Removed.
2334         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2335         instead of VEC_SIZE.
2336         (REGISTER_SAVE_BND0): Removed.
2337         (REGISTER_SAVE_BND1): Likewise.
2338         (REGISTER_SAVE_BND3): Likewise.
2339         (REGISTER_SAVE_RAX): Always defined to 0.
2340         (VMOV): Removed.
2341         (_dl_runtime_resolve_avx): Likewise.
2342         (_dl_runtime_resolve_avx_slow): Likewise.
2343         (_dl_runtime_resolve_avx_opt): Likewise.
2344         (_dl_runtime_resolve_avx512): Likewise.
2345         (_dl_runtime_resolve_avx512_opt): Likewise.
2346         (_dl_runtime_resolve_sse): Likewise.
2347         (_dl_runtime_resolve_sse_vex): Likewise.
2348         (USE_FXSAVE): New.
2349         (_dl_runtime_resolve_fxsave): Likewise.
2350         (USE_XSAVE): Likewise.
2351         (_dl_runtime_resolve_xsave): Likewise.
2352         (USE_XSAVEC): Likewise.
2353         (_dl_runtime_resolve_xsavec): Likewise.
2354         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2355         Removed.
2356         (_dl_runtime_resolve_avx512_opt): Likewise.
2357         (_dl_runtime_resolve_avx): Likewise.
2358         (_dl_runtime_resolve_avx_opt): Likewise.
2359         (_dl_runtime_resolve_sse): Likewise.
2360         (_dl_runtime_resolve_sse_vex): Likewise.
2361         (_dl_runtime_resolve_fxsave): New.
2362         (_dl_runtime_resolve_xsave): Likewise.
2363         (_dl_runtime_resolve_xsavec): Likewise.
2365 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2367         [BZ #22320]
2368         CVE-2017-15670
2369         * posix/glob.c (__glob): Fix one-byte overflow.
2371 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2373         * malloc/malloc.c (sysdep-cancel.h): Add include.
2375 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2377         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2379 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2381         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2382         (tests): Remove $(objpfx)ga_test depdendency.
2383         * resolv/ga_test.c: Remove file.
2385 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2387         [BZ #18812]
2388         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2389         * localedata/locales/kab_DZ: New file.
2391 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2393         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2394         _dl_relocate_static_pie instead of _dl_start to compute load
2395         address in static PIE.
2397 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2399         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2401 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2403         [BZ #13605]
2404         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2405         * localedata/locales/shn_MM: New file.
2407 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2409         [BZ #22321]
2410         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2411         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2412         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2413         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2414         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2415         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2417 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2419         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2421 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2423         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2425         [BZ #22322]
2426         * sysdeps/mips/bits/long-double.h: Move to ....
2427         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2429 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2431         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2433 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2434             H.J. Lu  <hongjiu.lu@intel.com>
2436         [BZ #22299]
2437         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2438         GLRO(dl_platform) to NULL.
2439         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2440         (modules-names): Add tst-platformmod-1 and
2441         x86_64/tst-platformmod-2.
2442         (CFLAGS-tst-platform-1.c): New.
2443         (CFLAGS-tst-platformmod-1.c): Likewise.
2444         (CFLAGS-tst-platformmod-2.c): Likewise.
2445         (LDFLAGS-tst-platformmod-2.so): Likewise.
2446         ($(objpfx)tst-platform-1): Likewise.
2447         ($(objpfx)tst-platform-1.out): Likewise.
2448         (tst-platform-1-ENV): Likewise.
2449         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2450         * sysdeps/x86_64/tst-platform-1.c: New file.
2451         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2452         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2454 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2456         [BZ #13994]
2457         * locale/iso-639.def: Add Karbi.
2458         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2459         * localedata/locales/mjw_IN: New file.
2461 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2463         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2464         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2465         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2466         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2467         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2468         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2469         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2470         <bits/floatn.h>.
2471         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2472         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2473         * manual/math.texi (Mathematics): Document additional architecture
2474         support for _Float128.
2475         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2476         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2477         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2478         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2479         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2480         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2481         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2482         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2483         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2484         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2485         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2486         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2487         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2488         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2489         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2491 2017-10-18  Renlin Li  <renlin.li@arm.com>
2493         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2494         _DYNAMIC symbol to calculate load address.
2496 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2498         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2499         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2500         summary bits.
2501         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2502         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2504 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2506         [BZ #16777]
2507         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2508         and improve readability by using more ASCII.
2509         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2510         and improve readability by using more ASCII.
2512 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2514         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2515         not all targets support atomics on bool.
2517 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2519         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2520         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2521         __f128.
2522         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2523         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2524         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2525         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2526         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2527         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2529 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2531         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2532         defines.
2534 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2536         [BZ #22159]
2537         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2538         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2539         (do_check_remalloced_chunk): Fix build bug.
2540         (do_check_malloc_state): Add assert that checks arena->top.
2541         (malloc_consolidate): Remove initialization.
2542         (int_mallinfo): Remove call to malloc_consolidate.
2543          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2545 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2547         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2548         (have_fastchunks): Remove.
2549         (clear_fastchunks): Remove.
2550         (set_fastchunks): Remove.
2551         (malloc_state): Add have_fastchunks.
2552         (malloc_init_state): Use have_fastchunks.
2553         (do_check_malloc_state): Remove incorrect invariant checks.
2554         (_int_malloc): Use have_fastchunks.
2555         (_int_free): Likewise.
2556         (malloc_consolidate): Likewise.
2558 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2560         * malloc/malloc.c (tcache_put): Inline.
2561         (tcache_get): Inline.
2563 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2565         Aurelien Jarno  <aurelien@aurel32.net>
2566         [BZ #2522]
2567         * localedata/locales/ca_ES@valencia: New file.
2568         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2570 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2572         [BZ #22296]
2573         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2574         < 6.x
2576 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2578         * scripts/build-many-glibcs.py (Context.add_all_configs):
2579         Add arm-linux-gnueabihf multiarch extra_glibcs.
2581         * sysdeps/generic/ifunc-init.h: New file.
2582         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2584 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2586         [BZ #22019]
2587         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2588         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2589         * stdlib/tst-strfmon_l.c: adapt test case.
2591 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2593         * sysdeps/generic/float128-abi.h: New file.
2594         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2595         non-__prefixed symbols to ....
2596         * math/Versions: ... here.  Include <float128-abi.h>.
2597         * stdlib/Versions ... and here.  Include <float128-abi.h>
2599 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2601         * version.h (VERSION): Switch to ".9000" as the development
2602         version suffix.
2604 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2606         [BZ #22050]
2607         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2608         compat_symbol_reference to access non-default version.
2610 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2612         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2614 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2616         * include/shlib-compat.h (compat_symbol_reference): Update
2617         comment.
2619 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2621         * math/Makefile (test-types): Add
2622         $(type-float128-$(float128-alias-fcts)).
2623         * math/test-float128.h (TYPE_STR): Define conditional on
2624         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2625         (ULP_IDX): Likewise.
2626         (ULP_I_IDX): Likewise.
2628         * stdlib/strtold.c: Include <bits/floatn.h>
2629         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2630         and later undefine as macro.  Define as weak alias if
2631         [!USE_WIDE_CHAR].
2632         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2633         and later undefine as macro.  Define as weak alias if
2634         [USE_WIDE_CHAR].
2635         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2636         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2637         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2638         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2639         Define and later undefine as macro.  Define as weak alias if
2640         [USE_WIDE_CHAR].
2641         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2642         <bits/floatn.h>.
2643         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2644         Define and later undefine as macro.  Define as weak alias if
2645         [!USE_WIDE_CHAR].
2646         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2647         Define and later undefine as macro.  Define as weak alias if
2648         [USE_WIDE_CHAR].
2650 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2652         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2653         record_verbose messages.
2655 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2657         [BZ #22052]
2658         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2659         to silence -O3 -Wall warning with GCC 7.
2661 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2663         * Makeconfig (+link-static-before-libc): Use the first of
2664         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2665         * gmon/Makefile (tests): Add tst-gmon-static.
2666         (tests-static): Likewise.
2667         (CFLAGS-tst-gmon-static.c): New.
2668         (CRT-tst-gmon-static): Likewise.
2669         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2670         (tst-gmon-static-ENV): Likewise.
2671         (tests-special): Likewise.
2672         ($(objpfx)tst-gmon-static.out): Likewise.
2673         (clean-tst-gmon-static-data): Likewise.
2674         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2675         * gmon/tst-gmon-static-gprof.sh: New file.
2676         * gmon/tst-gmon-static.c: Likewise.
2678 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2680         [BZ #22295]
2681         * locale/programs/linereader.c (get_string): Don't warn on
2682         non-symbolic character.
2684         [BZ #22294]
2685         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2686         int_curr_symbol.
2688         [BZ #22292]
2689         * locale/programs/record-status.h: New file
2690         * locale/programs/locale.c: Add comment.
2691         * locale/programs/charmap-dir.c: Don't include error.h.
2692         (charmap_opendir): Use record_error.
2693         * locale/programs/charmap.c: Don't include error.h.
2694         (charmap_read): Use record_error, and record_warning.
2695         (parse_charmap): Likewise.
2696         * locale/programs/ld-address.c: Don't include error.h.
2697         (address_finish): Use record_error, and record_warning.
2698         * locale/programs/ld-collate.c: Don't include error.h.
2699         (collate_finish): Use record_error, and record_error_at_line.
2700         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2701         (ctype_class_new): Likewise.
2702         (ctype_map_new): Likewise.
2703         (set_one_default): Likewise.
2704         (set_class_defaults): Likewise.
2705         (translit_flatten): Likewise.
2706         (allocate_arrays): Use record_error, and record_verbose.
2707         * locale/programs/ld-identification.c: Don't include error.h.
2708         (indentation_finish): Use record_error and record_warning.
2709         * locale/programs/ld-measurement.c: Don't include error.h.
2710         (measurement_finish): Use record_error.
2711         * locale/programs/ld-messages.c
2712         (message_finish): Likewise.
2713         * locale/programs/ld-monetary.c
2714         (monetary_finish): Likewise.
2715         * locale/programs/ld-name.c (name_finish): Use record_error
2716         and record_warning.
2717         * locale/programs/ld-numeric.c
2718         (numeric_finish): Use record_error.
2719         * locale/programs/ld-paper.c: Don't include error.h.
2720         (paper_finish): Use record_error.
2721         * locale/programs/ld-telephone.c: Don't include error.h.
2722         (telephone_finish): Use record_error.
2723         * locale/programs/ld-time.c (time_finish): Likewise.
2724         * locale/programs/linereader.h (lr_error): Make inline func.
2725         * locale/programs/localedef.c: Define recorded_warning_count,
2726         and recorded_error_count.
2727         (main): Use record_error. Use recorded_error_count and
2728         recorded_warning_count to issue correct error returns.
2729         (add_to_readlist): Use record_error.
2730         (find_locale): Likewise.
2731         (load_locale): Likewise.
2732         * locale/programs/localedef.h: Remove be_quiet
2733         and WITH_CUR_LOCALE.
2734         * locale/programs/locarchive.c (compare_from_file): Use
2735         record_error.
2736         * locale/programs/locfile.c (write_locale_data): Use
2737         record_error.
2738         * locale/programs/repertoire.c: Dont include error.h.
2739         (repertoire_complain): Use record_error.
2740         * localedata/tst-fmon.sh: Expect failures from localedef.
2741         * localedata/tst-locale.sh: Likewise.
2742         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2744         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2745         (REPORTS): Likewise.
2746         (check): Likewise.
2747         (i18n): Rename to...
2748         (i18n_ctype): ...this.
2749         (i18n-report): Rename to...
2750         (i18n_ctype-report): ...this.
2751         * localedata/locales/i18n_ctype: Regenerate.
2752         * localedata/locales/i18n: copy i18n_ctype.
2754 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2756         * stdlib/strfroml.c: Include <bits/floatn.h>.
2757         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2758         Define before include of <stdlib.h> and undefine afterwards, then
2759         define as weak alias.
2761         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2762         Undefine and restore default definition.  Use
2763         libm_alias_ldouble_other.
2765 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2767         [BZ #22153]
2768         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2769         in coredumps.
2771 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2773         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2774         Assign sym_map to be map for local symbols, as TLS relocations
2775         use sym_map to determine whether the symbol is defined and to
2776         extract the TLS information.
2777         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2778         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2780 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2782         [BZ #22189]
2783         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2784         (math_force_eval): Add powerpc version.
2786         [BZ #22142]
2787         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2788         -DBL_MAX.
2789         (do_test): Likewise.
2790         * stdio-common/tst-printf.sh: Likewise.
2791         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2792         ifdef clause in order to set the carry bit right.  Replace r0 by
2793         0 without changing the behavior.
2795 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2797         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2798         <libm-alias-ldouble.h>.
2799         (fabsl): Define using libm_alias_ldouble.
2800         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2801         <libm-alias-ldouble.h>.
2802         (fabsl): Define using libm_alias_ldouble.
2804         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2805         Remove conditional code.
2807         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2808         Rename to __clog10_internal_l.
2809         (__clog10_internal_l): Define aliases using
2810         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2811         with __clog10.
2813 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2815         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2816         * benchtests/sincosf-inputs: New file.
2817         * benchtests/cosf-inputs: New file.
2818         * benchtests/sinf-inputs: New file.
2820 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2822         * posix/tst-spawn.c (do_test): Wait for both children.
2824 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2826         [BZ #22284]
2827         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2828         tests-pie): Add tst-gmon-pie.
2829         (CFLAGS-tst-gmon-pie.c): New.
2830         (CRT-tst-gmon-pie): Likewise.
2831         (tst-gmon-pie-ENV): Likewise.
2832         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2833         ($(objpfx)tst-gmon-pie.out): Likewise.
2834         (clean-tst-gmon-pie-data): Likewise.
2835         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
2836         * gmon/gmon.c [PIC]: Include <link.h>.
2837         [PIC] (callback): New function.
2838         (write_hist): Add an argument for load address.  Subtract load
2839         address from PCs.
2840         (write_call_graph): Likewise.
2841         (write_gmon): Call __dl_iterate_phdr to get load address, pass
2842         it to write_hist and write_call_graph.
2843         * gmon/tst-gmon-pie.c: New file.
2845 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2847         * math/Makefile (test-types-basic): New variable.
2848         (test-types): Likewise.
2849         (libm-test-support): Use $(test-types) instead of $(types).
2850         (libm-tests-base-normal): Likewise.
2851         (libm-tests-base-finite): Likewise.
2852         (libm-tests-base-inline): Likewise.
2853         (generated): Likewise.
2854         ($(objpfx)libm-test-support-$(t).c): Likewise.
2855         (libm-tests-for-type iterator): Likewise.
2856         (libm-test-support iterator): Likewise.
2857         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
2858         (ulp_idx): Use ULP_IDX.
2859         * math/test-ldouble.h: Include <float.h>.
2860         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
2861         (ULP_IDX): New macro.
2862         (ULP_I_IDX): Likewise.
2863         * math/test-double.h (ULP_IDX): Likewise.
2864         (ULP_I_IDX): Likewise.
2865         * math/test-float.h (ULP_IDX): Likewise.
2866         (ULP_I_IDX): Likewise.
2867         * math/test-float128.h (ULP_IDX): Likewise.
2868         (ULP_I_IDX): Likewise.
2870 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2872         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
2873         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
2874         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
2875         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
2876         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
2877         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
2878         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
2879         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
2880         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
2881         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
2882         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
2883         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
2884         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
2885         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2886         (SINGLE_THREAD_BY_GLOBAL): Define.
2887         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2888         Likewise.
2889         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2890         Likewise.
2891         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2892         Likewise.
2893         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2894         Likewise.
2895         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
2896         (SINGLE_THREAD_BY_GLOBAL): Likewise.
2897         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2898         Likewise.
2900 2017-10-11  Andreas Schwab  <schwab@suse.de>
2902         * nis/Makefile (aux): Remove.
2903         * nscd/Makefile (aux): Add nscd_hash.
2904         (nscd-modules): Likewise.
2905         ($(objpfx)nscd): Don't depend on libnsl.
2906         * nscd/nscd_hash.c: New file.
2907         * nscd/nscd_hash.h: Likewise.
2908         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
2909         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
2910         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
2911         instead of <nis/rpcsvc/nis.h>.
2912         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
2914 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2916         [BZ #22078]
2917         Avoid large NSS buffers with many addresses, aliases.
2918         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
2919         using dynarrays and struct alloc_buffer.
2920         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
2921         (tst-nss-files-hosts-multi): Link with -ldl.
2922         * nss/tst-nss-files-hosts-multi.c: New file.
2924 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2926         [BZ #18023]
2927         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
2928         scratch_buffer.  Eliminate gotos.
2930 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2932         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2933         libm_alias_ldouble_other.
2934         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2935         undefine and redefine.
2936         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2937         (exp10l): Do not define here.
2938         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2939         (weak_alias): Undefine and redefine.
2940         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2941         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2942         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2943         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2945         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
2946         [!__fma] (fma): Define using libm_alias_double.
2947         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
2948         [!__fmaf] (fmaf): Define using libm_alias_float.
2949         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
2950         (fmal): Define using libm_alias_ldouble.
2952 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
2954         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
2955         New macro.
2956         (libm_alias_double_other): Likewise.
2957         (libm_alias_double_r): Use libm_alias_double_other_r.
2958         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
2959         New macro.
2960         (libm_alias_float_other): Likewise.
2961         (libm_alias_float_r): Use libm_alias_float_other_r.
2962         * sysdeps/generic/libm-alias-float128.h
2963         (libm_alias_float128_other_r): New macro.
2964         (libm_alias_float128_other): Likewise.
2965         (libm_alias_float128_r): Use libm_alias_float128_other_r.
2966         * sysdeps/generic/libm-alias-ldouble.h
2967         (libm_alias_ldouble_other_r): New macro.
2968         (libm_alias_ldouble_other): Likewise.
2969         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2970         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2971         (libm_alias_double_other_r): New macro.
2972         (libm_alias_double_other): Likewise.
2973         (libm_alias_double_r): Use libm_alias_double_other_r.
2974         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
2975         (libm_alias_ldouble_other_r): New macro.
2976         (libm_alias_ldouble_other): Likewise.
2977         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2978         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
2979         [!USE_AS_COMPAT]: Use libm_alias_double_other.
2980         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
2981         [!USE_AS_COMPAT]: Use libm_alias_float_other.
2982         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
2983         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
2984         * math/w_exp2f.c: Use libm_alias_float_other.
2985         * math/w_expf.c: Likewise.
2986         * math/w_log2f.c: Likewise.
2987         * math/w_logf.c: Likewise.
2988         * math/w_powf.c: Likewise.
2989         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
2990         [!__exp2f]: Use libm_alias_float_other.
2991         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
2992         [!__expf]: Use libm_alias_float_other.
2993         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
2994         [!__log2f]: Use libm_alias_float_other.
2995         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
2996         [!__logf]: Use libm_alias_float_other.
2997         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
2998         [!__powf]: Use libm_alias_float_other.
3000 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3002         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3003         function.
3004         (_nss_files_gethostbyname3_r): Call it.
3006 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3008         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3009         error.  Remove default definition of declare_mgen_alias.
3010         [!declare_mgen_alias_r]: Likewise.
3011         * sysdeps/generic/math-type-macros-double.h
3012         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3013         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3014         (declare_mgen_alias_r): Likewise.
3015         * sysdeps/generic/math-type-macros-float128.h
3016         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3017         * sysdeps/generic/math-type-macros-ldouble.h
3018         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3019         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3020         macro.
3021         (declare_mgen_alias_r_s): Likewise.
3022         (declare_mgen_alias_r): Likewise.
3023         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3024         (lgamma_r): Define using libm_alias_double_r.
3025         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3026         (lgammaf_r): Define using libm_alias_float_r.
3027         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3028         (lgammal_r): Define using libm_alias_ldouble_r.
3029         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3030         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3032 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3034         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3035         extern declaration.
3037 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3039         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3041 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3043         [BZ #21326]
3044         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3045         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3046         * math/Makefile (test-math-cxx11): New test.
3047         * math/test-math-cxx11.cc: New file.
3049 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3051         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3053         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3054         call to allocate the slave pty file descriptor.
3056 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3058         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3059         [!__fma] (fma): Define using libm_alias_double.
3060         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3061         [!__fma] (fma): Define using libm_alias_double.
3063         * sysdeps/ieee754/float128/float128_private.h: Include
3064         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3065         (libm_alias_ldouble_r): Undefine and redefine.
3066         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3067         <libm-alias-ldouble.h>.
3068         (asinhl): Define using libm_alias_ldouble.
3069         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3070         <libm-alias-ldouble.h>.
3071         (atanl): Define using libm_alias_ldouble.
3072         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3073         <libm-alias-ldouble.h>.
3074         (cbrtl): Define using libm_alias_ldouble.
3075         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3076         <libm-alias-ldouble.h>.
3077         (ceill): Define using libm_alias_ldouble.
3078         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3079         <libm-alias-ldouble.h>.
3080         (copysignl): Define using libm_alias_ldouble.
3081         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3082         <libm-alias-ldouble.h>.
3083         (cosl): Define using libm_alias_ldouble.
3084         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3085         <libm-alias-ldouble.h>.
3086         (erfl): Define using libm_alias_ldouble.
3087         (erfcl): Likewise.
3088         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3089         <libm-alias-ldouble.h>.
3090         (expm1l): Define using libm_alias_ldouble.
3091         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3092         <libm-alias-ldouble.h>.
3093         (fabsl): Define using libm_alias_ldouble.
3094         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3095         <libm-alias-ldouble.h>.
3096         (floorl): Define using libm_alias_ldouble.
3097         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3098         <libm-alias-ldouble.h>.
3099         (fmal): Define using libm_alias_ldouble.
3100         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3101         <libm-alias-ldouble.h>.
3102         (frexpl): Define using libm_alias_ldouble.
3103         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3104         libm_alias_ldouble.
3105         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3106         <libm-alias-ldouble.h>.
3107         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3108         libm_alias_ldouble.
3109         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3110         <libm-alias-ldouble.h>.
3111         (getpayloadl): Define using libm_alias_ldouble.
3112         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3113         <libm-alias-ldouble.h>.
3114         (llrintl): Define using libm_alias_ldouble.
3115         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3116         <libm-alias-ldouble.h>.
3117         (llroundl): Define using libm_alias_ldouble.
3118         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3119         <libm-alias-ldouble.h>.
3120         (logbl): Define using libm_alias_ldouble.
3121         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3122         <libm-alias-ldouble.h>.
3123         (lrintl): Define using libm_alias_ldouble.
3124         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3125         <libm-alias-ldouble.h>.
3126         (lroundl): Define using libm_alias_ldouble.
3127         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3128         <libm-alias-ldouble.h>.
3129         (modfl): Define using libm_alias_ldouble.
3130         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3131         <libm-alias-ldouble.h>.
3132         (nearbyintl): Define using libm_alias_ldouble.
3133         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3134         <libm-alias-ldouble.h>.
3135         (nextafterl): Define using libm_alias_ldouble.
3136         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3137         <libm-alias-ldouble.h>.
3138         (nextupl): Define using libm_alias_ldouble.
3139         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3140         <libm-alias-ldouble.h>.
3141         (remquol): Define using libm_alias_ldouble.
3142         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3143         <libm-alias-ldouble.h>.
3144         (rintl): Define using libm_alias_ldouble.
3145         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3146         <libm-alias-ldouble.h>.
3147         (roundevenl): Define using libm_alias_ldouble.
3148         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3149         <libm-alias-ldouble.h>.
3150         (roundl): Define using libm_alias_ldouble.
3151         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3152         using libm_alias_ldouble.
3153         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3154         <libm-alias-ldouble.h>.
3155         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3156         Define using libm_alias_ldouble.
3157         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3158         <libm-alias-ldouble.h>.
3159         (sincosl): Define using libm_alias_ldouble.
3160         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3161         <libm-alias-ldouble.h>.
3162         (sinl): Define using libm_alias_ldouble.
3163         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3164         <libm-alias-ldouble.h>.
3165         (tanhl): Define using libm_alias_ldouble.
3166         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3167         <libm-alias-ldouble.h>.
3168         (tanl): Define using libm_alias_ldouble.
3169         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3170         <libm-alias-ldouble.h>.
3171         (totalorderl): Define using libm_alias_ldouble.
3172         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3173         <libm-alias-ldouble.h>.
3174         (totalordermagl): Define using libm_alias_ldouble.
3175         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3176         <libm-alias-ldouble.h>.
3177         (truncl): Define using libm_alias_ldouble.
3178         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3179         libm_alias_ldouble.
3180         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3181         libm_alias_ldouble.
3182         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3183         <libm-alias-ldouble.h>.
3184         (weak_alias): Do not undefine and redefine.
3185         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3186         (copysignl): Define with long_double_symbol only if [IS_IN
3187         (libc)].
3188         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3189         <libm-alias-ldouble.h>.
3190         (weak_alias): Do not undefine and redefine.
3191         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3192         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3193         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3194         <libm-alias-ldouble.h>.
3195         (weak_alias): Do not undefine and redefine.
3196         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3197         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3198         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3199         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3200         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3201         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3202         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3203         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3204         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3205         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3206         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3207         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3208         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3209         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3210         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3211         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3212         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3213         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3214         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3215         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3216         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3217         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3218         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3219         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3220         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3221         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3223 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3225         [BZ #22111]
3226         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3227         (tcache_thread_freeres): Set tcache_shutting_down before
3228         freeing the tcache.
3229         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3230         * malloc/tst-malloc-tcache-leak.c: New file.
3232 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3234         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3235         back to powerpc32 file.
3236         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3237         (memrchr): Add __memrchr_power8 to ifunc list.
3238         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3239         extra bytes for unaligned inputs.
3241 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3243         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3244         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3245         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3246         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3247         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3249 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3251         * sysdeps/arm/libm-test-ulps: Update.
3253         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3254         <libm-alias-ldouble.h>.
3255         (asinhl): Define using libm_alias_ldouble.
3256         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3257         <libm-alias-ldouble.h>.
3258         (cbrtl): Define using libm_alias_ldouble.
3259         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3260         <libm-alias-ldouble.h>.
3261         (copysignl): Define using libm_alias_ldouble.
3262         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3263         <libm-alias-ldouble.h>.
3264         (cosl): Define using libm_alias_ldouble.
3265         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3266         <libm-alias-ldouble.h>.
3267         (erfl): Define using libm_alias_ldouble.
3268         (erfcl): Likewise.
3269         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3270         <libm-alias-ldouble.h>.
3271         (fmal): Define using libm_alias_ldouble.
3272         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3273         <libm-alias-ldouble.h>.
3274         (frexpl): Define using libm_alias_ldouble.
3275         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3276         libm_alias_ldouble.
3277         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3278         <libm-alias-ldouble.h>.
3279         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3280         libm_alias_ldouble.
3281         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3282         <libm-alias-ldouble.h>.
3283         (getpayloadl): Define using libm_alias_ldouble.
3284         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3285         <libm-alias-ldouble.h>.
3286         (llrintl): Define using libm_alias_ldouble.
3287         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3288         <libm-alias-ldouble.h>.
3289         (llroundl): Define using libm_alias_ldouble.
3290         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3291         <libm-alias-ldouble.h>.
3292         (lrintl): Define using libm_alias_ldouble.
3293         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3294         <libm-alias-ldouble.h>.
3295         (lroundl): Define using libm_alias_ldouble.
3296         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3297         <libm-alias-ldouble.h>.
3298         (modfl): Define using libm_alias_ldouble.
3299         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3300         <libm-alias-ldouble.h>.
3301         (nextupl): Define using libm_alias_ldouble.
3302         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3303         <libm-alias-ldouble.h>.
3304         (remquol): Define using libm_alias_ldouble.
3305         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3306         <libm-alias-ldouble.h>.
3307         (roundevenl): Define using libm_alias_ldouble.
3308         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3309         <libm-alias-ldouble.h>.
3310         (roundl): Define using libm_alias_ldouble.
3311         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3312         using libm_alias_ldouble.
3313         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3314         <libm-alias-ldouble.h>.
3315         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3316         <libm-alias-ldouble.h>.
3317         (setpayloadsigl): Define using libm_alias_ldouble.
3318         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3319         <libm-alias-ldouble.h>.
3320         (sincosl): Define using libm_alias_ldouble.
3321         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3322         <libm-alias-ldouble.h>.
3323         (sinl): Define using libm_alias_ldouble.
3324         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3325         <libm-alias-ldouble.h>.
3326         (tanhl): Define using libm_alias_ldouble.
3327         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3328         <libm-alias-ldouble.h>.
3329         (tanl): Define using libm_alias_ldouble.
3330         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3331         <libm-alias-ldouble.h>.
3332         (totalorderl): Define using libm_alias_ldouble.
3333         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3334         <libm-alias-ldouble.h>.
3335         (totalordermagl): Define using libm_alias_ldouble.
3336         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3337         libm_alias_ldouble.
3338         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3339         libm_alias_ldouble.
3341 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3343         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3344         memmove_falkor.
3345         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3346         (__libc_ifunc_impl_list): Likewise.
3347         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3348         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3350         * benchtests/bench-memmove-walk.c: New file.
3351         * benchtests/Makefile (string-benchset): Add it.
3353         * benchtests/bench-memset-walk.c: New file.
3354         * benchtests/Makefile (string-benchset): Add it.
3356         * benchtests/bench-memcpy-walk.c: New file.
3357         * benchtests/Makefile (string-benchset): Add it.
3359 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3361         nscd: Eliminate compilation time dependency in the build output.
3362         * nscd/nscd_stat.c (STATDATA_VERSION)
3363         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3364         (STATDATA_VERSION_FULL): New macro definitions.
3365         (compilation): Remove.
3366         (struct statdata): Adjust version member.
3367         (send_stats): Set version from STATDATA_VERSION_FULL.
3368         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3370 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3372         * configure.ac (--enable-add-ons): Remove option.
3373         (machine): Do not mention add-ons in comment.
3374         (LIBC_PRECONFIGURE): Likewise.
3375         (add_ons): Remove variable and sanity checks and logic to locate
3376         add-ons.
3377         (add_ons_automatic): Remove variable.
3378         (configured_add_ons): Likewise.
3379         (add_ons_sfx): Likewise.
3380         (add_ons_pfx): Likewise.
3381         (add_on_subdirs): Likewise.
3382         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3383         consideration of add-ons in Implies handling.
3384         (sysdeps_add_ons): Likewise.
3385         * configure: Regenerated.
3386         * libidn/configure.ac: Remove.
3387         * libidn/configure: Likewise.
3388         * sysdeps/unix/inet/configure.ac: New file.
3389         * sysdeps/unix/inet/configure: New generated file.
3390         * sysdeps/unix/inet/Subdirs: Add libidn.
3391         * Makeconfig (sysdeps-srcdirs): Remove variable.
3392         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3393         ($(common-objpfx)config.status): Do not depend on add-on files.
3394         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3395         comment.
3396         (all-subdirs): Do not include $(add-on-subdirs).
3397         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3398         * config.make.in (add-ons): Remove variable.
3399         (add-on-subdirs): Likewise.
3400         (sysdeps-add-ons): Likewise.
3401         * manual/Makefile (add-chapters): Remove.
3402         ($(objpfx)texis): Do not depend on $(add-chapters).
3403         (nonexamples): Do not handle $(add-chapters).
3404         (examples): Do not handle $(add-ons).
3405         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3406         libc-texinfo.sh.
3407         * manual/install.texi (Installation): Do not mention add-ons.
3408         (--enable-add-ons): Do not document configure option.
3409         * INSTALL: Regenerated.
3410         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3411         * manual/maint.texi (Hierarchy Conventions): Do not mention
3412         add-ons.
3413         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3414         --enable-add-ons.
3415         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3416         add-ons.
3417         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3418         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3420 2017-10-05  Andreas Schwab  <schwab@suse.de>
3422         [BZ #15142]
3423         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3424         (_IO_flush_all_lockp): Always lock list_all_lock.
3425         (_IO_flush_all_linebuffered): Likewise.
3426         (_IO_unbuffer_all): Likewise.
3428 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3430         [BZ #15436]
3431         Do not flush stdio streams on abort.
3432         * stdlib/abort.c (fflush): Remove macro definition.
3433         (abort): Remove stages related to stdio flushing.
3435 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3437         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3439 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3441         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3443 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3445         * support/support_format_hostent.c (support_format_hostent): Add
3446         more error information for NETDB_INTERNAL.
3448 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3450         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3451         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3452         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3453         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3454         AC_DEFINE if multi-arch is enabled.
3455         * sysdeps/i386/configure: Regenerated.
3457 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3459         * Makeconfig (+link-static-before-libc): Use
3460         $(DEFAULT-LDFLAGS-$(@F)).
3461         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3462         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3463         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3465 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3467         * elf/Makefile (tests): Add tst-main1.
3468         (modules-names): Add tst-main1mod.
3469         ($(objpfx)tst-main1): New.
3470         (CRT-tst-main1): Likewise.
3471         (LDFLAGS-tst-main1): Likewise.
3472         (LDLIBS-tst-main1): Likewise.
3473         (tst-main1mod.so-no-z-defs): Likewise.
3474         * elf/tst-main1.c: New file.
3475         * elf/tst-main1mod.c: Likewise.
3477 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3479         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3481 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3483         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3484         (fma): Define using libm_alias_double.
3485         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3486         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3487         <math_ldbl_opt.h>.
3488         (fmal): Do not define as compat symbol here.
3489         * sysdeps/alpha/fpu/s_fma.c: New file.
3491 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3493         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3495 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3497         [BZ #22229]
3498         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3499         <math_ldbl_opt.h>
3500         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3501         and libc.
3502         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3503         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3504         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3505         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3507         Include <math_ldbl_opt.h>
3508         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3509         and libc.
3510         (compat_symbol): Undefine and redefine.
3511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3512         <math_ldbl_opt.h>
3513         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3514         (compat_symbol): Undefine and redefine.
3515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3516         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3517         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3518         GLIBC_2_1 for libm.
3519         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3520         GLIBC_2.0 copysignl symbol.
3521         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3522         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3524         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3526 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3528         * scripts/check-local-headers.sh: Ignore nspr4 header file
3529         directory in addition to nspr.
3531 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3533         [BZ #17956]
3534         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3535         * configure: Regenerate.
3536         * crypt/Makefile (nss-cpp-flags): New variable.
3537         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3538         (CPPFLAGS-md5-crypt.c): Use it.
3539         * scripts/check-local-headers.sh: Ignore nspr header file
3540         directory.
3542 2017-10-04  Andreas Schwab  <schwab@suse.de>
3544         * nis/Makefile (services): Remove compat.
3545         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3546         ($(objpfx)libnss_compat.so): Remove rule.
3547         * nis/Versions (libnss_compat): Remove.
3548         * nss/Makefile (services): Add compat.
3549         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3550         * nss/Versions (libnss_compat): Define.
3551         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3552         Don't include <rpc/types.h>.  Replace bool_t by bool.
3553         * nss/nss_compat/compat-initgroups.c: Likewise.
3554         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3555         instead of <rpcsrv/ypclnt.h>.
3556         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3557         yp_get_default_domain.
3558         * nss/nss_compat/compat-pwd.c: Likewise.
3559         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3560         yp_get_default_domain.
3561         * nss/nss_compat/nisdomain.c: New file.
3562         * nss/nss_compat/nisdomain.h: Likewise.
3564 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3566         [BZ #22244]
3567         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3568         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3570 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3572         [BZ #22243]
3573         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3574         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3576 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3578         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3579         "movl main@GOTOFF(%ebx), %eax".
3581 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3583         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3584         allow undefined _DYNAMIC in PIE libc.a.
3585         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3586         Likewse.
3588 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3590         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3591         check _DYNAMIC.
3593 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3595         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3596         check _DYNAMIC.
3598 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3600         * math/test-math-iscanonical.cc (error): Replace bool with int.
3602 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3604         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3605         (modf): Define using libm_alias_double, only if [!__modf].
3606         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3607         <libm-alias-double.h>.
3608         (modf): Define using libm_alias_double, only if [!__modf].
3609         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3610         compat symbol here.
3611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3612         (weak_alias): Do not undefine and redefine.
3613         (strong_alias): Likewise.
3614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3615         (weak_alias): Likewise.
3616         (strong_alias): Likewise.
3618         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3619         (logb): Define using libm_alias_double, only if [!__logb].
3620         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3621         <libm-alias-double.h>.
3622         (logb): Define using libm_alias_double, only if [!__logb].
3623         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3625         (weak_alias): Do not undefine and redefine.
3626         (strong_alias): Likewise.
3627         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3628         (weak_alias): Likewise.
3629         (strong_alias): Likewise.
3631 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3633         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3634         Check SHARED instead PIC.
3636 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3638         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3639         [!__fmaf] (fmaf): Define using libm_alias_float.
3641         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3642         (frexp): Define using libm_alias_double.
3643         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3644         <libm-alias-double.h>.
3645         (frexp): Define using libm_alias_double.
3646         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3647         compat symbol here.
3649 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3651         [BZ #22235]
3652         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3653         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3654         (CFLAGS-test-math-iscanonical.cc): New variable.
3655         * math/test-math-iscanonical.cc: New file.
3656         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3657         Provide a C++ implementation based on function overloading,
3658         rather than using __MATH_TG, which uses C-only builtins.
3659         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3660         Likewise.
3661         * sysdeps/powerpc/powerpc64le/Makefile
3662         (CFLAGS-test-math-iscanonical.cc): New variable.
3664 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3666         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3667         (ceil): Define using libm_alias_double.
3668         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3669         (floor): Define using libm_alias_double.
3670         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3671         <libm-alias-double.h>.
3672         (llround): Define using libm_alias_double.
3673         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3674         <libm-alias-double.h>.
3675         (lround): Define using libm_alias_double.
3676         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3677         <libm-alias-double.h>.
3678         (nearbyint): Define using libm_alias_double.
3679         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3680         <libm-alias-double.h>.
3681         (remquo): Define using libm_alias_double.
3682         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3683         (rint): Define using libm_alias_double.
3684         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3685         (round): Define using libm_alias_double.
3686         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3687         (trunc): Define using libm_alias_double.
3688         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3689         <libm-alias-double.h>.
3690         (ceil): Define using libm_alias_double.
3691         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3692         <libm-alias-double.h>.
3693         (floor): Define using libm_alias_double.
3694         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3695         <libm-alias-double.h>.
3696         (llround): Define using libm_alias_double.
3697         [_LP64] (lround): Likewise.
3698         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3699         <libm-alias-double.h>.
3700         [!_LP64] (lround): Define using libm_alias_double.
3701         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3702         <libm-alias-double.h>.
3703         (nearbyint): Define using libm_alias_double.
3704         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3705         <libm-alias-double.h>.
3706         (remquo): Define using libm_alias_double.
3707         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3708         <libm-alias-double.h>.
3709         (rint): Define using libm_alias_double.
3710         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3711         <libm-alias-double.h>.
3712         (round): Define using libm_alias_double.
3713         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3714         <libm-alias-double.h>.
3715         (trunc): Define using libm_alias_double.
3716         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3717         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3718         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3719         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3720         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3721         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3722         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3723         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3724         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3726 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3728         * math/w_remainder.c: New file.
3729         * math/w_remainderf.c: New file.
3730         * math/w_remainderl.c: New file.
3732 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3734         * elf/rtld.c (BOOTSTRAP_MAP): New.
3735         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3736         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3737         Likewise.
3738         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3739         Likewise.
3740         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3741         Likewise.
3743 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3745         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3746         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3747         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3748         rtld_hidden_data_ver): Define to empty.
3749         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3750         __assert_perror_fail): Likewise.
3751         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3752         (__rewinddir): Likewise.
3753         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3754         (__profile_frequency): Likewise.
3755         * include/setjmp.h (__sigsetjmp): Likewise.
3756         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3757         __libc_sigaction): Likewise.
3758         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3759         not set hidden attribute.
3760         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3761         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3762         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3763         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3764         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3765         __fxstatat64): Likewise.
3766         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3767         (__uname): Likewise.
3768         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3769         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3770         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3771         (NO_RTLD_HIDDEN): Set.
3772         * sysdeps/mach/hurd/configure: Refresh.
3773         * config.h.in: Refresh.
3775 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3777         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3778         (atan): Define using libm_alias_double.
3779         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3780         (tan): Define using libm_alias_double.
3781         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3782         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3784         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3785         define as weak alias of __atan.  Do not define any aliases if
3786         [__atan].
3787         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3788         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3789         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3790         as weak alias of __tan.  Do not define any aliases if [__tan].
3791         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3792         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3793         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3794         __atan.
3795         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3796         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3797         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3798         and define as weak alias of __atan.
3799         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3800         __atan.
3801         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3802         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3803         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3804         define as weak alias of __tan.
3806 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3808         * math/w_lgamma.c: New file.
3809         * math/w_lgammaf.c: New file.
3810         * math/w_lgammal.c: New file.
3812 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3814         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3815         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3816         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3817         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3818         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3819         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3820         * sysdeps/i386/fpu/w_log2f.c: New file.
3821         * sysdeps/i386/fpu/w_logf.c: New file.
3822         * sysdeps/i386/fpu/w_powf.c: New file.
3823         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3824         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3825         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3827 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3828             H.J. Lu  <hongjiu.lu@intel.com>
3830         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3831         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3832         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3833         * sysdeps/ieee754/flt-32/w_expf.c: New file.
3834         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
3835         the new expf code.
3836         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
3837         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
3838         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
3839         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
3840         * sysdeps/i386/fpu/w_exp2f.c: New file.
3841         * sysdeps/i386/fpu/w_expf.c: New file.
3842         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
3843         * sysdeps/x86_64/fpu/w_expf.c: New file.
3845 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3847         * math/Versions (logf): New libm symbol at GLIBC_2.27.
3848         (log2f): Likewise.
3849         (powf): Likewise.
3850         * math/w_log2f.c: New file.
3851         * math/w_logf.c: New file.
3852         * math/w_powf.c: New file.
3853         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
3854         * math/w_logf_compat.c (__logf_compat): Likewise.
3855         * math/w_powf_compat.c (__powf_compat): Likewise.
3856         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
3857         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3858         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3859         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3860         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3861         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3862         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3863         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3864         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3865         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3866         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3867         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3868         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3869         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3870         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3872         Likewise.
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3874         Likewise.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3876         Likewise.
3877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3878         Likewise.
3879         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3880         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3881         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3882         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3883         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3885         Likewise.
3886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3887         Likewise.
3888         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3889         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3890         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3892 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3894         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3895         (sysdep_routines): Add memrchr_power8.
3896         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3897         (memrchr): Add __memrchr_power8 to list of memrchr functions.
3898         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
3899         New file.
3900         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3901         (memrchr): Add __memrchr_power8 to ifunc list.
3902         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
3904 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3906         [BZ #18822]
3907         * sysdeps/unix/sysv/linux/posix_fadvise64.c
3908         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
3909         libc_hidden_def.
3910         * sysdeps/unix/sysv/linux/posix_fallocate64.c
3911         (__posix_fallocate64_l64): Likewise.
3913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3915         [BZ #18822]
3916         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3917         (__sched_setaffinity_new): Add libc_hidden_proto and
3918         libc_hidden_def.
3920 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3922         [BZ #18822]
3923         * include/glob.h (__glob64): Add libc_hidden_proto.
3924         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
3925         libc_hidden_def.
3927 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3929         [BZ #18822]
3930         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3931         attribute_hidden.
3933 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3935         [BZ #18822]
3936         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3938 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3940         [BZ #18822]
3941         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3942         libc_hidden_def.
3944 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3946         [BZ #18822]
3947         * csu/version.c (__libc_print_version): Add attribute_hidden.
3949 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3951         [BZ #18822]
3952         * include/libc-internal.h (__init_misc): Add attribute_hidden.
3954 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3956         [BZ #18822]
3957         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
3959 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3961         [BZ #18822]
3962         * nscd/nscd_helper.c (__nis_hash): New prototype.
3964 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3966         [BZ #18822]
3967         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
3968         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
3969         libc_hidden_def.
3970         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
3971         * termios/tcgetattr.c (__tcgetattr): Likewise.
3973 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3975         [BZ #18822]
3976         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
3977         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
3978         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
3979         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
3980         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
3982 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3984         [BZ #18822]
3985         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
3987 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3989         [BZ #18822]
3990         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
3991         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
3993 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3995         [BZ #18822]
3996         * intl/hash-string.h (__hash_string): Add attribute_hidden.
3998 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4000         [BZ #18822]
4001         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4002         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4004 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4006         [BZ #18822]
4007         * include/ifreq.h: New file.
4008         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4009         (__ifreq): Likewise.
4010         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4011         (__ifreq): Likewise.
4013 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4015         [BZ #18822]
4016         * include/idna.h: New file.
4017         * inet/getnameinfo.c: Include <idna.h> instead of
4018         <libidn/idna.h>.
4019         (__idna_to_unicode_lzlz): Removed.
4020         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4021         <libidn/idna.h>.
4022         (__idna_to_ascii_lz): Removed.
4023         (__idna_to_unicode_lzlz): Likewise.
4025 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4027         [BZ #18822]
4028         * include/plural-exp.h: New file.
4029         * intl/plural-exp.c: Include <plural-exp.h> instead of
4030         "plural-exp.h".
4032 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4034         [BZ #18822]
4035         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4036         "getsourcefilter.h".
4037         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4038         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4039         "getsourcefilter.h".
4040         (__get_sol): Removed.
4042 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4044         [BZ #18822]
4045         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4046         to ...
4047         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4049 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4051         [BZ #18822]
4052         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4053         attribute_hidden.
4055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4057         [BZ #18822]
4058         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4060 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4062         [BZ #18822]
4063         * include/search.h (__tdestroy): Add libc_hidden_proto.
4064         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4066 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4068         [BZ #18822]
4069         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4071 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4073         [BZ #18822]
4074         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4075         attribute_hidden.
4077 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4079         [BZ #18822]
4080         * include/signal.h (__kill): Add libc_hidden_proto.
4081         (__sigblock): Likewise.
4082         (__sigprocmask): Likewise.
4083         (__sigaltstack): Likewise.
4084         * signal/kill.c (__kill): Add libc_hidden_def.
4085         * signal/sigblock.c (__sigblock): Likewise.
4086         * signal/sigprocmask.c (__sigprocmask): Likewise.
4087         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4088         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4089         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4090         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4091         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4092         Likewise.
4093         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4094         Likewise.
4095         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4096         (__sigprocmask): Likewise.
4097         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4098         Likewise.
4099         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4100         (__sigprocmask): Likewise.
4101         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4102         Likewise.
4104 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4106         [BZ #18822]
4107         * include/string.h (__strsep): Add libc_hidden_proto.
4108         * string/strsep.c (__strsep): Add libc_hidden_def.
4110 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4112         [BZ #18822]
4113         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4114         attribute_hidden.
4115         (__spawni): Likewise.
4117 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4119         [BZ #18822]
4120         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4121         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4122         libc_hidden_def.
4124 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4126         [BZ #18822]
4127         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4129 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4131         [BZ #18822]
4132         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4133         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4134         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4135         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4136         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4137         Likewise.
4138         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4139         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4141 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4143         [BZ #18822]
4144         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4145         (__dcigettext): Likewise.
4147 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4149         [BZ #18822]
4150         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4151         libc_hidden_proto.
4152         (__get_nprocs): Likewise.
4153         (__get_phys_pages): Likewise.
4154         (__get_avphys_pages): Likewise.
4155         (__get_child_max): Add attribute_hidden.
4156         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4157         (__get_nprocs): Likewise.
4158         (__get_phys_pages): Likewise.
4159         (__get_avphys_pages): Likewise.
4160         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4161         libc_hidden_def.
4162         (__get_nprocs): Likewise.
4163         (__get_phys_pages): Likewise.
4164         (__get_avphys_pages): Likewise.
4165         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4166         libc_hidden_def.
4167         (__get_nprocs_conf): Likewise.
4168         (__get_phys_pages): Likewise.
4169         (__get_avphys_pages): Likewise.
4171 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4173         [BZ #18822]
4174         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4175         attribute_hidden.
4176         (__netlink_close): Likewise.
4177         (__netlink_free_handle): Likewise.
4178         (__netlink_request): Likewise.
4180 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4182         [BZ #18822]
4183         * include/rpc/rpc.h (__rpc_thread_variables): Add
4184         attribute_hidden.
4185         (__rpc_thread_svc_cleanup): Likewise.
4186         (__rpc_thread_clnt_cleanup): Likewise.
4187         (__rpc_thread_key_cleanup): Likewise.
4189 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4191         [BZ #18822]
4192         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4193         (__writev): Likewise.
4194         * misc/readv.c (__readv): Add libc_hidden_def.
4195         * misc/writev.c (__writev): Likewise.
4196         * sysdeps/posix/readv.c (__readv): Likewise.
4197         * sysdeps/posix/writev.c (__writev): Likewise.
4198         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4199         (__readv): Likewise.
4200         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4201         (__writev): Likewise.
4203 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4205         [BZ #18822]
4206         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4207         (__regcomp): Add libc_hidden_proto.
4208         (__regexec): Likewise.
4209         (__regfree): Likewise.
4210         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4211         (__regfree): Likewise.
4212         * posix/regexec.c (__regexec): Likewise.
4214 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4216         [BZ #18822]
4217         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4218         (__getutent): Likewise.
4219         (__getutid): Likewise.
4220         (__getutline): Likewise.
4221         (__pututline): Likewise.
4222         (__getutent_r): Likewise.
4223         (__getutid_r): Likewise.
4224         (__getutline_r): Likewise.
4225         (__utmpname): Add attribute_hidden.
4226         (__setutent): Likewise.
4227         (__endutent): Likewise.
4228         * login/getutent.c (__getutent): Add libc_hidden_def.
4229         * login/getutent_r.c (__getutent_r): Likewise.
4230         (__pututline): Likewise.
4231         * login/getutid.c (__getutid): Likewise.
4232         * login/getutid_r.c (__getutid_r): Likewise.
4233         * login/getutline.c (__getutline): Likewise.
4234         * login/getutline_r.c (__getutline_r): Likewise.
4235         * login/updwtmp.c (__updwtmp): Likewise.
4237 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4239         [BZ #18822]
4240         * include/dirent.h (__opendir): Always add attribute_hidden.
4241         (__fdopendir): Likewise.
4242         (__closedir): Likewise.
4243         (__readdir): Likewise.
4244         (__readdir64): Add libc_hidden_proto.
4245         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4246         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4247         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4248         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4249         New alias.
4251 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4253         [BZ #18822]
4254         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4255         * include/netdb.h (__gethostbyaddr_r): Likewise.
4256         (__gethostbyname_r): Likewise.
4257         (__gethostbyname2_r): Likewise.
4258         (__getnetbyaddr_r): Likewise.
4259         (__getnetbyname_r): Likewise.
4260         (__getservbyname_r): Likewise.
4261         (__getservbyport_r): Likewise.
4262         (__getprotobyname_r): Likewise.
4263         (__getprotobynumber_r): Likewise.
4264         (__getnetgrent_r): Likewise.
4265         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4266         (__getrpcbynumber_r): Likewise.
4267         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4269 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4271         [BZ #18822]
4272         * include/stdio.h (__fcloseall): Add attribute_hidden.
4273         (__getline): Likewise.
4274         (__path_search): Likewise.
4275         (__gen_tempname): Likewise.
4276         (__libc_message): Likewise.
4277         (__flockfile): Likewise.
4278         (__funlockfile): Likewise.
4279         (__fxprintf): Likewise.
4280         (__fxprintf_nocancel): Likewise.
4282 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4284         [BZ #18822]
4285         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4286         (__sgetsgent_r): Likewise.
4288 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4290         [BZ #18822]
4291         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4292         (__statfs64): Likewise.
4293         (__fstatfs64): Likewise.
4294         * include/sys/statvfs.h (__statvfs64): Likewise.
4295         (__fstatvfs64): Likewise.
4296         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4297         (__statfs_filesize_max): Likewise.
4298         (__statfs_symlinks): Likewise.
4299         (__statfs_chown_restricted): Likewise.
4301 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4303         [BZ #18822]
4304         * include/time.h (__tzstring): Add attribute_hidden.
4305         (__tzfile_read): Likewise.
4306         (__tzfile_compute): Likewise.
4307         (__tzfile_default): Likewise.
4308         (__tzset_parse_tz): Likewise.
4309         (__offtime): Likewise.
4310         (__asctime_r): Likewise.
4311         (__tzset): Likewise.
4312         (__tz_convert): Likewise.
4313         (__getdate_r): Likewise.
4314         (__getclktck): Likewise.
4316 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4318         [BZ #18822]
4319         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4320         (__nscd_unmap): Likewise.
4321         (__nscd_cache_search): Likewise.
4322         (__nscd_get_nl_timestamp): Likewise.
4323         (__nscd_getpwnam_r): Likewise.
4324         (__nscd_getpwuid_r): Likewise.
4325         (__nscd_getgrnam_r): Likewise.
4326         (__nscd_getgrgid_r): Likewise.
4327         (__nscd_gethostbyname_r): Likewise.
4328         (__nscd_gethostbyname2_r): Likewise.
4329         (__nscd_gethostbyaddr_r): Likewise.
4330         (__nscd_getai): Likewise.
4331         (__nscd_getgrouplist): Likewise.
4332         (__nscd_getservbyname_r): Likewise.
4333         (__nscd_getservbyport_r): Likewise.
4334         (__nscd_innetgr): Likewise.
4335         (__nscd_setnetgrent): Likewise.
4337 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4339         [BZ #18822]
4340         * include/gmp.h: Declare internal functions only if _ISOMAC is
4341         undefined.
4342         (__mpn_extract_double): Add attribute_hidden.
4343         (__mpn_extract_long_double): Likewise.
4344         (__mpn_extract_float128): Likewise.
4345         (__mpn_construct_float): Likewise.
4346         (__mpn_construct_double): Likewise.
4347         (__mpn_construct_long_double): Likewise.
4348         (__mpn_construct_float128): Likewise.
4349         (mpn_add_1): Likewise.
4350         (mpn_addmul_1): Likewise.
4351         (mpn_add_n): Likewise.
4352         (mpn_cmp): Likewise.
4353         (mpn_divrem): Likewise.
4354         (mpn_lshift): Likewise.
4355         (mpn_mul): Likewise.
4356         (mpn_mul_1): Likewise.
4357         (mpn_rshift): Likewise.
4358         (mpn_sub_1): Likewise.
4359         (mpn_submul_1): Likewise.
4360         (mpn_sub_n): Likewise.
4362 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4364         [BZ #18822]
4365         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4366         (__wcscat): Likewise.
4367         (__btowc): Likewise.
4368         (__wcrtomb): Likewise.
4369         (__mbsrtowcs): Likewise.
4370         (__wcsrtombs): Likewise.
4371         (__mbsnrtowcs): Likewise.
4372         (__wcsnrtombs): Likewise.
4373         (__wcsncpy): Likewise.
4374         (__wcpncpy): Likewise.
4375         (__wmemcpy): Likewise.
4376         (__wmempcpy): Likewise.
4377         (__wmemmove): Likewise.
4378         (__wcschrnul): Likewise.
4379         (__vfwscanf): Likewise.
4380         (__vswprintf): Likewise.
4381         (__fwprintf): Likewise.
4382         (__vfwprintf): Likewise.
4384 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4386         [BZ #18822]
4387         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4388         (__getgrgid_r): Likewise.
4389         (__getgrnam_r): Likewise.
4390         * include/pwd.h (__getpwuid_r): Likewise.
4391         (__getpwnam_r): Likewise.
4392         (__fgetpwent_r): Likewise.
4393         * include/shadow.h (__getspnam_r): Likewise.
4394         (__sgetspent_r): Likewise.
4395         (__fgetspent_r): Likewise.
4397 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4399         [BZ #18822]
4400         * include/unistd.h (__access): Add attribute_hidden.
4401         (__lseek64): Likewise.
4402         (__libc_pread64): Likewise.
4403         (__pipe2): Likewise.
4404         (__sleep): Likewise.
4405         (__chdir): Likewise.
4406         (__fchdir): Likewise.
4407         (__getcwd): Likewise.
4408         (__rmdir): Likewise.
4409         (__execvpe): Likewise.
4410         (__execve): Likewise.
4411         (__setsid): Likewise.
4412         (__getuid): Likewise.
4413         (__geteuid): Likewise.
4414         (__getgid): Likewise.
4415         (__getegid): Likewise.
4416         (__getgroups): Likewise.
4417         (__group_member): Likewise.
4418         (__ttyname_r): Likewise.
4419         (__isatty): Likewise.
4420         (__readlink): Likewise.
4421         (__unlink): Likewise.
4422         (__gethostname): Likewise.
4423         (__profil): Likewise.
4424         (__getdtablesize): Likewise.
4425         (__brk): Likewise.
4426         (__ftruncate): Likewise.
4427         (__ftruncate64): Likewise.
4429 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4431         [BZ #18822]
4432         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4433         * argp/argp-fs-xinl.c: Likewise.
4434         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4435         * argp/argp-parse.c: Include <argp.h>.
4436         * argp/argp-xinl.c: Likewise.
4437         * include/argp-fmtstream.h: New file.
4438         * include/argp.h (__argp_error): Add attribute_hidden.
4439         (__argp_failure): Likewise.
4440         (__argp_input): Likewise.
4441         (__argp_state_help): Likewise.
4443 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4445         [BZ #18822]
4446         * include/wchar.h (____wcstof_l_internal): New prototype.
4447         (____wcstod_l_internal): Likewise.
4448         (____wcstold_l_internal): Likewise.
4449         (____wcstol_l_internal): Likewise.
4450         (____wcstoul_l_internal): Likewise.
4451         (____wcstoll_l_internal): Likewise.
4452         (____wcstoull_l_internal): Likewise.
4453         (____wcstof128_l_internal): Likewise.
4454         * sysdeps/ieee754/float128/wcstof128.c
4455         (____wcstof128_l_internal): Removed.
4456         * sysdeps/ieee754/float128/wcstof128_l.c
4457         (____wcstof128_l_internal): Likewise.
4458         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4459         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4460         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4461         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4462         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4463         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4464         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4465         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4466         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4467         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4469 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4471         [BZ #18822]
4472         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4473         instead of <sys/statvfs.h>.
4474         (__internal_statvfs): Removed.
4475         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4476         instead of <sys/statvfs.h>.
4477         (__internal_statvfs64): Removed.
4478         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4479         "internal_statvfs.h" instead of <sys/statvfs.h>.
4480         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4481         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4482         instead of <sys/statvfs.h>.
4483         (__internal_statvfs): Removed.
4484         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4485         instead of <sys/statvfs.h>.
4486         (__internal_statvfs64): Removed.
4488 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4490         [BZ #18822]
4491         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4492         (__gconv_close): Likewise.
4493         (__gconv): Likewise.
4494         (__gconv_find_transform): Likewise.
4495         (__gconv_lookup_cache): Likewise.
4496         (__gconv_compare_alias_cache): Likewise.
4497         (__gconv_load_cache): Likewise.
4498         (__gconv_get_path): Likewise.
4499         (__gconv_close_transform): Likewise.
4500         (__gconv_release_cache): Likewise.
4501         (__gconv_find_shlib): Likewise.
4502         (__gconv_release_shlib): Likewise.
4503         (__gconv_get_builtin_trans): Likewise.
4504         (__gconv_compare_alias): Likewise.
4505         * include/dlfcn.h (_dlerror_run): Likewise.
4506         * include/stdio.h (__fortify_fail_abort): Likewise.
4507         * include/time.h (__tz_compute): Likewise.
4508         (__strptime_internal): Likewise.
4509         * intl/gettextP.h (_nl_find_domain): Likewise.
4510         (_nl_load_domain): Likewise.
4511         (_nl_find_msg): Likewise.
4512         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4513         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4514         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4515         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4516         (__gai_find_request): Likewise.
4517         (__gai_remove_request): Likewise.
4518         (__gai_notify): Likewise.
4519         (__gai_notify_only): Likewise.
4520         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4521         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4522         (_dl_non_dynamic_init): Likewise.
4523         (_dl_aux_init): Likewise.
4524         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4525         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4526         Likewise.
4527         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4528         (__wcsmbs_clone_conv): Likewise.
4529         (__wcsmbs_named_conv): Likewise.
4531 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4533         [BZ #18822]
4534         * include/stdlib.h (__random): Add attribute_hidden.
4535         (__random_r): Likewise.
4536         (__srandom_r): Likewise.
4537         (__initstate_r): Likewise.
4538         (__setstate_r): Likewise.
4539         (__erand48_r): Likewise.
4540         (__nrand48_r): Likewise.
4541         (__jrand48_r): Likewise.
4542         (__srand48_r): Likewise.
4543         (__seed48_r): Likewise.
4544         (__lcong48_r): Likewise.
4545         (__drand48_iterate): Likewise.
4546         (__setenv): Likewise.
4547         (__unsetenv): Likewise.
4548         (__clearenv): Likewise.
4549         (__ptsname_r): Likewise.
4550         (__posix_openpt): Likewise.
4551         (__add_to_environ): Likewise.
4552         (__realpath): Add libc_hidden_proto.
4553         (__ecvt_r): Likewise.
4554         (__fcvt_r): Likewise.
4555         (__qecvt_r): Likewise.
4556         (__qfcvt_r): Likewise.
4557         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4558         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4560 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4562         [BZ #18822]
4563         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4564         * include/time.h (__mktime_internal): Likewise.
4565         * libio/iolibio.h (__fopen_internal): Likewise.
4567 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4569         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4570         pointer in frame.
4571         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4572         Correct offset used to restore PIC register.
4574 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4576         [BZ libc/22165]
4577         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4578         code to load address of __getcontext_ret when generating PIC code.
4580 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4582         * elf/Makefile (tests-static-internal): Add
4583         tst-tls1-static-non-pie.
4584         (LDFLAGS-tst-tls1-static-non-pie): New.
4585         * elf/tst-tls1-static-non-pie.c: New file.
4587 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4589         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4590         (asinh): Define using libm_alias_double.
4591         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4592         (cbrt): Define using libm_alias_double.
4593         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4594         <libm-alias-double.h>.
4595         (copysign): Define using libm_alias_double.
4596         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4597         (erf): Define using libm_alias_double.
4598         (erfc): Likewise.
4599         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4600         (expm1): Define using libm_alias_double.
4601         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4602         (fabs): Define using libm_alias_double.
4603         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4604         libm_alias_double.
4605         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4606         <libm-alias-double.h>.
4607         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4608         libm_alias_double.
4609         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4610         <libm-alias-double.h>.
4611         (getpayload): Define using libm_alias_double.
4612         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4613         <libm-alias-double.h>.
4614         (llrint): Define using libm_alias_double.
4615         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4616         (lrint): Define using libm_alias_double.
4617         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4618         <libm-alias-double.h>.
4619         (nextup): Define using libm_alias_double.
4620         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4621         <libm-alias-double.h>.
4622         (roundeven): Define using libm_alias_double.
4623         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4624         libm_alias_double.
4625         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4626         <libm-alias-double.h>.
4627         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4628         using libm_alias_double.
4629         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4630         (cos): Define using libm_alias_double.
4631         (sin): Likewise.
4632         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4633         <libm-alias-double.h>.
4634         (sincos): Define using libm_alias_double.
4635         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4636         (tanh): Define using libm_alias_double.
4637         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4638         <libm-alias-double.h>.
4639         (totalorder): Define using libm_alias_double.
4640         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4641         <libm-alias-double.h>.
4642         (totalordermag): Define using libm_alias_double.
4643         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4644         libm_alias_double.
4645         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4646         libm_alias_double.
4647         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4648         <libm-alias-double.h>.
4649         (getpayload): Define using libm_alias_double.
4650         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4651         <libm-alias-double.h>.
4652         (roundeven): Define using libm_alias_double.
4653         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4654         <libm-alias-double.h>.
4655         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4656         <libm-alias-double.h>.
4657         (totalorder): Define using libm_alias_double.
4658         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4659         <libm-alias-double.h>.
4660         (totalordermag): Define using libm_alias_double.
4661         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4662         libc compat symbol here.
4663         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4664         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4665         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4666         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4667         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4668         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4669         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4670         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4671         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4672         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4674 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4676         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4677         _dl_relocate_static_pie instead of _dl_start to compute load
4678         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4679         static executable.
4681 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4683         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4684         _DYNAMIC is undefined for static executable.
4686 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4688         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4690 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4692         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4694 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4696         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4697         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4698         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4699         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4700         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4701         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4702         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4703         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4704         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4705         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4706         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4707         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4708         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4709         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4710         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4711         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4712         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4714 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4716         * math/bits/cmathcalls.h (cimag): Remove inline.
4717         (creal): Remove inline.
4718         (conj): Remove inline.
4720 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4722         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4723         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4724         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4725         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4726         (issignalingf_inline): Likewise.
4727         (POWF_LOG2_TABLE_BITS): Likewise.
4728         (POWF_LOG2_POLY_ORDER): Likewise.
4729         (POWF_SCALE_BITS): Likewise.
4730         (POWF_SCALE): Likewise.
4731         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4732         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4733         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4735 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4737         * math/Makefile (type-float-routines): Add e_log2f_data.
4738         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4739         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4740         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4741         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4742         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4743         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4744         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4746 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4748         * math/Makefile (type-float-routines): Add e_logf_data.
4749         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4750         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4751         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4752         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4753         * sysdeps/i386/fpu/e_logf_data.c: New file.
4754         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4755         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4757 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4759         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4760         undefined _DYNAMIC in PIE libc.a.
4761         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4762         Likewse.
4764 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4766         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4767         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4768         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4769         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4770         (__signbit): Remove.
4771         (__signbitl): Remove.
4772         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4773         (__signbit): Remove.
4774         (__signbitl): Remove.
4775         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4776         (__signbit): Remove.
4777         (__signbitl): Remove.
4778         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4779         (__signbit): Remove.
4780         (__signbitl): Remove.
4781         * sysdeps/tile/bits/mathinline.h: Delete file.
4782         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4783         (__signbit): Remove.
4784         (__signbitl): Remove.
4786 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4788         * math/math.h: Improve handling of C99 isgreater macros.
4789         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4790         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4791         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4792         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4793         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4795 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4797         * sysdeps/aarch64/libm-test-ulps: Update.
4799 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4801         [BZ #22225]
4802         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4803         math_opt_barrier on argument when doing arithmetic on it.
4804         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4805         Likewise.  Use math_force_eval not math_opt_barrier after
4806         arithmetic.
4807         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4808         math_opt_barrier on argument when doing arithmetic on it.
4809         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4810         Likewise.
4812 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4814         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4815         libc_hidden_def.
4816         (__freeifaddrs): Likewise.
4818 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4820         * include/dirent.h (__dirfd): New declaration.
4821         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4822         alias.
4823         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4824         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4825         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4826         * include/unistd.h (__revoke): New declaration.
4827         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4828         alias.
4829         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4830         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4831         revoke.
4832         * include/dirent.h (__seekdir): New declaration.
4833         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
4834         redefine as weak alias.
4835         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
4836         of seekdir.
4837         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
4838         and use libc_hidden_def on them.
4839         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
4840         them.
4841         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
4842         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
4843         instead of getifaddrs and freeifaddrs.
4845 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4847         [BZ #18822]
4848         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
4849         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
4850         (__dso_handle): Remove declaration.
4851         * dlfcn/tstatexit.c (__dso_handle): Removed.
4852         (main): Don't check __dso_handle.
4853         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
4854         (main): Don't check __dso_handle.
4855         * include/dso_handle.h: New file.
4856         * malloc/mtrace.c: Include <dso_handle.h>.
4857         (mtrace): Pass __dso_handle directly.
4858         * nptl/pthread_atfork.c: Include <dso_handle.h>.
4859         (__dso_handle): Remove declaration.
4860         (__pthread_atfork): Pass __dso_handle directly.
4861         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
4862         (__dso_handle): Removed.
4863         * posix/wordexp-test.c: Include <dso_handle.h>.
4864         (__dso_handle): Remove declaration.
4865         (__app_register_atfork): Pass __dso_handle directly.
4866         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
4867         (__dso_handle): Remove declaration.
4868         (at_quick_exit): Pass __dso_handle directly.
4869         * stdlib/atexit.c: Include <dso_handle.h>.
4870         (__dso_handle): Remove declaration.
4871         (atexit): Pass __dso_handle directly.
4872         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
4873         (__dso_handle): Removed.
4875 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4877         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
4878         using VDSO.
4880 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
4882         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
4883         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
4884         values to correct default value for given type.
4886 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4888         [BZ #22101]
4889         * elf/Makefile (tests): Add tst-debug1.
4890         ($(objpfx)tst-debug1): New.
4891         ($(objpfx)tst-debug1.out): Likewise.
4892         ($(objpfx)tst-debug1mod1.so): Likewise.
4893         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
4894         with p_filesz == 0.
4895         * elf/tst-debug1.c: New file.
4897 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4899         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
4900         Define using __ifunc.
4902 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4904         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
4905         exp2f() values.
4907 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4909         [BZ #22156]
4910         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
4912 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4914         * resolv/Makefile (tests-internal): Fix typo in comment.
4916 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4918         * resolv/nss_dns/dns-host.c: Fix typo in comment.
4920 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4922         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
4923         Use an union instead of a max_align_t array for __space,
4924         so that __space is the same size on all platforms.
4925         * malloc/scratch_buffer_grow_preserve.c
4926         (__libc_scratch_buffer_grow_preserve): Likewise.
4928         [BZ #22183]
4929         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4930         version to 2.
4931         * posix/Makefile (routines): Add glob-lstat-compat and
4932         glob64-lstat-compat.
4933         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4934         * posix/glob-lstat-compat.c: New file.
4935         * posix/glob64-lstat-compat.c: Likewise.
4936         * posix/tst-glob_lstat_compat.c: Likewise.
4937         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4938         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4939         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4940         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4941         Likewise.
4942         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4943         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4944         * posix/glob.c (glob_lstat): New function.
4945         (glob): Rename to __glob and add versioned symbol to 2.27.
4946         (glob_in_dir): Use glob_lstat.
4947         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
4948         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4949         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
4950         2.27.
4951         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
4952         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
4953         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
4954         gl_lstat on glob call.
4955         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
4956         and glob64 symbols.
4957         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4958         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4959         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4960         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4961         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4962         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4963         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4964         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4965         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4966         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4967         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4968         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4970         Likewise.
4971         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
4972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4973         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4974         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4975         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4976         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4977         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4980         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4981         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4982         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4984 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4986         * configure.ac (AS): Require binutils 2.25 or later.
4987         * configure: Regenerated.
4989 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4991         [BZ #22207]
4992         * stdlib/test-atexit-race-common.c (do_test): Minimize required
4993         VM size.
4995 2017-09-25  DJ Delorie  <dj@redhat.com>
4997         [BZ #22161]
4998         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
4999         resetting timeout.
5001 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5003         * sysdeps/ieee754/dbl-64/sincos32.h
5004         [SINCCOS32_H]: Remove define.
5005         [SINCOS32_H]: Define.
5007 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5009         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5010         (exp2f): Likewise.
5011         * math/w_exp2f.c: New file.
5012         * math/w_expf.c: New file.
5013         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5014         * math/w_expf_compat.c (__expf_compat): Likewise.
5015         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5016         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5017         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5018         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5019         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5020         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5021         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5022         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5023         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5024         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5025         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5026         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5027         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5028         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5030         Likewise.
5031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5032         Likewise.
5033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5034         Likewise.
5035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5036         Likewise.
5037         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5038         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5039         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5040         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5041         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5042         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5043         Likewise.
5044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5045         Likewise.
5046         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5047         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5048         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5050 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5052         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5053         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5054         (roundtoint, converttoint): Likewise.
5055         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5056         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5057         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5058         * sysdeps/ieee754/flt-32/math_config.h: New file.
5059         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5060         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5061         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5062         * sysdeps/i386/fpu/math_errf.c: New file.
5063         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5064         * sysdeps/ia64/fpu/math_errf.c: New file.
5065         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5066         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5068 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5070         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5071         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5072         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5073         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5074         to make sure that these symbols are defined.
5075         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5076         of <limits.h>
5077         (__need_NULL): Do not define.
5078         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5079         alignment.
5080         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5081         CMGROUP_MAX, cmsgcred): Do not define.
5082         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5083         NULL.
5084         * bits/socket.h: Likewise.
5085         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5086         __gettimeofday instead of gettimeofday.
5087         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5088         instead of settimeofday.
5090 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5092         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5093         (asinhf): Define using libm_alias_float.
5094         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5095         (atanf): Define using libm_alias_float.
5096         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5097         (cbrtf): Define using libm_alias_float.
5098         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5099         (ceilf): Define using libm_alias_float.
5100         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5101         <libm-alias-float.h>.
5102         (copysignf): Define using libm_alias_float.
5103         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5104         (cosf): Define using libm_alias_float.
5105         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5106         (erff): Define using libm_alias_float.
5107         (erfcf): Likewise.
5108         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5109         (expm1f): Define using libm_alias_float.
5110         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5111         (fabsf): Define using libm_alias_float.
5112         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5113         (floorf): Define using libm_alias_float.
5114         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5115         (frexpf): Define using libm_alias_float.
5116         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5117         libm_alias_float.
5118         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5119         <libm-alias-float.h>.
5120         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5121         libm_alias_float.
5122         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5123         <libm-alias-float.h>.
5124         (getpayloadf): Define using libm_alias_float.
5125         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5126         <libm-alias-float.h>.
5127         (llrintf): Define using libm_alias_float.
5128         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5129         <libm-alias-float.h>.
5130         (llroundf): Define using libm_alias_float.
5131         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5132         (logbf): Define using libm_alias_float.
5133         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5134         (lrintf): Define using libm_alias_float.
5135         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5136         (lroundf): Define using libm_alias_float.
5137         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5138         (modff): Define using libm_alias_float.
5139         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5140         <libm-alias-float.h>.
5141         (nearbyintf): Define using libm_alias_float.
5142         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5143         <libm-alias-float.h>.
5144         (nextafterf): Define using libm_alias_float.
5145         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5146         <libm-alias-float.h>.
5147         (nextupf): Define using libm_alias_float.
5148         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5149         <libm-alias-float.h>.
5150         (remquof): Define using libm_alias_float.
5151         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5152         (rintf): Define using libm_alias_float.
5153         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5154         <libm-alias-float.h>.
5155         (roundevenf): Define using libm_alias_float.
5156         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5157         (roundf): Define using libm_alias_float.
5158         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5159         using libm_alias_float.
5160         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5161         <libm-alias-float.h>.
5162         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5163         Define using libm_alias_float.
5164         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5165         <libm-alias-float.h>.
5166         (sincosf): Define using libm_alias_float.
5167         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5168         (sinf): Define using libm_alias_float.
5169         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5170         (tanf): Define using libm_alias_float.
5171         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5172         (tanhf): Define using libm_alias_float.
5173         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5174         <libm-alias-float.h>.
5175         (totalorderf): Define using libm_alias_float.
5176         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5177         <libm-alias-float.h>.
5178         (totalordermagf): Define using libm_alias_float.
5179         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5180         (truncf): Define using libm_alias_float.
5181         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5182         libm_alias_float.
5183         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5184         libm_alias_float.
5186 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5188         [BZ #22146]
5189         math/math.h: Let fpclassify use the builtin in C++ mode, even
5190         when optimazing for size.
5192 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5194         * csu/Makefile (generated): Do not add version-info.h.
5195         (before-compile): Likewise.
5196         (all-Banner-files): Remove variable.
5197         ($(objpfx)version-info.h): Remove rule.
5198         * csu/version.c (banner): Do not include "version-info.h".
5199         * libidn/Banner: Remove.
5200         * manual/contrib.texi (Simon Josefsson): New entry.
5202 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5204         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5205         Remove conditionals on LDBL_MANT_DIG.
5206         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5207         (__ieee754_lgammal_r): Likewise.
5209 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5211         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5212         _Float128 and L().
5213         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5214         _Float128 and L(). Replace _Float128 with long double and L(x)
5215         with xL, throughout the file.
5216         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5217         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5218         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5219         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5221 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5223         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5224         sysdeps/ieee754/ldbl-128ibm.
5225         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5226         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5227         of including it.  Keep _Float128 and L() intact.  These will be
5228         reviewed by a separate patch.
5229         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5230         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5231         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5232         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5234 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5237         (__finitef128): Define to __redirect___finitef128.
5238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5239         (__isinff128): Define to __redirect___isinff128.
5240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5241         (__isnanf128): Define to __redirect___isnanf128.
5243 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5245         * sysdeps/powerpc/powerpc64le/Makefile
5246         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5247         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5249 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5250             Carlos O'Donell  <carlos@redhat.com>
5252         [BZ #22180]
5253         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5254         * stdlib/test-dlclose-exit-race.c: New file.
5255         * stdlib/test-dlclose-exit-race-helper.c: New file.
5256         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5258 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5260         * crypt/Banner: Remove file.
5261         * nptl/Banner: Likewise.
5262         * resolv/Banner: Likewise.
5263         * soft-fp/Banner: Likewise.
5264         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5265         ($(objpfx)version.d): Remove dependency on banner.h.
5266         ($(objpfx)version.os): Likewise.
5267         * nptl/version.c (banner): Do not include banner.h.
5268         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5269         Jelinek and BIND code.
5271 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5272             Carlos O'Donell  <carlos@redhat.com>
5274         * support/xdlfcn.h: New file.
5275         * support/xdlfcn.c: New file.
5276         * support/Makefile (libsupport-routines): Add xdlfcn.
5277         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5279 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5281         [BZ #20142]
5282         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5283         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5284         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5285         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5286         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5287         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5288         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5289         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5291 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5292             Ricky Zhou  <rickyz@google.com>
5293             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5295         [BZ #14333]
5296         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5297         Remove atomics.
5298         (__new_exitfn): Fail registration when we finished at_exit processing.
5299         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5300         * stdlib/on_exit.c (__on_exit): Likewise.
5301         * stdlib/exit.c (__exit_funcs_done): New variable.
5302         (__run_exit_handlers): Use __exit_funcs_lock.
5303         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5304         declarations.
5305         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5306         (test-cxa_atexit-race, test-on_exit-race): New tests.
5307         * stdlib/test-atexit-race-common.c: New file.
5308         * stdlib/test-atexit-race.c: New file.
5309         * stdlib/test-at_quick_exit-race.c: New file.
5310         * stdlib/test-cxa_atexit-race.c: New file.
5311         * stdlib/test-on_exit-race.c: New file.
5313 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5315         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5316         * benchtests/exp2f-inputs: Copy of expf-inputs.
5317         * benchtests/log2f-inputs: Copy of logf-inputs.
5319 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5321         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5322         Explicitly take address of first element of array arguments in
5323         call to INLINE_SYSCALL.
5325 2017-09-19  Andreas Schwab  <schwab@suse.de>
5327         [BZ #22134]
5328         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5329         execveat first.
5330         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5331         unimplemented.
5332         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5333         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5334         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5335         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5336         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5337         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5338         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5339         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5340         * posix/Makefile (tests): Add tst-fexecve.
5341         * posix/tst-fexecve.c: New file.
5343 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5345         * benchtests/Makefile: Add logf benchmark.
5346         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5348 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5350         * benchtests/Makefile: Add expf benchmark.
5351         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5353 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5355         * csu/Makefile: Add -funwind-tables to libc-start.c.
5356         * debug/Makefile: Add -funwind-tables to backtrace.c.
5357         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5358         * sysdeps/arm/Makefile: Likewise.
5359         * sysdeps/i386/Makefile: Likewise.
5360         * sysdeps/m68k/Makefile: Likewise.
5361         * sysdeps/mips/Makefile: Likewise.
5362         * sysdeps/nios2/Makefile: Likewise.
5363         * sysdeps/sh/Makefile: Likewise.
5364         * sysdeps/sparc/Makefile: Likewise.
5366 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5368         * benchtests/Makefile (bench-math): Add trunc and truncf.
5369         (CFLAGS-bench-trunc.c): New variable.
5370         (CFLAGS-bench-truncf.c): Likewise.
5371         * benchtests/trunc-inputs: New file.
5372         * benchtests/truncf-inputs: Likewise.
5374 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5376         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5378 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5380         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5381         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5382         redefine.
5383         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5384         (exp10l): Define as weak alias.
5385         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5386         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5387         and redefine.
5388         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5389         (remainderl): Define as weak alias.
5391         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5392         (fmal): Define using libm_alias_ldouble.
5393         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5394         (acoshl): Define using libm_alias_ldouble.
5395         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5396         (acosl): Define using libm_alias_ldouble.
5397         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5398         (asinl): Define using libm_alias_ldouble.
5399         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5400         (atan2l): Define using libm_alias_ldouble.
5401         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5402         (atanhl): Define using libm_alias_ldouble.
5403         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5404         (coshl): Define using libm_alias_ldouble.
5405         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5406         (exp10l): Define using libm_alias_ldouble.
5407         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5408         (exp2l): Define using libm_alias_ldouble.
5409         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5410         (expl): Define using libm_alias_ldouble.
5411         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5412         (fmodl): Define using libm_alias_ldouble.
5413         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5414         (hypotl): Define using libm_alias_ldouble.
5415         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5416         (j0l): Define using libm_alias_ldouble.
5417         (y0l): Likewise.
5418         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5419         (j1l): Define using libm_alias_ldouble.
5420         (y1l): Likewise.
5421         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5422         (jnl): Define using libm_alias_ldouble.
5423         (ynl): Likewise.
5424         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5425         (log10l): Define using libm_alias_ldouble.
5426         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5427         (log2l): Define using libm_alias_ldouble.
5428         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5429         (logl): Define using libm_alias_ldouble.
5430         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5431         (powl): Define using libm_alias_ldouble.
5432         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5433         (remainderl): Define using libm_alias_ldouble.
5434         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5435         (sinhl): Define using libm_alias_ldouble.
5436         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5437         (sqrtl): Define using libm_alias_ldouble.
5438         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5439         (tgammal): Define using libm_alias_ldouble.
5440         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5441         (exp10l): Do not use long_double_symbol here.
5442         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5443         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5444         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5445         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5446         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5447         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5448         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5449         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5450         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5451         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5452         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5453         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5454         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5455         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5456         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5457         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5458         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5459         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5460         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5461         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5462         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5463         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5465 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5467         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5468         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5470 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5472         * io/read.c (read): Add libc_hidden_weak.
5473         * sysdeps/mach/hurd/read.c (read): Likewise.
5474         * io/write.c (write): Likewise.
5475         * sysdeps/mach/hurd/write.c (write): Likewise.
5476         * io/pread64.c (__pread64): Likewise.
5477         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5478         * posix/pread64.c (__pread64): Add libc_hidden_def.
5480 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5482         * benchtests/scripts/compare_strings.py: New option -g.
5483         (draw_graph): Print a message that a graph is being generated.
5484         (process_results): Generate graph only if -g is passed.
5485         (main): Process option -g.
5487         * benchtests/scripts/compare_strings.py (process_results):
5488         Better spacing for output.
5490         * benchtests/scripts/compare_strings.py: Use argparse.
5491         * benchtests/README: Document existence of compare_strings.py.
5493 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5495         * math/s_fma.c: Include <libm-alias-double.h>.
5496         (fma): Define using libm_alias_double.
5497         * math/s_nextafter.c: Include <libm-alias-double.h>.
5498         (nextafter): Define using libm_alias_double.
5499         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5500         (acos): Define using libm_alias_double.
5501         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5502         (aocsh): Define using libm_alias_double.
5503         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5504         (asin): Define using libm_alias_double.
5505         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5506         (atan2): Define using libm_alias_double.
5507         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5508         (atanh): Define using libm_alias_double.
5509         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5510         (cosh): Define using libm_alias_double.
5511         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5512         (exp10): Define using libm_alias_double.
5513         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5514         (exp2): Define using libm_alias_double.
5515         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5516         (exp): Define using libm_alias_double.
5517         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5518         (fmod): Define using libm_alias_double.
5519         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5520         (hypot): Define using libm_alias_double.
5521         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5522         (j0): Define using libm_alias_double.
5523         (y0): Likewise.
5524         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5525         (j1): Define using libm_alias_double.
5526         (y1): Likewise.
5527         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5528         (jn): Define using libm_alias_double.
5529         (yn): Likewise.
5530         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5531         (log10): Define using libm_alias_double.
5532         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5533         (log2): Define using libm_alias_double.
5534         * math/w_log_compat.c: Include <libm-alias-double.h>.
5535         (log): Define using libm_alias_double.
5536         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5537         (pow): Define using libm_alias_double.
5538         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5539         (remainder): Define using libm_alias_double.
5540         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5541         (sinh): Define using libm_alias_double.
5542         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5543         (sqrt): Define using libm_alias_double.
5544         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5545         (tgamma): Define using libm_alias_double.
5546         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5547         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5548         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5549         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5550         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5551         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5552         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5553         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5554         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5555         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5556         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5557         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5558         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5559         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5560         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5561         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5562         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5563         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5564         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5565         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5566         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5567         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5568         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5569         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5570         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5572         * math/e_acoshl.c: Remove.
5573         * math/e_acosl.c: Likewise.
5574         * math/e_asinl.c: Likewise.
5575         * math/e_atan2l.c: Likewise.
5576         * math/e_atanhl.c: Likewise.
5577         * math/e_coshl.c: Likewise.
5578         * math/e_expl.c: Likewise.
5579         * math/e_fmodl.c: Likewise.
5580         * math/e_gammal_r.c: Likewise.
5581         * math/e_hypotl.c: Likewise.
5582         * math/e_j0l.c: Likewise.
5583         * math/e_j1l.c: Likewise.
5584         * math/e_jnl.c: Likewise.
5585         * math/e_lgammal_r.c: Likewise.
5586         * math/e_log10l.c: Likewise.
5587         * math/e_log2l.c: Likewise.
5588         * math/e_logl.c: Likewise.
5589         * math/e_powl.c: Likewise.
5590         * math/e_rem_pio2l.c: Likewise.
5591         * math/e_sinhl.c: Likewise.
5592         * math/e_sqrtf128.c: Likewise.
5593         * math/e_sqrtl.c: Likewise.
5594         * math/k_cosl.c: Likewise.
5595         * math/k_sinl.c: Likewise.
5596         * math/k_tanl.c: Likewise.
5597         * math/s_asinhl.c: Likewise.
5598         * math/s_atanl.c: Likewise.
5599         * math/s_cbrtl.c: Likewise.
5600         * math/s_erfl.c: Likewise.
5601         * math/s_expm1l.c: Likewise.
5602         * math/s_log1pl.c: Likewise.
5603         * math/s_tanhl.c: Likewise.
5605 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5607         [BZ #21745]
5608         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5609         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5610         previous contents of sysdep_routines, but re-sorted..
5611         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5612         sysdep_calls.
5613         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5614         defined in sysdep_calls and replace by the respective m_* names.
5615         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5616         (compat_symbol): Undefine to avoid duplicated compat symbols in
5617         libc.
5619 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5621         * math/s_fmaf.c: Include <libm-alias-float.h>.
5622         (fmaf): Define using libm_alias_float.
5623         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5624         (acosf): Define using libm_alias_float.
5625         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5626         (acoshf): Define using libm_alias_float.
5627         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5628         (asinf): Define using libm_alias_float.
5629         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5630         (atan2f): Define using libm_alias_float.
5631         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5632         (atanhf): Define using libm_alias_float.
5633         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5634         (coshf): Define using libm_alias_float.
5635         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5636         (exp10f): Define using libm_alias_float.
5637         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5638         (fmodf): Define using libm_alias_float.
5639         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5640         (hypotf): Define using libm_alias_float.
5641         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5642         (j0f): Define using libm_alias_float.
5643         (y0f): Likewise.
5644         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5645         (j1f): Define using libm_alias_float.
5646         (y1f): Likewise.
5647         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5648         (jnf): Define using libm_alias_float.
5649         (ynf): Likewise.
5650         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5651         (log10f): Define using libm_alias_float.
5652         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5653         (log2f): Define using libm_alias_float.
5654         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5655         (logf): Define using libm_alias_float.
5656         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5657         (powf): Define using libm_alias_float.
5658         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5659         (remainderf): Define using libm_alias_float.
5660         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5661         (sinhf): Define using libm_alias_float.
5662         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5663         (sqrtf): Define using libm_alias_float.
5664         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5665         (tgammaf): Define using libm_alias_float.
5667 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5669         * include/math.h (roundeven): Change hidden_proto call to
5670         __roundeven.
5671         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5672         alias.
5673         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5674         (y0): Rename to __y0 and define as weak alias.
5675         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5676         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5677         alias.
5678         (y0f): Rename to __y0f and define as weak alias.
5679         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5680         alias.
5681         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5682         (y1): Rename to __y1 and define as weak alias.
5683         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5684         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5685         alias.
5686         (y1f): Rename to __y1f and define as weak alias.
5687         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5688         alias.
5689         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5690         (yn): Rename to __yn and define as weak alias.
5691         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5692         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5693         alias.
5694         (ynf): Rename to __ynf and define as weak alias.
5695         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5696         (fromfp): Define as weak alias.
5697         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5698         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5699         (fromfpx): Define as weak alias.
5700         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5701         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5702         __getpayload and define as weak alias.
5703         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5704         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5705         __roundeven and define as weak alias.
5706         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5707         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5708         __setpayload.
5709         (setpayload): Define as weak alias.
5710         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5711         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5712         __setpayloadsig.
5713         (setpayloadsig): Define as weak alias.
5714         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5715         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5716         __totalorder and define as weak alias.
5717         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5718         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5719         to __totalordermag and define as weak alias.
5720         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5721         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5722         (ufromfp): Define as weak alias.
5723         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5724         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5725         __ufromfpx.
5726         (ufromfpx): Define as weak alias.
5727         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5728         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5729         Rename to __getpayload and define as weak alias.
5730         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5731         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5732         Rename to __roundeven and define as weak alias.
5733         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5734         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5735         Rename to __totalorder and define as weak alias.
5736         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5737         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5738         (totalordermag): Rename to __totalordermag and define as weak
5739         alias.
5740         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5741         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5742         macro.
5743         (__roundevenl): Likewise.
5744         (__totalorderl): Likewise.
5745         (__totalordermagl): Likewise
5746         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5747         __fromfpf128.
5748         (fromfpf128): Define as weak alias.
5749         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5750         __fromfpxf128.
5751         (fromfpxf128): Define as weak alias.
5752         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5753         __setpayloadf128.
5754         (setpayloadf128): Define as weak alias.
5755         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5756         __setpayloadsigf128.
5757         (setpayloadsigf128): Define as weak alias.
5758         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5759         __ufromfpf128.
5760         (ufromfpf128): Define as weak alias.
5761         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5762         __ufromfpxf128.
5763         (ufromfpxf128): Define as weak alias.
5764         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5765         (fromfpf): Define as weak alias.
5766         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5767         __fromfpxf.
5768         (fromfpxf): Define as weak alias.
5769         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5770         __getpayloadf and define as weak alias.
5771         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5772         __roundevenf and define as weak alias.
5773         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5774         __setpayloadf.
5775         (setpayloadf): Define as weak alias.
5776         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5777         __setpayloadsigf.
5778         (setpayloadsigf): Define as weak alias.
5779         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5780         __totalorderf and define as weak alias.
5781         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5782         Rename to __totalordermagf and define as weak alias.
5783         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5784         __ufromfpf.
5785         (ufromfpf): Define as weak alias.
5786         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5787         __ufromfpxf.
5788         (ufromfpxf): Define as weak alias.
5789         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5790         __fromfpl.
5791         (fromfpl): Define as weak alias.
5792         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5793         __fromfpxl.
5794         (fromfpxl): Define as weak alias.
5795         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5796         to __getpayloadl and define as weak alias.
5797         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5798         __roundevenl and define as weak alias.
5799         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5800         __setpayloadl.
5801         (setpayloadl): Define as weak alias.
5802         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5803         __setpayloadsigl.
5804         (setpayloadsigl): Define as weak alias.
5805         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5806         to __totalorderl and define as weak alias.
5807         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5808         Rename to __totalordermagl and define as weak alias.
5809         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5810         __ufromfpl.
5811         (ufromfpl): Define as weak alias.
5812         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5813         __ufromfpxl.
5814         (ufromfpxl): Define as weak alias.
5815         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5816         __fromfpl.
5817         (fromfpl): Define as weak alias.
5818         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5819         __fromfpxl.
5820         (fromfpxl): Define as weak alias.
5821         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5822         Rename to __getpayloadl and define as weak alias.
5823         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5824         to __roundevenl and define as weak alias.  Call __roundeven
5825         instead of roundeven.
5826         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5827         __setpayloadl.
5828         (setpayloadl): Define as weak alias.
5829         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5830         __setpayloadsigl.
5831         (setpayloadsigl): Define as weak alias.
5832         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5833         Rename to __totalorderl and define as weak alias.
5834         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
5835         Rename to __totalordermagl and define as weak alias.
5836         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
5837         __ufromfpl.
5838         (ufromfpl): Define as weak alias.
5839         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
5840         __ufromfpxl.
5841         (ufromfpxl): Define as weak alias.
5842         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
5843         __fromfpl.
5844         (fromfpl): Define as weak alias.
5845         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
5846         __fromfpxl.
5847         (fromfpxl): Define as weak alias.
5848         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
5849         __getpayloadl and define as weak alias.
5850         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
5851         __roundevenl and define as weak alias.
5852         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
5853         __setpayloadl.
5854         (setpayloadl): Define as weak alias.
5855         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
5856         __setpayloadsigl.
5857         (setpayloadsigl): Define as weak alias.
5858         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
5859         __totalorderl and define as weak alias.
5860         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
5861         Rename to __totalordermagl and define as weak alias.
5862         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
5863         __ufromfpl.
5864         (ufromfpl): Define as weak alias.
5865         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
5866         __ufromfpxl.
5867         (ufromfpxl): Define as weak alias.
5869 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5871         * benchtests/bench-string.h (realloc_bufs): New function.
5872         (test_init): Call it.
5873         * benchtests/bench-memset-large.c (do_test): Likewise.
5874         * benchtests/bench-memset.c (do_test): Likewise.
5876         * benchtests/bench-memset-large.c: Print output in JSON
5877         format.
5878         * benchtests/bench-memset.c: Likewise.
5880 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5882         [BZ #21084]
5883         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
5884         * iconvdata/Makefile: Add IBM858.
5885         * iconvdata/gconv-modules: Likewise.
5886         * iconvdata/tst-tables.sh: Likewise.
5887         * iconvdata/ibm858.c: New file.
5888         * localedata/charmaps/IBM858: Likewise.
5890 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
5892         [BZ #22023]
5893         * locales/niu_NZ (LC_TIME): copy "niu_NU".
5894         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
5896 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5898         [BZ #22112]
5899         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
5900         and add tel_int_fmt.
5902 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5904         * sysdeps/generic/libm-alias-float128.h: New file.
5905         * sysdeps/generic/math-type-macros-float128.h: Include
5906         <libm-alias-float128.h>.
5907         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5909 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5911         * sysdeps/generic/libm-alias-ldouble.h: New file.
5912         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
5913         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
5914         * sysdeps/generic/math-type-macros-ldouble.h: Include
5915         <libm-alias-ldouble.h>.
5916         [!declare_mgen_alias] (declare_mgen_alias): Define to use
5917         libm_alias_ldouble.
5919 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5921         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
5922         * math/w_exp_compat.c: ... here.
5923         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
5924         * math/w_expf_compat.c: ... here.
5925         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
5926         * math/w_expl_compat.c: ... here.
5927         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
5928         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5929         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5930         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5932 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5934         * math/w_scalbln_template.c (strong_alias): Do not undefine and
5935         redefine.
5936         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5937         macro.
5938         (ldexpl): Only define as compat symbol for libc, not libm.
5939         (scalbnl): Define as compat symbol for libc here.
5940         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5941         define for [IS_IN (libc)].
5942         (__ldexpl_2): Remove alias.
5943         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5944         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
5945         name in long_double_symbol call.
5946         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
5947         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
5948         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
5949         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
5950         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
5951         Remove macro.
5952         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
5953         Define as compat symbol.
5955 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5957         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
5958         * sysdeps/unix/sysv/linux/alpha/Makefile
5959         [$(subdir) = csu] (sysdep_routines): Remove rule.
5961 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5963         * sysdeps/generic/libm-alias-double.h: New file.
5964         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
5965         * sysdeps/generic/math-type-macros-double.h: Include
5966         <libm-alias-double.h>.
5967         [declare_mgen_alias] (declare_mgen_alias): Define to use
5968         libm_alias_double.
5969         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
5970         (M_LIBM_NEED_COMPAT): Remove macro.
5971         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
5972         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
5973         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
5974         code.
5975         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5976         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5977         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5978         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5979         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5980         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5981         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5982         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5983         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5984         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5985         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5986         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5987         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5988         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5989         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5990         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5991         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5992         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5993         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5994         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5995         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5996         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5997         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5998         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5999         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6000         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6001         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6002         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6003         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6004         macro.
6005         (declare_mgen_alias): New macro.
6006         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6007         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6009         (M_LIBM_NEED_COMPAT): Remove macro.
6010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6011         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6012         <first-versions.h>.
6013         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6014         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6016 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6018         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6019         (declare_mgen_alias_2): Remove.
6020         * sysdeps/generic/math-type-macros-double.h
6021         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6022         Likewise.
6023         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6024         alias.
6025         (ldexp): Define with declare_mgen_alias.
6026         (scalbn): Likewise.
6028 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6030         * grp/initgroups.c: Include config.h.
6031         (DEFAULT_CONFIG): New macro.
6032         (internal_getgrouplist): Use DEFAULT_CONFIG.
6033         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6034         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6035         (DEFAULT_DEFCONFIG): New macro.
6036         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6037         * nss/grp-lookup.c: Include config.h
6038         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6039         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6040         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6041         * manual/nss.texi: Update default values section.
6043 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6045         [BZ #21967]
6046         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6047         New.
6048         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6049         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6050         Handle MathVec_Prefer_No_AVX512.
6051         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6052         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6053         is set.
6055 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6057         * posix/sched_primax.c (__sched_get_priority_max): Add
6058         libc_hidden_def.
6059         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6060         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6061         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6062         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6063         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6064         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6065         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6066         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6067         Add aliases.
6069 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6071         * sysdeps/generic/libm-alias-float.h: New file.
6072         * sysdeps/generic/math-type-macros-float.h: Include
6073         <libm-alias-float.h>.
6074         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6076 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6078         [BZ #22093]
6079         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6080         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6081         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6082         (HWCAP_IMPORTANT): Likewise.
6083         (HWCAP_X86_64): New enum.
6084         (HWCAP_X86_AVX512_1): Updated.
6085         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6086         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6087         (modules-names): Add x86_64/tst-x86_64mod-1.
6088         (LDFLAGS-tst-x86_64mod-1.so): New.
6089         ($(objpfx)tst-x86_64-1): Likewise.
6090         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6091         (tst-x86_64-1-clean): Likewise.
6092         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6093         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6095 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6097         * po/sv.po: Update translations.
6098         * po/fr.po: Likewise.
6100 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6102         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6103         seconds.
6104         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6105         seconds.
6106         * elf/rtld-Rules: Fix $(error) use.
6108 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6110         [BZ #14925]
6111         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6112         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6113         * localedata/locales/bn_BD: “Bengali” was still used in some
6114         comments. Change it to “Bangla”.
6116 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6118         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6120 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6122         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6123         thunderx2t99p1 to list of cpu names.
6124         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6125         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6127 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6129         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6130         Use strcmp instead of tunable_is_name.
6132 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6134         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6135         (F_GET_RW_HINT): New macro.
6136         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6137         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6138         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6139         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6140         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6141         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6142         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6143         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6144         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6146         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6147         (F_ADD_SEALS): New macro.
6148         [__USE_GNU] (F_GET_SEALS): Likewise.
6149         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6150         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6151         [__USE_GNU] (F_SEAL_GROW): Likewise.
6152         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6154 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6156         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6157         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6158         * posix/glob_internal.h (__glob_pattern_type):
6159         * posix/glob.c (glob):
6160         * posix/glob_pattern_p.c (__glob_pattern_p):
6161         Use them.
6163         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6164         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6165         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6166         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6167         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6169         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6170         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6171         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6172         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6173         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6174         * sysdeps/wordsize-64/glob.c: Likewise.
6175         * sysdeps/wordsize-64/glob64.c: Likewise.
6176         * sysdeps/wordsize-64/globfree.c: Likewise.
6177         * sysdeps/wordsize-64/globfree64.c: Likewise.
6178         * sysdeps/unix/sysv/linux/glob.c: New file.
6179         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6180         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6181         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6182         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6183         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6184         adds !GLOB_NO_OLD_VERSION as an extra condition.
6185         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6186         using relative path instead of absolute one.
6187         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6188         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6189         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6190         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6191         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6192         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6194         [BZ #1062]
6195         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6196         (glob): Use the same scratch buffer for both getlogin_r and
6197         getpwnam_r.  Don’t require preallocation of the login name.  This
6198         simplifies storage allocation, and corrects the handling of
6199         long login names.
6201         [BZ #1062]
6202         * posix/glob.c (glob): Port recent patches to platforms
6203         lacking getpwnam_r.
6204         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6205         returns an error number rather than setting errno.
6207         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6208         instead of GCC extension.
6209         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6210         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6211         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6213         [BZ #866]
6214         [BZ #1062]
6215         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6216         * posix/bug-glob1.c: Remove file.
6217         * posix/tst-glob_symlinks.c: New file.
6218         * posix/glob.c (__lstat64): New macro.
6219         (is_dir): New function.
6220         (glob, glob_in_dir): Match symlinks even if they are dangling.
6221         (link_stat, link_exists_p): Remove.  All uses removed.
6223         [BZ #1062]
6224         [BZ #19971]
6225         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6226         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6227         All uses removed.
6229         [BZ #1062]
6230         CVE-2017-15671
6231         * posix/Makefile (routines): Add globfree, globfree64, and
6232         glob_pattern_p.
6233         * posix/flexmember.h: New file.
6234         * posix/glob_internal.h: Likewise.
6235         * posix/glob_pattern_p.c: Likewise.
6236         * posix/globfree.c: Likewise.
6237         * posix/globfree64.c: Likewise.
6238         * sysdeps/gnu/globfree64.c: Likewise.
6239         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6240         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6241         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6242         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6243         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6244         * sysdeps/wordsize-64/globfree.c: Likewise.
6245         * sysdeps/wordsize-64/globfree64.c: Likewise.
6246         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6247         [NDEBUG): Remove comments.
6248         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6249         (dirent_type): New type.  Use uint_fast8_t not
6250         uint8_t, as C99 does not require uint8_t.
6251         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6252         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6253         unless it is needed; this saves a byte on platforms lacking d_ino.
6254         (readdir_result_type, readdir_result_skip_entry):
6255         New functions, replacing ...
6256         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6257          these functions, which were removed.  This makes the callers
6258         easier to read.  All callers changed.
6259         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6260         (size_add_wrapv, glob_use_alloca): New static functions.
6261         (glob, glob_in_dir): Check for size_t overflow in several places,
6262         and fix some size_t checks that were not quite right.
6263         Remove old code using SHELL since Bash no longer
6264         uses this.
6265         (glob, prefix_array): Separate MS code better.
6266         (glob_in_dir): Remove old Amiga and VMS code.
6267         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6268         separate files.
6269         (glob_in_dir): Do not rely on undefined behavior in accessing
6270         struct members beyond their bounds.  Use a flexible array member
6271         instead
6272         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6273         0/1.  Caller changed.
6274         (glob): Fix memory leaks.
6275         * posix/glob64 (globfree64): Move to separate file.
6276         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6277         (globfree64): Remove hidden alias.
6278         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6279         oldglob.
6280         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6281         separate file.
6282         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6283         define.
6284         Move compat code to separate file.
6285         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6286         separate file.
6288 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6290         * resolv/tst-resolv-qtypes.c (domain): Changed to
6291         "const char domain[] =".
6293 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6295         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6296         version to 3.1.6.
6298         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6299         (TCP_MD5SIG_EXT): Likewise.
6300         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6301         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6302         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6304         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6306 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6308         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6310 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6312         [BZ #22100]
6313         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6315 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6317         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6318         before assuming that the file is empty.  Avoid testing buffer content
6319         when nread == 0.
6321 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6323         [BZ #18858]
6324         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6325         Remove define.
6326         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6327         Likewise.
6328         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6329         Likewise.
6330         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6331         Likewise.
6332         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6333         Likewise.
6334         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6335         Likewise.
6336         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6337         Likewise.
6339 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6341         * malloc/dynarray_emplace_enlarge.c
6342         (__libc_dynarray_emplace_enlarge): Add missing else.
6344 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6346         [BZ #22096]
6347         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6348         case of failure to obtain the global conf object.
6350 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6352         [BZ #22095]
6353         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6354         dynarray allocation failure.
6356 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6358         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6359         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6360         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6361         New functions.
6362         (response): Call them.  Add 'p', '6' flag processing.
6363         (test_reverse): New function.
6364         (test_get2_any): Call it.
6365         (test_no_inet6): Add 'p' test.
6366         (test_inet6): Likewise.
6368 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6370         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6371         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6372         the QNAME.
6373         (test_gai): Adjust query names.  Add additional tests.
6374         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6375         test_get2.  Adjust query names.  Add additional tests.
6376         (test_no_inet6): New function, extracted from threadfunc.
6377         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6378         Add additional tests.
6380 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6382         [BZ #22070]
6383         * localedata/unicode-gen/utf8_gen.py: Set the width for
6384         characters with Prepended_Concatenation_Mark property to 1
6385         * localedata/charmaps/UTF-8: Updated using the improved script.
6387 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6389         [BZ #21750]
6390         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6391         use the range notation for all ranges of neighbouring characters
6392         with the same width.
6394 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6396         * sysdeps/generic/math-type-macros-double.h: Include
6397         <math-svid-compat.h>.
6398         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6399         * sysdeps/generic/math-type-macros-float.h: Include
6400         <math-svid-compat.h>.
6401         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6402         * sysdeps/generic/math-type-macros-ldouble.h: Include
6403         <math-svid-compat.h>.
6404         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6405         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6406         condition.
6407         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6408         * math/w_acosf_compat.c: Likewise.
6409         * math/w_acosh_compat.c: Likewise.
6410         * math/w_acoshf_compat.c: Likewise.
6411         * math/w_acoshl_compat.c: Likewise.
6412         * math/w_acosl_compat.c: Likewise.
6413         * math/w_asin_compat.c: Likewise.
6414         * math/w_asinf_compat.c: Likewise.
6415         * math/w_asinl_compat.c: Likewise.
6416         * math/w_atan2_compat.c: Likewise.
6417         * math/w_atan2f_compat.c: Likewise.
6418         * math/w_atan2l_compat.c: Likewise.
6419         * math/w_atanh_compat.c: Likewise.
6420         * math/w_atanhf_compat.c: Likewise.
6421         * math/w_atanhl_compat.c: Likewise.
6422         * math/w_cosh_compat.c: Likewise.
6423         * math/w_coshf_compat.c: Likewise.
6424         * math/w_coshl_compat.c: Likewise.
6425         * math/w_exp10_compat.c: Likewise.
6426         * math/w_exp10f_compat.c: Likewise.
6427         * math/w_exp10l_compat.c: Likewise.
6428         * math/w_exp2_compat.c: Likewise.
6429         * math/w_exp2f_compat.c: Likewise.
6430         * math/w_exp2l_compat.c: Likewise.
6431         * math/w_fmod_compat.c: Likewise.
6432         * math/w_fmodf_compat.c: Likewise.
6433         * math/w_fmodl_compat.c: Likewise.
6434         * math/w_hypot_compat.c: Likewise.
6435         * math/w_hypotf_compat.c: Likewise.
6436         * math/w_hypotl_compat.c: Likewise.
6437         * math/w_j0_compat.c: Likewise.
6438         * math/w_j0f_compat.c: Likewise.
6439         * math/w_j0l_compat.c: Likewise.
6440         * math/w_j1_compat.c: Likewise.
6441         * math/w_j1f_compat.c: Likewise.
6442         * math/w_j1l_compat.c: Likewise.
6443         * math/w_jn_compat.c: Likewise.
6444         * math/w_jnf_compat.c: Likewise.
6445         * math/w_jnl_compat.c: Likewise.
6446         * math/w_lgamma_r_compat.c: Likewise.
6447         * math/w_lgammaf_r_compat.c: Likewise.
6448         * math/w_lgammal_r_compat.c: Likewise.
6449         * math/w_log10_compat.c: Likewise.
6450         * math/w_log10f_compat.c: Likewise.
6451         * math/w_log10l_compat.c: Likewise.
6452         * math/w_log2_compat.c: Likewise.
6453         * math/w_log2f_compat.c: Likewise.
6454         * math/w_log2l_compat.c: Likewise.
6455         * math/w_log_compat.c: Likewise.
6456         * math/w_logf_compat.c: Likewise.
6457         * math/w_logl_compat.c: Likewise.
6458         * math/w_pow_compat.c: Likewise.
6459         * math/w_powf_compat.c: Likewise.
6460         * math/w_powl_compat.c: Likewise.
6461         * math/w_remainder_compat.c: Likewise.
6462         * math/w_remainderf_compat.c: Likewise.
6463         * math/w_remainderl_compat.c: Likewise.
6464         * math/w_sinh_compat.c: Likewise.
6465         * math/w_sinhf_compat.c: Likewise.
6466         * math/w_sinhl_compat.c: Likewise.
6467         * math/w_sqrt_compat.c: Likewise.
6468         * math/w_sqrtf_compat.c: Likewise.
6469         * math/w_sqrtl_compat.c: Likewise.
6470         * math/w_tgamma_compat.c: Likewise.
6471         * math/w_tgammaf_compat.c: Likewise.
6472         * math/w_tgammal_compat.c: Likewise.
6473         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6474         [LIBM_SVID_COMPAT].
6475         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6476         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6477         [LIBM_SVID_COMPAT].
6478         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6479         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6480         [LIBM_SVID_COMPAT].
6481         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6482         * sysdeps/i386/fpu/w_sqrt.c: New file.
6483         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6484         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6485         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6486         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6487         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6488         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6489         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6490         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6491         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6492         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6493         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6494         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6495         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6496         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6497         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6498         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6499         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6500         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6501         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6502         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6503         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6504         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6505         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6506         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6507         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6508         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6509         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6510         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6511         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6512         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6513         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6514         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6515         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6516         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6517         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6518         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6519         * sysdeps/ia64/fpu/w_log.c: Likewise.
6520         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6521         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6522         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6523         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6524         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6525         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6526         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6527         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6528         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6529         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6530         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6531         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6532         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6533         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6534         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6535         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6536         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6537         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6538         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6539         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6540         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6541         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6542         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6543         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6544         [LIBM_SVID_COMPAT].
6545         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6546         * sysdeps/ieee754/k_standard.c: Likewise.
6547         * sysdeps/ieee754/k_standardf.c: Likewise.
6548         * sysdeps/ieee754/k_standardl.c: Likewise.
6549         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6550         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6551         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6552         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6553         long_double_symbol call on [LIBM_SVID_COMPAT].
6554         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6555         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6556         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6557         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6558         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6559         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6560         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6561         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6562         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6563         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6564         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6565         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6566         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6567         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6568         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6569         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6570         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6571         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6572         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6573         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6574         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6575         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6577 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6579         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6580         * malloc/tst-mallocstate.c: Convert from test-skeleton
6581         to test-driver.  Ifdef code using TEST_COMPAT macro.
6582         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6583         * math/test-matherr.c: Likewise.
6585 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6587         [BZ #22086]
6588         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6589         comparing word with byte-swapped constant.
6591 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6593         [BZ #20498]
6594         * locale/iso-639.def: add Miskito.
6595         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6596         * localedata/locales/miq_NI: New file.
6598 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6600         [BZ #18822]
6601         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6602         (__mkdir): Likewise.
6603         * io/chmod.c (__chmod): Add libc_hidden_def.
6604         * io/mkdir.c (__mkdir): Likewise.
6605         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6606         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6607         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6608         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6610 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6612         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6613         version to 4.13.
6615         [BZ #22082]
6616         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6617         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6619 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6621         * math/math.h: Issue warning if log is defined.
6623 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6625         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6626         kernel version to 4.13.
6628 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6630         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6631         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6632         parameter.
6633         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6634         just <bits/types.h>.
6635         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6636         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6637         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6638         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6639         * misc/preadv2.c: Include <errno.h>.
6640         * misc/preadv64v2.c: Include <errno.h>.
6641         * misc/pwritev2.c: Include <errno.h>.
6642         * misc/pwritev64v2.c: Include <errno.h>.
6643         * sysdeps/posix/preadv2.c: Include <errno.h>.
6644         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6645         Fix <unistd.h> inclusion.
6646         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6647         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6648         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6649         __strtoul_internal): New functions.
6650         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6651         * sysdeps/posix/system.c: Include <sigsetops.h>.
6652         * sysdeps/mach/hurd/i386/Makefile
6653         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6654         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6655         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6656         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6657         __feraiseexcept_renamed to feraiseexcept instead of
6658         __GI_feraiseexcept.
6659         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6660         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6661         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6662         RWF_NOWAIT): Define to 0 if undefined already.
6663         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6664         boils down to 0.
6665         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6666         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6668 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6670         * manual/math.texi (pow10): Do not document.
6671         (pow10f): Likewise.
6672         (pow10l): Likewise.
6673         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6674         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6675         * math/libm-test-exp10.inc (pow10_test): Remove.
6676         (do_test): Do not call pow10.
6677         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6678         [NO_LONG_DOUBLE] (pow10l): Likewise.
6679         * math/w_exp10f_compat.c (pow10f): Likewise.
6680         * math/w_exp10l_compat.c (pow10l): Likewise.
6681         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6682         (pow10): Make into compat symbol.
6683         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6684         (pow10f): Make into compat symbol.
6685         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6686         (pow10l): Make into compat symbol.
6687         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6688         pow10.
6689         (CFLAGS-nldbl-pow10.c): Remove variable..
6690         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6691         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6692         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6693         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6694         Undefine and redefine.
6695         (pow10l): Make into compat symbol.
6696         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6697         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6698         * sysdeps/arm/libm-test-ulps: Likewise.
6699         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6700         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6701         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6702         * sysdeps/microblaze/libm-test-ulps: Likewise.
6703         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6704         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6705         * sysdeps/nios2/libm-test-ulps: Likewise.
6706         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6707         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6708         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6709         * sysdeps/sh/libm-test-ulps: Likewise.
6710         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6711         * sysdeps/tile/libm-test-ulps: Likewise.
6712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6714 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6716         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6718 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6720         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6721         "../ChangeLog.old/ChangeLog.8".
6722         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6723         "../ChangeLog.old/ChangeLog.14".
6725 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6727         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6728         Threads Library.
6730 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6732         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6734 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6736         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6737         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6739 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6741         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6742         32 atexit handlers.
6744 2017-09-01  Zack Weinberg  <zackw@panix.com>
6746         * math/math.h (HUGE_VAL): Improve commentary.
6748 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6749             Andreas Schwab  <schwab@suse.de>
6751         [BZ #21530]
6752         * include/stdio.h (__gen_tempfd): New function.
6753         * stdio-common/Makefile (routines): Add gentempfd.
6754         * stdio-common/gentempfd.c: New file.
6755         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6756         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6757         unnamed file first.
6759 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6761         [BZ #21915]
6762         [BZ #21922]
6763         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6764         result to determine success or failure, not the errno value.
6765         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6766         (tst-nss-files-hosts-erange): Link with -ldl.
6767         * nss/tst-nss-files-hosts-erange.c: New file.
6768         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6769         (do_test): Add NO_DATA tests.
6770         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6771         (do_test): Call it.
6773 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6775         [BZ #21922]
6776         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6777         coming from gethostbyname2_r.
6779 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6781         * support/namespace.h (struct support_chroot_configuration): Add
6782         hosts, host_conf.
6783         (struct support_chroot): Add path_hosts, path_host_conf.
6784         * support/support_chroot.c (write_file): New function.
6785         (support_chroot_create): Call it to process /etc/resolv.conf,
6786         /etc/hosts, /etc/host.conf.
6787         (support_chroot_free): Update.
6789 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6791         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6792         status indicates it is set.
6794 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6796         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6797         function lookup failures more reliable.
6799 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6801         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6802         (getcanonname): Likewise.
6803         (gaih_inet): Likewise.
6805 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6807         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6808         (getcanonname): Likewise.
6809         (gaih_inet): Likewise.
6811 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6812             Richard Henderson <rth@twiddle.net>
6814         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6815         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6816         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6817         (IREG_SIZE, OREG_SIZE): New macros.
6818         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6819         (IREG_SIZE, OREG_SIZE): New macros.
6820         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6821         (IREG_SIZE): New macro.
6822         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6823         (IREG_SIZE): New macro.
6824         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6825         New includes.
6826         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6827         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6828         (__CONCATX): Handle exceptions correctly on large values that may
6829         set FE_INVALID.
6830         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6831         Initialize if not already set.
6832         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6834 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6836         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
6837         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
6838         Likewise.
6839         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
6840         Likewise.
6841         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
6842         Likewise.
6843         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
6844         Likewise.
6845         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
6846         Likewise.
6847         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
6848         Likewise.
6849         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
6850         Likewise.
6851         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
6852         (NO_CANCELLATION): Likewise.
6853         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
6854         Likewise.
6855         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
6856         Likewise.
6857         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
6858         Likewise.
6859         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
6860         (NO_CANCELLATION): Likewise.
6861         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
6862         (NO_CANCELLATION): Likewise.
6863         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
6864         Likewise
6865         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
6866         Likewise.
6867         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
6868         Likewise.
6869         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
6870         Likewise.
6871         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
6872         hidden prototype.
6873         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
6874         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
6876 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6878         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
6879         in resolver call.
6881 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6883         * include/libc-symbols.h (internal_function): Remove.
6885 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6887         * stdlib/fmtmsg.c (internal_addseverity): Remove
6888         internal_function.
6890 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6892         * stdio-common/printf_fp.c (group_number): Remove
6893         internal_function.
6894         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6896 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6898         * posix/fnmatch.c (internal_function): Remove definition.
6899         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
6900         * posix/regcomp.c (peek_token, init_word_char)
6901         (duplicate_node_closure, fetch_token, peek_token)
6902         (peek_token_bracket, build_range_exp, build_collating_symbol):
6903         Likewise.
6904         * posix/regex_internal.c (re_string_construct_common)
6905         (create_ci_newstate, create_cd_newstate, re_string_allocate)
6906         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
6907         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
6908         (re_string_translate_buffer, re_string_reconstruct)
6909         (re_string_peek_byte_case, re_string_fetch_byte_case)
6910         (re_string_destruct, re_string_context_at, re_node_set_alloc)
6911         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
6912         (re_node_set_add_intersect, re_node_set_init_union)
6913         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
6914         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
6915         (re_dfa_add_node, calc_state_hash, re_acquire_state)
6916         (re_acquire_state_context): Likewise.
6917         * posix/regex_internal.h (internal_function): Remove definition.
6918         (re_string_realloc_buffers, build_wcs_buffer)
6919         (build_wcs_upper_buffer, build_upper_buffer)
6920         (re_string_translate_buffer, re_string_context_at)
6921         (re_string_char_size_at, re_string_wchar_at)
6922         (re_string_elem_size_at): Likewise.
6923         * posix/regexec.c (match_ctx_init, match_ctx_clean)
6924         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
6925         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
6926         (re_search_internal, re_search_2_stub, re_search_stub)
6927         (re_copy_regs, prune_impossible_nodes, check_matching)
6928         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6929         (free_fail_stack_return, sift_states_iter_mb)
6930         (sift_states_backward, build_sifted_states)
6931         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6932         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6933         (check_subexp_limits, sift_states_bkref, merge_state_array)
6934         (find_recover_state, transit_state, merge_state_with_log)
6935         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6936         (transit_state_mb, transit_state_bkref, get_subexp)
6937         (get_subexp_sub, find_subexp_node, check_arrival)
6938         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6939         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6940         (check_node_accept_bytes, find_collation_sequence_value)
6941         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6942         (acquire_init_state_context, check_halt_node_context)
6943         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6944         (sub_epsilon_src_nodes): Likewise.
6945         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
6946         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
6947         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
6948         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
6949         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
6950         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
6951         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
6952         * sysdeps/posix/ttyname.c (getttyname): Likewise.
6953         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
6954         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
6955         (PREADV): Likewise.
6956         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
6957         (PREADV): Likewise.
6958         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
6959         (PWRITEV): Likewise.
6960         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
6961         (PWRITEV): Likewise.
6962         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
6963         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
6965 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6967         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
6968         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
6969         Remove internal_function.
6970         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
6971         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
6972         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
6973         (__deallocate_stack, __libc_pthread_init)
6974         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
6975         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
6976         (__libc_disable_asynccancel, __librt_disable_asynccancel):
6977         Likewise.
6978         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
6979         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
6980         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
6981         Likewise.
6982         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
6983         (__pthread_mutex_unlock_usercnt): Likewise.
6985 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6987         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
6988         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
6989         (fts_safe_changedir): Remove internal_function.
6990         * io/ftw.c (internal_function): Remove definition.
6991         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
6993 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6995         * inet/deadline.c (__deadline_current_time)
6996         (__deadline_from_timeval, __deadline_to_ms): Remove
6997         internal_function.
6998         * inet/getnameinfo.c (nrl_domainname): Likewise.
6999         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7000         * inet/inet6_option.c (add_pad): Likewise.
7001         * inet/net-internal.h (__deadline_current_time)
7002         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7003         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7004         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7005         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7007 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7009         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7010         include <bits/nan.h>.
7011         * math/Makefile (headers): Remove bits/nan.h.
7012         * bits/nan.h: Remove.
7013         * sysdeps/ieee754/bits/nan.h: Likewise.
7014         * sysdeps/mips/bits/nan.h: Likewise.
7016         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7017         not include <bits/inf.h>.
7018         * math/Makefile (headers): Remove bits/inf.h.
7019         * bits/inf.h: Remove.
7020         * sysdeps/ieee754/bits/inf.h: Likewise.
7022         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7023         bits/huge_vall.h or bits/huge_val_flt128.h.
7024         (HUGE_VAL): Define directly here.
7025         [__USE_ISOC99] (HUGE_VALF): Likewise.
7026         [__USE_ISOC99] (HUGE_VALL): Likewise.
7027         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7028         (HUGE_VAL_F128): Likewise.
7029         * math/Makefile (headers): Remove bits/huge_val.h,
7030         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7031         * bits/huge_val.h: Remove.
7032         * bits/huge_val_flt128.h: Likewise.
7033         * bits/huge_valf.h: Likewise.
7034         * bits/huge_vall.h: Likewise.
7035         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7036         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7037         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7038         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7039         * sysdeps/sh/bits/huge_val.h: Likewise.
7040         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7041         * sysdeps/x86/bits/huge_vall.h: Likewise.
7043 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7045         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7046         internal_function.
7047         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7048         Likewise.
7049         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7050         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7051         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7052         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7053         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7054         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7055         * elf/dl-libc.c (dlerror_run): Likewise.
7056         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7057         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7058         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7059         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7060         Likewise.
7061         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7062         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7063         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7064         * elf/dl-profile.c (_dl_start_profile): Likewise.
7065         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7066         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7067         Likewise.
7068         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7069         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7070         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7071         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7072         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7073         (_dl_allocate_tls_storage): Likewise.
7074         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7075         (_dl_check_all_versions): Likewise.
7076         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7077         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7078         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7079         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7080         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7081         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7082         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7083         internal_function from __dl_start.
7084         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7085         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7086         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7087         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7088         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7089         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7090         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7091         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7092         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7093         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7094         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7095         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7096         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7097         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7098         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7099         Likewise.
7100         (struct rtld_global_ro): Remove internal_function from the
7101         _dl_lookup_symbol_x member.
7102         (_dl_symbol_value): Remove.  No longer defined anywhere.
7103         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7104         internal_function.
7105         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7106         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7107         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7108         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7109         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7110         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7111         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7112         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7113         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7114         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7115         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7116         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7118 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7120         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7121         Remove internal_function.
7122         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7123         Likewise.
7124         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7125         Likewise.
7127 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7129         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7130         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7131         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7133 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7135         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7136         (__gai_enqueue_request): Remove internal_function.
7137         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7138         (__gai_remove_request, __gai_notify, __gai_notify_only)
7139         (__gai_sigqueue): Likewise.
7140         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7141         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7142         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7143         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7144         Likewise.
7146 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7148         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7149         * include/dirent.h (__opendirat, __getdents, __getdents64)
7150         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7151         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7152         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7153         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7154         Likewise.
7155         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7157 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7159         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7160         internal_function.
7161         (GETCWD_RETURN_TYPE): Likewise.
7163 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7165         * include/time.h (__tz_compute, __strptime_internal): Remove
7166         internal_function.
7167         * time/strptime_l.c (__strptime_internal): Likewise.
7168         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7170 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7172         * iconv/gconv.c (__gconv): Remove internal_function.
7173         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7174         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7175         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7176         (__gconv_release_cache): Likewise.
7177         * iconv/gconv_close.c (__gconv_close): Likewise.
7178         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7179         (read_conf_file, __gconv_get_path): Likewise.
7180         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7181         (__gconv_release_step, gen_steps, increment_counter)
7182         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7183         (__gconv_close_transform, free_modules_db): Likewise.
7184         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7185         Likewise.
7186         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7187         (__gconv_find_transform, __gconv_lookup_cache)
7188         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7189         (__gconv_close_transform, __gconv_release_cache)
7190         (__gconv_loaded_object, __gconv_release_shlib)
7191         (__gconv_compare_alias): Likewise.
7192         * iconv/gconv_open.c (__gconv_open): Likewise.
7193         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7194         * iconv/iconvconfig.c (add_module): Likewise.
7195         * intl/dcigettext.c (plural_lookup, guess_category_value)
7196         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7197         * intl/eval-plural.h (plural_eval): Likewise.
7198         * intl/finddomain.c (_nl_find_domain): Likewise.
7199         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7200         (_nl_load_domain, _nl_find_msg): Likewise.
7201         (internal_function): Remove definition.
7202         * intl/loadinfo.h (internal_function): Likewise.
7203         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7204         internal_function.
7205         * intl/localealias.c (internal_function): Remove definition.
7206         (read_alias_file): Remove internal_function.
7207         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7208         * intl/plural-exp.h (internal_function): Remove definition.
7209         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7210         internal_function.
7211         * intl/plural.c: Regenerate.
7212         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7213         * locale/coll-lookup.c (__collidx_table_lookup)
7214         (__collseq_table_lookup): Likewise.
7215         * locale/coll-lookup.h (__collidx_table_lookup)
7216         (__collseq_table_lookup): Likewise.
7217         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7218         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7219         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7220         (_nl_unload_locale): Likewise.
7221         * locale/localeinfo.h (struct __locale_data): Remove
7222         internal_function from cleanup member.
7223         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7224         (_nl_remove_locale, _nl_load_locale_from_archive)
7225         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7226         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7227         (_nl_cleanup_time): Remove internal_function.
7228         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7229         (_nl_parse_alt_digit): Likewise.
7230         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7231         (_nl_select_era_entry): Likewise.
7232         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7233         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7234         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7235         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7236         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7238 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7240         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7241         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7242         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7243         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7244         Likewise.
7245         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7246         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7247         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7248         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7249         Likewise.
7250         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7252 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7254         * misc/getttyent.c (skip, value): Remove internal_function.
7255         * misc/syslog.c (openlog_internal): Likewise.
7256         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7258 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7260         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7261         (__nss_rewrite_field): Remove internal_function.
7262         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7263         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7264         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7265         * nss/nsswitch.c (nss_parse_file, nss_getline)
7266         (nss_parse_service_list, nss_new_service): Likewise.
7267         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7268         * nss/valid_field.c (__nss_valid_field): Likewise.
7269         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7271 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7273         * malloc/arena.c (__malloc_fork_lock_parent)
7274         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7275         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7276         internal_function from defintions.
7277         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7278         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7279         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7280         internal_function from declarations.
7281         * malloc/malloc.c (internal_function): Do not define.
7282         (mem2mem_check): Remove internal_function from declaration.
7283         (munmap_chunk, mremap_chunk): Remove internal_function.
7284         * malloc/mtrace.c (tr_where): Likewise.
7286 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7288         * include/rpc/pmap_clnt.h (__get_socket): Remove
7289         internal_function.
7290         * sunrpc/auth_des.c (synchronize): Likewise.
7291         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7292         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7293         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7294         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7295         (key_call): Likewise.
7296         * sunrpc/pm_getport.c (__get_socket): Likewise.
7297         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7298         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7299         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7300         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7301         (invalidate): Likewise.
7302         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7303         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7304         (set_input_fragment, get_input_bytes): Likewise.
7306 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7308         * malloc/malloc.c (_int_free): Remove locked variable and related
7309         asserts.
7311 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7313         [BZ #22051]
7314         * Makerules (build-module-helper-objlist): Filter out
7315         $(elf-objpfx)sofini.os.
7316         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7317         needed.
7319 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7321         * libio/fcloseall.c: Assume weak_alias is defined.
7322         * libio/feof.c: Likewise.
7323         * libio/fileno.c: Likewise.
7324         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7325         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7326         definitions.
7327         (_IO_file_open): Call __open directly.
7328         (_IO_new_file_sync): Assume ESPIPE is defined.
7329         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7330         (_IO_new_file_write): Call __write directly.
7331         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7332         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7333         * libio/genops.c: Assume _LIBC is defined.
7334         (save_for_backup): Remove internal_function.
7335         * libio/getc.c: Assume weak_alias is defined.
7336         * libio/getwc.c: Likewise.
7337         * libio/iofclose.c: Assume _LIBC is defined.
7338         * libio/iofdopen.c: Likewise.
7339         (_IO_fcntl): Remove macro definition.
7340         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7341         Call __fcntl directly.
7342         * libio/iofflush.c: Assume weak_alias is defined.
7343         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7344         defined.
7345         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7346         * libio/iofgets.c: Likewise.
7347         * libio/iofopen.c: Assume _LIBC is defined.
7348         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7349         * libio/iofputs.c: Assume weak_alias is defined.
7350         * libio/iofread.c: Likewise.
7351         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7352         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7353         * libio/ioftell.c: Assume weak_alias is defined.
7354         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7355         * libio/iofwide.c: Assume _LIBC is defined.
7356         (_IO_fwide): Drop SHARED conditional because it is implied by
7357         SHLIB_COMPAT.
7358         * libio/iofwrite.c: Assume weak_alias is defined.
7359         * libio/iogetdelim.c: Likewise.
7360         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7361         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7362         (_IO_getwline): Call __wmemcpy directly.
7363         * libio/iopopen.c: Assume _LIBC is defined.
7364         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7365         (_IO_close): Remove macro definitions.
7366         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7367         _exit directly.
7368         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7369         directly.
7370         * libio/ioputs.c: Assume weak_alias is defined.
7371         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7372         * libio/iosetbuffer.c: Assume weak_alias is defined.
7373         * libio/iosetvbuf.c: Likewise.
7374         * libio/ioungetc.c: Likewise.
7375         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7376         libc_hidden_def, libc_hidden_weak, NULL are defined.
7377         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7378         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7379         defined.
7380         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7381         definitions.
7382         (_IO_old_file_init_internal): Drop SHARED conditional because it
7383         is implied by SHLIB_COMPAT.
7384         (_IO_old_file_fopen): Call __open directly.
7385         (_IO_old_file_sync): Assume ESPIPE is defined.
7386         (_IO_old_file_write): Call __write directly.
7387         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7388         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7389         Call __fcntl directly.
7390         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7391         (_IO_old_fgetpos): Assume EIO is defined.
7392         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7393         (_IO_old_fgetpos64): Assume EIO is defined.
7394         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7395         (_IO_old_fsetpos): Assume EIO is defined.
7396         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7397         (_IO_old_fsetpos64): Assume EIO is defined.
7398         * libio/oldiopopen.c:  Assume _LIBC is defined.
7399         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7400         (_IO_close): Remove macro definitions.
7401         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7402         directly.
7403         (_IO_old_proc_close): Call __close, __waitpid directly.
7404         * libio/put.c: Assume weak_alias is defined.
7405         * libio/stdfiles.c: Assume _LIBC is defined.
7406         * libio/stdio.c: Likewise.
7407         * libio/wfileops.c: Likewise.
7408         (_IO_wfile_sync): Assume ESPIPE is defined.
7409         * libio/wgenops.c: Assume _LIBC is defined.
7410         (save_for_wbackup): Remove internal_function.
7412 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7414         * malloc/malloc.c (top_check): Change return type to void.  Remove
7415         internal_function.
7416         * malloc/hooks.c (top_check): Likewise.
7417         (malloc_check, realloc_check, memalign_check): Adjust.
7419 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7421         [BZ #21457]
7422         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7423         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7424         sigcontext and namespace requirements.
7425         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7426         * sysdeps/m68k/sys/ucontext.h: Likewise.
7427         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7428         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7429         <bits/sigcontext.h>.
7430         (__ctx): Define earlier.
7431         (mcontext_t): Define structure contents rather than using struct
7432         sigcontext.
7433         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7434         __glibc_reserved1 instead of __reserved.
7435         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7436         <bits/sigcontext.h>.
7437         (__ctx): Define earlier.
7438         (mcontext_t): Define structure contents rather than using struct
7439         sigcontext.
7440         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7441         mcontext_t instead of struct sigcontext.
7442         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7443         <bits/sigcontext.h>.
7444         (__ctx): Define earlier.
7445         (mcontext_t): Define structure contents rather than using struct
7446         sigcontext.
7447         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7448         <bits/sigcontext.h>.
7449         (__ctx): Define earlier.
7450         (mcontext_t): Define structure contents rather than using struct
7451         sigcontext.
7452         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7453         mcontext_t instead of struct sigcontext.
7454         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7455         mcontext_t instead of struct sigcontext.
7456         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7457         <bits/sigcontext.h>.
7458         (__ctx): New macro.
7459         (struct __ia64_fpreg_mcontext): New type.
7460         (mcontext_t): Define structure contents rather than using struct
7461         sigcontext.
7462         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7463         (uc_sigmask): Define using __ctx.
7464         (uc_stack): Likewise.
7465         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7466         <bits/sigcontext.h>.
7467         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7468         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7469         <bits/sigcontext.h>.
7470         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7471         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7472         <bits/sigcontext.h>.
7473         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7474         <bits/sigcontext.h>.
7475         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7476         <bits/sigcontext.h>.
7477         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7478         <bits/sigcontext.h>.
7479         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7480         <bits/sigcontext.h>.
7481         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7482         <bits/sigcontext.h>.
7483         * sysdeps/unix/sysv/linux/tile/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/x86/sys/ucontext.h: Do not include
7489         <bits/sigcontext.h>.  Include <bits/types.h>.
7490         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7491         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7492         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7493         (test-xfail-UNIX98/signal.h/conform): Likewise.
7494         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7495         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7496         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7497         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7498         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7499         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7500         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7501         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7502         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7504 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7506         * malloc/dynarray_emplace_enlarge.c
7507         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7508         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7509         * malloc/tst-dynarray.c (test_long_overflow): New function.
7510         (do_test): Call it.
7512 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7514         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7515         (set_arena_corrupt): Remove definitions.
7516         (mtrim): Do not check for corrupt arena.
7517         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7518         Likewise.
7520 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7522         [BZ #21754]
7523         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7524         check_action.
7525         (ptmalloc_init): Do not set or use check_action.
7526         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7527         call to malloc_printerr.  Remove return statement.
7528         (free_check): Likewise.  Remove arena unlock.
7529         (top_check): Update comment.  Adjust call to malloc_printerr.
7530         Remove heap repair code.
7531         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7532         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7533         (sysmalloc): Adjust call to malloc_printerr.
7534         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7535         statement.
7536         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7537         Remove errout label and corresponding gotos.
7538         (_int_free): Likewise.  Remove arena unlock.
7539         (do_set_mallopt_check): Do not set check_action.
7540         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7541         corrupt.
7542         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7543         comment.
7544         * manual/probes.texi (Memory Allocation Probes): Remove
7545         memory_mallopt_check_action.
7547 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7549         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7550         Use pointer to uint64_t instead of long int for sp.
7552 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7554         [BZ #21754]
7555         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7556         without printing a backtrace.  Do not leak any information in the
7557         error message.
7558         * manual/memory.texi (Heap Consistency Checking): Update.
7559         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7561 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7563         Do not scale NPTL tests with available number of CPUs.
7564         * nptl/tst-cond16.c (count): Set to constant value of 8.
7565         * nptl/tst-cond18.c (count): Likewise.
7567 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7569         [BZ #22035]
7570         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7571         Define to take a second argument that is a macro that
7572         concatentates a suffix, not the suffix itself.
7573         (__CONCAT_d): New macro.
7574         (__CONCAT_f): Likewise.
7575         (__CONCAT_l): Likewise.
7577 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7579         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7580         by child.
7582 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7583             Aurelien Jarno  <aurelien@aurel32.net>
7584             Maciej W. Rozycki  <macro@imgtec.com>
7586         [BZ #21956]
7587         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7588         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7589         `mips16-syscall6' and `mips16-syscall7'.
7590         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7591         (CFLAGS-mips16-syscall7.c): Remove.
7592         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7593         Remove `__mips16_syscall5', `__mips16_syscall6' and
7594         `__mips16_syscall7'.
7595         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7596         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7597         `__mips_syscall_return'.
7598         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7599         (__mips16_syscall1): Likewise.
7600         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7601         (__mips16_syscall2): Likewise.
7602         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7603         (__mips16_syscall3): Likewise.
7604         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7605         (__mips16_syscall4): Likewise.
7606         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7607         Remove.
7608         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7609         Remove.
7610         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7611         Remove.
7612         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7613         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7614         `__mips16_syscall5'.  Remove prototype.
7615         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7616         `__mips16_syscall6'.  Remove prototype.
7617         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7618         `__mips16_syscall7'.  Remove prototype.
7619         (__nomips16, __mips16_syscall_return): Move to...
7620         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7621         (__nomips16, __mips_syscall_return): ... here.
7622         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7623         `__mips16_syscall_return' to `__mips_syscall_return'.
7624         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7625         `internal_syscall##nr'.
7626         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7627         `internal_syscall##nr'.
7628         (FORCE_FRAME_POINTER): Remove.
7629         (__mips_syscall5): New prototype.
7630         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7631         (__mips_syscall6): New prototype.
7632         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7633         (__mips_syscall7): New prototype.
7634         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7635         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7636         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7637         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7638         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7639         (sysdep_routines): Add libc-do-syscall.
7640         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7641         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7643 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7645         [BZ #21672]
7646         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7647         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7648         (advise_stack_range): New function.
7649         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7650         stack non required to advise_stack_range at allocatestack.c
7652 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7654         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7656 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7658         [BZ #22026]
7659         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7660         __end_fct.  Mangle __end_fct after setting it to NULL.
7661         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7662         (modules-names, modules-names-tests): Add
7663         tst-gconv-init-failure-mod.
7664         (gconv-modules): New target.
7665         (tst-gconv-init-failure-mod.so): Link against libsupport.
7666         (tst-gconv-init-failure): Depend on gconv-modules,
7667         tst-gconv-init-failure-mod.so.
7668         * iconv/tst-gconv-init-failure-mod.c: New file.
7669         * iconv/tst-gconv-init-failure.c: Likewise.
7670         * iconv/test-gconv-modules: Likewise.
7672 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7674         [BZ #22025]
7675         * iconv/gconv_db.c (free_derivation): Remove redundant
7676         parentheses.
7677         (gen_steps): Unconditionally mangle __btowc_fct after
7678         initialization.
7679         (increment_counter): Likewise.  Do not call init_fct for internal
7680         modules.
7682 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7684         [BZ #22028]
7685         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7686         (_MSUF_): Remove macro.
7687         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7688         Likewise.
7689         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7690         (__REDIRFROM_X): New macro.
7691         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7692         Likewise.
7693         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7694         (__REDIRTO_X): Likewise.
7695         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7696         arguments.
7697         (__MATH_REDIRCALL_2): Likewise.
7698         (__MATH_REDIRCALL_INTERNAL): Likewise.
7699         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7700         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7701         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7702         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7703         * math/test-finite-macros.c: New file.
7704         * math/Makefile (tests): Add test-finite-macros.
7705         (CFLAGS-test-finite-macros.c): New variable.
7707 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7708             Jeff Law  <law@redhat.com>
7710         [BZ #22025]
7711         Mangle NULL pointers in iconv/gconv.
7712         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7713         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7714         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7715         is non-NULL before demangling the end_fct.  Check for NULL
7716         end_fct after demangling.
7717         (__gconv_release_step): Demangle the end_fct before checking
7718         it for NULL.   Remove assert on __shlibc_handle != NULL.
7719         (gen_steps): Don't check btowc_fct for NULL before mangling.
7720         Demangle init_fct before checking for NULL.
7721         (increment_counter): Likewise.
7722         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7723         end_fct for NULL before mangling.
7724         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7725         for NULL.
7727 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7729         [BZ #21971]
7730         * locale/iso-639.def: add Morisyen.
7732 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7734         [BZ #21930]
7735         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7736         (iszero): New C++ implementation that does not use
7737         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7738         signaling nans are enabled, since __builtin_types_compatible_p
7739         is a C-only feature.
7740         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7741         defined, include ieee754_float128.h for access to the union and
7742         member ieee854_float128.ieee.
7743         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7744         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7745         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7746         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7747         options of test-math-zero on powerpc64le.
7749 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7751         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7752         Change double to float.
7754 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7756         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7757         unconditional.
7758         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7759         conditional code; define contents only for [LIBM_SVID_COMPAT].
7761 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7763         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7764         (abi-lp64_be-options): Remove.
7765         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7766         (abi-hard-options): Likewise.
7767         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7768         (abi-o32_hard-options, abi-o32_soft_2008-options)
7769         (abi-o32_hard_2008-options, abi-n32_soft-options)
7770         (abi-n32_hard-options, abi-n32_soft_2008-options)
7771         (abi-n32_hard_2008-options, abi-n64_soft-options)
7772         (abi-n64_hard-options, abi-n64_soft_2008-options)
7773         (abi-n64_hard_2008-options): Likewise.
7774         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7775         (abi-64-v1-options, abi-64-v2-options): Likewise.
7776         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7777         (abi-64-options): Likewise.
7778         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7779         (abi-64-options): Likewise.
7780         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7781         (abi-64-options): Likewise.
7782         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7783         (abi-64-options, abi-x32-options): Likewise.
7785 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7787         Store supported list of SYS_* system calls in the source tree.
7788         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7789         (bits/syscall.h): Generate from list file.
7790         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7791         [$(subdir) = misc] (tests): Add tst-syscall-list.
7792         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7793         [$(subdir) = misc] (tst-syscall-list-macros.list)
7794         [$(subdir) = misc] (tst-syscall-list-nr.list)
7795         (tst-syscall-list-sys.list): Helper targets for new
7796         tst-syscall-list test.
7797         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7798         tst-syscall-list.sh.
7799         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7800         target. Do not include bits/syscall.d.
7801         [$(subdir) = misc] (generated): Do not update.
7802         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7803         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7804         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7805         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7807 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7809         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7810         (tst-cxa_atexit, tst-on_exit): Likewise.
7811         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7812         tst-cxa_atexit, and tst-on_exit.
7813         * stdlib/tst-atexit-common.c: New file.
7814         * stdlib/tst-atexit.c: New file.
7815         * stdlib/tst-at_quick_exit.c: New file.
7816         * stdlib/tst-cxa_atexit.c: New file.
7817         * stdlib/tst-on_exit.c: New file.
7819 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7821         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7822         * mach/stack_chk_fail_local.c: New file.
7823         * hurd/stack_chk_fail_local.c: New file.
7824         * mach/Machrules ($(interface-library)-routines): Add
7825         stack_chk_fail_local.
7826         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7827         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7828         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7829         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7830         * hurd/Makefile (CFLAGS-hurdstartup.o,
7831         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7833 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7835         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7836         (index_cpu_*, index_arch_*): Removed.
7838 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7840         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
7841         Use uint64_t instead of unsigned long.
7843 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
7845         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
7846         [__HAVE_DISTINCT_FLOAT128].
7848         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
7849         of <bits/math-finite.h>.
7850         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
7851         inclusion of <bits/math-finite.h>.
7852         * math/bits/math-finite.h (__REDIRTO_X): Do not define
7853         conditionally on [__MATH_DECLARING_LDOUBLE && defined
7854         __NO_LONG_DOUBLE_MATH].
7855         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
7856         (__MATH_REDIRCALL_2): Likewise.
7857         (__MATH_REDIRCALL_INTERNAL): Likewise.
7858         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7859         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
7860         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
7863         Remove file.
7864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
7865         Likewise.
7866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
7867         Likewise.
7868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
7869         Likewise.
7870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
7871         Likewise.
7872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
7873         Likewise.
7874         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7875         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7876         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7877         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
7879         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
7880         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
7881         w_sqrtf_compat-ppc32.
7883 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7885         * math/math.h [defined __cplusplus] (issignaling): In the long
7886         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
7887         is not defined.  Call __issignaling, otherwise.
7889 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7891         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
7892         syscall definitions and replace __builtin_expect with __glibc_likely.
7893         * sysdeps/unix/syscall-template.S: Update comment about cancellable
7894         syscall.
7895          (SYSCALL_CANCELLABLE): Removedefinition
7896         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
7897         definition.
7898         (PSEUDO_END): Likewise.
7899         [IS_IN (libpthread)] (CENABLE): Likewise.
7900         [IS_IN (libpthread)] (CDISABLE): Likewise.
7901         [IS_IN (libc)] (CENABLE): Likewise.
7902         [IS_IN (libc)] (CENABLE): Likewise.
7903         [IS_IN (librt)] (CDISABLE): Likewise.
7904         [IS_IN (librt)] (CDISABLE): Likewise.
7905         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7906         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
7907         definition.
7908         (PSEUDO_END): Likewise.
7909         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
7910         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
7911         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7912         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7913         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7914         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7915         (CENABLE): Likewise.
7916         (CDISABLE): Likewise.
7917         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7918         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
7919         defintion.
7920         (PSEUDO_END): Likewise.
7921         [IS_IN (libpthread)] (CENABLE): Likewise.
7922         [IS_IN (libpthread)] (CDISABLE): Likewise.
7923         [IS_IN (libc)] (CENABLE): Likewise.
7924         [IS_IN (libc)] (CENABLE): Likewise.
7925         [IS_IN (librt)] (CDISABLE): Likewise.
7926         [IS_IN (librt)] (CDISABLE): Likewise.
7927         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7928         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7929         definition.
7930         (PSEUDO_END): Likewise.
7931         [IS_IN (libpthread)] (CENABLE): Likewise.
7932         [IS_IN (libpthread)] (CDISABLE): Likewise.
7933         [IS_IN (libc)] (CENABLE): Likewise.
7934         [IS_IN (libc)] (CENABLE): Likewise.
7935         [IS_IN (librt)] (CDISABLE): Likewise.
7936         [IS_IN (librt)] (CDISABLE): Likewise.
7937         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7938         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7939         definition.
7940         (PSEUDO_END): Likewise.
7941         [IS_IN (libpthread)] (CENABLE): Likewise.
7942         [IS_IN (libpthread)] (CDISABLE): Likewise.
7943         [IS_IN (libc)] (CENABLE): Likewise.
7944         [IS_IN (libc)] (CENABLE): Likewise.
7945         [IS_IN (librt)] (CDISABLE): Likewise.
7946         [IS_IN (librt)] (CDISABLE): Likewise.
7947         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7948         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
7949         definition.
7950         (PSEUDO_END): Likewise.
7951         [IS_IN (libpthread)] (CENABLE): Likewise.
7952         [IS_IN (libpthread)] (CDISABLE): Likewise.
7953         [IS_IN (libc)] (CENABLE): Likewise.
7954         [IS_IN (libc)] (CENABLE): Likewise.
7955         [IS_IN (librt)] (CDISABLE): Likewise.
7956         [IS_IN (librt)] (CDISABLE): Likewise.
7957         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7958         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
7959         definition.
7960         (PSEUDO_END): Likewise.
7961         [IS_IN (libpthread)] (CENABLE): Likewise.
7962         [IS_IN (libpthread)] (CDISABLE): Likewise.
7963         [IS_IN (libc)] (CENABLE): Likewise.
7964         [IS_IN (libc)] (CENABLE): Likewise.
7965         [IS_IN (librt)] (CDISABLE): Likewise.
7966         [IS_IN (librt)] (CDISABLE): Likewise.
7967         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7968         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
7969         definition.
7970         (PSEUDO_END): Likewise.
7971         [IS_IN (libpthread)] (CENABLE): Likewise.
7972         [IS_IN (libpthread)] (CDISABLE): Likewise.
7973         [IS_IN (libc)] (CENABLE): Likewise.
7974         [IS_IN (libc)] (CENABLE): Likewise.
7975         [IS_IN (librt)] (CDISABLE): Likewise.
7976         [IS_IN (librt)] (CDISABLE): Likewise.
7977         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7978         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
7979         Remove definition.
7980         (PSEUDO_END): Likewise.
7981         [IS_IN (libpthread)] (CENABLE): Likewise.
7982         [IS_IN (libpthread)] (CDISABLE): Likewise.
7983         [IS_IN (libc)] (CENABLE): Likewise.
7984         [IS_IN (libc)] (CENABLE): Likewise.
7985         [IS_IN (librt)] (CDISABLE): Likewise.
7986         [IS_IN (librt)] (CDISABLE): Likewise.
7987         (SINGLE_THREAD_P): Likewise.
7988         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
7989         definition.
7990         (PSEUDO_END): Likewise.
7991         [IS_IN (libpthread)] (CENABLE): Likewise.
7992         [IS_IN (libpthread)] (CDISABLE): Likewise.
7993         [IS_IN (libc)] (CENABLE): Likewise.
7994         [IS_IN (libc)] (CENABLE): Likewise.
7995         [IS_IN (librt)] (CDISABLE): Likewise.
7996         [IS_IN (librt)] (CDISABLE): Likewise.
7997         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7998         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
7999         definition.
8000         (PSEUDO_END): Likewise.
8001         [IS_IN (libpthread)] (CENABLE): Likewise.
8002         [IS_IN (libpthread)] (CDISABLE): Likewise.
8003         [IS_IN (libc)] (CENABLE): Likewise.
8004         [IS_IN (libc)] (CENABLE): Likewise.
8005         [IS_IN (librt)] (CDISABLE): Likewise.
8006         [IS_IN (librt)] (CDISABLE): Likewise.
8007         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8008         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8009         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8010         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8011         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8012         definition.
8013         (PSEUDO_END): Likewise.
8014         [IS_IN (libpthread)] (CENABLE): Likewise.
8015         [IS_IN (libpthread)] (CDISABLE): Likewise.
8016         [IS_IN (libc)] (CENABLE): Likewise.
8017         [IS_IN (libc)] (CENABLE): Likewise.
8018         [IS_IN (librt)] (CDISABLE): Likewise.
8019         [IS_IN (librt)] (CDISABLE): Likewise.
8020         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8021         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8022         definition.
8023         (PSEUDO_END): Likewise.
8024         [IS_IN (libpthread)] (CENABLE): Likewise.
8025         [IS_IN (libpthread)] (CDISABLE): Likewise.
8026         [IS_IN (libc)] (CENABLE): Likewise.
8027         [IS_IN (libc)] (CENABLE): Likewise.
8028         [IS_IN (librt)] (CDISABLE): Likewise.
8029         [IS_IN (librt)] (CDISABLE): Likewise.
8030         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8031         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8032         definition.
8033         (PSEUDO_END): Likewise.
8034         [IS_IN (libpthread)] (CENABLE): Likewise.
8035         [IS_IN (libpthread)] (CDISABLE): Likewise.
8036         [IS_IN (libc)] (CENABLE): Likewise.
8037         [IS_IN (libc)] (CENABLE): Likewise.
8038         [IS_IN (librt)] (CDISABLE): Likewise.
8039         [IS_IN (librt)] (CDISABLE): Likewise.
8040         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8041         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8042         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8043         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8044         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8045         definition.
8046         (PSEUDO_END): Likewise.
8047         [IS_IN (libpthread)] (CENABLE): Likewise.
8048         [IS_IN (libpthread)] (CDISABLE): Likewise.
8049         [IS_IN (libc)] (CENABLE): Likewise.
8050         [IS_IN (libc)] (CENABLE): Likewise.
8051         [IS_IN (librt)] (CDISABLE): Likewise.
8052         [IS_IN (librt)] (CDISABLE): Likewise.
8053         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8054         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8055         definition.
8056         (PSEUDO_END): Likewise.
8057         [IS_IN (libpthread)] (CENABLE): Likewise.
8058         [IS_IN (libpthread)] (CDISABLE): Likewise.
8059         [IS_IN (libc)] (CENABLE): Likewise.
8060         [IS_IN (libc)] (CENABLE): Likewise.
8061         [IS_IN (librt)] (CDISABLE): Likewise.
8062         [IS_IN (librt)] (CDISABLE): Likewise.
8063         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8065 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8067         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8069 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8071         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8073 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8075         [BZ #21982]
8076         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8077         middle and outer with size_t instead of int.  Repleace %d and
8078         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8079         "MAX (outer, nchars - 64)" to support unsigned outer and
8080         nchars.  Also exit loop when outer == 0.
8082 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8084         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8085         * include/signal.h (__sigsuspend_nocancel): Likewise.
8086         * include/time.h (__nanosleep_nocancel): Likewise.
8087         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8088         * login/utmp_file.c: Include non cancellable syscall header.
8089         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8090         prototype.
8092 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8094         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8095         .byte sequences with AVX512F instructions.
8096         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8097         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8098         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8099         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8100         Likewise.
8101         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8102         Likewise.
8104 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8105             Steve Ellcey  <sellcey@cavium.com>
8107         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8108         Use PTR_REG macro in cmp instruction.
8110 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8112         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8113         Change the return type of the ifunc resolver to match the return
8114         type of the target function.
8116 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8118         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8119         (preadv64): Likewise.
8120         (pwrite64(: Likewise.
8121         (pwritev64): Likewise.
8123         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8124         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8125         (LOAD_ARGS_0): Likewise.
8126         (LOAD_ARGS_1): Likewise.
8127         (LOAD_ARGS_2): Likewise.
8128         (LOAD_ARGS_3): Likewise.
8129         (LOAD_ARGS_4): Likewise.
8130         (LOAD_ARGS_5): Likewise.
8131         (LOAD_ARGS_6): Likewise.
8132         (LOAD_REGS_0): Likewise.
8133         (LOAD_REGS_1): Likewise.
8134         (LOAD_REGS_2): Likewise.
8135         (LOAD_REGS_3): Likewise.
8136         (LOAD_REGS_4): Likewise.
8137         (LOAD_REGS_5): Likewise.
8138         (LOAD_REGS_6): Likewise.
8139         (ASM_ARGS_0): Likewise.
8140         (ASM_ARGS_1): Likewise.
8141         (ASM_ARGS_2): Likewise.
8142         (ASM_ARGS_3): Likewise.
8143         (ASM_ARGS_4): Likewise.
8144         (ASM_ARGS_5): Likewise.
8145         (ASM_ARGS_6): Likewise.
8146         (LOAD_ARGS_TYPES_1): Likewise.
8147         (LOAD_ARGS_TYPES_2): Likewise.
8148         (LOAD_ARGS_TYPES_3): Likewise.
8149         (LOAD_ARGS_TYPES_4): Likewise.
8150         (LOAD_ARGS_TYPES_5): Likewise.
8151         (LOAD_ARGS_TYPES_6): Likewise.
8152         (LOAD_REGS_TYPES_1): Likewise.
8153         (LOAD_REGS_TYPES_2): Likewise.
8154         (LOAD_REGS_TYPES_3): Likewise.
8155         (LOAD_REGS_TYPES_4): Likewise.
8156         (LOAD_REGS_TYPES_5): Likewise.
8157         (LOAD_REGS_TYPES_6): Likewise.
8158         (TYPEFY): New define.
8159         (ARGIFY): Likewise.
8160         (internal_syscall0): Likewise.
8161         (internal_syscall1): Likewise.
8162         (internal_syscall2): Likewise.
8163         (internal_syscall3): Likewise.
8164         (internal_syscall4): Likewise.
8165         (internal_syscall5): Likewise.
8166         (internal_syscall6): Likewise.
8167         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8168         (INTERNAL_SYSCALL_NCS): Remove define.
8169         (internal_syscall1): Add define.
8171 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8173         * math/w_remainder_compat.c: Remove duplicate inclusion of
8174         math-svid-compat.h.
8175         * math/w_remainderf_compat.c: Likewise.
8176         * math/w_remainderl_compat.c: Likewise.
8178 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8182 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8184         [BZ #21684]
8185         * math/tgmath.h (__floating_type): Simplify definitions.
8186         (__real_integer_type): New macro.
8187         (__complex_integer_type): Likewise.
8188         (__expr_is_real): Likewise.
8189         (__tgmath_real_type_sub): Update comment to describe handling of
8190         complex types.
8191         (__tgmath_complex_type_sub): New macro.
8192         (__tgmath_complex_type): Likewise.
8193         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8194         (__TGMATH_CF128): Use __expr_is_real.
8195         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8196         __expr_is_real.
8197         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8198         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8199         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8200         integer types.
8202 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8204         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8205         macro.
8206         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8207         alias.
8208         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8209         Likewise.
8211         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8212         nanosleep_not_cancel with __nanosleep_nocancel.
8213         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8214         (__nanosleep_nocancel): New macro.
8215         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8216         function.
8217         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8218         macro.
8219         (__nanosleep_nocancel): New prototype.
8221         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8222         pause_not_cancel with __pause_nocancel.
8223         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8224         (__pause_nocancel): New macro.
8225         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8226         macro.
8227         (__pause_nocancel): New prototype.
8228         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8230 2017-08-22  Martin Sebor  <msebor@redhat.com>
8232         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8233         to return a pointer to the same type as the target function.
8235 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8237         [BZ #18822]
8238         [BZ #21986]
8239         * include/printf.h (__printf_fphex): Add attribute_hidden.
8240         (__guess_grouping): New prototype.
8241         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8242         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8243         libc_hidden_proto and libc_hidden_def.
8244         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8245         (__vstrfmon_l): Remove the third argument passed to
8246         __guess_grouping.
8248 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8250         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8251         definition for issignaling that does not rely on __MATH_TG,
8252         since __MATH_TG uses __builtin_types_compatible_p, which is only
8253         available in C mode.
8254         (CFLAGS-test-math-issignaling.cc): New variable.
8255         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8256         * math/test-math-issignaling.cc: New test for C++ implementation
8257         of type-generic issignaling.
8258         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8259         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8260         options of test-math-issignaling on powerpc64le.
8262 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8264         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8265         building libc.a.
8266         (hidden_proto): Likewise.
8267         (hidden_tls_proto): Likewise.
8268         (__hidden_proto): Likewise.
8270 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8272         math: Statically link tests of internal functionality.
8273         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8274         atest-exp2.
8275         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8276         (gmp-objs): Remove assignment.
8277         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8279 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8281         [BZ #21987]
8282         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8283         and copy to ...
8284         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8285         ... here.
8286         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8287         ... and here.
8289         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8290         variable definitions above inclusion of ../Rules.
8292 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8294         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8295         case calling __builtin_unreachable.
8297 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8299         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8300         __waitpid_nocancel.
8301         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8302         (__waitpid_nocancel): New macro.
8303         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8304         macro.
8305         (__waitpid_nocancel): Replace macro with a function.
8306         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8307         function.
8309         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8310         __fcntl_nocancel.
8311         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8312         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8314         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8315         __writev_nocancel_nostatus.
8316         (write_call_graph): Likewise.
8317         (write_bb_counts): Likewise.
8318         * resolv/herror.c (herror): Likewise.
8319         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8320         macro.
8321         (__writev_nocancel_nostatus): New macro.
8322         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8323         Remove macro.
8324         (__writev_nocancel_nostatus): New function.
8326 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8328         Revert:
8329         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8331         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8332         building libc.a.
8333         (hidden_proto): Likewise.
8334         (hidden_tls_proto): Likewise.
8335         (__hidden_proto): Likewise.
8337         [BZ #21973]
8338         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8339         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8341         Likewise.
8342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8343         Likewise.
8344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8345         Likewise.
8346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8347         Likewise.
8348         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8349         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8350         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8351         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8352         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8353         GLIBC_2.0 sqrtl symbol.
8355         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8356         [__USE_MISC] (_LIB_VERSION): Likewise.
8357         [__USE_MISC] (struct exception): Likewise.
8358         [__USE_MISC] (matherr): Likewise.
8359         [__USE_MISC] (DOMAIN): Likewise.
8360         [__USE_MISC] (SING): Likewise.
8361         [__USE_MISC] (OVERFLOW): Likewise.
8362         [__USE_MISC] (UNDERFLOW): Likewise.
8363         [__USE_MISC] (TLOSS): Likewise.
8364         [__USE_MISC] (PLOSS): Likewise.
8365         [__USE_MISC] (HUGE): Likewise.
8366         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8367         * math/math-svid-compat.h: New file.
8368         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8369         and matherrl.
8370         * include/math.h [!_ISOMAC] (__matherr): Remove.
8371         * manual/arith.texi (FP Exceptions): Do not document matherr.
8372         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8373         (tests-internal): New variable.
8374         (install-lib): Do not add libieee.a.
8375         (non-lib.a): Likewise.
8376         (extra-objs): Do not add libieee.a and ieee-math.o.
8377         (CPPFLAGS-s_lib_version.c): Remove variable.
8378         ($(objpfx)libieee.a): Remove rule.
8379         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8380         * math/ieee-math.c: Remove.
8381         * math/libm-test-support.c (matherr): Remove.
8382         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8383         and license notices.  Include <math-svid-compat.h> and
8384         <shlib-compat.h>.
8385         (matherr): Undefine as macro.  Use compat_symbol_reference.
8386         (_LIB_VERSION): Likewise.
8387         * math/test-matherr-2.c: New file.
8388         * math/test-matherr-3.c: Likewise.
8389         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8390         declaration.
8391         (__kernel_standard_f): Likewise.
8392         (__kernel_standard_l): Likewise.
8393         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8394         <math_private.h>.  Include <math-svid-compat.h>.
8395         (_LIB_VERSION): Undefine as macro.
8396         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8397         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8398         [LIBM_SVID_COMPAT], use compat_symbol.
8399         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8400         <math_private.h>.  Include <math-svid-compat.h>.
8401         (matherr): Undefine as macro.
8402         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8403         compat_symbol.
8404         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8405         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8406         compat_symbol_reference.
8407         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8408         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8409         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8410         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8411         (MATHERR_D): Remove declaration.
8412         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8413         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8414         [LIBM_BUILD] (pmatherrf): Likewise.
8415         [LIBM_BUILD] (pmatherr): Likewise.
8416         [LIBM_BUILD] (pmatherrl): Likewise.
8417         (DOMAIN): Likewise.
8418         (SING): Likewise.
8419         (OVERFLOW): Likewise.
8420         (UNDERFLOW): Likewise.
8421         (TLOSS): Likewise.
8422         (PLOSS): Likewise.
8423         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8424         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8425         compat_symbol.
8426         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8427         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8428         compat_symbol.
8429         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8430         * math/w_acos_compat.c: Likewise.
8431         * math/w_acosf_compat.c: Likewise.
8432         * math/w_acosh_compat.c: Likewise.
8433         * math/w_acoshf_compat.c: Likewise.
8434         * math/w_acoshl_compat.c: Likewise.
8435         * math/w_acosl_compat.c: Likewise.
8436         * math/w_asin_compat.c: Likewise.
8437         * math/w_asinf_compat.c: Likewise.
8438         * math/w_asinl_compat.c: Likewise.
8439         * math/w_atan2_compat.c: Likewise.
8440         * math/w_atan2f_compat.c: Likewise.
8441         * math/w_atan2l_compat.c: Likewise.
8442         * math/w_atanh_compat.c: Likewise.
8443         * math/w_atanhf_compat.c: Likewise.
8444         * math/w_atanhl_compat.c: Likewise.
8445         * math/w_cosh_compat.c: Likewise.
8446         * math/w_coshf_compat.c: Likewise.
8447         * math/w_coshl_compat.c: Likewise.
8448         * math/w_exp10_compat.c: Likewise.
8449         * math/w_exp10f_compat.c: Likewise.
8450         * math/w_exp10l_compat.c: Likewise.
8451         * math/w_exp2_compat.c: Likewise.
8452         * math/w_exp2f_compat.c: Likewise.
8453         * math/w_exp2l_compat.c: Likewise.
8454         * math/w_fmod_compat.c: Likewise.
8455         * math/w_fmodf_compat.c: Likewise.
8456         * math/w_fmodl_compat.c: Likewise.
8457         * math/w_hypot_compat.c: Likewise.
8458         * math/w_hypotf_compat.c: Likewise.
8459         * math/w_hypotl_compat.c: Likewise.
8460         * math/w_j0_compat.c: Likewise.
8461         * math/w_j0f_compat.c: Likewise.
8462         * math/w_j0l_compat.c: Likewise.
8463         * math/w_j1_compat.c: Likewise.
8464         * math/w_j1f_compat.c: Likewise.
8465         * math/w_j1l_compat.c: Likewise.
8466         * math/w_jn_compat.c: Likewise.
8467         * math/w_jnf_compat.c: Likewise.
8468         * math/w_jnl_compat.c: Likewise.
8469         * math/w_lgamma_main.c: Likewise.
8470         * math/w_lgamma_r_compat.c: Likewise.
8471         * math/w_lgammaf_main.c: Likewise.
8472         * math/w_lgammaf_r_compat.c: Likewise.
8473         * math/w_lgammal_main.c: Likewise.
8474         * math/w_lgammal_r_compat.c: Likewise.
8475         * math/w_log10_compat.c: Likewise.
8476         * math/w_log10f_compat.c: Likewise.
8477         * math/w_log10l_compat.c: Likewise.
8478         * math/w_log2_compat.c: Likewise.
8479         * math/w_log2f_compat.c: Likewise.
8480         * math/w_log2l_compat.c: Likewise.
8481         * math/w_log_compat.c: Likewise.
8482         * math/w_logf_compat.c: Likewise.
8483         * math/w_logl_compat.c: Likewise.
8484         * math/w_pow_compat.c: Likewise.
8485         * math/w_powf_compat.c: Likewise.
8486         * math/w_powl_compat.c: Likewise.
8487         * math/w_remainder_compat.c: Likewise.
8488         * math/w_remainderf_compat.c: Likewise.
8489         * math/w_remainderl_compat.c: Likewise.
8490         * math/w_scalb_compat.c: Likewise.
8491         * math/w_scalbf_compat.c: Likewise.
8492         * math/w_scalbl_compat.c: Likewise.
8493         * math/w_sinh_compat.c: Likewise.
8494         * math/w_sinhf_compat.c: Likewise.
8495         * math/w_sinhl_compat.c: Likewise.
8496         * math/w_sqrt_compat.c: Likewise.
8497         * math/w_sqrtf_compat.c: Likewise.
8498         * math/w_sqrtl_compat.c: Likewise.
8499         * math/w_tgamma_compat.c: Likewise.
8500         * math/w_tgammaf_compat.c: Likewise.
8501         * math/w_tgammal_compat.c: Likewise.
8502         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8503         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8504         * sysdeps/ieee754/k_standard.c: Likewise.
8505         * sysdeps/ieee754/k_standardf.c: Likewise.
8506         * sysdeps/ieee754/k_standardl.c: Likewise.
8507         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8508         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8509         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8510         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8511         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8512         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8513         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8514         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8515         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8517         Likewise.
8518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8519         Likewise.
8520         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8521         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8522         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8523         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8525 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8527         [BZ #21864]
8528         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8529         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8530         Move before inclusion of ../Rules.
8532 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8534         [BZ #21972]
8535         * assert/assert.h (assert): Use static_cast (bool) for C++.
8536         Use the ternary operator in the warning branch for GNU C.
8537         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8538         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8539         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8540         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8541         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8543 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8545         [BZ #18822]
8546         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8547         (__syscall_clock_gettime): Add attribute_hidden.
8548         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8549         (__start_context): Likewise.
8551 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8553         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8554         building libc.a.
8555         (hidden_proto): Likewise.
8556         (hidden_tls_proto): Likewise.
8557         (__hidden_proto): Likewise.
8559 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8561         * include/libc-symbols.h (attribute_hidden): Enable hidden
8562         visibility in libc.a compiled with PIE.
8564 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8566         [BZ #18822]
8567         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8568         Add attribute_hidden.
8570 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8572         [BZ #21864]
8573         * Makerules (all-nonlib): Add $(others-extras).
8574         * catgets/Makefile (others-extras): New.
8575         * elf/Makefile (others-extras): Likewise.
8576         * nss/Makefile (others-extras): Likewise.
8578 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8580         [BZ #18822]
8581         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8582         * elf/dl-open.c: Include <libc-internal.h>.
8583         (__libc_multiple_libcs): Removed.
8584         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8585         <hp-timing.h>.
8586         * include/libc-internal.h (__libc_multiple_libcs): New.
8587         * misc/sbrk.c: Include <libc-internal.h>.
8588         (__libc_multiple_libcs): Removed.
8590 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8592         [BZ #18822]
8593         * grp/initgroups.c (__nss_group_database): Removed.
8594         (__nss_initgroups_database): Likewise.
8595         * nscd/gai.c (__nss_hosts_database): Likewise.
8596         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8597         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8598         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8599         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8600         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8601         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8602         attribute_hidden.
8603         * nss/nsswitch.c (__nss_database_custom): Define only if
8604         USE_NSCD is defined.
8605         (__nss_configure_lookup): Use __nss_database_custom only if
8606         USE_NSCD is defined.
8607         * nss/nsswitch.h (__nss_database_custom): Declare only if
8608         USE_NSCD is defined.  Add attribute_hidden.
8609         (__nss_setent): Add attribute_hidden.
8610         (__nss_endent): Likewise.
8611         (__nss_getent_r): Likewise.
8612         (__nss_getent): Likewise.
8613         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8615 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8617         [BZ #18822]
8618         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8619         libc_hidden_proto and libc_hidden_def.
8621 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8623         [BZ #18822]
8624         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8625         Add libc_hidden_proto.
8626         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8627         Add libc_hidden_def.
8629 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8631         [BZ #21974]
8632         * gmon/Makefile (routines): Remove bb_init_func and
8633         bb_exit_func.
8634         (elide-routines.os): Removed.
8635         * gmon/bb_exit_func.c: Likewise.
8636         * gmon/bb_init_func.c: Likewise.
8637         * include/sys/gmon.h (__bb): Likewise.
8638         (__bb_init_func): Likewise.
8639         (__bb_exit_func): Likewise.
8640         * sysdeps/alpha/bb_init_func.S: Likewise.
8642 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8644         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8645         * include/setjmp.h (____longjmp_chk): Here.  Add
8646         attribute_hidden.
8648 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8650         [BZ #18822]
8651         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8652         attribute_hidden.
8653         (__strspn_sse2): Likewise.
8655 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8657         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8658         (close_not_cancel_no_status): Likewise.
8659         (__close_nocancel): New macro.
8660         (__close_nocancel_nostatus): Likewise.
8661         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8662         macro.
8663         (close_not_cancel): Likewise.
8664         (close_not_cancel_no_status): Likewise.
8665         (__close_nocancel): New prototype.
8666         (__close_nocancel_nostatus): New function.
8667         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8668         * catgets/open_catalog.c (__open_catalog): Replace
8669         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8670         * gmon/gmon.c (write_gmon): Likewise.
8671         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8672         * intl/loadmsgcat.c (close): Likewise.
8673         * io/ftw.c (open_dir_stream): Likewise.
8674         (ftw_startup): Likewise.
8675         * libio/fileops.c (_IO_file_open): Likewise.
8676         (_IO_file_close_mmap): Likewise.
8677         (_IO_file_close): Likewise.
8678         * libio/iopopen.c (_IO_dup2): Likewise.
8679         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8680         * locale/loadlocale.c (_nl_load_locale): Likewise.
8681         * login/utmp_file.c (pututline_file): Likewise.
8682         (endutent_file): Likewise.
8683         * misc/daemon.c (daemon): Likewise.
8684         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8685         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8686         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8687         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8688         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8689         * nscd/nscd_helper.c (open_socket): Likewise.
8690         (__nscd_open_socket): Likewise.
8691         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8692         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8693         (__nscd_innetgr): Likewise.
8694         * nss/nss_db/db-open.c (internal_setent): Likewise.
8695         * resolv/res-close.c (__res_iclose): Likewise.
8696         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8697         * sysdeps/posix/closedir.c (__closedir): Likewise.
8698         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8699         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8700         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8701         (opendir_tail): Likewise.
8702         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8703         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8704         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8705         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8706         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8707         (gethostid): Likewise.
8708         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8709         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8710         Likewise.
8711         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8712         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8713         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8714         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8715         Likewise.
8716         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8717         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8718         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8719         Likewise.
8720         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8721         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8722         Likewise.
8723         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8724         Likewise.
8725         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8726         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8727         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8728         __close_nocancel.
8730         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8731         (openat_not_cancel_3): Likewise.
8732         (openat64_not_cancel_3): Likewise).
8733         (openat_not_cancel_3): Likewise).
8734         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8735         macro.
8736         (openat_not_cancel_3): Likewise.
8737         (openat64_not_cancel): Likewise.
8738         (openat64_not_cancel_3): Likewise.
8739         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8740         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8741         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8742         __open{64}_nocancel.
8743         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8744         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8745         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8747 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8749         [BZ #18822]
8750         * include/argz.h (__argz_create_sep): New function prototype.
8751         (__argz_append): Likewise.
8752         (__argz_add): Likewise.
8753         (__argz_add_sep): Likewise.
8754         (__argz_delete): Likewise.
8755         (__argz_insert): Likewise.
8756         (__argz_replace): Likewise.
8757         * string/argz.h (__argz_create_sep): Removed.
8758         (__argz_append): Likewise.
8759         (__argz_add): Likewise.
8760         (__argz_add_sep): Likewise.
8761         (__argz_delete): Likewise.
8762         (__argz_insert): Likewise.
8763         (__argz_replace): Likewise.
8765 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8767         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8768         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8769         (GNU_PROPERTY_STACK_SIZE): Likewie.
8770         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8771         (GNU_PROPERTY_LOPROC): Likewise.
8772         (GNU_PROPERTY_HIPROC): Likewise.
8773         (GNU_PROPERTY_LOUSER): Likewise.
8774         (GNU_PROPERTY_HIUSER): Likewise.
8775         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8776         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8777         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8778         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8779         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8780         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8781         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8782         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8783         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8784         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8785         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8786         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8787         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8788         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8789         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8790         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8791         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8792         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8793         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8794         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8795         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8796         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8797         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8799 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8801         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8802         in C++ mode.
8804 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8806         [BZ #21930]
8807         * math/math.h (isinf): Check if in C or C++ mode before using
8808         __builtin_types_compatible_p, since this is a C mode feature.
8810 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8812         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8813         (__write_nocancel): New macro.
8814         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8815         Rewrite as a function prototype.
8816         (write_not_cancel): Remove macro.
8817         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8818         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8819         (write_gmon): Likewise.
8820         * libio/fileops.c (_IO_new_file_write): Likewise.
8821         * login/utmp_file.c (pututline_file): Likewise.
8822         (updwtmp_file): Likewise.
8823         * stdio-common/psiginfo.c (psiginfo): Likewise.
8824         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8825         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8826         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8827         Likewise.
8828         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8829         Likewise.
8831         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8832         (__read_nocancel): New macro.
8833         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8834         __read_nocancel.
8835         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
8836         macro.
8837         (__read_nocancel): New prototype.
8838         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
8839         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
8840         with __read_nocancel.
8841         * intl/loadmsgcat.c (read): Likewise.
8842         * libio/fileops.c (_IO_file_read): Likewise.
8843         * locale/loadlocale.c (_nl_load_locale): Likewise.
8844         * login/utmp_file.c (getutent_r_file): Likewise.
8845         (internal_getut_r): Likewise.
8846         (getutline_r_file): Likewise.
8847         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8848         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8849         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8850         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8851         Likewise.
8852         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
8853         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8854         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8855         Likewise.
8856         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8857         Likewise.
8858         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8859         Likewise.
8860         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8861         Likewise.
8862         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8864 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8866         [BZ #21966]
8867         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
8868         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
8869         usable.
8871 2017-08-17  DJ Delorie  <dj@redhat.com>
8873         * bug17079.c: Update to new test harness.
8874         * test-digits-dots.c: Likewise.
8875         * test-netdb.c: Likewise.
8876         * tst-field.c: Likewise.
8877         * tst-nss-getpwent.c: Likewise.
8878         * tst-nss-static.c: Likewise.
8879         * tst-nss-test1.c: Likewise.
8880         * tst-nss-test2.c: Likewise.
8881         * tst-nss-test3.c: Likewise.
8882         * tst-nss-test4.c: Likewise.
8883         * tst-nss-test5.c: Likewise.
8885 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8887         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
8888         (open_not_cancel_2): Likewise.
8889         (open_nocancel): New macro.
8890         (open64_nocancel): Likewise.
8891         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
8892         (open_not_cancel_2): Likewise.
8893         (__open_nocancel): New prototype.
8894         (__open64_nocancel): Likewise.
8895         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8896         __open_nocancel.
8897         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
8898         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
8899         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
8900         with __open_nocancel.
8901         * csu/check_fds.c (check_one_fd): Likewise.
8902         * gmon/gmon.c (write_gmon): Likewise.
8903         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
8904         * intl/loadmsgcat.c (open): Likewise.
8905         * libio/fileops.c (_IO_file_open): Likewise.
8906         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8907         * locale/loadlocale.c (_nl_load_locale): Likewise.
8908         * login/utmp_file.c (setutent_file): Likewise.
8909         * misc/daemon.c (daemon): Likewise.
8910         * nss/nss_db/db-open.c (internal_setent): Likewise.
8911         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8912         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
8913         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8914         (__opendir): Likewise.
8915         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8916         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8917         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8918         (gethostid): Likewise.
8919         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8920         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8921         Likewise.
8922         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8923         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
8924         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8925         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8926         Likewise.
8927         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8928         Likewise.
8929         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8930         Likewise.
8931         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8932         Likewise.
8933         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8934         Likewise.
8935         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8936         Likewise.
8937         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8938         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8940 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
8942         * benchtests/bench-skeleton.c (main): Add support for
8943         latency benchmarking.
8944         * benchtests/scripts/bench.py: Add support for latency benchmarking.
8946 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8948         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
8949         the startup object.
8951 2017-08-17  Florian Weimer  <fweimer@redhat.com>
8953         * include/sys/socket.h (__opensock): Remove internal_function.
8954         * socket/opensock.c (__opensock): Likewise.
8955         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8957 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8959         [BZ #21944]
8960         * signal/bits/types/__sigval_t.h: New file.
8961         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
8962         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
8963         and define sigval_t using __sigval_t.
8964         * include/bits/types/__sigval_t.h: New file.
8965         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
8966         instead of <bits/types/__sigval_t.h>.
8967         (struct sigevent): Use __sigval_t instead of sigval_t.
8968         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
8969         instead of <bits/types/__sigval_t.h>.
8970         (siginfo_t): Use __sigval_t instead of sigval_t.
8971         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
8972         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8973         (struct sigevent): Use __sigval_t instead of sigval_t.
8974         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
8975         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8976         (siginfo_t): Use __sigval_t instead of sigval_t.
8977         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
8979 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8981         * NEWS: Remove "[Add new features here]" for 2.27.
8983 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
8985         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
8986         libc.so.
8988 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8990         * NEWS: Mention x86-64 FMA optimization.
8992 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
8994         [BZ #21912]
8995         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8996         Add e_expf-fma.
8997         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
8998         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
8999         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9001 2017-08-16  Andreas Schwab  <schwab@suse.de>
9003         [BZ #16750]
9004         CVE-2009-5064
9005         * elf/ldd.bash.in: Never run file directly.
9007 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9009         [BZ #21955]
9010         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9011         (L(SP_INF_0)): Likewise.
9013 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9015         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9016         run-built-tests.
9018 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9020         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9021         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9022         BROKEN_THREAD_SIGNALS code.
9023         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9024         request_list): Remove caller_pid member used for
9025         BROKEN_THREAD_SIGNALS.
9026         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9027         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9028         Remove BROKEN_THREAD_SIGNALS support.
9029         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9030         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9032 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9034         * gmon/Makefile (tests): Add tst-gmon.
9035         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9036         Set.
9037         (tests-special): Add tst-gmon-prof.out.
9038         (tst-gmon.out): Depend on clean-tst-gmon-data.
9039         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9040         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9041         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9042         startup object.
9043         * aclocal.m4 (GPROF): Set and substitute.
9044         * config.amke.in (GPROF): Set.
9045         * configure: Regenerate.
9047 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9049         * elf/elf.h A (NT_PPC_TAR): New macro.
9050         (NT_PPC_PPR): Likewise.
9051         (NT_PPC_DSCR): Likewise.
9052         (NT_PPC_EBB): Likewise.
9053         (NT_PPC_PMU): Likewise.
9054         (NT_PPC_TM_CGPR): Likewise.
9055         (NT_PPC_TM_CFPR): Likewise.
9056         (NT_PPC_TM_CVMX): Likewise.
9057         (NT_PPC_TM_CVSX): Likewise.
9058         (NT_PPC_TM_SPR): Likewise.
9059         (NT_PPC_TM_CTAR): Likewise.
9060         (NT_PPC_TM_CPPR): Likewise.
9061         (NT_PPC_TM_CDSCR): Likewise.
9063 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9065         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9066         regparm (2) instead of internal_function.
9067         (_MCOUNT_DECL): Adjust.
9069 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9071         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9072         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9074 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9076         * conform/data/sys/wait.h-data (si_value): Do not expect for
9077         XPG42.
9079 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9081         [BZ #21962]
9082         NSS: Create stubs for accidentally exported lookup functions.
9083         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9084         Remove declaration.
9085         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9086         (ether_hostton): Call __nss_ethers_lookup2 instead.
9087         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9088         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9089         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9090         (setup): Call __nss_netgroup_lookup2 instead.
9091         * nss/Makefile (routines): Add compat-lookup.
9092         * nss/Versions (GLIBC_2.27): Add symbol version.
9093         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9094         (DB_COMPAT_FCT): Remove.
9095         * nss/compat-lookup.c: New file.
9096         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9097         from databases.def.
9098         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9099         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9100         (netname2user): Call __nss_publickey_lookup2 instead.
9101         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9102         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9103         instead.
9105 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9106             Sergei Trofimovich  <slyfox@inbox.ru>
9108         [BZ #21908]
9109         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9110         Rename to MMAP2_PAGE_UNIT.
9111         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9112         __OFF_T_MATCHES_OFF64_T is not defined.
9113         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9114         uint64_t.
9115         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9116         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9118 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9120         i386: Do not set internal_function.
9121         * config.h.in (USE_REGPARMS, internal_function): Remove.
9122         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9123         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9125 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9127         * elf/dl-init.c (_dl_init): Remove internal_function.
9128         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9129         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9131 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9133         * elf/rtld.c (_dl_start): Remove internal_function.
9134         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9135         _dl_start.
9137 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9139         * elf/dl-fini.c (_dl_fini): Remove internal_function
9140         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9142 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9144         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9145         (bit_cpu_SHSTK): Likewise.
9146         (index_cpu_IBT): Likewise.
9147         (index_cpu_SHSTK): Likewise.
9148         (reg_IBT): Likewise.
9149         (reg_SHSTK): Likewise.
9150         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9151         Handle index_cpu_IBT and index_cpu_SHSTK.
9153 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9155         [BZ #19982]
9156         * po/fr.po: Fix spelling mistake.
9158 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9160         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9161         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9162         (_dl_catch_error, _dl_receive_error): Likewise.
9163         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9164         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9165         (_dl_deallocate_tls): Likewise.
9166         * include/dlfcn.h (_dl_addr): Likewise.
9167         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9168         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9169         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9170         Likewise.
9172 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9174         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9175         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9176         internal_function.
9177         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9179 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9181         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9182         internal_function.
9183         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9184         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9185         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9186         internal_function from _dl_make_stack_executable_hook member.
9187         (_dl_make_stack_executable): Remove internal_function.
9188         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9189         Likewise.
9190         * sysdeps/unix/sysv/linux/dl-execstack.c
9191         (_dl_make_stack_executable): Likewise.
9193 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9195         * sysdeps/unix/sysv/linux/netlinkaccess.h
9196         (__netlink_assert_response): Remove internal_function.
9197         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9198         (__netlink_assert_response): Likewise.
9200 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9202         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9203         internal_function.
9204         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9206 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9208         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9209         internal_function.
9210         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9211         * inet/netgroup.h (__internal_setnetgrent)
9212         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9213         * inet/getnetgrent_r.c (__internal_setnetgrent)
9214         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9215         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9216         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9217         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9218         * nss/nsswitch.h (db_lookup_function): Likewise.
9220 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9222         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9223         Remove internal_function.
9224         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9225         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9226         message argument on the stack.
9227         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9228         Likeweise.
9230 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9232         Adapt test case data to the changes in the thousands
9233         separators.
9235         [BZ #20756]
9236         * localedata/tst-langinfo.sh: Adapt test case data.
9237         * stdlib/tst-strfmon_l.c: Likewise.
9238         * stdlib/tst-strtod4.c: Likewise.
9239         * stdlib/tst-strtod5i.c: Likewise.
9241 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9243         [BZ #21242]
9244         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9245         Suppress pedantic warning resulting from statement expression.
9246         (__ASSERT_FUNCTION): Add missing __extension__.
9248 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9250         * benchtests/bench-memmove-large.c: Print output in JSON
9251         format.
9252         * benchtests/bench-memmove.c: Likewise.
9254         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9255         * benchtests/bench-memchr.c (do_one_test): Likewise.
9256         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9257         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9258         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9259         * benchtests/bench-memmove.c (do_one_test): Likewise.
9260         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9261         * benchtests/bench-memset.c (do_one_test): Likewise.
9262         * benchtests/bench-string.h (test_init): Remove memsets.
9264 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9266         * manual/lang.texi
9267         (Computing the Width of an Integer Data Type): Rename section to
9268         "Width of an Integer Type".  Remove inaccurate statement regarding
9269         lack of C language facilities for determining width of integer
9270         types, and reorder content to improve flow and context of
9271         discussion.
9273 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9275         * lang.texi (va_copy): Change standard from ISO to C99.
9276         (__va_copy): Add standard and header annotation.
9277         Update description for clarity of origins and current use.
9279 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9281         [BZ #21941]
9282         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9283         xssqrtqp requires operands to be in Vector Registers
9284         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9285         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9286         (__ieee754_sqrtf128): Likewise.
9288 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9290         * sysdeps/aarch64/memcmp.S (memcmp):
9291         Rewrite of optimized memcmp.
9293 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9295         Introduce ld.so exceptions.
9296         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9297         (_dl_exception_create, _dl_exception_create_format)
9298         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9299         (_dl_catch_exception): Declare.
9300         (_dl_catch_error): Update comment.
9301         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9302         errstring, malloced members with exception member.
9303         (_dl_out_of_memory): Remove.
9304         (fatal_error): New function, extracted from _dl_signal_error.
9305         (_dl_signal_exception, _dl_signal_cexception): New functions.
9306         (_dl_signal_error): Call _dl_exception_create to allocate an
9307         exception object.
9308         (_dl_catch_exception): New function, based on _dl_catch_error.
9309         (_dl_catch_error): Implement using _dl_catch_exception.
9310         * elf/dl-exception.c: New file.
9311         * elf/Makefile (dl-routines): Add dl-exception.
9312         (elide-routines.os): Likewise.
9313         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9314         _dl_exception_create_format, _dl_exception_free.
9315         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9316         _dl_signal_exception.
9317         * elf/dl-lookup.c (make_string): Remove.
9318         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9319         _dl_signal_cexception, _dl_exception_free.
9320         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9321         _dl_signal_exception.
9322         * elf/dl-sym.c (do_sym): Likewise.
9323         * elf/dl-version.c (make_string): Remove.
9324         (match_symbol): Use _dl_exception_create_format,
9325         _dl_signal_cexception, _dl_exception_free.
9326         (_dl_check_map_versions): Likewise.
9327         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9328         _dl_catch_exception.
9329         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9330         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9331         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9332         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9333         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9334         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9335         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9336         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9337         Likewise.
9338         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9340         (ld.so): Likewise.
9341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9342         (ld.so): Likewise.
9343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9344         Likewise.
9345         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9346         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9347         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9348         Likewise.
9349         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9350         Likewise.
9351         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9353 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9355         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9356         attribute_hidden, internal_function.
9357         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9358         internal_function.
9360 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9362         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9363         function which calls __builtin_unreachable.
9365 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9367         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9368         Indian monetary formatting
9369         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9370         test cases.
9372 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9374         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9375         Fix typo in comment.
9377         [BZ #21928]
9378         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9379         PTRACE_SEIZE_DEVEL): Remove.
9380         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9381         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9382         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9383         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9384         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9386 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9388         * posix/bits/types.h (__qaddr_t): Remove.
9390         [BZ #21457]
9391         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9392         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9393         __glibc_reserved1.
9394         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9395         (ucontext_t): Use __ctx with uc_flags.
9396         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9397         (__ctxt): Likewise.
9398         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9399         __glibc_reserved1.
9400         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9401         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9402         __glibc_reserved1.
9403         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9404         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9405         __glibc_reserved1.
9406         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9407         macro.
9408         (ucontext_t): Use __ctx with uc_flags.
9409         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9410         (ucontext_t): Use __ctx with uc_flags.
9411         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9412         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9413         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9414         (ucontext_t): Use __ctx with uc_flags.
9415         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9416         undefine further down.
9417         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9418         __glibc_reserved1.
9419         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9420         undefine further down.
9421         (ucontext_t): Use __ctx with uc_flags.
9422         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9423         undefine further down.
9424         (ucontext_t): Use __ctx with uc_flags.
9425         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9426         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9427         Rename uc_pad to __glibc_reserved1.
9428         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9429         undefine further down.
9430         (ucontext_t): Use __ctx with uc_flags.
9431         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9432         further down.
9433         (ucontext_t): Use __ctx with uc_flags.
9434         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9435         __ctx with uc_flags.
9436         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9437         (ucontext_t): Use __ctx with uc_flags.
9438         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9439         __ctx with uc_flags.
9441 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9443         [BZ #21932]
9444         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9445         before early return.
9447 2017-08-09  Andreas Schwab  <schwab@suse.de>
9449         [BZ #21041]
9450         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9451         renamed alias.
9453         [BZ #21041]
9454         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9455         tst-compat-forwarder.
9456         (modules-names): Add tst-compat-forwarder-mod.
9457         ($(objpfx)tst-compat-forwarder): Depend on
9458         $(objpfx)tst-compat-forwarder-mod.so.
9459         * nptl/tst-compat-forwarder.c: New file.
9460         * nptl/tst-compat-forwarder-mod.c: New file.
9462 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9464         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9465         comments.
9467         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9468         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9469         memcpy_falkor.
9470         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9471         Bump.
9472         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9473         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9474         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9475         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9476         Add falkor.
9477         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9478         New macro.
9480 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9482         [BZ #759]
9483         * manual/setjmp.texi (getcontex): Document uc_stack value
9484         compatibility differences.
9486 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9488         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9489         (old_malloc_hook): Likewise.
9490         (old_memalign_hook): Likewise.
9491         (old_realloc_hook): Likewise.
9492         (struct hdr): Likewise.
9493         (flood): Likewise.
9494         (freehook): Likewise.
9495         (mallochook): Likewise.
9496         (memalignhook): Likewise.
9497         (reallochook): Likewise.
9498         (mprobe): Likewise.
9499         * malloc/mtrace.c (mallwatch): Likewise.
9500         (tr_old_free_hook): Likewise.
9501         (tr_old_malloc_hook): Likewise.
9502         (tr_old_realloc_hook): Likewise.
9503         (tr_old_memalign_hook): Likewise.
9504         (tr_where): Likewise.
9505         (lock_and_info): Likewise.
9506         (tr_freehook): Likewise.
9507         (tr_mallochook): Likewise.
9508         (tr_reallochook): Likewise.
9509         (tr_memalignhook): Likewise.
9510         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9511         * misc/mmap.c (__mmap): Likewise.
9512         * misc/mmap64.c (__mmap64): Likewise.
9513         * misc/mprotect.c (__mprotect): Likewise.
9514         * misc/msync.c (msync): Likewise.
9515         * misc/munmap.c (__munmap): Likewise.
9516         * posix/posix_madvise.c (posix_madvise): Likewise.
9517         * socket/send.c (__send): Likewise.
9518         * socket/sendto.c (__sendto): Likewise.
9519         * socket/setsockopt.c (__setsockopt): Likewise.
9520         * string/memcmp.c (__ptr_t): Remove macro.
9521         (MEMCMP): Use void * instead of ptr_t.
9522         * string/memrchr.c (__ptr_t): Remove macro.
9523         (__memrchr): Use void * instead of ptr_t.
9524         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9525         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9526         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9527         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9528         * sysdeps/mach/msync.c (msync): Likewise.
9529         * sysdeps/mach/munmap.c (__munmap): Likewise.
9530         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9531         Likewise.
9532         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9533         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9534         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9535         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9536         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9537         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9538         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9539         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9540         Likewise.
9541         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9542         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9543         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9544         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9545         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9546         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9547         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9548         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9549         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9550         Likewise.
9551         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9552         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9553         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9554         (MEMCMP): Use void * instead of ptr_t.
9555         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9556         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9558 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9560         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9561         return statement.
9563 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9565         [BZ #21913]
9566         * csu/libc-tls.c: Include <startup.h> first.
9567         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9568         * elf/dl-tunables.c: Include <startup.h> first.
9569         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9570         * sysdeps/generic/startup.h: New file.
9571         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9572         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9573         (I386_USE_SYSENTER): New.  Defined to 0.
9575 2017-08-08  Andreas Schwab  <schwab@suse.de>
9577         [BZ #21041]
9578         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9579         * nptl/pt-system.c (system): Likewise.
9581 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9583         [BZ #21780]
9584         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9585         EOPNOTSUPP.
9586         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9587         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9588         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9589         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9590         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9591         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9592         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9594 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9596         [BZ #21899]
9597         * bits/sigaction.h (struct sigaction): Define sa_handler and
9598         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9599         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9600         [__USE_XOPEN_EXTENDED].
9601         (SA_RESTART): Likewise.
9602         (SA_NODEFER): Likewise.
9603         (SA_RESETHAND): Likewise.
9604         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9605         (struct sigaction): Define sa_handler and sa_sigaction using union
9606         also for [__USE_XOPEN_EXTENDED].
9607         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9608         [__USE_XOPEN_EXTENDED].
9609         (SA_RESTART): Likewise.
9610         (SA_NODEFER): Likewise.
9611         (SA_RESETHAND): Likewise.
9612         * sysdeps/unix/sysv/linux/bits/sigaction.h
9613         (struct sigaction): Define sa_handler and sa_sigaction using union
9614         also for [__USE_XOPEN_EXTENDED].
9615         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9616         [__USE_XOPEN_EXTENDED].
9617         (SA_RESTART): Likewise.
9618         (SA_NODEFER): Likewise.
9619         (SA_RESETHAND): Likewise.
9620         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9621         (struct sigaction): Define sa_handler and sa_sigaction using union
9622         also for [__USE_XOPEN_EXTENDED].
9623         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9624         [__USE_XOPEN_EXTENDED].
9625         (SA_RESTART): Likewise.
9626         (SA_NODEFER): Likewise.
9627         (SA_RESETHAND): Likewise.
9628         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9629         (struct sigaction): Define sa_handler and sa_sigaction using union
9630         also for [__USE_XOPEN_EXTENDED].
9631         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9632         [__USE_XOPEN_EXTENDED].
9633         (SA_RESTART): Likewise.
9634         (SA_NODEFER): Likewise.
9635         (SA_RESETHAND): Likewise.
9636         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9637         (struct sigaction): Define sa_handler and sa_sigaction using union
9638         also for [__USE_XOPEN_EXTENDED].
9639         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9640         [__USE_XOPEN_EXTENDED].
9641         (SA_RESTART): Likewise.
9642         (SA_NODEFER): Likewise.
9643         (SA_RESETHAND): Likewise.
9644         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9645         (struct sigaction): Define sa_handler and sa_sigaction using union
9646         also for [__USE_XOPEN_EXTENDED].
9647         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9648         [__USE_XOPEN_EXTENDED].
9649         (SA_RESTART): Likewise.
9650         (SA_NODEFER): Likewise.
9651         (SA_RESETHAND): Likewise.
9652         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9653         (struct sigaction): Define sa_handler and sa_sigaction using union
9654         also for [__USE_XOPEN_EXTENDED].
9655         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9656         [__USE_XOPEN_EXTENDED].
9657         (SA_RESTART): Likewise.
9658         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9659         (SA_RESETHAND): Likewise.
9660         (SA_INTERRUPT): Define only for [__USE_MISC].
9661         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9662         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9663         [__USE_MISC].
9664         (SA_STACK): Define only for [__USE_MISC].
9665         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9666         (struct sigaction): Define sa_handler and sa_sigaction using union
9667         also for [__USE_XOPEN_EXTENDED].
9668         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9669         [__USE_XOPEN_EXTENDED].
9670         (SA_RESTART): Likewise.
9671         (SA_NODEFER): Likewise.
9672         (SA_RESETHAND): Likewise.
9673         (SA_NOPTRACE): Define only for [__USE_MISC].
9675         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9676         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9677         (struct catalog_info): Likewise.
9678         * inet/htontest.c (lo): Likewise.
9679         (foo): Likewise.
9680         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9681         * inet/inet_net.c (inet_network): Likewise.
9682         * inet/inet_netof.c (inet_netof): Likewise.
9683         * inet/rcmd.c (__ivaliduser): Likewise.
9684         (iruserok): Likewise.
9685         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9686         * locale/programs/locale-spec.c (locale_special): Likewise.
9687         * nis/nis_findserv.c (struct findserv_req): Likewise.
9688         (__nis_findfastest_with_timeout): Likewise.
9689         * nss/test-netdb.c (test_network): Likewise.
9690         * resolv/inet_neta.c (inet_neta): Likewise.
9691         * resolv/ns_date.c (ns_datetosecs): Likewise.
9692         (SECS_PER_DAY): Likewise.
9693         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9694         Likewise.
9695         * resolv/res_comp.c (__putlong): Likewise.
9696         (__putshort): Likewise.
9697         (_getlong): Likewise.
9698         (_getshort): Likewise.
9699         * resolv/res_debug.c (p_time): Likewise.
9700         (precsize_ntoa): Likewise.
9701         (precsize_aton): Likewise.
9702         (latlon2ul): Likewise.
9703         (loc_aton): Likewise.
9704         (loc_ntoa): Likewise.
9705         * resolv/res_hconf.c (struct netaddr): Likewise.
9706         (_res_hconf_reorder_addrs): Likewise.
9707         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9708         (clnttcp_control): Likewise.
9709         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9710         (clntudp_control): Likewise.
9711         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9712         (clntunix_control): Likewise.
9713         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9714         * sunrpc/rpc/auth.h (union des_block): Likewise.
9715         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9716         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9717         (xdrrec_create): Likewise.
9718         (xdrrec_endofrecord): Likewise.
9719         (flush_out): Likewise.
9720         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9721         (xdrstdio_putlong): Likewise.
9722         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9723         Likewise.
9725         * misc/sys/cdefs.h (__long_double_t): Remove.
9726         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9727         instead of __long_double_t,
9728         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9730 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9732         * benchtests/scripts/compare_strings.py: Avoid display error when
9733         running on a text terminal.
9735         * benchtests/scripts/compare_strings.py (main): Add an
9736         optional -base option.
9737         (process_results): New argument base_func.
9739         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9740         hardcoding memcpy.
9741         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9742         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9744 2017-08-07  Andreas Schwab  <schwab@suse.de>
9746         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9747         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9748         * intl/Makefile ($(objpfx)tst-gettext.out)
9749         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9750         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9751         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9752         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9753         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9754         * posix/Makefile ($(objpfx)globtest.out)
9755         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9756         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9757         ($(objpfx)tst-printf.out): Likewise.
9758         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9759         ($(objpfx)tst-setcontext3.out): Likewise.
9761 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9763         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9764         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9765         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9766         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9767         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9768         and mptan-fma.
9769         (CFLAGS-doasin-fma.c): New.
9770         (CFLAGS-dosincos-fma.c): Likewise.
9771         (CFLAGS-e_asin-fma.c): Likewise.
9772         (CFLAGS-e_atan2-fma.c): Likewise.
9773         (CFLAGS-e_exp-fma.c): Likewise.
9774         (CFLAGS-e_log-fma.c): Likewise.
9775         (CFLAGS-e_pow-fma.c): Likewise.
9776         (CFLAGS-halfulp-fma.c): Likewise.
9777         (CFLAGS-mpa-fma.c): Likewise.
9778         (CFLAGS-mpatan-fma.c): Likewise.
9779         (CFLAGS-mpatan2-fma.c): Likewise.
9780         (CFLAGS-mpexp-fma.c): Likewise.
9781         (CFLAGS-mplog-fma.c): Likewise.
9782         (CFLAGS-mpsqrt-fma.c): Likewise.
9783         (CFLAGS-mptan-fma.c): Likewise.
9784         (CFLAGS-s_atan-fma.c): Likewise.
9785         (CFLAGS-sincos32-fma.c): Likewise.
9786         (CFLAGS-slowexp-fma.c): Likewise.
9787         (CFLAGS-slowpow-fma.c): Likewise.
9788         (CFLAGS-s_sin-fma.c): Likewise.
9789         (CFLAGS-s_tan-fma.c): Likewise.
9790         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9791         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9792         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9793         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9794         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9795         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9796         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9797         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9798         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9799         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9800         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9801         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9802         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9803         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9804         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9805         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9806         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9807         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9808         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9809         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9810         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9811         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9812         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9813         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9814         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9815         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9816         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9817         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9818         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9819         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9820         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9822 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9824         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9825         (min_of_type_f): New macro.
9826         (min_of_type_): Likewise.
9827         (min_of_type_l): Likewise.
9828         (min_of_type_f128): Likewise.
9829         (min_of_type): Define using __MATH_TG and taking an expression
9830         argument.
9831         (math_check_force_underflow): Pass expression instead of type to
9832         min_of_type.
9833         (math_check_force_underflow_nonneg): Likewise.
9835 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9837         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
9838         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
9839         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
9841 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9843         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9844         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
9845         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
9846         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
9847         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
9848         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
9849         memcpy_chk-nonshared, mempcpy_chk-nonshared,
9850         memmove_chk-nonshared and memset_chk-nonshared
9851         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
9852         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
9853         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
9854         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
9855         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
9856         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
9857         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
9858         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
9859         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
9860         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
9861         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
9862         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
9863         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
9864         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
9865         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
9866         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
9867         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
9868         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
9869         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
9870         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
9871         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
9872         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
9873         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
9874         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
9875         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
9876         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
9877         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
9878         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
9879         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
9880         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
9881         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
9882         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
9883         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
9884         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9885         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9886         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
9887         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
9888         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
9889         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
9890         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
9891         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
9892         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
9893         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
9894         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
9895         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
9896         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
9897         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
9898         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
9899         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
9900         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
9901         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
9902         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
9903         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
9904         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
9905         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
9906         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
9907         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
9908         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
9909         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
9910         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
9911         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
9912         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
9913         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
9914         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
9915         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
9916         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
9917         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
9918         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
9919         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
9920         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
9921         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
9922         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9923         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9924         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9925         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9926         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9927         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9928         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9929         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9930         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9931         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9932         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9933         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9934         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9935         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9936         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9937         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9938         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9939         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9940         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9941         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9942         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9943         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9944         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9945         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9946         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9947         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9948         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9949         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9950         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9951         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9952         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9953         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9954         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9955         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9956         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9957         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9958         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9960 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9962         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
9963         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
9964         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
9965         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
9966         svml_d_log2_core-sse2, svml_d_log4_core-sse,
9967         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
9968         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
9969         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
9970         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
9971         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
9972         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
9973         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
9974         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
9975         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
9976         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
9977         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
9978         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
9979         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
9980         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
9981         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
9982         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
9983         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
9984         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
9985         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
9986         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
9987         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
9988         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
9989         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
9990         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
9991         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
9992         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
9993         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
9994         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
9995         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
9996         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
9997         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
9998         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
9999         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10000         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10001         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10002         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10003         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10004         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10005         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10006         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10007         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10008         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10009         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10010         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10011         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10012         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10013         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10014         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10015         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10016         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10017         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10018         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10019         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10020         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10021         ...
10022         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10023         Don't include <sysdep.h> nor <init-arch.h>.
10024         (_ZGVbN2v_cos): Removed.
10025         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10026         ...
10027         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10028         Don't include <sysdep.h> nor <init-arch.h>.
10029         (_ZGVdN4v_cos): Removed.
10030         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10031         ...
10032         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10033         Don't include <sysdep.h> nor <init-arch.h>.
10034         (_ZGVeN8v_cos): Removed.
10035         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10036         ...
10037         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10038         Don't include <sysdep.h> nor <init-arch.h>.
10039         (_ZGVbN2v_exp): Removed.
10040         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10041         ...
10042         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10043         Don't include <sysdep.h> nor <init-arch.h>.
10044         (_ZGVdN4v_exp): Removed.
10045         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10046         ...
10047         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10048         Don't include <sysdep.h> nor <init-arch.h>.
10049         (_ZGVeN8v_exp): Removed.
10050         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10051         ...
10052         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10053         Don't include <sysdep.h> nor <init-arch.h>.
10054         (_ZGVbN2v_log): Removed.
10055         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10056         ...
10057         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10058         Don't include <sysdep.h> nor <init-arch.h>.
10059         (_ZGVdN4v_log): Removed.
10060         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10061         ...
10062         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10063         Don't include <sysdep.h> nor <init-arch.h>.
10064         (_ZGVeN8v_log): Removed.
10065         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10066         ...
10067         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10068         Don't include <sysdep.h> nor <init-arch.h>.
10069         (_ZGVbN2vv_pow): Removed.
10070         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10071         ...
10072         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10073         Don't include <sysdep.h> nor <init-arch.h>.
10074         (_ZGVdN4vv_pow): Removed.
10075         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10076         ...
10077         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10078         Don't include <sysdep.h> nor <init-arch.h>.
10079         (_ZGVeN8vv_pow): Removed.
10080         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10081         ...
10082         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10083         Don't include <sysdep.h> nor <init-arch.h>.
10084         (_ZGVbN2v_sin): Removed.
10085         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10086         ...
10087         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10088         Don't include <sysdep.h> nor <init-arch.h>.
10089         (_ZGVbN4v_sin): Removed.
10090         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10091         ...
10092         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10093         Don't include <sysdep.h> nor <init-arch.h>.
10094         (_ZGVbN8v_sin): Removed.
10095         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10096         ...
10097         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10098         Don't include <sysdep.h> nor <init-arch.h>.
10099         (_ZGVbN2vvv_sincos): Removed.
10100         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10101         ...
10102         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10103         Don't include <sysdep.h> nor <init-arch.h>.
10104         (_ZGVdN4vvv_sincos): Removed.
10105         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10106         ...
10107         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10108         Don't include <sysdep.h> nor <init-arch.h>.
10109         (_ZGVeN8vvv_sincos): Removed.
10110         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10111         ...
10112         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10113         Don't include <sysdep.h> nor <init-arch.h>.
10114         (_ZGVeN16v_cosf): Removed.
10115         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10116         ...
10117         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10118         Don't include <sysdep.h> nor <init-arch.h>.
10119         (_ZGVbN4v_cosf): Removed.
10120         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10121         ...
10122         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10123         Don't include <sysdep.h> nor <init-arch.h>.
10124         (_ZGVdN8v_cosf): Removed.
10125         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10126         ...
10127         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10128         Don't include <sysdep.h> nor <init-arch.h>.
10129         (_ZGVeN16v_expf): Removed.
10130         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10131         ...
10132         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10133         Don't include <sysdep.h> nor <init-arch.h>.
10134         (_ZGVbN4v_expf): Removed.
10135         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10136         ...
10137         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10138         Don't include <sysdep.h> nor <init-arch.h>.
10139         (_ZGVdN8v_expf): Removed.
10140         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10141         ...
10142         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10143         Don't include <sysdep.h> nor <init-arch.h>.
10144         (_ZGVeN16v_logf): Removed.
10145         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10146         ...
10147         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10148         Don't include <sysdep.h> nor <init-arch.h>.
10149         (_ZGVbN4v_logf): Removed.
10150         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10151         ...
10152         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10153         Don't include <sysdep.h> nor <init-arch.h>.
10154         (_ZGVdN8v_logf): Removed.
10155         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10156         ...
10157         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10158         Don't include <sysdep.h> nor <init-arch.h>.
10159         (_ZGVeN16vv_powf): Removed.
10160         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10161         ...
10162         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10163         Don't include <sysdep.h> nor <init-arch.h>.
10164         (_ZGVbN4vv_powf): Removed.
10165         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10166         ...
10167         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10168         Don't include <sysdep.h> nor <init-arch.h>.
10169         (_ZGVdN8vv_powf): Removed.
10170         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10171         ...
10172         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10173         Don't include <sysdep.h> nor <init-arch.h>.
10174         (_ZGVeN16vvv_sincosf): Removed.
10175         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10176         ...
10177         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10178         Don't include <sysdep.h> nor <init-arch.h>.
10179         (_ZGVbN4vvv_sincosf): Removed.
10180         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10181         ...
10182         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10183         Don't include <sysdep.h> nor <init-arch.h>.
10184         (_ZGVdN8vvv_sincosf): Removed.
10185         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10186         ...
10187         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10188         Don't include <sysdep.h> nor <init-arch.h>.
10189         (_ZGVeN16v_sinf): Removed.
10190         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10191         ...
10192         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10193         Don't include <sysdep.h> nor <init-arch.h>.
10194         (_ZGVbN4v_sinf): Removed.
10195         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10196         ...
10197         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10198         Don't include <sysdep.h> nor <init-arch.h>.
10199         (_ZGVdN8v_sinf): Removed.
10201 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10203         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10204         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10205         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10206         s_rint-sse4_1 and s_rintf-sse4_1.
10207         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10208         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10209         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10210         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10211         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10212         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10213         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10214         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10215         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10216         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10217         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10218         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10219         (__ceil): Removed.
10220         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10221         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10222         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10223         (__ceilf): Removed.
10224         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10225         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10226         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10227         (__floor): Removed.
10228         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10229         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10230         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10231         (__floorf): Removed.
10232         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10233         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10234         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10235         (__nearbyint): Removed.
10236         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10237         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10238         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10239         (__nearbyintf): Removed.
10240         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10241         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10242         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10243         (__rint): Removed.
10244         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10245         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10246         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10247         (__rintf): Removed.
10249 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10251         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10252         SHARED.  Avoid dynamic relocation against main in static PIE.
10254 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10256         [BZ #21815]
10257         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10258         (LDFLAGS-tst-prelink): Likewise.
10260 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10262         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10263         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10264         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10265         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10266         (INTERNAL_SYSCALL_NCS): Likewise.
10267         (LOADARGS_1): Likewise.
10268         (LOADARGS_5): Likewise.
10269         (RESTOREARGS_1): Likewise.
10270         (RESTOREARGS_5): Likewise.
10272 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10274         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10275         (MEMPCPY_SYMBOL): Likewise.
10276         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10277         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10278         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10279         in libc.a.
10280         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10281         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10282         Likewise.
10283         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10284         (__hidden_ver1): Don't use in libc.a.
10285         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10286         (__mempcpy): Don't create a weak alias in libc.a.
10287         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10288         libc.a.
10289         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10290         (__hidden_ver1): Don't use in libc.a.
10292 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10294         * config.make.in (have-insert): New.
10295         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10296         supports INSERT in linker script.
10297         (AC_SUBST(libc_cv_insert): New.
10298         * configure: Regenerated.
10299         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10300         if $(have-insert) == yes.
10302 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10304         * elf/Makefile (tests): Add vismain only if
10305         $(have-protected-data) == yes.
10306         (tests-pie): Likewise.
10308 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10310         [BZ #21871]
10311         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10312         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10314 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10316         [BZ #21790]
10317         * sysdeps/i386/i586/memset.S
10318         (__memset_zero_constant_len_parameter): Removed.
10319         * sysdeps/i386/i686/memset.S
10320         (__memset_zero_constant_len_parameter): Likewise.
10321         * sysdeps/i386/i686/multiarch/memset_chk.S
10322         (__memset_zero_constant_len_parameter): Likewise.
10323         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10324         Likewise.
10326 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10328         * stdlib/getentropy.c (getentropy): Change return type to int.
10330 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10332         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10334 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10336         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10337         u_intN_t.
10338         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10339         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10340         Likewise.
10341         (ieee_float_shape_type): Likewise.
10342         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10343         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10344         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10345         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10346         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10347         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10348         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10349         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10350         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10351         Likewise.
10352         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10353         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10354         (__ieee754_yn): Likewise.
10355         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10356         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10357         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10358         Likewise.
10359         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10360         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10361         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10362         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10363         (__erfc): Likewise.
10364         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10365         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10366         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10367         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10368         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10369         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10370         Likewise.
10371         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10372         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10373         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10374         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10375         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10376         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10377         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10378         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10379         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10380         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10381         (__issignaling): Likewise.
10382         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10383         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10384         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10385         Likewise.
10386         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10387         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10388         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10389         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10390         Likewise.
10391         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10392         Likewise.
10393         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10394         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10395         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10396         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10397         (__erfcf): Likewise.
10398         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10399         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10400         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10401         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10402         Likewise.
10403         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10404         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10405         Likewise.
10406         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10407         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10408         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10409         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10410         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10411         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10412         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10413         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10414         Likewise.
10415         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10416         Likewise.
10417         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10418         Likewise.
10419         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10420         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10421         Likewise.
10422         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10423         Likewise.
10424         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10425         (__ieee754_ynl): Likewise.
10426         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10427         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10428         Likewise.
10429         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10430         Likewise.
10431         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10432         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10433         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10434         Likewise.
10435         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10436         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10437         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10438         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10439         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10440         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10441         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10442         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10443         Likewise.
10444         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10445         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10446         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10447         Likewise.
10448         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10449         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10450         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10451         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10452         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10453         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10454         Likewise.
10455         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10456         Likewise.
10457         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10458         Likewise.
10459         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10460         Likewise.
10461         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10462         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10463         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10464         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10465         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10466         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10467         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10468         Likewise.
10469         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10470         Likewise.
10471         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10472         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10473         Likewise.
10474         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10475         (__ieee754_remainderl): Likewise.
10476         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10477         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10478         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10479         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10480         Likewise.
10481         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10482         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10483         Likewise.
10484         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10485         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10486         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10487         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10488         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10489         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10490         Likewise.
10491         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10492         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10493         (__ieee754_y0l): Likewise.
10494         (pzero): Likewise.
10495         (qzero): Likewise.
10496         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10497         (__ieee754_y1l): Likewise.
10498         (pone): Likewise.
10499         (qone): Likewise.
10500         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10501         (__ieee754_ynl): Likewise.
10502         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10503         (__ieee754_lgammal_r): Likewise.
10504         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10505         Likewise.
10506         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10507         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10508         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10509         (__erfcl): Likewise.
10510         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10511         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10512         Likewise.
10513         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10514         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10515         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10516         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10517         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10518         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10519         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10520         Likewise.
10521         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10522         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10523         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10524         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10525         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10526         Likewise.
10527         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10528         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10529         Likewise.
10530         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10531         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10532         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10533         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10534         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10536 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10538         [BZ #21885]
10539         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10540         on memory allocation failure.
10542 2017-08-03  Alan Modra  <amodra@gmail.com>
10544         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10545         tst-tlsopt-powerpc.c with function name change and no test harness.
10546         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10547         Call tls_get_addr_opt_test.
10548         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10549         (modules-names): Add mod-tlsopt-powerpc.
10550         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10551         (tst-tlsopt-powerpc): Depend on .so.
10552         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10553         define.  Expand use in TLS_GD and TLS_LD.
10555 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10557         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10558         function.
10559         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10561 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10563         [BZ #21686]
10564         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10565         comparing size with that of double.
10566         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10567         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10568         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10569         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10570         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10571         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10572         unsigned __int128 types.
10574 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10576         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10577         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10578         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10579         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10580         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10582 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10584         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10586 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10588         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10589         of SHARED.
10590         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10591         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10592         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10593         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10594         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10595         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10596         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10598 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10600         [BZ #21685]
10601         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10602         bit-field expressions passed to sizeof or typeof.
10603         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10604         (__TGMATH_F128): Likewise.
10605         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10606         (__TGMATH_CF128): Likewise.
10607         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10608         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10609         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10610         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10611         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10612         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10613         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10614         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10615         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10616         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10617         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10618         (__TGMATH_UNARY_IMAG): Likewise.
10619         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10620         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10621         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10622         type.
10623         (define_vars_for_type): Handle bit_field type specially.
10624         (Tests.__init__): Declare structure with bit-field element.
10626 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10628         [BZ #21791]
10629         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10630         (MEMCPY_CHK): Define only if SHARED is defined.
10631         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10632         Likewise.
10633         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10634         Likewise.
10636 See ChangeLog.18 for earlier changes.