support_become_root: Enable file creation in user namespaces
[glibc.git] / ChangeLog
bloba5530971a0f84619386f459dc4688360b9e27508
1 2017-11-17  Florian Weimer  <fweimer@redhat.com>
3         support_become_root: Enable file creation in namespaces.
4         * support/support_become_root.c (setup_mapping): New function.
5         (support_become_root): Call it.
7 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
9         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
10         macro.
12 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
15         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
17 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
19         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22         version to 4.14.
24 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26         * INSTALL: Fix botched up regeneration.
28         * NEWS: Update sourceare link to https.
29         * configure.ac: Likewise.
30         * crypt/md5test-giant.c: Likewise.
31         * dlfcn/bug-atexit1.c: Likewise.
32         * dlfcn/bug-atexit2.c: Likewise.
33         * localedata/README: Likewise.
34         * malloc/tst-mallocfork.c: Likewise.
35         * manual/install.texi: Likewise.
36         * nptl/tst-pthread-getattr.c: Likewise.
37         * stdio-common/tst-fgets.c: Likewise.
38         * stdio-common/tst-fwrite.c: Likewise.
39         * sunrpc/Makefile: Likewise.
40         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
41         * wcsmbs/tst-mbrtowc2.c: Likewise.
42         * configure: Regenerate.
43         * INSTALL: Regenerate.
45 2017-11-15  Martin Sebor  <msebor@redhat.com>
47         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
48         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
49         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
51 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
53         [BZ #22145]
54         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
55         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
57         [BZ #22145]
58         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
59         Defer is_pty check until end of the function.
60         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
62         [BZ #22145]
63         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
64         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
65         (ttyname): Likewise.
66         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
67         (__ttyname_r): Likewise.
69         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
70         int to bool.
72         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
74         * manual/terminal.texi (Is It a Terminal):
75         Mention ENODEV for ttyname and ttyname_r.
77 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
79         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
80         constant and macro.
82         * sysdeps/unix/sysv/linux/bits/mman-linux.h
83         [__USE_MISC] (MADV_WIPEONFORK): New macro.
84         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
85         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
86         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
87         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
89 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
91         * signal/sigrelse.c (sigrelse): Optimize implementation.
93         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
94         (__sigpause): Rely on __sigsuspend to implement single thread
95         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
97 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
99         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
100         kernel version to 4.14.
102 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
104         [BZ #22442]
105         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
106         Check if ifname is too long.
108 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
110         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
112 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
114         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
115         was accidentally lost.
117 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
119         * localedata/locales/az_IR: Add standard copyright header.
121 2017-11-15  Florian Weimer  <fweimer@redhat.com>
123         [BZ #22439]
124         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
125         not just the top one.  Output a new "subheaps" statistic.
127 2017-11-15  Florian Weimer  <fweimer@redhat.com>
129         [BZ #22408]
130         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
131         under the per-arena lock.
132         * malloc/Makefile (tests): Add tst-malloc_info.
133         (tst-malloc_info): Link with libpthread.
134         * malloc/tst-malloc_info.c: New file.
136 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
138         [BZ #21660]
139         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
140         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
141         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
142         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
143         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
144         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
145         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
146         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
147         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
148         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
149         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
150         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
151         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
152         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
153         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
154         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
155         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
156         (__floating_type): Likewise.
157         (__real_integer_type): Likewise.
158         (__complex_integer_type): Likewise.
159         (__expr_is_real): Likewise.
160         (__tgmath_real_type_sub): Likewise.
161         (__tgmath_real_type): Likewise.
162         (__tgmath_complex_type_sub): Likewise.
163         (__tgmath_complex_type): Likewise.
164         (__TGMATH_F128): Likewise.
165         (__TGMATH_CF128): Likewise.
166         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
167         new macros.
168         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
169         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
170         Likewise.
171         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
172         Likewise.
173         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
174         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
175         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
176         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
177         Likewise.
178         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
179         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
180         Likewise.
181         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
182         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
183         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
184         Likewise.
185         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
186         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
187         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
188         (cimag): Likewise.
189         (creal): Likewise.
191 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
193         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
194         for stpncpy calls for GCC 8.
195         (test_strncat): Disable -Wstringop-truncation warning for strncat
196         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
197         strncat call for GCC 7.
198         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
199         calls for GCC 8.
200         (test_memcmp): Use memcpy instead of strncpy for calls not copying
201         trailing NUL.
203         * string/bug-strncat1.c: Include <libc-diag.h>.
204         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
206 2017-11-13  Claude Paroz <claude@2xlibre.net>
208         [BZ #22387]
209         * localedata/locales/aa_DJ: Improved readibility by replacing
210         <Uxxxx> sequences in the ASCII printable range by their ASCII
211         character equivalents.
212         * localedata/locales/aa_ER: Likewise.
213         * localedata/locales/aa_ER@saaho: Likewise.
214         * localedata/locales/aa_ET: Likewise.
215         * localedata/locales/af_ZA: Likewise.
216         * localedata/locales/agr_PE: Likewise.
217         * localedata/locales/ak_GH: Likewise.
218         * localedata/locales/am_ET: Likewise.
219         * localedata/locales/anp_IN: Likewise.
220         * localedata/locales/ar_AE: Likewise.
221         * localedata/locales/ar_BH: Likewise.
222         * localedata/locales/ar_DZ: Likewise.
223         * localedata/locales/ar_EG: Likewise.
224         * localedata/locales/ar_IN: Likewise.
225         * localedata/locales/ar_IQ: Likewise.
226         * localedata/locales/ar_JO: Likewise.
227         * localedata/locales/ar_KW: Likewise.
228         * localedata/locales/ar_LB: Likewise.
229         * localedata/locales/ar_LY: Likewise.
230         * localedata/locales/ar_MA: Likewise.
231         * localedata/locales/ar_OM: Likewise.
232         * localedata/locales/ar_QA: Likewise.
233         * localedata/locales/ar_SA: Likewise.
234         * localedata/locales/ar_SD: Likewise.
235         * localedata/locales/ar_SS: Likewise.
236         * localedata/locales/ar_SY: Likewise.
237         * localedata/locales/ar_TN: Likewise.
238         * localedata/locales/ar_YE: Likewise.
239         * localedata/locales/as_IN: Likewise.
240         * localedata/locales/ast_ES: Likewise.
241         * localedata/locales/ayc_PE: Likewise.
242         * localedata/locales/az_AZ: Likewise.
243         * localedata/locales/az_IR: Likewise.
244         * localedata/locales/be_BY: Likewise.
245         * localedata/locales/be_BY@latin: Likewise.
246         * localedata/locales/bem_ZM: Likewise.
247         * localedata/locales/ber_DZ: Likewise.
248         * localedata/locales/ber_MA: Likewise.
249         * localedata/locales/bg_BG: Likewise.
250         * localedata/locales/bhb_IN: Likewise.
251         * localedata/locales/bho_IN: Likewise.
252         * localedata/locales/bi_VU: Likewise.
253         * localedata/locales/bn_BD: Likewise.
254         * localedata/locales/bn_IN: Likewise.
255         * localedata/locales/bo_CN: Likewise.
256         * localedata/locales/bo_IN: Likewise.
257         * localedata/locales/br_FR: Likewise.
258         * localedata/locales/brx_IN: Likewise.
259         * localedata/locales/bs_BA: Likewise.
260         * localedata/locales/byn_ER: Likewise.
261         * localedata/locales/ca_AD: Likewise.
262         * localedata/locales/ca_ES: Likewise.
263         * localedata/locales/ca_FR: Likewise.
264         * localedata/locales/ca_IT: Likewise.
265         * localedata/locales/ce_RU: Likewise.
266         * localedata/locales/chr_US: Likewise.
267         * localedata/locales/cmn_TW: Likewise.
268         * localedata/locales/crh_UA: Likewise.
269         * localedata/locales/cs_CZ: Likewise.
270         * localedata/locales/csb_PL: Likewise.
271         * localedata/locales/cv_RU: Likewise.
272         * localedata/locales/cy_GB: Likewise.
273         * localedata/locales/da_DK: Likewise.
274         * localedata/locales/de_AT: Likewise.
275         * localedata/locales/de_BE: Likewise.
276         * localedata/locales/de_CH: Likewise.
277         * localedata/locales/de_DE: Likewise.
278         * localedata/locales/de_IT: Likewise.
279         * localedata/locales/de_LI: Likewise.
280         * localedata/locales/de_LU: Likewise.
281         * localedata/locales/doi_IN: Likewise.
282         * localedata/locales/dv_MV: Likewise.
283         * localedata/locales/dz_BT: Likewise.
284         * localedata/locales/el_CY: Likewise.
285         * localedata/locales/el_GR: Likewise.
286         * localedata/locales/en_AG: Likewise.
287         * localedata/locales/en_AU: Likewise.
288         * localedata/locales/en_BW: Likewise.
289         * localedata/locales/en_CA: Likewise.
290         * localedata/locales/en_DK: Likewise.
291         * localedata/locales/en_GB: Likewise.
292         * localedata/locales/en_HK: Likewise.
293         * localedata/locales/en_IE: Likewise.
294         * localedata/locales/en_IL: Likewise.
295         * localedata/locales/en_IN: Likewise.
296         * localedata/locales/en_NG: Likewise.
297         * localedata/locales/en_NZ: Likewise.
298         * localedata/locales/en_PH: Likewise.
299         * localedata/locales/en_SG: Likewise.
300         * localedata/locales/en_US: Likewise.
301         * localedata/locales/en_ZA: Likewise.
302         * localedata/locales/en_ZM: Likewise.
303         * localedata/locales/en_ZW: Likewise.
304         * localedata/locales/eo: Likewise.
305         * localedata/locales/es_AR: Likewise.
306         * localedata/locales/es_BO: Likewise.
307         * localedata/locales/es_CL: Likewise.
308         * localedata/locales/es_CO: Likewise.
309         * localedata/locales/es_CR: Likewise.
310         * localedata/locales/es_CU: Likewise.
311         * localedata/locales/es_DO: Likewise.
312         * localedata/locales/es_EC: Likewise.
313         * localedata/locales/es_ES: Likewise.
314         * localedata/locales/es_GT: Likewise.
315         * localedata/locales/es_HN: Likewise.
316         * localedata/locales/es_MX: Likewise.
317         * localedata/locales/es_NI: Likewise.
318         * localedata/locales/es_PA: Likewise.
319         * localedata/locales/es_PE: Likewise.
320         * localedata/locales/es_PR: Likewise.
321         * localedata/locales/es_PY: Likewise.
322         * localedata/locales/es_SV: Likewise.
323         * localedata/locales/es_US: Likewise.
324         * localedata/locales/es_UY: Likewise.
325         * localedata/locales/es_VE: Likewise.
326         * localedata/locales/et_EE: Likewise.
327         * localedata/locales/eu_ES: Likewise.
328         * localedata/locales/eu_ES@euro: Likewise.
329         * localedata/locales/fa_IR: Likewise.
330         * localedata/locales/ff_SN: Likewise.
331         * localedata/locales/fi_FI: Likewise.
332         * localedata/locales/fil_PH: Likewise.
333         * localedata/locales/fo_FO: Likewise.
334         * localedata/locales/fr_BE: Likewise.
335         * localedata/locales/fr_CA: Likewise.
336         * localedata/locales/fr_CH: Likewise.
337         * localedata/locales/fr_FR: Likewise.
338         * localedata/locales/fr_LU: Likewise.
339         * localedata/locales/fur_IT: Likewise.
340         * localedata/locales/fy_DE: Likewise.
341         * localedata/locales/fy_NL: Likewise.
342         * localedata/locales/ga_IE: Likewise.
343         * localedata/locales/gd_GB: Likewise.
344         * localedata/locales/gez_ER: Likewise.
345         * localedata/locales/gez_ET: Likewise.
346         * localedata/locales/gl_ES: Likewise.
347         * localedata/locales/gu_IN: Likewise.
348         * localedata/locales/gv_GB: Likewise.
349         * localedata/locales/ha_NG: Likewise.
350         * localedata/locales/hak_TW: Likewise.
351         * localedata/locales/he_IL: Likewise.
352         * localedata/locales/hi_IN: Likewise.
353         * localedata/locales/hif_FJ: Likewise.
354         * localedata/locales/hne_IN: Likewise.
355         * localedata/locales/hr_HR: Likewise.
356         * localedata/locales/hsb_DE: Likewise.
357         * localedata/locales/ht_HT: Likewise.
358         * localedata/locales/hu_HU: Likewise.
359         * localedata/locales/hy_AM: Likewise.
360         * localedata/locales/i18n: Likewise.
361         * localedata/locales/ia_FR: Likewise.
362         * localedata/locales/id_ID: Likewise.
363         * localedata/locales/ig_NG: Likewise.
364         * localedata/locales/ik_CA: Likewise.
365         * localedata/locales/is_IS: Likewise.
366         * localedata/locales/it_CH: Likewise.
367         * localedata/locales/it_IT: Likewise.
368         * localedata/locales/iu_CA: Likewise.
369         * localedata/locales/ja_JP: Likewise.
370         * localedata/locales/ka_GE: Likewise.
371         * localedata/locales/kk_KZ: Likewise.
372         * localedata/locales/kl_GL: Likewise.
373         * localedata/locales/kn_IN: Likewise.
374         * localedata/locales/ko_KR: Likewise.
375         * localedata/locales/kok_IN: Likewise.
376         * localedata/locales/ks_IN: Likewise.
377         * localedata/locales/ks_IN@devanagari: Likewise.
378         * localedata/locales/ku_TR: Likewise.
379         * localedata/locales/kw_GB: Likewise.
380         * localedata/locales/ky_KG: Likewise.
381         * localedata/locales/lb_LU: Likewise.
382         * localedata/locales/lg_UG: Likewise.
383         * localedata/locales/li_BE: Likewise.
384         * localedata/locales/li_NL: Likewise.
385         * localedata/locales/lij_IT: Likewise.
386         * localedata/locales/ln_CD: Likewise.
387         * localedata/locales/lo_LA: Likewise.
388         * localedata/locales/lt_LT: Likewise.
389         * localedata/locales/lv_LV: Likewise.
390         * localedata/locales/lzh_TW: Likewise.
391         * localedata/locales/mag_IN: Likewise.
392         * localedata/locales/mai_IN: Likewise.
393         * localedata/locales/mg_MG: Likewise.
394         * localedata/locales/mhr_RU: Likewise.
395         * localedata/locales/mi_NZ: Likewise.
396         * localedata/locales/mk_MK: Likewise.
397         * localedata/locales/ml_IN: Likewise.
398         * localedata/locales/mn_MN: Likewise.
399         * localedata/locales/mni_IN: Likewise.
400         * localedata/locales/mr_IN: Likewise.
401         * localedata/locales/ms_MY: Likewise.
402         * localedata/locales/mt_MT: Likewise.
403         * localedata/locales/my_MM: Likewise.
404         * localedata/locales/nan_TW: Likewise.
405         * localedata/locales/nan_TW@latin: Likewise.
406         * localedata/locales/nb_NO: Likewise.
407         * localedata/locales/nds_DE: Likewise.
408         * localedata/locales/nds_NL: Likewise.
409         * localedata/locales/ne_NP: Likewise.
410         * localedata/locales/nhn_MX: Likewise.
411         * localedata/locales/niu_NU: Likewise.
412         * localedata/locales/niu_NZ: Likewise.
413         * localedata/locales/nl_AW: Likewise.
414         * localedata/locales/nl_BE: Likewise.
415         * localedata/locales/nl_NL: Likewise.
416         * localedata/locales/nn_NO: Likewise.
417         * localedata/locales/nr_ZA: Likewise.
418         * localedata/locales/nso_ZA: Likewise.
419         * localedata/locales/oc_FR: Likewise.
420         * localedata/locales/om_ET: Likewise.
421         * localedata/locales/om_KE: Likewise.
422         * localedata/locales/or_IN: Likewise.
423         * localedata/locales/os_RU: Likewise.
424         * localedata/locales/pa_IN: Likewise.
425         * localedata/locales/pa_PK: Likewise.
426         * localedata/locales/pap_AW: Likewise.
427         * localedata/locales/pap_CW: Likewise.
428         * localedata/locales/pl_PL: Likewise.
429         * localedata/locales/ps_AF: Likewise.
430         * localedata/locales/pt_BR: Likewise.
431         * localedata/locales/pt_PT: Likewise.
432         * localedata/locales/quz_PE: Likewise.
433         * localedata/locales/raj_IN: Likewise.
434         * localedata/locales/ro_RO: Likewise.
435         * localedata/locales/ru_RU: Likewise.
436         * localedata/locales/ru_UA: Likewise.
437         * localedata/locales/rw_RW: Likewise.
438         * localedata/locales/sa_IN: Likewise.
439         * localedata/locales/sat_IN: Likewise.
440         * localedata/locales/sc_IT: Likewise.
441         * localedata/locales/sd_IN: Likewise.
442         * localedata/locales/sd_IN@devanagari: Likewise.
443         * localedata/locales/se_NO: Likewise.
444         * localedata/locales/sgs_LT: Likewise.
445         * localedata/locales/shs_CA: Likewise.
446         * localedata/locales/si_LK: Likewise.
447         * localedata/locales/sid_ET: Likewise.
448         * localedata/locales/sk_SK: Likewise.
449         * localedata/locales/sl_SI: Likewise.
450         * localedata/locales/sm_WS: Likewise.
451         * localedata/locales/so_DJ: Likewise.
452         * localedata/locales/so_ET: Likewise.
453         * localedata/locales/so_KE: Likewise.
454         * localedata/locales/so_SO: Likewise.
455         * localedata/locales/sq_AL: Likewise.
456         * localedata/locales/sq_MK: Likewise.
457         * localedata/locales/sr_ME: Likewise.
458         * localedata/locales/sr_RS: Likewise.
459         * localedata/locales/sr_RS@latin: Likewise.
460         * localedata/locales/ss_ZA: Likewise.
461         * localedata/locales/st_ZA: Likewise.
462         * localedata/locales/sv_FI: Likewise.
463         * localedata/locales/sv_SE: Likewise.
464         * localedata/locales/sw_KE: Likewise.
465         * localedata/locales/sw_TZ: Likewise.
466         * localedata/locales/szl_PL: Likewise.
467         * localedata/locales/ta_IN: Likewise.
468         * localedata/locales/ta_LK: Likewise.
469         * localedata/locales/tcy_IN: Likewise.
470         * localedata/locales/te_IN: Likewise.
471         * localedata/locales/tg_TJ: Likewise.
472         * localedata/locales/th_TH: Likewise.
473         * localedata/locales/the_NP: Likewise.
474         * localedata/locales/ti_ER: Likewise.
475         * localedata/locales/ti_ET: Likewise.
476         * localedata/locales/tig_ER: Likewise.
477         * localedata/locales/tk_TM: Likewise.
478         * localedata/locales/tl_PH: Likewise.
479         * localedata/locales/tn_ZA: Likewise.
480         * localedata/locales/to_TO: Likewise.
481         * localedata/locales/tpi_PG: Likewise.
482         * localedata/locales/tr_CY: Likewise.
483         * localedata/locales/tr_TR: Likewise.
484         * localedata/locales/ts_ZA: Likewise.
485         * localedata/locales/tt_RU: Likewise.
486         * localedata/locales/tt_RU@iqtelif: Likewise.
487         * localedata/locales/ug_CN: Likewise.
488         * localedata/locales/uk_UA: Likewise.
489         * localedata/locales/unm_US: Likewise.
490         * localedata/locales/ur_IN: Likewise.
491         * localedata/locales/ur_PK: Likewise.
492         * localedata/locales/uz_UZ: Likewise.
493         * localedata/locales/uz_UZ@cyrillic: Likewise.
494         * localedata/locales/ve_ZA: Likewise.
495         * localedata/locales/vi_VN: Likewise.
496         * localedata/locales/wa_BE: Likewise.
497         * localedata/locales/wae_CH: Likewise.
498         * localedata/locales/wal_ET: Likewise.
499         * localedata/locales/wo_SN: Likewise.
500         * localedata/locales/xh_ZA: Likewise.
501         * localedata/locales/yi_US: Likewise.
502         * localedata/locales/yo_NG: Likewise.
503         * localedata/locales/yue_HK: Likewise.
504         * localedata/locales/yuw_PG: Likewise.
505         * localedata/locales/zh_CN: Likewise.
506         * localedata/locales/zh_HK: Likewise.
507         * localedata/locales/zh_SG: Likewise.
508         * localedata/locales/zh_TW: Likewise.
509         * localedata/locales/zu_ZA: Likewise.
511 2017-11-13  Florian Weimer  <fweimer@redhat.com>
513         * support/next_to_fault.h, support/next_to_fault.c: New files.
514         * support/Makefile (libsupport-routines): Add next_to_fault.
515         * resolv/tst-inet_pton.c (struct next_to_fault)
516         (next_to_fault_allocate, next_to_fault_free): Remove.
517         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
519 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
521         * elf/dl-support.c: Include <dl-procruntime.c>.
522         * include/link.h: Include <link_map.h>.
523         * sysdeps/generic/dl-procruntime.c: New file.
524         * sysdeps/generic/link_map.h: Likewise.
525         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
526         the writable ld.so namespace.
528 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
530         timezone: pacify GCC -Wstringop-truncation
531         Problem reported by Martin Sebor in:
532         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
533         * timezone/zic.c (writezone): Use memcpy, not strncpy.
535 2017-11-12  Florian Weimer  <fweimer@redhat.com>
537         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
538         tst-xreadlink.
539         (tests): Add tst-xreadlink.
540         * support/support.h (xstrndup): Declare.
541         * support/xunistd.h (xunlink, xreadlink): Declare.
542         * support/temp_file.h (support_create_temp_directory): Declare.
543         * support/temp_file.c (support_create_temp_directory): New function.
544         * support/support_chroot.c (support_chroot_create): Use it.
545         * support/xreadlink.c: New file.
546         * support/xstrndup.c: Likewise.
547         * support/xunlink.c: Likewise.
548         * support/tst-xreadlink.c: Likewise.
550 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
552         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
554 2017-11-11  Florian Weimer  <fweimer@redhat.com>
556         [BZ #22409]
557         [BZ #22412]
558         * resolv/res_comp.c (printable_string, binary_hnok)
559         (binary_leading_dash): New functions.
560         (res_hnok): Reimplement using these functions and ns_name_pton.
561         (res_ownok): Likewise.
562         (res_mailok): Reimplement using printable_string, ns_name_pton and
563         binary_hnok.
564         (res_dnok): Reimplement using printable_string and ns_name_pton.
565         * resolv/tst-res_hnok.c (tests): Add additional tests.
566         (LETTERDIGITS, PRINTABLE): Define.
567         (do_test): Adjust one_char results.
569 2017-11-11  Florian Weimer  <fweimer@redhat.com>
571         [BZ #22413]
572         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
573         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
575 2017-11-11  Florian Weimer  <fweimer@redhat.com>
577         * resolv/tst-ns_name_pton.c: New file.
578         * resolv/Makefile (tests): Add tst-ns_name_pton.
579         (tst-ns_name_pton): Link against libresolv.
581 2017-11-11  Florian Weimer  <fweimer@redhat.com>
583         * resolv/tst-res_hnok.c: New file.
584         * resolv/Makefile (tests): Add tst-res_hnok.
585         (tst-res_hnok): Link against libresolv.
587 2017-11-11  Florian Weimer  <fweimer@redhat.com>
589         * resolv/tst-resolv-network.c: Use test framework instead explicit
590         main function.
592 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
594         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
595         <jmp_buf-macros.h>.
596         [!_ISOMAC] (STR_HELPER): New.
597         [!_ISOMAC] (STR): Likewise.
598         [!_ISOMAC] (TEST_SIZE): Likewise.
599         [!_ISOMAC] (TEST_ALIGN): Likewise.
600         [!_ISOMAC] (TEST_OFFSET): Likewise.
601         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
602         field offsets of jmp_buf as well as sigjmp_buf.
603         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
604         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
605         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
606         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
607         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
608         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
609         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
610         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
611         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
612         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
613         Likewise.
614         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
615         Likewise.
616         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
618         Likewise.
619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
620         Likewise.
621         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
622         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
623         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
624         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
625         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
627         Likewise.
628         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
629         Likewise.
630         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
631         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
632         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
634 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
636         * include/float.h
637         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
638         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
639         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
640         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
641         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
642         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
643         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
644         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
645         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
646         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
647         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
648         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
649         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
650         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
651         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
652         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
653         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
654         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
655         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
656         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
657         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
658         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
659         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
660         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
661         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
662         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
663         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
664         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
665         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
666         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
667         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
668         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
669         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
670         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
671         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
672         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
673         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
674         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
675         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
676         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
677         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
678         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
679         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
680         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
681         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
682         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
683         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
684         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
685         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
686         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
687         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
688         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
689         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
690         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
691         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
692         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
693         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
694         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
695         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
696         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
697         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
698         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
699         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
700         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
701         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
702         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
703         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
704         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
705         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
706         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
707         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
708         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
709         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
710         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
711         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
712         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
713         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
714         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
715         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
716         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
717         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
718         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
719         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
720         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
721         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
722         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
723         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
724         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
726         * stdlib/tst-strtod.h (F16): New macro.
727         (F32): Likewise.
728         (F64): Likewise.
729         (F32X): Likewise.
730         (F64X): Likewise.
731         (F128X): Likewise.
732         (IF_FLOAT16): Likewise.
733         (IF_FLOAT32): Likewise.
734         (IF_FLOAT64): Likewise.
735         (IF_FLOAT32X): Likewise.
736         (IF_FLOAT64X): Likewise.
737         (IF_FLOAT128X): Likewise.
738         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
739         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
740         (STRTOD_TEST_FOREACH): Likewise.
741         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
742         (CHOOSE_f64): Likewise.
743         (CHOOSE_f32x): Likewise.
744         (CHOOSE_f64x): Likewise.
746 2017-11-07  Andreas Schwab  <schwab@suse.de>
748         * nptl/Makefile (tests-internal): Remove tst-typesizes.
750 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
752         [BZ #22403]
753         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
754         to be escaped.
755         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
756         to be escaped.
758 2017-11-07  Claude Paroz <claude@2xlibre.net>
760         [BZ #22403]
761         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
762         to be escaped.
763         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
764         to be escaped.
765         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
766         to be escaped.
768 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
770         [BZ #22298]
771         * nptl/allocatestack.c (allocate_stack): Check if
772         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
773         __PTHREAD_MUTEX_HAVE_PREV is defined.
774         * nptl/descr.h (pthread): Likewise.
775         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
776         Likewise.
777         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
778         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
779         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
780         * sysdeps/nptl/bits/thread-shared-types.h
781         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
782         defines.
783         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
784         of __WORDSIZE for internal layout.
785         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
786         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
787         instead of __WORDSIZE whether to use an union for __spins and __list
788         fields.
789         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
790         case.
791         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
792         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
793         defines.
794         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
795         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
796         Likewise.
797         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
798         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
799         Likewise.
800         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
801         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
802         Likewise.
803         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
804         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
805         Likewise.
806         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
807         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
808         Likewise.
809         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
810         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
811         Likewise.
812         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
813         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
814         Likewise.
815         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
816         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
817         Likewise.
818         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
819         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
820         Likewise.
821         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
822         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
823         Likewise.
824         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
825         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
826         Likewise.
827         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
828         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
829         Likewise.
830         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
831         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
832         Likewise.
833         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
834         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
835         Likewise.
837         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
838         New macros.
839         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
840         checks for expected input type size.
841         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
842         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
843         Likewise.
844         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
845         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
846         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
847         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
848         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
849         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
850         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
851         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
852         superflous runtime assert check.
853         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
854         Likewise.
855         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
856         Likewise.
857         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
858         Likewise.
859         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
860         Likewise.
861         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
862         Likewise.
863         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
864         Likewise.
865         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
866         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
867         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
868         Likewise.
869         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
870         Likewise.
871         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
872         Likewise.
873         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
874         Likewise.
875         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
876         Likewise.
877         * nptl/pthread_attr_setinheritsched.c
878         (__pthread_attr_setinheritsched): Likewise.
879         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
880         Likewise.
881         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
882         Likewise.
883         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
884         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
885         __old_pthread_attr_setstack): Likewise.
886         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
887         Likewise.
888         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
889         Likewise.
890         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
891         Likewise.
892         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
893         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
894         Likewise.
895         * nptl/tst-typesizes.c: Remove file.
897         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
898         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
899         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
900         checks for internal pthread_mutex_t offsets.
901         * sysdeps/aarch64/nptl/pthread-offsets.h
902         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
903         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
904         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
905         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
906         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
907         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
908         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
909         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
910         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
911         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
912         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
913         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
914         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
915         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
916         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
917         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
918         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
919         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
921 2017-11-07  Florian Weimer  <fweimer@redhat.com>
923         * bits/mman-linux.h: Move ...
924         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
925         comment.
926         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
927         outdated comment.
929 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
931         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
932         Redefine STRNLEN as __strnlen_power8.
934 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
936         * signal/sighold.c (sighold): Optimize implementation.
938         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
939         __NR_rt_sigqueueinfo.
941         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
942         __sigtimedwait.
943         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
944         assume __NR_rt_sigtimedwait.
945         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
946         and add LIBC_CANCEL_HANDLED for cancellation marking.
947         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
949         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
950         (sysdeps_routines): Add memchr_noneon.
951         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
952         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
953         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
954         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
955         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
956         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
957         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
959         * sysdeps/arm/arm-ifunc.h: New file.
960         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
961         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
962         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
963         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
964         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
965         (__memcpy_neon): Avoid create hidden alias.
966         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
967         (__memcpy_vfp): Likewise.
968         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
969         (sysdep_routines): Add memcpy_arm.
970         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
972 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
974         [BZ #22362]
975         * Makerules (make-link-multidir): New.
976         * config.make.in (multidir): New.
977         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
978         * configure: Regenerated.
979         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
980         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
981         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
982         New target.
984 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
986         [BZ #22402]
987         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
988         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
990 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
992         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
993         to be escaped.
995 2017-11-04  Florian Weimer  <fweimer@redhat.com>
997         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
999 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1001         * math/math.h [__HAVE_DISTINCT_FLOAT16
1002         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1003         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1004         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1005         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
1006         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
1007         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
1008         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1009         (__MATH_TG_F32): New macro.
1010         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1011         (__MATH_TG_F64X): Likewise.
1012         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
1013         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
1015 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
1017         * po/de.po: Update translations.
1018         * po/ru.po: Likewise.
1020 2017-11-03  Florian Weimer  <fweimer@redhat.com>
1022         * manual/filesys.texi (Hard Links): Document linkat.
1024 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
1026         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
1027         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
1028         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
1029         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
1030         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1031         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1032         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
1033         the same as _Float128.
1034         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1035         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
1036         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
1038         * stdlib/stdlib.h
1039         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
1040         Declare.
1041         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
1042         Likewise.
1043         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
1044         Likewise.
1045         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1046         (strtof32x): Likewise.
1047         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1048         (strtof64x): Likewise.
1049         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1050         (strtof128x): Likewise.
1051         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1052         (strfromf16): Likewise.
1053         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1054         (strfromf32): Likewise.
1055         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1056         (strfromf64): Likewise.
1057         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1058         (strfromf32x): Likewise.
1059         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1060         (strfromf64x): Likewise.
1061         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1062         (strfromf128x): Likewise.
1063         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
1064         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
1065         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
1066         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
1067         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
1068         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
1070 2017-11-03  Richard Henderson  <rth@twiddle.net>
1072         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
1074 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1076         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
1078 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1080         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
1081         DT_TLSDESC_GOT initialization.
1082         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
1083         (_dl_tlsdesc_resolve_hold): Likewise.
1084         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
1085         (_dl_tlsdesc_resolve_hold): Likewise.
1086         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
1087         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1089 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1091         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
1093 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1095         [BZ #18572]
1096         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
1097         non-lazily for R_ARM_TLS_DESC.
1099 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1101         [BZ #17078]
1102         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
1103         R_ARM_TLS_DESC case.
1104         (elf_machine_lazy_rel): Remove the prelink check.
1106 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1108         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
1109         DT_TLSDESC_GOT initialization.
1110         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
1111         (_dl_tlsdesc_resolve_rela): Likewise.
1112         (_dl_tlsdesc_resolve_hold): Likewise.
1113         (_dl_tlsdesc_undefweak): Remove ldar.
1114         (_dl_tlsdesc_dynamic): Likewise.
1115         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
1116         (_dl_tlsdesc_resolve_rela): Likewise.
1117         (_dl_tlsdesc_resolve_hold): Likewise.
1118         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
1119         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
1120         (_dl_tlsdesc_resolve_rela): Likewise.
1121         (_dl_tlsdesc_resolve_hold): Likewise.
1123 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1125         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
1126         binding and initialization non-lazily for R_AARCH64_TLSDESC.
1128 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1130         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
1131         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1133 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
1135         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
1136         Declare.
1137         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
1138         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
1139         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
1140         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
1141         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
1142         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
1143         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
1144         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
1145         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
1146         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
1147         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
1149 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
1151         [BZ #22382]
1152         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
1153         * localedata/locales/tpi_PG: Add standard header.
1155 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1157         test-errno-linux: quotactl can fail with EPERM in containers.
1158         * sysdeps/unix/sysv/linux/test-errno-linux.c
1159         (LIST, LIST_FORWARD): New macros.
1160         (check_error_in_list): New function.
1161         (test_wrp_rv): Accept list of permitted error codes.
1162         (test_wrp_rv2): Remove.
1163         (test_wrp): Call test_wrp_rv with list of error codes.
1164         (test_wrp2): Accept list of error codes.
1165         (do_test): Adjust.  Allow EPERM for quotactl.
1167 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1169         * stdio-common/bug16.c (do_test): Use array_length.
1170         * stdio-common/errlist.c (_sys_nerr): Likewise.
1171         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
1172         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
1173         * stdio-common/psiginfo.c (psiginfo): Use array_length.
1174         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
1175         (do_test): Use array_length.
1176         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
1177         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
1178         * stdio-common/tst-printf-round.c (do_test): Likewise.
1179         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
1180         (CHECK): Use array_length.
1181         * stdio-common/tstdiomisc.c (t3, F): Likewise.
1182         * stdio-common/tstscanf.c (main): Likewise.
1183         * stdio-common/vfprintf.c (process_string_arg): Likewise.
1185 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1187         Add array_length and array_end macros.
1188         * include/array_length.h: New file.
1190 2017-11-02  Florian Weimer  <fweimer@redhat.com>
1192         [BZ #22332]
1193         * posix/tst-glob-tilde.c (do_noescape): New variable.
1194         (one_test): Process it.
1195         (do_test): Set do_noescape.  Add unescaping test case.
1197 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
1199         * math/complex.h
1200         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
1201         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
1202         with appropriate macros defined and undefined.
1203         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
1204         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1205         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
1206         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1207         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
1208         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1209         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
1210         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1211         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
1212         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
1214         * math/complex.h
1215         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
1216         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
1217         that for long double.  Do not condition define and undefine of
1218         _Mdouble_complex_ on [__CFLOAT128].
1220 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1222         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1223         of <sysdeps/generic/sysdep.h>.
1224         (ALIGNARG): Removed.
1225         (ASM_SIZE_DIRECTIVE): Likewise.
1226         (ENTRY): Likewise.
1227         (END): Likewise.
1228         (ENTRY_CHK): Likewise.
1229         (END_CHK): Likewise.
1230         (syscall_error): Likewise.
1231         (mcount): Likewise.
1232         (PSEUDO_END): Likewise.
1233         (L): Likewise.
1234         (atom_text_section): Likewise.
1235         * sysdeps/x86/sysdep.h: New file.
1236         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
1237         of <sysdeps/generic/sysdep.h>.
1238         (ALIGNARG): Removed.
1239         (ASM_SIZE_DIRECTIVE): Likewise.
1240         (ENTRY): Likewise.
1241         (END): Likewise.
1242         (ENTRY_CHK): Likewise.
1243         (END_CHK): Likewise.
1244         (syscall_error): Likewise.
1245         (mcount): Likewise.
1246         (PSEUDO_END): Likewise.
1247         (L): Likewise.
1248         (atom_text_section): Likewise.
1250 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
1252         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
1253         category of LC_CTYPE set to "i18n:2012".
1254         * localedata/locales/i18n_ctype: Regenerate.
1256 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
1258         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
1259         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1260         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1261         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1263         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
1264         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
1265         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
1266         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
1268 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
1270         * math/complex.h
1271         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
1272         New macro.
1273         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
1274         Likewise.
1275         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
1276         Likewise.
1277         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1278         (CMPLXF32X): Likewise.
1279         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1280         (CMPLXF64X): Likewise.
1281         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1282         (CMPLXF128X): Likewise.
1284         * math/math.h
1285         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
1286         (__MATH_EVAL_FMT2): Define to add 0.0f.
1288 2017-10-31  Alan Modra  <amodra@gmail.com>
1290         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
1291         include sysdep.h.
1292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
1295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
1296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
1297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
1298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
1299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
1300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
1301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
1303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
1304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
1305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1306         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
1307         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
1308         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
1309         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1310         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
1311         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
1312         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1313         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1314         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1315         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1316         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1317         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1318         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1319         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1320         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
1321         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
1322         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1323         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1324         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1325         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1326         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
1327         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1328         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1329         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
1330         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
1331         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
1332         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
1333         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
1334         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1335         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1336         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1337         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1338         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1339         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
1340         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1341         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1342         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1343         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
1344         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
1345         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1346         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1347         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
1348         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1349         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1350         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1351         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1352         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1353         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1354         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1355         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
1356         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
1357         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1358         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
1359         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
1360         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
1362         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
1363         include sysdep.h and math_ldbl_opt.h.
1365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
1366         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
1367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
1369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
1370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
1371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
1372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
1373         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
1374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
1375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
1376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
1377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
1378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
1379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
1380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
1381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
1382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
1383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
1384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
1385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
1386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
1387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
1388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
1390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1392 2017-10-31  Alan Modra  <amodra@gmail.com>
1394         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
1395         string/strncase_l.c, not string/strncase.c.
1396         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
1397         (libc_hidden_def): Redefine.
1399 2017-10-31  Alan Modra  <amodra@gmail.com>
1401         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
1402         (__STRCMP, STRCMP, __strcasecmp_l): Define.
1403         (__strcasecmp): Don't define.
1405 2017-10-31  Alan Modra  <amodra@gmail.com>
1407         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
1408         IS_IN (libc).
1409         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1410         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1411         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1413 2017-10-31  Alan Modra  <amodra@gmail.com>
1415         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
1416         USE_AS_STPNCPY.
1418 2017-10-31  Alan Modra  <amodra@gmail.com>
1420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
1421         Redefine only when SHARED.
1423 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1425         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1426         Include <bits/math-finite.h> with appropriate macros defined and
1427         undefined.
1428         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1429         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1430         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1431         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1432         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1434         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
1435         [!_Mlong_double_] (_Mlong_double_): Likewise.
1436         [!_Mfloat16_] (_Mfloat16_): Likewise.
1437         [!_Mfloat32_] (_Mfloat32_): Likewise.
1438         [!_Mfloat64_] (_Mfloat64_): Likewise.
1439         [!_Mfloat128_] (_Mfloat128_): Likewise.
1440         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
1441         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
1442         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
1443         (_Mdouble_): Define without indirection through those macros.
1444         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
1445         [!_Mfloat128_] (_Mfloat128_): Likewise.
1446         [_Mlong_double_] (_Mlong_double_): Likewise.
1447         (_Mdouble_): Define without indirection through those macros.
1448         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
1449         not add -D_Mlong_double_=double.
1450         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
1451         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
1453 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1455         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
1457 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1459         * sysdeps/x86/libc-start.c: Reformat.
1461 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1463         [BZ #22353]
1464         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
1465         (1): Renamed to ...
1466         (L(Src0)): This.
1467         (L(Src1)): New.
1468         (L(Src2)): Likewise.
1469         (L(1)): Renamed to ...
1470         (L(Src3)): This.
1472 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
1474         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
1475         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
1476         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
1477         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
1478         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
1479         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
1480         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
1481         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
1482         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
1483         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
1484         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
1485         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
1486         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
1487         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
1488         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
1489         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
1490         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
1491         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
1492         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
1493         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
1494         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
1495         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
1496         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
1497         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
1498         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
1499         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
1500         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
1501         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
1502         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
1503         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
1504         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
1505         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
1506         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
1507         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
1508         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
1509         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
1510         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
1511         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
1512         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
1513         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
1514         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
1515         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
1516         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
1517         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
1518         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
1519         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
1520         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
1521         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
1522         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
1523         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
1524         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
1525         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
1526         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
1527         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
1528         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
1529         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
1530         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
1531         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
1532         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
1533         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
1534         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
1535         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
1536         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
1537         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
1538         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
1539         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
1541 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1543         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
1544         always defined.
1545         * io/tst-mkdirat.c (do_test): Likewise.
1546         * io/tst-mkfifoat.c (do_test): Likewise.
1547         * io/tst-mknodat.c (do_test): Likewise.
1548         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
1549         * locale/programs/locale.c (select_dirs): Likewise.
1550         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
1551         * posix/bug-glob2.c (my_readdir): Likewise.
1552         * posix/tst-dir.c (main): Likewise.
1553         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
1554         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
1556 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1558         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
1559         just __USE_GNU.
1561 2017-10-30  Florian Weimer  <fweimer@redhat.com>
1563         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
1564         Convert to support/test-driver.c.
1565         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
1566         New macro parameters.
1567         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
1568         * posix/tst-gnuglob.c: New file.
1569         * posix/tst-gnuglob64.c: Likewise.
1570         * posix/Makefile (tests): Add tst-gnuglob64.
1572 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
1574         [BZ #19485]
1575         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
1576         and use a better translation for March in “mon”.
1577         * localedata/locales/csb_PL: Use more ASCII to improve the
1578         readability of the source.
1580 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
1582         [BZ #13953]
1583         * localedata/locales/km_KH: Use ASCII as much
1584         as possible for better readability of the source and
1585         remove useless comments.
1586         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
1587         was commented out and apparently wrong anyway because it was
1588         using Lao characters. If Buddhist era should be used
1589         for km_KH, a native speaker should write the correct formaat
1590         for Khmer.
1591         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
1592         (According to CLDR, the first weekday for Cambodia is Sunday).
1593         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
1594         (These were using Lao characters which must be wrong. If we get
1595         the correct data from a native speaker, we could add it back, until
1596         then it is better not to have name_mr and name_mrs at all than
1597         having it wrong).
1599 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
1601         * locale/loadlocale.c: Correct size of
1602         _nl_value_type_LC_<category> arrays.
1604 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
1606         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
1607         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
1608         with appropriate macros defined and undefined.
1609         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
1610         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
1611         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
1612         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
1613         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
1615 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1617         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
1618         "-O2 -march=i586".
1620 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1622         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
1623         with lowercase letters to make it agree with CLDR.
1625 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
1627         [BZ #15260]
1628         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
1629         first letters of yesstr and nostr in yesexpr and noexpr,
1630         not for the full words.
1631         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1632         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
1633         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
1634         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
1635         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
1636         first letters of yesstr and nostr in yesexpr and noexpr,
1637         until now only English was matched in yesexpr and noexpr.
1638         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
1639         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
1640         fil but not for tl. As tl and fil are very similar, using fil
1641         is probably better than using English.
1643 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
1645         [BZ #21706]
1646         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
1647         in yesstr and nostr.
1649 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
1651         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1652         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
1653         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
1654         Likewise.
1655         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
1656         Likewise.
1657         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
1658         Likewise.
1659         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
1660         Likewise.
1661         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1662         (SNANF128X): Likewise.
1664         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
1665         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
1666         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1667         (HUGE_VAL_F32): Likewise.
1668         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1669         (HUGE_VAL_F64): Likewise.
1670         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1671         (HUGE_VAL_F32X): Likewise.
1672         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1673         (HUGE_VAL_F64X): Likewise.
1674         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
1675         (HUGE_VAL_F128X): Likewise.
1677 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1679         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
1680         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
1681         for the br_FR locale.
1683 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
1685         [BZ #21706]
1686         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
1688 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
1690         * locale/programs/record-status.h: Define globals, and function
1691         prototypes. Move function bodies...
1692         * locale/programs/record-status.c: ... to here. New file.
1693         * iconv/Makefile (iconv_prog-modules): Add record-status.
1694         * locale/Makefile (lib-modules): Likewise.
1695         * iconv/iconv_prog.c: Remove verbose.
1696         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
1697         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
1698         record a warning about ASCII compatibility.
1699         * locale/programs/ld-monetary.c (monetary_finish): If
1700         warn_int_curr_symbol is true then record a warning about the symbol
1701         not being in our ISO 4217 list.
1702         * locale/programs/locale.c: Include record-status.h. Remove verbose.
1703         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
1704         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
1705         (OPT_NO_WARN): Define.
1706         (OPT_WARN): Define.
1707         (options): Add entry for --no-warnings, and --warnings.
1708         (set_warnings): New function to enable/disable warnings.
1709         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
1710         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
1711         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
1712         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
1713         Pass flags to generate_locale.
1714         (generate_locale): Accept new flag argument and pass it to localedef
1715         invocation.
1716         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
1717         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
1719         * localedata/Makefile (test-input-data): Use full file name.
1720         * localedata/da_DK.in: Rename to...
1721         * localedata/da_DK.ISO-8859-1.in: ...this.
1722         * localedata/de_DE.in: Rename to...
1723         * localedata/de_DE.ISO-8859-1.in: ...this.
1724         * localedata/en_US.in: Rename to...
1725         * localedata/en_US.ISO-8859-1.in: ...this.
1726         * localedata/fr_FR.in: Rename to...
1727         * localedata/fr_FR.UTF-8.in: ... this.
1728         * localedata/hr_HR.in: Rename to...
1729         * localedata/hr_HR.ISO-8859-2.in: ...this.
1730         * localedata/hu_HU.in: Rename to...
1731         * localedata/hu_HU.UTF-8.in: ...this.
1732         * localedata/si_LK.in: Rename to...
1733         * localedata/si_LK.UTF-8.in: ...this.
1734         * localedata/sv_SE.in: Rename to...
1735         * localedata/sv_SE.ISO-8859-1.in: ...this.
1736         * localedata/tr_TR.in: Rename to...
1737         * localedata/tr_TR.UTF-8.in: ...this.
1738         * localedata/uk_UA.in: Rename to...
1739         * localedata/uk_UA.UTF-8.in: ...this.
1740         * localedata/sort-test.sh: Test file is locale name with the
1741         suffix.
1743         * localedata/unicode-gen/Makefile (check_i18n): Rename to
1744         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
1745         file.
1746         * localedata/locales/i18n_ctype: Regenerate.
1747         * localedata/locales/tr_TR: Likewise.
1748         * localedata/locales/translit_circle: Likewise.
1749         * localedata/locales/translit_cjk_compat: Likewise.
1750         * localedata/locales/translit_combining: Likewise.
1751         * localedata/locales/translit_compat: Likewise.
1752         * localedata/locales/translit_font: Likewise.
1753         * localedata/locales/translit_fraction: Likewise.
1755 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1757         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
1758         lxvd2x/stxvd2x with lvx/stvx.
1759         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1761 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
1763         * include/alloc_buffer.h: Replace "if if " with "if " in
1764         comments.
1765         * sysdeps/mips/memcpy.S: Likkewise.
1766         * sysdeps/mips/memset.S: Likewise.
1767         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
1768         Likewise.
1769         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
1770         Likewise.
1771         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
1772         Likewise.
1774 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1776         [BZ #15261]
1777         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
1778         yesexpr and noexpr.
1779         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1780         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1781         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1782         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1783         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1784         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1785         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1787 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1789         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
1790         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1791         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1792         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1793         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1794         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
1795         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1796         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1797         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1798         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1799         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1800         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1802 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1804         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
1805         as possible for better readability of the source.
1806         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
1807         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
1808         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
1809         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
1810         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
1811         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
1812         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
1813         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
1814         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
1815         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
1816         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
1817         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
1818         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
1819         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
1820         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
1821         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
1822         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
1823         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
1824         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
1825         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
1826         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
1827         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
1828         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
1829         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
1830         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
1831         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
1832         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
1833         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
1834         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
1835         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
1836         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
1837         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
1838         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
1839         * localedata/locales/en_US (LC_MESSAGES): Likewise.
1840         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
1841         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
1842         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
1843         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
1844         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
1845         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
1846         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
1847         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
1848         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
1849         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
1850         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
1851         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
1852         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
1853         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
1854         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
1855         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
1856         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
1857         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
1858         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
1859         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
1860         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
1861         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
1862         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
1863         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
1864         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
1865         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
1866         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
1867         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
1868         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
1869         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
1870         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
1871         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
1872         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
1873         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
1874         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
1875         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
1876         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
1877         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
1878         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
1879         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
1880         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
1881         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
1882         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
1883         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
1884         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
1885         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
1886         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
1887         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
1888         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
1889         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
1890         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
1891         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
1892         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
1893         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
1894         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
1895         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
1896         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
1897         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
1898         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
1899         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
1900         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
1901         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
1902         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
1903         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
1904         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
1905         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
1906         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
1907         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
1908         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
1909         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
1910         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
1911         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
1912         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
1913         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
1914         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
1915         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
1916         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
1917         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
1918         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
1919         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
1920         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
1921         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
1922         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
1923         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
1924         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
1925         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
1926         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
1927         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
1928         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
1929         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
1930         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
1931         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
1932         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
1933         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
1934         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
1935         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
1936         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
1937         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
1938         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
1939         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
1940         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
1941         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
1942         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
1943         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
1944         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
1945         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
1946         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
1947         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
1948         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
1949         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
1950         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
1951         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
1952         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
1953         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
1954         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
1955         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
1956         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
1957         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
1958         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
1959         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
1960         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
1961         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
1962         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
1963         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
1964         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
1965         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
1966         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
1967         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
1968         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
1969         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
1970         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
1971         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
1972         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
1973         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
1974         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
1975         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
1976         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
1977         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
1978         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
1979         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
1981 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1983         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1984         (Use first letters of yesstr and nostr correctly instead of using
1985         full words).
1987 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1989         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1990         (Use first letters of yesstr and nostr correctly).
1992 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
1994         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1995         also check for the first characters of yesstr and nostr.
1996         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1997         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1999 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2001         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
2002         also check for Chinese characters.
2004 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2006         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
2007         match also for the contents of yesstr and nostr. As the first letter
2008         of yesstr and nostr is equal, checking only for the first letter
2009         is not enough.
2011 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2013         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
2014         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
2016 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2018         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
2019         of main contributor.
2021 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2023         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
2024         instead of using English.
2026 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2028         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
2029         by including the first letters of nostr and yesexpr in the regexp.
2030         Also make it more readable by using ASCII where possible.
2032 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
2034         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
2035         the first letter of nostr in the regexp. It agrees with CLDR now.
2036         Also make it more readable by using ASCII where possible.
2038 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2040         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
2041         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
2042         these strings contain a U+17D6 (which somewhat looks like a colon)
2043         instead of a real colon to separate the full words for “yes”
2044         and “no” from the single letter responses.
2046 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2048         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
2049         it agree with CLDR (include the first letter of yesstr).
2050         Also make it more readable by using ASCII where possible.
2052 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2054         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
2055         and improve yesexpr and noexpr. The yesstr and nostr apparently
2056         came from CLDR. And CLDR has a bug there: these strings contain
2057         a U+0903 (which looks like a colon) instead of a real colon
2058         to separate the full words for “yes” and “no” from the single
2059         letter responses.
2061 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2063         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
2064         letters of the full yesstr and nostr in yesexpr and noexpr.
2066 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2068         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
2069         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
2070         * localedata/locales/an_ES: Make source more readable by using ASCII
2071         where possible.
2073 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
2075         [BZ #20952]
2076         * localedata/locales/yuw_PG: New file.
2077         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
2078         * locale/iso-639.def: Add Yau (Uruwa).
2080 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2082         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
2084 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2086         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
2087         (__libc_realloc): Likewise.
2088         (_mid_memalign): Likewise.
2089         (__libc_calloc): Likewise.
2091 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
2093         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
2094         by adding the generic +1 and -0 as in all other locales.
2095         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
2096         day names and make it more readable by using ASCII where possible.
2098 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
2100         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
2101         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
2103 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2105         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
2106         WNOHANG in waitpid call.
2108 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2110         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
2111         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
2113         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
2114         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
2115         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
2116         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
2117         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
2118         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
2119         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
2120         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
2121         variables.
2123 2017-10-23  Michael Collison  <michael.collison@arm.com>
2125         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
2126         with __builtin_sqrt.
2127         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
2128         with __builtin_sqrtf.
2129         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
2130         with __builtin_ceil.
2131         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
2132         with __builtin_ceilf.
2133         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
2134         with __builtin_floor.
2135         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
2136         with __builtin_floorf.
2137         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
2138         with __builtin_fma.
2139         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
2140         with __builtin_fmaf.
2141         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
2142         with __builtin_fmax.
2143         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
2144         with __builtin_fmaxf.
2145         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
2146         with __builtin_fmin.
2147         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
2148         with __builtin_fminf.
2149         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
2150         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
2151         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
2152         with builtin_rint and conversion to int.
2153         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
2154         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
2155         with builtin_llround.
2156         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
2157         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
2158         with builtin_rint and conversion to long int.
2159         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
2160         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
2161         with builtin_lround.
2162         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
2163         with builtin_lroundf.
2164         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
2165         statements with __builtin_nearbyint.
2166         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
2167         statements with __builtin_nearbyintf.
2168         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
2169         with __builtin_rint.
2170         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
2171         with __builtin_rintf.
2172         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
2173         with __builtin_round.
2174         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
2175         with __builtin_roundf.
2176         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
2177         with __builtin_trunc.
2178         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
2179         with __builtin_truncf.
2180         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
2181         and s_l[l]round[f].c too.
2183 2017-10-23  Alan Modra  <amodra@gmail.com>
2185         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
2186         Adjust stack after restoring regs.  Add missing LR cfi_restore.
2188 2017-10-23  Alan Modra  <amodra@gmail.com>
2190         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
2191         Move LR save and frame setup/teardown and LR restore to
2192         immediately around memset call.  Provide cfi.
2194 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2196         * sysdeps/i386/fpu/e_powf.S: Removed.
2197         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
2198         * sysdeps/i386/fpu/w_powf.c: Likewise.
2199         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
2200         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2201         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2202         Add e_powf-sse2.
2203         (CFLAGS-e_powf-sse2.c): New.
2204         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
2205         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
2207 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2209         * sysdeps/i386/fpu/e_log2f.S: Removed.
2210         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
2211         * sysdeps/i386/fpu/w_log2f.c: Likewise.
2212         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
2213         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2214         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2215         Add e_log2f-sse2.
2216         (CFLAGS-e_log2f-sse2.c): New.
2217         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
2218         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
2220 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2222         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2223         Add e_powf-fma.
2224         (CFLAGS-e_powf-fma.c): New.
2225         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
2226         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
2228 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2230         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2231         Add e_log2f-fma.
2232         (CFLAGS-e_log2f-fma.c): New.
2233         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
2234         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
2236 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2238         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2239         Add e_logf-fma.
2240         (CFLAGS-e_logf-fma.c): New.
2241         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
2242         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
2244 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2246         * sysdeps/i386/fpu/e_logf.S: Removed.
2247         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
2248         * sysdeps/i386/fpu/w_logf.c: Likewise.
2249         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
2250         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
2251         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2252         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2253         Add e_logf-sse2.
2254         (CFLAGS-e_logf-sse2.c): New.
2255         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
2256         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
2258 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2260         * sysdeps/i386/fpu/e_exp2f.S: Removed.
2261         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
2262         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
2263         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2264         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2265         Add e_exp2f-sse2.
2266         (CFLAGS-e_exp2f-sse2.c): New.
2267         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
2268         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
2270 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2272         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2273         Add e_exp2f-fma.
2274         (CFLAGS-e_exp2f-fma.c): New.
2275         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
2276         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
2278 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2280         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
2281         * sysdeps/i386/fpu/e_expf.S: Likewise.
2282         * sysdeps/i386/fpu/math_errf.c: Likewise.
2283         * sysdeps/i386/fpu/w_expf.c: Likewise.
2284         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
2285         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2286         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
2287         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
2288         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
2289         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
2290         Remove e_expf-ia32.
2291         (CFLAGS-e_expf-sse2.c): New.
2292         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
2293         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
2295 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
2297         * sysdeps/x86_64/fpu/e_expf.S: Removed.
2298         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
2299         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
2300         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
2301         e_expf.c.
2302         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
2303         New.
2304         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
2305         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
2306         Renamed to ...
2307         (__redirect_expf): This.
2308         (SYMBOL_NAME): Changed to expf.
2309         (__ieee754_expf): Renamed to ...
2310         (__expf): This.
2311         (__GI___expf): This.
2312         (__ieee754_expf): Add strong_alias.
2313         (__expf_finite): Likewise.
2314         (__expf): New.
2315         Include <sysdeps/ieee754/flt-32/e_expf.c>.
2317 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
2319         [BZ #22332]
2320         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
2321         unescaping.
2323 2017-10-21  Florian Weimer  <fweimer@redhat.com>
2325         * posix/Makefile (tests): Add tst-glob-tilde.
2326         (tests-special): Add tst-glob-tilde-mem.out
2327         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
2328         (tst-glob-tilde-mem.out): Add mtrace check.
2329         * posix/tst-glob-tilde.c: New file.
2331 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
2333         * bits/floatn-common.h: New file.
2334         * math/Makefile (headers): Add bits/floatn-common.h.
2335         * bits/floatn.h: Include <bits/floatn-common.h>.
2336         * sysdeps/ia64/bits/floatn.h: Likewise.
2337         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2338         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
2339         * sysdeps/powerpc/bits/floatn.h: Likewise.
2340         * sysdeps/x86/bits/floatn.h: Likewise.
2342 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2344         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
2345         indicates whether compiler emits an warning for alias for
2346         functions with incompatible types.
2348         [BZ #22273]
2349         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
2350         the auxiliary process is terminated by a signal before calling _exit
2351         or execve.
2353 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2355         [BZ #21265]
2356         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
2357         New.
2358         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
2359         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
2360         and bit_arch_XSAVEC_Usable if needed.
2361         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
2362         and bit_arch_Use_dl_runtime_resolve_opt.
2363         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
2364         Removed.
2365         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
2366         (bit_arch_Prefer_No_AVX512): Updated.
2367         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
2368         (bit_arch_XSAVEC_Usable): New.
2369         (STATE_SAVE_OFFSET): Likewise.
2370         (STATE_SAVE_MASK): Likewise.
2371         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
2372         (cpu_features): Add xsave_state_size and xsave_state_full_size.
2373         (index_arch_Use_dl_runtime_resolve_opt): Removed.
2374         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
2375         (index_arch_XSAVEC_Usable): New.
2376         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2377         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
2378         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
2379         is enabled.
2380         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
2381         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
2382         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
2383         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
2384         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
2385         _dl_runtime_resolve_xsavec.
2386         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
2387         Removed.
2388         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
2389         instead of VEC_SIZE.
2390         (REGISTER_SAVE_BND0): Removed.
2391         (REGISTER_SAVE_BND1): Likewise.
2392         (REGISTER_SAVE_BND3): Likewise.
2393         (REGISTER_SAVE_RAX): Always defined to 0.
2394         (VMOV): Removed.
2395         (_dl_runtime_resolve_avx): Likewise.
2396         (_dl_runtime_resolve_avx_slow): Likewise.
2397         (_dl_runtime_resolve_avx_opt): Likewise.
2398         (_dl_runtime_resolve_avx512): Likewise.
2399         (_dl_runtime_resolve_avx512_opt): Likewise.
2400         (_dl_runtime_resolve_sse): Likewise.
2401         (_dl_runtime_resolve_sse_vex): Likewise.
2402         (USE_FXSAVE): New.
2403         (_dl_runtime_resolve_fxsave): Likewise.
2404         (USE_XSAVE): Likewise.
2405         (_dl_runtime_resolve_xsave): Likewise.
2406         (USE_XSAVEC): Likewise.
2407         (_dl_runtime_resolve_xsavec): Likewise.
2408         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
2409         Removed.
2410         (_dl_runtime_resolve_avx512_opt): Likewise.
2411         (_dl_runtime_resolve_avx): Likewise.
2412         (_dl_runtime_resolve_avx_opt): Likewise.
2413         (_dl_runtime_resolve_sse): Likewise.
2414         (_dl_runtime_resolve_sse_vex): Likewise.
2415         (_dl_runtime_resolve_fxsave): New.
2416         (_dl_runtime_resolve_xsave): Likewise.
2417         (_dl_runtime_resolve_xsavec): Likewise.
2419 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
2421         [BZ #22320]
2422         CVE-2017-15670
2423         * posix/glob.c (__glob): Fix one-byte overflow.
2425 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2427         * malloc/malloc.c (sysdep-cancel.h): Add include.
2429 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
2431         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
2433 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
2435         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
2436         (tests): Remove $(objpfx)ga_test depdendency.
2437         * resolv/ga_test.c: Remove file.
2439 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2441         [BZ #18812]
2442         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
2443         * localedata/locales/kab_DZ: New file.
2445 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2447         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
2448         _dl_relocate_static_pie instead of _dl_start to compute load
2449         address in static PIE.
2451 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2453         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
2455 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
2457         [BZ #13605]
2458         * localedata/SUPPORTED: Add shn_MM/UTF-8.
2459         * localedata/locales/shn_MM: New file.
2461 2017-10-20  Florian Weimer  <fweimer@redhat.com>
2463         [BZ #22321]
2464         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
2465         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
2466         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
2467         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
2468         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
2469         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
2471 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2473         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2475 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
2477         * sysdeps/mips/ieee754/bits/floatn.h: New file.
2479         [BZ #22322]
2480         * sysdeps/mips/bits/long-double.h: Move to ....
2481         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
2483 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
2485         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
2487 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
2488             H.J. Lu  <hongjiu.lu@intel.com>
2490         [BZ #22299]
2491         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
2492         GLRO(dl_platform) to NULL.
2493         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
2494         (modules-names): Add tst-platformmod-1 and
2495         x86_64/tst-platformmod-2.
2496         (CFLAGS-tst-platform-1.c): New.
2497         (CFLAGS-tst-platformmod-1.c): Likewise.
2498         (CFLAGS-tst-platformmod-2.c): Likewise.
2499         (LDFLAGS-tst-platformmod-2.so): Likewise.
2500         ($(objpfx)tst-platform-1): Likewise.
2501         ($(objpfx)tst-platform-1.out): Likewise.
2502         (tst-platform-1-ENV): Likewise.
2503         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
2504         * sysdeps/x86_64/tst-platform-1.c: New file.
2505         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
2506         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
2508 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
2510         [BZ #13994]
2511         * locale/iso-639.def: Add Karbi.
2512         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
2513         * localedata/locales/mjw_IN: New file.
2515 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
2517         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
2518         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
2519         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
2520         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
2521         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2522         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2523         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
2524         <bits/floatn.h>.
2525         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
2526         (libm_alias_ldouble_other_r): Also create _Float128 alias.
2527         * manual/math.texi (Mathematics): Document additional architecture
2528         support for _Float128.
2529         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2530         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2531         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2532         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2533         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2534         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2535         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2536         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2537         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2538         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2539         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2540         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2541         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2542         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2543         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2545 2017-10-18  Renlin Li  <renlin.li@arm.com>
2547         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
2548         _DYNAMIC symbol to calculate load address.
2550 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
2552         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
2553         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
2554         summary bits.
2555         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
2556         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
2558 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
2560         [BZ #16777]
2561         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
2562         and improve readability by using more ASCII.
2563         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
2564         and improve readability by using more ASCII.
2566 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
2568         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
2569         not all targets support atomics on bool.
2571 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
2573         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
2574         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
2575         __f128.
2576         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2577         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
2578         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2579         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
2580         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
2581         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
2583 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2585         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
2586         defines.
2588 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2590         [BZ #22159]
2591         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
2592         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
2593         (do_check_remalloced_chunk): Fix build bug.
2594         (do_check_malloc_state): Add assert that checks arena->top.
2595         (malloc_consolidate): Remove initialization.
2596         (int_mallinfo): Remove call to malloc_consolidate.
2597          (__libc_mallopt): Clarify why malloc_consolidate is needed.
2599 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2601         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
2602         (have_fastchunks): Remove.
2603         (clear_fastchunks): Remove.
2604         (set_fastchunks): Remove.
2605         (malloc_state): Add have_fastchunks.
2606         (malloc_init_state): Use have_fastchunks.
2607         (do_check_malloc_state): Remove incorrect invariant checks.
2608         (_int_malloc): Use have_fastchunks.
2609         (_int_free): Likewise.
2610         (malloc_consolidate): Likewise.
2612 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
2614         * malloc/malloc.c (tcache_put): Inline.
2615         (tcache_get): Inline.
2617 2017-10-17  Jordi Mallach  <jordi@gnu.org>
2619         Aurelien Jarno  <aurelien@aurel32.net>
2620         [BZ #2522]
2621         * localedata/locales/ca_ES@valencia: New file.
2622         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
2624 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
2626         [BZ #22296]
2627         * math/math.h: Let signbit use the builtin in C++ mode with gcc
2628         < 6.x
2630 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2632         * scripts/build-many-glibcs.py (Context.add_all_configs):
2633         Add arm-linux-gnueabihf multiarch extra_glibcs.
2635         * sysdeps/generic/ifunc-init.h: New file.
2636         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
2638 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
2640         [BZ #22019]
2641         * localedata/locales/el_GR: Set n_cs_precedes to 0.
2642         * localedata/locales/el_CY: copy "el_GR" because it is identical.
2643         * stdlib/tst-strfmon_l.c: adapt test case.
2645 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2647         * sysdeps/generic/float128-abi.h: New file.
2648         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
2649         non-__prefixed symbols to ....
2650         * math/Versions: ... here.  Include <float128-abi.h>.
2651         * stdlib/Versions ... and here.  Include <float128-abi.h>
2653 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2655         * version.h (VERSION): Switch to ".9000" as the development
2656         version suffix.
2658 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2660         [BZ #22050]
2661         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
2662         compat_symbol_reference to access non-default version.
2664 2017-10-16  Florian Weimer  <fweimer@redhat.com>
2666         * malloc/Makefile (others-extras): Set to mcheck-init.o.
2668 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
2670         * include/shlib-compat.h (compat_symbol_reference): Update
2671         comment.
2673 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
2675         * math/Makefile (test-types): Add
2676         $(type-float128-$(float128-alias-fcts)).
2677         * math/test-float128.h (TYPE_STR): Define conditional on
2678         [FLT128_MANT_DIG == LDBL_MANT_DIG].
2679         (ULP_IDX): Likewise.
2680         (ULP_I_IDX): Likewise.
2682         * stdlib/strtold.c: Include <bits/floatn.h>
2683         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
2684         and later undefine as macro.  Define as weak alias if
2685         [!USE_WIDE_CHAR].
2686         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
2687         and later undefine as macro.  Define as weak alias if
2688         [USE_WIDE_CHAR].
2689         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
2690         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
2691         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
2692         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2693         Define and later undefine as macro.  Define as weak alias if
2694         [USE_WIDE_CHAR].
2695         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
2696         <bits/floatn.h>.
2697         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
2698         Define and later undefine as macro.  Define as weak alias if
2699         [!USE_WIDE_CHAR].
2700         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
2701         Define and later undefine as macro.  Define as weak alias if
2702         [USE_WIDE_CHAR].
2704 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
2706         * localedata/collate-test.c (allocate_arrays): Don't use \n in
2707         record_verbose messages.
2709 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2711         [BZ #22052]
2712         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
2713         to silence -O3 -Wall warning with GCC 7.
2715 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
2717         * Makeconfig (+link-static-before-libc): Use the first of
2718         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
2719         * gmon/Makefile (tests): Add tst-gmon-static.
2720         (tests-static): Likewise.
2721         (CFLAGS-tst-gmon-static.c): New.
2722         (CRT-tst-gmon-static): Likewise.
2723         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
2724         (tst-gmon-static-ENV): Likewise.
2725         (tests-special): Likewise.
2726         ($(objpfx)tst-gmon-static.out): Likewise.
2727         (clean-tst-gmon-static-data): Likewise.
2728         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
2729         * gmon/tst-gmon-static-gprof.sh: New file.
2730         * gmon/tst-gmon-static.c: Likewise.
2732 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
2734         [BZ #22295]
2735         * locale/programs/linereader.c (get_string): Don't warn on
2736         non-symbolic character.
2738         [BZ #22294]
2739         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
2740         int_curr_symbol.
2742         [BZ #22292]
2743         * locale/programs/record-status.h: New file
2744         * locale/programs/locale.c: Add comment.
2745         * locale/programs/charmap-dir.c: Don't include error.h.
2746         (charmap_opendir): Use record_error.
2747         * locale/programs/charmap.c: Don't include error.h.
2748         (charmap_read): Use record_error, and record_warning.
2749         (parse_charmap): Likewise.
2750         * locale/programs/ld-address.c: Don't include error.h.
2751         (address_finish): Use record_error, and record_warning.
2752         * locale/programs/ld-collate.c: Don't include error.h.
2753         (collate_finish): Use record_error, and record_error_at_line.
2754         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
2755         (ctype_class_new): Likewise.
2756         (ctype_map_new): Likewise.
2757         (set_one_default): Likewise.
2758         (set_class_defaults): Likewise.
2759         (translit_flatten): Likewise.
2760         (allocate_arrays): Use record_error, and record_verbose.
2761         * locale/programs/ld-identification.c: Don't include error.h.
2762         (indentation_finish): Use record_error and record_warning.
2763         * locale/programs/ld-measurement.c: Don't include error.h.
2764         (measurement_finish): Use record_error.
2765         * locale/programs/ld-messages.c
2766         (message_finish): Likewise.
2767         * locale/programs/ld-monetary.c
2768         (monetary_finish): Likewise.
2769         * locale/programs/ld-name.c (name_finish): Use record_error
2770         and record_warning.
2771         * locale/programs/ld-numeric.c
2772         (numeric_finish): Use record_error.
2773         * locale/programs/ld-paper.c: Don't include error.h.
2774         (paper_finish): Use record_error.
2775         * locale/programs/ld-telephone.c: Don't include error.h.
2776         (telephone_finish): Use record_error.
2777         * locale/programs/ld-time.c (time_finish): Likewise.
2778         * locale/programs/linereader.h (lr_error): Make inline func.
2779         * locale/programs/localedef.c: Define recorded_warning_count,
2780         and recorded_error_count.
2781         (main): Use record_error. Use recorded_error_count and
2782         recorded_warning_count to issue correct error returns.
2783         (add_to_readlist): Use record_error.
2784         (find_locale): Likewise.
2785         (load_locale): Likewise.
2786         * locale/programs/localedef.h: Remove be_quiet
2787         and WITH_CUR_LOCALE.
2788         * locale/programs/locarchive.c (compare_from_file): Use
2789         record_error.
2790         * locale/programs/locfile.c (write_locale_data): Use
2791         record_error.
2792         * locale/programs/repertoire.c: Dont include error.h.
2793         (repertoire_complain): Use record_error.
2794         * localedata/tst-fmon.sh: Expect failures from localedef.
2795         * localedata/tst-locale.sh: Likewise.
2796         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
2798         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
2799         (REPORTS): Likewise.
2800         (check): Likewise.
2801         (i18n): Rename to...
2802         (i18n_ctype): ...this.
2803         (i18n-report): Rename to...
2804         (i18n_ctype-report): ...this.
2805         * localedata/locales/i18n_ctype: Regenerate.
2806         * localedata/locales/i18n: copy i18n_ctype.
2808 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2810         * stdlib/strfroml.c: Include <bits/floatn.h>.
2811         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
2812         Define before include of <stdlib.h> and undefine afterwards, then
2813         define as weak alias.
2815         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
2816         Undefine and restore default definition.  Use
2817         libm_alias_ldouble_other.
2819 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
2821         [BZ #22153]
2822         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
2823         in coredumps.
2825 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
2827         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2828         Assign sym_map to be map for local symbols, as TLS relocations
2829         use sym_map to determine whether the symbol is defined and to
2830         extract the TLS information.
2831         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2832         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2834 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2836         [BZ #22189]
2837         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
2838         (math_force_eval): Add powerpc version.
2840         [BZ #22142]
2841         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
2842         -DBL_MAX.
2843         (do_test): Likewise.
2844         * stdio-common/tst-printf.sh: Likewise.
2845         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
2846         ifdef clause in order to set the carry bit right.  Replace r0 by
2847         0 without changing the behavior.
2849 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
2851         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
2852         <libm-alias-ldouble.h>.
2853         (fabsl): Define using libm_alias_ldouble.
2854         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
2855         <libm-alias-ldouble.h>.
2856         (fabsl): Define using libm_alias_ldouble.
2858         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
2859         Remove conditional code.
2861         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
2862         Rename to __clog10_internal_l.
2863         (__clog10_internal_l): Define aliases using
2864         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
2865         with __clog10.
2867 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2869         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
2870         * benchtests/sincosf-inputs: New file.
2871         * benchtests/cosf-inputs: New file.
2872         * benchtests/sinf-inputs: New file.
2874 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2876         * posix/tst-spawn.c (do_test): Wait for both children.
2878 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2880         [BZ #22284]
2881         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
2882         tests-pie): Add tst-gmon-pie.
2883         (CFLAGS-tst-gmon-pie.c): New.
2884         (CRT-tst-gmon-pie): Likewise.
2885         (tst-gmon-pie-ENV): Likewise.
2886         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
2887         ($(objpfx)tst-gmon-pie.out): Likewise.
2888         (clean-tst-gmon-pie-data): Likewise.
2889         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
2890         * gmon/gmon.c [PIC]: Include <link.h>.
2891         [PIC] (callback): New function.
2892         (write_hist): Add an argument for load address.  Subtract load
2893         address from PCs.
2894         (write_call_graph): Likewise.
2895         (write_gmon): Call __dl_iterate_phdr to get load address, pass
2896         it to write_hist and write_call_graph.
2897         * gmon/tst-gmon-pie.c: New file.
2899 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2901         * math/Makefile (test-types-basic): New variable.
2902         (test-types): Likewise.
2903         (libm-test-support): Use $(test-types) instead of $(types).
2904         (libm-tests-base-normal): Likewise.
2905         (libm-tests-base-finite): Likewise.
2906         (libm-tests-base-inline): Likewise.
2907         (generated): Likewise.
2908         ($(objpfx)libm-test-support-$(t).c): Likewise.
2909         (libm-tests-for-type iterator): Likewise.
2910         (libm-test-support iterator): Likewise.
2911         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
2912         (ulp_idx): Use ULP_IDX.
2913         * math/test-ldouble.h: Include <float.h>.
2914         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
2915         (ULP_IDX): New macro.
2916         (ULP_I_IDX): Likewise.
2917         * math/test-double.h (ULP_IDX): Likewise.
2918         (ULP_I_IDX): Likewise.
2919         * math/test-float.h (ULP_IDX): Likewise.
2920         (ULP_I_IDX): Likewise.
2921         * math/test-float128.h (ULP_IDX): Likewise.
2922         (ULP_I_IDX): Likewise.
2924 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2926         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
2927         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
2928         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
2929         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
2930         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
2931         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
2932         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
2933         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
2934         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
2935         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
2936         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
2937         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
2938         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
2939         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2940         (SINGLE_THREAD_BY_GLOBAL): Define.
2941         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2942         Likewise.
2943         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2944         Likewise.
2945         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2946         Likewise.
2947         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2948         Likewise.
2949         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
2950         (SINGLE_THREAD_BY_GLOBAL): Likewise.
2951         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
2952         Likewise.
2954 2017-10-11  Andreas Schwab  <schwab@suse.de>
2956         * nis/Makefile (aux): Remove.
2957         * nscd/Makefile (aux): Add nscd_hash.
2958         (nscd-modules): Likewise.
2959         ($(objpfx)nscd): Don't depend on libnsl.
2960         * nscd/nscd_hash.c: New file.
2961         * nscd/nscd_hash.h: Likewise.
2962         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
2963         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
2964         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
2965         instead of <nis/rpcsvc/nis.h>.
2966         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
2968 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2970         [BZ #22078]
2971         Avoid large NSS buffers with many addresses, aliases.
2972         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
2973         using dynarrays and struct alloc_buffer.
2974         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
2975         (tst-nss-files-hosts-multi): Link with -ldl.
2976         * nss/tst-nss-files-hosts-multi.c: New file.
2978 2017-10-11  Florian Weimer  <fweimer@redhat.com>
2980         [BZ #18023]
2981         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
2982         scratch_buffer.  Eliminate gotos.
2984 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
2986         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2987         libm_alias_ldouble_other.
2988         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2989         undefine and redefine.
2990         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2991         (exp10l): Do not define here.
2992         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2993         (weak_alias): Undefine and redefine.
2994         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2995         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2996         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2997         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2999         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
3000         [!__fma] (fma): Define using libm_alias_double.
3001         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
3002         [!__fmaf] (fmaf): Define using libm_alias_float.
3003         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
3004         (fmal): Define using libm_alias_ldouble.
3006 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
3008         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
3009         New macro.
3010         (libm_alias_double_other): Likewise.
3011         (libm_alias_double_r): Use libm_alias_double_other_r.
3012         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
3013         New macro.
3014         (libm_alias_float_other): Likewise.
3015         (libm_alias_float_r): Use libm_alias_float_other_r.
3016         * sysdeps/generic/libm-alias-float128.h
3017         (libm_alias_float128_other_r): New macro.
3018         (libm_alias_float128_other): Likewise.
3019         (libm_alias_float128_r): Use libm_alias_float128_other_r.
3020         * sysdeps/generic/libm-alias-ldouble.h
3021         (libm_alias_ldouble_other_r): New macro.
3022         (libm_alias_ldouble_other): Likewise.
3023         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3024         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
3025         (libm_alias_double_other_r): New macro.
3026         (libm_alias_double_other): Likewise.
3027         (libm_alias_double_r): Use libm_alias_double_other_r.
3028         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3029         (libm_alias_ldouble_other_r): New macro.
3030         (libm_alias_ldouble_other): Likewise.
3031         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
3032         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
3033         [!USE_AS_COMPAT]: Use libm_alias_double_other.
3034         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
3035         [!USE_AS_COMPAT]: Use libm_alias_float_other.
3036         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
3037         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
3038         * math/w_exp2f.c: Use libm_alias_float_other.
3039         * math/w_expf.c: Likewise.
3040         * math/w_log2f.c: Likewise.
3041         * math/w_logf.c: Likewise.
3042         * math/w_powf.c: Likewise.
3043         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
3044         [!__exp2f]: Use libm_alias_float_other.
3045         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
3046         [!__expf]: Use libm_alias_float_other.
3047         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
3048         [!__log2f]: Use libm_alias_float_other.
3049         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
3050         [!__logf]: Use libm_alias_float_other.
3051         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
3052         [!__powf]: Use libm_alias_float_other.
3054 2017-10-10  Florian Weimer  <fweimer@redhat.com>
3056         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
3057         function.
3058         (_nss_files_gethostbyname3_r): Call it.
3060 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3062         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
3063         error.  Remove default definition of declare_mgen_alias.
3064         [!declare_mgen_alias_r]: Likewise.
3065         * sysdeps/generic/math-type-macros-double.h
3066         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
3067         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
3068         (declare_mgen_alias_r): Likewise.
3069         * sysdeps/generic/math-type-macros-float128.h
3070         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3071         * sysdeps/generic/math-type-macros-ldouble.h
3072         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
3073         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
3074         macro.
3075         (declare_mgen_alias_r_s): Likewise.
3076         (declare_mgen_alias_r): Likewise.
3077         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
3078         (lgamma_r): Define using libm_alias_double_r.
3079         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
3080         (lgammaf_r): Define using libm_alias_float_r.
3081         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
3082         (lgammal_r): Define using libm_alias_ldouble_r.
3083         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
3084         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3086 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3088         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3089         extern declaration.
3091 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
3093         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
3095 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
3097         [BZ #21326]
3098         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
3099         [__cplusplus >= 201103] (__USE_ISOC99): Define.
3100         * math/Makefile (test-math-cxx11): New test.
3101         * math/test-math-cxx11.cc: New file.
3103 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
3105         * login/openpty.c (openpty): Close slave pty file descriptor on error.
3107         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
3108         call to allocate the slave pty file descriptor.
3110 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3112         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
3113         [!__fma] (fma): Define using libm_alias_double.
3114         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
3115         [!__fma] (fma): Define using libm_alias_double.
3117         * sysdeps/ieee754/float128/float128_private.h: Include
3118         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
3119         (libm_alias_ldouble_r): Undefine and redefine.
3120         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
3121         <libm-alias-ldouble.h>.
3122         (asinhl): Define using libm_alias_ldouble.
3123         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
3124         <libm-alias-ldouble.h>.
3125         (atanl): Define using libm_alias_ldouble.
3126         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
3127         <libm-alias-ldouble.h>.
3128         (cbrtl): Define using libm_alias_ldouble.
3129         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
3130         <libm-alias-ldouble.h>.
3131         (ceill): Define using libm_alias_ldouble.
3132         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
3133         <libm-alias-ldouble.h>.
3134         (copysignl): Define using libm_alias_ldouble.
3135         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
3136         <libm-alias-ldouble.h>.
3137         (cosl): Define using libm_alias_ldouble.
3138         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
3139         <libm-alias-ldouble.h>.
3140         (erfl): Define using libm_alias_ldouble.
3141         (erfcl): Likewise.
3142         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
3143         <libm-alias-ldouble.h>.
3144         (expm1l): Define using libm_alias_ldouble.
3145         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
3146         <libm-alias-ldouble.h>.
3147         (fabsl): Define using libm_alias_ldouble.
3148         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
3149         <libm-alias-ldouble.h>.
3150         (floorl): Define using libm_alias_ldouble.
3151         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
3152         <libm-alias-ldouble.h>.
3153         (fmal): Define using libm_alias_ldouble.
3154         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
3155         <libm-alias-ldouble.h>.
3156         (frexpl): Define using libm_alias_ldouble.
3157         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
3158         libm_alias_ldouble.
3159         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
3160         <libm-alias-ldouble.h>.
3161         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
3162         libm_alias_ldouble.
3163         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
3164         <libm-alias-ldouble.h>.
3165         (getpayloadl): Define using libm_alias_ldouble.
3166         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
3167         <libm-alias-ldouble.h>.
3168         (llrintl): Define using libm_alias_ldouble.
3169         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
3170         <libm-alias-ldouble.h>.
3171         (llroundl): Define using libm_alias_ldouble.
3172         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
3173         <libm-alias-ldouble.h>.
3174         (logbl): Define using libm_alias_ldouble.
3175         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
3176         <libm-alias-ldouble.h>.
3177         (lrintl): Define using libm_alias_ldouble.
3178         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
3179         <libm-alias-ldouble.h>.
3180         (lroundl): Define using libm_alias_ldouble.
3181         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
3182         <libm-alias-ldouble.h>.
3183         (modfl): Define using libm_alias_ldouble.
3184         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
3185         <libm-alias-ldouble.h>.
3186         (nearbyintl): Define using libm_alias_ldouble.
3187         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
3188         <libm-alias-ldouble.h>.
3189         (nextafterl): Define using libm_alias_ldouble.
3190         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
3191         <libm-alias-ldouble.h>.
3192         (nextupl): Define using libm_alias_ldouble.
3193         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
3194         <libm-alias-ldouble.h>.
3195         (remquol): Define using libm_alias_ldouble.
3196         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
3197         <libm-alias-ldouble.h>.
3198         (rintl): Define using libm_alias_ldouble.
3199         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
3200         <libm-alias-ldouble.h>.
3201         (roundevenl): Define using libm_alias_ldouble.
3202         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
3203         <libm-alias-ldouble.h>.
3204         (roundl): Define using libm_alias_ldouble.
3205         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
3206         using libm_alias_ldouble.
3207         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
3208         <libm-alias-ldouble.h>.
3209         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
3210         Define using libm_alias_ldouble.
3211         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
3212         <libm-alias-ldouble.h>.
3213         (sincosl): Define using libm_alias_ldouble.
3214         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
3215         <libm-alias-ldouble.h>.
3216         (sinl): Define using libm_alias_ldouble.
3217         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
3218         <libm-alias-ldouble.h>.
3219         (tanhl): Define using libm_alias_ldouble.
3220         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
3221         <libm-alias-ldouble.h>.
3222         (tanl): Define using libm_alias_ldouble.
3223         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
3224         <libm-alias-ldouble.h>.
3225         (totalorderl): Define using libm_alias_ldouble.
3226         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
3227         <libm-alias-ldouble.h>.
3228         (totalordermagl): Define using libm_alias_ldouble.
3229         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
3230         <libm-alias-ldouble.h>.
3231         (truncl): Define using libm_alias_ldouble.
3232         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
3233         libm_alias_ldouble.
3234         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
3235         libm_alias_ldouble.
3236         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
3237         <libm-alias-ldouble.h>.
3238         (weak_alias): Do not undefine and redefine.
3239         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3240         (copysignl): Define with long_double_symbol only if [IS_IN
3241         (libc)].
3242         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
3243         <libm-alias-ldouble.h>.
3244         (weak_alias): Do not undefine and redefine.
3245         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3246         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
3247         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
3248         <libm-alias-ldouble.h>.
3249         (weak_alias): Do not undefine and redefine.
3250         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
3251         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
3252         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
3253         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
3254         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
3255         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
3256         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
3257         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
3258         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
3259         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
3260         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
3261         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
3262         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
3263         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
3264         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
3265         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
3266         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
3267         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
3268         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
3269         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
3270         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
3271         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
3272         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
3273         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
3274         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
3275         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
3277 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
3279         [BZ #22111]
3280         * malloc/malloc.c (tcache_shutting_down): Use bool type.
3281         (tcache_thread_freeres): Set tcache_shutting_down before
3282         freeing the tcache.
3283         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
3284         * malloc/tst-malloc-tcache-leak.c: New file.
3286 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3288         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
3289         back to powerpc32 file.
3290         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3291         (memrchr): Add __memrchr_power8 to ifunc list.
3292         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
3293         extra bytes for unaligned inputs.
3295 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
3297         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
3298         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
3299         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
3300         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
3301         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
3303 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3305         * sysdeps/arm/libm-test-ulps: Update.
3307         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
3308         <libm-alias-ldouble.h>.
3309         (asinhl): Define using libm_alias_ldouble.
3310         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
3311         <libm-alias-ldouble.h>.
3312         (cbrtl): Define using libm_alias_ldouble.
3313         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
3314         <libm-alias-ldouble.h>.
3315         (copysignl): Define using libm_alias_ldouble.
3316         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
3317         <libm-alias-ldouble.h>.
3318         (cosl): Define using libm_alias_ldouble.
3319         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
3320         <libm-alias-ldouble.h>.
3321         (erfl): Define using libm_alias_ldouble.
3322         (erfcl): Likewise.
3323         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
3324         <libm-alias-ldouble.h>.
3325         (fmal): Define using libm_alias_ldouble.
3326         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
3327         <libm-alias-ldouble.h>.
3328         (frexpl): Define using libm_alias_ldouble.
3329         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
3330         libm_alias_ldouble.
3331         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
3332         <libm-alias-ldouble.h>.
3333         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
3334         libm_alias_ldouble.
3335         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
3336         <libm-alias-ldouble.h>.
3337         (getpayloadl): Define using libm_alias_ldouble.
3338         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
3339         <libm-alias-ldouble.h>.
3340         (llrintl): Define using libm_alias_ldouble.
3341         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
3342         <libm-alias-ldouble.h>.
3343         (llroundl): Define using libm_alias_ldouble.
3344         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
3345         <libm-alias-ldouble.h>.
3346         (lrintl): Define using libm_alias_ldouble.
3347         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
3348         <libm-alias-ldouble.h>.
3349         (lroundl): Define using libm_alias_ldouble.
3350         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
3351         <libm-alias-ldouble.h>.
3352         (modfl): Define using libm_alias_ldouble.
3353         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
3354         <libm-alias-ldouble.h>.
3355         (nextupl): Define using libm_alias_ldouble.
3356         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
3357         <libm-alias-ldouble.h>.
3358         (remquol): Define using libm_alias_ldouble.
3359         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
3360         <libm-alias-ldouble.h>.
3361         (roundevenl): Define using libm_alias_ldouble.
3362         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
3363         <libm-alias-ldouble.h>.
3364         (roundl): Define using libm_alias_ldouble.
3365         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
3366         using libm_alias_ldouble.
3367         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
3368         <libm-alias-ldouble.h>.
3369         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
3370         <libm-alias-ldouble.h>.
3371         (setpayloadsigl): Define using libm_alias_ldouble.
3372         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
3373         <libm-alias-ldouble.h>.
3374         (sincosl): Define using libm_alias_ldouble.
3375         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
3376         <libm-alias-ldouble.h>.
3377         (sinl): Define using libm_alias_ldouble.
3378         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
3379         <libm-alias-ldouble.h>.
3380         (tanhl): Define using libm_alias_ldouble.
3381         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
3382         <libm-alias-ldouble.h>.
3383         (tanl): Define using libm_alias_ldouble.
3384         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
3385         <libm-alias-ldouble.h>.
3386         (totalorderl): Define using libm_alias_ldouble.
3387         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
3388         <libm-alias-ldouble.h>.
3389         (totalordermagl): Define using libm_alias_ldouble.
3390         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
3391         libm_alias_ldouble.
3392         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
3393         libm_alias_ldouble.
3395 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3397         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
3398         memmove_falkor.
3399         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3400         (__libc_ifunc_impl_list): Likewise.
3401         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
3402         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
3404         * benchtests/bench-memmove-walk.c: New file.
3405         * benchtests/Makefile (string-benchset): Add it.
3407         * benchtests/bench-memset-walk.c: New file.
3408         * benchtests/Makefile (string-benchset): Add it.
3410         * benchtests/bench-memcpy-walk.c: New file.
3411         * benchtests/Makefile (string-benchset): Add it.
3413 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3415         nscd: Eliminate compilation time dependency in the build output.
3416         * nscd/nscd_stat.c (STATDATA_VERSION)
3417         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
3418         (STATDATA_VERSION_FULL): New macro definitions.
3419         (compilation): Remove.
3420         (struct statdata): Adjust version member.
3421         (send_stats): Set version from STATDATA_VERSION_FULL.
3422         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
3424 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
3426         * configure.ac (--enable-add-ons): Remove option.
3427         (machine): Do not mention add-ons in comment.
3428         (LIBC_PRECONFIGURE): Likewise.
3429         (add_ons): Remove variable and sanity checks and logic to locate
3430         add-ons.
3431         (add_ons_automatic): Remove variable.
3432         (configured_add_ons): Likewise.
3433         (add_ons_sfx): Likewise.
3434         (add_ons_pfx): Likewise.
3435         (add_on_subdirs): Likewise.
3436         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
3437         consideration of add-ons in Implies handling.
3438         (sysdeps_add_ons): Likewise.
3439         * configure: Regenerated.
3440         * libidn/configure.ac: Remove.
3441         * libidn/configure: Likewise.
3442         * sysdeps/unix/inet/configure.ac: New file.
3443         * sysdeps/unix/inet/configure: New generated file.
3444         * sysdeps/unix/inet/Subdirs: Add libidn.
3445         * Makeconfig (sysdeps-srcdirs): Remove variable.
3446         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
3447         ($(common-objpfx)config.status): Do not depend on add-on files.
3448         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
3449         comment.
3450         (all-subdirs): Do not include $(add-on-subdirs).
3451         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
3452         * config.make.in (add-ons): Remove variable.
3453         (add-on-subdirs): Likewise.
3454         (sysdeps-add-ons): Likewise.
3455         * manual/Makefile (add-chapters): Remove.
3456         ($(objpfx)texis): Do not depend on $(add-chapters).
3457         (nonexamples): Do not handle $(add-chapters).
3458         (examples): Do not handle $(add-ons).
3459         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
3460         libc-texinfo.sh.
3461         * manual/install.texi (Installation): Do not mention add-ons.
3462         (--enable-add-ons): Do not document configure option.
3463         * INSTALL: Regenerated.
3464         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
3465         * manual/maint.texi (Hierarchy Conventions): Do not mention
3466         add-ons.
3467         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
3468         --enable-add-ons.
3469         * scripts/gen-sorted.awk: Do not handle Subdirs files from
3470         add-ons.
3471         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
3472         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
3474 2017-10-05  Andreas Schwab  <schwab@suse.de>
3476         [BZ #15142]
3477         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
3478         (_IO_flush_all_lockp): Always lock list_all_lock.
3479         (_IO_flush_all_linebuffered): Likewise.
3480         (_IO_unbuffer_all): Likewise.
3482 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3484         [BZ #15436]
3485         Do not flush stdio streams on abort.
3486         * stdlib/abort.c (fflush): Remove macro definition.
3487         (abort): Remove stages related to stdio flushing.
3489 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3491         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
3493 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
3495         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3497 2017-10-05  Florian Weimer  <fweimer@redhat.com>
3499         * support/support_format_hostent.c (support_format_hostent): Add
3500         more error information for NETDB_INTERNAL.
3502 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3504         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
3505         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
3506         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
3507         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
3508         AC_DEFINE if multi-arch is enabled.
3509         * sysdeps/i386/configure: Regenerated.
3511 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3513         * Makeconfig (+link-static-before-libc): Use
3514         $(DEFAULT-LDFLAGS-$(@F)).
3515         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
3516         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
3517         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
3519 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3521         * elf/Makefile (tests): Add tst-main1.
3522         (modules-names): Add tst-main1mod.
3523         ($(objpfx)tst-main1): New.
3524         (CRT-tst-main1): Likewise.
3525         (LDFLAGS-tst-main1): Likewise.
3526         (LDLIBS-tst-main1): Likewise.
3527         (tst-main1mod.so-no-z-defs): Likewise.
3528         * elf/tst-main1.c: New file.
3529         * elf/tst-main1mod.c: Likewise.
3531 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
3533         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
3535 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3537         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
3538         (fma): Define using libm_alias_double.
3539         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
3540         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
3541         <math_ldbl_opt.h>.
3542         (fmal): Do not define as compat symbol here.
3543         * sysdeps/alpha/fpu/s_fma.c: New file.
3545 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3547         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
3549 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
3551         [BZ #22229]
3552         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
3553         <math_ldbl_opt.h>
3554         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3555         and libc.
3556         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
3557         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3558         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
3559         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
3560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
3561         Include <math_ldbl_opt.h>
3562         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
3563         and libc.
3564         (compat_symbol): Undefine and redefine.
3565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
3566         <math_ldbl_opt.h>
3567         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
3568         (compat_symbol): Undefine and redefine.
3569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
3570         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
3571         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
3572         GLIBC_2_1 for libm.
3573         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
3574         GLIBC_2.0 copysignl symbol.
3575         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
3576         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
3578         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
3580 2017-10-04  Florian Weimer  <fweimer@redhat.com>
3582         * scripts/check-local-headers.sh: Ignore nspr4 header file
3583         directory in addition to nspr.
3585 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
3587         [BZ #17956]
3588         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
3589         * configure: Regenerate.
3590         * crypt/Makefile (nss-cpp-flags): New variable.
3591         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
3592         (CPPFLAGS-md5-crypt.c): Use it.
3593         * scripts/check-local-headers.sh: Ignore nspr header file
3594         directory.
3596 2017-10-04  Andreas Schwab  <schwab@suse.de>
3598         * nis/Makefile (services): Remove compat.
3599         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
3600         ($(objpfx)libnss_compat.so): Remove rule.
3601         * nis/Versions (libnss_compat): Remove.
3602         * nss/Makefile (services): Add compat.
3603         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
3604         * nss/Versions (libnss_compat): Define.
3605         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
3606         Don't include <rpc/types.h>.  Replace bool_t by bool.
3607         * nss/nss_compat/compat-initgroups.c: Likewise.
3608         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
3609         instead of <rpcsrv/ypclnt.h>.
3610         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
3611         yp_get_default_domain.
3612         * nss/nss_compat/compat-pwd.c: Likewise.
3613         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
3614         yp_get_default_domain.
3615         * nss/nss_compat/nisdomain.c: New file.
3616         * nss/nss_compat/nisdomain.h: Likewise.
3618 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3620         [BZ #22244]
3621         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
3622         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3624 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3626         [BZ #22243]
3627         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
3628         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
3630 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3632         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
3633         "movl main@GOTOFF(%ebx), %eax".
3635 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3637         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
3638         allow undefined _DYNAMIC in PIE libc.a.
3639         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3640         Likewse.
3642 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3644         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
3645         check _DYNAMIC.
3647 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3649         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
3650         check _DYNAMIC.
3652 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3654         * math/test-math-iscanonical.cc (error): Replace bool with int.
3656 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3658         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
3659         (modf): Define using libm_alias_double, only if [!__modf].
3660         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
3661         <libm-alias-double.h>.
3662         (modf): Define using libm_alias_double, only if [!__modf].
3663         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
3664         compat symbol here.
3665         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
3666         (weak_alias): Do not undefine and redefine.
3667         (strong_alias): Likewise.
3668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
3669         (weak_alias): Likewise.
3670         (strong_alias): Likewise.
3672         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
3673         (logb): Define using libm_alias_double, only if [!__logb].
3674         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
3675         <libm-alias-double.h>.
3676         (logb): Define using libm_alias_double, only if [!__logb].
3677         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
3678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
3679         (weak_alias): Do not undefine and redefine.
3680         (strong_alias): Likewise.
3681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
3682         (weak_alias): Likewise.
3683         (strong_alias): Likewise.
3685 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3687         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
3688         Check SHARED instead PIC.
3690 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3692         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
3693         [!__fmaf] (fmaf): Define using libm_alias_float.
3695         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
3696         (frexp): Define using libm_alias_double.
3697         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
3698         <libm-alias-double.h>.
3699         (frexp): Define using libm_alias_double.
3700         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
3701         compat symbol here.
3703 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3705         [BZ #22235]
3706         * math/math.h: Trivial fix for unbalanced parentheses in comment.
3707         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
3708         (CFLAGS-test-math-iscanonical.cc): New variable.
3709         * math/test-math-iscanonical.cc: New file.
3710         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
3711         Provide a C++ implementation based on function overloading,
3712         rather than using __MATH_TG, which uses C-only builtins.
3713         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
3714         Likewise.
3715         * sysdeps/powerpc/powerpc64le/Makefile
3716         (CFLAGS-test-math-iscanonical.cc): New variable.
3718 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
3720         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
3721         (ceil): Define using libm_alias_double.
3722         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
3723         (floor): Define using libm_alias_double.
3724         * sysdeps/ieee754/dbl-64/s_llround.c: Include
3725         <libm-alias-double.h>.
3726         (llround): Define using libm_alias_double.
3727         * sysdeps/ieee754/dbl-64/s_lround.c: Include
3728         <libm-alias-double.h>.
3729         (lround): Define using libm_alias_double.
3730         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
3731         <libm-alias-double.h>.
3732         (nearbyint): Define using libm_alias_double.
3733         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
3734         <libm-alias-double.h>.
3735         (remquo): Define using libm_alias_double.
3736         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
3737         (rint): Define using libm_alias_double.
3738         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
3739         (round): Define using libm_alias_double.
3740         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
3741         (trunc): Define using libm_alias_double.
3742         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
3743         <libm-alias-double.h>.
3744         (ceil): Define using libm_alias_double.
3745         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
3746         <libm-alias-double.h>.
3747         (floor): Define using libm_alias_double.
3748         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
3749         <libm-alias-double.h>.
3750         (llround): Define using libm_alias_double.
3751         [_LP64] (lround): Likewise.
3752         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
3753         <libm-alias-double.h>.
3754         [!_LP64] (lround): Define using libm_alias_double.
3755         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
3756         <libm-alias-double.h>.
3757         (nearbyint): Define using libm_alias_double.
3758         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
3759         <libm-alias-double.h>.
3760         (remquo): Define using libm_alias_double.
3761         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
3762         <libm-alias-double.h>.
3763         (rint): Define using libm_alias_double.
3764         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
3765         <libm-alias-double.h>.
3766         (round): Define using libm_alias_double.
3767         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
3768         <libm-alias-double.h>.
3769         (trunc): Define using libm_alias_double.
3770         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
3771         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
3772         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
3773         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
3774         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
3775         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
3776         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
3777         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
3778         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
3780 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3782         * math/w_remainder.c: New file.
3783         * math/w_remainderf.c: New file.
3784         * math/w_remainderl.c: New file.
3786 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
3788         * elf/rtld.c (BOOTSTRAP_MAP): New.
3789         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
3790         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3791         Likewise.
3792         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3793         Likewise.
3794         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3795         Likewise.
3797 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3799         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
3800         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
3801         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
3802         rtld_hidden_data_ver): Define to empty.
3803         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
3804         __assert_perror_fail): Likewise.
3805         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3806         (__rewinddir): Likewise.
3807         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3808         (__profile_frequency): Likewise.
3809         * include/setjmp.h (__sigsetjmp): Likewise.
3810         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
3811         __libc_sigaction): Likewise.
3812         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
3813         not set hidden attribute.
3814         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
3815         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
3816         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
3817         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
3818         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
3819         __fxstatat64): Likewise.
3820         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3821         (__uname): Likewise.
3822         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
3823         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
3824         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
3825         (NO_RTLD_HIDDEN): Set.
3826         * sysdeps/mach/hurd/configure: Refresh.
3827         * config.h.in: Refresh.
3829 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
3831         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
3832         (atan): Define using libm_alias_double.
3833         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
3834         (tan): Define using libm_alias_double.
3835         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
3836         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
3838         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
3839         define as weak alias of __atan.  Do not define any aliases if
3840         [__atan].
3841         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
3842         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
3843         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
3844         as weak alias of __tan.  Do not define any aliases if [__tan].
3845         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
3846         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
3847         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
3848         __atan.
3849         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
3850         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
3851         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
3852         and define as weak alias of __atan.
3853         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
3854         __atan.
3855         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
3856         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
3857         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
3858         define as weak alias of __tan.
3860 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3862         * math/w_lgamma.c: New file.
3863         * math/w_lgammaf.c: New file.
3864         * math/w_lgammal.c: New file.
3866 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3868         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
3869         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
3870         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
3871         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
3872         * sysdeps/ieee754/flt-32/w_logf.c: New file.
3873         * sysdeps/ieee754/flt-32/w_powf.c: New file.
3874         * sysdeps/i386/fpu/w_log2f.c: New file.
3875         * sysdeps/i386/fpu/w_logf.c: New file.
3876         * sysdeps/i386/fpu/w_powf.c: New file.
3877         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
3878         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
3879         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
3881 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3882             H.J. Lu  <hongjiu.lu@intel.com>
3884         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
3885         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
3886         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
3887         * sysdeps/ieee754/flt-32/w_expf.c: New file.
3888         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
3889         the new expf code.
3890         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
3891         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
3892         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
3893         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
3894         * sysdeps/i386/fpu/w_exp2f.c: New file.
3895         * sysdeps/i386/fpu/w_expf.c: New file.
3896         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
3897         * sysdeps/x86_64/fpu/w_expf.c: New file.
3899 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3901         * math/Versions (logf): New libm symbol at GLIBC_2.27.
3902         (log2f): Likewise.
3903         (powf): Likewise.
3904         * math/w_log2f.c: New file.
3905         * math/w_logf.c: New file.
3906         * math/w_powf.c: New file.
3907         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
3908         * math/w_logf_compat.c (__logf_compat): Likewise.
3909         * math/w_powf_compat.c (__powf_compat): Likewise.
3910         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
3911         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3912         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3913         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3914         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3915         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3916         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3917         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3918         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3919         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3920         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3921         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3922         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3923         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3924         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3926         Likewise.
3927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3928         Likewise.
3929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3930         Likewise.
3931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3932         Likewise.
3933         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3934         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3935         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3936         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3937         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3938         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3939         Likewise.
3940         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3941         Likewise.
3942         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3943         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3944         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3946 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3948         * sysdeps/powerpc/powerpc64/multiarch/Makefile
3949         (sysdep_routines): Add memrchr_power8.
3950         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3951         (memrchr): Add __memrchr_power8 to list of memrchr functions.
3952         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
3953         New file.
3954         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
3955         (memrchr): Add __memrchr_power8 to ifunc list.
3956         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
3958 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3960         [BZ #18822]
3961         * sysdeps/unix/sysv/linux/posix_fadvise64.c
3962         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
3963         libc_hidden_def.
3964         * sysdeps/unix/sysv/linux/posix_fallocate64.c
3965         (__posix_fallocate64_l64): Likewise.
3967 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3969         [BZ #18822]
3970         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3971         (__sched_setaffinity_new): Add libc_hidden_proto and
3972         libc_hidden_def.
3974 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3976         [BZ #18822]
3977         * include/glob.h (__glob64): Add libc_hidden_proto.
3978         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
3979         libc_hidden_def.
3981 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3983         [BZ #18822]
3984         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3985         attribute_hidden.
3987 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3989         [BZ #18822]
3990         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3992 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3994         [BZ #18822]
3995         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3996         libc_hidden_def.
3998 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4000         [BZ #18822]
4001         * csu/version.c (__libc_print_version): Add attribute_hidden.
4003 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4005         [BZ #18822]
4006         * include/libc-internal.h (__init_misc): Add attribute_hidden.
4008 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4010         [BZ #18822]
4011         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
4013 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4015         [BZ #18822]
4016         * nscd/nscd_helper.c (__nis_hash): New prototype.
4018 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4020         [BZ #18822]
4021         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
4022         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
4023         libc_hidden_def.
4024         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
4025         * termios/tcgetattr.c (__tcgetattr): Likewise.
4027 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4029         [BZ #18822]
4030         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
4031         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
4032         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
4033         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
4034         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
4036 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4038         [BZ #18822]
4039         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
4041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4043         [BZ #18822]
4044         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
4045         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
4047 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4049         [BZ #18822]
4050         * intl/hash-string.h (__hash_string): Add attribute_hidden.
4052 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4054         [BZ #18822]
4055         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
4056         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
4058 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4060         [BZ #18822]
4061         * include/ifreq.h: New file.
4062         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
4063         (__ifreq): Likewise.
4064         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
4065         (__ifreq): Likewise.
4067 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4069         [BZ #18822]
4070         * include/idna.h: New file.
4071         * inet/getnameinfo.c: Include <idna.h> instead of
4072         <libidn/idna.h>.
4073         (__idna_to_unicode_lzlz): Removed.
4074         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
4075         <libidn/idna.h>.
4076         (__idna_to_ascii_lz): Removed.
4077         (__idna_to_unicode_lzlz): Likewise.
4079 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4081         [BZ #18822]
4082         * include/plural-exp.h: New file.
4083         * intl/plural-exp.c: Include <plural-exp.h> instead of
4084         "plural-exp.h".
4086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4088         [BZ #18822]
4089         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
4090         "getsourcefilter.h".
4091         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
4092         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
4093         "getsourcefilter.h".
4094         (__get_sol): Removed.
4096 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4098         [BZ #18822]
4099         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
4100         to ...
4101         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
4103 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4105         [BZ #18822]
4106         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
4107         attribute_hidden.
4109 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4111         [BZ #18822]
4112         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
4114 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4116         [BZ #18822]
4117         * include/search.h (__tdestroy): Add libc_hidden_proto.
4118         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
4120 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4122         [BZ #18822]
4123         * include/assert.h (__assert_fail_base): Add attribute_hidden.
4125 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4127         [BZ #18822]
4128         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
4129         attribute_hidden.
4131 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4133         [BZ #18822]
4134         * include/signal.h (__kill): Add libc_hidden_proto.
4135         (__sigblock): Likewise.
4136         (__sigprocmask): Likewise.
4137         (__sigaltstack): Likewise.
4138         * signal/kill.c (__kill): Add libc_hidden_def.
4139         * signal/sigblock.c (__sigblock): Likewise.
4140         * signal/sigprocmask.c (__sigprocmask): Likewise.
4141         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4142         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4143         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
4144         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
4145         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
4146         Likewise.
4147         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
4148         Likewise.
4149         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
4150         (__sigprocmask): Likewise.
4151         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
4152         Likewise.
4153         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
4154         (__sigprocmask): Likewise.
4155         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
4156         Likewise.
4158 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4160         [BZ #18822]
4161         * include/string.h (__strsep): Add libc_hidden_proto.
4162         * string/strsep.c (__strsep): Add libc_hidden_def.
4164 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4166         [BZ #18822]
4167         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
4168         attribute_hidden.
4169         (__spawni): Likewise.
4171 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4173         [BZ #18822]
4174         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
4175         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
4176         libc_hidden_def.
4178 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4180         [BZ #18822]
4181         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
4183 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4185         [BZ #18822]
4186         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
4187         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
4188         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4189         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
4190         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
4191         Likewise.
4192         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
4193         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
4195 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4197         [BZ #18822]
4198         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
4199         (__dcigettext): Likewise.
4201 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4203         [BZ #18822]
4204         * include/sys/sysinfo.h (__get_nprocs_conf): Add
4205         libc_hidden_proto.
4206         (__get_nprocs): Likewise.
4207         (__get_phys_pages): Likewise.
4208         (__get_avphys_pages): Likewise.
4209         (__get_child_max): Add attribute_hidden.
4210         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
4211         (__get_nprocs): Likewise.
4212         (__get_phys_pages): Likewise.
4213         (__get_avphys_pages): Likewise.
4214         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
4215         libc_hidden_def.
4216         (__get_nprocs): Likewise.
4217         (__get_phys_pages): Likewise.
4218         (__get_avphys_pages): Likewise.
4219         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
4220         libc_hidden_def.
4221         (__get_nprocs_conf): Likewise.
4222         (__get_phys_pages): Likewise.
4223         (__get_avphys_pages): Likewise.
4225 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4227         [BZ #18822]
4228         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
4229         attribute_hidden.
4230         (__netlink_close): Likewise.
4231         (__netlink_free_handle): Likewise.
4232         (__netlink_request): Likewise.
4234 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4236         [BZ #18822]
4237         * include/rpc/rpc.h (__rpc_thread_variables): Add
4238         attribute_hidden.
4239         (__rpc_thread_svc_cleanup): Likewise.
4240         (__rpc_thread_clnt_cleanup): Likewise.
4241         (__rpc_thread_key_cleanup): Likewise.
4243 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4245         [BZ #18822]
4246         * include/sys/uio.h (__readv): Add libc_hidden_proto.
4247         (__writev): Likewise.
4248         * misc/readv.c (__readv): Add libc_hidden_def.
4249         * misc/writev.c (__writev): Likewise.
4250         * sysdeps/posix/readv.c (__readv): Likewise.
4251         * sysdeps/posix/writev.c (__writev): Likewise.
4252         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
4253         (__readv): Likewise.
4254         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
4255         (__writev): Likewise.
4257 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4259         [BZ #18822]
4260         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
4261         (__regcomp): Add libc_hidden_proto.
4262         (__regexec): Likewise.
4263         (__regfree): Likewise.
4264         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
4265         (__regfree): Likewise.
4266         * posix/regexec.c (__regexec): Likewise.
4268 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4270         [BZ #18822]
4271         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
4272         (__getutent): Likewise.
4273         (__getutid): Likewise.
4274         (__getutline): Likewise.
4275         (__pututline): Likewise.
4276         (__getutent_r): Likewise.
4277         (__getutid_r): Likewise.
4278         (__getutline_r): Likewise.
4279         (__utmpname): Add attribute_hidden.
4280         (__setutent): Likewise.
4281         (__endutent): Likewise.
4282         * login/getutent.c (__getutent): Add libc_hidden_def.
4283         * login/getutent_r.c (__getutent_r): Likewise.
4284         (__pututline): Likewise.
4285         * login/getutid.c (__getutid): Likewise.
4286         * login/getutid_r.c (__getutid_r): Likewise.
4287         * login/getutline.c (__getutline): Likewise.
4288         * login/getutline_r.c (__getutline_r): Likewise.
4289         * login/updwtmp.c (__updwtmp): Likewise.
4291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4293         [BZ #18822]
4294         * include/dirent.h (__opendir): Always add attribute_hidden.
4295         (__fdopendir): Likewise.
4296         (__closedir): Likewise.
4297         (__readdir): Likewise.
4298         (__readdir64): Add libc_hidden_proto.
4299         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
4300         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
4301         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
4302         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
4303         New alias.
4305 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4307         [BZ #18822]
4308         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
4309         * include/netdb.h (__gethostbyaddr_r): Likewise.
4310         (__gethostbyname_r): Likewise.
4311         (__gethostbyname2_r): Likewise.
4312         (__getnetbyaddr_r): Likewise.
4313         (__getnetbyname_r): Likewise.
4314         (__getservbyname_r): Likewise.
4315         (__getservbyport_r): Likewise.
4316         (__getprotobyname_r): Likewise.
4317         (__getprotobynumber_r): Likewise.
4318         (__getnetgrent_r): Likewise.
4319         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
4320         (__getrpcbynumber_r): Likewise.
4321         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
4323 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4325         [BZ #18822]
4326         * include/stdio.h (__fcloseall): Add attribute_hidden.
4327         (__getline): Likewise.
4328         (__path_search): Likewise.
4329         (__gen_tempname): Likewise.
4330         (__libc_message): Likewise.
4331         (__flockfile): Likewise.
4332         (__funlockfile): Likewise.
4333         (__fxprintf): Likewise.
4334         (__fxprintf_nocancel): Likewise.
4336 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4338         [BZ #18822]
4339         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
4340         (__sgetsgent_r): Likewise.
4342 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4344         [BZ #18822]
4345         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
4346         (__statfs64): Likewise.
4347         (__fstatfs64): Likewise.
4348         * include/sys/statvfs.h (__statvfs64): Likewise.
4349         (__fstatvfs64): Likewise.
4350         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
4351         (__statfs_filesize_max): Likewise.
4352         (__statfs_symlinks): Likewise.
4353         (__statfs_chown_restricted): Likewise.
4355 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4357         [BZ #18822]
4358         * include/time.h (__tzstring): Add attribute_hidden.
4359         (__tzfile_read): Likewise.
4360         (__tzfile_compute): Likewise.
4361         (__tzfile_default): Likewise.
4362         (__tzset_parse_tz): Likewise.
4363         (__offtime): Likewise.
4364         (__asctime_r): Likewise.
4365         (__tzset): Likewise.
4366         (__tz_convert): Likewise.
4367         (__getdate_r): Likewise.
4368         (__getclktck): Likewise.
4370 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4372         [BZ #18822]
4373         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
4374         (__nscd_unmap): Likewise.
4375         (__nscd_cache_search): Likewise.
4376         (__nscd_get_nl_timestamp): Likewise.
4377         (__nscd_getpwnam_r): Likewise.
4378         (__nscd_getpwuid_r): Likewise.
4379         (__nscd_getgrnam_r): Likewise.
4380         (__nscd_getgrgid_r): Likewise.
4381         (__nscd_gethostbyname_r): Likewise.
4382         (__nscd_gethostbyname2_r): Likewise.
4383         (__nscd_gethostbyaddr_r): Likewise.
4384         (__nscd_getai): Likewise.
4385         (__nscd_getgrouplist): Likewise.
4386         (__nscd_getservbyname_r): Likewise.
4387         (__nscd_getservbyport_r): Likewise.
4388         (__nscd_innetgr): Likewise.
4389         (__nscd_setnetgrent): Likewise.
4391 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4393         [BZ #18822]
4394         * include/gmp.h: Declare internal functions only if _ISOMAC is
4395         undefined.
4396         (__mpn_extract_double): Add attribute_hidden.
4397         (__mpn_extract_long_double): Likewise.
4398         (__mpn_extract_float128): Likewise.
4399         (__mpn_construct_float): Likewise.
4400         (__mpn_construct_double): Likewise.
4401         (__mpn_construct_long_double): Likewise.
4402         (__mpn_construct_float128): Likewise.
4403         (mpn_add_1): Likewise.
4404         (mpn_addmul_1): Likewise.
4405         (mpn_add_n): Likewise.
4406         (mpn_cmp): Likewise.
4407         (mpn_divrem): Likewise.
4408         (mpn_lshift): Likewise.
4409         (mpn_mul): Likewise.
4410         (mpn_mul_1): Likewise.
4411         (mpn_rshift): Likewise.
4412         (mpn_sub_1): Likewise.
4413         (mpn_submul_1): Likewise.
4414         (mpn_sub_n): Likewise.
4416 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4418         [BZ #18822]
4419         * include/wchar.h (__wcsnlen): Add attribute_hidden.
4420         (__wcscat): Likewise.
4421         (__btowc): Likewise.
4422         (__wcrtomb): Likewise.
4423         (__mbsrtowcs): Likewise.
4424         (__wcsrtombs): Likewise.
4425         (__mbsnrtowcs): Likewise.
4426         (__wcsnrtombs): Likewise.
4427         (__wcsncpy): Likewise.
4428         (__wcpncpy): Likewise.
4429         (__wmemcpy): Likewise.
4430         (__wmempcpy): Likewise.
4431         (__wmemmove): Likewise.
4432         (__wcschrnul): Likewise.
4433         (__vfwscanf): Likewise.
4434         (__vswprintf): Likewise.
4435         (__fwprintf): Likewise.
4436         (__vfwprintf): Likewise.
4438 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4440         [BZ #18822]
4441         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
4442         (__getgrgid_r): Likewise.
4443         (__getgrnam_r): Likewise.
4444         * include/pwd.h (__getpwuid_r): Likewise.
4445         (__getpwnam_r): Likewise.
4446         (__fgetpwent_r): Likewise.
4447         * include/shadow.h (__getspnam_r): Likewise.
4448         (__sgetspent_r): Likewise.
4449         (__fgetspent_r): Likewise.
4451 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4453         [BZ #18822]
4454         * include/unistd.h (__access): Add attribute_hidden.
4455         (__lseek64): Likewise.
4456         (__libc_pread64): Likewise.
4457         (__pipe2): Likewise.
4458         (__sleep): Likewise.
4459         (__chdir): Likewise.
4460         (__fchdir): Likewise.
4461         (__getcwd): Likewise.
4462         (__rmdir): Likewise.
4463         (__execvpe): Likewise.
4464         (__execve): Likewise.
4465         (__setsid): Likewise.
4466         (__getuid): Likewise.
4467         (__geteuid): Likewise.
4468         (__getgid): Likewise.
4469         (__getegid): Likewise.
4470         (__getgroups): Likewise.
4471         (__group_member): Likewise.
4472         (__ttyname_r): Likewise.
4473         (__isatty): Likewise.
4474         (__readlink): Likewise.
4475         (__unlink): Likewise.
4476         (__gethostname): Likewise.
4477         (__profil): Likewise.
4478         (__getdtablesize): Likewise.
4479         (__brk): Likewise.
4480         (__ftruncate): Likewise.
4481         (__ftruncate64): Likewise.
4483 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4485         [BZ #18822]
4486         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
4487         * argp/argp-fs-xinl.c: Likewise.
4488         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
4489         * argp/argp-parse.c: Include <argp.h>.
4490         * argp/argp-xinl.c: Likewise.
4491         * include/argp-fmtstream.h: New file.
4492         * include/argp.h (__argp_error): Add attribute_hidden.
4493         (__argp_failure): Likewise.
4494         (__argp_input): Likewise.
4495         (__argp_state_help): Likewise.
4497 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4499         [BZ #18822]
4500         * include/wchar.h (____wcstof_l_internal): New prototype.
4501         (____wcstod_l_internal): Likewise.
4502         (____wcstold_l_internal): Likewise.
4503         (____wcstol_l_internal): Likewise.
4504         (____wcstoul_l_internal): Likewise.
4505         (____wcstoll_l_internal): Likewise.
4506         (____wcstoull_l_internal): Likewise.
4507         (____wcstof128_l_internal): Likewise.
4508         * sysdeps/ieee754/float128/wcstof128.c
4509         (____wcstof128_l_internal): Removed.
4510         * sysdeps/ieee754/float128/wcstof128_l.c
4511         (____wcstof128_l_internal): Likewise.
4512         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
4513         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
4514         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
4515         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
4516         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
4517         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
4518         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
4519         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
4520         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
4521         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
4523 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4525         [BZ #18822]
4526         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
4527         instead of <sys/statvfs.h>.
4528         (__internal_statvfs): Removed.
4529         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
4530         instead of <sys/statvfs.h>.
4531         (__internal_statvfs64): Removed.
4532         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
4533         "internal_statvfs.h" instead of <sys/statvfs.h>.
4534         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
4535         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
4536         instead of <sys/statvfs.h>.
4537         (__internal_statvfs): Removed.
4538         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
4539         instead of <sys/statvfs.h>.
4540         (__internal_statvfs64): Removed.
4542 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4544         [BZ #18822]
4545         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
4546         (__gconv_close): Likewise.
4547         (__gconv): Likewise.
4548         (__gconv_find_transform): Likewise.
4549         (__gconv_lookup_cache): Likewise.
4550         (__gconv_compare_alias_cache): Likewise.
4551         (__gconv_load_cache): Likewise.
4552         (__gconv_get_path): Likewise.
4553         (__gconv_close_transform): Likewise.
4554         (__gconv_release_cache): Likewise.
4555         (__gconv_find_shlib): Likewise.
4556         (__gconv_release_shlib): Likewise.
4557         (__gconv_get_builtin_trans): Likewise.
4558         (__gconv_compare_alias): Likewise.
4559         * include/dlfcn.h (_dlerror_run): Likewise.
4560         * include/stdio.h (__fortify_fail_abort): Likewise.
4561         * include/time.h (__tz_compute): Likewise.
4562         (__strptime_internal): Likewise.
4563         * intl/gettextP.h (_nl_find_domain): Likewise.
4564         (_nl_load_domain): Likewise.
4565         (_nl_find_msg): Likewise.
4566         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
4567         (EXTRACT_PLURAL_EXPRESSION): Likewise.
4568         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
4569         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
4570         (__gai_find_request): Likewise.
4571         (__gai_remove_request): Likewise.
4572         (__gai_notify): Likewise.
4573         (__gai_notify_only): Likewise.
4574         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4575         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
4576         (_dl_non_dynamic_init): Likewise.
4577         (_dl_aux_init): Likewise.
4578         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
4579         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4580         Likewise.
4581         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
4582         (__wcsmbs_clone_conv): Likewise.
4583         (__wcsmbs_named_conv): Likewise.
4585 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4587         [BZ #18822]
4588         * include/stdlib.h (__random): Add attribute_hidden.
4589         (__random_r): Likewise.
4590         (__srandom_r): Likewise.
4591         (__initstate_r): Likewise.
4592         (__setstate_r): Likewise.
4593         (__erand48_r): Likewise.
4594         (__nrand48_r): Likewise.
4595         (__jrand48_r): Likewise.
4596         (__srand48_r): Likewise.
4597         (__seed48_r): Likewise.
4598         (__lcong48_r): Likewise.
4599         (__drand48_iterate): Likewise.
4600         (__setenv): Likewise.
4601         (__unsetenv): Likewise.
4602         (__clearenv): Likewise.
4603         (__ptsname_r): Likewise.
4604         (__posix_openpt): Likewise.
4605         (__add_to_environ): Likewise.
4606         (__realpath): Add libc_hidden_proto.
4607         (__ecvt_r): Likewise.
4608         (__fcvt_r): Likewise.
4609         (__qecvt_r): Likewise.
4610         (__qfcvt_r): Likewise.
4611         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
4612         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
4614 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
4616         [BZ #18822]
4617         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
4618         * include/time.h (__mktime_internal): Likewise.
4619         * libio/iolibio.h (__fopen_internal): Likewise.
4621 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
4623         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
4624         pointer in frame.
4625         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
4626         Correct offset used to restore PIC register.
4628 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
4630         [BZ libc/22165]
4631         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
4632         code to load address of __getcontext_ret when generating PIC code.
4634 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
4636         * elf/Makefile (tests-static-internal): Add
4637         tst-tls1-static-non-pie.
4638         (LDFLAGS-tst-tls1-static-non-pie): New.
4639         * elf/tst-tls1-static-non-pie.c: New file.
4641 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4643         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
4644         (asinh): Define using libm_alias_double.
4645         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
4646         (cbrt): Define using libm_alias_double.
4647         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
4648         <libm-alias-double.h>.
4649         (copysign): Define using libm_alias_double.
4650         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
4651         (erf): Define using libm_alias_double.
4652         (erfc): Likewise.
4653         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
4654         (expm1): Define using libm_alias_double.
4655         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
4656         (fabs): Define using libm_alias_double.
4657         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
4658         libm_alias_double.
4659         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
4660         <libm-alias-double.h>.
4661         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
4662         libm_alias_double.
4663         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
4664         <libm-alias-double.h>.
4665         (getpayload): Define using libm_alias_double.
4666         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
4667         <libm-alias-double.h>.
4668         (llrint): Define using libm_alias_double.
4669         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
4670         (lrint): Define using libm_alias_double.
4671         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
4672         <libm-alias-double.h>.
4673         (nextup): Define using libm_alias_double.
4674         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
4675         <libm-alias-double.h>.
4676         (roundeven): Define using libm_alias_double.
4677         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
4678         libm_alias_double.
4679         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
4680         <libm-alias-double.h>.
4681         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
4682         using libm_alias_double.
4683         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
4684         (cos): Define using libm_alias_double.
4685         (sin): Likewise.
4686         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
4687         <libm-alias-double.h>.
4688         (sincos): Define using libm_alias_double.
4689         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
4690         (tanh): Define using libm_alias_double.
4691         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
4692         <libm-alias-double.h>.
4693         (totalorder): Define using libm_alias_double.
4694         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
4695         <libm-alias-double.h>.
4696         (totalordermag): Define using libm_alias_double.
4697         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
4698         libm_alias_double.
4699         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
4700         libm_alias_double.
4701         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
4702         <libm-alias-double.h>.
4703         (getpayload): Define using libm_alias_double.
4704         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
4705         <libm-alias-double.h>.
4706         (roundeven): Define using libm_alias_double.
4707         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
4708         <libm-alias-double.h>.
4709         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
4710         <libm-alias-double.h>.
4711         (totalorder): Define using libm_alias_double.
4712         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
4713         <libm-alias-double.h>.
4714         (totalordermag): Define using libm_alias_double.
4715         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
4716         libc compat symbol here.
4717         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
4718         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
4719         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
4720         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
4721         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
4722         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
4723         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
4724         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
4725         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
4726         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
4728 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4730         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
4731         _dl_relocate_static_pie instead of _dl_start to compute load
4732         address in static PIE.  Return 0 if _DYNAMIC is undefined for
4733         static executable.
4735 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4737         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
4738         _DYNAMIC is undefined for static executable.
4740 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
4742         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
4744 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
4746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4748 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4750         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
4751         (__ieee754_lgamma_r): Use fabs rather than __fabs.
4752         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
4753         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
4754         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
4755         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
4756         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
4757         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
4758         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
4759         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4760         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
4761         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
4762         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4763         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
4764         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4765         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4766         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
4768 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
4770         * math/bits/cmathcalls.h (cimag): Remove inline.
4771         (creal): Remove inline.
4772         (conj): Remove inline.
4774 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4776         * math/Makefile (type-float-routines): Add e_powf_log2_data.
4777         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
4778         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
4779         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
4780         (issignalingf_inline): Likewise.
4781         (POWF_LOG2_TABLE_BITS): Likewise.
4782         (POWF_LOG2_POLY_ORDER): Likewise.
4783         (POWF_SCALE_BITS): Likewise.
4784         (POWF_SCALE): Likewise.
4785         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
4786         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
4787         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
4789 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4791         * math/Makefile (type-float-routines): Add e_log2f_data.
4792         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
4793         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
4794         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
4795         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
4796         * sysdeps/i386/fpu/e_log2f_data.c: New file.
4797         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
4798         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
4800 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4802         * math/Makefile (type-float-routines): Add e_logf_data.
4803         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
4804         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
4805         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
4806         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
4807         * sysdeps/i386/fpu/e_logf_data.c: New file.
4808         * sysdeps/ia64/fpu/e_logf_data.c: New file.
4809         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
4811 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
4813         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
4814         undefined _DYNAMIC in PIE libc.a.
4815         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
4816         Likewse.
4818 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4820         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
4821         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
4822         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
4823         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
4824         (__signbit): Remove.
4825         (__signbitl): Remove.
4826         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
4827         (__signbit): Remove.
4828         (__signbitl): Remove.
4829         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
4830         (__signbit): Remove.
4831         (__signbitl): Remove.
4832         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
4833         (__signbit): Remove.
4834         (__signbitl): Remove.
4835         * sysdeps/tile/bits/mathinline.h: Delete file.
4836         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
4837         (__signbit): Remove.
4838         (__signbitl): Remove.
4840 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
4842         * math/math.h: Improve handling of C99 isgreater macros.
4843         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
4844         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
4845         * sysdeps/powerpc/bits/mathinline.h: Likewise.
4846         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4847         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
4849 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4851         * sysdeps/aarch64/libm-test-ulps: Update.
4853 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
4855         [BZ #22225]
4856         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4857         math_opt_barrier on argument when doing arithmetic on it.
4858         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
4859         Likewise.  Use math_force_eval not math_opt_barrier after
4860         arithmetic.
4861         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
4862         math_opt_barrier on argument when doing arithmetic on it.
4863         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4864         Likewise.
4866 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
4868         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
4869         libc_hidden_def.
4870         (__freeifaddrs): Likewise.
4872 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4874         * include/dirent.h (__dirfd): New declaration.
4875         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
4876         alias.
4877         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
4878         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
4879         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
4880         * include/unistd.h (__revoke): New declaration.
4881         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
4882         alias.
4883         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
4884         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
4885         revoke.
4886         * include/dirent.h (__seekdir): New declaration.
4887         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
4888         redefine as weak alias.
4889         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
4890         of seekdir.
4891         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
4892         and use libc_hidden_def on them.
4893         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
4894         them.
4895         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
4896         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
4897         instead of getifaddrs and freeifaddrs.
4899 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4901         [BZ #18822]
4902         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
4903         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
4904         (__dso_handle): Remove declaration.
4905         * dlfcn/tstatexit.c (__dso_handle): Removed.
4906         (main): Don't check __dso_handle.
4907         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
4908         (main): Don't check __dso_handle.
4909         * include/dso_handle.h: New file.
4910         * malloc/mtrace.c: Include <dso_handle.h>.
4911         (mtrace): Pass __dso_handle directly.
4912         * nptl/pthread_atfork.c: Include <dso_handle.h>.
4913         (__dso_handle): Remove declaration.
4914         (__pthread_atfork): Pass __dso_handle directly.
4915         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
4916         (__dso_handle): Removed.
4917         * posix/wordexp-test.c: Include <dso_handle.h>.
4918         (__dso_handle): Remove declaration.
4919         (__app_register_atfork): Pass __dso_handle directly.
4920         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
4921         (__dso_handle): Remove declaration.
4922         (at_quick_exit): Pass __dso_handle directly.
4923         * stdlib/atexit.c: Include <dso_handle.h>.
4924         (__dso_handle): Remove declaration.
4925         (atexit): Pass __dso_handle directly.
4926         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
4927         (__dso_handle): Removed.
4929 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4931         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
4932         using VDSO.
4934 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
4936         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
4937         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
4938         values to correct default value for given type.
4940 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
4942         [BZ #22101]
4943         * elf/Makefile (tests): Add tst-debug1.
4944         ($(objpfx)tst-debug1): New.
4945         ($(objpfx)tst-debug1.out): Likewise.
4946         ($(objpfx)tst-debug1mod1.so): Likewise.
4947         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
4948         with p_filesz == 0.
4949         * elf/tst-debug1.c: New file.
4951 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4953         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
4954         Define using __ifunc.
4956 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4958         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
4959         exp2f() values.
4961 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4963         [BZ #22156]
4964         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
4966 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4968         * resolv/Makefile (tests-internal): Fix typo in comment.
4970 2017-09-26  Florian Weimer  <fweimer@redhat.com>
4972         * resolv/nss_dns/dns-host.c: Fix typo in comment.
4974 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4976         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
4977         Use an union instead of a max_align_t array for __space,
4978         so that __space is the same size on all platforms.
4979         * malloc/scratch_buffer_grow_preserve.c
4980         (__libc_scratch_buffer_grow_preserve): Likewise.
4982         [BZ #22183]
4983         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4984         version to 2.
4985         * posix/Makefile (routines): Add glob-lstat-compat and
4986         glob64-lstat-compat.
4987         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4988         * posix/glob-lstat-compat.c: New file.
4989         * posix/glob64-lstat-compat.c: Likewise.
4990         * posix/tst-glob_lstat_compat.c: Likewise.
4991         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4992         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4993         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4994         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4995         Likewise.
4996         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4997         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4998         * posix/glob.c (glob_lstat): New function.
4999         (glob): Rename to __glob and add versioned symbol to 2.27.
5000         (glob_in_dir): Use glob_lstat.
5001         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
5002         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5003         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
5004         2.27.
5005         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
5006         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
5007         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
5008         gl_lstat on glob call.
5009         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
5010         and glob64 symbols.
5011         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5012         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5013         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5014         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5015         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5016         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5017         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5018         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5019         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5020         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5021         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5022         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5024         Likewise.
5025         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
5026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5027         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5028         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5029         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5030         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5031         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5032         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
5033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
5034         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5035         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5036         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5038 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
5040         * configure.ac (AS): Require binutils 2.25 or later.
5041         * configure: Regenerated.
5043 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5045         [BZ #22207]
5046         * stdlib/test-atexit-race-common.c (do_test): Minimize required
5047         VM size.
5049 2017-09-25  DJ Delorie  <dj@redhat.com>
5051         [BZ #22161]
5052         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
5053         resetting timeout.
5055 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
5057         * sysdeps/ieee754/dbl-64/sincos32.h
5058         [SINCCOS32_H]: Remove define.
5059         [SINCOS32_H]: Define.
5061 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5063         * math/Versions (expf): New libm symbol at GLIBC_2.27.
5064         (exp2f): Likewise.
5065         * math/w_exp2f.c: New file.
5066         * math/w_expf.c: New file.
5067         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
5068         * math/w_expf_compat.c (__expf_compat): Likewise.
5069         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
5070         * sysdeps/ia64/fpu/e_expf.S: Likewise.
5071         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5072         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5073         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5074         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5075         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5076         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5077         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5078         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5079         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5080         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5081         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5082         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5084         Likewise.
5085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5086         Likewise.
5087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5088         Likewise.
5089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5090         Likewise.
5091         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5092         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5093         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5094         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5095         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5096         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5097         Likewise.
5098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5099         Likewise.
5100         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5101         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5102         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5104 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5106         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
5107         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
5108         (roundtoint, converttoint): Likewise.
5109         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
5110         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
5111         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
5112         * sysdeps/ieee754/flt-32/math_config.h: New file.
5113         * sysdeps/ieee754/flt-32/math_errf.c: New file.
5114         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
5115         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
5116         * sysdeps/i386/fpu/math_errf.c: New file.
5117         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
5118         * sysdeps/ia64/fpu/math_errf.c: New file.
5119         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
5120         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
5122 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5124         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
5125         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
5126         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
5127         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
5128         to make sure that these symbols are defined.
5129         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
5130         of <limits.h>
5131         (__need_NULL): Do not define.
5132         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
5133         alignment.
5134         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
5135         CMGROUP_MAX, cmsgcred): Do not define.
5136         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
5137         NULL.
5138         * bits/socket.h: Likewise.
5139         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
5140         __gettimeofday instead of gettimeofday.
5141         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
5142         instead of settimeofday.
5144 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5146         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
5147         (asinhf): Define using libm_alias_float.
5148         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
5149         (atanf): Define using libm_alias_float.
5150         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
5151         (cbrtf): Define using libm_alias_float.
5152         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
5153         (ceilf): Define using libm_alias_float.
5154         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
5155         <libm-alias-float.h>.
5156         (copysignf): Define using libm_alias_float.
5157         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
5158         (cosf): Define using libm_alias_float.
5159         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
5160         (erff): Define using libm_alias_float.
5161         (erfcf): Likewise.
5162         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
5163         (expm1f): Define using libm_alias_float.
5164         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
5165         (fabsf): Define using libm_alias_float.
5166         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
5167         (floorf): Define using libm_alias_float.
5168         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
5169         (frexpf): Define using libm_alias_float.
5170         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
5171         libm_alias_float.
5172         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
5173         <libm-alias-float.h>.
5174         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
5175         libm_alias_float.
5176         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
5177         <libm-alias-float.h>.
5178         (getpayloadf): Define using libm_alias_float.
5179         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
5180         <libm-alias-float.h>.
5181         (llrintf): Define using libm_alias_float.
5182         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
5183         <libm-alias-float.h>.
5184         (llroundf): Define using libm_alias_float.
5185         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
5186         (logbf): Define using libm_alias_float.
5187         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
5188         (lrintf): Define using libm_alias_float.
5189         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
5190         (lroundf): Define using libm_alias_float.
5191         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
5192         (modff): Define using libm_alias_float.
5193         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
5194         <libm-alias-float.h>.
5195         (nearbyintf): Define using libm_alias_float.
5196         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
5197         <libm-alias-float.h>.
5198         (nextafterf): Define using libm_alias_float.
5199         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
5200         <libm-alias-float.h>.
5201         (nextupf): Define using libm_alias_float.
5202         * sysdeps/ieee754/flt-32/s_remquof.c: Include
5203         <libm-alias-float.h>.
5204         (remquof): Define using libm_alias_float.
5205         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
5206         (rintf): Define using libm_alias_float.
5207         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
5208         <libm-alias-float.h>.
5209         (roundevenf): Define using libm_alias_float.
5210         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
5211         (roundf): Define using libm_alias_float.
5212         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
5213         using libm_alias_float.
5214         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
5215         <libm-alias-float.h>.
5216         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
5217         Define using libm_alias_float.
5218         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
5219         <libm-alias-float.h>.
5220         (sincosf): Define using libm_alias_float.
5221         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
5222         (sinf): Define using libm_alias_float.
5223         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
5224         (tanf): Define using libm_alias_float.
5225         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
5226         (tanhf): Define using libm_alias_float.
5227         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
5228         <libm-alias-float.h>.
5229         (totalorderf): Define using libm_alias_float.
5230         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
5231         <libm-alias-float.h>.
5232         (totalordermagf): Define using libm_alias_float.
5233         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
5234         (truncf): Define using libm_alias_float.
5235         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
5236         libm_alias_float.
5237         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
5238         libm_alias_float.
5240 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5242         [BZ #22146]
5243         math/math.h: Let fpclassify use the builtin in C++ mode, even
5244         when optimazing for size.
5246 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
5248         * csu/Makefile (generated): Do not add version-info.h.
5249         (before-compile): Likewise.
5250         (all-Banner-files): Remove variable.
5251         ($(objpfx)version-info.h): Remove rule.
5252         * csu/version.c (banner): Do not include "version-info.h".
5253         * libidn/Banner: Remove.
5254         * manual/contrib.texi (Simon Josefsson): New entry.
5256 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5258         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5259         Remove conditionals on LDBL_MANT_DIG.
5260         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
5261         (__ieee754_lgammal_r): Likewise.
5263 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5265         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
5266         _Float128 and L().
5267         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
5268         _Float128 and L(). Replace _Float128 with long double and L(x)
5269         with xL, throughout the file.
5270         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5271         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5272         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5273         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5275 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5277         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
5278         sysdeps/ieee754/ldbl-128ibm.
5279         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
5280         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
5281         of including it.  Keep _Float128 and L() intact.  These will be
5282         reviewed by a separate patch.
5283         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
5284         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
5285         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
5286         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
5288 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
5291         (__finitef128): Define to __redirect___finitef128.
5292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
5293         (__isinff128): Define to __redirect___isinff128.
5294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
5295         (__isnanf128): Define to __redirect___isnanf128.
5297 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5299         * sysdeps/powerpc/powerpc64le/Makefile
5300         (CFLAGS-tst-strtod-nan-locale.c): New variable.
5301         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
5303 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
5304             Carlos O'Donell  <carlos@redhat.com>
5306         [BZ #22180]
5307         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
5308         * stdlib/test-dlclose-exit-race.c: New file.
5309         * stdlib/test-dlclose-exit-race-helper.c: New file.
5310         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
5312 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
5314         * crypt/Banner: Remove file.
5315         * nptl/Banner: Likewise.
5316         * resolv/Banner: Likewise.
5317         * soft-fp/Banner: Likewise.
5318         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
5319         ($(objpfx)version.d): Remove dependency on banner.h.
5320         ($(objpfx)version.os): Likewise.
5321         * nptl/version.c (banner): Do not include banner.h.
5322         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
5323         Jelinek and BIND code.
5325 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5326             Carlos O'Donell  <carlos@redhat.com>
5328         * support/xdlfcn.h: New file.
5329         * support/xdlfcn.c: New file.
5330         * support/Makefile (libsupport-routines): Add xdlfcn.
5331         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
5333 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
5335         [BZ #20142]
5336         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5337         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
5338         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
5339         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
5340         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
5341         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
5342         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
5343         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
5345 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5346             Ricky Zhou  <rickyz@google.com>
5347             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
5349         [BZ #14333]
5350         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
5351         Remove atomics.
5352         (__new_exitfn): Fail registration when we finished at_exit processing.
5353         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
5354         * stdlib/on_exit.c (__on_exit): Likewise.
5355         * stdlib/exit.c (__exit_funcs_done): New variable.
5356         (__run_exit_handlers): Use __exit_funcs_lock.
5357         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
5358         declarations.
5359         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
5360         (test-cxa_atexit-race, test-on_exit-race): New tests.
5361         * stdlib/test-atexit-race-common.c: New file.
5362         * stdlib/test-atexit-race.c: New file.
5363         * stdlib/test-at_quick_exit-race.c: New file.
5364         * stdlib/test-cxa_atexit-race.c: New file.
5365         * stdlib/test-on_exit-race.c: New file.
5367 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5369         * benchtests/Makefile: Add exp2f and log2f benchmarks.
5370         * benchtests/exp2f-inputs: Copy of expf-inputs.
5371         * benchtests/log2f-inputs: Copy of logf-inputs.
5373 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5375         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
5376         Explicitly take address of first element of array arguments in
5377         call to INLINE_SYSCALL.
5379 2017-09-19  Andreas Schwab  <schwab@suse.de>
5381         [BZ #22134]
5382         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
5383         execveat first.
5384         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
5385         unimplemented.
5386         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
5387         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
5388         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5389         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
5390         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
5391         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5392         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5393         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
5394         * posix/Makefile (tests): Add tst-fexecve.
5395         * posix/tst-fexecve.c: New file.
5397 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5399         * benchtests/Makefile: Add logf benchmark.
5400         * benchtests/logf-inputs: Add reduced trace from wrf_r.
5402 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5404         * benchtests/Makefile: Add expf benchmark.
5405         * benchtests/expf-inputs: Add reduced trace from wrf_r.
5407 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
5409         * csu/Makefile: Add -funwind-tables to libc-start.c.
5410         * debug/Makefile: Add -funwind-tables to backtrace.c.
5411         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
5412         * sysdeps/arm/Makefile: Likewise.
5413         * sysdeps/i386/Makefile: Likewise.
5414         * sysdeps/m68k/Makefile: Likewise.
5415         * sysdeps/mips/Makefile: Likewise.
5416         * sysdeps/nios2/Makefile: Likewise.
5417         * sysdeps/sh/Makefile: Likewise.
5418         * sysdeps/sparc/Makefile: Likewise.
5420 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
5422         * benchtests/Makefile (bench-math): Add trunc and truncf.
5423         (CFLAGS-bench-trunc.c): New variable.
5424         (CFLAGS-bench-truncf.c): Likewise.
5425         * benchtests/trunc-inputs: New file.
5426         * benchtests/truncf-inputs: Likewise.
5428 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5430         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
5432 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
5434         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
5435         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
5436         redefine.
5437         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5438         (exp10l): Define as weak alias.
5439         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
5440         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
5441         and redefine.
5442         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
5443         (remainderl): Define as weak alias.
5445         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
5446         (fmal): Define using libm_alias_ldouble.
5447         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
5448         (acoshl): Define using libm_alias_ldouble.
5449         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
5450         (acosl): Define using libm_alias_ldouble.
5451         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
5452         (asinl): Define using libm_alias_ldouble.
5453         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
5454         (atan2l): Define using libm_alias_ldouble.
5455         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
5456         (atanhl): Define using libm_alias_ldouble.
5457         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
5458         (coshl): Define using libm_alias_ldouble.
5459         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
5460         (exp10l): Define using libm_alias_ldouble.
5461         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
5462         (exp2l): Define using libm_alias_ldouble.
5463         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
5464         (expl): Define using libm_alias_ldouble.
5465         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
5466         (fmodl): Define using libm_alias_ldouble.
5467         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
5468         (hypotl): Define using libm_alias_ldouble.
5469         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
5470         (j0l): Define using libm_alias_ldouble.
5471         (y0l): Likewise.
5472         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
5473         (j1l): Define using libm_alias_ldouble.
5474         (y1l): Likewise.
5475         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
5476         (jnl): Define using libm_alias_ldouble.
5477         (ynl): Likewise.
5478         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
5479         (log10l): Define using libm_alias_ldouble.
5480         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
5481         (log2l): Define using libm_alias_ldouble.
5482         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
5483         (logl): Define using libm_alias_ldouble.
5484         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
5485         (powl): Define using libm_alias_ldouble.
5486         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
5487         (remainderl): Define using libm_alias_ldouble.
5488         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
5489         (sinhl): Define using libm_alias_ldouble.
5490         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
5491         (sqrtl): Define using libm_alias_ldouble.
5492         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
5493         (tgammal): Define using libm_alias_ldouble.
5494         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
5495         (exp10l): Do not use long_double_symbol here.
5496         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5497         [LIBM_SVID_COMPAT] (remainderl): Likewise.
5498         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
5499         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5500         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5501         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5502         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5503         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5504         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5505         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5506         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5507         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5508         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5509         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5510         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5511         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5512         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5513         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5514         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5515         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5516         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5517         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5519 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
5521         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
5522         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
5524 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5526         * io/read.c (read): Add libc_hidden_weak.
5527         * sysdeps/mach/hurd/read.c (read): Likewise.
5528         * io/write.c (write): Likewise.
5529         * sysdeps/mach/hurd/write.c (write): Likewise.
5530         * io/pread64.c (__pread64): Likewise.
5531         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
5532         * posix/pread64.c (__pread64): Add libc_hidden_def.
5534 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5536         * benchtests/scripts/compare_strings.py: New option -g.
5537         (draw_graph): Print a message that a graph is being generated.
5538         (process_results): Generate graph only if -g is passed.
5539         (main): Process option -g.
5541         * benchtests/scripts/compare_strings.py (process_results):
5542         Better spacing for output.
5544         * benchtests/scripts/compare_strings.py: Use argparse.
5545         * benchtests/README: Document existence of compare_strings.py.
5547 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5549         * math/s_fma.c: Include <libm-alias-double.h>.
5550         (fma): Define using libm_alias_double.
5551         * math/s_nextafter.c: Include <libm-alias-double.h>.
5552         (nextafter): Define using libm_alias_double.
5553         * math/w_acos_compat.c: Include <libm-alias-double.h>.
5554         (acos): Define using libm_alias_double.
5555         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
5556         (aocsh): Define using libm_alias_double.
5557         * math/w_asin_compat.c: Include <libm-alias-double.h>.
5558         (asin): Define using libm_alias_double.
5559         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
5560         (atan2): Define using libm_alias_double.
5561         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
5562         (atanh): Define using libm_alias_double.
5563         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
5564         (cosh): Define using libm_alias_double.
5565         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
5566         (exp10): Define using libm_alias_double.
5567         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
5568         (exp2): Define using libm_alias_double.
5569         * math/w_exp_compat.c: Include <libm-alias-double.h>.
5570         (exp): Define using libm_alias_double.
5571         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
5572         (fmod): Define using libm_alias_double.
5573         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
5574         (hypot): Define using libm_alias_double.
5575         * math/w_j0_compat.c: Include <libm-alias-double.h>.
5576         (j0): Define using libm_alias_double.
5577         (y0): Likewise.
5578         * math/w_j1_compat.c: Include <libm-alias-double.h>.
5579         (j1): Define using libm_alias_double.
5580         (y1): Likewise.
5581         * math/w_jn_compat.c: Include <libm-alias-double.h>.
5582         (jn): Define using libm_alias_double.
5583         (yn): Likewise.
5584         * math/w_log10_compat.c: Include <libm-alias-double.h>.
5585         (log10): Define using libm_alias_double.
5586         * math/w_log2_compat.c: Include <libm-alias-double.h>.
5587         (log2): Define using libm_alias_double.
5588         * math/w_log_compat.c: Include <libm-alias-double.h>.
5589         (log): Define using libm_alias_double.
5590         * math/w_pow_compat.c: Include <libm-alias-double.h>.
5591         (pow): Define using libm_alias_double.
5592         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
5593         (remainder): Define using libm_alias_double.
5594         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
5595         (sinh): Define using libm_alias_double.
5596         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
5597         (sqrt): Define using libm_alias_double.
5598         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
5599         (tgamma): Define using libm_alias_double.
5600         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
5601         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
5602         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
5603         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
5604         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
5605         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
5606         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
5607         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5608         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5609         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5610         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5611         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5612         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
5613         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5614         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5615         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5616         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5617         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5618         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5619         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5620         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5621         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5622         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5623         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5624         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5626         * math/e_acoshl.c: Remove.
5627         * math/e_acosl.c: Likewise.
5628         * math/e_asinl.c: Likewise.
5629         * math/e_atan2l.c: Likewise.
5630         * math/e_atanhl.c: Likewise.
5631         * math/e_coshl.c: Likewise.
5632         * math/e_expl.c: Likewise.
5633         * math/e_fmodl.c: Likewise.
5634         * math/e_gammal_r.c: Likewise.
5635         * math/e_hypotl.c: Likewise.
5636         * math/e_j0l.c: Likewise.
5637         * math/e_j1l.c: Likewise.
5638         * math/e_jnl.c: Likewise.
5639         * math/e_lgammal_r.c: Likewise.
5640         * math/e_log10l.c: Likewise.
5641         * math/e_log2l.c: Likewise.
5642         * math/e_logl.c: Likewise.
5643         * math/e_powl.c: Likewise.
5644         * math/e_rem_pio2l.c: Likewise.
5645         * math/e_sinhl.c: Likewise.
5646         * math/e_sqrtf128.c: Likewise.
5647         * math/e_sqrtl.c: Likewise.
5648         * math/k_cosl.c: Likewise.
5649         * math/k_sinl.c: Likewise.
5650         * math/k_tanl.c: Likewise.
5651         * math/s_asinhl.c: Likewise.
5652         * math/s_atanl.c: Likewise.
5653         * math/s_cbrtl.c: Likewise.
5654         * math/s_erfl.c: Likewise.
5655         * math/s_expm1l.c: Likewise.
5656         * math/s_log1pl.c: Likewise.
5657         * math/s_tanhl.c: Likewise.
5659 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5661         [BZ #21745]
5662         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
5663         [$(subdir) = math] (sysdep_calls): New variable.  Has the
5664         previous contents of sysdep_routines, but re-sorted..
5665         [$(subdir) = math] (sysdep_routines): Re-use the contents from
5666         sysdep_calls.
5667         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
5668         defined in sysdep_calls and replace by the respective m_* names.
5669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
5670         (compat_symbol): Undefine to avoid duplicated compat symbols in
5671         libc.
5673 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
5675         * math/s_fmaf.c: Include <libm-alias-float.h>.
5676         (fmaf): Define using libm_alias_float.
5677         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
5678         (acosf): Define using libm_alias_float.
5679         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
5680         (acoshf): Define using libm_alias_float.
5681         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
5682         (asinf): Define using libm_alias_float.
5683         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
5684         (atan2f): Define using libm_alias_float.
5685         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
5686         (atanhf): Define using libm_alias_float.
5687         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
5688         (coshf): Define using libm_alias_float.
5689         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
5690         (exp10f): Define using libm_alias_float.
5691         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
5692         (fmodf): Define using libm_alias_float.
5693         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
5694         (hypotf): Define using libm_alias_float.
5695         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
5696         (j0f): Define using libm_alias_float.
5697         (y0f): Likewise.
5698         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
5699         (j1f): Define using libm_alias_float.
5700         (y1f): Likewise.
5701         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
5702         (jnf): Define using libm_alias_float.
5703         (ynf): Likewise.
5704         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
5705         (log10f): Define using libm_alias_float.
5706         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
5707         (log2f): Define using libm_alias_float.
5708         * math/w_logf_compat.c: Include <libm-alias-float.h>.
5709         (logf): Define using libm_alias_float.
5710         * math/w_powf_compat.c: Include <libm-alias-float.h>.
5711         (powf): Define using libm_alias_float.
5712         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
5713         (remainderf): Define using libm_alias_float.
5714         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
5715         (sinhf): Define using libm_alias_float.
5716         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
5717         (sqrtf): Define using libm_alias_float.
5718         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
5719         (tgammaf): Define using libm_alias_float.
5721 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5723         * include/math.h (roundeven): Change hidden_proto call to
5724         __roundeven.
5725         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
5726         alias.
5727         [NO_LONG_DOUBLE] (__j0l): New strong alias.
5728         (y0): Rename to __y0 and define as weak alias.
5729         [NO_LONG_DOUBLE] (__y0l): New strong alias.
5730         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
5731         alias.
5732         (y0f): Rename to __y0f and define as weak alias.
5733         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
5734         alias.
5735         [NO_LONG_DOUBLE] (__j1l): New strong alias.
5736         (y1): Rename to __y1 and define as weak alias.
5737         [NO_LONG_DOUBLE] (__y1l): New strong alias.
5738         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
5739         alias.
5740         (y1f): Rename to __y1f and define as weak alias.
5741         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
5742         alias.
5743         [NO_LONG_DOUBLE] (__jnl): New strong alias.
5744         (yn): Rename to __yn and define as weak alias.
5745         [NO_LONG_DOUBLE] (__ynl): New strong alias.
5746         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
5747         alias.
5748         (ynf): Rename to __ynf and define as weak alias.
5749         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
5750         (fromfp): Define as weak alias.
5751         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
5752         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
5753         (fromfpx): Define as weak alias.
5754         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
5755         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
5756         __getpayload and define as weak alias.
5757         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5758         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
5759         __roundeven and define as weak alias.
5760         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5761         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
5762         __setpayload.
5763         (setpayload): Define as weak alias.
5764         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
5765         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
5766         __setpayloadsig.
5767         (setpayloadsig): Define as weak alias.
5768         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
5769         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
5770         __totalorder and define as weak alias.
5771         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5772         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
5773         to __totalordermag and define as weak alias.
5774         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5775         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
5776         (ufromfp): Define as weak alias.
5777         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
5778         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
5779         __ufromfpx.
5780         (ufromfpx): Define as weak alias.
5781         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
5782         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
5783         Rename to __getpayload and define as weak alias.
5784         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
5785         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
5786         Rename to __roundeven and define as weak alias.
5787         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
5788         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
5789         Rename to __totalorder and define as weak alias.
5790         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
5791         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
5792         (totalordermag): Rename to __totalordermag and define as weak
5793         alias.
5794         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
5795         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
5796         macro.
5797         (__roundevenl): Likewise.
5798         (__totalorderl): Likewise.
5799         (__totalordermagl): Likewise
5800         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
5801         __fromfpf128.
5802         (fromfpf128): Define as weak alias.
5803         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
5804         __fromfpxf128.
5805         (fromfpxf128): Define as weak alias.
5806         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
5807         __setpayloadf128.
5808         (setpayloadf128): Define as weak alias.
5809         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
5810         __setpayloadsigf128.
5811         (setpayloadsigf128): Define as weak alias.
5812         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
5813         __ufromfpf128.
5814         (ufromfpf128): Define as weak alias.
5815         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
5816         __ufromfpxf128.
5817         (ufromfpxf128): Define as weak alias.
5818         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
5819         (fromfpf): Define as weak alias.
5820         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
5821         __fromfpxf.
5822         (fromfpxf): Define as weak alias.
5823         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
5824         __getpayloadf and define as weak alias.
5825         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
5826         __roundevenf and define as weak alias.
5827         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
5828         __setpayloadf.
5829         (setpayloadf): Define as weak alias.
5830         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
5831         __setpayloadsigf.
5832         (setpayloadsigf): Define as weak alias.
5833         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
5834         __totalorderf and define as weak alias.
5835         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
5836         Rename to __totalordermagf and define as weak alias.
5837         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
5838         __ufromfpf.
5839         (ufromfpf): Define as weak alias.
5840         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
5841         __ufromfpxf.
5842         (ufromfpxf): Define as weak alias.
5843         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
5844         __fromfpl.
5845         (fromfpl): Define as weak alias.
5846         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
5847         __fromfpxl.
5848         (fromfpxl): Define as weak alias.
5849         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
5850         to __getpayloadl and define as weak alias.
5851         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
5852         __roundevenl and define as weak alias.
5853         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
5854         __setpayloadl.
5855         (setpayloadl): Define as weak alias.
5856         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
5857         __setpayloadsigl.
5858         (setpayloadsigl): Define as weak alias.
5859         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
5860         to __totalorderl and define as weak alias.
5861         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
5862         Rename to __totalordermagl and define as weak alias.
5863         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
5864         __ufromfpl.
5865         (ufromfpl): Define as weak alias.
5866         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
5867         __ufromfpxl.
5868         (ufromfpxl): Define as weak alias.
5869         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
5870         __fromfpl.
5871         (fromfpl): Define as weak alias.
5872         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
5873         __fromfpxl.
5874         (fromfpxl): Define as weak alias.
5875         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
5876         Rename to __getpayloadl and define as weak alias.
5877         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
5878         to __roundevenl and define as weak alias.  Call __roundeven
5879         instead of roundeven.
5880         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
5881         __setpayloadl.
5882         (setpayloadl): Define as weak alias.
5883         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
5884         __setpayloadsigl.
5885         (setpayloadsigl): Define as weak alias.
5886         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
5887         Rename to __totalorderl and define as weak alias.
5888         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
5889         Rename to __totalordermagl and define as weak alias.
5890         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
5891         __ufromfpl.
5892         (ufromfpl): Define as weak alias.
5893         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
5894         __ufromfpxl.
5895         (ufromfpxl): Define as weak alias.
5896         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
5897         __fromfpl.
5898         (fromfpl): Define as weak alias.
5899         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
5900         __fromfpxl.
5901         (fromfpxl): Define as weak alias.
5902         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
5903         __getpayloadl and define as weak alias.
5904         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
5905         __roundevenl and define as weak alias.
5906         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
5907         __setpayloadl.
5908         (setpayloadl): Define as weak alias.
5909         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
5910         __setpayloadsigl.
5911         (setpayloadsigl): Define as weak alias.
5912         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
5913         __totalorderl and define as weak alias.
5914         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
5915         Rename to __totalordermagl and define as weak alias.
5916         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
5917         __ufromfpl.
5918         (ufromfpl): Define as weak alias.
5919         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
5920         __ufromfpxl.
5921         (ufromfpxl): Define as weak alias.
5923 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5925         * benchtests/bench-string.h (realloc_bufs): New function.
5926         (test_init): Call it.
5927         * benchtests/bench-memset-large.c (do_test): Likewise.
5928         * benchtests/bench-memset.c (do_test): Likewise.
5930         * benchtests/bench-memset-large.c: Print output in JSON
5931         format.
5932         * benchtests/bench-memset.c: Likewise.
5934 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5936         [BZ #21084]
5937         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
5938         * iconvdata/Makefile: Add IBM858.
5939         * iconvdata/gconv-modules: Likewise.
5940         * iconvdata/tst-tables.sh: Likewise.
5941         * iconvdata/ibm858.c: New file.
5942         * localedata/charmaps/IBM858: Likewise.
5944 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
5946         [BZ #22023]
5947         * locales/niu_NZ (LC_TIME): copy "niu_NU".
5948         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
5950 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
5952         [BZ #22112]
5953         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
5954         and add tel_int_fmt.
5956 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
5958         * sysdeps/generic/libm-alias-float128.h: New file.
5959         * sysdeps/generic/math-type-macros-float128.h: Include
5960         <libm-alias-float128.h>.
5961         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5963 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5965         * sysdeps/generic/libm-alias-ldouble.h: New file.
5966         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
5967         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
5968         * sysdeps/generic/math-type-macros-ldouble.h: Include
5969         <libm-alias-ldouble.h>.
5970         [!declare_mgen_alias] (declare_mgen_alias): Define to use
5971         libm_alias_ldouble.
5973 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5975         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
5976         * math/w_exp_compat.c: ... here.
5977         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
5978         * math/w_expf_compat.c: ... here.
5979         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
5980         * math/w_expl_compat.c: ... here.
5981         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
5982         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5983         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5984         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5986 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
5988         * math/w_scalbln_template.c (strong_alias): Do not undefine and
5989         redefine.
5990         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5991         macro.
5992         (ldexpl): Only define as compat symbol for libc, not libm.
5993         (scalbnl): Define as compat symbol for libc here.
5994         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5995         define for [IS_IN (libc)].
5996         (__ldexpl_2): Remove alias.
5997         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5998         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
5999         name in long_double_symbol call.
6000         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
6001         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
6002         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
6003         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
6004         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
6005         Remove macro.
6006         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
6007         Define as compat symbol.
6009 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6011         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
6012         * sysdeps/unix/sysv/linux/alpha/Makefile
6013         [$(subdir) = csu] (sysdep_routines): Remove rule.
6015 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
6017         * sysdeps/generic/libm-alias-double.h: New file.
6018         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
6019         * sysdeps/generic/math-type-macros-double.h: Include
6020         <libm-alias-double.h>.
6021         [declare_mgen_alias] (declare_mgen_alias): Define to use
6022         libm_alias_double.
6023         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
6024         (M_LIBM_NEED_COMPAT): Remove macro.
6025         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
6026         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
6027         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
6028         code.
6029         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6030         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6031         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6032         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6033         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6034         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6035         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6036         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6037         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6038         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6039         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6040         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6041         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6042         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6043         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6044         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6045         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6046         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6047         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6048         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6049         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6050         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6051         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6052         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6053         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6054         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6055         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
6056         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
6057         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
6058         macro.
6059         (declare_mgen_alias): New macro.
6060         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
6061         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
6062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
6063         (M_LIBM_NEED_COMPAT): Remove macro.
6064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
6065         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
6066         <first-versions.h>.
6067         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
6068         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
6070 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
6072         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
6073         (declare_mgen_alias_2): Remove.
6074         * sysdeps/generic/math-type-macros-double.h
6075         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
6076         Likewise.
6077         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
6078         alias.
6079         (ldexp): Define with declare_mgen_alias.
6080         (scalbn): Likewise.
6082 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
6084         * grp/initgroups.c: Include config.h.
6085         (DEFAULT_CONFIG): New macro.
6086         (internal_getgrouplist): Use DEFAULT_CONFIG.
6087         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6088         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
6089         (DEFAULT_DEFCONFIG): New macro.
6090         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
6091         * nss/grp-lookup.c: Include config.h
6092         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
6093         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
6094         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
6095         * manual/nss.texi: Update default values section.
6097 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6099         [BZ #21967]
6100         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
6101         New.
6102         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
6103         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6104         Handle MathVec_Prefer_No_AVX512.
6105         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
6106         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
6107         is set.
6109 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6111         * posix/sched_primax.c (__sched_get_priority_max): Add
6112         libc_hidden_def.
6113         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
6114         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6115         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
6116         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
6117         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
6118         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
6119         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
6120         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
6121         Add aliases.
6123 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
6125         * sysdeps/generic/libm-alias-float.h: New file.
6126         * sysdeps/generic/math-type-macros-float.h: Include
6127         <libm-alias-float.h>.
6128         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
6130 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
6132         [BZ #22093]
6133         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
6134         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
6135         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
6136         (HWCAP_IMPORTANT): Likewise.
6137         (HWCAP_X86_64): New enum.
6138         (HWCAP_X86_AVX512_1): Updated.
6139         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
6140         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
6141         (modules-names): Add x86_64/tst-x86_64mod-1.
6142         (LDFLAGS-tst-x86_64mod-1.so): New.
6143         ($(objpfx)tst-x86_64-1): Likewise.
6144         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
6145         (tst-x86_64-1-clean): Likewise.
6146         * sysdeps/x86_64/tst-x86_64-1.c: New file.
6147         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
6149 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6151         * po/sv.po: Update translations.
6152         * po/fr.po: Likewise.
6154 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6156         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
6157         seconds.
6158         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
6159         seconds.
6160         * elf/rtld-Rules: Fix $(error) use.
6162 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
6164         [BZ #14925]
6165         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
6166         * locale/iso-639.def: Change “Bengali” to “Bangla”.
6167         * localedata/locales/bn_BD: “Bengali” was still used in some
6168         comments. Change it to “Bangla”.
6170 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
6172         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
6174 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6176         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
6177         thunderx2t99p1 to list of cpu names.
6178         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6179         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
6181 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
6183         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
6184         Use strcmp instead of tunable_is_name.
6186 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
6188         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6189         (F_GET_RW_HINT): New macro.
6190         [__USE_GNU] (F_SET_RW_HINT): Likewise.
6191         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
6192         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
6193         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
6194         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
6195         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
6196         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
6197         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
6198         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
6200         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
6201         (F_ADD_SEALS): New macro.
6202         [__USE_GNU] (F_GET_SEALS): Likewise.
6203         [__USE_GNU] (F_SEAL_SEAL): Likewise.
6204         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
6205         [__USE_GNU] (F_SEAL_GROW): Likewise.
6206         [__USE_GNU] (F_SEAL_WRITE): Likewise.
6208 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6210         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6211         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6212         * posix/glob_internal.h (__glob_pattern_type):
6213         * posix/glob.c (glob):
6214         * posix/glob_pattern_p.c (__glob_pattern_p):
6215         Use them.
6217         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
6218         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
6219         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
6220         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
6221         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
6223         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
6224         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
6225         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6226         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6227         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6228         * sysdeps/wordsize-64/glob.c: Likewise.
6229         * sysdeps/wordsize-64/glob64.c: Likewise.
6230         * sysdeps/wordsize-64/globfree.c: Likewise.
6231         * sysdeps/wordsize-64/globfree64.c: Likewise.
6232         * sysdeps/unix/sysv/linux/glob.c: New file.
6233         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
6234         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
6235         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
6236         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
6237         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
6238         adds !GLOB_NO_OLD_VERSION as an extra condition.
6239         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
6240         using relative path instead of absolute one.
6241         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
6242         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
6243         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
6244         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
6245         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
6246         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
6248         [BZ #1062]
6249         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
6250         (glob): Use the same scratch buffer for both getlogin_r and
6251         getpwnam_r.  Don’t require preallocation of the login name.  This
6252         simplifies storage allocation, and corrects the handling of
6253         long login names.
6255         [BZ #1062]
6256         * posix/glob.c (glob): Port recent patches to platforms
6257         lacking getpwnam_r.
6258         (glob): Fix longstanding misuse of errno after getpwnam_r, which
6259         returns an error number rather than setting errno.
6261         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
6262         instead of GCC extension.
6263         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
6264         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
6265         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
6267         [BZ #866]
6268         [BZ #1062]
6269         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
6270         * posix/bug-glob1.c: Remove file.
6271         * posix/tst-glob_symlinks.c: New file.
6272         * posix/glob.c (__lstat64): New macro.
6273         (is_dir): New function.
6274         (glob, glob_in_dir): Match symlinks even if they are dangling.
6275         (link_stat, link_exists_p): Remove.  All uses removed.
6277         [BZ #1062]
6278         [BZ #19971]
6279         * posix/glob.c (struct readdir_result): Remove skip_entry member.
6280         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6281         All uses removed.
6283         [BZ #1062]
6284         CVE-2017-15671
6285         * posix/Makefile (routines): Add globfree, globfree64, and
6286         glob_pattern_p.
6287         * posix/flexmember.h: New file.
6288         * posix/glob_internal.h: Likewise.
6289         * posix/glob_pattern_p.c: Likewise.
6290         * posix/globfree.c: Likewise.
6291         * posix/globfree64.c: Likewise.
6292         * sysdeps/gnu/globfree64.c: Likewise.
6293         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
6294         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
6295         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
6296         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
6297         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
6298         * sysdeps/wordsize-64/globfree.c: Likewise.
6299         * sysdeps/wordsize-64/globfree64.c: Likewise.
6300         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
6301         [NDEBUG): Remove comments.
6302         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
6303         (dirent_type): New type.  Use uint_fast8_t not
6304         uint8_t, as C99 does not require uint8_t.
6305         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
6306         (struct readdir_result): Use dirent_type.  Do not define skip_entry
6307         unless it is needed; this saves a byte on platforms lacking d_ino.
6308         (readdir_result_type, readdir_result_skip_entry):
6309         New functions, replacing ...
6310         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6311          these functions, which were removed.  This makes the callers
6312         easier to read.  All callers changed.
6313         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6314         (size_add_wrapv, glob_use_alloca): New static functions.
6315         (glob, glob_in_dir): Check for size_t overflow in several places,
6316         and fix some size_t checks that were not quite right.
6317         Remove old code using SHELL since Bash no longer
6318         uses this.
6319         (glob, prefix_array): Separate MS code better.
6320         (glob_in_dir): Remove old Amiga and VMS code.
6321         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6322         separate files.
6323         (glob_in_dir): Do not rely on undefined behavior in accessing
6324         struct members beyond their bounds.  Use a flexible array member
6325         instead
6326         (link_stat): Rename from link_exists2_p and return -1/0 instead of
6327         0/1.  Caller changed.
6328         (glob): Fix memory leaks.
6329         * posix/glob64 (globfree64): Move to separate file.
6330         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
6331         (globfree64): Remove hidden alias.
6332         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
6333         oldglob.
6334         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
6335         separate file.
6336         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
6337         define.
6338         Move compat code to separate file.
6339         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
6340         separate file.
6342 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
6344         * resolv/tst-resolv-qtypes.c (domain): Changed to
6345         "const char domain[] =".
6347 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
6349         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6350         version to 3.1.6.
6352         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
6353         (TCP_MD5SIG_EXT): Likewise.
6354         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
6355         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
6356         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
6358         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
6360 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
6362         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
6364 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
6366         [BZ #22100]
6367         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
6369 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6371         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
6372         before assuming that the file is empty.  Avoid testing buffer content
6373         when nread == 0.
6375 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6377         [BZ #18858]
6378         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6379         Remove define.
6380         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
6381         Likewise.
6382         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
6383         Likewise.
6384         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
6385         Likewise.
6386         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
6387         Likewise.
6388         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
6389         Likewise.
6390         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
6391         Likewise.
6393 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6395         * malloc/dynarray_emplace_enlarge.c
6396         (__libc_dynarray_emplace_enlarge): Add missing else.
6398 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6400         [BZ #22096]
6401         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
6402         case of failure to obtain the global conf object.
6404 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6406         [BZ #22095]
6407         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
6408         dynarray allocation failure.
6410 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6412         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
6413         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
6414         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
6415         New functions.
6416         (response): Call them.  Add 'p', '6' flag processing.
6417         (test_reverse): New function.
6418         (test_get2_any): Call it.
6419         (test_no_inet6): Add 'p' test.
6420         (test_inet6): Likewise.
6422 2017-09-06  Florian Weimer  <fweimer@redhat.com>
6424         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
6425         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
6426         the QNAME.
6427         (test_gai): Adjust query names.  Add additional tests.
6428         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
6429         test_get2.  Adjust query names.  Add additional tests.
6430         (test_no_inet6): New function, extracted from threadfunc.
6431         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
6432         Add additional tests.
6434 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6436         [BZ #22070]
6437         * localedata/unicode-gen/utf8_gen.py: Set the width for
6438         characters with Prepended_Concatenation_Mark property to 1
6439         * localedata/charmaps/UTF-8: Updated using the improved script.
6441 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
6443         [BZ #21750]
6444         * localedata/unicode-gen/utf8_gen.py: Improve the script to
6445         use the range notation for all ranges of neighbouring characters
6446         with the same width.
6448 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6450         * sysdeps/generic/math-type-macros-double.h: Include
6451         <math-svid-compat.h>.
6452         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6453         * sysdeps/generic/math-type-macros-float.h: Include
6454         <math-svid-compat.h>.
6455         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6456         * sysdeps/generic/math-type-macros-ldouble.h: Include
6457         <math-svid-compat.h>.
6458         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
6459         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
6460         condition.
6461         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
6462         * math/w_acosf_compat.c: Likewise.
6463         * math/w_acosh_compat.c: Likewise.
6464         * math/w_acoshf_compat.c: Likewise.
6465         * math/w_acoshl_compat.c: Likewise.
6466         * math/w_acosl_compat.c: Likewise.
6467         * math/w_asin_compat.c: Likewise.
6468         * math/w_asinf_compat.c: Likewise.
6469         * math/w_asinl_compat.c: Likewise.
6470         * math/w_atan2_compat.c: Likewise.
6471         * math/w_atan2f_compat.c: Likewise.
6472         * math/w_atan2l_compat.c: Likewise.
6473         * math/w_atanh_compat.c: Likewise.
6474         * math/w_atanhf_compat.c: Likewise.
6475         * math/w_atanhl_compat.c: Likewise.
6476         * math/w_cosh_compat.c: Likewise.
6477         * math/w_coshf_compat.c: Likewise.
6478         * math/w_coshl_compat.c: Likewise.
6479         * math/w_exp10_compat.c: Likewise.
6480         * math/w_exp10f_compat.c: Likewise.
6481         * math/w_exp10l_compat.c: Likewise.
6482         * math/w_exp2_compat.c: Likewise.
6483         * math/w_exp2f_compat.c: Likewise.
6484         * math/w_exp2l_compat.c: Likewise.
6485         * math/w_fmod_compat.c: Likewise.
6486         * math/w_fmodf_compat.c: Likewise.
6487         * math/w_fmodl_compat.c: Likewise.
6488         * math/w_hypot_compat.c: Likewise.
6489         * math/w_hypotf_compat.c: Likewise.
6490         * math/w_hypotl_compat.c: Likewise.
6491         * math/w_j0_compat.c: Likewise.
6492         * math/w_j0f_compat.c: Likewise.
6493         * math/w_j0l_compat.c: Likewise.
6494         * math/w_j1_compat.c: Likewise.
6495         * math/w_j1f_compat.c: Likewise.
6496         * math/w_j1l_compat.c: Likewise.
6497         * math/w_jn_compat.c: Likewise.
6498         * math/w_jnf_compat.c: Likewise.
6499         * math/w_jnl_compat.c: Likewise.
6500         * math/w_lgamma_r_compat.c: Likewise.
6501         * math/w_lgammaf_r_compat.c: Likewise.
6502         * math/w_lgammal_r_compat.c: Likewise.
6503         * math/w_log10_compat.c: Likewise.
6504         * math/w_log10f_compat.c: Likewise.
6505         * math/w_log10l_compat.c: Likewise.
6506         * math/w_log2_compat.c: Likewise.
6507         * math/w_log2f_compat.c: Likewise.
6508         * math/w_log2l_compat.c: Likewise.
6509         * math/w_log_compat.c: Likewise.
6510         * math/w_logf_compat.c: Likewise.
6511         * math/w_logl_compat.c: Likewise.
6512         * math/w_pow_compat.c: Likewise.
6513         * math/w_powf_compat.c: Likewise.
6514         * math/w_powl_compat.c: Likewise.
6515         * math/w_remainder_compat.c: Likewise.
6516         * math/w_remainderf_compat.c: Likewise.
6517         * math/w_remainderl_compat.c: Likewise.
6518         * math/w_sinh_compat.c: Likewise.
6519         * math/w_sinhf_compat.c: Likewise.
6520         * math/w_sinhl_compat.c: Likewise.
6521         * math/w_sqrt_compat.c: Likewise.
6522         * math/w_sqrtf_compat.c: Likewise.
6523         * math/w_sqrtl_compat.c: Likewise.
6524         * math/w_tgamma_compat.c: Likewise.
6525         * math/w_tgammaf_compat.c: Likewise.
6526         * math/w_tgammal_compat.c: Likewise.
6527         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
6528         [LIBM_SVID_COMPAT].
6529         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
6530         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
6531         [LIBM_SVID_COMPAT].
6532         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
6533         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
6534         [LIBM_SVID_COMPAT].
6535         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
6536         * sysdeps/i386/fpu/w_sqrt.c: New file.
6537         * sysdeps/ia64/fpu/w_acos.c: Likewise.
6538         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
6539         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
6540         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
6541         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
6542         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
6543         * sysdeps/ia64/fpu/w_asin.c: Likewise.
6544         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
6545         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
6546         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
6547         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
6548         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
6549         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
6550         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
6551         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
6552         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
6553         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
6554         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
6555         * sysdeps/ia64/fpu/w_exp.c: Likewise.
6556         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
6557         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
6558         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
6559         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
6560         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
6561         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
6562         * sysdeps/ia64/fpu/w_expf.c: Likewise.
6563         * sysdeps/ia64/fpu/w_expl.c: Likewise.
6564         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
6565         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
6566         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
6567         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
6568         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
6569         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
6570         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
6571         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
6572         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
6573         * sysdeps/ia64/fpu/w_log.c: Likewise.
6574         * sysdeps/ia64/fpu/w_log10.c: Likewise.
6575         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
6576         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
6577         * sysdeps/ia64/fpu/w_log2.c: Likewise.
6578         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
6579         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
6580         * sysdeps/ia64/fpu/w_logf.c: Likewise.
6581         * sysdeps/ia64/fpu/w_logl.c: Likewise.
6582         * sysdeps/ia64/fpu/w_pow.c: Likewise.
6583         * sysdeps/ia64/fpu/w_powf.c: Likewise.
6584         * sysdeps/ia64/fpu/w_powl.c: Likewise.
6585         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
6586         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
6587         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
6588         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
6589         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
6590         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
6591         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
6592         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
6593         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
6594         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
6595         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
6596         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
6597         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
6598         [LIBM_SVID_COMPAT].
6599         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6600         * sysdeps/ieee754/k_standard.c: Likewise.
6601         * sysdeps/ieee754/k_standardf.c: Likewise.
6602         * sysdeps/ieee754/k_standardl.c: Likewise.
6603         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6604         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6605         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6606         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
6607         long_double_symbol call on [LIBM_SVID_COMPAT].
6608         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
6609         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
6610         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
6611         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
6612         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
6613         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
6614         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
6615         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
6616         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
6617         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
6618         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
6619         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6620         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
6621         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
6622         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
6623         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
6624         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
6625         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
6626         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
6627         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
6628         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
6629         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
6631 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
6633         * include/shlib-compat.h (TEST_COMPAT): New Macro.
6634         * malloc/tst-mallocstate.c: Convert from test-skeleton
6635         to test-driver.  Ifdef code using TEST_COMPAT macro.
6636         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
6637         * math/test-matherr.c: Likewise.
6639 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
6641         [BZ #22086]
6642         * debug/pcprofiledump.c (main): Use byte-swapped mask when
6643         comparing word with byte-swapped constant.
6645 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
6647         [BZ #20498]
6648         * locale/iso-639.def: add Miskito.
6649         * localedata/SUPPORTED: Add miq_NI/UTF-8.
6650         * localedata/locales/miq_NI: New file.
6652 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6654         [BZ #18822]
6655         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
6656         (__mkdir): Likewise.
6657         * io/chmod.c (__chmod): Add libc_hidden_def.
6658         * io/mkdir.c (__mkdir): Likewise.
6659         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
6660         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
6661         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
6662         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
6664 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6666         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6667         version to 4.13.
6669         [BZ #22082]
6670         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
6671         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
6673 2017-09-04  Florian Weimer  <fweimer@redhat.com>
6675         * math/math.h: Issue warning if log is defined.
6677 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
6679         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6680         kernel version to 4.13.
6682 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6684         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
6685         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
6686         parameter.
6687         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
6688         just <bits/types.h>.
6689         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
6690         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
6691         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
6692         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
6693         * misc/preadv2.c: Include <errno.h>.
6694         * misc/preadv64v2.c: Include <errno.h>.
6695         * misc/pwritev2.c: Include <errno.h>.
6696         * misc/pwritev64v2.c: Include <errno.h>.
6697         * sysdeps/posix/preadv2.c: Include <errno.h>.
6698         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
6699         Fix <unistd.h> inclusion.
6700         * sysdeps/posix/pwritev2.c: Include <errno.h>.
6701         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
6702         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
6703         __strtoul_internal): New functions.
6704         * sysdeps/posix/pause.c: Include <sigsetops.h>.
6705         * sysdeps/posix/system.c: Include <sigsetops.h>.
6706         * sysdeps/mach/hurd/i386/Makefile
6707         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
6708         [$(subdir) = csu] (sysdep-only-routines): Likewise.
6709         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
6710         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
6711         __feraiseexcept_renamed to feraiseexcept instead of
6712         __GI_feraiseexcept.
6713         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
6714         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
6715         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
6716         RWF_NOWAIT): Define to 0 if undefined already.
6717         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
6718         boils down to 0.
6719         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
6720         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
6722 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6724         * manual/math.texi (pow10): Do not document.
6725         (pow10f): Likewise.
6726         (pow10l): Likewise.
6727         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
6728         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
6729         * math/libm-test-exp10.inc (pow10_test): Remove.
6730         (do_test): Do not call pow10.
6731         * math/w_exp10_compat.c (pow10): Make into compat symbol.
6732         [NO_LONG_DOUBLE] (pow10l): Likewise.
6733         * math/w_exp10f_compat.c (pow10f): Likewise.
6734         * math/w_exp10l_compat.c (pow10l): Likewise.
6735         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
6736         (pow10): Make into compat symbol.
6737         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
6738         (pow10f): Make into compat symbol.
6739         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
6740         (pow10l): Make into compat symbol.
6741         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
6742         pow10.
6743         (CFLAGS-nldbl-pow10.c): Remove variable..
6744         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
6745         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
6746         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
6747         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
6748         Undefine and redefine.
6749         (pow10l): Make into compat symbol.
6750         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
6751         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6752         * sysdeps/arm/libm-test-ulps: Likewise.
6753         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
6754         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6755         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6756         * sysdeps/microblaze/libm-test-ulps: Likewise.
6757         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6758         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6759         * sysdeps/nios2/libm-test-ulps: Likewise.
6760         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6761         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6762         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6763         * sysdeps/sh/libm-test-ulps: Likewise.
6764         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6765         * sysdeps/tile/libm-test-ulps: Likewise.
6766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6768 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6770         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
6772 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6774         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
6775         "../ChangeLog.old/ChangeLog.8".
6776         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
6777         "../ChangeLog.old/ChangeLog.14".
6779 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6781         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
6782         Threads Library.
6784 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
6786         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
6788 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
6790         * csu/version.c (banner): Remove "by Roland McGrath et al.".
6791         * nptl/Banner: Remove "by Ulrich Drepper et al.".
6793 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6795         * stdlib/tst-atexit-common.c (do_test): Test support for at least
6796         32 atexit handlers.
6798 2017-09-01  Zack Weinberg  <zackw@panix.com>
6800         * math/math.h (HUGE_VAL): Improve commentary.
6802 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6803             Andreas Schwab  <schwab@suse.de>
6805         [BZ #21530]
6806         * include/stdio.h (__gen_tempfd): New function.
6807         * stdio-common/Makefile (routines): Add gentempfd.
6808         * stdio-common/gentempfd.c: New file.
6809         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
6810         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
6811         unnamed file first.
6813 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6815         [BZ #21915]
6816         [BZ #21922]
6817         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
6818         result to determine success or failure, not the errno value.
6819         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
6820         (tst-nss-files-hosts-erange): Link with -ldl.
6821         * nss/tst-nss-files-hosts-erange.c: New file.
6822         * nss/tst-resolv-basic.c (response): Handle nodata.example.
6823         (do_test): Add NO_DATA tests.
6824         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
6825         (do_test): Call it.
6827 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6829         [BZ #21922]
6830         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
6831         coming from gethostbyname2_r.
6833 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6835         * support/namespace.h (struct support_chroot_configuration): Add
6836         hosts, host_conf.
6837         (struct support_chroot): Add path_hosts, path_host_conf.
6838         * support/support_chroot.c (write_file): New function.
6839         (support_chroot_create): Call it to process /etc/resolv.conf,
6840         /etc/hosts, /etc/host.conf.
6841         (support_chroot_free): Update.
6843 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
6846         status indicates it is set.
6848 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6850         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
6851         function lookup failures more reliable.
6853 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6855         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
6856         (getcanonname): Likewise.
6857         (gaih_inet): Likewise.
6859 2017-09-01  Florian Weimer  <fweimer@redhat.com>
6861         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
6862         (getcanonname): Likewise.
6863         (gaih_inet): Likewise.
6865 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6866             Richard Henderson <rth@twiddle.net>
6868         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
6869         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
6870         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
6871         (IREG_SIZE, OREG_SIZE): New macros.
6872         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
6873         (IREG_SIZE, OREG_SIZE): New macros.
6874         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
6875         (IREG_SIZE): New macro.
6876         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
6877         (IREG_SIZE): New macro.
6878         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
6879         New includes.
6880         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
6881         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6882         (__CONCATX): Handle exceptions correctly on large values that may
6883         set FE_INVALID.
6884         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
6885         Initialize if not already set.
6886         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
6888 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6890         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
6891         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
6892         Likewise.
6893         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
6894         Likewise.
6895         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
6896         Likewise.
6897         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
6898         Likewise.
6899         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
6900         Likewise.
6901         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
6902         Likewise.
6903         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
6904         Likewise.
6905         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
6906         (NO_CANCELLATION): Likewise.
6907         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
6908         Likewise.
6909         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
6910         Likewise.
6911         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
6912         Likewise.
6913         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
6914         (NO_CANCELLATION): Likewise.
6915         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
6916         (NO_CANCELLATION): Likewise.
6917         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
6918         Likewise
6919         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
6920         Likewise.
6921         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
6922         Likewise.
6923         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
6924         Likewise.
6925         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
6926         hidden prototype.
6927         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
6928         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
6930 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
6932         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
6933         in resolver call.
6935 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6937         * include/libc-symbols.h (internal_function): Remove.
6939 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6941         * stdlib/fmtmsg.c (internal_addseverity): Remove
6942         internal_function.
6944 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6946         * stdio-common/printf_fp.c (group_number): Remove
6947         internal_function.
6948         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6950 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6952         * posix/fnmatch.c (internal_function): Remove definition.
6953         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
6954         * posix/regcomp.c (peek_token, init_word_char)
6955         (duplicate_node_closure, fetch_token, peek_token)
6956         (peek_token_bracket, build_range_exp, build_collating_symbol):
6957         Likewise.
6958         * posix/regex_internal.c (re_string_construct_common)
6959         (create_ci_newstate, create_cd_newstate, re_string_allocate)
6960         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
6961         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
6962         (re_string_translate_buffer, re_string_reconstruct)
6963         (re_string_peek_byte_case, re_string_fetch_byte_case)
6964         (re_string_destruct, re_string_context_at, re_node_set_alloc)
6965         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
6966         (re_node_set_add_intersect, re_node_set_init_union)
6967         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
6968         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
6969         (re_dfa_add_node, calc_state_hash, re_acquire_state)
6970         (re_acquire_state_context): Likewise.
6971         * posix/regex_internal.h (internal_function): Remove definition.
6972         (re_string_realloc_buffers, build_wcs_buffer)
6973         (build_wcs_upper_buffer, build_upper_buffer)
6974         (re_string_translate_buffer, re_string_context_at)
6975         (re_string_char_size_at, re_string_wchar_at)
6976         (re_string_elem_size_at): Likewise.
6977         * posix/regexec.c (match_ctx_init, match_ctx_clean)
6978         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
6979         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
6980         (re_search_internal, re_search_2_stub, re_search_stub)
6981         (re_copy_regs, prune_impossible_nodes, check_matching)
6982         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6983         (free_fail_stack_return, sift_states_iter_mb)
6984         (sift_states_backward, build_sifted_states)
6985         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6986         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6987         (check_subexp_limits, sift_states_bkref, merge_state_array)
6988         (find_recover_state, transit_state, merge_state_with_log)
6989         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6990         (transit_state_mb, transit_state_bkref, get_subexp)
6991         (get_subexp_sub, find_subexp_node, check_arrival)
6992         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6993         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6994         (check_node_accept_bytes, find_collation_sequence_value)
6995         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6996         (acquire_init_state_context, check_halt_node_context)
6997         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6998         (sub_epsilon_src_nodes): Likewise.
6999         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
7000         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
7001         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
7002         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
7003         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
7004         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
7005         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
7006         * sysdeps/posix/ttyname.c (getttyname): Likewise.
7007         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
7008         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
7009         (PREADV): Likewise.
7010         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
7011         (PREADV): Likewise.
7012         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
7013         (PWRITEV): Likewise.
7014         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
7015         (PWRITEV): Likewise.
7016         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
7017         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
7019 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7021         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
7022         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
7023         Remove internal_function.
7024         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
7025         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
7026         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
7027         (__deallocate_stack, __libc_pthread_init)
7028         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
7029         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
7030         (__libc_disable_asynccancel, __librt_disable_asynccancel):
7031         Likewise.
7032         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
7033         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
7034         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
7035         Likewise.
7036         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
7037         (__pthread_mutex_unlock_usercnt): Likewise.
7039 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7041         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
7042         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
7043         (fts_safe_changedir): Remove internal_function.
7044         * io/ftw.c (internal_function): Remove definition.
7045         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
7047 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7049         * inet/deadline.c (__deadline_current_time)
7050         (__deadline_from_timeval, __deadline_to_ms): Remove
7051         internal_function.
7052         * inet/getnameinfo.c (nrl_domainname): Likewise.
7053         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
7054         * inet/inet6_option.c (add_pad): Likewise.
7055         * inet/net-internal.h (__deadline_current_time)
7056         (__deadline_from_timeval, __deadline_to_ms): Likewise.
7057         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
7058         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
7059         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
7061 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
7063         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
7064         include <bits/nan.h>.
7065         * math/Makefile (headers): Remove bits/nan.h.
7066         * bits/nan.h: Remove.
7067         * sysdeps/ieee754/bits/nan.h: Likewise.
7068         * sysdeps/mips/bits/nan.h: Likewise.
7070         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
7071         not include <bits/inf.h>.
7072         * math/Makefile (headers): Remove bits/inf.h.
7073         * bits/inf.h: Remove.
7074         * sysdeps/ieee754/bits/inf.h: Likewise.
7076         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
7077         bits/huge_vall.h or bits/huge_val_flt128.h.
7078         (HUGE_VAL): Define directly here.
7079         [__USE_ISOC99] (HUGE_VALF): Likewise.
7080         [__USE_ISOC99] (HUGE_VALL): Likewise.
7081         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7082         (HUGE_VAL_F128): Likewise.
7083         * math/Makefile (headers): Remove bits/huge_val.h,
7084         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
7085         * bits/huge_val.h: Remove.
7086         * bits/huge_val_flt128.h: Likewise.
7087         * bits/huge_valf.h: Likewise.
7088         * bits/huge_vall.h: Likewise.
7089         * sysdeps/ia64/bits/huge_vall.h: Likewise.
7090         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7091         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
7092         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
7093         * sysdeps/sh/bits/huge_val.h: Likewise.
7094         * sysdeps/sparc/bits/huge_vall.h: Likewise.
7095         * sysdeps/x86/bits/huge_vall.h: Likewise.
7097 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7099         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
7100         internal_function.
7101         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
7102         Likewise.
7103         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
7104         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7105         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
7106         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
7107         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7108         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7109         * elf/dl-libc.c (dlerror_run): Likewise.
7110         * elf/dl-load.c (add_name_to_object, decompose_rpath)
7111         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
7112         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
7113         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
7114         Likewise.
7115         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
7116         (_dl_higher_prime_number, _dl_strtoul): Likewise.
7117         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
7118         * elf/dl-profile.c (_dl_start_profile): Likewise.
7119         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
7120         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
7121         Likewise.
7122         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
7123         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
7124         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
7125         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
7126         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
7127         (_dl_allocate_tls_storage): Likewise.
7128         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
7129         (_dl_check_all_versions): Likewise.
7130         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
7131         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
7132         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
7133         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7134         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
7135         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
7136         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
7137         internal_function from __dl_start.
7138         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
7139         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
7140         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
7141         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
7142         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
7143         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
7144         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
7145         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
7146         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
7147         (_dl_next_ld_env_entry, _dl_important_hwcaps)
7148         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
7149         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
7150         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
7151         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
7152         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
7153         Likewise.
7154         (struct rtld_global_ro): Remove internal_function from the
7155         _dl_lookup_symbol_x member.
7156         (_dl_symbol_value): Remove.  No longer defined anywhere.
7157         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
7158         internal_function.
7159         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7160         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
7161         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
7162         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
7163         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
7164         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
7165         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
7166         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
7167         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
7168         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
7169         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
7170         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
7172 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7174         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
7175         Remove internal_function.
7176         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7177         Likewise.
7178         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
7179         Likewise.
7181 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7183         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
7184         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
7185         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
7187 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7189         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
7190         (__gai_enqueue_request): Remove internal_function.
7191         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
7192         (__gai_remove_request, __gai_notify, __gai_notify_only)
7193         (__gai_sigqueue): Likewise.
7194         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
7195         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
7196         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
7197         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7198         Likewise.
7200 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7202         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
7203         * include/dirent.h (__opendirat, __getdents, __getdents64)
7204         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
7205         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
7206         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7207         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7208         Likewise.
7209         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
7211 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7213         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
7214         internal_function.
7215         (GETCWD_RETURN_TYPE): Likewise.
7217 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7219         * include/time.h (__tz_compute, __strptime_internal): Remove
7220         internal_function.
7221         * time/strptime_l.c (__strptime_internal): Likewise.
7222         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
7224 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7226         * iconv/gconv.c (__gconv): Remove internal_function.
7227         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
7228         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
7229         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
7230         (__gconv_release_cache): Likewise.
7231         * iconv/gconv_close.c (__gconv_close): Likewise.
7232         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
7233         (read_conf_file, __gconv_get_path): Likewise.
7234         * iconv/gconv_db.c (derivation_lookup, add_derivation)
7235         (__gconv_release_step, gen_steps, increment_counter)
7236         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
7237         (__gconv_close_transform, free_modules_db): Likewise.
7238         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
7239         Likewise.
7240         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
7241         (__gconv_find_transform, __gconv_lookup_cache)
7242         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
7243         (__gconv_close_transform, __gconv_release_cache)
7244         (__gconv_loaded_object, __gconv_release_shlib)
7245         (__gconv_compare_alias): Likewise.
7246         * iconv/gconv_open.c (__gconv_open): Likewise.
7247         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
7248         * iconv/iconvconfig.c (add_module): Likewise.
7249         * intl/dcigettext.c (plural_lookup, guess_category_value)
7250         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
7251         * intl/eval-plural.h (plural_eval): Likewise.
7252         * intl/finddomain.c (_nl_find_domain): Likewise.
7253         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
7254         (_nl_load_domain, _nl_find_msg): Likewise.
7255         (internal_function): Remove definition.
7256         * intl/loadinfo.h (internal_function): Likewise.
7257         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
7258         internal_function.
7259         * intl/localealias.c (internal_function): Remove definition.
7260         (read_alias_file): Remove internal_function.
7261         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
7262         * intl/plural-exp.h (internal_function): Remove definition.
7263         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
7264         internal_function.
7265         * intl/plural.c: Regenerate.
7266         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
7267         * locale/coll-lookup.c (__collidx_table_lookup)
7268         (__collseq_table_lookup): Likewise.
7269         * locale/coll-lookup.h (__collidx_table_lookup)
7270         (__collseq_table_lookup): Likewise.
7271         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
7272         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7273         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
7274         (_nl_unload_locale): Likewise.
7275         * locale/localeinfo.h (struct __locale_data): Remove
7276         internal_function from cleanup member.
7277         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
7278         (_nl_remove_locale, _nl_load_locale_from_archive)
7279         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
7280         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
7281         (_nl_cleanup_time): Remove internal_function.
7282         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
7283         (_nl_parse_alt_digit): Likewise.
7284         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
7285         (_nl_select_era_entry): Likewise.
7286         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7287         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7288         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7289         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
7290         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7292 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7294         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
7295         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7296         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
7297         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
7298         Likewise.
7299         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
7300         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
7301         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
7302         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7303         Likewise.
7304         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
7306 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7308         * misc/getttyent.c (skip, value): Remove internal_function.
7309         * misc/syslog.c (openlog_internal): Likewise.
7310         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
7312 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7314         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
7315         (__nss_rewrite_field): Remove internal_function.
7316         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7317         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7318         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7319         * nss/nsswitch.c (nss_parse_file, nss_getline)
7320         (nss_parse_service_list, nss_new_service): Likewise.
7321         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
7322         * nss/valid_field.c (__nss_valid_field): Likewise.
7323         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
7325 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7327         * malloc/arena.c (__malloc_fork_lock_parent)
7328         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
7329         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
7330         internal_function from defintions.
7331         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
7332         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
7333         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
7334         internal_function from declarations.
7335         * malloc/malloc.c (internal_function): Do not define.
7336         (mem2mem_check): Remove internal_function from declaration.
7337         (munmap_chunk, mremap_chunk): Remove internal_function.
7338         * malloc/mtrace.c (tr_where): Likewise.
7340 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7342         * include/rpc/pmap_clnt.h (__get_socket): Remove
7343         internal_function.
7344         * sunrpc/auth_des.c (synchronize): Likewise.
7345         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
7346         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
7347         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
7348         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
7349         (key_call): Likewise.
7350         * sunrpc/pm_getport.c (__get_socket): Likewise.
7351         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
7352         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
7353         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
7354         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
7355         (invalidate): Likewise.
7356         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
7357         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
7358         (set_input_fragment, get_input_bytes): Likewise.
7360 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7362         * malloc/malloc.c (_int_free): Remove locked variable and related
7363         asserts.
7365 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7367         [BZ #22051]
7368         * Makerules (build-module-helper-objlist): Filter out
7369         $(elf-objpfx)sofini.os.
7370         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
7371         needed.
7373 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7375         * libio/fcloseall.c: Assume weak_alias is defined.
7376         * libio/feof.c: Likewise.
7377         * libio/fileno.c: Likewise.
7378         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
7379         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7380         definitions.
7381         (_IO_file_open): Call __open directly.
7382         (_IO_new_file_sync): Assume ESPIPE is defined.
7383         (_IO_file_seekoff_maybe_mmap): Call __read directly.
7384         (_IO_new_file_write): Call __write directly.
7385         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
7386         * libio/ftello64.c (__ftello64): Assume EIO is defined.
7387         * libio/genops.c: Assume _LIBC is defined.
7388         (save_for_backup): Remove internal_function.
7389         * libio/getc.c: Assume weak_alias is defined.
7390         * libio/getwc.c: Likewise.
7391         * libio/iofclose.c: Assume _LIBC is defined.
7392         * libio/iofdopen.c: Likewise.
7393         (_IO_fcntl): Remove macro definition.
7394         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
7395         Call __fcntl directly.
7396         * libio/iofflush.c: Assume weak_alias is defined.
7397         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
7398         defined.
7399         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
7400         * libio/iofgets.c: Likewise.
7401         * libio/iofopen.c: Assume _LIBC is defined.
7402         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
7403         * libio/iofputs.c: Assume weak_alias is defined.
7404         * libio/iofread.c: Likewise.
7405         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
7406         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
7407         * libio/ioftell.c: Assume weak_alias is defined.
7408         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
7409         * libio/iofwide.c: Assume _LIBC is defined.
7410         (_IO_fwide): Drop SHARED conditional because it is implied by
7411         SHLIB_COMPAT.
7412         * libio/iofwrite.c: Assume weak_alias is defined.
7413         * libio/iogetdelim.c: Likewise.
7414         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
7415         * libio/iogetwline.c (wmemcpy): Remove macro definition.
7416         (_IO_getwline): Call __wmemcpy directly.
7417         * libio/iopopen.c: Assume _LIBC is defined.
7418         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7419         (_IO_close): Remove macro definitions.
7420         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
7421         _exit directly.
7422         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
7423         directly.
7424         * libio/ioputs.c: Assume weak_alias is defined.
7425         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
7426         * libio/iosetbuffer.c: Assume weak_alias is defined.
7427         * libio/iosetvbuf.c: Likewise.
7428         * libio/ioungetc.c: Likewise.
7429         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
7430         libc_hidden_def, libc_hidden_weak, NULL are defined.
7431         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
7432         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
7433         defined.
7434         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
7435         definitions.
7436         (_IO_old_file_init_internal): Drop SHARED conditional because it
7437         is implied by SHLIB_COMPAT.
7438         (_IO_old_file_fopen): Call __open directly.
7439         (_IO_old_file_sync): Assume ESPIPE is defined.
7440         (_IO_old_file_write): Call __write directly.
7441         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
7442         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
7443         Call __fcntl directly.
7444         * libio/oldiofgetpos.c: Assume weak_alias is defined.
7445         (_IO_old_fgetpos): Assume EIO is defined.
7446         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
7447         (_IO_old_fgetpos64): Assume EIO is defined.
7448         * libio/oldiofsetpos.c: Assume weak_alias is defined.
7449         (_IO_old_fsetpos): Assume EIO is defined.
7450         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
7451         (_IO_old_fsetpos64): Assume EIO is defined.
7452         * libio/oldiopopen.c:  Assume _LIBC is defined.
7453         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
7454         (_IO_close): Remove macro definitions.
7455         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
7456         directly.
7457         (_IO_old_proc_close): Call __close, __waitpid directly.
7458         * libio/put.c: Assume weak_alias is defined.
7459         * libio/stdfiles.c: Assume _LIBC is defined.
7460         * libio/stdio.c: Likewise.
7461         * libio/wfileops.c: Likewise.
7462         (_IO_wfile_sync): Assume ESPIPE is defined.
7463         * libio/wgenops.c: Assume _LIBC is defined.
7464         (save_for_wbackup): Remove internal_function.
7466 2017-08-31  Florian Weimer  <fweimer@redhat.com>
7468         * malloc/malloc.c (top_check): Change return type to void.  Remove
7469         internal_function.
7470         * malloc/hooks.c (top_check): Likewise.
7471         (malloc_check, realloc_check, memalign_check): Adjust.
7473 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
7475         [BZ #21457]
7476         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7477         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
7478         sigcontext and namespace requirements.
7479         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
7480         * sysdeps/m68k/sys/ucontext.h: Likewise.
7481         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
7482         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
7483         <bits/sigcontext.h>.
7484         (__ctx): Define earlier.
7485         (mcontext_t): Define structure contents rather than using struct
7486         sigcontext.
7487         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
7488         __glibc_reserved1 instead of __reserved.
7489         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
7490         <bits/sigcontext.h>.
7491         (__ctx): Define earlier.
7492         (mcontext_t): Define structure contents rather than using struct
7493         sigcontext.
7494         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
7495         mcontext_t instead of struct sigcontext.
7496         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
7497         <bits/sigcontext.h>.
7498         (__ctx): Define earlier.
7499         (mcontext_t): Define structure contents rather than using struct
7500         sigcontext.
7501         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
7502         <bits/sigcontext.h>.
7503         (__ctx): Define earlier.
7504         (mcontext_t): Define structure contents rather than using struct
7505         sigcontext.
7506         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
7507         mcontext_t instead of struct sigcontext.
7508         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
7509         mcontext_t instead of struct sigcontext.
7510         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
7511         <bits/sigcontext.h>.
7512         (__ctx): New macro.
7513         (struct __ia64_fpreg_mcontext): New type.
7514         (mcontext_t): Define structure contents rather than using struct
7515         sigcontext.
7516         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
7517         (uc_sigmask): Define using __ctx.
7518         (uc_stack): Likewise.
7519         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
7520         <bits/sigcontext.h>.
7521         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7522         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
7523         <bits/sigcontext.h>.
7524         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
7525         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
7526         <bits/sigcontext.h>.
7527         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
7528         <bits/sigcontext.h>.
7529         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
7530         <bits/sigcontext.h>.
7531         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
7532         <bits/sigcontext.h>.
7533         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
7534         <bits/sigcontext.h>.
7535         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
7536         <bits/sigcontext.h>.
7537         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
7538         <bits/sigcontext.h>.
7539         (__ctx): Define earlier.
7540         (mcontext_t): Define structure contents rather than using struct
7541         sigcontext.
7542         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
7543         <bits/sigcontext.h>.  Include <bits/types.h>.
7544         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
7545         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
7546         (test-xfail-XPG42/ucontext.h/conform): Likewise.
7547         (test-xfail-UNIX98/signal.h/conform): Likewise.
7548         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7549         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7550         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7551         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7552         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7553         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7554         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7555         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7556         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7558 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7560         * malloc/dynarray_emplace_enlarge.c
7561         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
7562         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7563         * malloc/tst-dynarray.c (test_long_overflow): New function.
7564         (do_test): Call it.
7566 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7568         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
7569         (set_arena_corrupt): Remove definitions.
7570         (mtrim): Do not check for corrupt arena.
7571         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
7572         Likewise.
7574 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7576         [BZ #21754]
7577         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
7578         check_action.
7579         (ptmalloc_init): Do not set or use check_action.
7580         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
7581         call to malloc_printerr.  Remove return statement.
7582         (free_check): Likewise.  Remove arena unlock.
7583         (top_check): Update comment.  Adjust call to malloc_printerr.
7584         Remove heap repair code.
7585         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
7586         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
7587         (sysmalloc): Adjust call to malloc_printerr.
7588         (munmap_chunk, __libc_realloc): Likewise.  Remove return
7589         statement.
7590         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
7591         Remove errout label and corresponding gotos.
7592         (_int_free): Likewise.  Remove arena unlock.
7593         (do_set_mallopt_check): Do not set check_action.
7594         (malloc_printerr): Adjust parameter list.  Do not mark arena as
7595         corrupt.
7596         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
7597         comment.
7598         * manual/probes.texi (Memory Allocation Probes): Remove
7599         memory_mallopt_check_action.
7601 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
7603         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
7604         Use pointer to uint64_t instead of long int for sp.
7606 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7608         [BZ #21754]
7609         * malloc/malloc.c (malloc_printerr): Always terminate the process,
7610         without printing a backtrace.  Do not leak any information in the
7611         error message.
7612         * manual/memory.texi (Heap Consistency Checking): Update.
7613         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
7615 2017-08-30  Florian Weimer  <fweimer@redhat.com>
7617         Do not scale NPTL tests with available number of CPUs.
7618         * nptl/tst-cond16.c (count): Set to constant value of 8.
7619         * nptl/tst-cond18.c (count): Likewise.
7621 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7623         [BZ #22035]
7624         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
7625         Define to take a second argument that is a macro that
7626         concatentates a suffix, not the suffix itself.
7627         (__CONCAT_d): New macro.
7628         (__CONCAT_f): Likewise.
7629         (__CONCAT_l): Likewise.
7631 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
7633         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
7634         by child.
7636 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7637             Aurelien Jarno  <aurelien@aurel32.net>
7638             Maciej W. Rozycki  <macro@imgtec.com>
7640         [BZ #21956]
7641         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
7642         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
7643         `mips16-syscall6' and `mips16-syscall7'.
7644         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
7645         (CFLAGS-mips16-syscall7.c): Remove.
7646         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
7647         Remove `__mips16_syscall5', `__mips16_syscall6' and
7648         `__mips16_syscall7'.
7649         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
7650         (__mips16_syscall0): Rename `__mips16_syscall_return' to
7651         `__mips_syscall_return'.
7652         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
7653         (__mips16_syscall1): Likewise.
7654         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
7655         (__mips16_syscall2): Likewise.
7656         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
7657         (__mips16_syscall3): Likewise.
7658         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
7659         (__mips16_syscall4): Likewise.
7660         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
7661         Remove.
7662         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
7663         Remove.
7664         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
7665         Remove.
7666         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
7667         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
7668         `__mips16_syscall5'.  Remove prototype.
7669         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
7670         `__mips16_syscall6'.  Remove prototype.
7671         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
7672         `__mips16_syscall7'.  Remove prototype.
7673         (__nomips16, __mips16_syscall_return): Move to...
7674         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
7675         (__nomips16, __mips_syscall_return): ... here.
7676         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
7677         `__mips16_syscall_return' to `__mips_syscall_return'.
7678         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
7679         `internal_syscall##nr'.
7680         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
7681         `internal_syscall##nr'.
7682         (FORCE_FRAME_POINTER): Remove.
7683         (__mips_syscall5): New prototype.
7684         (internal_syscall5): Rewrite to call `__mips_syscall5'.
7685         (__mips_syscall6): New prototype.
7686         (internal_syscall6): Rewrite to call `__mips_syscall6'.
7687         (__mips_syscall7): New prototype.
7688         (internal_syscall7): Rewrite to call `__mips_syscall7'.
7689         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
7690         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
7691         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
7692         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
7693         (sysdep_routines): Add libc-do-syscall.
7694         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
7695         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
7697 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7699         [BZ #21672]
7700         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
7701         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
7702         (advise_stack_range): New function.
7703         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
7704         stack non required to advise_stack_range at allocatestack.c
7706 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7708         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
7710 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7712         [BZ #22026]
7713         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
7714         __end_fct.  Mangle __end_fct after setting it to NULL.
7715         * iconv/Makefile (tests): Add tst-gconv-init-failure.
7716         (modules-names, modules-names-tests): Add
7717         tst-gconv-init-failure-mod.
7718         (gconv-modules): New target.
7719         (tst-gconv-init-failure-mod.so): Link against libsupport.
7720         (tst-gconv-init-failure): Depend on gconv-modules,
7721         tst-gconv-init-failure-mod.so.
7722         * iconv/tst-gconv-init-failure-mod.c: New file.
7723         * iconv/tst-gconv-init-failure.c: Likewise.
7724         * iconv/test-gconv-modules: Likewise.
7726 2017-08-29  Florian Weimer  <fweimer@redhat.com>
7728         [BZ #22025]
7729         * iconv/gconv_db.c (free_derivation): Remove redundant
7730         parentheses.
7731         (gen_steps): Unconditionally mangle __btowc_fct after
7732         initialization.
7733         (increment_counter): Likewise.  Do not call init_fct for internal
7734         modules.
7736 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
7738         [BZ #22028]
7739         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7740         (_MSUF_): Remove macro.
7741         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
7742         Likewise.
7743         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
7744         (__REDIRFROM_X): New macro.
7745         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
7746         Likewise.
7747         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
7748         (__REDIRTO_X): Likewise.
7749         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
7750         arguments.
7751         (__MATH_REDIRCALL_2): Likewise.
7752         (__MATH_REDIRCALL_INTERNAL): Likewise.
7753         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7754         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
7755         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
7756         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7757         * math/test-finite-macros.c: New file.
7758         * math/Makefile (tests): Add test-finite-macros.
7759         (CFLAGS-test-finite-macros.c): New variable.
7761 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
7762             Jeff Law  <law@redhat.com>
7764         [BZ #22025]
7765         Mangle NULL pointers in iconv/gconv.
7766         * iconv/gconv_cache.c (find_module): Demangle init_fct before
7767         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
7768         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
7769         is non-NULL before demangling the end_fct.  Check for NULL
7770         end_fct after demangling.
7771         (__gconv_release_step): Demangle the end_fct before checking
7772         it for NULL.   Remove assert on __shlibc_handle != NULL.
7773         (gen_steps): Don't check btowc_fct for NULL before mangling.
7774         Demangle init_fct before checking for NULL.
7775         (increment_counter): Likewise.
7776         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
7777         end_fct for NULL before mangling.
7778         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
7779         for NULL.
7781 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
7783         [BZ #21971]
7784         * locale/iso-639.def: add Morisyen.
7786 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7788         [BZ #21930]
7789         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
7790         (iszero): New C++ implementation that does not use
7791         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
7792         signaling nans are enabled, since __builtin_types_compatible_p
7793         is a C-only feature.
7794         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
7795         defined, include ieee754_float128.h for access to the union and
7796         member ieee854_float128.ieee.
7797         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
7798         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
7799         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7800         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
7801         options of test-math-zero on powerpc64le.
7803 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
7805         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
7806         Change double to float.
7808 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
7810         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
7811         unconditional.
7812         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
7813         conditional code; define contents only for [LIBM_SVID_COMPAT].
7815 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7817         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
7818         (abi-lp64_be-options): Remove.
7819         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
7820         (abi-hard-options): Likewise.
7821         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
7822         (abi-o32_hard-options, abi-o32_soft_2008-options)
7823         (abi-o32_hard_2008-options, abi-n32_soft-options)
7824         (abi-n32_hard-options, abi-n32_soft_2008-options)
7825         (abi-n32_hard_2008-options, abi-n64_soft-options)
7826         (abi-n64_hard-options, abi-n64_soft_2008-options)
7827         (abi-n64_hard_2008-options): Likewise.
7828         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
7829         (abi-64-v1-options, abi-64-v2-options): Likewise.
7830         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
7831         (abi-64-options): Likewise.
7832         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
7833         (abi-64-options): Likewise.
7834         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
7835         (abi-64-options): Likewise.
7836         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
7837         (abi-64-options, abi-x32-options): Likewise.
7839 2017-08-28  Florian Weimer  <fweimer@redhat.com>
7841         Store supported list of SYS_* system calls in the source tree.
7842         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7843         (bits/syscall.h): Generate from list file.
7844         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
7845         [$(subdir) = misc] (tests): Add tst-syscall-list.
7846         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
7847         [$(subdir) = misc] (tst-syscall-list-macros.list)
7848         [$(subdir) = misc] (tst-syscall-list-nr.list)
7849         (tst-syscall-list-sys.list): Helper targets for new
7850         tst-syscall-list test.
7851         [$(subdir) = misc] (tst-syscall-list.out): Run test script
7852         tst-syscall-list.sh.
7853         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
7854         target. Do not include bits/syscall.d.
7855         [$(subdir) = misc] (generated): Do not update.
7856         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
7857         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
7858         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
7859         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
7861 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
7863         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
7864         (tst-cxa_atexit, tst-on_exit): Likewise.
7865         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
7866         tst-cxa_atexit, and tst-on_exit.
7867         * stdlib/tst-atexit-common.c: New file.
7868         * stdlib/tst-atexit.c: New file.
7869         * stdlib/tst-at_quick_exit.c: New file.
7870         * stdlib/tst-cxa_atexit.c: New file.
7871         * stdlib/tst-on_exit.c: New file.
7873 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7875         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
7876         * mach/stack_chk_fail_local.c: New file.
7877         * hurd/stack_chk_fail_local.c: New file.
7878         * mach/Machrules ($(interface-library)-routines): Add
7879         stack_chk_fail_local.
7880         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
7881         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
7882         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
7883         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
7884         * hurd/Makefile (CFLAGS-hurdstartup.o,
7885         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
7887 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
7889         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7890         (index_cpu_*, index_arch_*): Removed.
7892 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7894         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
7895         Use uint64_t instead of unsigned long.
7897 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
7899         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
7900         [__HAVE_DISTINCT_FLOAT128].
7902         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
7903         of <bits/math-finite.h>.
7904         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
7905         inclusion of <bits/math-finite.h>.
7906         * math/bits/math-finite.h (__REDIRTO_X): Do not define
7907         conditionally on [__MATH_DECLARING_LDOUBLE && defined
7908         __NO_LONG_DOUBLE_MATH].
7909         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
7910         (__MATH_REDIRCALL_2): Likewise.
7911         (__MATH_REDIRCALL_INTERNAL): Likewise.
7912         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
7913         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
7914         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
7916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
7917         Remove file.
7918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
7919         Likewise.
7920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
7921         Likewise.
7922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
7923         Likewise.
7924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
7925         Likewise.
7926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
7927         Likewise.
7928         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7929         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7930         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7931         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
7933         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
7934         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
7935         w_sqrtf_compat-ppc32.
7937 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7939         * math/math.h [defined __cplusplus] (issignaling): In the long
7940         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
7941         is not defined.  Call __issignaling, otherwise.
7943 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7945         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
7946         syscall definitions and replace __builtin_expect with __glibc_likely.
7947         * sysdeps/unix/syscall-template.S: Update comment about cancellable
7948         syscall.
7949          (SYSCALL_CANCELLABLE): Removedefinition
7950         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
7951         definition.
7952         (PSEUDO_END): Likewise.
7953         [IS_IN (libpthread)] (CENABLE): Likewise.
7954         [IS_IN (libpthread)] (CDISABLE): Likewise.
7955         [IS_IN (libc)] (CENABLE): Likewise.
7956         [IS_IN (libc)] (CENABLE): Likewise.
7957         [IS_IN (librt)] (CDISABLE): Likewise.
7958         [IS_IN (librt)] (CDISABLE): Likewise.
7959         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7960         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
7961         definition.
7962         (PSEUDO_END): Likewise.
7963         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
7964         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
7965         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7966         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
7967         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7968         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
7969         (CENABLE): Likewise.
7970         (CDISABLE): Likewise.
7971         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7972         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
7973         defintion.
7974         (PSEUDO_END): Likewise.
7975         [IS_IN (libpthread)] (CENABLE): Likewise.
7976         [IS_IN (libpthread)] (CDISABLE): Likewise.
7977         [IS_IN (libc)] (CENABLE): Likewise.
7978         [IS_IN (libc)] (CENABLE): Likewise.
7979         [IS_IN (librt)] (CDISABLE): Likewise.
7980         [IS_IN (librt)] (CDISABLE): Likewise.
7981         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7982         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7983         definition.
7984         (PSEUDO_END): Likewise.
7985         [IS_IN (libpthread)] (CENABLE): Likewise.
7986         [IS_IN (libpthread)] (CDISABLE): Likewise.
7987         [IS_IN (libc)] (CENABLE): Likewise.
7988         [IS_IN (libc)] (CENABLE): Likewise.
7989         [IS_IN (librt)] (CDISABLE): Likewise.
7990         [IS_IN (librt)] (CDISABLE): Likewise.
7991         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7992         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7993         definition.
7994         (PSEUDO_END): Likewise.
7995         [IS_IN (libpthread)] (CENABLE): Likewise.
7996         [IS_IN (libpthread)] (CDISABLE): Likewise.
7997         [IS_IN (libc)] (CENABLE): Likewise.
7998         [IS_IN (libc)] (CENABLE): Likewise.
7999         [IS_IN (librt)] (CDISABLE): Likewise.
8000         [IS_IN (librt)] (CDISABLE): Likewise.
8001         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8002         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
8003         definition.
8004         (PSEUDO_END): Likewise.
8005         [IS_IN (libpthread)] (CENABLE): Likewise.
8006         [IS_IN (libpthread)] (CDISABLE): Likewise.
8007         [IS_IN (libc)] (CENABLE): Likewise.
8008         [IS_IN (libc)] (CENABLE): Likewise.
8009         [IS_IN (librt)] (CDISABLE): Likewise.
8010         [IS_IN (librt)] (CDISABLE): Likewise.
8011         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8012         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
8013         definition.
8014         (PSEUDO_END): Likewise.
8015         [IS_IN (libpthread)] (CENABLE): Likewise.
8016         [IS_IN (libpthread)] (CDISABLE): Likewise.
8017         [IS_IN (libc)] (CENABLE): Likewise.
8018         [IS_IN (libc)] (CENABLE): Likewise.
8019         [IS_IN (librt)] (CDISABLE): Likewise.
8020         [IS_IN (librt)] (CDISABLE): Likewise.
8021         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8022         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
8023         definition.
8024         (PSEUDO_END): Likewise.
8025         [IS_IN (libpthread)] (CENABLE): Likewise.
8026         [IS_IN (libpthread)] (CDISABLE): Likewise.
8027         [IS_IN (libc)] (CENABLE): Likewise.
8028         [IS_IN (libc)] (CENABLE): Likewise.
8029         [IS_IN (librt)] (CDISABLE): Likewise.
8030         [IS_IN (librt)] (CDISABLE): Likewise.
8031         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8032         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
8033         Remove definition.
8034         (PSEUDO_END): Likewise.
8035         [IS_IN (libpthread)] (CENABLE): Likewise.
8036         [IS_IN (libpthread)] (CDISABLE): Likewise.
8037         [IS_IN (libc)] (CENABLE): Likewise.
8038         [IS_IN (libc)] (CENABLE): Likewise.
8039         [IS_IN (librt)] (CDISABLE): Likewise.
8040         [IS_IN (librt)] (CDISABLE): Likewise.
8041         (SINGLE_THREAD_P): Likewise.
8042         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
8043         definition.
8044         (PSEUDO_END): Likewise.
8045         [IS_IN (libpthread)] (CENABLE): Likewise.
8046         [IS_IN (libpthread)] (CDISABLE): Likewise.
8047         [IS_IN (libc)] (CENABLE): Likewise.
8048         [IS_IN (libc)] (CENABLE): Likewise.
8049         [IS_IN (librt)] (CDISABLE): Likewise.
8050         [IS_IN (librt)] (CDISABLE): Likewise.
8051         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8052         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
8053         definition.
8054         (PSEUDO_END): Likewise.
8055         [IS_IN (libpthread)] (CENABLE): Likewise.
8056         [IS_IN (libpthread)] (CDISABLE): Likewise.
8057         [IS_IN (libc)] (CENABLE): Likewise.
8058         [IS_IN (libc)] (CENABLE): Likewise.
8059         [IS_IN (librt)] (CDISABLE): Likewise.
8060         [IS_IN (librt)] (CDISABLE): Likewise.
8061         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8062         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
8063         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
8064         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
8065         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
8066         definition.
8067         (PSEUDO_END): Likewise.
8068         [IS_IN (libpthread)] (CENABLE): Likewise.
8069         [IS_IN (libpthread)] (CDISABLE): Likewise.
8070         [IS_IN (libc)] (CENABLE): Likewise.
8071         [IS_IN (libc)] (CENABLE): Likewise.
8072         [IS_IN (librt)] (CDISABLE): Likewise.
8073         [IS_IN (librt)] (CDISABLE): Likewise.
8074         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8075         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
8076         definition.
8077         (PSEUDO_END): Likewise.
8078         [IS_IN (libpthread)] (CENABLE): Likewise.
8079         [IS_IN (libpthread)] (CDISABLE): Likewise.
8080         [IS_IN (libc)] (CENABLE): Likewise.
8081         [IS_IN (libc)] (CENABLE): Likewise.
8082         [IS_IN (librt)] (CDISABLE): Likewise.
8083         [IS_IN (librt)] (CDISABLE): Likewise.
8084         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8085         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
8086         definition.
8087         (PSEUDO_END): Likewise.
8088         [IS_IN (libpthread)] (CENABLE): Likewise.
8089         [IS_IN (libpthread)] (CDISABLE): Likewise.
8090         [IS_IN (libc)] (CENABLE): Likewise.
8091         [IS_IN (libc)] (CENABLE): Likewise.
8092         [IS_IN (librt)] (CDISABLE): Likewise.
8093         [IS_IN (librt)] (CDISABLE): Likewise.
8094         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8095         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
8096         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
8097         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
8098         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
8099         definition.
8100         (PSEUDO_END): Likewise.
8101         [IS_IN (libpthread)] (CENABLE): Likewise.
8102         [IS_IN (libpthread)] (CDISABLE): Likewise.
8103         [IS_IN (libc)] (CENABLE): Likewise.
8104         [IS_IN (libc)] (CENABLE): Likewise.
8105         [IS_IN (librt)] (CDISABLE): Likewise.
8106         [IS_IN (librt)] (CDISABLE): Likewise.
8107         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8108         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
8109         definition.
8110         (PSEUDO_END): Likewise.
8111         [IS_IN (libpthread)] (CENABLE): Likewise.
8112         [IS_IN (libpthread)] (CDISABLE): Likewise.
8113         [IS_IN (libc)] (CENABLE): Likewise.
8114         [IS_IN (libc)] (CENABLE): Likewise.
8115         [IS_IN (librt)] (CDISABLE): Likewise.
8116         [IS_IN (librt)] (CDISABLE): Likewise.
8117         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
8119 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8121         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
8123 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8125         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8127 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8129         [BZ #21982]
8130         * string/stratcliff.c (do_test): Declare size, nchars, inner,
8131         middle and outer with size_t instead of int.  Repleace %d and
8132         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
8133         "MAX (outer, nchars - 64)" to support unsigned outer and
8134         nchars.  Also exit loop when outer == 0.
8136 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8138         * include/fcntl.h (__fcntl_nocancel): Remove definition.
8139         * include/signal.h (__sigsuspend_nocancel): Likewise.
8140         * include/time.h (__nanosleep_nocancel): Likewise.
8141         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
8142         * login/utmp_file.c: Include non cancellable syscall header.
8143         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
8144         prototype.
8146 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
8148         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
8149         .byte sequences with AVX512F instructions.
8150         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
8151         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
8152         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
8153         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
8154         Likewise.
8155         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
8156         Likewise.
8158 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8159             Steve Ellcey  <sellcey@cavium.com>
8161         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
8162         Use PTR_REG macro in cmp instruction.
8164 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8166         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
8167         Change the return type of the ifunc resolver to match the return
8168         type of the target function.
8170 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8172         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
8173         (preadv64): Likewise.
8174         (pwrite64(: Likewise.
8175         (pwritev64): Likewise.
8177         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8178         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
8179         (LOAD_ARGS_0): Likewise.
8180         (LOAD_ARGS_1): Likewise.
8181         (LOAD_ARGS_2): Likewise.
8182         (LOAD_ARGS_3): Likewise.
8183         (LOAD_ARGS_4): Likewise.
8184         (LOAD_ARGS_5): Likewise.
8185         (LOAD_ARGS_6): Likewise.
8186         (LOAD_REGS_0): Likewise.
8187         (LOAD_REGS_1): Likewise.
8188         (LOAD_REGS_2): Likewise.
8189         (LOAD_REGS_3): Likewise.
8190         (LOAD_REGS_4): Likewise.
8191         (LOAD_REGS_5): Likewise.
8192         (LOAD_REGS_6): Likewise.
8193         (ASM_ARGS_0): Likewise.
8194         (ASM_ARGS_1): Likewise.
8195         (ASM_ARGS_2): Likewise.
8196         (ASM_ARGS_3): Likewise.
8197         (ASM_ARGS_4): Likewise.
8198         (ASM_ARGS_5): Likewise.
8199         (ASM_ARGS_6): Likewise.
8200         (LOAD_ARGS_TYPES_1): Likewise.
8201         (LOAD_ARGS_TYPES_2): Likewise.
8202         (LOAD_ARGS_TYPES_3): Likewise.
8203         (LOAD_ARGS_TYPES_4): Likewise.
8204         (LOAD_ARGS_TYPES_5): Likewise.
8205         (LOAD_ARGS_TYPES_6): Likewise.
8206         (LOAD_REGS_TYPES_1): Likewise.
8207         (LOAD_REGS_TYPES_2): Likewise.
8208         (LOAD_REGS_TYPES_3): Likewise.
8209         (LOAD_REGS_TYPES_4): Likewise.
8210         (LOAD_REGS_TYPES_5): Likewise.
8211         (LOAD_REGS_TYPES_6): Likewise.
8212         (TYPEFY): New define.
8213         (ARGIFY): Likewise.
8214         (internal_syscall0): Likewise.
8215         (internal_syscall1): Likewise.
8216         (internal_syscall2): Likewise.
8217         (internal_syscall3): Likewise.
8218         (internal_syscall4): Likewise.
8219         (internal_syscall5): Likewise.
8220         (internal_syscall6): Likewise.
8221         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
8222         (INTERNAL_SYSCALL_NCS): Remove define.
8223         (internal_syscall1): Add define.
8225 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8227         * math/w_remainder_compat.c: Remove duplicate inclusion of
8228         math-svid-compat.h.
8229         * math/w_remainderf_compat.c: Likewise.
8230         * math/w_remainderl_compat.c: Likewise.
8232 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8236 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8238         [BZ #21684]
8239         * math/tgmath.h (__floating_type): Simplify definitions.
8240         (__real_integer_type): New macro.
8241         (__complex_integer_type): Likewise.
8242         (__expr_is_real): Likewise.
8243         (__tgmath_real_type_sub): Update comment to describe handling of
8244         complex types.
8245         (__tgmath_complex_type_sub): New macro.
8246         (__tgmath_complex_type): Likewise.
8247         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8248         (__TGMATH_CF128): Use __expr_is_real.
8249         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
8250         __expr_is_real.
8251         (__TGMATH_BINARY_REAL_IMAG): Likewise.
8252         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
8253         * math/gen-tgmath-tests.py (Type.create_type): Create complex
8254         integer types.
8256 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8258         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
8259         macro.
8260         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
8261         alias.
8262         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
8263         Likewise.
8265         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
8266         nanosleep_not_cancel with __nanosleep_nocancel.
8267         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
8268         (__nanosleep_nocancel): New macro.
8269         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
8270         function.
8271         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
8272         macro.
8273         (__nanosleep_nocancel): New prototype.
8275         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
8276         pause_not_cancel with __pause_nocancel.
8277         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
8278         (__pause_nocancel): New macro.
8279         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
8280         macro.
8281         (__pause_nocancel): New prototype.
8282         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
8284 2017-08-22  Martin Sebor  <msebor@redhat.com>
8286         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
8287         to return a pointer to the same type as the target function.
8289 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8291         [BZ #18822]
8292         [BZ #21986]
8293         * include/printf.h (__printf_fphex): Add attribute_hidden.
8294         (__guess_grouping): New prototype.
8295         * stdio-common/printf_fp.c (__guess_grouping): Removed.
8296         * stdio-common/reg-printf.c (__register_printf_specifier): Add
8297         libc_hidden_proto and libc_hidden_def.
8298         * stdlib/strfmon_l.c (__guess_grouping): Removed.
8299         (__vstrfmon_l): Remove the third argument passed to
8300         __guess_grouping.
8302 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8304         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
8305         definition for issignaling that does not rely on __MATH_TG,
8306         since __MATH_TG uses __builtin_types_compatible_p, which is only
8307         available in C mode.
8308         (CFLAGS-test-math-issignaling.cc): New variable.
8309         * math/Makefile [CXX] (tests): Add test-math-issignaling.
8310         * math/test-math-issignaling.cc: New test for C++ implementation
8311         of type-generic issignaling.
8312         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
8313         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
8314         options of test-math-issignaling on powerpc64le.
8316 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
8318         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8319         building libc.a.
8320         (hidden_proto): Likewise.
8321         (hidden_tls_proto): Likewise.
8322         (__hidden_proto): Likewise.
8324 2017-08-22  Florian Weimer  <fweimer@redhat.com>
8326         math: Statically link tests of internal functionality.
8327         * math/Makefile (tests): Remove atest-exp, atest-sincos,
8328         atest-exp2.
8329         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
8330         (gmp-objs): Remove assignment.
8331         (atest-exp, atest-sincos, atest-exp2): Remove targets.
8333 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
8335         [BZ #21987]
8336         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
8337         and copy to ...
8338         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
8339         ... here.
8340         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
8341         ... and here.
8343         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
8344         variable definitions above inclusion of ../Rules.
8346 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8348         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
8349         case calling __builtin_unreachable.
8351 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8353         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
8354         __waitpid_nocancel.
8355         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
8356         (__waitpid_nocancel): New macro.
8357         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
8358         macro.
8359         (__waitpid_nocancel): Replace macro with a function.
8360         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
8361         function.
8363         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
8364         __fcntl_nocancel.
8365         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
8366         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
8368         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
8369         __writev_nocancel_nostatus.
8370         (write_call_graph): Likewise.
8371         (write_bb_counts): Likewise.
8372         * resolv/herror.c (herror): Likewise.
8373         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
8374         macro.
8375         (__writev_nocancel_nostatus): New macro.
8376         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
8377         Remove macro.
8378         (__writev_nocancel_nostatus): New function.
8380 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
8382         Revert:
8383         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8385         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8386         building libc.a.
8387         (hidden_proto): Likewise.
8388         (hidden_tls_proto): Likewise.
8389         (__hidden_proto): Likewise.
8391         [BZ #21973]
8392         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
8393         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8395         Likewise.
8396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
8397         Likewise.
8398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8399         Likewise.
8400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
8401         Likewise.
8402         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
8403         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8404         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8405         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8406         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
8407         GLIBC_2.0 sqrtl symbol.
8409         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
8410         [__USE_MISC] (_LIB_VERSION): Likewise.
8411         [__USE_MISC] (struct exception): Likewise.
8412         [__USE_MISC] (matherr): Likewise.
8413         [__USE_MISC] (DOMAIN): Likewise.
8414         [__USE_MISC] (SING): Likewise.
8415         [__USE_MISC] (OVERFLOW): Likewise.
8416         [__USE_MISC] (UNDERFLOW): Likewise.
8417         [__USE_MISC] (TLOSS): Likewise.
8418         [__USE_MISC] (PLOSS): Likewise.
8419         [__USE_MISC] (HUGE): Likewise.
8420         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
8421         * math/math-svid-compat.h: New file.
8422         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
8423         and matherrl.
8424         * include/math.h [!_ISOMAC] (__matherr): Remove.
8425         * manual/arith.texi (FP Exceptions): Do not document matherr.
8426         * math/Makefile (tests): Change test-matherr to test-matherr-3.
8427         (tests-internal): New variable.
8428         (install-lib): Do not add libieee.a.
8429         (non-lib.a): Likewise.
8430         (extra-objs): Do not add libieee.a and ieee-math.o.
8431         (CPPFLAGS-s_lib_version.c): Remove variable.
8432         ($(objpfx)libieee.a): Remove rule.
8433         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
8434         * math/ieee-math.c: Remove.
8435         * math/libm-test-support.c (matherr): Remove.
8436         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
8437         and license notices.  Include <math-svid-compat.h> and
8438         <shlib-compat.h>.
8439         (matherr): Undefine as macro.  Use compat_symbol_reference.
8440         (_LIB_VERSION): Likewise.
8441         * math/test-matherr-2.c: New file.
8442         * math/test-matherr-3.c: Likewise.
8443         * sysdeps/generic/math_private.h (__kernel_standard): Remove
8444         declaration.
8445         (__kernel_standard_f): Likewise.
8446         (__kernel_standard_l): Likewise.
8447         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
8448         <math_private.h>.  Include <math-svid-compat.h>.
8449         (_LIB_VERSION): Undefine as macro.
8450         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
8451         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
8452         [LIBM_SVID_COMPAT], use compat_symbol.
8453         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
8454         <math_private.h>.  Include <math-svid-compat.h>.
8455         (matherr): Undefine as macro.
8456         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
8457         compat_symbol.
8458         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
8459         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
8460         compat_symbol_reference.
8461         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
8462         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
8463         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
8464         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
8465         (MATHERR_D): Remove declaration.
8466         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
8467         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
8468         [LIBM_BUILD] (pmatherrf): Likewise.
8469         [LIBM_BUILD] (pmatherr): Likewise.
8470         [LIBM_BUILD] (pmatherrl): Likewise.
8471         (DOMAIN): Likewise.
8472         (SING): Likewise.
8473         (OVERFLOW): Likewise.
8474         (UNDERFLOW): Likewise.
8475         (TLOSS): Likewise.
8476         (PLOSS): Likewise.
8477         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
8478         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
8479         compat_symbol.
8480         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
8481         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
8482         compat_symbol.
8483         * math/lgamma-compat.h: Include <math-svid-compat.h>.
8484         * math/w_acos_compat.c: Likewise.
8485         * math/w_acosf_compat.c: Likewise.
8486         * math/w_acosh_compat.c: Likewise.
8487         * math/w_acoshf_compat.c: Likewise.
8488         * math/w_acoshl_compat.c: Likewise.
8489         * math/w_acosl_compat.c: Likewise.
8490         * math/w_asin_compat.c: Likewise.
8491         * math/w_asinf_compat.c: Likewise.
8492         * math/w_asinl_compat.c: Likewise.
8493         * math/w_atan2_compat.c: Likewise.
8494         * math/w_atan2f_compat.c: Likewise.
8495         * math/w_atan2l_compat.c: Likewise.
8496         * math/w_atanh_compat.c: Likewise.
8497         * math/w_atanhf_compat.c: Likewise.
8498         * math/w_atanhl_compat.c: Likewise.
8499         * math/w_cosh_compat.c: Likewise.
8500         * math/w_coshf_compat.c: Likewise.
8501         * math/w_coshl_compat.c: Likewise.
8502         * math/w_exp10_compat.c: Likewise.
8503         * math/w_exp10f_compat.c: Likewise.
8504         * math/w_exp10l_compat.c: Likewise.
8505         * math/w_exp2_compat.c: Likewise.
8506         * math/w_exp2f_compat.c: Likewise.
8507         * math/w_exp2l_compat.c: Likewise.
8508         * math/w_fmod_compat.c: Likewise.
8509         * math/w_fmodf_compat.c: Likewise.
8510         * math/w_fmodl_compat.c: Likewise.
8511         * math/w_hypot_compat.c: Likewise.
8512         * math/w_hypotf_compat.c: Likewise.
8513         * math/w_hypotl_compat.c: Likewise.
8514         * math/w_j0_compat.c: Likewise.
8515         * math/w_j0f_compat.c: Likewise.
8516         * math/w_j0l_compat.c: Likewise.
8517         * math/w_j1_compat.c: Likewise.
8518         * math/w_j1f_compat.c: Likewise.
8519         * math/w_j1l_compat.c: Likewise.
8520         * math/w_jn_compat.c: Likewise.
8521         * math/w_jnf_compat.c: Likewise.
8522         * math/w_jnl_compat.c: Likewise.
8523         * math/w_lgamma_main.c: Likewise.
8524         * math/w_lgamma_r_compat.c: Likewise.
8525         * math/w_lgammaf_main.c: Likewise.
8526         * math/w_lgammaf_r_compat.c: Likewise.
8527         * math/w_lgammal_main.c: Likewise.
8528         * math/w_lgammal_r_compat.c: Likewise.
8529         * math/w_log10_compat.c: Likewise.
8530         * math/w_log10f_compat.c: Likewise.
8531         * math/w_log10l_compat.c: Likewise.
8532         * math/w_log2_compat.c: Likewise.
8533         * math/w_log2f_compat.c: Likewise.
8534         * math/w_log2l_compat.c: Likewise.
8535         * math/w_log_compat.c: Likewise.
8536         * math/w_logf_compat.c: Likewise.
8537         * math/w_logl_compat.c: Likewise.
8538         * math/w_pow_compat.c: Likewise.
8539         * math/w_powf_compat.c: Likewise.
8540         * math/w_powl_compat.c: Likewise.
8541         * math/w_remainder_compat.c: Likewise.
8542         * math/w_remainderf_compat.c: Likewise.
8543         * math/w_remainderl_compat.c: Likewise.
8544         * math/w_scalb_compat.c: Likewise.
8545         * math/w_scalbf_compat.c: Likewise.
8546         * math/w_scalbl_compat.c: Likewise.
8547         * math/w_sinh_compat.c: Likewise.
8548         * math/w_sinhf_compat.c: Likewise.
8549         * math/w_sinhl_compat.c: Likewise.
8550         * math/w_sqrt_compat.c: Likewise.
8551         * math/w_sqrtf_compat.c: Likewise.
8552         * math/w_sqrtl_compat.c: Likewise.
8553         * math/w_tgamma_compat.c: Likewise.
8554         * math/w_tgammaf_compat.c: Likewise.
8555         * math/w_tgammal_compat.c: Likewise.
8556         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
8557         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
8558         * sysdeps/ieee754/k_standard.c: Likewise.
8559         * sysdeps/ieee754/k_standardf.c: Likewise.
8560         * sysdeps/ieee754/k_standardl.c: Likewise.
8561         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
8562         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
8563         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
8564         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
8565         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
8566         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
8567         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
8568         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
8569         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
8570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
8571         Likewise.
8572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
8573         Likewise.
8574         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
8575         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
8576         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
8577         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
8579 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8581         [BZ #21864]
8582         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
8583         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
8584         Move before inclusion of ../Rules.
8586 2017-08-21  Florian Weimer  <fweimer@redhat.com>
8588         [BZ #21972]
8589         * assert/assert.h (assert): Use static_cast (bool) for C++.
8590         Use the ternary operator in the warning branch for GNU C.
8591         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
8592         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
8593         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
8594         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
8595         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
8597 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8599         [BZ #18822]
8600         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8601         (__syscall_clock_gettime): Add attribute_hidden.
8602         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
8603         (__start_context): Likewise.
8605 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8607         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
8608         building libc.a.
8609         (hidden_proto): Likewise.
8610         (hidden_tls_proto): Likewise.
8611         (__hidden_proto): Likewise.
8613 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8615         * include/libc-symbols.h (attribute_hidden): Enable hidden
8616         visibility in libc.a compiled with PIE.
8618 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8620         [BZ #18822]
8621         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
8622         Add attribute_hidden.
8624 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8626         [BZ #21864]
8627         * Makerules (all-nonlib): Add $(others-extras).
8628         * catgets/Makefile (others-extras): New.
8629         * elf/Makefile (others-extras): Likewise.
8630         * nss/Makefile (others-extras): Likewise.
8632 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8634         [BZ #18822]
8635         * csu/libc-start.c (__libc_multiple_libcs): Removed.
8636         * elf/dl-open.c: Include <libc-internal.h>.
8637         (__libc_multiple_libcs): Removed.
8638         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
8639         <hp-timing.h>.
8640         * include/libc-internal.h (__libc_multiple_libcs): New.
8641         * misc/sbrk.c: Include <libc-internal.h>.
8642         (__libc_multiple_libcs): Removed.
8644 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
8646         [BZ #18822]
8647         * grp/initgroups.c (__nss_group_database): Removed.
8648         (__nss_initgroups_database): Likewise.
8649         * nscd/gai.c (__nss_hosts_database): Likewise.
8650         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
8651         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
8652         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
8653         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
8654         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
8655         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
8656         attribute_hidden.
8657         * nss/nsswitch.c (__nss_database_custom): Define only if
8658         USE_NSCD is defined.
8659         (__nss_configure_lookup): Use __nss_database_custom only if
8660         USE_NSCD is defined.
8661         * nss/nsswitch.h (__nss_database_custom): Declare only if
8662         USE_NSCD is defined.  Add attribute_hidden.
8663         (__nss_setent): Add attribute_hidden.
8664         (__nss_endent): Likewise.
8665         (__nss_getent_r): Likewise.
8666         (__nss_getent): Likewise.
8667         (DEFINE_DATABASE): Declare __nss_##arg##_database.
8669 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8671         [BZ #18822]
8672         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
8673         libc_hidden_proto and libc_hidden_def.
8675 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8677         [BZ #18822]
8678         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
8679         Add libc_hidden_proto.
8680         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
8681         Add libc_hidden_def.
8683 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8685         [BZ #21974]
8686         * gmon/Makefile (routines): Remove bb_init_func and
8687         bb_exit_func.
8688         (elide-routines.os): Removed.
8689         * gmon/bb_exit_func.c: Likewise.
8690         * gmon/bb_init_func.c: Likewise.
8691         * include/sys/gmon.h (__bb): Likewise.
8692         (__bb_init_func): Likewise.
8693         (__bb_exit_func): Likewise.
8694         * sysdeps/alpha/bb_init_func.S: Likewise.
8696 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
8698         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
8699         * include/setjmp.h (____longjmp_chk): Here.  Add
8700         attribute_hidden.
8702 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8704         [BZ #18822]
8705         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
8706         attribute_hidden.
8707         (__strspn_sse2): Likewise.
8709 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8711         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
8712         (close_not_cancel_no_status): Likewise.
8713         (__close_nocancel): New macro.
8714         (__close_nocancel_nostatus): Likewise.
8715         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
8716         macro.
8717         (close_not_cancel): Likewise.
8718         (close_not_cancel_no_status): Likewise.
8719         (__close_nocancel): New prototype.
8720         (__close_nocancel_nostatus): New function.
8721         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
8722         * catgets/open_catalog.c (__open_catalog): Replace
8723         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
8724         * gmon/gmon.c (write_gmon): Likewise.
8725         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8726         * intl/loadmsgcat.c (close): Likewise.
8727         * io/ftw.c (open_dir_stream): Likewise.
8728         (ftw_startup): Likewise.
8729         * libio/fileops.c (_IO_file_open): Likewise.
8730         (_IO_file_close_mmap): Likewise.
8731         (_IO_file_close): Likewise.
8732         * libio/iopopen.c (_IO_dup2): Likewise.
8733         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8734         * locale/loadlocale.c (_nl_load_locale): Likewise.
8735         * login/utmp_file.c (pututline_file): Likewise.
8736         (endutent_file): Likewise.
8737         * misc/daemon.c (daemon): Likewise.
8738         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8739         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8740         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8741         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8742         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8743         * nscd/nscd_helper.c (open_socket): Likewise.
8744         (__nscd_open_socket): Likewise.
8745         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8746         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
8747         (__nscd_innetgr): Likewise.
8748         * nss/nss_db/db-open.c (internal_setent): Likewise.
8749         * resolv/res-close.c (__res_iclose): Likewise.
8750         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
8751         * sysdeps/posix/closedir.c (__closedir): Likewise.
8752         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
8753         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8754         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8755         (opendir_tail): Likewise.
8756         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8757         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
8758         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8759         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8760         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8761         (gethostid): Likewise.
8762         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8763         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8764         Likewise.
8765         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8766         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
8767         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8768         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8769         Likewise.
8770         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
8771         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
8772         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8773         Likewise.
8774         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
8775         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8776         Likewise.
8777         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8778         Likewise.
8779         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8780         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8781         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8782         __close_nocancel.
8784         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
8785         (openat_not_cancel_3): Likewise.
8786         (openat64_not_cancel_3): Likewise).
8787         (openat_not_cancel_3): Likewise).
8788         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
8789         macro.
8790         (openat_not_cancel_3): Likewise.
8791         (openat64_not_cancel): Likewise.
8792         (openat64_not_cancel_3): Likewise.
8793         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
8794         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
8795         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
8796         __open{64}_nocancel.
8797         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8798         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8799         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8801 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8803         [BZ #18822]
8804         * include/argz.h (__argz_create_sep): New function prototype.
8805         (__argz_append): Likewise.
8806         (__argz_add): Likewise.
8807         (__argz_add_sep): Likewise.
8808         (__argz_delete): Likewise.
8809         (__argz_insert): Likewise.
8810         (__argz_replace): Likewise.
8811         * string/argz.h (__argz_create_sep): Removed.
8812         (__argz_append): Likewise.
8813         (__argz_add): Likewise.
8814         (__argz_add_sep): Likewise.
8815         (__argz_delete): Likewise.
8816         (__argz_insert): Likewise.
8817         (__argz_replace): Likewise.
8819 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8821         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
8822         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
8823         (GNU_PROPERTY_STACK_SIZE): Likewie.
8824         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
8825         (GNU_PROPERTY_LOPROC): Likewise.
8826         (GNU_PROPERTY_HIPROC): Likewise.
8827         (GNU_PROPERTY_LOUSER): Likewise.
8828         (GNU_PROPERTY_HIUSER): Likewise.
8829         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
8830         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
8831         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
8832         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
8833         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
8834         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
8835         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
8836         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
8837         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
8838         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
8839         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
8840         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
8841         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
8842         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
8843         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
8844         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
8845         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
8846         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
8847         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
8848         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
8849         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
8850         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
8851         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
8853 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8855         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
8856         in C++ mode.
8858 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8860         [BZ #21930]
8861         * math/math.h (isinf): Check if in C or C++ mode before using
8862         __builtin_types_compatible_p, since this is a C mode feature.
8864 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8866         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
8867         (__write_nocancel): New macro.
8868         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
8869         Rewrite as a function prototype.
8870         (write_not_cancel): Remove macro.
8871         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
8872         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
8873         (write_gmon): Likewise.
8874         * libio/fileops.c (_IO_new_file_write): Likewise.
8875         * login/utmp_file.c (pututline_file): Likewise.
8876         (updwtmp_file): Likewise.
8877         * stdio-common/psiginfo.c (psiginfo): Likewise.
8878         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8879         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8880         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8881         Likewise.
8882         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8883         Likewise.
8885         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
8886         (__read_nocancel): New macro.
8887         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8888         __read_nocancel.
8889         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
8890         macro.
8891         (__read_nocancel): New prototype.
8892         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
8893         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
8894         with __read_nocancel.
8895         * intl/loadmsgcat.c (read): Likewise.
8896         * libio/fileops.c (_IO_file_read): Likewise.
8897         * locale/loadlocale.c (_nl_load_locale): Likewise.
8898         * login/utmp_file.c (getutent_r_file): Likewise.
8899         (internal_getut_r): Likewise.
8900         (getutline_r_file): Likewise.
8901         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8902         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8903         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8904         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8905         Likewise.
8906         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
8907         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8908         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8909         Likewise.
8910         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8911         Likewise.
8912         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8913         Likewise.
8914         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8915         Likewise.
8916         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8918 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8920         [BZ #21966]
8921         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
8922         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
8923         usable.
8925 2017-08-17  DJ Delorie  <dj@redhat.com>
8927         * bug17079.c: Update to new test harness.
8928         * test-digits-dots.c: Likewise.
8929         * test-netdb.c: Likewise.
8930         * tst-field.c: Likewise.
8931         * tst-nss-getpwent.c: Likewise.
8932         * tst-nss-static.c: Likewise.
8933         * tst-nss-test1.c: Likewise.
8934         * tst-nss-test2.c: Likewise.
8935         * tst-nss-test3.c: Likewise.
8936         * tst-nss-test4.c: Likewise.
8937         * tst-nss-test5.c: Likewise.
8939 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8941         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
8942         (open_not_cancel_2): Likewise.
8943         (open_nocancel): New macro.
8944         (open64_nocancel): Likewise.
8945         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
8946         (open_not_cancel_2): Likewise.
8947         (__open_nocancel): New prototype.
8948         (__open64_nocancel): Likewise.
8949         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
8950         __open_nocancel.
8951         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
8952         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
8953         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
8954         with __open_nocancel.
8955         * csu/check_fds.c (check_one_fd): Likewise.
8956         * gmon/gmon.c (write_gmon): Likewise.
8957         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
8958         * intl/loadmsgcat.c (open): Likewise.
8959         * libio/fileops.c (_IO_file_open): Likewise.
8960         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8961         * locale/loadlocale.c (_nl_load_locale): Likewise.
8962         * login/utmp_file.c (setutent_file): Likewise.
8963         * misc/daemon.c (daemon): Likewise.
8964         * nss/nss_db/db-open.c (internal_setent): Likewise.
8965         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
8966         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
8967         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
8968         (__opendir): Likewise.
8969         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8970         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
8971         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
8972         (gethostid): Likewise.
8973         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
8974         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8975         Likewise.
8976         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
8977         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
8978         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
8979         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
8980         Likewise.
8981         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
8982         Likewise.
8983         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8984         Likewise.
8985         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8986         Likewise.
8987         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8988         Likewise.
8989         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8990         Likewise.
8991         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8992         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8994 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
8996         * benchtests/bench-skeleton.c (main): Add support for
8997         latency benchmarking.
8998         * benchtests/scripts/bench.py: Add support for latency benchmarking.
9000 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
9002         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
9003         the startup object.
9005 2017-08-17  Florian Weimer  <fweimer@redhat.com>
9007         * include/sys/socket.h (__opensock): Remove internal_function.
9008         * socket/opensock.c (__opensock): Likewise.
9009         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
9011 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9013         [BZ #21944]
9014         * signal/bits/types/__sigval_t.h: New file.
9015         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
9016         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
9017         and define sigval_t using __sigval_t.
9018         * include/bits/types/__sigval_t.h: New file.
9019         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
9020         instead of <bits/types/__sigval_t.h>.
9021         (struct sigevent): Use __sigval_t instead of sigval_t.
9022         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
9023         instead of <bits/types/__sigval_t.h>.
9024         (siginfo_t): Use __sigval_t instead of sigval_t.
9025         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
9026         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9027         (struct sigevent): Use __sigval_t instead of sigval_t.
9028         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
9029         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
9030         (siginfo_t): Use __sigval_t instead of sigval_t.
9031         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
9033 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9035         * NEWS: Remove "[Add new features here]" for 2.27.
9037 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
9039         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
9040         libc.so.
9042 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9044         * NEWS: Mention x86-64 FMA optimization.
9046 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
9048         [BZ #21912]
9049         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9050         Add e_expf-fma.
9051         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
9052         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
9053         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
9055 2017-08-16  Andreas Schwab  <schwab@suse.de>
9057         [BZ #16750]
9058         CVE-2009-5064
9059         * elf/ldd.bash.in: Never run file directly.
9061 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
9063         [BZ #21955]
9064         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
9065         (L(SP_INF_0)): Likewise.
9067 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9069         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
9070         run-built-tests.
9072 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9074         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
9075         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
9076         BROKEN_THREAD_SIGNALS code.
9077         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
9078         request_list): Remove caller_pid member used for
9079         BROKEN_THREAD_SIGNALS.
9080         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
9081         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9082         Remove BROKEN_THREAD_SIGNALS support.
9083         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
9084         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
9086 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9088         * gmon/Makefile (tests): Add tst-gmon.
9089         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
9090         Set.
9091         (tests-special): Add tst-gmon-prof.out.
9092         (tst-gmon.out): Depend on clean-tst-gmon-data.
9093         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
9094         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
9095         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
9096         startup object.
9097         * aclocal.m4 (GPROF): Set and substitute.
9098         * config.amke.in (GPROF): Set.
9099         * configure: Regenerate.
9101 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
9103         * elf/elf.h A (NT_PPC_TAR): New macro.
9104         (NT_PPC_PPR): Likewise.
9105         (NT_PPC_DSCR): Likewise.
9106         (NT_PPC_EBB): Likewise.
9107         (NT_PPC_PMU): Likewise.
9108         (NT_PPC_TM_CGPR): Likewise.
9109         (NT_PPC_TM_CFPR): Likewise.
9110         (NT_PPC_TM_CVMX): Likewise.
9111         (NT_PPC_TM_CVSX): Likewise.
9112         (NT_PPC_TM_SPR): Likewise.
9113         (NT_PPC_TM_CTAR): Likewise.
9114         (NT_PPC_TM_CPPR): Likewise.
9115         (NT_PPC_TM_CDSCR): Likewise.
9117 2017-08-15  Florian Weimer  <fweimer@redhat.com>
9119         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
9120         regparm (2) instead of internal_function.
9121         (_MCOUNT_DECL): Adjust.
9123 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
9125         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
9126         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
9128 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
9130         * conform/data/sys/wait.h-data (si_value): Do not expect for
9131         XPG42.
9133 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9135         [BZ #21962]
9136         NSS: Create stubs for accidentally exported lookup functions.
9137         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
9138         Remove declaration.
9139         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
9140         (ether_hostton): Call __nss_ethers_lookup2 instead.
9141         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
9142         (ether_ntohost): Call __nss_ethers_lookup2 instead.
9143         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
9144         (setup): Call __nss_netgroup_lookup2 instead.
9145         * nss/Makefile (routines): Add compat-lookup.
9146         * nss/Versions (GLIBC_2.27): Add symbol version.
9147         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
9148         (DB_COMPAT_FCT): Remove.
9149         * nss/compat-lookup.c: New file.
9150         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
9151         from databases.def.
9152         * nss/service-lookup.c (NO_COMPAT): Remove definition.
9153         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
9154         (netname2user): Call __nss_publickey_lookup2 instead.
9155         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
9156         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
9157         instead.
9159 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9160             Sergei Trofimovich  <slyfox@inbox.ru>
9162         [BZ #21908]
9163         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
9164         Rename to MMAP2_PAGE_UNIT.
9165         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
9166         __OFF_T_MATCHES_OFF64_T is not defined.
9167         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
9168         uint64_t.
9169         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
9170         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
9172 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9174         i386: Do not set internal_function.
9175         * config.h.in (USE_REGPARMS, internal_function): Remove.
9176         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
9177         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
9179 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9181         * elf/dl-init.c (_dl_init): Remove internal_function.
9182         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
9183         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
9185 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9187         * elf/rtld.c (_dl_start): Remove internal_function.
9188         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
9189         _dl_start.
9191 2017-08-14  Florian Weimer  <fweimer@redhat.com>
9193         * elf/dl-fini.c (_dl_fini): Remove internal_function
9194         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
9196 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
9198         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
9199         (bit_cpu_SHSTK): Likewise.
9200         (index_cpu_IBT): Likewise.
9201         (index_cpu_SHSTK): Likewise.
9202         (reg_IBT): Likewise.
9203         (reg_SHSTK): Likewise.
9204         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9205         Handle index_cpu_IBT and index_cpu_SHSTK.
9207 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
9209         [BZ #19982]
9210         * po/fr.po: Fix spelling mistake.
9212 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9214         * elf/dl-addr.c (_dl_addr): Remove internal_function.
9215         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
9216         (_dl_catch_error, _dl_receive_error): Likewise.
9217         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
9218         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
9219         (_dl_deallocate_tls): Likewise.
9220         * include/dlfcn.h (_dl_addr): Likewise.
9221         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
9222         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
9223         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
9224         Likewise.
9226 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9228         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
9229         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
9230         internal_function.
9231         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
9233 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9235         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
9236         internal_function.
9237         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
9238         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
9239         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
9240         internal_function from _dl_make_stack_executable_hook member.
9241         (_dl_make_stack_executable): Remove internal_function.
9242         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
9243         Likewise.
9244         * sysdeps/unix/sysv/linux/dl-execstack.c
9245         (_dl_make_stack_executable): Likewise.
9247 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9249         * sysdeps/unix/sysv/linux/netlinkaccess.h
9250         (__netlink_assert_response): Remove internal_function.
9251         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9252         (__netlink_assert_response): Likewise.
9254 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9256         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
9257         internal_function.
9258         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
9260 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9262         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
9263         internal_function.
9264         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
9265         * inet/netgroup.h (__internal_setnetgrent)
9266         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9267         * inet/getnetgrent_r.c (__internal_setnetgrent)
9268         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
9269         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
9270         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
9271         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
9272         * nss/nsswitch.h (db_lookup_function): Likewise.
9274 2017-08-13  Florian Weimer  <fweimer@redhat.com>
9276         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
9277         Remove internal_function.
9278         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
9279         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
9280         message argument on the stack.
9281         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
9282         Likeweise.
9284 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
9286         Adapt test case data to the changes in the thousands
9287         separators.
9289         [BZ #20756]
9290         * localedata/tst-langinfo.sh: Adapt test case data.
9291         * stdlib/tst-strfmon_l.c: Likewise.
9292         * stdlib/tst-strtod4.c: Likewise.
9293         * stdlib/tst-strtod5i.c: Likewise.
9295 2017-08-11  Florian Weimer  <fweimer@redhat.com>
9297         [BZ #21242]
9298         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
9299         Suppress pedantic warning resulting from statement expression.
9300         (__ASSERT_FUNCTION): Add missing __extension__.
9302 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9304         * benchtests/bench-memmove-large.c: Print output in JSON
9305         format.
9306         * benchtests/bench-memmove.c: Likewise.
9308         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
9309         * benchtests/bench-memchr.c (do_one_test): Likewise.
9310         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
9311         * benchtests/bench-memcpy.c (do_one_test): Likewise.
9312         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
9313         * benchtests/bench-memmove.c (do_one_test): Likewise.
9314         * benchtests/bench-memset-large.c (do_one_test): Likewise.
9315         * benchtests/bench-memset.c (do_one_test): Likewise.
9316         * benchtests/bench-string.h (test_init): Remove memsets.
9318 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9320         * manual/lang.texi
9321         (Computing the Width of an Integer Data Type): Rename section to
9322         "Width of an Integer Type".  Remove inaccurate statement regarding
9323         lack of C language facilities for determining width of integer
9324         types, and reorder content to improve flow and context of
9325         discussion.
9327 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
9329         * lang.texi (va_copy): Change standard from ISO to C99.
9330         (__va_copy): Add standard and header annotation.
9331         Update description for clarity of origins and current use.
9333 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9335         [BZ #21941]
9336         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
9337         xssqrtqp requires operands to be in Vector Registers
9338         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
9339         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
9340         (__ieee754_sqrtf128): Likewise.
9342 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
9344         * sysdeps/aarch64/memcmp.S (memcmp):
9345         Rewrite of optimized memcmp.
9347 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9349         Introduce ld.so exceptions.
9350         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
9351         (_dl_exception_create, _dl_exception_create_format)
9352         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
9353         (_dl_catch_exception): Declare.
9354         (_dl_catch_error): Update comment.
9355         * elf/dl-error-skeleton.c (struct catch): Replace objname,
9356         errstring, malloced members with exception member.
9357         (_dl_out_of_memory): Remove.
9358         (fatal_error): New function, extracted from _dl_signal_error.
9359         (_dl_signal_exception, _dl_signal_cexception): New functions.
9360         (_dl_signal_error): Call _dl_exception_create to allocate an
9361         exception object.
9362         (_dl_catch_exception): New function, based on _dl_catch_error.
9363         (_dl_catch_error): Implement using _dl_catch_exception.
9364         * elf/dl-exception.c: New file.
9365         * elf/Makefile (dl-routines): Add dl-exception.
9366         (elide-routines.os): Likewise.
9367         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
9368         _dl_exception_create_format, _dl_exception_free.
9369         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
9370         _dl_signal_exception.
9371         * elf/dl-lookup.c (make_string): Remove.
9372         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
9373         _dl_signal_cexception, _dl_exception_free.
9374         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
9375         _dl_signal_exception.
9376         * elf/dl-sym.c (do_sym): Likewise.
9377         * elf/dl-version.c (make_string): Remove.
9378         (match_symbol): Use _dl_exception_create_format,
9379         _dl_signal_cexception, _dl_exception_free.
9380         (_dl_check_map_versions): Likewise.
9381         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
9382         _dl_catch_exception.
9383         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
9384         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
9385         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
9386         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
9387         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
9388         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
9389         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
9390         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
9391         Likewise.
9392         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
9393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
9394         (ld.so): Likewise.
9395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
9396         (ld.so): Likewise.
9397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
9398         Likewise.
9399         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
9400         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
9401         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
9402         Likewise.
9403         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
9404         Likewise.
9405         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
9407 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9409         * inet/net-internal.h (__inet6_scopeid_pton): Remove
9410         attribute_hidden, internal_function.
9411         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
9412         internal_function.
9414 2017-08-10  Florian Weimer  <fweimer@redhat.com>
9416         * malloc/malloc.c (get_max_fast): Reimplement as an inline
9417         function which calls __builtin_unreachable.
9419 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
9421         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
9422         Indian monetary formatting
9423         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
9424         test cases.
9426 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
9428         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
9429         Fix typo in comment.
9431         [BZ #21928]
9432         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
9433         PTRACE_SEIZE_DEVEL): Remove.
9434         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
9435         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9436         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9437         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9438         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9440 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
9442         * posix/bits/types.h (__qaddr_t): Remove.
9444         [BZ #21457]
9445         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
9446         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9447         __glibc_reserved1.
9448         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
9449         (ucontext_t): Use __ctx with uc_flags.
9450         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
9451         (__ctxt): Likewise.
9452         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9453         __glibc_reserved1.
9454         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
9455         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9456         __glibc_reserved1.
9457         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
9458         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9459         __glibc_reserved1.
9460         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
9461         macro.
9462         (ucontext_t): Use __ctx with uc_flags.
9463         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
9464         (ucontext_t): Use __ctx with uc_flags.
9465         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
9466         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
9467         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
9468         (ucontext_t): Use __ctx with uc_flags.
9469         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
9470         undefine further down.
9471         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
9472         __glibc_reserved1.
9473         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
9474         undefine further down.
9475         (ucontext_t): Use __ctx with uc_flags.
9476         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
9477         undefine further down.
9478         (ucontext_t): Use __ctx with uc_flags.
9479         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
9480         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
9481         Rename uc_pad to __glibc_reserved1.
9482         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
9483         undefine further down.
9484         (ucontext_t): Use __ctx with uc_flags.
9485         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
9486         further down.
9487         (ucontext_t): Use __ctx with uc_flags.
9488         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
9489         __ctx with uc_flags.
9490         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
9491         (ucontext_t): Use __ctx with uc_flags.
9492         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
9493         __ctx with uc_flags.
9495 2017-08-09  Florian Weimer  <fweimer@redhat.com>
9497         [BZ #21932]
9498         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
9499         before early return.
9501 2017-08-09  Andreas Schwab  <schwab@suse.de>
9503         [BZ #21041]
9504         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
9505         renamed alias.
9507         [BZ #21041]
9508         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
9509         tst-compat-forwarder.
9510         (modules-names): Add tst-compat-forwarder-mod.
9511         ($(objpfx)tst-compat-forwarder): Depend on
9512         $(objpfx)tst-compat-forwarder-mod.so.
9513         * nptl/tst-compat-forwarder.c: New file.
9514         * nptl/tst-compat-forwarder-mod.c: New file.
9516 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9518         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
9519         comments.
9521         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
9522         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9523         memcpy_falkor.
9524         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
9525         Bump.
9526         (__libc_ifunc_impl_list): Add __memcpy_falkor.
9527         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
9528         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
9529         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9530         Add falkor.
9531         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
9532         New macro.
9534 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9536         [BZ #759]
9537         * manual/setjmp.texi (getcontex): Document uc_stack value
9538         compatibility differences.
9540 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
9542         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
9543         (old_malloc_hook): Likewise.
9544         (old_memalign_hook): Likewise.
9545         (old_realloc_hook): Likewise.
9546         (struct hdr): Likewise.
9547         (flood): Likewise.
9548         (freehook): Likewise.
9549         (mallochook): Likewise.
9550         (memalignhook): Likewise.
9551         (reallochook): Likewise.
9552         (mprobe): Likewise.
9553         * malloc/mtrace.c (mallwatch): Likewise.
9554         (tr_old_free_hook): Likewise.
9555         (tr_old_malloc_hook): Likewise.
9556         (tr_old_realloc_hook): Likewise.
9557         (tr_old_memalign_hook): Likewise.
9558         (tr_where): Likewise.
9559         (lock_and_info): Likewise.
9560         (tr_freehook): Likewise.
9561         (tr_mallochook): Likewise.
9562         (tr_reallochook): Likewise.
9563         (tr_memalignhook): Likewise.
9564         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
9565         * misc/mmap.c (__mmap): Likewise.
9566         * misc/mmap64.c (__mmap64): Likewise.
9567         * misc/mprotect.c (__mprotect): Likewise.
9568         * misc/msync.c (msync): Likewise.
9569         * misc/munmap.c (__munmap): Likewise.
9570         * posix/posix_madvise.c (posix_madvise): Likewise.
9571         * socket/send.c (__send): Likewise.
9572         * socket/sendto.c (__sendto): Likewise.
9573         * socket/setsockopt.c (__setsockopt): Likewise.
9574         * string/memcmp.c (__ptr_t): Remove macro.
9575         (MEMCMP): Use void * instead of ptr_t.
9576         * string/memrchr.c (__ptr_t): Remove macro.
9577         (__memrchr): Use void * instead of ptr_t.
9578         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
9579         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9580         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9581         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
9582         * sysdeps/mach/msync.c (msync): Likewise.
9583         * sysdeps/mach/munmap.c (__munmap): Likewise.
9584         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
9585         Likewise.
9586         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
9587         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
9588         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
9589         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
9590         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
9591         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9592         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
9593         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
9594         Likewise.
9595         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9596         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
9597         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
9598         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
9599         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
9600         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
9601         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
9602         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
9603         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
9604         Likewise.
9605         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
9606         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
9607         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
9608         (MEMCMP): Use void * instead of ptr_t.
9609         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
9610         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
9612 2017-08-08  Florian Weimer  <fweimer@redhat.com>
9614         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
9615         return statement.
9617 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
9619         [BZ #21913]
9620         * csu/libc-tls.c: Include <startup.h> first.
9621         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
9622         * elf/dl-tunables.c: Include <startup.h> first.
9623         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
9624         * sysdeps/generic/startup.h: New file.
9625         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
9626         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
9627         (I386_USE_SYSENTER): New.  Defined to 0.
9629 2017-08-08  Andreas Schwab  <schwab@suse.de>
9631         [BZ #21041]
9632         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
9633         * nptl/pt-system.c (system): Likewise.
9635 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9637         [BZ #21780]
9638         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
9639         EOPNOTSUPP.
9640         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9641         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9642         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
9643         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9644         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9645         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9646         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9648 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
9650         [BZ #21899]
9651         * bits/sigaction.h (struct sigaction): Define sa_handler and
9652         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
9653         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9654         [__USE_XOPEN_EXTENDED].
9655         (SA_RESTART): Likewise.
9656         (SA_NODEFER): Likewise.
9657         (SA_RESETHAND): Likewise.
9658         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
9659         (struct sigaction): Define sa_handler and sa_sigaction using union
9660         also for [__USE_XOPEN_EXTENDED].
9661         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9662         [__USE_XOPEN_EXTENDED].
9663         (SA_RESTART): Likewise.
9664         (SA_NODEFER): Likewise.
9665         (SA_RESETHAND): Likewise.
9666         * sysdeps/unix/sysv/linux/bits/sigaction.h
9667         (struct sigaction): Define sa_handler and sa_sigaction using union
9668         also for [__USE_XOPEN_EXTENDED].
9669         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9670         [__USE_XOPEN_EXTENDED].
9671         (SA_RESTART): Likewise.
9672         (SA_NODEFER): Likewise.
9673         (SA_RESETHAND): Likewise.
9674         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
9675         (struct sigaction): Define sa_handler and sa_sigaction using union
9676         also for [__USE_XOPEN_EXTENDED].
9677         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9678         [__USE_XOPEN_EXTENDED].
9679         (SA_RESTART): Likewise.
9680         (SA_NODEFER): Likewise.
9681         (SA_RESETHAND): Likewise.
9682         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
9683         (struct sigaction): Define sa_handler and sa_sigaction using union
9684         also for [__USE_XOPEN_EXTENDED].
9685         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9686         [__USE_XOPEN_EXTENDED].
9687         (SA_RESTART): Likewise.
9688         (SA_NODEFER): Likewise.
9689         (SA_RESETHAND): Likewise.
9690         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
9691         (struct sigaction): Define sa_handler and sa_sigaction using union
9692         also for [__USE_XOPEN_EXTENDED].
9693         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9694         [__USE_XOPEN_EXTENDED].
9695         (SA_RESTART): Likewise.
9696         (SA_NODEFER): Likewise.
9697         (SA_RESETHAND): Likewise.
9698         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
9699         (struct sigaction): Define sa_handler and sa_sigaction using union
9700         also for [__USE_XOPEN_EXTENDED].
9701         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9702         [__USE_XOPEN_EXTENDED].
9703         (SA_RESTART): Likewise.
9704         (SA_NODEFER): Likewise.
9705         (SA_RESETHAND): Likewise.
9706         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
9707         (struct sigaction): Define sa_handler and sa_sigaction using union
9708         also for [__USE_XOPEN_EXTENDED].
9709         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9710         [__USE_XOPEN_EXTENDED].
9711         (SA_RESTART): Likewise.
9712         (SA_NODEFER): Likewise.  Define directly rather than as alias.
9713         (SA_RESETHAND): Likewise.
9714         (SA_INTERRUPT): Define only for [__USE_MISC].
9715         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
9716         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
9717         [__USE_MISC].
9718         (SA_STACK): Define only for [__USE_MISC].
9719         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
9720         (struct sigaction): Define sa_handler and sa_sigaction using union
9721         also for [__USE_XOPEN_EXTENDED].
9722         (SA_ONSTACK): Change [__USE_UNIX98] condition to
9723         [__USE_XOPEN_EXTENDED].
9724         (SA_RESTART): Likewise.
9725         (SA_NODEFER): Likewise.
9726         (SA_RESETHAND): Likewise.
9727         (SA_NOPTRACE): Define only for [__USE_MISC].
9729         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
9730         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
9731         (struct catalog_info): Likewise.
9732         * inet/htontest.c (lo): Likewise.
9733         (foo): Likewise.
9734         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9735         * inet/inet_net.c (inet_network): Likewise.
9736         * inet/inet_netof.c (inet_netof): Likewise.
9737         * inet/rcmd.c (__ivaliduser): Likewise.
9738         (iruserok): Likewise.
9739         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
9740         * locale/programs/locale-spec.c (locale_special): Likewise.
9741         * nis/nis_findserv.c (struct findserv_req): Likewise.
9742         (__nis_findfastest_with_timeout): Likewise.
9743         * nss/test-netdb.c (test_network): Likewise.
9744         * resolv/inet_neta.c (inet_neta): Likewise.
9745         * resolv/ns_date.c (ns_datetosecs): Likewise.
9746         (SECS_PER_DAY): Likewise.
9747         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
9748         Likewise.
9749         * resolv/res_comp.c (__putlong): Likewise.
9750         (__putshort): Likewise.
9751         (_getlong): Likewise.
9752         (_getshort): Likewise.
9753         * resolv/res_debug.c (p_time): Likewise.
9754         (precsize_ntoa): Likewise.
9755         (precsize_aton): Likewise.
9756         (latlon2ul): Likewise.
9757         (loc_aton): Likewise.
9758         (loc_ntoa): Likewise.
9759         * resolv/res_hconf.c (struct netaddr): Likewise.
9760         (_res_hconf_reorder_addrs): Likewise.
9761         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
9762         (clnttcp_control): Likewise.
9763         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9764         (clntudp_control): Likewise.
9765         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
9766         (clntunix_control): Likewise.
9767         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
9768         * sunrpc/rpc/auth.h (union des_block): Likewise.
9769         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
9770         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
9771         (xdrrec_create): Likewise.
9772         (xdrrec_endofrecord): Likewise.
9773         (flush_out): Likewise.
9774         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
9775         (xdrstdio_putlong): Likewise.
9776         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
9777         Likewise.
9779         * misc/sys/cdefs.h (__long_double_t): Remove.
9780         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
9781         instead of __long_double_t,
9782         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
9784 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9786         * benchtests/scripts/compare_strings.py: Avoid display error when
9787         running on a text terminal.
9789         * benchtests/scripts/compare_strings.py (main): Add an
9790         optional -base option.
9791         (process_results): New argument base_func.
9793         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
9794         hardcoding memcpy.
9795         * benchtests/bench-memcpy-large.c (test_name): Likewise.
9796         * benchtests/bench-memcpy-random.c (test_name): Likewise.
9798 2017-08-07  Andreas Schwab  <schwab@suse.de>
9800         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
9801         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
9802         * intl/Makefile ($(objpfx)tst-gettext.out)
9803         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
9804         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
9805         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
9806         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
9807         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
9808         * posix/Makefile ($(objpfx)globtest.out)
9809         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
9810         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
9811         ($(objpfx)tst-printf.out): Likewise.
9812         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
9813         ($(objpfx)tst-setcontext3.out): Likewise.
9815 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
9817         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9818         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
9819         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
9820         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
9821         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
9822         and mptan-fma.
9823         (CFLAGS-doasin-fma.c): New.
9824         (CFLAGS-dosincos-fma.c): Likewise.
9825         (CFLAGS-e_asin-fma.c): Likewise.
9826         (CFLAGS-e_atan2-fma.c): Likewise.
9827         (CFLAGS-e_exp-fma.c): Likewise.
9828         (CFLAGS-e_log-fma.c): Likewise.
9829         (CFLAGS-e_pow-fma.c): Likewise.
9830         (CFLAGS-halfulp-fma.c): Likewise.
9831         (CFLAGS-mpa-fma.c): Likewise.
9832         (CFLAGS-mpatan-fma.c): Likewise.
9833         (CFLAGS-mpatan2-fma.c): Likewise.
9834         (CFLAGS-mpexp-fma.c): Likewise.
9835         (CFLAGS-mplog-fma.c): Likewise.
9836         (CFLAGS-mpsqrt-fma.c): Likewise.
9837         (CFLAGS-mptan-fma.c): Likewise.
9838         (CFLAGS-s_atan-fma.c): Likewise.
9839         (CFLAGS-sincos32-fma.c): Likewise.
9840         (CFLAGS-slowexp-fma.c): Likewise.
9841         (CFLAGS-slowpow-fma.c): Likewise.
9842         (CFLAGS-s_sin-fma.c): Likewise.
9843         (CFLAGS-s_tan-fma.c): Likewise.
9844         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
9845         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
9846         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
9847         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
9848         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
9849         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
9850         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
9851         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
9852         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
9853         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
9854         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
9855         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
9856         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
9857         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
9858         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
9859         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
9860         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
9861         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
9862         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
9863         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
9864         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
9865         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
9866         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
9867         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
9868         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9869         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9870         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9871         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
9872         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9873         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9874         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9876 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
9878         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
9879         (min_of_type_f): New macro.
9880         (min_of_type_): Likewise.
9881         (min_of_type_l): Likewise.
9882         (min_of_type_f128): Likewise.
9883         (min_of_type): Define using __MATH_TG and taking an expression
9884         argument.
9885         (math_check_force_underflow): Pass expression instead of type to
9886         min_of_type.
9887         (math_check_force_underflow_nonneg): Likewise.
9889 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9891         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
9892         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
9893         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
9895 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9897         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
9898         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
9899         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
9900         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
9901         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
9902         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
9903         memcpy_chk-nonshared, mempcpy_chk-nonshared,
9904         memmove_chk-nonshared and memset_chk-nonshared
9905         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
9906         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
9907         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
9908         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
9909         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
9910         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
9911         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
9912         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
9913         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
9914         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
9915         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
9916         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
9917         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
9918         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
9919         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
9920         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
9921         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
9922         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
9923         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
9924         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
9925         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
9926         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
9927         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
9928         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
9929         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
9930         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
9931         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
9932         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
9933         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
9934         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
9935         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
9936         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
9937         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
9938         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9939         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
9940         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
9941         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
9942         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
9943         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
9944         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
9945         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
9946         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
9947         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
9948         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
9949         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
9950         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
9951         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
9952         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
9953         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
9954         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
9955         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
9956         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
9957         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
9958         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
9959         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
9960         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
9961         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
9962         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
9963         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
9964         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
9965         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
9966         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
9967         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
9968         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
9969         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
9970         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
9971         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
9972         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
9973         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
9974         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
9975         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
9976         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
9977         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
9978         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
9979         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
9980         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
9981         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
9982         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9983         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9984         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9985         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9986         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9987         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9988         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9989         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9990         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9991         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9992         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9993         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9994         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9995         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9996         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9997         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9998         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9999         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
10000         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
10001         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
10002         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
10003         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
10004         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
10005         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
10006         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
10007         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
10008         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
10009         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
10010         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
10011         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
10012         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
10014 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10016         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
10017         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
10018         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
10019         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
10020         svml_d_log2_core-sse2, svml_d_log4_core-sse,
10021         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
10022         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
10023         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
10024         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
10025         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
10026         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
10027         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
10028         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
10029         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
10030         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
10031         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
10032         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
10033         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
10034         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
10035         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
10036         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
10037         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
10038         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
10039         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
10040         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
10041         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
10042         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
10043         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
10044         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
10045         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
10046         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
10047         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
10048         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
10049         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
10050         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
10051         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
10052         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
10053         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
10054         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
10055         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
10056         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
10057         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
10058         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
10059         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
10060         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
10061         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
10062         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
10063         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
10064         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
10065         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
10066         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
10067         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
10068         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
10069         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
10070         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
10071         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
10072         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
10073         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
10074         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
10075         ...
10076         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
10077         Don't include <sysdep.h> nor <init-arch.h>.
10078         (_ZGVbN2v_cos): Removed.
10079         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
10080         ...
10081         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
10082         Don't include <sysdep.h> nor <init-arch.h>.
10083         (_ZGVdN4v_cos): Removed.
10084         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
10085         ...
10086         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
10087         Don't include <sysdep.h> nor <init-arch.h>.
10088         (_ZGVeN8v_cos): Removed.
10089         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
10090         ...
10091         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
10092         Don't include <sysdep.h> nor <init-arch.h>.
10093         (_ZGVbN2v_exp): Removed.
10094         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
10095         ...
10096         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
10097         Don't include <sysdep.h> nor <init-arch.h>.
10098         (_ZGVdN4v_exp): Removed.
10099         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
10100         ...
10101         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
10102         Don't include <sysdep.h> nor <init-arch.h>.
10103         (_ZGVeN8v_exp): Removed.
10104         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
10105         ...
10106         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
10107         Don't include <sysdep.h> nor <init-arch.h>.
10108         (_ZGVbN2v_log): Removed.
10109         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
10110         ...
10111         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
10112         Don't include <sysdep.h> nor <init-arch.h>.
10113         (_ZGVdN4v_log): Removed.
10114         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
10115         ...
10116         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
10117         Don't include <sysdep.h> nor <init-arch.h>.
10118         (_ZGVeN8v_log): Removed.
10119         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
10120         ...
10121         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
10122         Don't include <sysdep.h> nor <init-arch.h>.
10123         (_ZGVbN2vv_pow): Removed.
10124         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
10125         ...
10126         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
10127         Don't include <sysdep.h> nor <init-arch.h>.
10128         (_ZGVdN4vv_pow): Removed.
10129         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
10130         ...
10131         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
10132         Don't include <sysdep.h> nor <init-arch.h>.
10133         (_ZGVeN8vv_pow): Removed.
10134         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
10135         ...
10136         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
10137         Don't include <sysdep.h> nor <init-arch.h>.
10138         (_ZGVbN2v_sin): Removed.
10139         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
10140         ...
10141         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
10142         Don't include <sysdep.h> nor <init-arch.h>.
10143         (_ZGVbN4v_sin): Removed.
10144         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
10145         ...
10146         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
10147         Don't include <sysdep.h> nor <init-arch.h>.
10148         (_ZGVbN8v_sin): Removed.
10149         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
10150         ...
10151         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
10152         Don't include <sysdep.h> nor <init-arch.h>.
10153         (_ZGVbN2vvv_sincos): Removed.
10154         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
10155         ...
10156         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
10157         Don't include <sysdep.h> nor <init-arch.h>.
10158         (_ZGVdN4vvv_sincos): Removed.
10159         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
10160         ...
10161         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
10162         Don't include <sysdep.h> nor <init-arch.h>.
10163         (_ZGVeN8vvv_sincos): Removed.
10164         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
10165         ...
10166         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
10167         Don't include <sysdep.h> nor <init-arch.h>.
10168         (_ZGVeN16v_cosf): Removed.
10169         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
10170         ...
10171         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
10172         Don't include <sysdep.h> nor <init-arch.h>.
10173         (_ZGVbN4v_cosf): Removed.
10174         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
10175         ...
10176         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
10177         Don't include <sysdep.h> nor <init-arch.h>.
10178         (_ZGVdN8v_cosf): Removed.
10179         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
10180         ...
10181         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
10182         Don't include <sysdep.h> nor <init-arch.h>.
10183         (_ZGVeN16v_expf): Removed.
10184         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
10185         ...
10186         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
10187         Don't include <sysdep.h> nor <init-arch.h>.
10188         (_ZGVbN4v_expf): Removed.
10189         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
10190         ...
10191         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
10192         Don't include <sysdep.h> nor <init-arch.h>.
10193         (_ZGVdN8v_expf): Removed.
10194         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
10195         ...
10196         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
10197         Don't include <sysdep.h> nor <init-arch.h>.
10198         (_ZGVeN16v_logf): Removed.
10199         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
10200         ...
10201         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
10202         Don't include <sysdep.h> nor <init-arch.h>.
10203         (_ZGVbN4v_logf): Removed.
10204         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
10205         ...
10206         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
10207         Don't include <sysdep.h> nor <init-arch.h>.
10208         (_ZGVdN8v_logf): Removed.
10209         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
10210         ...
10211         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
10212         Don't include <sysdep.h> nor <init-arch.h>.
10213         (_ZGVeN16vv_powf): Removed.
10214         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
10215         ...
10216         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
10217         Don't include <sysdep.h> nor <init-arch.h>.
10218         (_ZGVbN4vv_powf): Removed.
10219         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
10220         ...
10221         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
10222         Don't include <sysdep.h> nor <init-arch.h>.
10223         (_ZGVdN8vv_powf): Removed.
10224         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
10225         ...
10226         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
10227         Don't include <sysdep.h> nor <init-arch.h>.
10228         (_ZGVeN16vvv_sincosf): Removed.
10229         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
10230         ...
10231         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
10232         Don't include <sysdep.h> nor <init-arch.h>.
10233         (_ZGVbN4vvv_sincosf): Removed.
10234         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
10235         ...
10236         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
10237         Don't include <sysdep.h> nor <init-arch.h>.
10238         (_ZGVdN8vvv_sincosf): Removed.
10239         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
10240         ...
10241         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
10242         Don't include <sysdep.h> nor <init-arch.h>.
10243         (_ZGVeN16v_sinf): Removed.
10244         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
10245         ...
10246         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
10247         Don't include <sysdep.h> nor <init-arch.h>.
10248         (_ZGVbN4v_sinf): Removed.
10249         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
10250         ...
10251         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
10252         Don't include <sysdep.h> nor <init-arch.h>.
10253         (_ZGVdN8v_sinf): Removed.
10255 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10257         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10258         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
10259         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
10260         s_rint-sse4_1 and s_rintf-sse4_1.
10261         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
10262         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
10263         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
10264         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10265         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10266         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
10267         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
10268         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10269         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10270         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
10271         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
10272         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10273         (__ceil): Removed.
10274         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
10275         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
10276         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10277         (__ceilf): Removed.
10278         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
10279         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
10280         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10281         (__floor): Removed.
10282         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
10283         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
10284         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10285         (__floorf): Removed.
10286         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
10287         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
10288         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10289         (__nearbyint): Removed.
10290         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
10291         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
10292         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10293         (__nearbyintf): Removed.
10294         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
10295         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
10296         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10297         (__rint): Removed.
10298         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
10299         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
10300         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
10301         (__rintf): Removed.
10303 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10305         * sysdeps/i386/start.S (_start): Check Check PIC instead of
10306         SHARED.  Avoid dynamic relocation against main in static PIE.
10308 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10310         [BZ #21815]
10311         * elf/Makefile (CFLAGS-tst-prelink.c): New.
10312         (LDFLAGS-tst-prelink): Likewise.
10314 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10316         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10317         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
10318         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
10319         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10320         (INTERNAL_SYSCALL_NCS): Likewise.
10321         (LOADARGS_1): Likewise.
10322         (LOADARGS_5): Likewise.
10323         (RESTOREARGS_1): Likewise.
10324         (RESTOREARGS_5): Likewise.
10326 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10328         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
10329         (MEMPCPY_SYMBOL): Likewise.
10330         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10331         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
10332         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
10333         in libc.a.
10334         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10335         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
10336         Likewise.
10337         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
10338         (__hidden_ver1): Don't use in libc.a.
10339         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
10340         (__mempcpy): Don't create a weak alias in libc.a.
10341         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
10342         libc.a.
10343         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
10344         (__hidden_ver1): Don't use in libc.a.
10346 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10348         * config.make.in (have-insert): New.
10349         * configure.ac (libc_cv_insert): New.  Set to yes if linker
10350         supports INSERT in linker script.
10351         (AC_SUBST(libc_cv_insert): New.
10352         * configure: Regenerated.
10353         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
10354         if $(have-insert) == yes.
10356 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10358         * elf/Makefile (tests): Add vismain only if
10359         $(have-protected-data) == yes.
10360         (tests-pie): Likewise.
10362 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10364         [BZ #21871]
10365         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10366         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
10368 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
10370         [BZ #21790]
10371         * sysdeps/i386/i586/memset.S
10372         (__memset_zero_constant_len_parameter): Removed.
10373         * sysdeps/i386/i686/memset.S
10374         (__memset_zero_constant_len_parameter): Likewise.
10375         * sysdeps/i386/i686/multiarch/memset_chk.S
10376         (__memset_zero_constant_len_parameter): Likewise.
10377         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
10378         Likewise.
10380 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10382         * stdlib/getentropy.c (getentropy): Change return type to int.
10384 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
10386         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
10388 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
10390         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
10391         u_intN_t.
10392         * math/s_nexttowardf.c (__nexttowardf): Likewise.
10393         * sysdeps/generic/math_private.h (ieee_double_shape_type):
10394         Likewise.
10395         (ieee_float_shape_type): Likewise.
10396         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
10397         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
10398         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
10399         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10400         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10401         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
10402         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
10403         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
10404         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10405         Likewise.
10406         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10407         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10408         (__ieee754_yn): Likewise.
10409         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
10410         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
10411         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
10412         Likewise.
10413         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10414         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
10415         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
10416         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
10417         (__erfc): Likewise.
10418         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10419         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
10420         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
10421         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
10422         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
10423         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
10424         Likewise.
10425         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10426         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
10427         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10428         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
10429         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
10430         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
10431         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
10432         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
10433         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
10434         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10435         (__issignaling): Likewise.
10436         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
10437         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
10438         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10439         Likewise.
10440         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
10441         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
10442         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10443         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
10444         Likewise.
10445         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
10446         Likewise.
10447         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
10448         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
10449         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
10450         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10451         (__erfcf): Likewise.
10452         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10453         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
10454         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
10455         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
10456         Likewise.
10457         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
10458         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
10459         Likewise.
10460         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10461         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
10462         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10463         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
10464         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
10465         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
10466         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
10467         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
10468         Likewise.
10469         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
10470         Likewise.
10471         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10472         Likewise.
10473         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
10474         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10475         Likewise.
10476         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10477         Likewise.
10478         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10479         (__ieee754_ynl): Likewise.
10480         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10481         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
10482         Likewise.
10483         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
10484         Likewise.
10485         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10486         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
10487         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10488         Likewise.
10489         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10490         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
10491         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
10492         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
10493         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
10494         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
10495         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
10496         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
10497         Likewise.
10498         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
10499         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
10500         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
10501         Likewise.
10502         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10503         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
10504         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10505         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10506         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
10507         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
10508         Likewise.
10509         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
10510         Likewise.
10511         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10512         Likewise.
10513         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10514         Likewise.
10515         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
10516         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
10517         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10518         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
10519         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10520         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
10521         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
10522         Likewise.
10523         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10524         Likewise.
10525         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10526         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10527         Likewise.
10528         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10529         (__ieee754_remainderl): Likewise.
10530         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10531         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10532         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
10533         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
10534         Likewise.
10535         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
10536         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10537         Likewise.
10538         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
10539         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
10540         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10541         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10542         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
10543         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10544         Likewise.
10545         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10546         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10547         (__ieee754_y0l): Likewise.
10548         (pzero): Likewise.
10549         (qzero): Likewise.
10550         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10551         (__ieee754_y1l): Likewise.
10552         (pone): Likewise.
10553         (qone): Likewise.
10554         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10555         (__ieee754_ynl): Likewise.
10556         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10557         (__ieee754_lgammal_r): Likewise.
10558         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
10559         Likewise.
10560         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10561         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
10562         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10563         (__erfcl): Likewise.
10564         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
10565         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
10566         Likewise.
10567         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10568         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
10569         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10570         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
10571         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
10572         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10573         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10574         Likewise.
10575         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
10576         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
10577         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
10578         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
10579         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10580         Likewise.
10581         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
10582         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
10583         Likewise.
10584         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
10585         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
10586         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
10587         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
10588         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
10590 2017-08-03  Florian Weimer  <fweimer@redhat.com>
10592         [BZ #21885]
10593         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
10594         on memory allocation failure.
10596 2017-08-03  Alan Modra  <amodra@gmail.com>
10598         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
10599         tst-tlsopt-powerpc.c with function name change and no test harness.
10600         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
10601         Call tls_get_addr_opt_test.
10602         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
10603         (modules-names): Add mod-tlsopt-powerpc.
10604         (mod-tlsopt-powerpc.so-no-z-defs): Define.
10605         (tst-tlsopt-powerpc): Depend on .so.
10606         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
10607         define.  Expand use in TLS_GD and TLS_LD.
10609 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10611         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
10612         function.
10613         * sysdeps/posix/shm_open.c: Include <pthread.h>.
10615 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10617         [BZ #21686]
10618         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
10619         comparing size with that of double.
10620         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10621         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10622         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10623         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10624         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10625         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
10626         unsigned __int128 types.
10628 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
10630         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
10631         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
10632         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
10633         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
10634         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
10636 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10638         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
10640 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10642         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
10643         of SHARED.
10644         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
10645         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
10646         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
10647         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
10648         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
10649         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
10650         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
10652 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
10654         [BZ #21685]
10655         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
10656         bit-field expressions passed to sizeof or typeof.
10657         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10658         (__TGMATH_F128): Likewise.
10659         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10660         (__TGMATH_CF128): Likewise.
10661         (__TGMATH_UNARY_REAL_ONLY): Likewise.
10662         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
10663         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
10664         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
10665         (__TGMATH_BINARY_REAL_ONLY): Likewise.
10666         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
10667         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
10668         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
10669         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
10670         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
10671         (__TGMATH_UNARY_REAL_IMAG): Likewise.
10672         (__TGMATH_UNARY_IMAG): Likewise.
10673         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10674         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10675         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
10676         type.
10677         (define_vars_for_type): Handle bit_field type specially.
10678         (Tests.__init__): Declare structure with bit-field element.
10680 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10682         [BZ #21791]
10683         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
10684         (MEMCPY_CHK): Define only if SHARED is defined.
10685         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
10686         Likewise.
10687         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
10688         Likewise.
10690 See ChangeLog.18 for earlier changes.