sparc: M7 optimized memset/bzero
[glibc.git] / ChangeLog
blob3e7372a0e6910baf30657c3c2ebe59231b66adac
1 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
2             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5         (sysdeps_routines): Add memset-niagara7.
6         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
7         Likewise.
8         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
9         file.
10         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
11         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
12         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
13         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
14         Add niagara7 option.
15         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
16         memset.
18         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21         Likewise.
22         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
23         New file.
24         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
25         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
26         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
27         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
28         and __memmove_niagara7.
29         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
30         Add niagara7 option.
31         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
32         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
33         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
34         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
35         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
37 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
39         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
40         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
41         * sysdeps/sparc/sparc64/memmove.S: Likewise.
42         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
44         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
45         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
46         _dl_sparc_cap_flags array.
47         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
49 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
51         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
52         time whenever possible.
54 2017-12-12  Carlos O'Donell <carlos@redhat.com>
56         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
57         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
59 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
61         * soft-fp/fmadf4.c: Move to ....
62         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
63         * soft-fp/fmasf4.c: Move to ....
64         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
65         * soft-fp/fmatf4.c: Move to ....
66         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
67         * sysdeps/ieee754/soft-fp/Makefile: New file.
68         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
69         * sysdeps/arm/preconfigure: Regenerated.
70         * sysdeps/arm/nofpu/Implies: New file.
71         * sysdeps/arm/s_fma.c: Remove file.
72         * sysdeps/arm/s_fmaf.c: Likewise.
73         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
74         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
75         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
76         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
77         * sysdeps/microblaze/s_fma.c: Remove file.
78         * sysdeps/microblaze/s_fmaf.c: Likewise.
79         * sysdeps/mips/mips32/nofpu/Implies: New file.
80         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
81         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
82         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
83         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
84         * sysdeps/mips/ieee754/s_fma.c: Remove file.
85         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
86         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
87         implementation.
88         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
89         * sysdeps/nios2/s_fma.c: Remove file.
90         * sysdeps/nios2/s_fmaf.c: Likewise.
91         * sysdeps/sh/nofpu/Implies: New file.
92         * sysdeps/sh/s_fma.c: Remove file.
93         * sysdeps/sh/s_fmaf.c: Likewise.
94         * sysdeps/tile/Implies: Add ieee754/soft-fp.
95         * sysdeps/tile/s_fma.c: Remove file.
96         * sysdeps/tile/s_fmaf.c: Likewise.
98 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
100         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
101         Add s_cosf-sse2 and s_cosf-fma.
102         (CFLAGS-s_cosf-fma.c): New.
103         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
104         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
105         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
107 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
109         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
111 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
113         * libio/Makefile (tests): Add tst-bz22415.
114         (tst-bz22415-ENV): New rule.
115         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
116         (tests-special): Add tst-bz22415-mem.out.
117         ($(objpfx)tst-bz22415-mem.out): New rule.
118         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
119         in case of a successful seek operation.
120         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
121         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
122         buffer is required.
123         * libio/tst-bz22415.c: New test.
125         * sysdeps/ia64/fpu/libm-test-ulps: Update.
127 2017-12-12  James Clarke <jrtc27@jrtc27.com>
129         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
130         __IPC_64 to 0 to avoid IPC_64 being set.
132 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
134         [BZ #22593]
135         * math/bits/mathcalls.h (nextafter): Remove const.
136         (nexttoward): Likewise.
138 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
140         * configure.ac (--with-fp): Remove configure option.
141         (with_fp_cond): New variable.
142         (libc_cv_with_fp): New configure test.  Use this variable instead
143         of with_fp.
144         * configure: Regenerated.
145         * config.make.in (with-fp): Use @libc_cv_with_fp@.
146         * manual/install.texi (Configuring and compiling): Remove
147         --without-fp.
148         * INSTALL: Regenerated.
149         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
150         * sysdeps/mips/preconfigure (with_fp_cond): Define.
151         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
152         * sysdeps/sh/preconfigure (with_fp_cond): Define.
153         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
154         use --without-fp to configure glibc.
156 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
158         * manual/locale.texi (nl_langinfo): Fix a typo.
160 2017-12-12  Aurelien Jarno <aurelien@aurel32.net>
162         [BZ #22588]
163         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
165 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
167         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
168         (CFLAGS-argp-parse.c): Likewise.
169         (CFLAGS-argp-fmtstream.c): Likewise.
170         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
171         (CPPFLAGS-sha512-crypt.c): Likewise.
172         (CPPFLAGS-md5-crypt.c): Likewise.
173         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
174         (CFLAGS-stack_chk_fail_local.c): Likewise.
175         (CFLAGS-backtrace.c): Likewise.
176         (CFLAGS-sprintf_chk.c): Likewise.
177         (CFLAGS-snprintf_chk.c): Likewise.
178         (CFLAGS-vsprintf_chk.c): Likewise.
179         (CFLAGS-vsnprintf_chk.c): Likewise.
180         (CFLAGS-asprintf_chk.c): Likewise.
181         (CFLAGS-vasprintf_chk.c): Likewise.
182         (CFLAGS-obprintf_chk.c): Likewise.
183         (CFLAGS-dprintf_chk.c): Likewise.
184         (CFLAGS-vdprintf_chk.c): Likewise.
185         (CFLAGS-printf_chk.c): Likewise.
186         (CFLAGS-fprintf_chk.c): Likewise.
187         (CFLAGS-vprintf_chk.c): Likewise.
188         (CFLAGS-vfprintf_chk.c): Likewise.
189         (CFLAGS-gets_chk.c): Likewise.
190         (CFLAGS-fgets_chk.c): Likewise.
191         (CFLAGS-fgets_u_chk.c): Likewise.
192         (CFLAGS-fread_chk.c): Likewise.
193         (CFLAGS-fread_u_chk.c): Likewise.
194         (CFLAGS-swprintf_chk.c): Likewise.
195         (CFLAGS-vswprintf_chk.c): Likewise.
196         (CFLAGS-wprintf_chk.c): Likewise.
197         (CFLAGS-fwprintf_chk.c): Likewise.
198         (CFLAGS-vwprintf_chk.c): Likewise.
199         (CFLAGS-vfwprintf_chk.c): Likewise.
200         (CFLAGS-fgetws_chk.c): Likewise.
201         (CFLAGS-fgetws_u_chk.c): Likewise.
202         (CFLAGS-read_chk.c): Likewise.
203         (CFLAGS-pread_chk.c): Likewise.
204         (CFLAGS-pread64_chk.c): Likewise.
205         (CFLAGS-recv_chk.c): Likewise.
206         (CFLAGS-recvfrom_chk.c): Likewise.
207         (CFLAGS-tst-longjmp_chk.c): Likewise.
208         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
209         (CFLAGS-tst-longjmp_chk2.c): Likewise.
210         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
211         (CFLAGS-tst-longjmp_chk3.c): Likewise.
212         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
213         (CFLAGS-tst-chk1.c): Likewise.
214         (CFLAGS-tst-chk2.c): Likewise.
215         (CFLAGS-tst-chk3.c): Likewise.
216         (CFLAGS-tst-chk4.cc): Likewise.
217         (CFLAGS-tst-chk5.cc): Likewise.
218         (CFLAGS-tst-chk6.cc): Likewise.
219         (CFLAGS-tst-lfschk1.c): Likewise.
220         (CFLAGS-tst-lfschk2.c): Likewise.
221         (CFLAGS-tst-lfschk3.c): Likewise.
222         (CFLAGS-tst-lfschk4.cc): Likewise.
223         (CFLAGS-tst-lfschk5.cc): Likewise.
224         (CFLAGS-tst-lfschk6.cc): Likewise.
225         (CFLAGS-tst-ssp-1.c): Likewise.
226         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
227         (CFLAGS-scandir64.c): Likewise.
228         (CFLAGS-scandir-tail.c): Likewise.
229         (CFLAGS-scandir64-tail.c): Likewise.
230         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
231         (CFLAGS-dl-tunables.c): Likewise.
232         (CFLAGS-dl-runtime.c): Likewise.
233         (CFLAGS-dl-lookup.c): Likewise.
234         (CFLAGS-dl-iterate-phdr.c): Likewise.
235         (CFLAGS-vismain.c): Likewise.
236         (CFLAGS-tst-linkall-static.c): Likewise.
237         (CFLAGS-tst-linkall-static.c): Likewise.
238         (CPPFLAGS-dl-load.c): Likewise.
239         (CFLAGS-ldconfig.c): Likewise.
240         (CFLAGS-dl-cache.c): Likewise.
241         (CFLAGS-cache.c): Likewise.
242         (CFLAGS-rtld.c): Likewise.
243         (CFLAGS-multiload.c): Likewise.
244         (CFLAGS-filtmod1.c): Likewise.
245         (CFLAGS-tst-align.c): Likewise.
246         (CFLAGS-tst-align2.c): Likewise.
247         (CFLAGS-tst-alignmod.c): Likewise.
248         (CFLAGS-tst-alignmod2.c): Likewise.
249         (CPPFLAGS-tst-execstack.c): Likewise.
250         (CFLAGS-tst-ptrguard1-static.c): Likewise.
251         (CFLAGS-tst-latepthreadmod.c): Likewise.
252         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
253         (CFLAGS-getgrnam_r.c): Likewise.
254         (CFLAGS-getgrent_r.c): Likewise.
255         (CFLAGS-getgrent.c): Likewise.
256         (CFLAGS-fgetgrent.c): Likewise.
257         (CFLAGS-fgetgrent_r.c): Likewise.
258         (CFLAGS-putgrent.c): Likewise.
259         (CFLAGS-initgroups.c): Likewise.
260         (CFLAGS-getgrgid.c): Likewise.
261         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
262         (CFLAGS-getsgent.c): Likewise.
263         (CFLAGS-fgetsgent.c): Likewise.
264         (CFLAGS-fgetsgent_r.c): Likewise.
265         (CFLAGS-putsgent.c): Likewise.
266         (CFLAGS-getsgnam.c): Likewise.
267         (CFLAGS-getsgnam_r.c): Likewise.
268         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
269         (CFLAGS-iconv_charmap.c): Likewise.
270         (CFLAGS-dummy-repertoire.c): Likewise.
271         (CFLAGS-charmap.c): Likewise.
272         (CFLAGS-linereader.c): Likewise.
273         (CFLAGS-simple-hash.c): Likewise.
274         (CFLAGS-gconv_conf.c): Likewise.
275         (CFLAGS-iconvconfig.c): Likewise.
276         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
277         (CFLAGS-gethstbyad.c): Likewise.
278         (CFLAGS-gethstbynm_r.c): Likewise.
279         (CFLAGS-gethstbynm.c): Likewise.
280         (CFLAGS-gethstbynm2_r.c): Likewise.
281         (CFLAGS-gethstbynm2.c): Likewise.
282         (CFLAGS-gethstent_r.c): Likewise.
283         (CFLAGS-gethstent.c): Likewise.
284         (CFLAGS-rcmd.c): Likewise.
285         (CFLAGS-getnetbynm_r.c): Likewise.
286         (CFLAGS-getnetbynm.c): Likewise.
287         (CFLAGS-getnetbyad_r.c): Likewise.
288         (CFLAGS-getnetbyad.c): Likewise.
289         (CFLAGS-getnetent_r.c): Likewise.
290         (CFLAGS-getnetent.c): Likewise.
291         (CFLAGS-getaliasent_r.c): Likewise.
292         (CFLAGS-getaliasent.c): Likewise.
293         (CFLAGS-getrpcent_r.c): Likewise.
294         (CFLAGS-getrpcent.c): Likewise.
295         (CFLAGS-getservent_r.c): Likewise.
296         (CFLAGS-getservent.c): Likewise.
297         (CFLAGS-getprtent_r.c): Likewise.
298         (CFLAGS-getprtent.c): Likewise.
299         (CFLAGS-either_ntoh.c): Likewise.
300         (CFLAGS-either_hton.c): Likewise.
301         (CFLAGS-getnetgrent.c): Likewise.
302         (CFLAGS-getnetgrent_r.c): Likewise.
303         (CFLAGS-tst-checks-posix.c): Likewise.
304         (CFLAGS-tst-sockaddr.c): Likewise.
305         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
306         (CFLAGS-tst-translit.c): Likewise.
307         (CFLAGS-tst-gettext2.c): Likewise.
308         (CFLAGS-tst-codeset.c): Likewise.
309         (CFLAGS-tst-gettext3.c): Likewise.
310         (CFLAGS-tst-gettext4.c): Likewise.
311         (CFLAGS-tst-gettext5.c): Likewise.
312         (CFLAGS-tst-gettext6.c): Likewise.
313         * io/Makefile (CFLAGS-open.c): Likewise.
314         (CFLAGS-open64.c): Likewise.
315         (CFLAGS-creat.c): Likewise.
316         (CFLAGS-creat64.c): Likewise.
317         (CFLAGS-fcntl.c): Likewise.
318         (CFLAGS-poll.c): Likewise.
319         (CFLAGS-ppoll.c): Likewise.
320         (CFLAGS-lockf.c): Likewise.
321         (CFLAGS-statfs.c): Likewise.
322         (CFLAGS-fstatfs.c): Likewise.
323         (CFLAGS-statvfs.c): Likewise.
324         (CFLAGS-fstatvfs.c): Likewise.
325         (CFLAGS-fts.c): Likewise.
326         (CFLAGS-fts64.c): Likewise.
327         (CFLAGS-ftw.c): Likewise.
328         (CFLAGS-ftw64.c): Likewise.
329         (CFLAGS-lockf.c): Likewise.
330         (CFLAGS-posix_fallocate.c): Likewise.
331         (CFLAGS-posix_fallocate64.c): Likewise.
332         (CFLAGS-fallocate.c): Likewise.
333         (CFLAGS-fallocate64.c): Likewise.
334         (CFLAGS-read.c): Likewise.
335         (CFLAGS-write.c): Likewise.
336         (CFLAGS-test-stat.c): Likewise.
337         (CFLAGS-test-lfs.c): Likewise.
338         * libio/Makefile (CFLAGS-fileops.c): Likewise.
339         (CFLAGS-fputc.c): Likewise.
340         (CFLAGS-fputwc.c): Likewise.
341         (CFLAGS-freopen64.c): Likewise.
342         (CFLAGS-freopen.c): Likewise.
343         (CFLAGS-fseek.c): Likewise.
344         (CFLAGS-fseeko64.c): Likewise.
345         (CFLAGS-fseeko.c): Likewise.
346         (CFLAGS-ftello64.c): Likewise.
347         (CFLAGS-ftello.c): Likewise.
348         (CFLAGS-fwide.c): Likewise.
349         (CFLAGS-genops.c): Likewise.
350         (CFLAGS-getc.c): Likewise.
351         (CFLAGS-getchar.c): Likewise.
352         (CFLAGS-getwc.c): Likewise.
353         (CFLAGS-getwchar.c): Likewise.
354         (CFLAGS-iofclose.c): Likewise.
355         (CFLAGS-iofflush.c): Likewise.
356         (CFLAGS-iofgetpos64.c): Likewise.
357         (CFLAGS-iofgetpos.c): Likewise.
358         (CFLAGS-iofgets.c): Likewise.
359         (CFLAGS-iofgetws.c): Likewise.
360         (CFLAGS-iofputs.c): Likewise.
361         (CFLAGS-iofputws.c): Likewise.
362         (CFLAGS-iofread.c): Likewise.
363         (CFLAGS-iofsetpos64.c): Likewise.
364         (CFLAGS-iofsetpos.c): Likewise.
365         (CFLAGS-ioftell.c): Likewise.
366         (CFLAGS-iofwrite.c): Likewise.
367         (CFLAGS-iogetdelim.c): Likewise.
368         (CFLAGS-iogetline.c): Likewise.
369         (CFLAGS-iogets.c): Likewise.
370         (CFLAGS-iogetwline.c): Likewise.
371         (CFLAGS-ioputs.c): Likewise.
372         (CFLAGS-ioseekoff.c): Likewise.
373         (CFLAGS-ioseekpos.c): Likewise.
374         (CFLAGS-iosetbuffer.c): Likewise.
375         (CFLAGS-iosetvbuf.c): Likewise.
376         (CFLAGS-ioungetc.c): Likewise.
377         (CFLAGS-ioungetwc.c): Likewise.
378         (CFLAGS-oldfileops.c): Likewise.
379         (CFLAGS-oldiofclose.c): Likewise.
380         (CFLAGS-oldiofgetpos64.c): Likewise.
381         (CFLAGS-oldiofgetpos.c): Likewise.
382         (CFLAGS-oldiofsetpos64.c): Likewise.
383         (CFLAGS-oldiofsetpos.c): Likewise.
384         (CFLAGS-peekc.c): Likewise.
385         (CFLAGS-putc.c): Likewise.
386         (CFLAGS-putchar.c): Likewise.
387         (CFLAGS-putwc.c): Likewise.
388         (CFLAGS-putwchar.c): Likewise.
389         (CFLAGS-rewind.c): Likewise.
390         (CFLAGS-wfileops.c): Likewise.
391         (CFLAGS-wgenops.c): Likewise.
392         (CFLAGS-oldiofopen.c): Likewise.
393         (CFLAGS-iofopen.c): Likewise.
394         (CFLAGS-iofopen64.c): Likewise.
395         (CFLAGS-oldtmpfile.c): Likewise.
396         (CFLAGS-tst_putwc.c): Likewise.
397         * locale/Makefile (CFLAGS-md5.c): Likewise.
398         (CFLAGS-charmap.c): Likewise.
399         (CFLAGS-locfile.c): Likewise.
400         (CFLAGS-charmap-dir.c): Likewise.
401         * login/Makefile (CFLAGS-grantpt.c): Likewise.
402         (CFLAGS-getpt.c): Likewise.
403         (CFLAGS-pt_chown.c): Likewise.
404         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
405         (CFLAGS-obstack.c): Likewise.
406         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
407         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
408         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
409         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
410         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
411         (CFLAGS-test-tgmath.c): Likewise.
412         (CFLAGS-test-tgmath2.c): Likewise.
413         (CFLAGS-test-tgmath-ret.c): Likewise.
414         (CFLAGS-test-powl.c): Likewise.
415         (CFLAGS-test-snan.c): Likewise.
416         (CFLAGS-test-signgam-finite.c): Likewise.
417         (CFLAGS-test-signgam-finite-c99.c): Likewise.
418         (CFLAGS-test-signgam-finite-c11.c): Likewise.
419         (CFLAGS-test-signgam-uchar.c): Likewise.
420         (CFLAGS-test-signgam-uchar-init.c): Likewise.
421         (CFLAGS-test-signgam-uchar-static.c): Likewise.
422         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
423         (CFLAGS-test-signgam-uint.c): Likewise.
424         (CFLAGS-test-signgam-uint-init.c): Likewise.
425         (CFLAGS-test-signgam-uint-static.c): Likewise.
426         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
427         (CFLAGS-test-signgam-ullong.c): Likewise.
428         (CFLAGS-test-signgam-ullong-init.c): Likewise.
429         (CFLAGS-test-signgam-ullong-static.c): Likewise.
430         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
431         (CFLAGS-test-math-cxx11.cc): Likewise.
432         (CFLAGS-test-math-isinff.cc): Likewise.
433         (CFLAGS-test-math-iszero.cc): Likewise.
434         (CFLAGS-test-math-issignaling.cc): Likewise.
435         (CFLAGS-test-math-iscanonical.cc): Likewise.
436         (CFLAGS-test-iszero-excess-precision.c): Likewise.
437         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
438         (CFLAGS-test-flt-eval-method.c): Likewise.
439         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
440         (CFLAGS-test-finite-macros.c): Likewise.
441         * misc/Makefile (CFLAGS-select.c): Likewise.
442         (CFLAGS-tsearch.c): Likewise.
443         (CFLAGS-lsearch.c): Likewise.
444         (CFLAGS-pselect.c): Likewise.
445         (CFLAGS-readv.c): Likewise.
446         (CFLAGS-writev.c): Likewise.
447         (CFLAGS-preadv.c): Likewise.
448         (CFLAGS-preadv64.c): Likewise.
449         (CFLAGS-pwritev.c): Likewise.
450         (CFLAGS-pwritev64.c): Likewise.
451         (CFLAGS-preadv2.c): Likewise.
452         (CFLAGS-preadv64v2.c): Likewise.
453         (CFLAGS-pwritev2.c): Likewise.
454         (CFLAGS-pwritev64v2.c): Likewise.
455         (CFLAGS-usleep.c): Likewise.
456         (CFLAGS-syslog.c): Likewise.
457         (CFLAGS-error.c): Likewise.
458         (CFLAGS-getpass.c): Likewise.
459         (CFLAGS-mkstemp.c): Likewise.
460         (CFLAGS-mkstemp64.c): Likewise.
461         (CFLAGS-getsysstats.c): Likewise.
462         (CFLAGS-getusershell.c): Likewise.
463         (CFLAGS-err.c): Likewise.
464         (CFLAGS-tst-tsearch.c): Likewise.
465         (CFLAGS-msync.c): Likewise.
466         (CFLAGS-fdatasync.c): Likewise.
467         (CFLAGS-fsync.c): Likewise.
468         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
469         (CFLAGS-unwind.c): Likewise.
470         (CFLAGS-unwind-forcedunwind.c): Likewise.
471         (CFLAGS-pthread_cancel.c): Likewise.
472         (CFLAGS-pthread_setcancelstate.c): Likewise.
473         (CFLAGS-pthread_setcanceltype.c): Likewise.
474         (CFLAGS-cancellation.c): Likewise.
475         (CFLAGS-libc-cancellation.c): Likewise.
476         (CFLAGS-pthread_exit.c): Likewise.
477         (CFLAGS-forward.c): Likewise.
478         (CFLAGS-pthread_testcancel.c): Likewise.
479         (CFLAGS-pthread_join.c): Likewise.
480         (CFLAGS-pthread_timedjoin.c): Likewise.
481         (CFLAGS-pthread_once.c): Likewise.
482         (CFLAGS-pthread_cond_wait.c): Likewise.
483         (CFLAGS-sem_wait.c): Likewise.
484         (CFLAGS-sem_timedwait.c): Likewise.
485         (CFLAGS-fcntl.c): Likewise.
486         (CFLAGS-lockf.c): Likewise.
487         (CFLAGS-pread.c): Likewise.
488         (CFLAGS-pread64.c): Likewise.
489         (CFLAGS-pwrite.c): Likewise.
490         (CFLAGS-pwrite64.c): Likewise.
491         (CFLAGS-wait.c): Likewise.
492         (CFLAGS-waitpid.c): Likewise.
493         (CFLAGS-sigwait.c): Likewise.
494         (CFLAGS-msgrcv.c): Likewise.
495         (CFLAGS-msgsnd.c): Likewise.
496         (CFLAGS-tcdrain.c): Likewise.
497         (CFLAGS-open.c): Likewise.
498         (CFLAGS-open64.c): Likewise.
499         (CFLAGS-pause.c): Likewise.
500         (CFLAGS-recv.c): Likewise.
501         (CFLAGS-send.c): Likewise.
502         (CFLAGS-accept.c): Likewise.
503         (CFLAGS-sendto.c): Likewise.
504         (CFLAGS-connect.c): Likewise.
505         (CFLAGS-recvfrom.c): Likewise.
506         (CFLAGS-recvmsg.c): Likewise.
507         (CFLAGS-sendmsg.c): Likewise.
508         (CFLAGS-close.c): Likewise.
509         (CFLAGS-read.c): Likewise.
510         (CFLAGS-write.c): Likewise.
511         (CFLAGS-nanosleep.c): Likewise.
512         (CFLAGS-sigsuspend.c): Likewise.
513         (CFLAGS-msync.c): Likewise.
514         (CFLAGS-fdatasync.c): Likewise.
515         (CFLAGS-fsync.c): Likewise.
516         (CFLAGS-pt-system.c): Likewise.
517         (CFLAGS-tst-cleanup2.c): Likewise.
518         (CFLAGS-tst-cleanupx2.c): Likewise.
519         (CFLAGS-flockfile.c): Likewise.
520         (CFLAGS-ftrylockfile.c): Likewise.
521         (CFLAGS-funlockfile.c): Likewise.
522         (CFLAGS-tst-initializers1.c): Likewise.
523         (CFLAGS-tst-initializers1-c89.c): Likewise.
524         (CFLAGS-tst-initializers1-c99.c): Likewise.
525         (CFLAGS-tst-initializers1-c11.c): Likewise.
526         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
527         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
528         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
529         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
530         (CFLAGS-nscd_getgr_r.c): Likewise.
531         (CFLAGS-nscd_gethst_r.c): Likewise.
532         (CFLAGS-nscd_getai.c): Likewise.
533         (CFLAGS-nscd_initgroups.c): Likewise.
534         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
535         (CFLAGS-pause.c): Likewise.
536         (CFLAGS-pread.c): Likewise.
537         (CFLAGS-pread64.c): Likewise.
538         (CFLAGS-pwrite.c): Likewise.
539         (CFLAGS-pwrite64.c): Likewise.
540         (CFLAGS-sleep.c): Likewise.
541         (CFLAGS-wait.c): Likewise.
542         (CFLAGS-waitid.c): Likewise.
543         (CFLAGS-waitpid.c): Likewise.
544         (CFLAGS-getopt.c): Likewise.
545         (CFLAGS-wordexp.c): Likewise.
546         (CFLAGS-sysconf.c): Likewise.
547         (CFLAGS-pathconf.c): Likewise.
548         (CFLAGS-fpathconf.c): Likewise.
549         (CFLAGS-spawn.c): Likewise.
550         (CFLAGS-spawnp.c): Likewise.
551         (CFLAGS-spawni.c): Likewise.
552         (CFLAGS-glob.c): Likewise.
553         (CFLAGS-glob64.c): Likewise.
554         (CFLAGS-getconf.c): Likewise.
555         (CFLAGS-nanosleep.c): Likewise.
556         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
557         (CFLAGS-getpwent.c): Likewise.
558         (CFLAGS-getpw.c): Likewise.
559         (CFLAGS-fgetpwent_r.c): Likewise.
560         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
561         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
562         (CFLAGS-mq_timedreceive.c): Likewise.
563         (CFLAGS-mq_timedsend.c): Likewise.
564         (CFLAGS-clock_nanosleep.c): Likewise.
565         (CFLAGS-librt-cancellation.c): Likewise.
566         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
567         (CFLAGS-getspent.c): Likewise.
568         (CFLAGS-fgetspent.c): Likewise.
569         (CFLAGS-fgetspent_r.c): Likewise.
570         (CFLAGS-putspent.c): Likewise.
571         (CFLAGS-getspnam.c): Likewise.
572         (CFLAGS-getspnam_r.c): Likewise.
573         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
574         (CFLAGS-sigsuspend.c): Likewise.
575         (CFLAGS-sigtimedwait.c): Likewise.
576         (CFLAGS-sigwait.c): Likewise.
577         (CFLAGS-sigwaitinfo.c): Likewise.
578         (CFLAGS-sigreturn.c): Likewise.
579         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
580         (CFLAGS-vfwprintf.c): Likewise.
581         (CFLAGS-tmpfile.c): Likewise.
582         (CFLAGS-tmpfile64.c): Likewise.
583         (CFLAGS-tempname.c): Likewise.
584         (CFLAGS-psignal.c): Likewise.
585         (CFLAGS-vprintf.c): Likewise.
586         (CFLAGS-cuserid.c): Likewise.
587         (CFLAGS-errlist.c): Likewise.
588         (CFLAGS-siglist.c): Likewise.
589         (CFLAGS-scanf15.c): Likewise.
590         (CFLAGS-scanf17.c): Likewise.
591         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
592         (CFLAGS-msort.c): Likewise.
593         (CFLAGS-qsort.c): Likewise.
594         (CFLAGS-system.c): Likewise.
595         (CFLAGS-fmtmsg.c): Likewise.
596         (CFLAGS-strfmon.c): Likewise.
597         (CFLAGS-strfmon_l.c): Likewise.
598         (CFLAGS-strfromd.c): Likewise.
599         (CFLAGS-strfromf.c): Likewise.
600         (CFLAGS-strfroml.c): Likewise.
601         (CFLAGS-tst-bsearch.c): Likewise.
602         (CFLAGS-tst-qsort.c): Likewise.
603         (CFLAGS-tst-makecontext2.c): Likewise.
604         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
605         (CFLAGS-xnlm_prot.c): Likewise.
606         (CFLAGS-xrstat.c): Likewise.
607         (CFLAGS-xyppasswd.c): Likewise.
608         (CFLAGS-xklm_prot.c): Likewise.
609         (CFLAGS-xrex.c): Likewise.
610         (CFLAGS-xsm_inter.c): Likewise.
611         (CFLAGS-xmount.c): Likewise.
612         (CFLAGS-xrusers.c): Likewise.
613         (CFLAGS-xspray.c): Likewise.
614         (CFLAGS-xnfs_prot.c): Likewise.
615         (CFLAGS-xrquota.c): Likewise.
616         (CFLAGS-xkey_prot.c): Likewise.
617         (CFLAGS-auth_unix.c): Likewise.
618         (CFLAGS-key_call.c): Likewise.
619         (CFLAGS-pmap_rmt.c): Likewise.
620         (CFLAGS-clnt_perr.c): Likewise.
621         (CFLAGS-openchild.c): Likewise.
622         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
623         (CFLAGS-msgsnd.c): Likewise.
624         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
625         * time/Makefile (CFLAGS-tzfile.c): Likewise.
626         (CFLAGS-tzset.c): Likewise.
627         (CFLAGS-getdate.c): Likewise.
628         (CFLAGS-test_time.c): Likewise.
629         (CPPFLAGS-tst-tzname.c): Likewise.
630         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
631         (CFLAGS-zic.c): Likewise.
632         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
633         (CFLAGS-wcswidth.c): Likewise.
634         (CFLAGS-wcstol.c): Likewise.
635         (CFLAGS-wcstoul.c): Likewise.
636         (CFLAGS-wcstoll.c): Likewise.
637         (CFLAGS-wcstoull.c): Likewise.
638         (CFLAGS-wcstod.c): Likewise.
639         (CFLAGS-wcstold.c): Likewise.
640         (CFLAGS-wcstof128.c): Likewise.
641         (CFLAGS-wcstof.c): Likewise.
642         (CFLAGS-wcstol_l.c): Likewise.
643         (CFLAGS-wcstoul_l.c): Likewise.
644         (CFLAGS-wcstoll_l.c): Likewise.
645         (CFLAGS-wcstoull_l.c): Likewise.
646         (CFLAGS-wcstod_l.c): Likewise.
647         (CFLAGS-wcstold_l.c): Likewise.
648         (CFLAGS-wcstof128_l.c): Likewise.
649         (CFLAGS-wcstof_l.c): Likewise.
650         (CPPFLAGS-tst-wchar-h.c): Likewise.
651         (CPPFLAGS-wcstold_l.c): Likewise.
653 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
655         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
657 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
658             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
660         * manual/tunables.texi (Hardware Capability Tunables): Document
661         glibc.tune.cached_memopt.
662         * sysdeps/powerpc/cpu-features.c: New file.
663         * sysdeps/powerpc/cpu-features.h: New file.
664         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
665         _dl_powerpc_cpu_features.
666         * sysdeps/powerpc/dl-tunables.list: New file.
667         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
668         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
669         (INIT_ARCH): Initialize use_aligned_memopt.
670         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
671         IS_IN(rtld))]: Restrict dl_platform_init availability and
672         initialize CPU features used by tunables.
673         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
674         Add memcpy-power8-cached.
675         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
676         __memcpy_power8_cached.
677         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
678         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
679         New file.
681 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
683         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
684         (CFLAGS-noinl-tester.c): Likewise.
685         (CFLAGS-tst-strlen.c): Likewise.
686         (CFLAGS-stratcliff.c): Likewise.
687         (CFLAGS-test-ffs.c): Likewise.
688         (CFLAGS-tst-inlcall.c): Likewise.
689         (CFLAGS-tst-xbzero-opt.c): Likewise.
690         (CFLAGS-memcpy.c): Likewise.
691         (CFLAGS-wordcopy.c): Likewise.
693 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
695         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
696         Store r15 on stack and add cfi rule.
697         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
698         Likewise.
700 2017-12-10  Aurelien Jarno <aurelien@aurel32.net>
702         [BZ #22577]
703         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
704         call.
706 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
708         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
709         Add s_sinf-sse2 and s_sinf-fma.
710         (CFLAGS-s_sinf-fma.c): New.
711         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
712         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
713         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
715 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
717         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
719 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
721         [BZ #22568]
722         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
723         part of result to imaginary part of argument if it is zero and the
724         real part of the argument is not finite.
725         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
726         of result to real part of argument if it is zero and the imaginary
727         part of the argument is not finite.
729 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
731         [BZ #22524]
732         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
733         and to the list of locales to be built for testing.
734         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
735         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
736         and build the collation rules upon that.
738 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
740         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
741         * manual/math.texi (Mathematics): Document support for _Float32.
742         * math/Makefile (test-types): Add float32.
743         * math/Versions (GLIBC_2.27): Add _Float32 functions.
744         * stdlib/Versions (GLIBC_2.27): Likewise.
745         * wcsmbs/Versions (GLIBC_2.27): Likewise.
746         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
747         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
748         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
749         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
750         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
751         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
752         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
753         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
754         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
755         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
756         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
757         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
758         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
759         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
760         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
761         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
762         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
763         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
764         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
765         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
766         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
767         Likewise.
768         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
769         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
770         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
771         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
772         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
774         Likewise.
775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
776         Likewise.
777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
778         Likewise.
779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
780         Likewise.
782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
783         Likewise.
784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
785         Likewise.
786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
787         Likewise.
788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
789         Likewise.
790         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
791         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
792         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
793         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
794         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
795         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
796         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
797         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
798         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
799         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
800         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
801         Likewise.
802         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
803         Likewise.
804         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
805         Likewise.
806         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
807         Likewise.
808         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
809         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
810         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
811         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
812         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
813         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
814         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
815         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
817 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
819         * stdlib/strtof.c: Include <bits/floatn.h>
820         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
821         and later undefine as macro.  Define as weak alias if
822         [!USE_WIDE_CHAR].
823         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
824         and later undefine as macro.  Define as weak alias if
825         [USE_WIDE_CHAR].
826         * stdlib/strtof_l.c: Include <bits/floatn.h>
827         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
828         and later undefine as macro.  Define as weak alias if
829         [!USE_WIDE_CHAR].
830         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
831         and later undefine as macro.  Define as weak alias if
832         [USE_WIDE_CHAR].
834         * stdlib/strfromf.c: Include <bits/floatn.h>.
835         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
836         and later undefine as macro and define as weak alias.
838         * math/test-float32.h: New file.
840         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
841         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
842         (libm_alias_float_other_r): Create f32 alias.
843         (libm_alias_float_r): Use semicolon before call to
844         libm_alias_float_other_r.
846         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
847         second argument to libm_alias_float_other.
848         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
849         second argument to libm_alias_float_other.
850         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
851         argument to libm_alias_float_other.
853         [BZ #22561]
854         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
855         real part of result for argument 0 + i * NaN.
856         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
857         results for tests of 0 + i * NaN.
859 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
861         * sysdeps/alpha/fpu/libm-test-ulps: Update.
863 2017-12-06  David S. Miller  <davem@davemloft.net>
865         * sysdeps/sparc/fpu/libm-test-ulps: Update
866         exp_{downward,towardzero,upward} ulps.
868 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
870         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
871         variables static.
873         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
874         (Y0_2D): Likewise.
875         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
876         (Y0_2D): Likewise.
877         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
878         (Y0_2D): Likewise.
879         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
880         (Y0_2D): Likewise.
882 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
884         [BZ #22515]
885         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
886         and to the list of locales to be built for testing.
887         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
888         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
889         and build the collation rules upon that.
891 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
893         * NEWS: Add sinf to list of optimized functions.
895 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
897         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
898         (__HAVE_FLOAT32X): Likewise.
899         * manual/math.texi (Mathematics): Document support for _Float64
900         and _Float32x.
901         * math/Makefile (test-types): Add float64 and float32x.
902         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
903         functions.
904         * stdlib/Versions (GLIBC_2.27): Likewise.
905         * wcsmbs/Versions (GLIBC_2.27): Likewise.
906         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
907         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
908         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
909         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
910         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
911         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
912         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
913         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
914         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
915         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
916         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
917         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
918         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
919         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
920         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
921         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
922         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
923         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
924         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
925         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
926         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
927         Likewise.
928         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
929         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
930         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
931         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
932         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
934         Likewise.
935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
936         Likewise.
937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
938         Likewise.
939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
940         Likewise.
941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
942         Likewise.
943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
944         Likewise.
945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
946         Likewise.
947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
948         Likewise.
949         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
950         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
951         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
952         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
953         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
954         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
955         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
956         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
957         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
958         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
960         Likewise.
961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
962         Likewise.
963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
964         Likewise.
965         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
966         Likewise.
967         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
968         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
969         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
970         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
971         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
972         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
973         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
974         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
976 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
978         * bits/floatn-common.h: Include <bits/long-double.h>.
979         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
980         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
981         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
982         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
983         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
984         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
985         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
986         (__builtin_huge_valf64): Use __builtin_huge_vall.
987         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
988         (__builtin_inff64): Use __builtin_infl.
989         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
990         (__builtin_nanf64): Use __builtin_nanl.
991         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
992         (__builtin_nansf64): Use __builtin_nansl.
994 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>,
995             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>,
996             Carlos O'Donnell <carlos@redhat.com>
998         * elf/dl-tunables.list: Add elision parameters.
999         * manual/tunables.texi: Add entries about elision tunable.
1000         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
1001         Add callback functions to dynamically enable/disable elision.
1002         Add multiple callbacks functions to set elision parameters.
1003         Deleted __libc_enable_secure check.
1004         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
1005         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
1006         * configure: Regenerated.
1007         * configure.ac: Option enable_lock_elision was deleted.
1008         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
1009         * config.make.in: Remove references to enable_lock_elision.
1010         * manual/install.texi: Elision configure option was removed.
1011         * INSTALL: Regenerated to remove enable_lock_elision.
1012         * nptl/Makefile:
1013         Disable elision so it can verify error case for destroying a mutex.
1014         * sysdeps/powerpc/nptl/elide.h:
1015         Cleanup ENABLE_LOCK_ELISION check.
1016         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
1017         * sysdeps/s390/configure: Regenerated.
1018         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
1019         * nptl/tst-mutex8.c:
1020         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
1021         * sysdeps/powerpc/powerpc32/sysdep.h:
1022         Deleted all ENABLE_LOCK_ELISION checks.
1023         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
1024         * sysdeps/powerpc/sysdep.h: Likewise.
1025         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
1026         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
1027         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
1028         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
1029         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1030         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
1031         enable-lock-elision.
1033 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1035         * stdlib/strtod.c: Include <bits/floatn.h>.
1036         (BUILD_DOUBLE): New macro.
1037         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1038         (strtof64): Define and later undefine as macro.  Define as weak
1039         alias if [!USE_WIDE_CHAR].
1040         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1041         (wcstof64): Define and later undefine as macro.  Define as weak
1042         alias if [USE_WIDE_CHAR].
1043         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1044         (strtof32x): Define and later undefine as macro.  Define as weak
1045         alias if [!USE_WIDE_CHAR].
1046         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1047         (wcstof32x): Define and later undefine as macro.  Define as weak
1048         alias if [USE_WIDE_CHAR].
1049         * stdlib/strtod_l.c: Include <bits/floatn.h>.
1050         (BUILD_DOUBLE): New macro.
1051         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1052         (strtof64_l): Define and later undefine as macro.  Define as weak
1053         alias if [!USE_WIDE_CHAR].
1054         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
1055         (wcstof64_l): Define and later undefine as macro.  Define as weak
1056         alias if [USE_WIDE_CHAR].
1057         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1058         (strtof32x_l): Define and later undefine as macro.  Define as weak
1059         alias if [!USE_WIDE_CHAR].
1060         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
1061         (wcstof32x_l): Define and later undefine as macro.  Define as weak
1062         alias if [USE_WIDE_CHAR].
1064 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1066         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
1067         (reduced): Use ones as double instead of integer.
1069 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1071         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
1073 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1075         * stdlib/strfromd.c: Include <bits/floatn.h>.
1076         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
1077         and later undefine as macro and define as weak alias.
1078         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
1079         Likewise.
1081         * math/test-float32x.h: New file.
1082         * math/test-float64.h: Likewise.
1084         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
1085         (libm_alias_double_other_r_f64): New macro.
1086         (libm_alias_double_other_r_f32x): Likewise.
1087         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
1088         libm_alias_double_other_r_f32x.
1089         (libm_alias_double_r): Use semicolon before call to
1090         libm_alias_double_other_r.
1091         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
1092         <bits/floatn.h>.
1093         (libm_alias_double_other_r_f64): New macro.
1094         (libm_alias_double_other_r_f32x): Likewise.
1095         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
1096         libm_alias_double_other_r_f32x.
1098 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
1100         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
1101         int.
1102         (SINF_FUNC): Likewise.  Replace floor with simple casts.
1104 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
1106         [BZ #22517]
1107         * localedata/Makefile: Add et_EE.UTF-8 to test-input
1108         and to the list of locales to be built for testing.
1109         * localedata/et_EE.UTF-8.in: New file for testing the collation.
1110         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
1111         and build the collation rules upon that.
1113 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
1115         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
1116         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
1117         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
1118         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
1119         instead of __insn__xxx.
1120         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
1121         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
1122         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
1123         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
1124         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
1125         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
1127 2017-12-05  Florian Weimer  <fweimer@redhat.com>
1129         Linux: Implement interfaces for memory protection keys
1130         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
1131         xsignal, xsysconf.
1132         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
1133         * support/xunistd.h (xsysconf): Declare.
1134         * support/xraise.c: New file.
1135         * support/xsigaction.c: Likewise.
1136         * support/xsignal.c: Likewise.
1137         * support/xsysconf.c: Likewise.
1138         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
1139         pkey_set, pkey_get, pkey_mprotect.
1140         [misc] (tests): Add tst-pkey.
1141         (tst-pkey): Link with -lpthread.
1142         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
1143         pkey_free, pkey_set, pkey_get, pkey_mprotect.
1144         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
1145         (PKEY_DISABLE_WRITE): Define.
1146         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
1147         Declare.
1148         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
1149         (SEGV_PKUERR): Add.
1150         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
1151         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
1152         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
1153         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
1154         Add.
1155         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
1156         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
1157         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
1158         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
1159         * sysdeps/unix/sysv/linux/**.abilist: Update.
1161 2017-12-05  Florian Weimer  <fweimer@redhat.com>
1163         * support/tst-test_compare.c (subprocess): Use long long instead
1164         of long argument for consistent type width across 32-bit and
1165         64-bit architectures.
1166         (do_test): Adjust expected output.
1168 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
1170         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
1171         (cosf): Define using libm_alias_float.
1172         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
1173         (fabsf): Define using libm_alias_float.
1174         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
1175         (fmaf): Define using libm_alias_float.
1176         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
1177         (rintf): Define using libm_alias_float.
1178         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
1179         (sinf): Define using libm_alias_float.
1180         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
1181         <libm-alias-float.h>.
1182         (modff): Define using libm_alias_float.
1183         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
1184         <libm-alias-float.h>.
1185         (logbf): Define using libm_alias_float.
1186         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
1187         <libm-alias-float.h>.
1188         (ceilf): Define using libm_alias_float.
1189         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
1190         <libm-alias-float.h>.
1191         (copysignf): Define using libm_alias_float.
1192         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
1193         <libm-alias-float.h>.
1194         (floorf): Define using libm_alias_float.
1195         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
1196         <libm-alias-float.h>.
1197         (llrintf): Define using libm_alias_float.
1198         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
1199         <libm-alias-float.h>.
1200         (llroundf): Define using libm_alias_float.
1201         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
1202         <libm-alias-float.h>.
1203         (lrintf): Define using libm_alias_float.
1204         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
1205         <libm-alias-float.h>.
1206         (lroundf): Define using libm_alias_float.
1207         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
1208         <libm-alias-float.h>.
1209         (nearbyintf): Define using libm_alias_float.
1210         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
1211         <libm-alias-float.h>.
1212         (rintf): Define using libm_alias_float.
1213         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
1214         <libm-alias-float.h>.
1215         (roundf): Define using libm_alias_float.
1216         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
1217         <libm-alias-float.h>.
1218         (truncf): Define using libm_alias_float.
1219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
1220         Include <libm-alias-float.h>.
1221         (ceilf): Define using libm_alias_float.
1222         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
1223         Include <libm-alias-float.h>.
1224         (copysignf): Define using libm_alias_float.
1225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
1226         Include <libm-alias-float.h>.
1227         (floorf): Define using libm_alias_float.
1228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
1229         Include <libm-alias-float.h>.
1230         (llrintf): Define using libm_alias_float.
1231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
1232         Include <libm-alias-float.h>.
1233         (llroundf): Define using libm_alias_float.
1234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
1235         Include <libm-alias-float.h>.
1236         (logbf): Define using libm_alias_float.
1237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
1238         Include <libm-alias-float.h>.
1239         (lrintf): Define using libm_alias_float.
1240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
1241         Include <libm-alias-float.h>.
1242         (lroundf): Define using libm_alias_float.
1243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
1244         Include <libm-alias-float.h>.
1245         (modff): Define using libm_alias_float.
1246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
1247         Include <libm-alias-float.h>.
1248         (roundf): Define using libm_alias_float.
1249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
1250         Include <libm-alias-float.h>.
1251         (truncf): Define using libm_alias_float.
1252         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
1253         <libm-alias-float.h>.
1254         (llrintf): Define using libm_alias_float.
1255         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
1256         <libm-alias-float.h>.
1257         (llroundf): Define using libm_alias_float.
1258         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
1259         <libm-alias-float.h>.
1260         (ceilf): Define using libm_alias_float.
1261         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
1262         <libm-alias-float.h>.
1263         (floorf): Define using libm_alias_float.
1264         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
1265         <libm-alias-float.h>.
1266         (llroundf): Define using libm_alias_float.
1267         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
1268         <libm-alias-float.h>.
1269         (lroundf): Define using libm_alias_float.
1270         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
1271         <libm-alias-float.h>.
1272         (roundf): Define using libm_alias_float.
1273         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
1274         <libm-alias-float.h>.
1275         (truncf): Define using libm_alias_float.
1276         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
1277         <libm-alias-float.h>.
1278         (copysignf): Define using libm_alias_float.
1279         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
1280         <libm-alias-float.h>.
1281         (llrintf): Define using libm_alias_float.
1282         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
1283         <libm-alias-float.h>.
1284         (llroundf): Define using libm_alias_float.
1285         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
1286         <libm-alias-float.h>.
1287         (lrintf): Define using libm_alias_float.
1288         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
1289         <libm-alias-float.h>.
1290         (lroundf): Define using libm_alias_float.
1291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
1292         <libm-alias-float.h>.
1293         (ceilf): Define using libm_alias_float.
1294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
1295         <libm-alias-float.h>.
1296         (copysignf): Define using libm_alias_float.
1297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
1298         <libm-alias-float.h>.
1299         (cosf): Define using libm_alias_float.
1300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
1301         <libm-alias-float.h>.
1302         (floorf): Define using libm_alias_float.
1303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
1304         <libm-alias-float.h>.
1305         (llrintf): Define using libm_alias_float.
1306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
1307         <libm-alias-float.h>.
1308         (llroundf): Define using libm_alias_float.
1309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
1310         <libm-alias-float.h>.
1311         (logbf): Define using libm_alias_float.
1312         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
1313         <libm-alias-float.h>.
1314         (modff): Define using libm_alias_float.
1315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
1316         <libm-alias-float.h>.
1317         (roundf): Define using libm_alias_float.
1318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
1319         <libm-alias-float.h>.
1320         (sinf): Define using libm_alias_float.
1321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
1322         <libm-alias-float.h>.
1323         (truncf): Define using libm_alias_float.
1324         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
1325         <libm-alias-float.h>.
1326         (ceilf): Define using libm_alias_float.
1327         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
1328         <libm-alias-float.h>.
1329         (copysignf): Define using libm_alias_float.
1330         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
1331         <libm-alias-float.h>.
1332         (floorf): Define using libm_alias_float.
1333         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
1334         <libm-alias-float.h>.
1335         (llrintf): Define using libm_alias_float.
1336         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
1337         <libm-alias-float.h>.
1338         (llroundf): Define using libm_alias_float.
1339         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
1340         <libm-alias-float.h>.
1341         (nearbyintf): Define using libm_alias_float.
1342         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
1343         <libm-alias-float.h>.
1344         (rintf): Define using libm_alias_float.
1345         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
1346         <libm-alias-float.h>.
1347         (roundf): Define using libm_alias_float.
1348         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
1349         <libm-alias-float.h>.
1350         (truncf): Define using libm_alias_float.
1351         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
1352         <libm-alias-float.h>.
1353         (ceilf): Define using libm_alias_float.
1354         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
1355         <libm-alias-float.h>.
1356         (floorf): Define using libm_alias_float.
1357         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
1358         <libm-alias-float.h>.
1359         (llroundf): Define using libm_alias_float.
1360         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
1361         <libm-alias-float.h>.
1362         (roundf): Define using libm_alias_float.
1363         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
1364         <libm-alias-float.h>.
1365         (truncf): Define using libm_alias_float.
1366         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
1367         <libm-alias-float.h>.
1368         (copysignf): Define using libm_alias_float.
1369         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
1370         <libm-alias-float.h>.
1371         (llrintf): Define using libm_alias_float.
1372         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
1373         <libm-alias-float.h>.
1374         (llroundf): Define using libm_alias_float.
1375         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
1376         <libm-alias-float.h>.
1377         (cosf): Define using libm_alias_float.
1378         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
1379         <libm-alias-float.h>.
1380         (llrintf): Define using libm_alias_float.
1381         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
1382         <libm-alias-float.h>.
1383         (llroundf): Define using libm_alias_float.
1384         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
1385         <libm-alias-float.h>.
1386         (sinf): Define using libm_alias_float.
1388 2017-12-04  Florian Weimer  <fweimer@redhat.com>
1390         * support/check.h (TEST_COMPARE): Define.
1391         (support_test_compare_failure): Declare.
1392         * support/Makefile (libsupport-routines): Add
1393         support_test_compare_failure.
1394         (tests): Add tst-test_compare.
1395         * support /support_test_compare_failure.c: New file.
1396         * support/tst-test_compare.c: Likewise.
1398 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
1400         [BZ #22527]
1401         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
1402         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
1403         available, this rewrite of the collation rules does reproduce
1404         the test file in the same order.
1406 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
1408         [BZ #10580]
1409         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
1410         digraphs in the month and day names. Using single code points for
1411         digraphs is deprecated.  While there are dedicated Unicode
1412         codepoints, for the digraphs, these are included for backwards
1413         compatibility and modern texts use a sequence of Basic Latin
1414         characters. See: https://www.unicode.org/faq/ligature_digraph.html
1415         This makes the month and day names agree exactly with CLDR now,
1416         CLDR does not use the single code points for the digraphs either.
1418 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
1420         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
1422 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
1424         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
1425         of floor.
1427 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1429         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
1430         Define only for libc.so.
1432 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1434         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1435         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
1436          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
1437         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
1438         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
1440 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1442         [BZ #5997]
1443         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
1445 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
1447         [BZ libc/19170]
1448         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
1449         PREINIT_FUNCTION_WEAK is nonzero.
1450         (gmon_initializer): New function.  Put procedure label for it in
1451         .init_array section.
1452         (_init): Don't call PREINIT_FUNCTION.
1453         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
1454         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
1455         value when map argument is null.
1457         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
1458         depi instruction from PIC pc-relative sequence.
1459         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
1460         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
1461         (elf_machine_load_address): Likewise.
1462         (elf_machine_runtime_setup): Likewise.
1464 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
1466         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
1467         <libm-alias-double.h>.
1468         (logb): Define using libm_alias_double.
1469         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
1470         <libm-alias-double.h>.
1471         (copysign): Define using libm_alias_double.
1472         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
1473         <libm-alias-double.h>.
1474         (llrint): Define using libm_alias_double.
1475         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
1476         <libm-alias-double.h>.
1477         (llround): Define using libm_alias_double.
1478         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
1479         <libm-alias-double.h>.
1480         (lrint): Define using libm_alias_double.
1481         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
1482         <libm-alias-double.h>.
1483         (lround): Define using libm_alias_double.
1484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
1485         Include <libm-alias-double.h>.
1486         (copysign): Define using libm_alias_double.
1487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
1488         Include <libm-alias-double.h>.
1489         (llrint): Define using libm_alias_double.
1490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
1491         Include <libm-alias-double.h>.
1492         (llround): Define using libm_alias_double.
1493         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
1494         <libm-alias-double.h>.
1495         (logb): Define using libm_alias_double.
1496         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
1497         Include <libm-alias-double.h>.
1498         (lrint): Define using libm_alias_double.
1499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
1500         Include <libm-alias-double.h>.
1501         (lround): Define using libm_alias_double.
1502         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
1503         <libm-alias-double.h>.
1504         (llrint): Define using libm_alias_double.
1505         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
1506         <libm-alias-double.h>.
1507         (llround): Define using libm_alias_double.
1508         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
1509         <libm-alias-double.h>.
1510         (llround): Define using libm_alias_double.
1511         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
1512         <libm-alias-double.h>.
1513         (lround): Define using libm_alias_double.
1514         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
1515         <libm-alias-double.h>.
1516         (copysign): Define using libm_alias_double.
1517         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
1518         <libm-alias-double.h>.
1519         (llrint): Define using libm_alias_double.
1520         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
1521         <libm-alias-double.h>.
1522         (llround): Define using libm_alias_double.
1523         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
1524         <libm-alias-double.h>.
1525         (lrint): Define using libm_alias_double.
1526         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
1527         <libm-alias-double.h>.
1528         (lround): Define using libm_alias_double.
1529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
1530         <libm-alias-double.h>.
1531         (copysign): Define using libm_alias_double.
1532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
1533         <libm-alias-double.h>.
1534         (llrint): Define using libm_alias_double.
1535         (lrint): Likewise.
1536         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
1537         <libm-alias-double.h>.
1538         (llround): Define using libm_alias_double.
1539         (lround): Likewise.
1540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
1541         <libm-alias-double.h>.
1542         (logb): Define using libm_alias_double.
1543         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
1544         <libm-alias-double.h>.
1545         (copysign): Define using libm_alias_double.
1546         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
1547         <libm-alias-double.h>.
1548         (llrint): Define using libm_alias_double.
1549         (lrint): Likewise.
1550         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
1551         <libm-alias-double.h>.
1552         (llround): Define using libm_alias_double.
1553         (lround): Likewise.
1554         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
1555         <libm-alias-double.h>.
1556         (llround): Define using libm_alias_double.
1557         (lround): Likewise.
1558         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
1559         <libm-alias-double.h>.
1560         (copysign): Define using libm_alias_double.
1561         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
1562         <libm-alias-double.h>.
1563         (llrint): Define using libm_alias_double.
1564         (lrint): Likewise.
1565         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
1566         <libm-alias-double.h>.
1567         (llround): Define using libm_alias_double.
1568         (lround): Likewise.
1569         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
1570         <libm-alias-double.h>.
1571         (llrint): Define using libm_alias_double.
1572         (lrint): Likewise.
1573         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
1574         <libm-alias-double.h>.
1575         (llround): Define using libm_alias_double.
1576         (lround): Likewise.
1578 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
1580         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
1581         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
1582         compat symbol based on llround.
1584         * sysdeps/powerpc/power7/fpu/s_logb.c
1585         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
1586         symbol based on __logb, not on logb.
1587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
1588         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
1589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
1590         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
1592         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
1593         (rint): Define using libm_alias_double.
1594         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
1595         <libm-alias-double.h>.
1596         (modf): Define using libm_alias_double.
1597         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
1598         <libm-alias-double.h>.
1599         (ceil): Define using libm_alias_double.
1600         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
1601         <libm-alias-double.h>.
1602         (floor): Define using libm_alias_double.
1603         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
1604         <libm-alias-double.h>.
1605         (nearbyint): Define using libm_alias_double.
1606         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
1607         <libm-alias-double.h>.
1608         (rint): Define using libm_alias_double.
1609         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
1610         <libm-alias-double.h>.
1611         (round): Define using libm_alias_double.
1612         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
1613         <libm-alias-double.h>.
1614         (trunc): Define using libm_alias_double.
1615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
1616         <libm-alias-double.h>.
1617         (ceil): Define using libm_alias_double.
1618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
1619         Include <libm-alias-double.h>.
1620         (floor): Define using libm_alias_double.
1621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
1622         <libm-alias-double.h>.
1623         (modf): Define using libm_alias_double.
1624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
1625         Include <libm-alias-double.h>.
1626         (round): Define using libm_alias_double.
1627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
1628         Include <libm-alias-double.h>.
1629         (trunc): Define using libm_alias_double.
1630         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
1631         <libm-alias-double.h>.
1632         (ceil): Define using libm_alias_double.
1633         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
1634         <libm-alias-double.h>.
1635         (floor): Define using libm_alias_double.
1636         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
1637         <libm-alias-double.h>.
1638         (round): Define using libm_alias_double.
1639         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
1640         <libm-alias-double.h>.
1641         (trunc): Define using libm_alias_double.
1642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
1643         <libm-alias-double.h>.
1644         (ceil): Define using libm_alias_double.
1645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
1646         <libm-alias-double.h>.
1647         (floor): Define using libm_alias_double.
1648         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
1649         <libm-alias-double.h>.
1650         (modf): Define using libm_alias_double.
1651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
1652         <libm-alias-double.h>.
1653         (round): Define using libm_alias_double.
1654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
1655         <libm-alias-double.h>.
1656         (trunc): Define using libm_alias_double.
1657         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
1658         <libm-alias-double.h>.
1659         (ceil): Define using libm_alias_double.
1660         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
1661         <libm-alias-double.h>.
1662         (floor): Define using libm_alias_double.
1663         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
1664         <libm-alias-double.h>.
1665         (nearbyint): Define using libm_alias_double.
1666         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
1667         <libm-alias-double.h>.
1668         (rint): Define using libm_alias_double.
1669         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
1670         <libm-alias-double.h>.
1671         (round): Define using libm_alias_double.
1672         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
1673         <libm-alias-double.h>.
1674         (trunc): Define using libm_alias_double.
1675         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
1676         <libm-alias-double.h>.
1677         (ceil): Define using libm_alias_double.
1678         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
1679         <libm-alias-double.h>.
1680         (floor): Define using libm_alias_double.
1681         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
1682         <libm-alias-double.h>.
1683         (round): Define using libm_alias_double.
1684         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
1685         <libm-alias-double.h>.
1686         (trunc): Define using libm_alias_double.
1688         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
1689         (fabs): Define using libm_alias_double.
1690         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
1691         (fma): Define using libm_alias_double.
1692         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
1693         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
1694         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
1695         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
1697 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1699         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
1701         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
1702         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
1703         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
1705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
1706         due redirect macro.
1708 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
1710         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
1712 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1714         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
1715         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
1716         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
1717         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
1719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1720         (libm-sysdep_routines): Add s_nearbyintf-generic and
1721         s_nearbyint-generic.
1722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
1723         New file.
1724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
1725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
1726         Likewise.
1727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
1728         Likewise.
1729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
1730         file.
1731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
1732         Likewise.
1734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1735         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
1736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
1737         file.
1738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
1739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
1740         Likewise.
1741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
1742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
1743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1746         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
1747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
1748         file.
1749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
1750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
1751         Likewise.
1752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
1753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
1754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
1756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1757         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
1758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
1759         file.
1760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
1761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
1762         Likewise.
1763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
1764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
1765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1768         (sysdep_calls): New rule.
1769         (sysdep_routines): Use sysdep_calls as base.
1770         (libm-sysdep_routines): Add generic rule for symbols shared with
1771         libc.  Add s_copysign-generic and s_copysign-generic objects.
1772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
1773         New file.
1774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
1775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
1776         Likewise.
1777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
1778         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
1779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
1781 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
1783         [BZ #22519]
1784         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
1785         the list of locales to be built for testing.
1786         * localedata/is_IS.UTF-8.in: New file.
1787         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
1788         on iso14651_t1.
1790 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
1792         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
1793         <libm-alias-float.h>.
1794         (fabsf): Define using libm_alias_float.
1796 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
1798         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
1800 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
1802         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
1803         <libm-alias-float.h>.
1804         (fabsf): Define using libm_alias_float.
1805         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
1806         <libm-alias-float.h>.
1807         (lrintf): Define using libm_alias_float.
1808         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
1809         <libm-alias-float.h>.
1810         (rintf): Define using libm_alias_float.
1812         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
1813         <libm-alias-double.h>.
1814         (fabs): Define using libm_alias_double.
1815         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
1816         <libm-alias-double.h>.
1817         (lrint): Define using libm_alias_double.
1818         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
1819         <libm-alias-double.h>.
1820         (rint): Define using libm_alias_double.
1822         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
1823         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
1824         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
1825         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
1826         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
1827         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
1828         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
1829         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
1830         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
1831         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
1832         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
1833         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
1834         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
1835         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
1836         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
1837         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
1838         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
1839         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
1840         s_atan_template.c.
1841         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
1842         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
1843         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
1844         s_ceil_template.c.
1845         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
1846         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
1847         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
1848         s_cos_template.c.
1849         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
1850         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
1851         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
1852         s_expm1_template.c.
1853         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
1854         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
1855         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
1856         s_fabs_template.c.
1857         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
1858         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
1859         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
1860         s_floor_template.c.
1861         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
1862         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
1863         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
1864         s_frexp_template.c.
1865         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
1866         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
1867         s_lrint_template.c.
1868         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
1869         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
1870         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
1871         s_modf_template.c.
1872         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
1873         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
1874         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
1875         s_nearbyint_template.c.
1876         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
1877         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
1878         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
1879         s_remquo_template.c.
1880         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
1881         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
1882         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
1883         s_rint_template.c.
1884         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
1885         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
1886         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
1887         s_sin_template.c.
1888         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
1889         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
1890         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
1891         s_sincos_template.c.
1892         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
1893         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
1894         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
1895         s_tan_template.c.
1896         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
1897         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
1898         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
1899         s_tanh_template.c.
1900         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
1901         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
1902         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
1903         s_trunc_template.c.
1904         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
1905         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
1906         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
1907         s_atan.c instead of including s_atan.c.
1908         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
1909         s_atanf.c instead of including s_atanf.c.
1910         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
1911         s_atanl.c instead of including s_atanl.c.
1912         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
1913         instead of s_atan.c.
1914         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
1915         instead of s_atanf.c.
1916         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
1917         instead of s_atanl.c.
1919         * scripts/update-copyrights: Do not handle intl/plural.c
1920         specially.
1922 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
1924         [BZ #22432]
1925         * configure.ac (BISON): Require to be present.
1926         * configure: Regenerated.
1927         * intl/Makefile (generated): Add plural.c.
1928         [$(BISON) != no]: Make code unconditional.
1929         (plural.c): Change rule to $(objpfx)plural.c.
1930         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
1931         * intl/plural.c: Remove.
1932         * manual/install.texi (Tools for Compilation): Document bison as
1933         required.
1934         * INSTALL: Regenerated.
1936 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
1938         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
1939         <libm-alias-double.h>.
1940         (llrint): Define using libm_alias_double.
1941         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
1942         <libm-alias-float.h>.
1943         (llrintf): Define using libm_alias_float.
1944         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
1945         <libm-alias-ldouble.h>.
1946         (llrintl): Define using libm_alias_ldouble.
1948         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
1949         declare_mgen_alias instead of weak_alias.
1950         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
1951         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
1952         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
1954 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1956         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1957         Add add_n-generic.
1958         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
1959         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
1960         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
1962         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1963         Add submul_1-generic.
1964         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
1965         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
1966         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
1968         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1969         Add addmul_1-generic.
1970         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
1971         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
1972         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
1974         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1975         Add sub_n-generic.
1976         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
1977         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
1978         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
1980         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
1981         Add mul_1-generic.
1982         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
1983         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
1984         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
1986 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
1988         According to CLDR, collation rules for Serbian and Bosnian
1989         should be the same as for Croatian.
1991         [BZ #22534]
1992         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
1993         and to the list of locales to be built for testing.
1994         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
1995         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
1996         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
1997         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
1999 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
2001         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
2002         to make test case pass.
2003         * localedata/hr_HR.UTF-8.in: Add more test strings.
2005 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
2007         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
2009 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
2011         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
2012         the list of locales to built for testing.
2013         * localedata/hr_HR.UTF-8.in: New file.
2015 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
2017         [BZ #10580]
2018         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
2019         iso14651_t1.
2020         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
2021         CLDR (except use ligatures for the digraphs, CLDR does not use
2022         the ligatures), add first_workday, some fixes in the date and time
2023         formats.
2024         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
2025         for Đ and đ.
2026         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
2027         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
2028         Add int_p_cs_precedes and int_n_cs_precedes.
2029         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
2030         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
2031         LC_MONETARY now).
2032         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
2033         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
2034         name_miss.
2035         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
2036         and lang_lib. Change postal_fmt.
2038 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
2040         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
2041         <setjmp.h>.
2042         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
2043         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
2044         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
2045         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
2046         * sysdeps/generic/setjmpP.h: New file.
2047         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
2048         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
2049         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
2050         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
2051         Add jmp_buf-ssp.sym.
2052         (tests): Add tst-saved_mask-1.
2054 2017-11-30  Arjun Shankar  <arjun@redhat.com>
2056         [BZ #22375]
2057         CVE-2017-17426
2058         * malloc/malloc.c (__libc_malloc): Use checked_request2size
2059         instead of request2size.
2061 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
2063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
2064         (__lllrint): Remove alias.
2065         (lllrint): Likewise.
2066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
2067         (__lllrintf): Likewise.
2068         (lllrintf): Likewise.
2070         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
2071         <libm-alias-float.h>.
2072         (copysignf): Define using libm_alias_float.
2073         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
2074         <libm-alias-float.h>.
2075         (fabsf): Define using libm_alias_float.
2076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
2077         Include <libm-alias-float.h>.
2078         (copysignf): Define using libm_alias_float.
2079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
2080         <libm-alias-float.h>.
2081         (fabsf): Define using libm_alias_float.
2082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
2083         <libm-alias-float.h>.
2084         (fdimf): Define using libm_alias_float.
2085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
2086         <libm-alias-float.h>.
2087         (fmaf): Define using libm_alias_float.
2088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
2089         <libm-alias-float.h>.
2090         (llrintf): Define using libm_alias_float.
2091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
2092         Include <libm-alias-float.h>.
2093         (nearbyintf): Define using libm_alias_float.
2094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
2095         <libm-alias-float.h>.
2096         (rintf): Define using libm_alias_float.
2097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
2098         <libm-alias-float.h>.
2099         (llrintf): Define using libm_alias_float.
2100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
2101         <libm-alias-float.h>.
2102         (lrintf): Define using libm_alias_float.
2103         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
2104         <libm-alias-float.h>.
2105         (nearbyintf): Define using libm_alias_float.
2106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
2107         <libm-alias-float.h>.
2108         (rintf): Define using libm_alias_float.
2109         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
2110         <libm-alias-float.h>.
2111         (ceilf): Define using libm_alias_float.
2112         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
2113         <libm-alias-float.h>.
2114         (floorf): Define using libm_alias_float.
2115         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
2116         <libm-alias-float.h>.
2117         (fmaf): Define using libm_alias_float.
2118         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
2119         <libm-alias-float.h>.
2120         (lrintf): Define using libm_alias_float.
2121         (llrintf): Likewise.
2122         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
2123         <libm-alias-float.h>.
2124         (nearbyintf): Define using libm_alias_float.
2125         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
2126         <libm-alias-float.h>.
2127         (rintf): Define using libm_alias_float.
2128         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
2129         <libm-alias-float.h>.
2130         (truncf): Define using libm_alias_float.
2131         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
2132         <libm-alias-float.h>.
2133         (copysignf): Define using libm_alias_float.
2134         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
2135         <libm-alias-float.h>.
2136         (fabsf): Define using libm_alias_float.
2137         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
2138         <libm-alias-float.h>.
2139         (lrintf): Define using libm_alias_float.
2140         (llrintf): Likewise.
2141         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
2142         <libm-alias-float.h>.
2143         (nearbyintf): Define using libm_alias_float.
2144         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
2145         <libm-alias-float.h>.
2146         (rintf): Define using libm_alias_float.
2148 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
2150         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2151         <libm-alias-double.h>.
2152         (copysign): Define using libm_alias_double.
2153         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
2154         <libm-alias-double.h>.
2155         (fabs): Define using libm_alias_double.
2156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2157         Include <libm-alias-double.h>.
2158         (copysign): Define using libm_alias_double.
2159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2160         <libm-alias-double.h>.
2161         (fabs): Define using libm_alias_double.
2162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
2163         <libm-alias-double.h>.
2164         (fdim): Define using libm_alias_double.
2165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
2166         <libm-alias-double.h>.
2167         (fma): Define using libm_alias_double.
2168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
2169         <libm-alias-double.h>.
2170         (llrint): Define using libm_alias_double.
2171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
2172         Include <libm-alias-double.h>.
2173         (nearbyint): Define using libm_alias_double.
2174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
2175         <libm-alias-double.h>.
2176         (rint): Define using libm_alias_double.
2177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
2178         <libm-alias-double.h>.
2179         (fabs): Define using libm_alias_double.
2180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
2181         <libm-alias-double.h>.
2182         (llrint): Define using libm_alias_double.
2183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
2184         <libm-alias-double.h>.
2185         (nearbyint): Define using libm_alias_double.
2186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
2187         <libm-alias-double.h>.
2188         (rint): Define using libm_alias_double.
2189         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
2190         <libm-alias-double.h>.
2191         (ceil): Define using libm_alias_double.
2192         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
2193         <libm-alias-double.h>.
2194         (floor): Define using libm_alias_double.
2195         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
2196         <libm-alias-double.h>.
2197         (fma): Define using libm_alias_double.
2198         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
2199         <libm-alias-double.h>.
2200         (lrint): Define using libm_alias_double.
2201         (llrint): Likewise.
2202         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
2203         <libm-alias-double.h>.
2204         (nearbyint): Define using libm_alias_double.
2205         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
2206         <libm-alias-double.h>.
2207         (rint): Define using libm_alias_double.
2208         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
2209         <libm-alias-double.h>.
2210         (trunc): Define using libm_alias_double.
2211         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
2212         <libm-alias-double.h>.
2213         (copysign): Define using libm_alias_double.
2214         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
2215         <libm-alias-double.h>.
2216         (fabs): Define using libm_alias_double.
2217         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
2218         <libm-alias-double.h>.
2219         (lrint): Define using libm_alias_double.
2220         (llrint): Likewise.
2221         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
2222         <libm-alias-double.h>.
2223         (nearbyint): Define using libm_alias_double.
2224         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
2225         <libm-alias-double.h>.
2226         (rint): Define using libm_alias_double.
2228         [BZ #22229]
2229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
2230         <math_ldbl_opt.h>.
2231         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2233         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
2234         SPARC --disable-multi-arch glibc variants.
2236         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
2237         <libm-alias-float.h>.
2238         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2239         if [SHARED].
2240         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
2241         <libm-alias-float.h>.
2242         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2243         if [SHARED].
2244         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
2245         <libm-alias-float.h>.
2246         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2247         if [SHARED].
2248         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
2249         <libm-alias-float.h>.
2250         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2251         if [SHARED].
2252         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
2253         <libm-alias-float.h>.
2254         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2255         if [SHARED].
2256         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
2257         <libm-alias-float.h>.
2258         (ceilf): Define using libm_alias_float.
2259         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
2260         <libm-alias-float.h>.
2261         (floorf): Define using libm_alias_float.
2262         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
2263         <libm-alias-float.h>.
2264         (fmaf): Define using libm_alias_float.
2265         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
2266         <libm-alias-float.h>.
2267         (nearbyintf): Define using libm_alias_float.
2268         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
2269         <libm-alias-float.h>.
2270         (rintf): Define using libm_alias_float.
2271         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
2272         <libm-alias-float.h>.
2273         (truncf): Define using libm_alias_float.
2274         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
2275         (copysignf): Define using libm_alias_float.
2276         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
2277         (cosf): Define using libm_alias_float.
2278         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
2279         (fabsf): Define using libm_alias_float.
2280         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
2281         (fmaxf): Define using libm_alias_float.
2282         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
2283         (fminf): Define using libm_alias_float.
2284         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
2285         (llrintf): Define using libm_alias_float.
2286         [!__ILP32__] (lrintf): Likewise.
2287         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
2288         (sincosf): Define using libm_alias_float.
2289         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
2290         (sinf): Define using libm_alias_float.
2291         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
2292         (lrintf): Define using libm_alias_float.
2294         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
2295         <libm-alias-double.h>.
2296         (atan): Define using libm_alias_double.
2297         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
2298         <libm-alias-double.h>.
2299         (ceil): Define using libm_alias_double.
2300         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
2301         <libm-alias-double.h>.
2302         (floor): Define using libm_alias_double.
2303         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
2304         <libm-alias-double.h>.
2305         (fma): Define using libm_alias_double.
2306         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
2307         <libm-alias-double.h>.
2308         (nearbyint): Define using libm_alias_double.
2309         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
2310         <libm-alias-double.h>.
2311         (rint): Define using libm_alias_double.
2312         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
2313         <libm-alias-double.h>.
2314         (sin): Define using libm_alias_double.
2315         (cos): Likewise.
2316         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
2317         <libm-alias-double.h>.
2318         (tan): Define using libm_alias_double.
2319         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
2320         <libm-alias-double.h>.
2321         (trunc): Define using libm_alias_double.
2322         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
2323         (copysign): Define using libm_alias_double.
2324         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
2325         (fabs): Define using libm_alias_double.
2326         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
2327         (fmax): Define using libm_alias_double.
2328         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
2329         (fmin): Define using libm_alias_double.
2330         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
2331         (llrint): Define using libm_alias_double.
2332         [!__ILP32__] (lrint): Likewise.
2333         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
2334         (lrint): Define using libm_alias_double.
2336 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2338         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2339         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
2340         objects.
2341         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
2342         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
2343         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
2344         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
2345         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
2346         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
2348         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2349         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
2350         objects.
2351         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
2352         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
2353         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
2354         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
2355         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
2356         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
2358         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
2359         (libm-sysdep_routines): Add s_nearbyint-generic and
2360         s_nearbyintf-generic objects.
2361         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
2362         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
2363         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
2364         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
2365         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
2366         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
2368         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
2369         Add s_finitef-generic and s_finite-generic objects.
2370         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
2371         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
2372         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
2373         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
2374         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
2375         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
2377         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
2378         Add s_isinff-generic and s_isinf-generic objects.
2379         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
2380         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
2381         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
2382         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
2383         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
2384         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
2386         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
2387         Add s_isnanf-generic and s_isnan-generic objects.
2388         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
2389         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
2390         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
2391         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
2392         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
2393         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
2395         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
2396         macro.
2397         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
2398         rule.
2399         (sysdep_routines): Use sysdep_calls as base.
2400         (libm-sysdep_routines): Add generic rule for symbols shared with
2401         libc.  Add s_signbit-generic and s_signbitf-generic objects.
2402         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
2403         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
2404         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
2405         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
2406         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
2407         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
2409 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
2411         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
2412         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
2413         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
2414         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
2415         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
2416         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
2417         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
2418         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
2419         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
2420         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
2421         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
2422         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
2423         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
2424         libm_alias_float_r.
2425         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
2426         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
2427         (logf): Likewise.
2428         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
2429         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
2430         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
2431         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
2432         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
2433         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
2434         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
2435         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
2436         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
2437         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
2438         libm_alias_float.
2439         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
2440         (cosf): Likewise.
2441         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
2442         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
2443         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
2444         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
2445         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
2446         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
2447         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
2448         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
2449         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
2450         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
2451         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
2452         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
2453         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
2454         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
2455         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
2456         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
2457         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
2458         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
2459         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
2460         libm_alias_float.
2461         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
2462         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
2463         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
2464         * sysdeps/ia64/fpu/w_lgammaf_main.c
2465         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
2466         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
2468 2017-11-28  Mike FABIAN  <mfabian@redhat.com>, Alexandre Oliva <aoliva@redhat.com>
2470         [BZ #17750]
2471         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
2472         * localedata/fr_CA.UTF-8.in: New file with test data for backward
2473         accents sorting.
2474         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
2475         sorting.
2476         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
2477         * localedata/locales/de_DE (LC_COLLATE): Likewise.
2478         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
2479         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
2480         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
2481         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
2482         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
2483         instead of “ifdef DIACRIT_BACKWARD”.
2485 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2487         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
2488         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
2489         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
2490         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
2491         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
2492         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
2493         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
2494         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
2495         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
2496         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
2497         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
2498         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
2499         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
2500         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
2501         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
2502         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
2503         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
2504         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
2505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
2506         ($(have-as-vis3) == yes): Remove conditional.
2507         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
2508         Likewise.
2509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
2510         file.
2511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
2512         file.
2513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
2514         file.
2515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
2516         file.
2517         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
2518         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
2519         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
2520         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
2521         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
2522         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
2523         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
2524         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
2526 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
2528         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
2529         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
2530         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
2531         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
2532         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
2533         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
2534         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
2535         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
2536         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
2537         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
2538         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
2539         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
2540         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
2541         libm_alias_double_r.
2542         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
2543         (log): Likewise.
2544         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
2545         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
2546         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
2547         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
2548         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
2549         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
2550         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
2551         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
2552         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
2553         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
2554         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
2555         libm_alias_double.
2556         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
2557         (cos): Likewise.
2558         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
2559         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
2560         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
2561         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
2562         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
2563         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
2564         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
2565         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
2566         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
2567         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
2568         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
2569         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
2570         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
2571         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
2572         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
2573         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
2574         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
2575         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
2576         libm_alias_double.
2577         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
2578         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
2579         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
2580         * sysdeps/ia64/fpu/w_lgamma_main.c
2581         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
2582         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
2584 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
2586         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
2587         address of $global$ into %dp register earlier.  Use pc-relative
2588         instruction sequence for PIC case.
2590 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
2592         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
2593         (asinhf): Define using libm_alias_float.
2594         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
2595         (atanf): Define using libm_alias_float.
2596         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
2597         (cbrtf): Define using libm_alias_float.
2598         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
2599         (ceilf): Define using libm_alias_float.
2600         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
2601         (copysignf): Define using libm_alias_float.
2602         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
2603         (expm1f): Define using libm_alias_float.
2604         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
2605         (fabsf): Define using libm_alias_float.
2606         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
2607         (floorf): Define using libm_alias_float.
2608         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
2609         (fmaxf): Define using libm_alias_float.
2610         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
2611         (fminf): Define using libm_alias_float.
2612         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
2613         (frexpf): Define using libm_alias_float.
2614         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
2615         (llrintf): Define using libm_alias_float.
2616         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
2617         (logbf): Define using libm_alias_float.
2618         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
2619         (lrintf): Define using libm_alias_float.
2620         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
2621         (nearbyintf): Define using libm_alias_float.
2622         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
2623         (remquof): Define using libm_alias_float.
2624         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
2625         (rintf): Define using libm_alias_float.
2626         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
2627         (truncf): Define using libm_alias_float.
2628         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
2629         <libm-alias-float.h>.
2630         (exp2f): Define using libm_alias_float, or libm_alias_float_other
2631         if [SHARED].
2632         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
2633         <libm-alias-float.h>.
2634         (expf): Define using libm_alias_float, or libm_alias_float_other
2635         if [SHARED].
2636         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
2637         <libm-alias-float.h>.
2638         (log2f): Define using libm_alias_float, or libm_alias_float_other
2639         if [SHARED].
2640         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
2641         <libm-alias-float.h>.
2642         (logf): Define using libm_alias_float, or libm_alias_float_other
2643         if [SHARED].
2644         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
2645         <libm-alias-float.h>.
2646         (powf): Define using libm_alias_float, or libm_alias_float_other
2647         if [SHARED].
2648         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
2649         <libm-alias-float.h>.
2650         (cosf): Define using libm_alias_float.
2651         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
2652         <libm-alias-float.h>.
2653         (sincosf): Define using libm_alias_float.
2654         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
2655         <libm-alias-float.h>.
2656         (sinf): Define using libm_alias_float.
2657         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
2658         (fmaxf): Define using libm_alias_float.
2659         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
2660         (fminf): Define using libm_alias_float.
2661         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
2662         <libm-alias-float.h>.
2663         (fmaf): Define using libm_alias_float.
2665         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
2666         (asinh): Define using libm_alias_double.
2667         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
2668         (atan): Define using libm_alias_double.
2669         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
2670         (cbrt): Define using libm_alias_double.
2671         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
2672         (ceil): Define using libm_alias_double.
2673         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
2674         (copysign): Define using libm_alias_double.
2675         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
2676         (expm1): Define using libm_alias_double.
2677         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
2678         (fabs): Define using libm_alias_double.
2679         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
2680         (fdim): Define using libm_alias_double.
2681         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
2682         (floor): Define using libm_alias_double.
2683         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
2684         (fmax): Define using libm_alias_double.
2685         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
2686         (fmin): Define using libm_alias_double.
2687         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
2688         (frexp): Define using libm_alias_double.
2689         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
2690         (llrint): Define using libm_alias_double.
2691         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
2692         (logb): Define using libm_alias_double.
2693         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
2694         (lrint): Define using libm_alias_double.
2695         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
2696         (nearbyint): Define using libm_alias_double.
2697         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
2698         (remquo): Define using libm_alias_double.
2699         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
2700         (rint): Define using libm_alias_double.
2701         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
2702         (trunc): Define using libm_alias_double.
2703         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
2704         (fmax): Define using libm_alias_double.
2705         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
2706         (fmin): Define using libm_alias_double.
2707         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
2708         (fma): Define using libm_alias_double.
2710 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
2712         [BZ #22370]
2713         * elf/dl-hwcaps.c (ROUND): Removed.
2714         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
2715         and ELF_NOTE_NEXT_OFFSET.
2716         * elf/dl-load.c (ROUND): Removed.
2717         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
2718         * elf/readelflib.c (ROUND): Removed.
2719         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
2720         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
2721         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
2722         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
2724 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
2726         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
2727         [!__fmaf] (fmaf): Define using libm_alias_float.
2729         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
2730         [!__fma] (fma): Define using libm_alias_double.
2731         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
2733 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
2735         [BZ #22336]
2736         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
2737         and implement the collation rules for cs from CLDR on top of that.
2738         * Makefile: Add cs_CZ.UTF-8 to test-input.
2739         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
2741 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2743         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
2745 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
2746             Icarus Sparry  <icarus.w.sparry@intel.com>
2748         * benchtests/Makefile:Add BENCHSET to allow subsets of
2749         benchmarks to be run.
2750         * benchtests/README: Add documentation for: Running subsets of
2751         benchmarks.
2753 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
2755         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
2756         range of tests names.
2758         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
2759         result from property and remove "max", min" and "mean" from
2760         required properties based on benchtests/bench-skeleton.c.
2762 2017-11-28  Florian Weimer  <fweimer@redhat.com>
2764         [BZ #20826]
2765         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
2766         due to Internet requirement.
2767         * posix/Makefile (tests): Remove tst-getaddrinfo4,
2768         tst-getaddrinfo5.
2769         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
2771 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2773         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
2774         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
2775         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
2776         (sysdep_routines): Add memset-ultra1.
2777         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
2778         file.
2779         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
2780         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
2781         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
2782         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
2783         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
2784         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
2785         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
2786         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2788         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
2789         file.
2790         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
2791         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
2792         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
2793         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
2794         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
2795         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
2796         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
2797         macro.
2798         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
2799         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
2800         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
2801         (sysdep_routines): Add memcpy-ultra1.
2802         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
2803         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
2805 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
2807         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
2808         (cfloat_versions): Take function argument without trailing 'f'.
2809         Call libm_alias_float_other.
2810         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
2811         * sysdeps/alpha/fpu/cargf.c: Likewise.
2812         * sysdeps/alpha/fpu/cimagf.c: Likewise.
2813         * sysdeps/alpha/fpu/conjf.c: Likewise.
2814         * sysdeps/alpha/fpu/crealf.c: Likewise.
2815         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
2816         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
2817         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
2818         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
2819         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
2820         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
2821         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
2822         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
2823         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
2824         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
2825         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
2826         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
2827         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
2828         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
2829         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
2830         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
2831         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
2832         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
2833         (clog10f): Use libm_alias_float_other.
2834         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
2835         (ceilf): Define using libm_alias_float.
2836         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
2837         (copysignf): Define using libm_alias_float.
2838         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
2839         (fabsf): Define using libm_alias_float.
2840         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
2841         (floorf): Define using libm_alias_float.
2842         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
2843         (fmaxf): Define using libm_alias_float.
2844         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
2845         (fminf): Define using libm_alias_float.
2846         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
2847         (lrintf): Define using libm_alias_float.
2848         (llrintf): Likewise.
2849         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
2850         (lroundf): Define using libm_alias_float.
2851         (llroundf): Likewise.
2852         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
2853         (rintf): Define using libm_alias_float.
2854         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
2855         (truncf): Define using libm_alias_float.
2857         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
2858         (ceilf): Define using libm_alias_float.
2859         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
2860         (floorf): Define using libm_alias_float.
2861         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
2862         (fmaf): Define using libm_alias_float.
2863         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
2864         (fmaxf): Define using libm_alias_float.
2865         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
2866         (fminf): Define using libm_alias_float.
2867         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
2868         (llrintf): Define using libm_alias_float.
2869         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
2870         (llroundf): Define using libm_alias_float.
2871         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
2872         (lrintf): Define using libm_alias_float.
2873         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
2874         (lroundf): Define using libm_alias_float.
2875         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
2876         <libm-alias-float.h>.
2877         (nearbyintf): Define using libm_alias_float.
2878         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
2879         (rintf): Define using libm_alias_float.
2880         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
2881         (roundf): Define using libm_alias_float.
2882         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
2883         (truncf): Define using libm_alias_float.
2885         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
2886         (ceil): Define using libm_alias_double.
2887         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
2888         (copysign): Define using libm_alias_double.
2889         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
2890         (fabs): Define using libm_alias_double.
2891         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
2892         (floor): Define using libm_alias_double.
2893         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
2894         (fmax): Define using libm_alias_double.
2895         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
2896         (fmin): Define using libm_alias_double.
2897         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
2898         (lrint): Define using libm_alias_double.
2899         (llrint): Likewise.
2900         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
2901         (lround): Define using libm_alias_double.
2902         (llround): Likewise.
2903         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
2904         (rint): Define using libm_alias_double.
2905         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
2906         (trunc): Define using libm_alias_double.
2908         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2909         (libm_alias_double_r): Add semicolon after weak_alias call.
2911 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
2913         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
2914         (ceil): Define using libm_alias_double.
2915         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
2916         (floor): Define using libm_alias_double.
2917         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
2918         (fma): Define using libm_alias_double.
2919         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
2920         (fmax): Define using libm_alias_double.
2921         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
2922         (fmin): Define using libm_alias_double.
2923         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
2924         (llrint): Define using libm_alias_double.
2925         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
2926         (llround): Define using libm_alias_double.
2927         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
2928         (lrint): Define using libm_alias_double.
2929         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
2930         (lround): Define using libm_alias_double.
2931         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
2932         (nearbyint): Define using libm_alias_double.
2933         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
2934         (rint): Define using libm_alias_double.
2935         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
2936         (round): Define using libm_alias_double.
2937         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
2938         (trunc): Define using libm_alias_double.
2940 2017-11-27  Florian Weimer  <fweimer@redhat.com>
2942         * sysdeps/unix/sysv/linux/mlock2.c: New file.
2943         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
2944         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
2945         (tests): Add tst-mlock2.
2946         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
2947         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
2948         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
2949         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
2950         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
2951         for mlock.  Document mlock2.
2953 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
2955         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
2956         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
2957         Likewise.
2958         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
2959         Likewise.
2960         * sysdeps/x86/Makeconfig: New file.
2961         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
2962         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2963         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
2964         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2965         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2966         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2967         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
2968         Likewise.
2969         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2970         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2971         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2972         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2973         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2974         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
2975         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
2976         * manual/math.texi (Mathematics): Document support for _Float64x.
2977         * math/Versions (GLIBC_2.27): Add _Float64x functions.
2978         * stdlib/Versions (GLIBC_2.27): Likewise.
2979         * wcsmbs/Versions (GLIBC_2.27): Likewise.
2980         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
2981         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2982         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2983         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2984         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2985         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2986         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2987         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2988         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2989         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2990         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2992         Likewise.
2993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2994         Likewise.
2995         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2996         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2997         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2998         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2999         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3000         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3001         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3002         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3003         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3004         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3005         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3006         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3007         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
3008         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3010 2017-11-27  Andreas Schwab  <schwab@suse.de>
3012         * elf/Makefile (dl-routines): Add dl-sort-maps.
3013         * elf/dl-sort-maps.c: New file.
3014         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
3015         (_dl_sort_maps): Declare.
3016         * elf/dl-fini.c (_dl_sort_fini): Remove.
3017         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
3018         * elf/dl-close.c (_dl_close_worker): Likewise.
3019         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
3020         open-coding it.
3021         * elf/dl-open.c (dl_open_worker): Likewise.
3023 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
3025         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
3026         using libm_alias_float128.
3027         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
3028         Likewise.
3029         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
3030         Likewise.
3031         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
3032         (setpayloadsigf128): Likewise.
3033         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
3034         Likewise.
3035         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
3036         Likewise.
3038         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
3039         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
3040         -mfloat128 to CFLAGS.
3041         ($(foreach
3042         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
3043         Likewise.
3044         (CFLAGS-libm-test-support-float64x.c): New variable.
3045         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
3046         $(f128-loader-link) to gnulib-tests.
3048         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
3049         (libm_alias_float128_other_r): If
3050         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
3051         alias.
3052         (libm_alias_float128_r): Add semicolon after weak_alias call.
3053         * sysdeps/generic/libm-alias-ldouble.h
3054         (libm_alias_ldouble_other_r_f128): New macro.
3055         (libm_alias_ldouble_other_r_f64x): Likewise.
3056         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
3057         and libm_alias_ldouble_other_r_f64x.
3058         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
3059         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
3060         (libm_alias_ldouble_other_r_f128): New macro.
3061         (libm_alias_ldouble_other_r_f64x): Likewise.
3062         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
3063         and libm_alias_ldouble_other_r_f64x.
3065         * stdlib/strfroml.c: Always include <stdlib.h>.
3066         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
3067         undefine as macro and define as weak alias.
3068         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
3069         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
3070         <stdlib.h>.
3071         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
3072         Define and later undefine as macro and define as weak alias.
3074         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
3075         Define and later undefine as macro.  Define as weak alias if
3076         [!USE_WIDE_CHAR].
3077         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
3078         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3079         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
3080         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
3081         Define and later undefine as macro.  Define as weak alias if
3082         [!USE_WIDE_CHAR].
3083         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
3084         Define and later undefine as macro.  Define as weak alias if
3085         [USE_WIDE_CHAR].
3086         * sysdeps/ieee754/float128/strtof128_l.c
3087         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
3088         Define and later undefine as macro.  Define as weak alias if
3089         [!USE_WIDE_CHAR].
3090         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
3091         Define and later undefine as macro.  Define as weak alias if
3092         [USE_WIDE_CHAR].
3093         * sysdeps/ieee754/ldbl-128/strtold_l.c
3094         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
3095         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3096         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
3097         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3098         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
3099         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
3100         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3101         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
3102         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3103         * sysdeps/ieee754/ldbl-96/strtold_l.c
3104         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
3105         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
3106         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
3107         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
3109         * math/test-float64x.h: New file.
3110         * math/Makefile (type-float64x-yes): New variable.
3111         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
3113         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
3114         function-like macro.
3115         (min_of_type_): Likewise.
3116         (min_of_type_l): Likewise.
3117         (min_of_type_f128): Likewise.
3118         (min_of_type): Pass () as last argument of __MATH_TG.
3120         * stdlib/tst-strtod-round-skeleton.c
3121         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
3122         headers.
3124         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
3125         for combinations of long double with _Float64 and _Float64x.
3127         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
3128         (__DECL_SIMD_cosf32): Likewise.
3129         (__DECL_SIMD_cosf64): Likewise.
3130         (__DECL_SIMD_cosf32x): Likewise.
3131         (__DECL_SIMD_cosf64x): Likewise.
3132         (__DECL_SIMD_cosf128x): Likewise.
3133         (__DECL_SIMD_sinf16): Likewise.
3134         (__DECL_SIMD_sinf32): Likewise.
3135         (__DECL_SIMD_sinf64): Likewise.
3136         (__DECL_SIMD_sinf32x): Likewise.
3137         (__DECL_SIMD_sinf64x): Likewise.
3138         (__DECL_SIMD_sinf128x): Likewise.
3139         (__DECL_SIMD_sincosf16): Likewise.
3140         (__DECL_SIMD_sincosf32): Likewise.
3141         (__DECL_SIMD_sincosf64): Likewise.
3142         (__DECL_SIMD_sincosf32x): Likewise.
3143         (__DECL_SIMD_sincosf64x): Likewise.
3144         (__DECL_SIMD_sincosf128x): Likewise.
3145         (__DECL_SIMD_logf16): Likewise.
3146         (__DECL_SIMD_logf32): Likewise.
3147         (__DECL_SIMD_logf64): Likewise.
3148         (__DECL_SIMD_logf32x): Likewise.
3149         (__DECL_SIMD_logf64x): Likewise.
3150         (__DECL_SIMD_logf128x): Likewise.
3151         (__DECL_SIMD_expf16): Likewise.
3152         (__DECL_SIMD_expf32): Likewise.
3153         (__DECL_SIMD_expf64): Likewise.
3154         (__DECL_SIMD_expf32x): Likewise.
3155         (__DECL_SIMD_expf64x): Likewise.
3156         (__DECL_SIMD_expf128x): Likewise.
3157         (__DECL_SIMD_powf16): Likewise.
3158         (__DECL_SIMD_powf32): Likewise.
3159         (__DECL_SIMD_powf64): Likewise.
3160         (__DECL_SIMD_powf32x): Likewise.
3161         (__DECL_SIMD_powf64x): Likewise.
3162         (__DECL_SIMD_powf128x): Likewise.
3164         * stdlib/Versions (libc): Move entries for wcstof128 and
3165         wcstof128_l to ....
3166         * wcsmbs/Versions (libc): ... here.
3167         Include <float128-abi.h>.
3169 2017-11-24  Florian Weimer  <fweimer@redhat.com>
3171         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3172         bits/mman-shared.h.
3173         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
3174         <bits/mman-shared.h>.
3175         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
3176         to ...
3177         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
3178         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
3179         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
3180         <bits/mman-shared.h>.
3182 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3184         [BZ #22457]
3185         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
3186         posix_memalign/free.
3187         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
3189 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
3191         [BZ #22469]
3192         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
3193         and implement the collation rules for pl from CLDR on top of that.
3194         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
3195         of locales to be built for testing.
3196         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
3198 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
3200         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
3201         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
3202         libm_alias_ldouble_other.
3203         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
3204         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
3205         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
3206         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
3207         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
3208         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
3209         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
3210         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
3211         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
3212         libm_alias_ldouble_r.
3213         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
3214         libm_alias_ldouble_other.
3215         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
3216         (log10l): Likewise.
3217         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
3218         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
3219         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
3220         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
3221         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
3222         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
3223         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
3224         (atan2l): Likewise.
3225         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
3226         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
3227         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
3228         libm_alias_ldouble.
3229         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
3230         (cosl): Likewise.
3231         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
3232         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
3233         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
3234         (expl): Likewise.
3235         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
3236         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
3237         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
3238         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
3239         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
3240         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
3241         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
3242         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
3243         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
3244         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
3245         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
3246         libm_alias_ldouble.
3247         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
3248         libm_alias_ldouble_other.
3249         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
3250         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
3251         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
3252         libm_alias_ldouble.
3253         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
3254         libm_alias_ldouble_other.
3255         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
3256         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
3257         * sysdeps/ia64/fpu/w_lgammal_main.c
3258         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
3259         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
3261 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3263         * malloc/malloc.c (tcache_thread_shutdown): Rename from
3264         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
3265         alike.  Remove freeres marker.
3266         * malloc/arena.c (arena_thread_freeres): Call
3267         tcache_thread_shutdown.
3269 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3271         [BZ #22459]
3272         Export nscd hash function as __nss_hash.
3273         * include/nss.h (__nss_hash): Declare.
3274         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
3275         symbol.
3276         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
3277         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
3278         of __nscd_hash.
3279         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
3280         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
3281         * nss/Makefiles (routines): Add nss_hash.
3282         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
3283         * nss/nss_hash.c: Rename from nis/nis_hash.c.
3284         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
3285         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
3287 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3289         [BZ #22478]
3290         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
3291         Return error code, not -1.
3292         * signal/tst-sigwait-eintr.c: New file.
3293         * signal/Makefile (tests): Add tst-sigwait-eintr.
3295 2017-11-23  Florian Weimer  <fweimer@redhat.com>
3297         Linux: Add memfd_create system call wrapper
3298         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
3299         tst-memfd_create.
3300         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
3301         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
3302         [__USE_GNU] (memfd_create): Declare.
3303         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
3304         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
3305         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
3306         * sysdeps/unix/sysv/linux/**.abilist: Update.
3307         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
3309 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
3311         * localedata/gen-locale.sh: Fix typo in variable name.
3313         * resolv/res_debug.c (p_secstodate): Condition definition on
3314         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
3315         directly as __p_secstodate, and as a compat symbol.  Do not use
3316         libresolv_hidden_def.
3317         * resolv/resolv.h (p_secstodate): Remove macro and function
3318         declaration.
3319         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
3320         using p_secstodate.
3321         * include/resolv.h (__p_secstodate): Do not use
3322         libresolv_hidden_proto.
3323         * resolv/Makefile (tests): Move tst-p_secstodate to ....
3324         (tests-internal): ... here.
3325         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
3326         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
3327         and declare and use __p_secstodate and use compat_symbol_reference
3328         in that case.
3329         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
3330         implementation returning 77.
3332         [BZ #22463]
3333         * resolv/res_debug.c: Include <libc-diag.h>.
3334         (p_secstodate): Assert time_t at least as wide as u_long.  On
3335         overflow, use integer seconds since the epoch as output, or use
3336         "<overflow>" as output and set errno to EOVERFLOW if integer
3337         seconds since the epoch would be 14 or more characters.
3338         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
3339         for sprintf call.
3340         * resolv/tst-p_secstodate.c: New file.
3341         * resolv/Makefile (tests): Add tst-p_secstodate.
3342         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
3344         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
3345         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
3346         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
3348 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
3350         * posix/regcomp.c (init_word_char): Add comments.
3352 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
3354         [BZ #22447]
3355         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
3356         strlen to compute length of ut_user and set trailing NUL byte of
3357         result explicitly.
3359 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
3361         [BZ #15537]
3362         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
3363         using “copy "iso14651_t1"” and then implementing the
3364         collation rules for lv from CLDR on top of that.
3365         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
3366         of locales to be built for testing.
3367         * lv_LV.UTF-8.in: New file with test data to test the Latvian
3368         sorting.
3370 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
3372         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
3373         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
3374         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
3375         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
3376         [__USE_MISC] (MADV_HWPOISON): New macro.
3377         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
3379 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3381         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
3382         -Wmissing-braces on GCC 4.9.
3384 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3386         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
3387         * sysdeps/s390/s390-32/start.S (_start): Likewise
3388         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
3389         (thread_start): Likewise.
3390         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
3391         (thread_start): Likewise.
3392         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
3393         (__makecontext_ret): Likewise.
3394         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
3395         (__makecontext_ret): Likewise.
3397 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
3399         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
3400         __wcschrnul): Remove attribute_hidden.
3402 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3404         regex: don't assume uint64_t or uint32_t
3405         This avoids -Werror=overflow errors for 32-bit systems in
3406         the 64-bit case.  Problem reported by Joseph Myers in:
3407         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
3408         Also, when this code is used in Gnulib it ports to platforms
3409         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
3410         them, and on some 32-bit compilers there is no uint64_t.
3411         Problem reported by Gianluigi Tiesi in:
3412         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
3413         * posix/regcomp.c (init_word_char): Don't assume that the types
3414         uint64_t and uint32_t exist.  Adapted from Gnulib patch
3415         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
3416         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
3418 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3420         * sysdeps/aarch64/memset-reg.h: New file.
3421         * sysdeps/aarch64/memset.S: Use it.
3422         (__memset): Rename to MEMSET macro.
3423         [ZVA_MACRO]: Use zva_macro.
3424         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3425         Add memset_generic and memset_falkor.
3426         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3427         (__libc_ifunc_impl_list): Add memset ifuncs.
3428         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
3429         local variable zva_size.
3430         * sysdeps/aarch64/multiarch/memset.c: New file.
3431         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
3432         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
3433         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
3434         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
3435         (DCZID_DZP_MASK): New macro.
3436         (DCZID_BS_MASK): Likewise.
3437         (init_cpu_features): Read and set zva_size.
3438         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
3439         (struct cpu_features): New member zva_size.
3441         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
3442         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
3443         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
3445         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
3446         backwards.  Fix timing computation.
3447         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
3448         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
3449         on memset by N at a time.  Fix timing computation.
3451 2017-11-20  Florian Weimer  <fweimer@redhat.com>
3453         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
3454         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
3456 2017-11-19  Florian Weimer  <fweimer@redhat.com>
3458         manual: Document mprotect
3459         * manual/memory.texi (Memory Protection): New section.
3460         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
3461         documentation of PROT_* flags and reference the Memory Protection
3462         section instead.
3464 2017-11-19  Florian Weimer  <fweimer@redhat.com>
3466         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
3467         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
3468         (Scatter-Gather): ... to here.  Remove misleading comment.
3470 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
3472         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
3473         style.
3475         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
3476         when /proc/<pid>/setgroups does not exist.
3478 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3480         * sysdeps/unix/sysv/linux/tst-ttyname.c
3481         (become_root_in_mount_ns): Remove.
3482         (do_in_chroot_1): Call support_enter_mount_namespace.
3483         (do_in_chroot_2): Likewise.
3484         (do_test): Call support_become_root early.
3486 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3488         * support/namespace.h (support_enter_mount_namespace): Declare.
3489         * support/support_enter_mount_namespace.c: New file.
3490         * support/Makefile (libsupport-routines): Add
3491         support_enter_mount_namespace.
3493 2017-11-18  Florian Weimer  <fweimer@redhat.com>
3495         * support/temp_file.c (support_create_temp_directory): Use
3496         test_dir and do not rely on the presence of the XXXXXX suffix.
3497         * support/temp_file.h (support_create_temp_directory): Update
3498         comment.
3499         * support/tst-xreadlink.c (do_test): Adjust.
3500         * support/support_chroot.c (support_chroot_create): Likewise.
3502 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3504         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
3505         macro.
3506         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
3507         htm-no-suspend.
3509 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
3511         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
3512         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
3513         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
3514         (ceill): Define using libm_alias_ldouble.
3515         * sysdeps/x86_64/fpu/s_copysignl.S: Include
3516         <libm-alias-ldouble.h>.
3517         (copysignl): Define using libm_alias_ldouble.
3518         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
3519         (fabsl): Define using libm_alias_ldouble.
3520         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
3521         (floorl): Define using libm_alias_ldouble.
3522         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
3523         (fmaxl): Define using libm_alias_ldouble.
3524         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
3525         (fminl): Define using libm_alias_ldouble.
3526         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
3527         (llrintl): Define using libm_alias_ldouble.
3528         (lrintl): Likewise.
3529         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
3530         <libm-alias-ldouble.h>.
3531         (nearbyintl): Define using libm_alias_ldouble.
3532         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
3533         (truncl): Define using libm_alias_ldouble.
3534         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
3535         <libm-alias-ldouble.h>.
3536         (lrintl): Define using libm_alias_ldouble.
3538         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
3539         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
3540         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
3541         (asinhl): Define using libm_alias_ldouble.
3542         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
3543         (atanl): Define using libm_alias_ldouble.
3544         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
3545         (cbrtl): Define using libm_alias_ldouble.
3546         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
3547         (ceill): Define using libm_alias_ldouble.
3548         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
3549         (copysignl): Define using libm_alias_ldouble.
3550         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
3551         (fabsl): Define using libm_alias_ldouble.
3552         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
3553         (floorl): Define using libm_alias_ldouble.
3554         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
3555         (fmaxl): Define using libm_alias_ldouble.
3556         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
3557         (fminl): Define using libm_alias_ldouble.
3558         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
3559         (frexpl): Define using libm_alias_ldouble.
3560         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
3561         (llrintl): Define using libm_alias_ldouble.
3562         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
3563         (logbl): Define using libm_alias_ldouble.
3564         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
3565         (lrintl): Define using libm_alias_ldouble.
3566         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
3567         (nearbyintl): Define using libm_alias_ldouble.
3568         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
3569         (nextafterl): Define using libm_alias_ldouble.
3570         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
3571         (remquol): Define using libm_alias_ldouble.
3572         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
3573         (rintl): Define using libm_alias_ldouble.
3574         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
3575         (truncl): Define using libm_alias_ldouble.
3576         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
3577         (fmaxl): Define using libm_alias_ldouble.
3578         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
3579         (fminl): Define using libm_alias_ldouble.
3581         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
3582         to C syntax instead of availability and properties of types.
3583         * bits/floatn.h [!__ASSEMBLER]: Likewise.
3584         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
3585         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
3586         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
3587         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
3588         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
3590 2017-11-17  Florian Weimer  <fweimer@redhat.com>
3592         support_become_root: Enable file creation in namespaces.
3593         * support/support_become_root.c (setup_mapping): New function.
3594         (support_become_root): Call it.
3596 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
3598         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
3599         macro.
3601 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3603         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
3604         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
3606 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
3608         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
3610         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3611         version to 4.14.
3613 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3615         * INSTALL: Fix botched up regeneration.
3617         * NEWS: Update sourceare link to https.
3618         * configure.ac: Likewise.
3619         * crypt/md5test-giant.c: Likewise.
3620         * dlfcn/bug-atexit1.c: Likewise.
3621         * dlfcn/bug-atexit2.c: Likewise.
3622         * localedata/README: Likewise.
3623         * malloc/tst-mallocfork.c: Likewise.
3624         * manual/install.texi: Likewise.
3625         * nptl/tst-pthread-getattr.c: Likewise.
3626         * stdio-common/tst-fgets.c: Likewise.
3627         * stdio-common/tst-fwrite.c: Likewise.
3628         * sunrpc/Makefile: Likewise.
3629         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
3630         * wcsmbs/tst-mbrtowc2.c: Likewise.
3631         * configure: Regenerate.
3632         * INSTALL: Regenerate.
3634 2017-11-15  Martin Sebor  <msebor@redhat.com>
3636         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
3637         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
3638         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
3640 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
3642         [BZ #22145]
3643         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
3644         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
3646         [BZ #22145]
3647         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
3648         Defer is_pty check until end of the function.
3649         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
3651         [BZ #22145]
3652         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
3653         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
3654         (ttyname): Likewise.
3655         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
3656         (__ttyname_r): Likewise.
3658         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
3659         int to bool.
3661         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
3663         * manual/terminal.texi (Is It a Terminal):
3664         Mention ENODEV for ttyname and ttyname_r.
3666 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
3668         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
3669         constant and macro.
3671         * sysdeps/unix/sysv/linux/bits/mman-linux.h
3672         [__USE_MISC] (MADV_WIPEONFORK): New macro.
3673         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
3674         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
3675         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
3676         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
3678 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3680         * signal/sigrelse.c (sigrelse): Optimize implementation.
3682         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
3683         (__sigpause): Rely on __sigsuspend to implement single thread
3684         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
3686 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
3688         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3689         kernel version to 4.14.
3691 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
3693         [BZ #22442]
3694         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
3695         Check if ifname is too long.
3697 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
3699         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
3701 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
3703         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
3704         was accidentally lost.
3706 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
3708         * localedata/locales/az_IR: Add standard copyright header.
3710 2017-11-15  Florian Weimer  <fweimer@redhat.com>
3712         [BZ #22439]
3713         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
3714         not just the top one.  Output a new "subheaps" statistic.
3716 2017-11-15  Florian Weimer  <fweimer@redhat.com>
3718         [BZ #22408]
3719         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
3720         under the per-arena lock.
3721         * malloc/Makefile (tests): Add tst-malloc_info.
3722         (tst-malloc_info): Link with libpthread.
3723         * malloc/tst-malloc_info.c: New file.
3725 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
3727         [BZ #21660]
3728         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
3729         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
3730         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
3731         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
3732         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
3733         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
3734         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
3735         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
3736         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
3737         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
3738         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
3739         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
3740         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
3741         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
3742         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
3743         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
3744         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
3745         (__floating_type): Likewise.
3746         (__real_integer_type): Likewise.
3747         (__complex_integer_type): Likewise.
3748         (__expr_is_real): Likewise.
3749         (__tgmath_real_type_sub): Likewise.
3750         (__tgmath_real_type): Likewise.
3751         (__tgmath_complex_type_sub): Likewise.
3752         (__tgmath_complex_type): Likewise.
3753         (__TGMATH_F128): Likewise.
3754         (__TGMATH_CF128): Likewise.
3755         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
3756         new macros.
3757         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
3758         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
3759         Likewise.
3760         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
3761         Likewise.
3762         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
3763         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
3764         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
3765         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
3766         Likewise.
3767         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
3768         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
3769         Likewise.
3770         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
3771         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
3772         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
3773         Likewise.
3774         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
3775         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
3776         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
3777         (cimag): Likewise.
3778         (creal): Likewise.
3780 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
3782         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
3783         for stpncpy calls for GCC 8.
3784         (test_strncat): Disable -Wstringop-truncation warning for strncat
3785         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
3786         strncat call for GCC 7.
3787         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
3788         calls for GCC 8.
3789         (test_memcmp): Use memcpy instead of strncpy for calls not copying
3790         trailing NUL.
3792         * string/bug-strncat1.c: Include <libc-diag.h>.
3793         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
3795 2017-11-13  Claude Paroz <claude@2xlibre.net>
3797         [BZ #22387]
3798         * localedata/locales/aa_DJ: Improved readibility by replacing
3799         <Uxxxx> sequences in the ASCII printable range by their ASCII
3800         character equivalents.
3801         * localedata/locales/aa_ER: Likewise.
3802         * localedata/locales/aa_ER@saaho: Likewise.
3803         * localedata/locales/aa_ET: Likewise.
3804         * localedata/locales/af_ZA: Likewise.
3805         * localedata/locales/agr_PE: Likewise.
3806         * localedata/locales/ak_GH: Likewise.
3807         * localedata/locales/am_ET: Likewise.
3808         * localedata/locales/anp_IN: Likewise.
3809         * localedata/locales/ar_AE: Likewise.
3810         * localedata/locales/ar_BH: Likewise.
3811         * localedata/locales/ar_DZ: Likewise.
3812         * localedata/locales/ar_EG: Likewise.
3813         * localedata/locales/ar_IN: Likewise.
3814         * localedata/locales/ar_IQ: Likewise.
3815         * localedata/locales/ar_JO: Likewise.
3816         * localedata/locales/ar_KW: Likewise.
3817         * localedata/locales/ar_LB: Likewise.
3818         * localedata/locales/ar_LY: Likewise.
3819         * localedata/locales/ar_MA: Likewise.
3820         * localedata/locales/ar_OM: Likewise.
3821         * localedata/locales/ar_QA: Likewise.
3822         * localedata/locales/ar_SA: Likewise.
3823         * localedata/locales/ar_SD: Likewise.
3824         * localedata/locales/ar_SS: Likewise.
3825         * localedata/locales/ar_SY: Likewise.
3826         * localedata/locales/ar_TN: Likewise.
3827         * localedata/locales/ar_YE: Likewise.
3828         * localedata/locales/as_IN: Likewise.
3829         * localedata/locales/ast_ES: Likewise.
3830         * localedata/locales/ayc_PE: Likewise.
3831         * localedata/locales/az_AZ: Likewise.
3832         * localedata/locales/az_IR: Likewise.
3833         * localedata/locales/be_BY: Likewise.
3834         * localedata/locales/be_BY@latin: Likewise.
3835         * localedata/locales/bem_ZM: Likewise.
3836         * localedata/locales/ber_DZ: Likewise.
3837         * localedata/locales/ber_MA: Likewise.
3838         * localedata/locales/bg_BG: Likewise.
3839         * localedata/locales/bhb_IN: Likewise.
3840         * localedata/locales/bho_IN: Likewise.
3841         * localedata/locales/bi_VU: Likewise.
3842         * localedata/locales/bn_BD: Likewise.
3843         * localedata/locales/bn_IN: Likewise.
3844         * localedata/locales/bo_CN: Likewise.
3845         * localedata/locales/bo_IN: Likewise.
3846         * localedata/locales/br_FR: Likewise.
3847         * localedata/locales/brx_IN: Likewise.
3848         * localedata/locales/bs_BA: Likewise.
3849         * localedata/locales/byn_ER: Likewise.
3850         * localedata/locales/ca_AD: Likewise.
3851         * localedata/locales/ca_ES: Likewise.
3852         * localedata/locales/ca_FR: Likewise.
3853         * localedata/locales/ca_IT: Likewise.
3854         * localedata/locales/ce_RU: Likewise.
3855         * localedata/locales/chr_US: Likewise.
3856         * localedata/locales/cmn_TW: Likewise.
3857         * localedata/locales/crh_UA: Likewise.
3858         * localedata/locales/cs_CZ: Likewise.
3859         * localedata/locales/csb_PL: Likewise.
3860         * localedata/locales/cv_RU: Likewise.
3861         * localedata/locales/cy_GB: Likewise.
3862         * localedata/locales/da_DK: Likewise.
3863         * localedata/locales/de_AT: Likewise.
3864         * localedata/locales/de_BE: Likewise.
3865         * localedata/locales/de_CH: Likewise.
3866         * localedata/locales/de_DE: Likewise.
3867         * localedata/locales/de_IT: Likewise.
3868         * localedata/locales/de_LI: Likewise.
3869         * localedata/locales/de_LU: Likewise.
3870         * localedata/locales/doi_IN: Likewise.
3871         * localedata/locales/dv_MV: Likewise.
3872         * localedata/locales/dz_BT: Likewise.
3873         * localedata/locales/el_CY: Likewise.
3874         * localedata/locales/el_GR: Likewise.
3875         * localedata/locales/en_AG: Likewise.
3876         * localedata/locales/en_AU: Likewise.
3877         * localedata/locales/en_BW: Likewise.
3878         * localedata/locales/en_CA: Likewise.
3879         * localedata/locales/en_DK: Likewise.
3880         * localedata/locales/en_GB: Likewise.
3881         * localedata/locales/en_HK: Likewise.
3882         * localedata/locales/en_IE: Likewise.
3883         * localedata/locales/en_IL: Likewise.
3884         * localedata/locales/en_IN: Likewise.
3885         * localedata/locales/en_NG: Likewise.
3886         * localedata/locales/en_NZ: Likewise.
3887         * localedata/locales/en_PH: Likewise.
3888         * localedata/locales/en_SG: Likewise.
3889         * localedata/locales/en_US: Likewise.
3890         * localedata/locales/en_ZA: Likewise.
3891         * localedata/locales/en_ZM: Likewise.
3892         * localedata/locales/en_ZW: Likewise.
3893         * localedata/locales/eo: Likewise.
3894         * localedata/locales/es_AR: Likewise.
3895         * localedata/locales/es_BO: Likewise.
3896         * localedata/locales/es_CL: Likewise.
3897         * localedata/locales/es_CO: Likewise.
3898         * localedata/locales/es_CR: Likewise.
3899         * localedata/locales/es_CU: Likewise.
3900         * localedata/locales/es_DO: Likewise.
3901         * localedata/locales/es_EC: Likewise.
3902         * localedata/locales/es_ES: Likewise.
3903         * localedata/locales/es_GT: Likewise.
3904         * localedata/locales/es_HN: Likewise.
3905         * localedata/locales/es_MX: Likewise.
3906         * localedata/locales/es_NI: Likewise.
3907         * localedata/locales/es_PA: Likewise.
3908         * localedata/locales/es_PE: Likewise.
3909         * localedata/locales/es_PR: Likewise.
3910         * localedata/locales/es_PY: Likewise.
3911         * localedata/locales/es_SV: Likewise.
3912         * localedata/locales/es_US: Likewise.
3913         * localedata/locales/es_UY: Likewise.
3914         * localedata/locales/es_VE: Likewise.
3915         * localedata/locales/et_EE: Likewise.
3916         * localedata/locales/eu_ES: Likewise.
3917         * localedata/locales/eu_ES@euro: Likewise.
3918         * localedata/locales/fa_IR: Likewise.
3919         * localedata/locales/ff_SN: Likewise.
3920         * localedata/locales/fi_FI: Likewise.
3921         * localedata/locales/fil_PH: Likewise.
3922         * localedata/locales/fo_FO: Likewise.
3923         * localedata/locales/fr_BE: Likewise.
3924         * localedata/locales/fr_CA: Likewise.
3925         * localedata/locales/fr_CH: Likewise.
3926         * localedata/locales/fr_FR: Likewise.
3927         * localedata/locales/fr_LU: Likewise.
3928         * localedata/locales/fur_IT: Likewise.
3929         * localedata/locales/fy_DE: Likewise.
3930         * localedata/locales/fy_NL: Likewise.
3931         * localedata/locales/ga_IE: Likewise.
3932         * localedata/locales/gd_GB: Likewise.
3933         * localedata/locales/gez_ER: Likewise.
3934         * localedata/locales/gez_ET: Likewise.
3935         * localedata/locales/gl_ES: Likewise.
3936         * localedata/locales/gu_IN: Likewise.
3937         * localedata/locales/gv_GB: Likewise.
3938         * localedata/locales/ha_NG: Likewise.
3939         * localedata/locales/hak_TW: Likewise.
3940         * localedata/locales/he_IL: Likewise.
3941         * localedata/locales/hi_IN: Likewise.
3942         * localedata/locales/hif_FJ: Likewise.
3943         * localedata/locales/hne_IN: Likewise.
3944         * localedata/locales/hr_HR: Likewise.
3945         * localedata/locales/hsb_DE: Likewise.
3946         * localedata/locales/ht_HT: Likewise.
3947         * localedata/locales/hu_HU: Likewise.
3948         * localedata/locales/hy_AM: Likewise.
3949         * localedata/locales/i18n: Likewise.
3950         * localedata/locales/ia_FR: Likewise.
3951         * localedata/locales/id_ID: Likewise.
3952         * localedata/locales/ig_NG: Likewise.
3953         * localedata/locales/ik_CA: Likewise.
3954         * localedata/locales/is_IS: Likewise.
3955         * localedata/locales/it_CH: Likewise.
3956         * localedata/locales/it_IT: Likewise.
3957         * localedata/locales/iu_CA: Likewise.
3958         * localedata/locales/ja_JP: Likewise.
3959         * localedata/locales/ka_GE: Likewise.
3960         * localedata/locales/kk_KZ: Likewise.
3961         * localedata/locales/kl_GL: Likewise.
3962         * localedata/locales/kn_IN: Likewise.
3963         * localedata/locales/ko_KR: Likewise.
3964         * localedata/locales/kok_IN: Likewise.
3965         * localedata/locales/ks_IN: Likewise.
3966         * localedata/locales/ks_IN@devanagari: Likewise.
3967         * localedata/locales/ku_TR: Likewise.
3968         * localedata/locales/kw_GB: Likewise.
3969         * localedata/locales/ky_KG: Likewise.
3970         * localedata/locales/lb_LU: Likewise.
3971         * localedata/locales/lg_UG: Likewise.
3972         * localedata/locales/li_BE: Likewise.
3973         * localedata/locales/li_NL: Likewise.
3974         * localedata/locales/lij_IT: Likewise.
3975         * localedata/locales/ln_CD: Likewise.
3976         * localedata/locales/lo_LA: Likewise.
3977         * localedata/locales/lt_LT: Likewise.
3978         * localedata/locales/lv_LV: Likewise.
3979         * localedata/locales/lzh_TW: Likewise.
3980         * localedata/locales/mag_IN: Likewise.
3981         * localedata/locales/mai_IN: Likewise.
3982         * localedata/locales/mg_MG: Likewise.
3983         * localedata/locales/mhr_RU: Likewise.
3984         * localedata/locales/mi_NZ: Likewise.
3985         * localedata/locales/mk_MK: Likewise.
3986         * localedata/locales/ml_IN: Likewise.
3987         * localedata/locales/mn_MN: Likewise.
3988         * localedata/locales/mni_IN: Likewise.
3989         * localedata/locales/mr_IN: Likewise.
3990         * localedata/locales/ms_MY: Likewise.
3991         * localedata/locales/mt_MT: Likewise.
3992         * localedata/locales/my_MM: Likewise.
3993         * localedata/locales/nan_TW: Likewise.
3994         * localedata/locales/nan_TW@latin: Likewise.
3995         * localedata/locales/nb_NO: Likewise.
3996         * localedata/locales/nds_DE: Likewise.
3997         * localedata/locales/nds_NL: Likewise.
3998         * localedata/locales/ne_NP: Likewise.
3999         * localedata/locales/nhn_MX: Likewise.
4000         * localedata/locales/niu_NU: Likewise.
4001         * localedata/locales/niu_NZ: Likewise.
4002         * localedata/locales/nl_AW: Likewise.
4003         * localedata/locales/nl_BE: Likewise.
4004         * localedata/locales/nl_NL: Likewise.
4005         * localedata/locales/nn_NO: Likewise.
4006         * localedata/locales/nr_ZA: Likewise.
4007         * localedata/locales/nso_ZA: Likewise.
4008         * localedata/locales/oc_FR: Likewise.
4009         * localedata/locales/om_ET: Likewise.
4010         * localedata/locales/om_KE: Likewise.
4011         * localedata/locales/or_IN: Likewise.
4012         * localedata/locales/os_RU: Likewise.
4013         * localedata/locales/pa_IN: Likewise.
4014         * localedata/locales/pa_PK: Likewise.
4015         * localedata/locales/pap_AW: Likewise.
4016         * localedata/locales/pap_CW: Likewise.
4017         * localedata/locales/pl_PL: Likewise.
4018         * localedata/locales/ps_AF: Likewise.
4019         * localedata/locales/pt_BR: Likewise.
4020         * localedata/locales/pt_PT: Likewise.
4021         * localedata/locales/quz_PE: Likewise.
4022         * localedata/locales/raj_IN: Likewise.
4023         * localedata/locales/ro_RO: Likewise.
4024         * localedata/locales/ru_RU: Likewise.
4025         * localedata/locales/ru_UA: Likewise.
4026         * localedata/locales/rw_RW: Likewise.
4027         * localedata/locales/sa_IN: Likewise.
4028         * localedata/locales/sat_IN: Likewise.
4029         * localedata/locales/sc_IT: Likewise.
4030         * localedata/locales/sd_IN: Likewise.
4031         * localedata/locales/sd_IN@devanagari: Likewise.
4032         * localedata/locales/se_NO: Likewise.
4033         * localedata/locales/sgs_LT: Likewise.
4034         * localedata/locales/shs_CA: Likewise.
4035         * localedata/locales/si_LK: Likewise.
4036         * localedata/locales/sid_ET: Likewise.
4037         * localedata/locales/sk_SK: Likewise.
4038         * localedata/locales/sl_SI: Likewise.
4039         * localedata/locales/sm_WS: Likewise.
4040         * localedata/locales/so_DJ: Likewise.
4041         * localedata/locales/so_ET: Likewise.
4042         * localedata/locales/so_KE: Likewise.
4043         * localedata/locales/so_SO: Likewise.
4044         * localedata/locales/sq_AL: Likewise.
4045         * localedata/locales/sq_MK: Likewise.
4046         * localedata/locales/sr_ME: Likewise.
4047         * localedata/locales/sr_RS: Likewise.
4048         * localedata/locales/sr_RS@latin: Likewise.
4049         * localedata/locales/ss_ZA: Likewise.
4050         * localedata/locales/st_ZA: Likewise.
4051         * localedata/locales/sv_FI: Likewise.
4052         * localedata/locales/sv_SE: Likewise.
4053         * localedata/locales/sw_KE: Likewise.
4054         * localedata/locales/sw_TZ: Likewise.
4055         * localedata/locales/szl_PL: Likewise.
4056         * localedata/locales/ta_IN: Likewise.
4057         * localedata/locales/ta_LK: Likewise.
4058         * localedata/locales/tcy_IN: Likewise.
4059         * localedata/locales/te_IN: Likewise.
4060         * localedata/locales/tg_TJ: Likewise.
4061         * localedata/locales/th_TH: Likewise.
4062         * localedata/locales/the_NP: Likewise.
4063         * localedata/locales/ti_ER: Likewise.
4064         * localedata/locales/ti_ET: Likewise.
4065         * localedata/locales/tig_ER: Likewise.
4066         * localedata/locales/tk_TM: Likewise.
4067         * localedata/locales/tl_PH: Likewise.
4068         * localedata/locales/tn_ZA: Likewise.
4069         * localedata/locales/to_TO: Likewise.
4070         * localedata/locales/tpi_PG: Likewise.
4071         * localedata/locales/tr_CY: Likewise.
4072         * localedata/locales/tr_TR: Likewise.
4073         * localedata/locales/ts_ZA: Likewise.
4074         * localedata/locales/tt_RU: Likewise.
4075         * localedata/locales/tt_RU@iqtelif: Likewise.
4076         * localedata/locales/ug_CN: Likewise.
4077         * localedata/locales/uk_UA: Likewise.
4078         * localedata/locales/unm_US: Likewise.
4079         * localedata/locales/ur_IN: Likewise.
4080         * localedata/locales/ur_PK: Likewise.
4081         * localedata/locales/uz_UZ: Likewise.
4082         * localedata/locales/uz_UZ@cyrillic: Likewise.
4083         * localedata/locales/ve_ZA: Likewise.
4084         * localedata/locales/vi_VN: Likewise.
4085         * localedata/locales/wa_BE: Likewise.
4086         * localedata/locales/wae_CH: Likewise.
4087         * localedata/locales/wal_ET: Likewise.
4088         * localedata/locales/wo_SN: Likewise.
4089         * localedata/locales/xh_ZA: Likewise.
4090         * localedata/locales/yi_US: Likewise.
4091         * localedata/locales/yo_NG: Likewise.
4092         * localedata/locales/yue_HK: Likewise.
4093         * localedata/locales/yuw_PG: Likewise.
4094         * localedata/locales/zh_CN: Likewise.
4095         * localedata/locales/zh_HK: Likewise.
4096         * localedata/locales/zh_SG: Likewise.
4097         * localedata/locales/zh_TW: Likewise.
4098         * localedata/locales/zu_ZA: Likewise.
4100 2017-11-13  Florian Weimer  <fweimer@redhat.com>
4102         * support/next_to_fault.h, support/next_to_fault.c: New files.
4103         * support/Makefile (libsupport-routines): Add next_to_fault.
4104         * resolv/tst-inet_pton.c (struct next_to_fault)
4105         (next_to_fault_allocate, next_to_fault_free): Remove.
4106         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
4108 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
4110         * elf/dl-support.c: Include <dl-procruntime.c>.
4111         * include/link.h: Include <link_map.h>.
4112         * sysdeps/generic/dl-procruntime.c: New file.
4113         * sysdeps/generic/link_map.h: Likewise.
4114         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
4115         the writable ld.so namespace.
4117 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4119         timezone: pacify GCC -Wstringop-truncation
4120         Problem reported by Martin Sebor in:
4121         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
4122         * timezone/zic.c (writezone): Use memcpy, not strncpy.
4124 2017-11-12  Florian Weimer  <fweimer@redhat.com>
4126         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
4127         tst-xreadlink.
4128         (tests): Add tst-xreadlink.
4129         * support/support.h (xstrndup): Declare.
4130         * support/xunistd.h (xunlink, xreadlink): Declare.
4131         * support/temp_file.h (support_create_temp_directory): Declare.
4132         * support/temp_file.c (support_create_temp_directory): New function.
4133         * support/support_chroot.c (support_chroot_create): Use it.
4134         * support/xreadlink.c: New file.
4135         * support/xstrndup.c: Likewise.
4136         * support/xunlink.c: Likewise.
4137         * support/tst-xreadlink.c: Likewise.
4139 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
4141         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
4143 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4145         [BZ #22409]
4146         [BZ #22412]
4147         * resolv/res_comp.c (printable_string, binary_hnok)
4148         (binary_leading_dash): New functions.
4149         (res_hnok): Reimplement using these functions and ns_name_pton.
4150         (res_ownok): Likewise.
4151         (res_mailok): Reimplement using printable_string, ns_name_pton and
4152         binary_hnok.
4153         (res_dnok): Reimplement using printable_string and ns_name_pton.
4154         * resolv/tst-res_hnok.c (tests): Add additional tests.
4155         (LETTERDIGITS, PRINTABLE): Define.
4156         (do_test): Adjust one_char results.
4158 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4160         [BZ #22413]
4161         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
4162         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
4164 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4166         * resolv/tst-ns_name_pton.c: New file.
4167         * resolv/Makefile (tests): Add tst-ns_name_pton.
4168         (tst-ns_name_pton): Link against libresolv.
4170 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4172         * resolv/tst-res_hnok.c: New file.
4173         * resolv/Makefile (tests): Add tst-res_hnok.
4174         (tst-res_hnok): Link against libresolv.
4176 2017-11-11  Florian Weimer  <fweimer@redhat.com>
4178         * resolv/tst-resolv-network.c: Use test framework instead explicit
4179         main function.
4181 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4183         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
4184         <jmp_buf-macros.h>.
4185         [!_ISOMAC] (STR_HELPER): New.
4186         [!_ISOMAC] (STR): Likewise.
4187         [!_ISOMAC] (TEST_SIZE): Likewise.
4188         [!_ISOMAC] (TEST_ALIGN): Likewise.
4189         [!_ISOMAC] (TEST_OFFSET): Likewise.
4190         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
4191         field offsets of jmp_buf as well as sigjmp_buf.
4192         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
4193         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
4194         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
4195         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
4196         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
4197         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
4198         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
4199         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
4200         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
4201         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
4202         Likewise.
4203         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
4204         Likewise.
4205         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
4206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
4207         Likewise.
4208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
4209         Likewise.
4210         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
4211         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
4212         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
4213         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
4214         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
4215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
4216         Likewise.
4217         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
4218         Likewise.
4219         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
4220         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
4221         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
4223 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
4225         * include/float.h
4226         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4227         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
4228         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4229         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
4230         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4231         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
4232         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4233         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
4234         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4235         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
4236         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4237         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
4238         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4239         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
4240         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4241         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
4242         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4243         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
4244         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4245         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
4246         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4247         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
4248         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4249         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
4250         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4251         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
4252         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4253         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
4254         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4255         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
4256         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4257         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
4258         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4259         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
4260         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4261         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
4262         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4263         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
4264         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4265         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
4266         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4267         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
4268         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4269         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
4270         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4271         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
4272         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4273         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
4274         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4275         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
4276         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4277         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
4278         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4279         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
4280         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4281         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
4282         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4283         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
4284         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4285         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
4286         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4287         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
4288         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4289         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
4290         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4291         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
4292         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4293         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
4294         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4295         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
4296         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4297         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
4298         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4299         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
4300         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4301         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
4302         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4303         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
4304         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4305         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
4306         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4307         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
4308         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4309         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
4310         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4311         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
4312         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
4313         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
4315         * stdlib/tst-strtod.h (F16): New macro.
4316         (F32): Likewise.
4317         (F64): Likewise.
4318         (F32X): Likewise.
4319         (F64X): Likewise.
4320         (F128X): Likewise.
4321         (IF_FLOAT16): Likewise.
4322         (IF_FLOAT32): Likewise.
4323         (IF_FLOAT64): Likewise.
4324         (IF_FLOAT32X): Likewise.
4325         (IF_FLOAT64X): Likewise.
4326         (IF_FLOAT128X): Likewise.
4327         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
4328         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
4329         (STRTOD_TEST_FOREACH): Likewise.
4330         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
4331         (CHOOSE_f64): Likewise.
4332         (CHOOSE_f32x): Likewise.
4333         (CHOOSE_f64x): Likewise.
4335 2017-11-07  Andreas Schwab  <schwab@suse.de>
4337         * nptl/Makefile (tests-internal): Remove tst-typesizes.
4339 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
4341         [BZ #22403]
4342         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
4343         to be escaped.
4344         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
4345         to be escaped.
4347 2017-11-07  Claude Paroz <claude@2xlibre.net>
4349         [BZ #22403]
4350         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
4351         to be escaped.
4352         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
4353         to be escaped.
4354         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
4355         to be escaped.
4357 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4359         [BZ #22298]
4360         * nptl/allocatestack.c (allocate_stack): Check if
4361         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
4362         __PTHREAD_MUTEX_HAVE_PREV is defined.
4363         * nptl/descr.h (pthread): Likewise.
4364         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
4365         Likewise.
4366         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
4367         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4368         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
4369         * sysdeps/nptl/bits/thread-shared-types.h
4370         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
4371         defines.
4372         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
4373         of __WORDSIZE for internal layout.
4374         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
4375         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
4376         instead of __WORDSIZE whether to use an union for __spins and __list
4377         fields.
4378         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
4379         case.
4380         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
4381         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
4382         defines.
4383         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
4384         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4385         Likewise.
4386         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
4387         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4388         Likewise.
4389         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
4390         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4391         Likewise.
4392         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
4393         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4394         Likewise.
4395         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
4396         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4397         Likewise.
4398         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
4399         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4400         Likewise.
4401         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
4402         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4403         Likewise.
4404         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
4405         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4406         Likewise.
4407         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
4408         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4409         Likewise.
4410         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
4411         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4412         Likewise.
4413         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
4414         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4415         Likewise.
4416         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
4417         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4418         Likewise.
4419         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
4420         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4421         Likewise.
4422         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
4423         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
4424         Likewise.
4426         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
4427         New macros.
4428         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
4429         checks for expected input type size.
4430         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
4431         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
4432         Likewise.
4433         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
4434         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
4435         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
4436         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
4437         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
4438         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
4439         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
4440         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
4441         superflous runtime assert check.
4442         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
4443         Likewise.
4444         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
4445         Likewise.
4446         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
4447         Likewise.
4448         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
4449         Likewise.
4450         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
4451         Likewise.
4452         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
4453         Likewise.
4454         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
4455         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
4456         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
4457         Likewise.
4458         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
4459         Likewise.
4460         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
4461         Likewise.
4462         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
4463         Likewise.
4464         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
4465         Likewise.
4466         * nptl/pthread_attr_setinheritsched.c
4467         (__pthread_attr_setinheritsched): Likewise.
4468         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
4469         Likewise.
4470         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
4471         Likewise.
4472         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
4473         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
4474         __old_pthread_attr_setstack): Likewise.
4475         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
4476         Likewise.
4477         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
4478         Likewise.
4479         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
4480         Likewise.
4481         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
4482         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
4483         Likewise.
4484         * nptl/tst-typesizes.c: Remove file.
4486         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
4487         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
4488         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
4489         checks for internal pthread_mutex_t offsets.
4490         * sysdeps/aarch64/nptl/pthread-offsets.h
4491         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
4492         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
4493         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
4494         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
4495         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
4496         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
4497         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
4498         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
4499         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
4500         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
4501         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
4502         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
4503         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
4504         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
4505         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
4506         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
4507         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
4508         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
4510 2017-11-07  Florian Weimer  <fweimer@redhat.com>
4512         * bits/mman-linux.h: Move ...
4513         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
4514         comment.
4515         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
4516         outdated comment.
4518 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4520         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
4521         Redefine STRNLEN as __strnlen_power8.
4523 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4525         * signal/sighold.c (sighold): Optimize implementation.
4527         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
4528         __NR_rt_sigqueueinfo.
4530         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
4531         __sigtimedwait.
4532         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
4533         assume __NR_rt_sigtimedwait.
4534         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
4535         and add LIBC_CANCEL_HANDLED for cancellation marking.
4536         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
4538         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
4539         (sysdeps_routines): Add memchr_noneon.
4540         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
4541         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
4542         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
4543         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
4544         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
4545         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
4546         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
4548         * sysdeps/arm/arm-ifunc.h: New file.
4549         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
4550         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
4551         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
4552         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
4553         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
4554         (__memcpy_neon): Avoid create hidden alias.
4555         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
4556         (__memcpy_vfp): Likewise.
4557         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
4558         (sysdep_routines): Add memcpy_arm.
4559         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
4561 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
4563         [BZ #22362]
4564         * Makerules (make-link-multidir): New.
4565         * config.make.in (multidir): New.
4566         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
4567         * configure: Regenerated.
4568         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
4569         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
4570         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
4571         New target.
4573 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
4575         [BZ #22402]
4576         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
4577         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
4579 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
4581         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
4582         to be escaped.
4584 2017-11-04  Florian Weimer  <fweimer@redhat.com>
4586         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
4588 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
4590         * math/math.h [__HAVE_DISTINCT_FLOAT16
4591         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
4592         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
4593         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
4594         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
4595         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
4596         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
4597         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
4598         (__MATH_TG_F32): New macro.
4599         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
4600         (__MATH_TG_F64X): Likewise.
4601         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
4602         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
4604 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
4606         * po/de.po: Update translations.
4607         * po/ru.po: Likewise.
4609 2017-11-03  Florian Weimer  <fweimer@redhat.com>
4611         * manual/filesys.texi (Hard Links): Document linkat.
4613 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
4615         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
4616         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
4617         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
4618         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
4619         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
4620         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
4621         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
4622         the same as _Float128.
4623         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
4624         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
4625         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
4627         * stdlib/stdlib.h
4628         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
4629         Declare.
4630         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
4631         Likewise.
4632         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
4633         Likewise.
4634         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4635         (strtof32x): Likewise.
4636         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4637         (strtof64x): Likewise.
4638         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4639         (strtof128x): Likewise.
4640         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4641         (strfromf16): Likewise.
4642         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4643         (strfromf32): Likewise.
4644         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4645         (strfromf64): Likewise.
4646         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4647         (strfromf32x): Likewise.
4648         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4649         (strfromf64x): Likewise.
4650         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4651         (strfromf128x): Likewise.
4652         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
4653         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
4654         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
4655         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
4656         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
4657         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
4659 2017-11-03  Richard Henderson  <rth@twiddle.net>
4661         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
4663 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4665         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
4667 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4669         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
4670         DT_TLSDESC_GOT initialization.
4671         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
4672         (_dl_tlsdesc_resolve_hold): Likewise.
4673         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
4674         (_dl_tlsdesc_resolve_hold): Likewise.
4675         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
4676         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
4678 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4680         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
4682 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4684         [BZ #18572]
4685         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
4686         non-lazily for R_ARM_TLS_DESC.
4688 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4690         [BZ #17078]
4691         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
4692         R_ARM_TLS_DESC case.
4693         (elf_machine_lazy_rel): Remove the prelink check.
4695 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4697         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
4698         DT_TLSDESC_GOT initialization.
4699         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
4700         (_dl_tlsdesc_resolve_rela): Likewise.
4701         (_dl_tlsdesc_resolve_hold): Likewise.
4702         (_dl_tlsdesc_undefweak): Remove ldar.
4703         (_dl_tlsdesc_dynamic): Likewise.
4704         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
4705         (_dl_tlsdesc_resolve_rela): Likewise.
4706         (_dl_tlsdesc_resolve_hold): Likewise.
4707         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
4708         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
4709         (_dl_tlsdesc_resolve_rela): Likewise.
4710         (_dl_tlsdesc_resolve_hold): Likewise.
4712 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4714         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
4715         binding and initialization non-lazily for R_AARCH64_TLSDESC.
4717 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4719         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
4720         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
4722 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
4724         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
4725         Declare.
4726         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
4727         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
4728         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
4729         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
4730         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
4731         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
4732         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
4733         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
4734         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
4735         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
4736         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
4738 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
4740         [BZ #22382]
4741         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
4742         * localedata/locales/tpi_PG: Add standard header.
4744 2017-11-02  Florian Weimer  <fweimer@redhat.com>
4746         test-errno-linux: quotactl can fail with EPERM in containers.
4747         * sysdeps/unix/sysv/linux/test-errno-linux.c
4748         (LIST, LIST_FORWARD): New macros.
4749         (check_error_in_list): New function.
4750         (test_wrp_rv): Accept list of permitted error codes.
4751         (test_wrp_rv2): Remove.
4752         (test_wrp): Call test_wrp_rv with list of error codes.
4753         (test_wrp2): Accept list of error codes.
4754         (do_test): Adjust.  Allow EPERM for quotactl.
4756 2017-11-02  Florian Weimer  <fweimer@redhat.com>
4758         * stdio-common/bug16.c (do_test): Use array_length.
4759         * stdio-common/errlist.c (_sys_nerr): Likewise.
4760         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
4761         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
4762         * stdio-common/psiginfo.c (psiginfo): Use array_length.
4763         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
4764         (do_test): Use array_length.
4765         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
4766         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
4767         * stdio-common/tst-printf-round.c (do_test): Likewise.
4768         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
4769         (CHECK): Use array_length.
4770         * stdio-common/tstdiomisc.c (t3, F): Likewise.
4771         * stdio-common/tstscanf.c (main): Likewise.
4772         * stdio-common/vfprintf.c (process_string_arg): Likewise.
4774 2017-11-02  Florian Weimer  <fweimer@redhat.com>
4776         Add array_length and array_end macros.
4777         * include/array_length.h: New file.
4779 2017-11-02  Florian Weimer  <fweimer@redhat.com>
4781         [BZ #22332]
4782         * posix/tst-glob-tilde.c (do_noescape): New variable.
4783         (one_test): Process it.
4784         (do_test): Set do_noescape.  Add unescaping test case.
4786 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
4788         * math/complex.h
4789         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
4790         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
4791         with appropriate macros defined and undefined.
4792         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
4793         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
4794         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
4795         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
4796         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
4797         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
4798         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
4799         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
4800         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
4801         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
4803         * math/complex.h
4804         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
4805         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
4806         that for long double.  Do not condition define and undefine of
4807         _Mdouble_complex_ on [__CFLOAT128].
4809 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
4811         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
4812         of <sysdeps/generic/sysdep.h>.
4813         (ALIGNARG): Removed.
4814         (ASM_SIZE_DIRECTIVE): Likewise.
4815         (ENTRY): Likewise.
4816         (END): Likewise.
4817         (ENTRY_CHK): Likewise.
4818         (END_CHK): Likewise.
4819         (syscall_error): Likewise.
4820         (mcount): Likewise.
4821         (PSEUDO_END): Likewise.
4822         (L): Likewise.
4823         (atom_text_section): Likewise.
4824         * sysdeps/x86/sysdep.h: New file.
4825         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
4826         of <sysdeps/generic/sysdep.h>.
4827         (ALIGNARG): Removed.
4828         (ASM_SIZE_DIRECTIVE): Likewise.
4829         (ENTRY): Likewise.
4830         (END): Likewise.
4831         (ENTRY_CHK): Likewise.
4832         (END_CHK): Likewise.
4833         (syscall_error): Likewise.
4834         (mcount): Likewise.
4835         (PSEUDO_END): Likewise.
4836         (L): Likewise.
4837         (atom_text_section): Likewise.
4839 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
4841         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
4842         category of LC_CTYPE set to "i18n:2012".
4843         * localedata/locales/i18n_ctype: Regenerate.
4845 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
4847         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
4848         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4849         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4850         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4852         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
4853         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
4854         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4855         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
4857 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
4859         * math/complex.h
4860         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
4861         New macro.
4862         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
4863         Likewise.
4864         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
4865         Likewise.
4866         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4867         (CMPLXF32X): Likewise.
4868         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4869         (CMPLXF64X): Likewise.
4870         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4871         (CMPLXF128X): Likewise.
4873         * math/math.h
4874         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
4875         (__MATH_EVAL_FMT2): Define to add 0.0f.
4877 2017-10-31  Alan Modra  <amodra@gmail.com>
4879         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
4880         include sysdep.h.
4881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4882         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
4884         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
4885         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
4886         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
4887         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
4888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
4889         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
4890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4891         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
4892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
4893         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
4894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4895         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
4896         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
4897         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
4898         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
4899         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
4900         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
4901         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
4902         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
4903         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
4904         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
4905         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
4906         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
4907         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
4908         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
4909         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
4910         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
4911         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
4912         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
4913         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
4914         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
4915         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
4916         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
4917         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
4918         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
4919         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
4920         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
4921         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
4922         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
4923         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
4924         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
4925         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
4926         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
4927         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
4928         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
4929         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
4930         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
4931         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
4932         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
4933         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
4934         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
4935         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
4936         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
4937         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
4938         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
4939         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
4940         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
4941         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
4942         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
4943         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
4944         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
4945         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
4946         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
4947         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
4948         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
4949         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
4951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
4952         include sysdep.h and math_ldbl_opt.h.
4954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
4955         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
4956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4957         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
4958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
4959         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
4960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
4961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
4962         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
4963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
4964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
4965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
4966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
4967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
4968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
4969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
4970         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
4971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
4972         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
4973         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
4974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
4975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
4976         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
4977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
4979         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4981 2017-10-31  Alan Modra  <amodra@gmail.com>
4983         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
4984         string/strncase_l.c, not string/strncase.c.
4985         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
4986         (libc_hidden_def): Redefine.
4988 2017-10-31  Alan Modra  <amodra@gmail.com>
4990         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
4991         (__STRCMP, STRCMP, __strcasecmp_l): Define.
4992         (__strcasecmp): Don't define.
4994 2017-10-31  Alan Modra  <amodra@gmail.com>
4996         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
4997         IS_IN (libc).
4998         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
4999         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
5000         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
5002 2017-10-31  Alan Modra  <amodra@gmail.com>
5004         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
5005         USE_AS_STPNCPY.
5007 2017-10-31  Alan Modra  <amodra@gmail.com>
5009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
5010         Redefine only when SHARED.
5012 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
5014         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
5015         Include <bits/math-finite.h> with appropriate macros defined and
5016         undefined.
5017         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
5018         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
5019         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
5020         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
5021         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
5023         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
5024         [!_Mlong_double_] (_Mlong_double_): Likewise.
5025         [!_Mfloat16_] (_Mfloat16_): Likewise.
5026         [!_Mfloat32_] (_Mfloat32_): Likewise.
5027         [!_Mfloat64_] (_Mfloat64_): Likewise.
5028         [!_Mfloat128_] (_Mfloat128_): Likewise.
5029         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
5030         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
5031         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
5032         (_Mdouble_): Define without indirection through those macros.
5033         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
5034         [!_Mfloat128_] (_Mfloat128_): Likewise.
5035         [_Mlong_double_] (_Mlong_double_): Likewise.
5036         (_Mdouble_): Define without indirection through those macros.
5037         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
5038         not add -D_Mlong_double_=double.
5039         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
5040         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
5042 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5044         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
5046 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5048         * sysdeps/x86/libc-start.c: Reformat.
5050 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5052         [BZ #22353]
5053         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
5054         (1): Renamed to ...
5055         (L(Src0)): This.
5056         (L(Src1)): New.
5057         (L(Src2)): Likewise.
5058         (L(1)): Renamed to ...
5059         (L(Src3)): This.
5061 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
5063         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
5064         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
5065         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
5066         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
5067         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
5068         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
5069         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
5070         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
5071         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
5072         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
5073         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
5074         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
5075         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
5076         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
5077         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
5078         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
5079         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
5080         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
5081         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
5082         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
5083         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
5084         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
5085         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
5086         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
5087         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
5088         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
5089         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
5090         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
5091         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
5092         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
5093         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
5094         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
5095         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
5096         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
5097         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
5098         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
5099         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
5100         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
5101         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
5102         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
5103         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
5104         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
5105         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
5106         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
5107         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
5108         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
5109         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
5110         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
5111         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
5112         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
5113         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
5114         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
5115         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
5116         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
5117         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
5118         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
5119         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
5120         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
5121         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
5122         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
5123         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
5124         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
5125         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
5126         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
5127         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
5128         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
5130 2017-10-30  Florian Weimer  <fweimer@redhat.com>
5132         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
5133         always defined.
5134         * io/tst-mkdirat.c (do_test): Likewise.
5135         * io/tst-mkfifoat.c (do_test): Likewise.
5136         * io/tst-mknodat.c (do_test): Likewise.
5137         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
5138         * locale/programs/locale.c (select_dirs): Likewise.
5139         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
5140         * posix/bug-glob2.c (my_readdir): Likewise.
5141         * posix/tst-dir.c (main): Likewise.
5142         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
5143         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
5145 2017-10-30  Florian Weimer  <fweimer@redhat.com>
5147         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
5148         just __USE_GNU.
5150 2017-10-30  Florian Weimer  <fweimer@redhat.com>
5152         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
5153         Convert to support/test-driver.c.
5154         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
5155         New macro parameters.
5156         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
5157         * posix/tst-gnuglob.c: New file.
5158         * posix/tst-gnuglob64.c: Likewise.
5159         * posix/Makefile (tests): Add tst-gnuglob64.
5161 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
5163         [BZ #19485]
5164         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
5165         and use a better translation for March in “mon”.
5166         * localedata/locales/csb_PL: Use more ASCII to improve the
5167         readability of the source.
5169 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
5171         [BZ #13953]
5172         * localedata/locales/km_KH: Use ASCII as much
5173         as possible for better readability of the source and
5174         remove useless comments.
5175         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
5176         was commented out and apparently wrong anyway because it was
5177         using Lao characters. If Buddhist era should be used
5178         for km_KH, a native speaker should write the correct formaat
5179         for Khmer.
5180         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
5181         (According to CLDR, the first weekday for Cambodia is Sunday).
5182         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
5183         (These were using Lao characters which must be wrong. If we get
5184         the correct data from a native speaker, we could add it back, until
5185         then it is better not to have name_mr and name_mrs at all than
5186         having it wrong).
5188 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
5190         * locale/loadlocale.c: Correct size of
5191         _nl_value_type_LC_<category> arrays.
5193 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
5195         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
5196         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
5197         with appropriate macros defined and undefined.
5198         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
5199         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
5200         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
5201         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
5202         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
5204 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5206         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
5207         "-O2 -march=i586".
5209 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
5211         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
5212         with lowercase letters to make it agree with CLDR.
5214 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
5216         [BZ #15260]
5217         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
5218         first letters of yesstr and nostr in yesexpr and noexpr,
5219         not for the full words.
5220         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
5221         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
5222         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
5223         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
5224         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
5225         first letters of yesstr and nostr in yesexpr and noexpr,
5226         until now only English was matched in yesexpr and noexpr.
5227         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
5228         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
5229         fil but not for tl. As tl and fil are very similar, using fil
5230         is probably better than using English.
5232 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
5234         [BZ #21706]
5235         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
5236         in yesstr and nostr.
5238 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
5240         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
5241         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
5242         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
5243         Likewise.
5244         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
5245         Likewise.
5246         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
5247         Likewise.
5248         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
5249         Likewise.
5250         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5251         (SNANF128X): Likewise.
5253         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
5254         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
5255         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5256         (HUGE_VAL_F32): Likewise.
5257         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5258         (HUGE_VAL_F64): Likewise.
5259         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5260         (HUGE_VAL_F32X): Likewise.
5261         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5262         (HUGE_VAL_F64X): Likewise.
5263         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5264         (HUGE_VAL_F128X): Likewise.
5266 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
5268         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
5269         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
5270         for the br_FR locale.
5272 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
5274         [BZ #21706]
5275         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
5277 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
5279         * locale/programs/record-status.h: Define globals, and function
5280         prototypes. Move function bodies...
5281         * locale/programs/record-status.c: ... to here. New file.
5282         * iconv/Makefile (iconv_prog-modules): Add record-status.
5283         * locale/Makefile (lib-modules): Likewise.
5284         * iconv/iconv_prog.c: Remove verbose.
5285         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
5286         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
5287         record a warning about ASCII compatibility.
5288         * locale/programs/ld-monetary.c (monetary_finish): If
5289         warn_int_curr_symbol is true then record a warning about the symbol
5290         not being in our ISO 4217 list.
5291         * locale/programs/locale.c: Include record-status.h. Remove verbose.
5292         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
5293         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
5294         (OPT_NO_WARN): Define.
5295         (OPT_WARN): Define.
5296         (options): Add entry for --no-warnings, and --warnings.
5297         (set_warnings): New function to enable/disable warnings.
5298         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
5299         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
5300         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
5301         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
5302         Pass flags to generate_locale.
5303         (generate_locale): Accept new flag argument and pass it to localedef
5304         invocation.
5305         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
5306         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
5308         * localedata/Makefile (test-input-data): Use full file name.
5309         * localedata/da_DK.in: Rename to...
5310         * localedata/da_DK.ISO-8859-1.in: ...this.
5311         * localedata/de_DE.in: Rename to...
5312         * localedata/de_DE.ISO-8859-1.in: ...this.
5313         * localedata/en_US.in: Rename to...
5314         * localedata/en_US.ISO-8859-1.in: ...this.
5315         * localedata/fr_FR.in: Rename to...
5316         * localedata/fr_FR.UTF-8.in: ... this.
5317         * localedata/hr_HR.in: Rename to...
5318         * localedata/hr_HR.ISO-8859-2.in: ...this.
5319         * localedata/hu_HU.in: Rename to...
5320         * localedata/hu_HU.UTF-8.in: ...this.
5321         * localedata/si_LK.in: Rename to...
5322         * localedata/si_LK.UTF-8.in: ...this.
5323         * localedata/sv_SE.in: Rename to...
5324         * localedata/sv_SE.ISO-8859-1.in: ...this.
5325         * localedata/tr_TR.in: Rename to...
5326         * localedata/tr_TR.UTF-8.in: ...this.
5327         * localedata/uk_UA.in: Rename to...
5328         * localedata/uk_UA.UTF-8.in: ...this.
5329         * localedata/sort-test.sh: Test file is locale name with the
5330         suffix.
5332         * localedata/unicode-gen/Makefile (check_i18n): Rename to
5333         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
5334         file.
5335         * localedata/locales/i18n_ctype: Regenerate.
5336         * localedata/locales/tr_TR: Likewise.
5337         * localedata/locales/translit_circle: Likewise.
5338         * localedata/locales/translit_cjk_compat: Likewise.
5339         * localedata/locales/translit_combining: Likewise.
5340         * localedata/locales/translit_compat: Likewise.
5341         * localedata/locales/translit_font: Likewise.
5342         * localedata/locales/translit_fraction: Likewise.
5344 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5346         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
5347         lxvd2x/stxvd2x with lvx/stvx.
5348         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
5350 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
5352         * include/alloc_buffer.h: Replace "if if " with "if " in
5353         comments.
5354         * sysdeps/mips/memcpy.S: Likkewise.
5355         * sysdeps/mips/memset.S: Likewise.
5356         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
5357         Likewise.
5358         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
5359         Likewise.
5360         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
5361         Likewise.
5363 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5365         [BZ #15261]
5366         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
5367         yesexpr and noexpr.
5368         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
5369         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
5370         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
5371         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
5372         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
5373         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
5374         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
5376 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5378         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
5379         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
5380         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
5381         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
5382         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
5383         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
5384         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
5385         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
5386         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
5387         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
5388         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
5389         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
5391 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5393         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
5394         as possible for better readability of the source.
5395         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
5396         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
5397         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
5398         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
5399         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
5400         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
5401         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
5402         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
5403         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
5404         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
5405         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
5406         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
5407         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
5408         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
5409         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
5410         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
5411         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
5412         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
5413         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
5414         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
5415         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
5416         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
5417         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
5418         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
5419         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
5420         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
5421         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
5422         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
5423         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
5424         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
5425         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
5426         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
5427         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
5428         * localedata/locales/en_US (LC_MESSAGES): Likewise.
5429         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
5430         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
5431         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
5432         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
5433         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
5434         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
5435         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
5436         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
5437         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
5438         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
5439         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
5440         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
5441         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
5442         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
5443         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
5444         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
5445         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
5446         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
5447         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
5448         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
5449         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
5450         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
5451         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
5452         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
5453         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
5454         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
5455         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
5456         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
5457         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
5458         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
5459         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
5460         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
5461         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
5462         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
5463         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
5464         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
5465         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
5466         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
5467         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
5468         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
5469         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
5470         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
5471         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
5472         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
5473         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
5474         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
5475         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
5476         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
5477         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
5478         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
5479         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
5480         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
5481         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
5482         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
5483         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
5484         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
5485         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
5486         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
5487         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
5488         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
5489         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
5490         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
5491         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
5492         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
5493         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
5494         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
5495         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
5496         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
5497         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
5498         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
5499         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
5500         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
5501         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
5502         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
5503         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
5504         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
5505         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
5506         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
5507         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
5508         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
5509         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
5510         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
5511         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
5512         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
5513         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
5514         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
5515         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
5516         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
5517         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
5518         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
5519         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
5520         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
5521         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
5522         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
5523         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
5524         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
5525         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
5526         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
5527         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
5528         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
5529         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
5530         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
5531         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
5532         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
5533         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
5534         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
5535         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
5536         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
5537         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
5538         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
5539         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
5540         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
5541         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
5542         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
5543         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
5544         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
5545         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
5546         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
5547         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
5548         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
5549         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
5550         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
5551         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
5552         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
5553         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
5554         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
5555         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
5556         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
5557         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
5558         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
5559         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
5560         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
5561         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
5562         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
5563         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
5564         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
5565         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
5566         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
5567         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
5568         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
5570 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5572         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
5573         (Use first letters of yesstr and nostr correctly instead of using
5574         full words).
5576 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5578         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
5579         (Use first letters of yesstr and nostr correctly).
5581 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5583         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
5584         also check for the first characters of yesstr and nostr.
5585         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
5586         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
5588 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5590         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
5591         also check for Chinese characters.
5593 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5595         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
5596         match also for the contents of yesstr and nostr. As the first letter
5597         of yesstr and nostr is equal, checking only for the first letter
5598         is not enough.
5600 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5602         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
5603         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
5605 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5607         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
5608         of main contributor.
5610 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5612         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
5613         instead of using English.
5615 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5617         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
5618         by including the first letters of nostr and yesexpr in the regexp.
5619         Also make it more readable by using ASCII where possible.
5621 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
5623         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
5624         the first letter of nostr in the regexp. It agrees with CLDR now.
5625         Also make it more readable by using ASCII where possible.
5627 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
5629         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
5630         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
5631         these strings contain a U+17D6 (which somewhat looks like a colon)
5632         instead of a real colon to separate the full words for “yes”
5633         and “no” from the single letter responses.
5635 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
5637         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
5638         it agree with CLDR (include the first letter of yesstr).
5639         Also make it more readable by using ASCII where possible.
5641 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
5643         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
5644         and improve yesexpr and noexpr. The yesstr and nostr apparently
5645         came from CLDR. And CLDR has a bug there: these strings contain
5646         a U+0903 (which looks like a colon) instead of a real colon
5647         to separate the full words for “yes” and “no” from the single
5648         letter responses.
5650 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
5652         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
5653         letters of the full yesstr and nostr in yesexpr and noexpr.
5655 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
5657         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
5658         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
5659         * localedata/locales/an_ES: Make source more readable by using ASCII
5660         where possible.
5662 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
5664         [BZ #20952]
5665         * localedata/locales/yuw_PG: New file.
5666         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
5667         * locale/iso-639.def: Add Yau (Uruwa).
5669 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
5671         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
5673 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
5675         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
5676         (__libc_realloc): Likewise.
5677         (_mid_memalign): Likewise.
5678         (__libc_calloc): Likewise.
5680 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
5682         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
5683         by adding the generic +1 and -0 as in all other locales.
5684         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
5685         day names and make it more readable by using ASCII where possible.
5687 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
5689         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
5690         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
5692 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5694         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
5695         WNOHANG in waitpid call.
5697 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5699         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
5700         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
5702         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
5703         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
5704         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
5705         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
5706         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
5707         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
5708         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
5709         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
5710         variables.
5712 2017-10-23  Michael Collison  <michael.collison@arm.com>
5714         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
5715         with __builtin_sqrt.
5716         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
5717         with __builtin_sqrtf.
5718         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
5719         with __builtin_ceil.
5720         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
5721         with __builtin_ceilf.
5722         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
5723         with __builtin_floor.
5724         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
5725         with __builtin_floorf.
5726         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
5727         with __builtin_fma.
5728         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
5729         with __builtin_fmaf.
5730         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
5731         with __builtin_fmax.
5732         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
5733         with __builtin_fmaxf.
5734         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
5735         with __builtin_fmin.
5736         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
5737         with __builtin_fminf.
5738         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
5739         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
5740         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
5741         with builtin_rint and conversion to int.
5742         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
5743         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
5744         with builtin_llround.
5745         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
5746         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
5747         with builtin_rint and conversion to long int.
5748         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
5749         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
5750         with builtin_lround.
5751         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
5752         with builtin_lroundf.
5753         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
5754         statements with __builtin_nearbyint.
5755         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
5756         statements with __builtin_nearbyintf.
5757         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
5758         with __builtin_rint.
5759         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
5760         with __builtin_rintf.
5761         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
5762         with __builtin_round.
5763         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
5764         with __builtin_roundf.
5765         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
5766         with __builtin_trunc.
5767         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
5768         with __builtin_truncf.
5769         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
5770         and s_l[l]round[f].c too.
5772 2017-10-23  Alan Modra  <amodra@gmail.com>
5774         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
5775         Adjust stack after restoring regs.  Add missing LR cfi_restore.
5777 2017-10-23  Alan Modra  <amodra@gmail.com>
5779         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
5780         Move LR save and frame setup/teardown and LR restore to
5781         immediately around memset call.  Provide cfi.
5783 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5785         * sysdeps/i386/fpu/e_powf.S: Removed.
5786         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
5787         * sysdeps/i386/fpu/w_powf.c: Likewise.
5788         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
5789         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5790         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
5791         Add e_powf-sse2.
5792         (CFLAGS-e_powf-sse2.c): New.
5793         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
5794         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
5796 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5798         * sysdeps/i386/fpu/e_log2f.S: Removed.
5799         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
5800         * sysdeps/i386/fpu/w_log2f.c: Likewise.
5801         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
5802         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5803         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
5804         Add e_log2f-sse2.
5805         (CFLAGS-e_log2f-sse2.c): New.
5806         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
5807         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
5809 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5811         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5812         Add e_powf-fma.
5813         (CFLAGS-e_powf-fma.c): New.
5814         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
5815         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
5817 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5819         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5820         Add e_log2f-fma.
5821         (CFLAGS-e_log2f-fma.c): New.
5822         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
5823         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
5825 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5827         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5828         Add e_logf-fma.
5829         (CFLAGS-e_logf-fma.c): New.
5830         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
5831         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
5833 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5835         * sysdeps/i386/fpu/e_logf.S: Removed.
5836         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
5837         * sysdeps/i386/fpu/w_logf.c: Likewise.
5838         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
5839         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
5840         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5841         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
5842         Add e_logf-sse2.
5843         (CFLAGS-e_logf-sse2.c): New.
5844         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
5845         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
5847 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5849         * sysdeps/i386/fpu/e_exp2f.S: Removed.
5850         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
5851         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
5852         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5853         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
5854         Add e_exp2f-sse2.
5855         (CFLAGS-e_exp2f-sse2.c): New.
5856         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
5857         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
5859 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5861         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5862         Add e_exp2f-fma.
5863         (CFLAGS-e_exp2f-fma.c): New.
5864         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
5865         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
5867 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5869         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
5870         * sysdeps/i386/fpu/e_expf.S: Likewise.
5871         * sysdeps/i386/fpu/math_errf.c: Likewise.
5872         * sysdeps/i386/fpu/w_expf.c: Likewise.
5873         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
5874         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
5875         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
5876         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
5877         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5878         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
5879         Remove e_expf-ia32.
5880         (CFLAGS-e_expf-sse2.c): New.
5881         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
5882         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
5884 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
5886         * sysdeps/x86_64/fpu/e_expf.S: Removed.
5887         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
5888         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
5889         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
5890         e_expf.c.
5891         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
5892         New.
5893         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
5894         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
5895         Renamed to ...
5896         (__redirect_expf): This.
5897         (SYMBOL_NAME): Changed to expf.
5898         (__ieee754_expf): Renamed to ...
5899         (__expf): This.
5900         (__GI___expf): This.
5901         (__ieee754_expf): Add strong_alias.
5902         (__expf_finite): Likewise.
5903         (__expf): New.
5904         Include <sysdeps/ieee754/flt-32/e_expf.c>.
5906 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
5908         [BZ #22332]
5909         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
5910         unescaping.
5912 2017-10-21  Florian Weimer  <fweimer@redhat.com>
5914         * posix/Makefile (tests): Add tst-glob-tilde.
5915         (tests-special): Add tst-glob-tilde-mem.out
5916         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
5917         (tst-glob-tilde-mem.out): Add mtrace check.
5918         * posix/tst-glob-tilde.c: New file.
5920 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
5922         * bits/floatn-common.h: New file.
5923         * math/Makefile (headers): Add bits/floatn-common.h.
5924         * bits/floatn.h: Include <bits/floatn-common.h>.
5925         * sysdeps/ia64/bits/floatn.h: Likewise.
5926         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
5927         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
5928         * sysdeps/powerpc/bits/floatn.h: Likewise.
5929         * sysdeps/x86/bits/floatn.h: Likewise.
5931 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5933         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
5934         indicates whether compiler emits an warning for alias for
5935         functions with incompatible types.
5937         [BZ #22273]
5938         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
5939         the auxiliary process is terminated by a signal before calling _exit
5940         or execve.
5942 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
5944         [BZ #21265]
5945         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
5946         New.
5947         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
5948         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
5949         and bit_arch_XSAVEC_Usable if needed.
5950         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
5951         and bit_arch_Use_dl_runtime_resolve_opt.
5952         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
5953         Removed.
5954         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
5955         (bit_arch_Prefer_No_AVX512): Updated.
5956         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
5957         (bit_arch_XSAVEC_Usable): New.
5958         (STATE_SAVE_OFFSET): Likewise.
5959         (STATE_SAVE_MASK): Likewise.
5960         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
5961         (cpu_features): Add xsave_state_size and xsave_state_full_size.
5962         (index_arch_Use_dl_runtime_resolve_opt): Removed.
5963         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
5964         (index_arch_XSAVEC_Usable): New.
5965         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5966         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
5967         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
5968         is enabled.
5969         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5970         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
5971         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
5972         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
5973         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
5974         _dl_runtime_resolve_xsavec.
5975         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
5976         Removed.
5977         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
5978         instead of VEC_SIZE.
5979         (REGISTER_SAVE_BND0): Removed.
5980         (REGISTER_SAVE_BND1): Likewise.
5981         (REGISTER_SAVE_BND3): Likewise.
5982         (REGISTER_SAVE_RAX): Always defined to 0.
5983         (VMOV): Removed.
5984         (_dl_runtime_resolve_avx): Likewise.
5985         (_dl_runtime_resolve_avx_slow): Likewise.
5986         (_dl_runtime_resolve_avx_opt): Likewise.
5987         (_dl_runtime_resolve_avx512): Likewise.
5988         (_dl_runtime_resolve_avx512_opt): Likewise.
5989         (_dl_runtime_resolve_sse): Likewise.
5990         (_dl_runtime_resolve_sse_vex): Likewise.
5991         (USE_FXSAVE): New.
5992         (_dl_runtime_resolve_fxsave): Likewise.
5993         (USE_XSAVE): Likewise.
5994         (_dl_runtime_resolve_xsave): Likewise.
5995         (USE_XSAVEC): Likewise.
5996         (_dl_runtime_resolve_xsavec): Likewise.
5997         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
5998         Removed.
5999         (_dl_runtime_resolve_avx512_opt): Likewise.
6000         (_dl_runtime_resolve_avx): Likewise.
6001         (_dl_runtime_resolve_avx_opt): Likewise.
6002         (_dl_runtime_resolve_sse): Likewise.
6003         (_dl_runtime_resolve_sse_vex): Likewise.
6004         (_dl_runtime_resolve_fxsave): New.
6005         (_dl_runtime_resolve_xsave): Likewise.
6006         (_dl_runtime_resolve_xsavec): Likewise.
6008 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
6010         [BZ #22320]
6011         CVE-2017-15670
6012         * posix/glob.c (__glob): Fix one-byte overflow.
6014 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6016         * malloc/malloc.c (sysdep-cancel.h): Add include.
6018 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6020         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
6022 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
6024         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
6025         (tests): Remove $(objpfx)ga_test depdendency.
6026         * resolv/ga_test.c: Remove file.
6028 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
6030         [BZ #18812]
6031         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
6032         * localedata/locales/kab_DZ: New file.
6034 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6036         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
6037         _dl_relocate_static_pie instead of _dl_start to compute load
6038         address in static PIE.
6040 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6042         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
6044 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
6046         [BZ #13605]
6047         * localedata/SUPPORTED: Add shn_MM/UTF-8.
6048         * localedata/locales/shn_MM: New file.
6050 2017-10-20  Florian Weimer  <fweimer@redhat.com>
6052         [BZ #22321]
6053         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
6054         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
6055         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
6056         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
6057         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
6058         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
6060 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
6062         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
6064 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
6066         * sysdeps/mips/ieee754/bits/floatn.h: New file.
6068         [BZ #22322]
6069         * sysdeps/mips/bits/long-double.h: Move to ....
6070         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
6072 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
6074         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
6076 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
6077             H.J. Lu  <hongjiu.lu@intel.com>
6079         [BZ #22299]
6080         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
6081         GLRO(dl_platform) to NULL.
6082         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
6083         (modules-names): Add tst-platformmod-1 and
6084         x86_64/tst-platformmod-2.
6085         (CFLAGS-tst-platform-1.c): New.
6086         (CFLAGS-tst-platformmod-1.c): Likewise.
6087         (CFLAGS-tst-platformmod-2.c): Likewise.
6088         (LDFLAGS-tst-platformmod-2.so): Likewise.
6089         ($(objpfx)tst-platform-1): Likewise.
6090         ($(objpfx)tst-platform-1.out): Likewise.
6091         (tst-platform-1-ENV): Likewise.
6092         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
6093         * sysdeps/x86_64/tst-platform-1.c: New file.
6094         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
6095         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
6097 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
6099         [BZ #13994]
6100         * locale/iso-639.def: Add Karbi.
6101         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
6102         * localedata/locales/mjw_IN: New file.
6104 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
6106         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
6107         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
6108         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
6109         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
6110         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
6111         (libm_alias_ldouble_other_r): Also create _Float128 alias.
6112         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
6113         <bits/floatn.h>.
6114         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
6115         (libm_alias_ldouble_other_r): Also create _Float128 alias.
6116         * manual/math.texi (Mathematics): Document additional architecture
6117         support for _Float128.
6118         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
6119         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6120         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6121         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6122         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6123         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6124         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6125         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6126         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6127         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6128         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6129         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6130         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6131         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6132         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6134 2017-10-18  Renlin Li  <renlin.li@arm.com>
6136         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
6137         _DYNAMIC symbol to calculate load address.
6139 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
6141         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
6142         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
6143         summary bits.
6144         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
6145         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
6147 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
6149         [BZ #16777]
6150         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
6151         and improve readability by using more ASCII.
6152         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
6153         and improve readability by using more ASCII.
6155 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
6157         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
6158         not all targets support atomics on bool.
6160 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
6162         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
6163         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
6164         __f128.
6165         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
6166         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
6167         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
6168         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
6169         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
6170         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
6172 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6174         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
6175         defines.
6177 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
6179         [BZ #22159]
6180         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
6181         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
6182         (do_check_remalloced_chunk): Fix build bug.
6183         (do_check_malloc_state): Add assert that checks arena->top.
6184         (malloc_consolidate): Remove initialization.
6185         (int_mallinfo): Remove call to malloc_consolidate.
6186          (__libc_mallopt): Clarify why malloc_consolidate is needed.
6188 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
6190         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
6191         (have_fastchunks): Remove.
6192         (clear_fastchunks): Remove.
6193         (set_fastchunks): Remove.
6194         (malloc_state): Add have_fastchunks.
6195         (malloc_init_state): Use have_fastchunks.
6196         (do_check_malloc_state): Remove incorrect invariant checks.
6197         (_int_malloc): Use have_fastchunks.
6198         (_int_free): Likewise.
6199         (malloc_consolidate): Likewise.
6201 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
6203         * malloc/malloc.c (tcache_put): Inline.
6204         (tcache_get): Inline.
6206 2017-10-17  Jordi Mallach  <jordi@gnu.org>
6208         Aurelien Jarno  <aurelien@aurel32.net>
6209         [BZ #2522]
6210         * localedata/locales/ca_ES@valencia: New file.
6211         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
6213 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
6215         [BZ #22296]
6216         * math/math.h: Let signbit use the builtin in C++ mode with gcc
6217         < 6.x
6219 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6221         * scripts/build-many-glibcs.py (Context.add_all_configs):
6222         Add arm-linux-gnueabihf multiarch extra_glibcs.
6224         * sysdeps/generic/ifunc-init.h: New file.
6225         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
6227 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
6229         [BZ #22019]
6230         * localedata/locales/el_GR: Set n_cs_precedes to 0.
6231         * localedata/locales/el_CY: copy "el_GR" because it is identical.
6232         * stdlib/tst-strfmon_l.c: adapt test case.
6234 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
6236         * sysdeps/generic/float128-abi.h: New file.
6237         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
6238         non-__prefixed symbols to ....
6239         * math/Versions: ... here.  Include <float128-abi.h>.
6240         * stdlib/Versions ... and here.  Include <float128-abi.h>
6242 2017-10-16  Florian Weimer  <fweimer@redhat.com>
6244         * version.h (VERSION): Switch to ".9000" as the development
6245         version suffix.
6247 2017-10-16  Florian Weimer  <fweimer@redhat.com>
6249         [BZ #22050]
6250         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
6251         compat_symbol_reference to access non-default version.
6253 2017-10-16  Florian Weimer  <fweimer@redhat.com>
6255         * malloc/Makefile (others-extras): Set to mcheck-init.o.
6257 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
6259         * include/shlib-compat.h (compat_symbol_reference): Update
6260         comment.
6262 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
6264         * math/Makefile (test-types): Add
6265         $(type-float128-$(float128-alias-fcts)).
6266         * math/test-float128.h (TYPE_STR): Define conditional on
6267         [FLT128_MANT_DIG == LDBL_MANT_DIG].
6268         (ULP_IDX): Likewise.
6269         (ULP_I_IDX): Likewise.
6271         * stdlib/strtold.c: Include <bits/floatn.h>
6272         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
6273         and later undefine as macro.  Define as weak alias if
6274         [!USE_WIDE_CHAR].
6275         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
6276         and later undefine as macro.  Define as weak alias if
6277         [USE_WIDE_CHAR].
6278         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
6279         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
6280         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
6281         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
6282         Define and later undefine as macro.  Define as weak alias if
6283         [USE_WIDE_CHAR].
6284         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
6285         <bits/floatn.h>.
6286         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
6287         Define and later undefine as macro.  Define as weak alias if
6288         [!USE_WIDE_CHAR].
6289         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
6290         Define and later undefine as macro.  Define as weak alias if
6291         [USE_WIDE_CHAR].
6293 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
6295         * localedata/collate-test.c (allocate_arrays): Don't use \n in
6296         record_verbose messages.
6298 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6300         [BZ #22052]
6301         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
6302         to silence -O3 -Wall warning with GCC 7.
6304 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
6306         * Makeconfig (+link-static-before-libc): Use the first of
6307         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
6308         * gmon/Makefile (tests): Add tst-gmon-static.
6309         (tests-static): Likewise.
6310         (CFLAGS-tst-gmon-static.c): New.
6311         (CRT-tst-gmon-static): Likewise.
6312         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
6313         (tst-gmon-static-ENV): Likewise.
6314         (tests-special): Likewise.
6315         ($(objpfx)tst-gmon-static.out): Likewise.
6316         (clean-tst-gmon-static-data): Likewise.
6317         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
6318         * gmon/tst-gmon-static-gprof.sh: New file.
6319         * gmon/tst-gmon-static.c: Likewise.
6321 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
6323         [BZ #22295]
6324         * locale/programs/linereader.c (get_string): Don't warn on
6325         non-symbolic character.
6327         [BZ #22294]
6328         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
6329         int_curr_symbol.
6331         [BZ #22292]
6332         * locale/programs/record-status.h: New file
6333         * locale/programs/locale.c: Add comment.
6334         * locale/programs/charmap-dir.c: Don't include error.h.
6335         (charmap_opendir): Use record_error.
6336         * locale/programs/charmap.c: Don't include error.h.
6337         (charmap_read): Use record_error, and record_warning.
6338         (parse_charmap): Likewise.
6339         * locale/programs/ld-address.c: Don't include error.h.
6340         (address_finish): Use record_error, and record_warning.
6341         * locale/programs/ld-collate.c: Don't include error.h.
6342         (collate_finish): Use record_error, and record_error_at_line.
6343         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
6344         (ctype_class_new): Likewise.
6345         (ctype_map_new): Likewise.
6346         (set_one_default): Likewise.
6347         (set_class_defaults): Likewise.
6348         (translit_flatten): Likewise.
6349         (allocate_arrays): Use record_error, and record_verbose.
6350         * locale/programs/ld-identification.c: Don't include error.h.
6351         (indentation_finish): Use record_error and record_warning.
6352         * locale/programs/ld-measurement.c: Don't include error.h.
6353         (measurement_finish): Use record_error.
6354         * locale/programs/ld-messages.c
6355         (message_finish): Likewise.
6356         * locale/programs/ld-monetary.c
6357         (monetary_finish): Likewise.
6358         * locale/programs/ld-name.c (name_finish): Use record_error
6359         and record_warning.
6360         * locale/programs/ld-numeric.c
6361         (numeric_finish): Use record_error.
6362         * locale/programs/ld-paper.c: Don't include error.h.
6363         (paper_finish): Use record_error.
6364         * locale/programs/ld-telephone.c: Don't include error.h.
6365         (telephone_finish): Use record_error.
6366         * locale/programs/ld-time.c (time_finish): Likewise.
6367         * locale/programs/linereader.h (lr_error): Make inline func.
6368         * locale/programs/localedef.c: Define recorded_warning_count,
6369         and recorded_error_count.
6370         (main): Use record_error. Use recorded_error_count and
6371         recorded_warning_count to issue correct error returns.
6372         (add_to_readlist): Use record_error.
6373         (find_locale): Likewise.
6374         (load_locale): Likewise.
6375         * locale/programs/localedef.h: Remove be_quiet
6376         and WITH_CUR_LOCALE.
6377         * locale/programs/locarchive.c (compare_from_file): Use
6378         record_error.
6379         * locale/programs/locfile.c (write_locale_data): Use
6380         record_error.
6381         * locale/programs/repertoire.c: Dont include error.h.
6382         (repertoire_complain): Use record_error.
6383         * localedata/tst-fmon.sh: Expect failures from localedef.
6384         * localedata/tst-locale.sh: Likewise.
6385         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
6387         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
6388         (REPORTS): Likewise.
6389         (check): Likewise.
6390         (i18n): Rename to...
6391         (i18n_ctype): ...this.
6392         (i18n-report): Rename to...
6393         (i18n_ctype-report): ...this.
6394         * localedata/locales/i18n_ctype: Regenerate.
6395         * localedata/locales/i18n: copy i18n_ctype.
6397 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
6399         * stdlib/strfroml.c: Include <bits/floatn.h>.
6400         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
6401         Define before include of <stdlib.h> and undefine afterwards, then
6402         define as weak alias.
6404         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
6405         Undefine and restore default definition.  Use
6406         libm_alias_ldouble_other.
6408 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
6410         [BZ #22153]
6411         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
6412         in coredumps.
6414 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
6416         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6417         Assign sym_map to be map for local symbols, as TLS relocations
6418         use sym_map to determine whether the symbol is defined and to
6419         extract the TLS information.
6420         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
6421         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6423 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6425         [BZ #22189]
6426         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
6427         (math_force_eval): Add powerpc version.
6429         [BZ #22142]
6430         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
6431         -DBL_MAX.
6432         (do_test): Likewise.
6433         * stdio-common/tst-printf.sh: Likewise.
6434         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
6435         ifdef clause in order to set the carry bit right.  Replace r0 by
6436         0 without changing the behavior.
6438 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
6440         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
6441         <libm-alias-ldouble.h>.
6442         (fabsl): Define using libm_alias_ldouble.
6443         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
6444         <libm-alias-ldouble.h>.
6445         (fabsl): Define using libm_alias_ldouble.
6447         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
6448         Remove conditional code.
6450         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
6451         Rename to __clog10_internal_l.
6452         (__clog10_internal_l): Define aliases using
6453         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
6454         with __clog10.
6456 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6458         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
6459         * benchtests/sincosf-inputs: New file.
6460         * benchtests/cosf-inputs: New file.
6461         * benchtests/sinf-inputs: New file.
6463 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6465         * posix/tst-spawn.c (do_test): Wait for both children.
6467 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
6469         [BZ #22284]
6470         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
6471         tests-pie): Add tst-gmon-pie.
6472         (CFLAGS-tst-gmon-pie.c): New.
6473         (CRT-tst-gmon-pie): Likewise.
6474         (tst-gmon-pie-ENV): Likewise.
6475         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
6476         ($(objpfx)tst-gmon-pie.out): Likewise.
6477         (clean-tst-gmon-pie-data): Likewise.
6478         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
6479         * gmon/gmon.c [PIC]: Include <link.h>.
6480         [PIC] (callback): New function.
6481         (write_hist): Add an argument for load address.  Subtract load
6482         address from PCs.
6483         (write_call_graph): Likewise.
6484         (write_gmon): Call __dl_iterate_phdr to get load address, pass
6485         it to write_hist and write_call_graph.
6486         * gmon/tst-gmon-pie.c: New file.
6488 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
6490         * math/Makefile (test-types-basic): New variable.
6491         (test-types): Likewise.
6492         (libm-test-support): Use $(test-types) instead of $(types).
6493         (libm-tests-base-normal): Likewise.
6494         (libm-tests-base-finite): Likewise.
6495         (libm-tests-base-inline): Likewise.
6496         (generated): Likewise.
6497         ($(objpfx)libm-test-support-$(t).c): Likewise.
6498         (libm-tests-for-type iterator): Likewise.
6499         (libm-test-support iterator): Likewise.
6500         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
6501         (ulp_idx): Use ULP_IDX.
6502         * math/test-ldouble.h: Include <float.h>.
6503         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
6504         (ULP_IDX): New macro.
6505         (ULP_I_IDX): Likewise.
6506         * math/test-double.h (ULP_IDX): Likewise.
6507         (ULP_I_IDX): Likewise.
6508         * math/test-float.h (ULP_IDX): Likewise.
6509         (ULP_I_IDX): Likewise.
6510         * math/test-float128.h (ULP_IDX): Likewise.
6511         (ULP_I_IDX): Likewise.
6513 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6515         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
6516         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
6517         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
6518         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
6519         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
6520         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
6521         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
6522         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
6523         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
6524         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
6525         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
6526         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
6527         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
6528         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6529         (SINGLE_THREAD_BY_GLOBAL): Define.
6530         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6531         Likewise.
6532         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6533         Likewise.
6534         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6535         Likewise.
6536         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6537         Likewise.
6538         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
6539         (SINGLE_THREAD_BY_GLOBAL): Likewise.
6540         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
6541         Likewise.
6543 2017-10-11  Andreas Schwab  <schwab@suse.de>
6545         * nis/Makefile (aux): Remove.
6546         * nscd/Makefile (aux): Add nscd_hash.
6547         (nscd-modules): Likewise.
6548         ($(objpfx)nscd): Don't depend on libnsl.
6549         * nscd/nscd_hash.c: New file.
6550         * nscd/nscd_hash.h: Likewise.
6551         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
6552         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
6553         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
6554         instead of <nis/rpcsvc/nis.h>.
6555         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
6557 2017-10-11  Florian Weimer  <fweimer@redhat.com>
6559         [BZ #22078]
6560         Avoid large NSS buffers with many addresses, aliases.
6561         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
6562         using dynarrays and struct alloc_buffer.
6563         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
6564         (tst-nss-files-hosts-multi): Link with -ldl.
6565         * nss/tst-nss-files-hosts-multi.c: New file.
6567 2017-10-11  Florian Weimer  <fweimer@redhat.com>
6569         [BZ #18023]
6570         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
6571         scratch_buffer.  Eliminate gotos.
6573 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
6575         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
6576         libm_alias_ldouble_other.
6577         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
6578         undefine and redefine.
6579         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
6580         (exp10l): Do not define here.
6581         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
6582         (weak_alias): Undefine and redefine.
6583         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
6584         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
6585         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
6586         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
6588         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
6589         [!__fma] (fma): Define using libm_alias_double.
6590         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
6591         [!__fmaf] (fmaf): Define using libm_alias_float.
6592         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
6593         (fmal): Define using libm_alias_ldouble.
6595 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
6597         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
6598         New macro.
6599         (libm_alias_double_other): Likewise.
6600         (libm_alias_double_r): Use libm_alias_double_other_r.
6601         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
6602         New macro.
6603         (libm_alias_float_other): Likewise.
6604         (libm_alias_float_r): Use libm_alias_float_other_r.
6605         * sysdeps/generic/libm-alias-float128.h
6606         (libm_alias_float128_other_r): New macro.
6607         (libm_alias_float128_other): Likewise.
6608         (libm_alias_float128_r): Use libm_alias_float128_other_r.
6609         * sysdeps/generic/libm-alias-ldouble.h
6610         (libm_alias_ldouble_other_r): New macro.
6611         (libm_alias_ldouble_other): Likewise.
6612         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
6613         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
6614         (libm_alias_double_other_r): New macro.
6615         (libm_alias_double_other): Likewise.
6616         (libm_alias_double_r): Use libm_alias_double_other_r.
6617         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
6618         (libm_alias_ldouble_other_r): New macro.
6619         (libm_alias_ldouble_other): Likewise.
6620         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
6621         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
6622         [!USE_AS_COMPAT]: Use libm_alias_double_other.
6623         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
6624         [!USE_AS_COMPAT]: Use libm_alias_float_other.
6625         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
6626         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
6627         * math/w_exp2f.c: Use libm_alias_float_other.
6628         * math/w_expf.c: Likewise.
6629         * math/w_log2f.c: Likewise.
6630         * math/w_logf.c: Likewise.
6631         * math/w_powf.c: Likewise.
6632         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
6633         [!__exp2f]: Use libm_alias_float_other.
6634         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
6635         [!__expf]: Use libm_alias_float_other.
6636         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
6637         [!__log2f]: Use libm_alias_float_other.
6638         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
6639         [!__logf]: Use libm_alias_float_other.
6640         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
6641         [!__powf]: Use libm_alias_float_other.
6643 2017-10-10  Florian Weimer  <fweimer@redhat.com>
6645         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
6646         function.
6647         (_nss_files_gethostbyname3_r): Call it.
6649 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
6651         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
6652         error.  Remove default definition of declare_mgen_alias.
6653         [!declare_mgen_alias_r]: Likewise.
6654         * sysdeps/generic/math-type-macros-double.h
6655         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
6656         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
6657         (declare_mgen_alias_r): Likewise.
6658         * sysdeps/generic/math-type-macros-float128.h
6659         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
6660         * sysdeps/generic/math-type-macros-ldouble.h
6661         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
6662         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
6663         macro.
6664         (declare_mgen_alias_r_s): Likewise.
6665         (declare_mgen_alias_r): Likewise.
6666         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
6667         (lgamma_r): Define using libm_alias_double_r.
6668         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
6669         (lgammaf_r): Define using libm_alias_float_r.
6670         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
6671         (lgammal_r): Define using libm_alias_ldouble_r.
6672         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
6673         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
6675 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6677         * lib/glob.c (__glob_pattern_type): Remove now-spurious
6678         extern declaration.
6680 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
6682         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
6684 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
6686         [BZ #21326]
6687         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
6688         [__cplusplus >= 201103] (__USE_ISOC99): Define.
6689         * math/Makefile (test-math-cxx11): New test.
6690         * math/test-math-cxx11.cc: New file.
6692 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
6694         * login/openpty.c (openpty): Close slave pty file descriptor on error.
6696         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
6697         call to allocate the slave pty file descriptor.
6699 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
6701         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
6702         [!__fma] (fma): Define using libm_alias_double.
6703         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
6704         [!__fma] (fma): Define using libm_alias_double.
6706         * sysdeps/ieee754/float128/float128_private.h: Include
6707         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
6708         (libm_alias_ldouble_r): Undefine and redefine.
6709         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
6710         <libm-alias-ldouble.h>.
6711         (asinhl): Define using libm_alias_ldouble.
6712         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
6713         <libm-alias-ldouble.h>.
6714         (atanl): Define using libm_alias_ldouble.
6715         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
6716         <libm-alias-ldouble.h>.
6717         (cbrtl): Define using libm_alias_ldouble.
6718         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
6719         <libm-alias-ldouble.h>.
6720         (ceill): Define using libm_alias_ldouble.
6721         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
6722         <libm-alias-ldouble.h>.
6723         (copysignl): Define using libm_alias_ldouble.
6724         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
6725         <libm-alias-ldouble.h>.
6726         (cosl): Define using libm_alias_ldouble.
6727         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
6728         <libm-alias-ldouble.h>.
6729         (erfl): Define using libm_alias_ldouble.
6730         (erfcl): Likewise.
6731         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
6732         <libm-alias-ldouble.h>.
6733         (expm1l): Define using libm_alias_ldouble.
6734         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
6735         <libm-alias-ldouble.h>.
6736         (fabsl): Define using libm_alias_ldouble.
6737         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
6738         <libm-alias-ldouble.h>.
6739         (floorl): Define using libm_alias_ldouble.
6740         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
6741         <libm-alias-ldouble.h>.
6742         (fmal): Define using libm_alias_ldouble.
6743         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
6744         <libm-alias-ldouble.h>.
6745         (frexpl): Define using libm_alias_ldouble.
6746         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
6747         libm_alias_ldouble.
6748         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
6749         <libm-alias-ldouble.h>.
6750         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
6751         libm_alias_ldouble.
6752         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
6753         <libm-alias-ldouble.h>.
6754         (getpayloadl): Define using libm_alias_ldouble.
6755         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
6756         <libm-alias-ldouble.h>.
6757         (llrintl): Define using libm_alias_ldouble.
6758         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
6759         <libm-alias-ldouble.h>.
6760         (llroundl): Define using libm_alias_ldouble.
6761         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
6762         <libm-alias-ldouble.h>.
6763         (logbl): Define using libm_alias_ldouble.
6764         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
6765         <libm-alias-ldouble.h>.
6766         (lrintl): Define using libm_alias_ldouble.
6767         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
6768         <libm-alias-ldouble.h>.
6769         (lroundl): Define using libm_alias_ldouble.
6770         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
6771         <libm-alias-ldouble.h>.
6772         (modfl): Define using libm_alias_ldouble.
6773         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
6774         <libm-alias-ldouble.h>.
6775         (nearbyintl): Define using libm_alias_ldouble.
6776         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
6777         <libm-alias-ldouble.h>.
6778         (nextafterl): Define using libm_alias_ldouble.
6779         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
6780         <libm-alias-ldouble.h>.
6781         (nextupl): Define using libm_alias_ldouble.
6782         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
6783         <libm-alias-ldouble.h>.
6784         (remquol): Define using libm_alias_ldouble.
6785         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
6786         <libm-alias-ldouble.h>.
6787         (rintl): Define using libm_alias_ldouble.
6788         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
6789         <libm-alias-ldouble.h>.
6790         (roundevenl): Define using libm_alias_ldouble.
6791         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
6792         <libm-alias-ldouble.h>.
6793         (roundl): Define using libm_alias_ldouble.
6794         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
6795         using libm_alias_ldouble.
6796         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
6797         <libm-alias-ldouble.h>.
6798         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
6799         Define using libm_alias_ldouble.
6800         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
6801         <libm-alias-ldouble.h>.
6802         (sincosl): Define using libm_alias_ldouble.
6803         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
6804         <libm-alias-ldouble.h>.
6805         (sinl): Define using libm_alias_ldouble.
6806         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
6807         <libm-alias-ldouble.h>.
6808         (tanhl): Define using libm_alias_ldouble.
6809         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
6810         <libm-alias-ldouble.h>.
6811         (tanl): Define using libm_alias_ldouble.
6812         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
6813         <libm-alias-ldouble.h>.
6814         (totalorderl): Define using libm_alias_ldouble.
6815         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
6816         <libm-alias-ldouble.h>.
6817         (totalordermagl): Define using libm_alias_ldouble.
6818         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
6819         <libm-alias-ldouble.h>.
6820         (truncl): Define using libm_alias_ldouble.
6821         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
6822         libm_alias_ldouble.
6823         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
6824         libm_alias_ldouble.
6825         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
6826         <libm-alias-ldouble.h>.
6827         (weak_alias): Do not undefine and redefine.
6828         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
6829         (copysignl): Define with long_double_symbol only if [IS_IN
6830         (libc)].
6831         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
6832         <libm-alias-ldouble.h>.
6833         (weak_alias): Do not undefine and redefine.
6834         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
6835         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
6836         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
6837         <libm-alias-ldouble.h>.
6838         (weak_alias): Do not undefine and redefine.
6839         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
6840         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
6841         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
6842         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
6843         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
6844         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
6845         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
6846         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
6847         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
6848         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
6849         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
6850         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
6851         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
6852         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
6853         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
6854         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
6855         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
6856         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
6857         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
6858         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
6859         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
6860         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
6861         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
6862         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
6863         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
6864         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
6866 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
6868         [BZ #22111]
6869         * malloc/malloc.c (tcache_shutting_down): Use bool type.
6870         (tcache_thread_freeres): Set tcache_shutting_down before
6871         freeing the tcache.
6872         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
6873         * malloc/tst-malloc-tcache-leak.c: New file.
6875 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6877         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
6878         back to powerpc32 file.
6879         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
6880         (memrchr): Add __memrchr_power8 to ifunc list.
6881         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
6882         extra bytes for unaligned inputs.
6884 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
6886         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
6887         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
6888         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
6889         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
6890         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
6892 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
6894         * sysdeps/arm/libm-test-ulps: Update.
6896         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
6897         <libm-alias-ldouble.h>.
6898         (asinhl): Define using libm_alias_ldouble.
6899         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
6900         <libm-alias-ldouble.h>.
6901         (cbrtl): Define using libm_alias_ldouble.
6902         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
6903         <libm-alias-ldouble.h>.
6904         (copysignl): Define using libm_alias_ldouble.
6905         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
6906         <libm-alias-ldouble.h>.
6907         (cosl): Define using libm_alias_ldouble.
6908         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
6909         <libm-alias-ldouble.h>.
6910         (erfl): Define using libm_alias_ldouble.
6911         (erfcl): Likewise.
6912         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
6913         <libm-alias-ldouble.h>.
6914         (fmal): Define using libm_alias_ldouble.
6915         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
6916         <libm-alias-ldouble.h>.
6917         (frexpl): Define using libm_alias_ldouble.
6918         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
6919         libm_alias_ldouble.
6920         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
6921         <libm-alias-ldouble.h>.
6922         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
6923         libm_alias_ldouble.
6924         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
6925         <libm-alias-ldouble.h>.
6926         (getpayloadl): Define using libm_alias_ldouble.
6927         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
6928         <libm-alias-ldouble.h>.
6929         (llrintl): Define using libm_alias_ldouble.
6930         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
6931         <libm-alias-ldouble.h>.
6932         (llroundl): Define using libm_alias_ldouble.
6933         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
6934         <libm-alias-ldouble.h>.
6935         (lrintl): Define using libm_alias_ldouble.
6936         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
6937         <libm-alias-ldouble.h>.
6938         (lroundl): Define using libm_alias_ldouble.
6939         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
6940         <libm-alias-ldouble.h>.
6941         (modfl): Define using libm_alias_ldouble.
6942         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
6943         <libm-alias-ldouble.h>.
6944         (nextupl): Define using libm_alias_ldouble.
6945         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
6946         <libm-alias-ldouble.h>.
6947         (remquol): Define using libm_alias_ldouble.
6948         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
6949         <libm-alias-ldouble.h>.
6950         (roundevenl): Define using libm_alias_ldouble.
6951         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
6952         <libm-alias-ldouble.h>.
6953         (roundl): Define using libm_alias_ldouble.
6954         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
6955         using libm_alias_ldouble.
6956         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
6957         <libm-alias-ldouble.h>.
6958         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
6959         <libm-alias-ldouble.h>.
6960         (setpayloadsigl): Define using libm_alias_ldouble.
6961         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
6962         <libm-alias-ldouble.h>.
6963         (sincosl): Define using libm_alias_ldouble.
6964         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
6965         <libm-alias-ldouble.h>.
6966         (sinl): Define using libm_alias_ldouble.
6967         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
6968         <libm-alias-ldouble.h>.
6969         (tanhl): Define using libm_alias_ldouble.
6970         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
6971         <libm-alias-ldouble.h>.
6972         (tanl): Define using libm_alias_ldouble.
6973         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
6974         <libm-alias-ldouble.h>.
6975         (totalorderl): Define using libm_alias_ldouble.
6976         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
6977         <libm-alias-ldouble.h>.
6978         (totalordermagl): Define using libm_alias_ldouble.
6979         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
6980         libm_alias_ldouble.
6981         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
6982         libm_alias_ldouble.
6984 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6986         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
6987         memmove_falkor.
6988         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6989         (__libc_ifunc_impl_list): Likewise.
6990         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
6991         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
6993         * benchtests/bench-memmove-walk.c: New file.
6994         * benchtests/Makefile (string-benchset): Add it.
6996         * benchtests/bench-memset-walk.c: New file.
6997         * benchtests/Makefile (string-benchset): Add it.
6999         * benchtests/bench-memcpy-walk.c: New file.
7000         * benchtests/Makefile (string-benchset): Add it.
7002 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7004         nscd: Eliminate compilation time dependency in the build output.
7005         * nscd/nscd_stat.c (STATDATA_VERSION)
7006         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
7007         (STATDATA_VERSION_FULL): New macro definitions.
7008         (compilation): Remove.
7009         (struct statdata): Adjust version member.
7010         (send_stats): Set version from STATDATA_VERSION_FULL.
7011         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
7013 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
7015         * configure.ac (--enable-add-ons): Remove option.
7016         (machine): Do not mention add-ons in comment.
7017         (LIBC_PRECONFIGURE): Likewise.
7018         (add_ons): Remove variable and sanity checks and logic to locate
7019         add-ons.
7020         (add_ons_automatic): Remove variable.
7021         (configured_add_ons): Likewise.
7022         (add_ons_sfx): Likewise.
7023         (add_ons_pfx): Likewise.
7024         (add_on_subdirs): Likewise.
7025         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
7026         consideration of add-ons in Implies handling.
7027         (sysdeps_add_ons): Likewise.
7028         * configure: Regenerated.
7029         * libidn/configure.ac: Remove.
7030         * libidn/configure: Likewise.
7031         * sysdeps/unix/inet/configure.ac: New file.
7032         * sysdeps/unix/inet/configure: New generated file.
7033         * sysdeps/unix/inet/Subdirs: Add libidn.
7034         * Makeconfig (sysdeps-srcdirs): Remove variable.
7035         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
7036         ($(common-objpfx)config.status): Do not depend on add-on files.
7037         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
7038         comment.
7039         (all-subdirs): Do not include $(add-on-subdirs).
7040         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
7041         * config.make.in (add-ons): Remove variable.
7042         (add-on-subdirs): Likewise.
7043         (sysdeps-add-ons): Likewise.
7044         * manual/Makefile (add-chapters): Remove.
7045         ($(objpfx)texis): Do not depend on $(add-chapters).
7046         (nonexamples): Do not handle $(add-chapters).
7047         (examples): Do not handle $(add-ons).
7048         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
7049         libc-texinfo.sh.
7050         * manual/install.texi (Installation): Do not mention add-ons.
7051         (--enable-add-ons): Do not document configure option.
7052         * INSTALL: Regenerated.
7053         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
7054         * manual/maint.texi (Hierarchy Conventions): Do not mention
7055         add-ons.
7056         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
7057         --enable-add-ons.
7058         * scripts/gen-sorted.awk: Do not handle Subdirs files from
7059         add-ons.
7060         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
7061         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
7063 2017-10-05  Andreas Schwab  <schwab@suse.de>
7065         [BZ #15142]
7066         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
7067         (_IO_flush_all_lockp): Always lock list_all_lock.
7068         (_IO_flush_all_linebuffered): Likewise.
7069         (_IO_unbuffer_all): Likewise.
7071 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7073         [BZ #15436]
7074         Do not flush stdio streams on abort.
7075         * stdlib/abort.c (fflush): Remove macro definition.
7076         (abort): Remove stages related to stdio flushing.
7078 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7080         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
7082 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
7084         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7086 2017-10-05  Florian Weimer  <fweimer@redhat.com>
7088         * support/support_format_hostent.c (support_format_hostent): Add
7089         more error information for NETDB_INTERNAL.
7091 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7093         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
7094         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
7095         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
7096         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
7097         AC_DEFINE if multi-arch is enabled.
7098         * sysdeps/i386/configure: Regenerated.
7100 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7102         * Makeconfig (+link-static-before-libc): Use
7103         $(DEFAULT-LDFLAGS-$(@F)).
7104         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
7105         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
7106         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
7108 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7110         * elf/Makefile (tests): Add tst-main1.
7111         (modules-names): Add tst-main1mod.
7112         ($(objpfx)tst-main1): New.
7113         (CRT-tst-main1): Likewise.
7114         (LDFLAGS-tst-main1): Likewise.
7115         (LDLIBS-tst-main1): Likewise.
7116         (tst-main1mod.so-no-z-defs): Likewise.
7117         * elf/tst-main1.c: New file.
7118         * elf/tst-main1mod.c: Likewise.
7120 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
7122         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
7124 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
7126         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
7127         (fma): Define using libm_alias_double.
7128         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
7129         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
7130         <math_ldbl_opt.h>.
7131         (fmal): Do not define as compat symbol here.
7132         * sysdeps/alpha/fpu/s_fma.c: New file.
7134 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7136         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
7138 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
7140         [BZ #22229]
7141         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
7142         <math_ldbl_opt.h>
7143         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
7144         and libc.
7145         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
7146         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
7147         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
7148         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
7149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7150         Include <math_ldbl_opt.h>
7151         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
7152         and libc.
7153         (compat_symbol): Undefine and redefine.
7154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
7155         <math_ldbl_opt.h>
7156         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
7157         (compat_symbol): Undefine and redefine.
7158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
7159         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
7160         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
7161         GLIBC_2_1 for libm.
7162         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
7163         GLIBC_2.0 copysignl symbol.
7164         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7165         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
7167         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
7169 2017-10-04  Florian Weimer  <fweimer@redhat.com>
7171         * scripts/check-local-headers.sh: Ignore nspr4 header file
7172         directory in addition to nspr.
7174 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
7176         [BZ #17956]
7177         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
7178         * configure: Regenerate.
7179         * crypt/Makefile (nss-cpp-flags): New variable.
7180         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
7181         (CPPFLAGS-md5-crypt.c): Use it.
7182         * scripts/check-local-headers.sh: Ignore nspr header file
7183         directory.
7185 2017-10-04  Andreas Schwab  <schwab@suse.de>
7187         * nis/Makefile (services): Remove compat.
7188         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
7189         ($(objpfx)libnss_compat.so): Remove rule.
7190         * nis/Versions (libnss_compat): Remove.
7191         * nss/Makefile (services): Add compat.
7192         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
7193         * nss/Versions (libnss_compat): Define.
7194         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
7195         Don't include <rpc/types.h>.  Replace bool_t by bool.
7196         * nss/nss_compat/compat-initgroups.c: Likewise.
7197         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
7198         instead of <rpcsrv/ypclnt.h>.
7199         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
7200         yp_get_default_domain.
7201         * nss/nss_compat/compat-pwd.c: Likewise.
7202         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
7203         yp_get_default_domain.
7204         * nss/nss_compat/nisdomain.c: New file.
7205         * nss/nss_compat/nisdomain.h: Likewise.
7207 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7209         [BZ #22244]
7210         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
7211         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
7213 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7215         [BZ #22243]
7216         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
7217         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
7219 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7221         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
7222         "movl main@GOTOFF(%ebx), %eax".
7224 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7226         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
7227         allow undefined _DYNAMIC in PIE libc.a.
7228         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
7229         Likewse.
7231 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7233         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
7234         check _DYNAMIC.
7236 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7238         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
7239         check _DYNAMIC.
7241 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7243         * math/test-math-iscanonical.cc (error): Replace bool with int.
7245 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
7247         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
7248         (modf): Define using libm_alias_double, only if [!__modf].
7249         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
7250         <libm-alias-double.h>.
7251         (modf): Define using libm_alias_double, only if [!__modf].
7252         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
7253         compat symbol here.
7254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
7255         (weak_alias): Do not undefine and redefine.
7256         (strong_alias): Likewise.
7257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
7258         (weak_alias): Likewise.
7259         (strong_alias): Likewise.
7261         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
7262         (logb): Define using libm_alias_double, only if [!__logb].
7263         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
7264         <libm-alias-double.h>.
7265         (logb): Define using libm_alias_double, only if [!__logb].
7266         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
7267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
7268         (weak_alias): Do not undefine and redefine.
7269         (strong_alias): Likewise.
7270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
7271         (weak_alias): Likewise.
7272         (strong_alias): Likewise.
7274 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7276         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
7277         Check SHARED instead PIC.
7279 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
7281         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
7282         [!__fmaf] (fmaf): Define using libm_alias_float.
7284         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
7285         (frexp): Define using libm_alias_double.
7286         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
7287         <libm-alias-double.h>.
7288         (frexp): Define using libm_alias_double.
7289         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
7290         compat symbol here.
7292 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7294         [BZ #22235]
7295         * math/math.h: Trivial fix for unbalanced parentheses in comment.
7296         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
7297         (CFLAGS-test-math-iscanonical.cc): New variable.
7298         * math/test-math-iscanonical.cc: New file.
7299         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
7300         Provide a C++ implementation based on function overloading,
7301         rather than using __MATH_TG, which uses C-only builtins.
7302         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
7303         Likewise.
7304         * sysdeps/powerpc/powerpc64le/Makefile
7305         (CFLAGS-test-math-iscanonical.cc): New variable.
7307 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
7309         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
7310         (ceil): Define using libm_alias_double.
7311         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
7312         (floor): Define using libm_alias_double.
7313         * sysdeps/ieee754/dbl-64/s_llround.c: Include
7314         <libm-alias-double.h>.
7315         (llround): Define using libm_alias_double.
7316         * sysdeps/ieee754/dbl-64/s_lround.c: Include
7317         <libm-alias-double.h>.
7318         (lround): Define using libm_alias_double.
7319         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
7320         <libm-alias-double.h>.
7321         (nearbyint): Define using libm_alias_double.
7322         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
7323         <libm-alias-double.h>.
7324         (remquo): Define using libm_alias_double.
7325         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
7326         (rint): Define using libm_alias_double.
7327         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
7328         (round): Define using libm_alias_double.
7329         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
7330         (trunc): Define using libm_alias_double.
7331         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
7332         <libm-alias-double.h>.
7333         (ceil): Define using libm_alias_double.
7334         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
7335         <libm-alias-double.h>.
7336         (floor): Define using libm_alias_double.
7337         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
7338         <libm-alias-double.h>.
7339         (llround): Define using libm_alias_double.
7340         [_LP64] (lround): Likewise.
7341         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
7342         <libm-alias-double.h>.
7343         [!_LP64] (lround): Define using libm_alias_double.
7344         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
7345         <libm-alias-double.h>.
7346         (nearbyint): Define using libm_alias_double.
7347         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
7348         <libm-alias-double.h>.
7349         (remquo): Define using libm_alias_double.
7350         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
7351         <libm-alias-double.h>.
7352         (rint): Define using libm_alias_double.
7353         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
7354         <libm-alias-double.h>.
7355         (round): Define using libm_alias_double.
7356         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
7357         <libm-alias-double.h>.
7358         (trunc): Define using libm_alias_double.
7359         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
7360         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
7361         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
7362         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
7363         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
7364         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
7365         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
7366         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
7367         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
7369 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7371         * math/w_remainder.c: New file.
7372         * math/w_remainderf.c: New file.
7373         * math/w_remainderl.c: New file.
7375 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
7377         * elf/rtld.c (BOOTSTRAP_MAP): New.
7378         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
7379         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7380         Likewise.
7381         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7382         Likewise.
7383         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7384         Likewise.
7386 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7388         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
7389         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
7390         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
7391         rtld_hidden_data_ver): Define to empty.
7392         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
7393         __assert_perror_fail): Likewise.
7394         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7395         (__rewinddir): Likewise.
7396         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7397         (__profile_frequency): Likewise.
7398         * include/setjmp.h (__sigsetjmp): Likewise.
7399         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
7400         __libc_sigaction): Likewise.
7401         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
7402         not set hidden attribute.
7403         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
7404         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
7405         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
7406         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
7407         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
7408         __fxstatat64): Likewise.
7409         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7410         (__uname): Likewise.
7411         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
7412         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
7413         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
7414         (NO_RTLD_HIDDEN): Set.
7415         * sysdeps/mach/hurd/configure: Refresh.
7416         * config.h.in: Refresh.
7418 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
7420         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
7421         (atan): Define using libm_alias_double.
7422         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
7423         (tan): Define using libm_alias_double.
7424         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
7425         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
7427         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
7428         define as weak alias of __atan.  Do not define any aliases if
7429         [__atan].
7430         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
7431         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
7432         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
7433         as weak alias of __tan.  Do not define any aliases if [__tan].
7434         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
7435         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
7436         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
7437         __atan.
7438         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
7439         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
7440         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
7441         and define as weak alias of __atan.
7442         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
7443         __atan.
7444         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
7445         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
7446         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
7447         define as weak alias of __tan.
7449 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7451         * math/w_lgamma.c: New file.
7452         * math/w_lgammaf.c: New file.
7453         * math/w_lgammal.c: New file.
7455 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7457         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
7458         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
7459         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
7460         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
7461         * sysdeps/ieee754/flt-32/w_logf.c: New file.
7462         * sysdeps/ieee754/flt-32/w_powf.c: New file.
7463         * sysdeps/i386/fpu/w_log2f.c: New file.
7464         * sysdeps/i386/fpu/w_logf.c: New file.
7465         * sysdeps/i386/fpu/w_powf.c: New file.
7466         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
7467         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
7468         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
7470 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7471             H.J. Lu  <hongjiu.lu@intel.com>
7473         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
7474         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
7475         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
7476         * sysdeps/ieee754/flt-32/w_expf.c: New file.
7477         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
7478         the new expf code.
7479         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
7480         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
7481         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
7482         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
7483         * sysdeps/i386/fpu/w_exp2f.c: New file.
7484         * sysdeps/i386/fpu/w_expf.c: New file.
7485         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
7486         * sysdeps/x86_64/fpu/w_expf.c: New file.
7488 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7490         * math/Versions (logf): New libm symbol at GLIBC_2.27.
7491         (log2f): Likewise.
7492         (powf): Likewise.
7493         * math/w_log2f.c: New file.
7494         * math/w_logf.c: New file.
7495         * math/w_powf.c: New file.
7496         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
7497         * math/w_logf_compat.c (__logf_compat): Likewise.
7498         * math/w_powf_compat.c (__powf_compat): Likewise.
7499         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
7500         * sysdeps/ia64/fpu/e_logf.S: Likewise.
7501         * sysdeps/ia64/fpu/e_powf.S: Likewise.
7502         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7503         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7504         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7505         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7506         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7507         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7508         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7509         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7510         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7511         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7512         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7513         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7515         Likewise.
7516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7517         Likewise.
7518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7519         Likewise.
7520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7521         Likewise.
7522         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7523         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7524         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7525         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7526         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7527         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7528         Likewise.
7529         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7530         Likewise.
7531         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7532         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7533         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7535 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7537         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7538         (sysdep_routines): Add memrchr_power8.
7539         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7540         (memrchr): Add __memrchr_power8 to list of memrchr functions.
7541         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
7542         New file.
7543         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
7544         (memrchr): Add __memrchr_power8 to ifunc list.
7545         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
7547 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7549         [BZ #18822]
7550         * sysdeps/unix/sysv/linux/posix_fadvise64.c
7551         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
7552         libc_hidden_def.
7553         * sysdeps/unix/sysv/linux/posix_fallocate64.c
7554         (__posix_fallocate64_l64): Likewise.
7556 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7558         [BZ #18822]
7559         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7560         (__sched_setaffinity_new): Add libc_hidden_proto and
7561         libc_hidden_def.
7563 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7565         [BZ #18822]
7566         * include/glob.h (__glob64): Add libc_hidden_proto.
7567         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
7568         libc_hidden_def.
7570 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7572         [BZ #18822]
7573         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
7574         attribute_hidden.
7576 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7578         [BZ #18822]
7579         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
7581 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7583         [BZ #18822]
7584         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
7585         libc_hidden_def.
7587 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7589         [BZ #18822]
7590         * csu/version.c (__libc_print_version): Add attribute_hidden.
7592 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7594         [BZ #18822]
7595         * include/libc-internal.h (__init_misc): Add attribute_hidden.
7597 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7599         [BZ #18822]
7600         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
7602 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7604         [BZ #18822]
7605         * nscd/nscd_helper.c (__nis_hash): New prototype.
7607 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7609         [BZ #18822]
7610         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
7611         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
7612         libc_hidden_def.
7613         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
7614         * termios/tcgetattr.c (__tcgetattr): Likewise.
7616 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7618         [BZ #18822]
7619         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
7620         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
7621         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
7622         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
7623         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
7625 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7627         [BZ #18822]
7628         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
7630 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7632         [BZ #18822]
7633         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
7634         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
7636 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7638         [BZ #18822]
7639         * intl/hash-string.h (__hash_string): Add attribute_hidden.
7641 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7643         [BZ #18822]
7644         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
7645         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
7647 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7649         [BZ #18822]
7650         * include/ifreq.h: New file.
7651         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
7652         (__ifreq): Likewise.
7653         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
7654         (__ifreq): Likewise.
7656 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7658         [BZ #18822]
7659         * include/idna.h: New file.
7660         * inet/getnameinfo.c: Include <idna.h> instead of
7661         <libidn/idna.h>.
7662         (__idna_to_unicode_lzlz): Removed.
7663         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
7664         <libidn/idna.h>.
7665         (__idna_to_ascii_lz): Removed.
7666         (__idna_to_unicode_lzlz): Likewise.
7668 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7670         [BZ #18822]
7671         * include/plural-exp.h: New file.
7672         * intl/plural-exp.c: Include <plural-exp.h> instead of
7673         "plural-exp.h".
7675 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7677         [BZ #18822]
7678         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
7679         "getsourcefilter.h".
7680         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
7681         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
7682         "getsourcefilter.h".
7683         (__get_sol): Removed.
7685 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7687         [BZ #18822]
7688         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
7689         to ...
7690         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
7692 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7694         [BZ #18822]
7695         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
7696         attribute_hidden.
7698 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7700         [BZ #18822]
7701         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
7703 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7705         [BZ #18822]
7706         * include/search.h (__tdestroy): Add libc_hidden_proto.
7707         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
7709 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7711         [BZ #18822]
7712         * include/assert.h (__assert_fail_base): Add attribute_hidden.
7714 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7716         [BZ #18822]
7717         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
7718         attribute_hidden.
7720 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7722         [BZ #18822]
7723         * include/signal.h (__kill): Add libc_hidden_proto.
7724         (__sigblock): Likewise.
7725         (__sigprocmask): Likewise.
7726         (__sigaltstack): Likewise.
7727         * signal/kill.c (__kill): Add libc_hidden_def.
7728         * signal/sigblock.c (__sigblock): Likewise.
7729         * signal/sigprocmask.c (__sigprocmask): Likewise.
7730         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
7731         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
7732         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
7733         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
7734         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
7735         Likewise.
7736         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
7737         Likewise.
7738         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
7739         (__sigprocmask): Likewise.
7740         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
7741         Likewise.
7742         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
7743         (__sigprocmask): Likewise.
7744         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
7745         Likewise.
7747 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7749         [BZ #18822]
7750         * include/string.h (__strsep): Add libc_hidden_proto.
7751         * string/strsep.c (__strsep): Add libc_hidden_def.
7753 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7755         [BZ #18822]
7756         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
7757         attribute_hidden.
7758         (__spawni): Likewise.
7760 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7762         [BZ #18822]
7763         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
7764         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
7765         libc_hidden_def.
7767 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7769         [BZ #18822]
7770         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
7772 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7774         [BZ #18822]
7775         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
7776         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
7777         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
7778         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
7779         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
7780         Likewise.
7781         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
7782         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
7784 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7786         [BZ #18822]
7787         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
7788         (__dcigettext): Likewise.
7790 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7792         [BZ #18822]
7793         * include/sys/sysinfo.h (__get_nprocs_conf): Add
7794         libc_hidden_proto.
7795         (__get_nprocs): Likewise.
7796         (__get_phys_pages): Likewise.
7797         (__get_avphys_pages): Likewise.
7798         (__get_child_max): Add attribute_hidden.
7799         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
7800         (__get_nprocs): Likewise.
7801         (__get_phys_pages): Likewise.
7802         (__get_avphys_pages): Likewise.
7803         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
7804         libc_hidden_def.
7805         (__get_nprocs): Likewise.
7806         (__get_phys_pages): Likewise.
7807         (__get_avphys_pages): Likewise.
7808         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
7809         libc_hidden_def.
7810         (__get_nprocs_conf): Likewise.
7811         (__get_phys_pages): Likewise.
7812         (__get_avphys_pages): Likewise.
7814 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7816         [BZ #18822]
7817         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
7818         attribute_hidden.
7819         (__netlink_close): Likewise.
7820         (__netlink_free_handle): Likewise.
7821         (__netlink_request): Likewise.
7823 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7825         [BZ #18822]
7826         * include/rpc/rpc.h (__rpc_thread_variables): Add
7827         attribute_hidden.
7828         (__rpc_thread_svc_cleanup): Likewise.
7829         (__rpc_thread_clnt_cleanup): Likewise.
7830         (__rpc_thread_key_cleanup): Likewise.
7832 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7834         [BZ #18822]
7835         * include/sys/uio.h (__readv): Add libc_hidden_proto.
7836         (__writev): Likewise.
7837         * misc/readv.c (__readv): Add libc_hidden_def.
7838         * misc/writev.c (__writev): Likewise.
7839         * sysdeps/posix/readv.c (__readv): Likewise.
7840         * sysdeps/posix/writev.c (__writev): Likewise.
7841         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
7842         (__readv): Likewise.
7843         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
7844         (__writev): Likewise.
7846 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7848         [BZ #18822]
7849         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
7850         (__regcomp): Add libc_hidden_proto.
7851         (__regexec): Likewise.
7852         (__regfree): Likewise.
7853         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
7854         (__regfree): Likewise.
7855         * posix/regexec.c (__regexec): Likewise.
7857 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7859         [BZ #18822]
7860         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
7861         (__getutent): Likewise.
7862         (__getutid): Likewise.
7863         (__getutline): Likewise.
7864         (__pututline): Likewise.
7865         (__getutent_r): Likewise.
7866         (__getutid_r): Likewise.
7867         (__getutline_r): Likewise.
7868         (__utmpname): Add attribute_hidden.
7869         (__setutent): Likewise.
7870         (__endutent): Likewise.
7871         * login/getutent.c (__getutent): Add libc_hidden_def.
7872         * login/getutent_r.c (__getutent_r): Likewise.
7873         (__pututline): Likewise.
7874         * login/getutid.c (__getutid): Likewise.
7875         * login/getutid_r.c (__getutid_r): Likewise.
7876         * login/getutline.c (__getutline): Likewise.
7877         * login/getutline_r.c (__getutline_r): Likewise.
7878         * login/updwtmp.c (__updwtmp): Likewise.
7880 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7882         [BZ #18822]
7883         * include/dirent.h (__opendir): Always add attribute_hidden.
7884         (__fdopendir): Likewise.
7885         (__closedir): Likewise.
7886         (__readdir): Likewise.
7887         (__readdir64): Add libc_hidden_proto.
7888         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
7889         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
7890         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
7891         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
7892         New alias.
7894 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7896         [BZ #18822]
7897         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
7898         * include/netdb.h (__gethostbyaddr_r): Likewise.
7899         (__gethostbyname_r): Likewise.
7900         (__gethostbyname2_r): Likewise.
7901         (__getnetbyaddr_r): Likewise.
7902         (__getnetbyname_r): Likewise.
7903         (__getservbyname_r): Likewise.
7904         (__getservbyport_r): Likewise.
7905         (__getprotobyname_r): Likewise.
7906         (__getprotobynumber_r): Likewise.
7907         (__getnetgrent_r): Likewise.
7908         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
7909         (__getrpcbynumber_r): Likewise.
7910         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
7912 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7914         [BZ #18822]
7915         * include/stdio.h (__fcloseall): Add attribute_hidden.
7916         (__getline): Likewise.
7917         (__path_search): Likewise.
7918         (__gen_tempname): Likewise.
7919         (__libc_message): Likewise.
7920         (__flockfile): Likewise.
7921         (__funlockfile): Likewise.
7922         (__fxprintf): Likewise.
7923         (__fxprintf_nocancel): Likewise.
7925 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7927         [BZ #18822]
7928         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
7929         (__sgetsgent_r): Likewise.
7931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7933         [BZ #18822]
7934         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
7935         (__statfs64): Likewise.
7936         (__fstatfs64): Likewise.
7937         * include/sys/statvfs.h (__statvfs64): Likewise.
7938         (__fstatvfs64): Likewise.
7939         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
7940         (__statfs_filesize_max): Likewise.
7941         (__statfs_symlinks): Likewise.
7942         (__statfs_chown_restricted): Likewise.
7944 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7946         [BZ #18822]
7947         * include/time.h (__tzstring): Add attribute_hidden.
7948         (__tzfile_read): Likewise.
7949         (__tzfile_compute): Likewise.
7950         (__tzfile_default): Likewise.
7951         (__tzset_parse_tz): Likewise.
7952         (__offtime): Likewise.
7953         (__asctime_r): Likewise.
7954         (__tzset): Likewise.
7955         (__tz_convert): Likewise.
7956         (__getdate_r): Likewise.
7957         (__getclktck): Likewise.
7959 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7961         [BZ #18822]
7962         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
7963         (__nscd_unmap): Likewise.
7964         (__nscd_cache_search): Likewise.
7965         (__nscd_get_nl_timestamp): Likewise.
7966         (__nscd_getpwnam_r): Likewise.
7967         (__nscd_getpwuid_r): Likewise.
7968         (__nscd_getgrnam_r): Likewise.
7969         (__nscd_getgrgid_r): Likewise.
7970         (__nscd_gethostbyname_r): Likewise.
7971         (__nscd_gethostbyname2_r): Likewise.
7972         (__nscd_gethostbyaddr_r): Likewise.
7973         (__nscd_getai): Likewise.
7974         (__nscd_getgrouplist): Likewise.
7975         (__nscd_getservbyname_r): Likewise.
7976         (__nscd_getservbyport_r): Likewise.
7977         (__nscd_innetgr): Likewise.
7978         (__nscd_setnetgrent): Likewise.
7980 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7982         [BZ #18822]
7983         * include/gmp.h: Declare internal functions only if _ISOMAC is
7984         undefined.
7985         (__mpn_extract_double): Add attribute_hidden.
7986         (__mpn_extract_long_double): Likewise.
7987         (__mpn_extract_float128): Likewise.
7988         (__mpn_construct_float): Likewise.
7989         (__mpn_construct_double): Likewise.
7990         (__mpn_construct_long_double): Likewise.
7991         (__mpn_construct_float128): Likewise.
7992         (mpn_add_1): Likewise.
7993         (mpn_addmul_1): Likewise.
7994         (mpn_add_n): Likewise.
7995         (mpn_cmp): Likewise.
7996         (mpn_divrem): Likewise.
7997         (mpn_lshift): Likewise.
7998         (mpn_mul): Likewise.
7999         (mpn_mul_1): Likewise.
8000         (mpn_rshift): Likewise.
8001         (mpn_sub_1): Likewise.
8002         (mpn_submul_1): Likewise.
8003         (mpn_sub_n): Likewise.
8005 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8007         [BZ #18822]
8008         * include/wchar.h (__wcsnlen): Add attribute_hidden.
8009         (__wcscat): Likewise.
8010         (__btowc): Likewise.
8011         (__wcrtomb): Likewise.
8012         (__mbsrtowcs): Likewise.
8013         (__wcsrtombs): Likewise.
8014         (__mbsnrtowcs): Likewise.
8015         (__wcsnrtombs): Likewise.
8016         (__wcsncpy): Likewise.
8017         (__wcpncpy): Likewise.
8018         (__wmemcpy): Likewise.
8019         (__wmempcpy): Likewise.
8020         (__wmemmove): Likewise.
8021         (__wcschrnul): Likewise.
8022         (__vfwscanf): Likewise.
8023         (__vswprintf): Likewise.
8024         (__fwprintf): Likewise.
8025         (__vfwprintf): Likewise.
8027 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8029         [BZ #18822]
8030         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
8031         (__getgrgid_r): Likewise.
8032         (__getgrnam_r): Likewise.
8033         * include/pwd.h (__getpwuid_r): Likewise.
8034         (__getpwnam_r): Likewise.
8035         (__fgetpwent_r): Likewise.
8036         * include/shadow.h (__getspnam_r): Likewise.
8037         (__sgetspent_r): Likewise.
8038         (__fgetspent_r): Likewise.
8040 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8042         [BZ #18822]
8043         * include/unistd.h (__access): Add attribute_hidden.
8044         (__lseek64): Likewise.
8045         (__libc_pread64): Likewise.
8046         (__pipe2): Likewise.
8047         (__sleep): Likewise.
8048         (__chdir): Likewise.
8049         (__fchdir): Likewise.
8050         (__getcwd): Likewise.
8051         (__rmdir): Likewise.
8052         (__execvpe): Likewise.
8053         (__execve): Likewise.
8054         (__setsid): Likewise.
8055         (__getuid): Likewise.
8056         (__geteuid): Likewise.
8057         (__getgid): Likewise.
8058         (__getegid): Likewise.
8059         (__getgroups): Likewise.
8060         (__group_member): Likewise.
8061         (__ttyname_r): Likewise.
8062         (__isatty): Likewise.
8063         (__readlink): Likewise.
8064         (__unlink): Likewise.
8065         (__gethostname): Likewise.
8066         (__profil): Likewise.
8067         (__getdtablesize): Likewise.
8068         (__brk): Likewise.
8069         (__ftruncate): Likewise.
8070         (__ftruncate64): Likewise.
8072 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8074         [BZ #18822]
8075         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
8076         * argp/argp-fs-xinl.c: Likewise.
8077         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
8078         * argp/argp-parse.c: Include <argp.h>.
8079         * argp/argp-xinl.c: Likewise.
8080         * include/argp-fmtstream.h: New file.
8081         * include/argp.h (__argp_error): Add attribute_hidden.
8082         (__argp_failure): Likewise.
8083         (__argp_input): Likewise.
8084         (__argp_state_help): Likewise.
8086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8088         [BZ #18822]
8089         * include/wchar.h (____wcstof_l_internal): New prototype.
8090         (____wcstod_l_internal): Likewise.
8091         (____wcstold_l_internal): Likewise.
8092         (____wcstol_l_internal): Likewise.
8093         (____wcstoul_l_internal): Likewise.
8094         (____wcstoll_l_internal): Likewise.
8095         (____wcstoull_l_internal): Likewise.
8096         (____wcstof128_l_internal): Likewise.
8097         * sysdeps/ieee754/float128/wcstof128.c
8098         (____wcstof128_l_internal): Removed.
8099         * sysdeps/ieee754/float128/wcstof128_l.c
8100         (____wcstof128_l_internal): Likewise.
8101         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
8102         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
8103         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
8104         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
8105         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
8106         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
8107         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
8108         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
8109         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
8110         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
8112 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8114         [BZ #18822]
8115         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
8116         instead of <sys/statvfs.h>.
8117         (__internal_statvfs): Removed.
8118         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
8119         instead of <sys/statvfs.h>.
8120         (__internal_statvfs64): Removed.
8121         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
8122         "internal_statvfs.h" instead of <sys/statvfs.h>.
8123         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
8124         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
8125         instead of <sys/statvfs.h>.
8126         (__internal_statvfs): Removed.
8127         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
8128         instead of <sys/statvfs.h>.
8129         (__internal_statvfs64): Removed.
8131 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8133         [BZ #18822]
8134         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
8135         (__gconv_close): Likewise.
8136         (__gconv): Likewise.
8137         (__gconv_find_transform): Likewise.
8138         (__gconv_lookup_cache): Likewise.
8139         (__gconv_compare_alias_cache): Likewise.
8140         (__gconv_load_cache): Likewise.
8141         (__gconv_get_path): Likewise.
8142         (__gconv_close_transform): Likewise.
8143         (__gconv_release_cache): Likewise.
8144         (__gconv_find_shlib): Likewise.
8145         (__gconv_release_shlib): Likewise.
8146         (__gconv_get_builtin_trans): Likewise.
8147         (__gconv_compare_alias): Likewise.
8148         * include/dlfcn.h (_dlerror_run): Likewise.
8149         * include/stdio.h (__fortify_fail_abort): Likewise.
8150         * include/time.h (__tz_compute): Likewise.
8151         (__strptime_internal): Likewise.
8152         * intl/gettextP.h (_nl_find_domain): Likewise.
8153         (_nl_load_domain): Likewise.
8154         (_nl_find_msg): Likewise.
8155         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
8156         (EXTRACT_PLURAL_EXPRESSION): Likewise.
8157         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
8158         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
8159         (__gai_find_request): Likewise.
8160         (__gai_remove_request): Likewise.
8161         (__gai_notify): Likewise.
8162         (__gai_notify_only): Likewise.
8163         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
8164         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8165         (_dl_non_dynamic_init): Likewise.
8166         (_dl_aux_init): Likewise.
8167         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
8168         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
8169         Likewise.
8170         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
8171         (__wcsmbs_clone_conv): Likewise.
8172         (__wcsmbs_named_conv): Likewise.
8174 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8176         [BZ #18822]
8177         * include/stdlib.h (__random): Add attribute_hidden.
8178         (__random_r): Likewise.
8179         (__srandom_r): Likewise.
8180         (__initstate_r): Likewise.
8181         (__setstate_r): Likewise.
8182         (__erand48_r): Likewise.
8183         (__nrand48_r): Likewise.
8184         (__jrand48_r): Likewise.
8185         (__srand48_r): Likewise.
8186         (__seed48_r): Likewise.
8187         (__lcong48_r): Likewise.
8188         (__drand48_iterate): Likewise.
8189         (__setenv): Likewise.
8190         (__unsetenv): Likewise.
8191         (__clearenv): Likewise.
8192         (__ptsname_r): Likewise.
8193         (__posix_openpt): Likewise.
8194         (__add_to_environ): Likewise.
8195         (__realpath): Add libc_hidden_proto.
8196         (__ecvt_r): Likewise.
8197         (__fcvt_r): Likewise.
8198         (__qecvt_r): Likewise.
8199         (__qfcvt_r): Likewise.
8200         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
8201         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
8203 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
8205         [BZ #18822]
8206         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
8207         * include/time.h (__mktime_internal): Likewise.
8208         * libio/iolibio.h (__fopen_internal): Likewise.
8210 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
8212         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
8213         pointer in frame.
8214         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
8215         Correct offset used to restore PIC register.
8217 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
8219         [BZ libc/22165]
8220         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
8221         code to load address of __getcontext_ret when generating PIC code.
8223 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
8225         * elf/Makefile (tests-static-internal): Add
8226         tst-tls1-static-non-pie.
8227         (LDFLAGS-tst-tls1-static-non-pie): New.
8228         * elf/tst-tls1-static-non-pie.c: New file.
8230 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
8232         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
8233         (asinh): Define using libm_alias_double.
8234         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
8235         (cbrt): Define using libm_alias_double.
8236         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
8237         <libm-alias-double.h>.
8238         (copysign): Define using libm_alias_double.
8239         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
8240         (erf): Define using libm_alias_double.
8241         (erfc): Likewise.
8242         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
8243         (expm1): Define using libm_alias_double.
8244         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
8245         (fabs): Define using libm_alias_double.
8246         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
8247         libm_alias_double.
8248         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
8249         <libm-alias-double.h>.
8250         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
8251         libm_alias_double.
8252         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
8253         <libm-alias-double.h>.
8254         (getpayload): Define using libm_alias_double.
8255         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
8256         <libm-alias-double.h>.
8257         (llrint): Define using libm_alias_double.
8258         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
8259         (lrint): Define using libm_alias_double.
8260         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
8261         <libm-alias-double.h>.
8262         (nextup): Define using libm_alias_double.
8263         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
8264         <libm-alias-double.h>.
8265         (roundeven): Define using libm_alias_double.
8266         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
8267         libm_alias_double.
8268         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
8269         <libm-alias-double.h>.
8270         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
8271         using libm_alias_double.
8272         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
8273         (cos): Define using libm_alias_double.
8274         (sin): Likewise.
8275         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
8276         <libm-alias-double.h>.
8277         (sincos): Define using libm_alias_double.
8278         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
8279         (tanh): Define using libm_alias_double.
8280         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
8281         <libm-alias-double.h>.
8282         (totalorder): Define using libm_alias_double.
8283         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
8284         <libm-alias-double.h>.
8285         (totalordermag): Define using libm_alias_double.
8286         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
8287         libm_alias_double.
8288         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
8289         libm_alias_double.
8290         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
8291         <libm-alias-double.h>.
8292         (getpayload): Define using libm_alias_double.
8293         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
8294         <libm-alias-double.h>.
8295         (roundeven): Define using libm_alias_double.
8296         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
8297         <libm-alias-double.h>.
8298         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
8299         <libm-alias-double.h>.
8300         (totalorder): Define using libm_alias_double.
8301         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
8302         <libm-alias-double.h>.
8303         (totalordermag): Define using libm_alias_double.
8304         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
8305         libc compat symbol here.
8306         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
8307         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
8308         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
8309         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
8310         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
8311         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
8312         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
8313         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
8314         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
8315         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
8317 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8319         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
8320         _dl_relocate_static_pie instead of _dl_start to compute load
8321         address in static PIE.  Return 0 if _DYNAMIC is undefined for
8322         static executable.
8324 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8326         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
8327         _DYNAMIC is undefined for static executable.
8329 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
8331         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
8333 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
8335         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8337 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
8339         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8340         (__ieee754_lgamma_r): Use fabs rather than __fabs.
8341         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8342         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8343         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8344         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
8345         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
8346         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
8347         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
8348         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
8349         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
8350         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8351         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
8352         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
8353         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
8354         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
8355         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
8357 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
8359         * math/bits/cmathcalls.h (cimag): Remove inline.
8360         (creal): Remove inline.
8361         (conj): Remove inline.
8363 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8365         * math/Makefile (type-float-routines): Add e_powf_log2_data.
8366         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
8367         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
8368         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
8369         (issignalingf_inline): Likewise.
8370         (POWF_LOG2_TABLE_BITS): Likewise.
8371         (POWF_LOG2_POLY_ORDER): Likewise.
8372         (POWF_SCALE_BITS): Likewise.
8373         (POWF_SCALE): Likewise.
8374         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
8375         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
8376         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
8378 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8380         * math/Makefile (type-float-routines): Add e_log2f_data.
8381         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
8382         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
8383         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
8384         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
8385         * sysdeps/i386/fpu/e_log2f_data.c: New file.
8386         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
8387         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
8389 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8391         * math/Makefile (type-float-routines): Add e_logf_data.
8392         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
8393         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
8394         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
8395         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
8396         * sysdeps/i386/fpu/e_logf_data.c: New file.
8397         * sysdeps/ia64/fpu/e_logf_data.c: New file.
8398         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
8400 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8402         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
8403         undefined _DYNAMIC in PIE libc.a.
8404         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
8405         Likewse.
8407 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
8409         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
8410         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
8411         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
8412         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
8413         (__signbit): Remove.
8414         (__signbitl): Remove.
8415         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
8416         (__signbit): Remove.
8417         (__signbitl): Remove.
8418         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
8419         (__signbit): Remove.
8420         (__signbitl): Remove.
8421         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
8422         (__signbit): Remove.
8423         (__signbitl): Remove.
8424         * sysdeps/tile/bits/mathinline.h: Delete file.
8425         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
8426         (__signbit): Remove.
8427         (__signbitl): Remove.
8429 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
8431         * math/math.h: Improve handling of C99 isgreater macros.
8432         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
8433         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
8434         * sysdeps/powerpc/bits/mathinline.h: Likewise.
8435         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8436         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
8438 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8440         * sysdeps/aarch64/libm-test-ulps: Update.
8442 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
8444         [BZ #22225]
8445         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8446         math_opt_barrier on argument when doing arithmetic on it.
8447         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8448         Likewise.  Use math_force_eval not math_opt_barrier after
8449         arithmetic.
8450         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
8451         math_opt_barrier on argument when doing arithmetic on it.
8452         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8453         Likewise.
8455 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8457         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
8458         libc_hidden_def.
8459         (__freeifaddrs): Likewise.
8461 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8463         * include/dirent.h (__dirfd): New declaration.
8464         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
8465         alias.
8466         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
8467         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
8468         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
8469         * include/unistd.h (__revoke): New declaration.
8470         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
8471         alias.
8472         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8473         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
8474         revoke.
8475         * include/dirent.h (__seekdir): New declaration.
8476         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
8477         redefine as weak alias.
8478         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
8479         of seekdir.
8480         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
8481         and use libc_hidden_def on them.
8482         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
8483         them.
8484         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
8485         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
8486         instead of getifaddrs and freeifaddrs.
8488 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
8490         [BZ #18822]
8491         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
8492         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
8493         (__dso_handle): Remove declaration.
8494         * dlfcn/tstatexit.c (__dso_handle): Removed.
8495         (main): Don't check __dso_handle.
8496         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
8497         (main): Don't check __dso_handle.
8498         * include/dso_handle.h: New file.
8499         * malloc/mtrace.c: Include <dso_handle.h>.
8500         (mtrace): Pass __dso_handle directly.
8501         * nptl/pthread_atfork.c: Include <dso_handle.h>.
8502         (__dso_handle): Remove declaration.
8503         (__pthread_atfork): Pass __dso_handle directly.
8504         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
8505         (__dso_handle): Removed.
8506         * posix/wordexp-test.c: Include <dso_handle.h>.
8507         (__dso_handle): Remove declaration.
8508         (__app_register_atfork): Pass __dso_handle directly.
8509         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
8510         (__dso_handle): Remove declaration.
8511         (at_quick_exit): Pass __dso_handle directly.
8512         * stdlib/atexit.c: Include <dso_handle.h>.
8513         (__dso_handle): Remove declaration.
8514         (atexit): Pass __dso_handle directly.
8515         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
8516         (__dso_handle): Removed.
8518 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
8520         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
8521         using VDSO.
8523 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
8525         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
8526         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
8527         values to correct default value for given type.
8529 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
8531         [BZ #22101]
8532         * elf/Makefile (tests): Add tst-debug1.
8533         ($(objpfx)tst-debug1): New.
8534         ($(objpfx)tst-debug1.out): Likewise.
8535         ($(objpfx)tst-debug1mod1.so): Likewise.
8536         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
8537         with p_filesz == 0.
8538         * elf/tst-debug1.c: New file.
8540 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
8542         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
8543         Define using __ifunc.
8545 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8547         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
8548         exp2f() values.
8550 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
8552         [BZ #22156]
8553         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
8555 2017-09-26  Florian Weimer  <fweimer@redhat.com>
8557         * resolv/Makefile (tests-internal): Fix typo in comment.
8559 2017-09-26  Florian Weimer  <fweimer@redhat.com>
8561         * resolv/nss_dns/dns-host.c: Fix typo in comment.
8563 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8565         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
8566         Use an union instead of a max_align_t array for __space,
8567         so that __space is the same size on all platforms.
8568         * malloc/scratch_buffer_grow_preserve.c
8569         (__libc_scratch_buffer_grow_preserve): Likewise.
8571         [BZ #22183]
8572         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
8573         version to 2.
8574         * posix/Makefile (routines): Add glob-lstat-compat and
8575         glob64-lstat-compat.
8576         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
8577         * posix/glob-lstat-compat.c: New file.
8578         * posix/glob64-lstat-compat.c: Likewise.
8579         * posix/tst-glob_lstat_compat.c: Likewise.
8580         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
8581         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
8582         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
8583         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
8584         Likewise.
8585         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
8586         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
8587         * posix/glob.c (glob_lstat): New function.
8588         (glob): Rename to __glob and add versioned symbol to 2.27.
8589         (glob_in_dir): Use glob_lstat.
8590         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
8591         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8592         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
8593         2.27.
8594         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
8595         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
8596         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
8597         gl_lstat on glob call.
8598         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
8599         and glob64 symbols.
8600         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8601         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8602         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8603         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8604         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8605         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8606         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8607         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8608         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8609         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8610         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8611         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8613         Likewise.
8614         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
8615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8616         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8617         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8618         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8619         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8620         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8621         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
8622         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
8623         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8624         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8625         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8627 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
8629         * configure.ac (AS): Require binutils 2.25 or later.
8630         * configure: Regenerated.
8632 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
8634         [BZ #22207]
8635         * stdlib/test-atexit-race-common.c (do_test): Minimize required
8636         VM size.
8638 2017-09-25  DJ Delorie  <dj@redhat.com>
8640         [BZ #22161]
8641         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
8642         resetting timeout.
8644 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8646         * sysdeps/ieee754/dbl-64/sincos32.h
8647         [SINCCOS32_H]: Remove define.
8648         [SINCOS32_H]: Define.
8650 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8652         * math/Versions (expf): New libm symbol at GLIBC_2.27.
8653         (exp2f): Likewise.
8654         * math/w_exp2f.c: New file.
8655         * math/w_expf.c: New file.
8656         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
8657         * math/w_expf_compat.c (__expf_compat): Likewise.
8658         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
8659         * sysdeps/ia64/fpu/e_expf.S: Likewise.
8660         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
8661         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8662         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8663         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8664         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8665         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8666         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8667         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8668         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8669         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8670         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8671         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8673         Likewise.
8674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8675         Likewise.
8676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8677         Likewise.
8678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8679         Likewise.
8680         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8681         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8682         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8683         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8684         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8685         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8686         Likewise.
8687         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8688         Likewise.
8689         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8690         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8691         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8693 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8695         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
8696         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
8697         (roundtoint, converttoint): Likewise.
8698         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
8699         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
8700         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
8701         * sysdeps/ieee754/flt-32/math_config.h: New file.
8702         * sysdeps/ieee754/flt-32/math_errf.c: New file.
8703         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
8704         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
8705         * sysdeps/i386/fpu/math_errf.c: New file.
8706         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
8707         * sysdeps/ia64/fpu/math_errf.c: New file.
8708         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
8709         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
8711 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8713         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
8714         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
8715         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
8716         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
8717         to make sure that these symbols are defined.
8718         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
8719         of <limits.h>
8720         (__need_NULL): Do not define.
8721         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
8722         alignment.
8723         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
8724         CMGROUP_MAX, cmsgcred): Do not define.
8725         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
8726         NULL.
8727         * bits/socket.h: Likewise.
8728         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
8729         __gettimeofday instead of gettimeofday.
8730         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
8731         instead of settimeofday.
8733 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
8735         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
8736         (asinhf): Define using libm_alias_float.
8737         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
8738         (atanf): Define using libm_alias_float.
8739         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
8740         (cbrtf): Define using libm_alias_float.
8741         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
8742         (ceilf): Define using libm_alias_float.
8743         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
8744         <libm-alias-float.h>.
8745         (copysignf): Define using libm_alias_float.
8746         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
8747         (cosf): Define using libm_alias_float.
8748         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
8749         (erff): Define using libm_alias_float.
8750         (erfcf): Likewise.
8751         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
8752         (expm1f): Define using libm_alias_float.
8753         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
8754         (fabsf): Define using libm_alias_float.
8755         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
8756         (floorf): Define using libm_alias_float.
8757         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
8758         (frexpf): Define using libm_alias_float.
8759         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
8760         libm_alias_float.
8761         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
8762         <libm-alias-float.h>.
8763         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
8764         libm_alias_float.
8765         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
8766         <libm-alias-float.h>.
8767         (getpayloadf): Define using libm_alias_float.
8768         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
8769         <libm-alias-float.h>.
8770         (llrintf): Define using libm_alias_float.
8771         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
8772         <libm-alias-float.h>.
8773         (llroundf): Define using libm_alias_float.
8774         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
8775         (logbf): Define using libm_alias_float.
8776         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
8777         (lrintf): Define using libm_alias_float.
8778         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
8779         (lroundf): Define using libm_alias_float.
8780         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
8781         (modff): Define using libm_alias_float.
8782         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
8783         <libm-alias-float.h>.
8784         (nearbyintf): Define using libm_alias_float.
8785         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
8786         <libm-alias-float.h>.
8787         (nextafterf): Define using libm_alias_float.
8788         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
8789         <libm-alias-float.h>.
8790         (nextupf): Define using libm_alias_float.
8791         * sysdeps/ieee754/flt-32/s_remquof.c: Include
8792         <libm-alias-float.h>.
8793         (remquof): Define using libm_alias_float.
8794         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
8795         (rintf): Define using libm_alias_float.
8796         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
8797         <libm-alias-float.h>.
8798         (roundevenf): Define using libm_alias_float.
8799         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
8800         (roundf): Define using libm_alias_float.
8801         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
8802         using libm_alias_float.
8803         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
8804         <libm-alias-float.h>.
8805         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
8806         Define using libm_alias_float.
8807         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
8808         <libm-alias-float.h>.
8809         (sincosf): Define using libm_alias_float.
8810         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
8811         (sinf): Define using libm_alias_float.
8812         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
8813         (tanf): Define using libm_alias_float.
8814         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
8815         (tanhf): Define using libm_alias_float.
8816         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
8817         <libm-alias-float.h>.
8818         (totalorderf): Define using libm_alias_float.
8819         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
8820         <libm-alias-float.h>.
8821         (totalordermagf): Define using libm_alias_float.
8822         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
8823         (truncf): Define using libm_alias_float.
8824         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
8825         libm_alias_float.
8826         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
8827         libm_alias_float.
8829 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8831         [BZ #22146]
8832         math/math.h: Let fpclassify use the builtin in C++ mode, even
8833         when optimazing for size.
8835 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
8837         * csu/Makefile (generated): Do not add version-info.h.
8838         (before-compile): Likewise.
8839         (all-Banner-files): Remove variable.
8840         ($(objpfx)version-info.h): Remove rule.
8841         * csu/version.c (banner): Do not include "version-info.h".
8842         * libidn/Banner: Remove.
8843         * manual/contrib.texi (Simon Josefsson): New entry.
8845 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8847         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8848         Remove conditionals on LDBL_MANT_DIG.
8849         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
8850         (__ieee754_lgammal_r): Likewise.
8852 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8854         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
8855         _Float128 and L().
8856         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
8857         _Float128 and L(). Replace _Float128 with long double and L(x)
8858         with xL, throughout the file.
8859         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8860         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
8861         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
8862         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
8864 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8866         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
8867         sysdeps/ieee754/ldbl-128ibm.
8868         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
8869         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
8870         of including it.  Keep _Float128 and L() intact.  These will be
8871         reviewed by a separate patch.
8872         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8873         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
8874         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
8875         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
8877 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8879         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
8880         (__finitef128): Define to __redirect___finitef128.
8881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
8882         (__isinff128): Define to __redirect___isinff128.
8883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
8884         (__isnanf128): Define to __redirect___isnanf128.
8886 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8888         * sysdeps/powerpc/powerpc64le/Makefile
8889         (CFLAGS-tst-strtod-nan-locale.c): New variable.
8890         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
8892 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
8893             Carlos O'Donell  <carlos@redhat.com>
8895         [BZ #22180]
8896         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
8897         * stdlib/test-dlclose-exit-race.c: New file.
8898         * stdlib/test-dlclose-exit-race-helper.c: New file.
8899         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
8901 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
8903         * crypt/Banner: Remove file.
8904         * nptl/Banner: Likewise.
8905         * resolv/Banner: Likewise.
8906         * soft-fp/Banner: Likewise.
8907         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
8908         ($(objpfx)version.d): Remove dependency on banner.h.
8909         ($(objpfx)version.os): Likewise.
8910         * nptl/version.c (banner): Do not include banner.h.
8911         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
8912         Jelinek and BIND code.
8914 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
8915             Carlos O'Donell  <carlos@redhat.com>
8917         * support/xdlfcn.h: New file.
8918         * support/xdlfcn.c: New file.
8919         * support/Makefile (libsupport-routines): Add xdlfcn.
8920         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
8922 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
8924         [BZ #20142]
8925         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8926         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
8927         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
8928         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
8929         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8930         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
8931         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
8932         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8934 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
8935             Ricky Zhou  <rickyz@google.com>
8936             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
8938         [BZ #14333]
8939         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
8940         Remove atomics.
8941         (__new_exitfn): Fail registration when we finished at_exit processing.
8942         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8943         * stdlib/on_exit.c (__on_exit): Likewise.
8944         * stdlib/exit.c (__exit_funcs_done): New variable.
8945         (__run_exit_handlers): Use __exit_funcs_lock.
8946         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
8947         declarations.
8948         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
8949         (test-cxa_atexit-race, test-on_exit-race): New tests.
8950         * stdlib/test-atexit-race-common.c: New file.
8951         * stdlib/test-atexit-race.c: New file.
8952         * stdlib/test-at_quick_exit-race.c: New file.
8953         * stdlib/test-cxa_atexit-race.c: New file.
8954         * stdlib/test-on_exit-race.c: New file.
8956 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8958         * benchtests/Makefile: Add exp2f and log2f benchmarks.
8959         * benchtests/exp2f-inputs: Copy of expf-inputs.
8960         * benchtests/log2f-inputs: Copy of logf-inputs.
8962 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
8964         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
8965         Explicitly take address of first element of array arguments in
8966         call to INLINE_SYSCALL.
8968 2017-09-19  Andreas Schwab  <schwab@suse.de>
8970         [BZ #22134]
8971         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
8972         execveat first.
8973         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
8974         unimplemented.
8975         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
8976         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
8977         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8978         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
8979         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
8980         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
8981         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8982         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
8983         * posix/Makefile (tests): Add tst-fexecve.
8984         * posix/tst-fexecve.c: New file.
8986 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8988         * benchtests/Makefile: Add logf benchmark.
8989         * benchtests/logf-inputs: Add reduced trace from wrf_r.
8991 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8993         * benchtests/Makefile: Add expf benchmark.
8994         * benchtests/expf-inputs: Add reduced trace from wrf_r.
8996 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8998         * csu/Makefile: Add -funwind-tables to libc-start.c.
8999         * debug/Makefile: Add -funwind-tables to backtrace.c.
9000         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
9001         * sysdeps/arm/Makefile: Likewise.
9002         * sysdeps/i386/Makefile: Likewise.
9003         * sysdeps/m68k/Makefile: Likewise.
9004         * sysdeps/mips/Makefile: Likewise.
9005         * sysdeps/nios2/Makefile: Likewise.
9006         * sysdeps/sh/Makefile: Likewise.
9007         * sysdeps/sparc/Makefile: Likewise.
9009 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
9011         * benchtests/Makefile (bench-math): Add trunc and truncf.
9012         (CFLAGS-bench-trunc.c): New variable.
9013         (CFLAGS-bench-truncf.c): Likewise.
9014         * benchtests/trunc-inputs: New file.
9015         * benchtests/truncf-inputs: Likewise.
9017 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9019         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
9021 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
9023         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
9024         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
9025         redefine.
9026         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
9027         (exp10l): Define as weak alias.
9028         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
9029         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
9030         and redefine.
9031         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
9032         (remainderl): Define as weak alias.
9034         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
9035         (fmal): Define using libm_alias_ldouble.
9036         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
9037         (acoshl): Define using libm_alias_ldouble.
9038         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
9039         (acosl): Define using libm_alias_ldouble.
9040         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
9041         (asinl): Define using libm_alias_ldouble.
9042         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
9043         (atan2l): Define using libm_alias_ldouble.
9044         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
9045         (atanhl): Define using libm_alias_ldouble.
9046         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
9047         (coshl): Define using libm_alias_ldouble.
9048         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
9049         (exp10l): Define using libm_alias_ldouble.
9050         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
9051         (exp2l): Define using libm_alias_ldouble.
9052         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
9053         (expl): Define using libm_alias_ldouble.
9054         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
9055         (fmodl): Define using libm_alias_ldouble.
9056         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
9057         (hypotl): Define using libm_alias_ldouble.
9058         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
9059         (j0l): Define using libm_alias_ldouble.
9060         (y0l): Likewise.
9061         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
9062         (j1l): Define using libm_alias_ldouble.
9063         (y1l): Likewise.
9064         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
9065         (jnl): Define using libm_alias_ldouble.
9066         (ynl): Likewise.
9067         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
9068         (log10l): Define using libm_alias_ldouble.
9069         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
9070         (log2l): Define using libm_alias_ldouble.
9071         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
9072         (logl): Define using libm_alias_ldouble.
9073         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
9074         (powl): Define using libm_alias_ldouble.
9075         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
9076         (remainderl): Define using libm_alias_ldouble.
9077         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
9078         (sinhl): Define using libm_alias_ldouble.
9079         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
9080         (sqrtl): Define using libm_alias_ldouble.
9081         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
9082         (tgammal): Define using libm_alias_ldouble.
9083         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
9084         (exp10l): Do not use long_double_symbol here.
9085         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
9086         [LIBM_SVID_COMPAT] (remainderl): Likewise.
9087         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
9088         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
9089         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
9090         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
9091         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
9092         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
9093         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
9094         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
9095         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
9096         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
9097         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
9098         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
9099         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
9100         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
9101         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
9102         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
9103         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
9104         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
9105         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
9106         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
9108 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
9110         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
9111         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
9113 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9115         * io/read.c (read): Add libc_hidden_weak.
9116         * sysdeps/mach/hurd/read.c (read): Likewise.
9117         * io/write.c (write): Likewise.
9118         * sysdeps/mach/hurd/write.c (write): Likewise.
9119         * io/pread64.c (__pread64): Likewise.
9120         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
9121         * posix/pread64.c (__pread64): Add libc_hidden_def.
9123 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9125         * benchtests/scripts/compare_strings.py: New option -g.
9126         (draw_graph): Print a message that a graph is being generated.
9127         (process_results): Generate graph only if -g is passed.
9128         (main): Process option -g.
9130         * benchtests/scripts/compare_strings.py (process_results):
9131         Better spacing for output.
9133         * benchtests/scripts/compare_strings.py: Use argparse.
9134         * benchtests/README: Document existence of compare_strings.py.
9136 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
9138         * math/s_fma.c: Include <libm-alias-double.h>.
9139         (fma): Define using libm_alias_double.
9140         * math/s_nextafter.c: Include <libm-alias-double.h>.
9141         (nextafter): Define using libm_alias_double.
9142         * math/w_acos_compat.c: Include <libm-alias-double.h>.
9143         (acos): Define using libm_alias_double.
9144         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
9145         (aocsh): Define using libm_alias_double.
9146         * math/w_asin_compat.c: Include <libm-alias-double.h>.
9147         (asin): Define using libm_alias_double.
9148         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
9149         (atan2): Define using libm_alias_double.
9150         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
9151         (atanh): Define using libm_alias_double.
9152         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
9153         (cosh): Define using libm_alias_double.
9154         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
9155         (exp10): Define using libm_alias_double.
9156         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
9157         (exp2): Define using libm_alias_double.
9158         * math/w_exp_compat.c: Include <libm-alias-double.h>.
9159         (exp): Define using libm_alias_double.
9160         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
9161         (fmod): Define using libm_alias_double.
9162         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
9163         (hypot): Define using libm_alias_double.
9164         * math/w_j0_compat.c: Include <libm-alias-double.h>.
9165         (j0): Define using libm_alias_double.
9166         (y0): Likewise.
9167         * math/w_j1_compat.c: Include <libm-alias-double.h>.
9168         (j1): Define using libm_alias_double.
9169         (y1): Likewise.
9170         * math/w_jn_compat.c: Include <libm-alias-double.h>.
9171         (jn): Define using libm_alias_double.
9172         (yn): Likewise.
9173         * math/w_log10_compat.c: Include <libm-alias-double.h>.
9174         (log10): Define using libm_alias_double.
9175         * math/w_log2_compat.c: Include <libm-alias-double.h>.
9176         (log2): Define using libm_alias_double.
9177         * math/w_log_compat.c: Include <libm-alias-double.h>.
9178         (log): Define using libm_alias_double.
9179         * math/w_pow_compat.c: Include <libm-alias-double.h>.
9180         (pow): Define using libm_alias_double.
9181         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
9182         (remainder): Define using libm_alias_double.
9183         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
9184         (sinh): Define using libm_alias_double.
9185         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
9186         (sqrt): Define using libm_alias_double.
9187         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
9188         (tgamma): Define using libm_alias_double.
9189         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
9190         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
9191         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
9192         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
9193         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
9194         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
9195         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
9196         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
9197         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
9198         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
9199         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
9200         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
9201         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
9202         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
9203         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
9204         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
9205         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
9206         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
9207         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
9208         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
9209         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
9210         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
9211         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
9212         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
9213         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
9215         * math/e_acoshl.c: Remove.
9216         * math/e_acosl.c: Likewise.
9217         * math/e_asinl.c: Likewise.
9218         * math/e_atan2l.c: Likewise.
9219         * math/e_atanhl.c: Likewise.
9220         * math/e_coshl.c: Likewise.
9221         * math/e_expl.c: Likewise.
9222         * math/e_fmodl.c: Likewise.
9223         * math/e_gammal_r.c: Likewise.
9224         * math/e_hypotl.c: Likewise.
9225         * math/e_j0l.c: Likewise.
9226         * math/e_j1l.c: Likewise.
9227         * math/e_jnl.c: Likewise.
9228         * math/e_lgammal_r.c: Likewise.
9229         * math/e_log10l.c: Likewise.
9230         * math/e_log2l.c: Likewise.
9231         * math/e_logl.c: Likewise.
9232         * math/e_powl.c: Likewise.
9233         * math/e_rem_pio2l.c: Likewise.
9234         * math/e_sinhl.c: Likewise.
9235         * math/e_sqrtf128.c: Likewise.
9236         * math/e_sqrtl.c: Likewise.
9237         * math/k_cosl.c: Likewise.
9238         * math/k_sinl.c: Likewise.
9239         * math/k_tanl.c: Likewise.
9240         * math/s_asinhl.c: Likewise.
9241         * math/s_atanl.c: Likewise.
9242         * math/s_cbrtl.c: Likewise.
9243         * math/s_erfl.c: Likewise.
9244         * math/s_expm1l.c: Likewise.
9245         * math/s_log1pl.c: Likewise.
9246         * math/s_tanhl.c: Likewise.
9248 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9250         [BZ #21745]
9251         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
9252         [$(subdir) = math] (sysdep_calls): New variable.  Has the
9253         previous contents of sysdep_routines, but re-sorted..
9254         [$(subdir) = math] (sysdep_routines): Re-use the contents from
9255         sysdep_calls.
9256         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
9257         defined in sysdep_calls and replace by the respective m_* names.
9258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
9259         (compat_symbol): Undefine to avoid duplicated compat symbols in
9260         libc.
9262 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
9264         * math/s_fmaf.c: Include <libm-alias-float.h>.
9265         (fmaf): Define using libm_alias_float.
9266         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
9267         (acosf): Define using libm_alias_float.
9268         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
9269         (acoshf): Define using libm_alias_float.
9270         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
9271         (asinf): Define using libm_alias_float.
9272         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
9273         (atan2f): Define using libm_alias_float.
9274         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
9275         (atanhf): Define using libm_alias_float.
9276         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
9277         (coshf): Define using libm_alias_float.
9278         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
9279         (exp10f): Define using libm_alias_float.
9280         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
9281         (fmodf): Define using libm_alias_float.
9282         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
9283         (hypotf): Define using libm_alias_float.
9284         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
9285         (j0f): Define using libm_alias_float.
9286         (y0f): Likewise.
9287         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
9288         (j1f): Define using libm_alias_float.
9289         (y1f): Likewise.
9290         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
9291         (jnf): Define using libm_alias_float.
9292         (ynf): Likewise.
9293         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
9294         (log10f): Define using libm_alias_float.
9295         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
9296         (log2f): Define using libm_alias_float.
9297         * math/w_logf_compat.c: Include <libm-alias-float.h>.
9298         (logf): Define using libm_alias_float.
9299         * math/w_powf_compat.c: Include <libm-alias-float.h>.
9300         (powf): Define using libm_alias_float.
9301         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
9302         (remainderf): Define using libm_alias_float.
9303         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
9304         (sinhf): Define using libm_alias_float.
9305         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
9306         (sqrtf): Define using libm_alias_float.
9307         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
9308         (tgammaf): Define using libm_alias_float.
9310 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
9312         * include/math.h (roundeven): Change hidden_proto call to
9313         __roundeven.
9314         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
9315         alias.
9316         [NO_LONG_DOUBLE] (__j0l): New strong alias.
9317         (y0): Rename to __y0 and define as weak alias.
9318         [NO_LONG_DOUBLE] (__y0l): New strong alias.
9319         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
9320         alias.
9321         (y0f): Rename to __y0f and define as weak alias.
9322         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
9323         alias.
9324         [NO_LONG_DOUBLE] (__j1l): New strong alias.
9325         (y1): Rename to __y1 and define as weak alias.
9326         [NO_LONG_DOUBLE] (__y1l): New strong alias.
9327         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
9328         alias.
9329         (y1f): Rename to __y1f and define as weak alias.
9330         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
9331         alias.
9332         [NO_LONG_DOUBLE] (__jnl): New strong alias.
9333         (yn): Rename to __yn and define as weak alias.
9334         [NO_LONG_DOUBLE] (__ynl): New strong alias.
9335         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
9336         alias.
9337         (ynf): Rename to __ynf and define as weak alias.
9338         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
9339         (fromfp): Define as weak alias.
9340         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
9341         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
9342         (fromfpx): Define as weak alias.
9343         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
9344         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
9345         __getpayload and define as weak alias.
9346         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
9347         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
9348         __roundeven and define as weak alias.
9349         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
9350         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
9351         __setpayload.
9352         (setpayload): Define as weak alias.
9353         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
9354         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
9355         __setpayloadsig.
9356         (setpayloadsig): Define as weak alias.
9357         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
9358         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
9359         __totalorder and define as weak alias.
9360         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
9361         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
9362         to __totalordermag and define as weak alias.
9363         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
9364         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
9365         (ufromfp): Define as weak alias.
9366         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
9367         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
9368         __ufromfpx.
9369         (ufromfpx): Define as weak alias.
9370         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
9371         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
9372         Rename to __getpayload and define as weak alias.
9373         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
9374         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
9375         Rename to __roundeven and define as weak alias.
9376         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
9377         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
9378         Rename to __totalorder and define as weak alias.
9379         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
9380         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
9381         (totalordermag): Rename to __totalordermag and define as weak
9382         alias.
9383         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
9384         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
9385         macro.
9386         (__roundevenl): Likewise.
9387         (__totalorderl): Likewise.
9388         (__totalordermagl): Likewise
9389         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
9390         __fromfpf128.
9391         (fromfpf128): Define as weak alias.
9392         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
9393         __fromfpxf128.
9394         (fromfpxf128): Define as weak alias.
9395         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
9396         __setpayloadf128.
9397         (setpayloadf128): Define as weak alias.
9398         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
9399         __setpayloadsigf128.
9400         (setpayloadsigf128): Define as weak alias.
9401         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
9402         __ufromfpf128.
9403         (ufromfpf128): Define as weak alias.
9404         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
9405         __ufromfpxf128.
9406         (ufromfpxf128): Define as weak alias.
9407         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
9408         (fromfpf): Define as weak alias.
9409         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
9410         __fromfpxf.
9411         (fromfpxf): Define as weak alias.
9412         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
9413         __getpayloadf and define as weak alias.
9414         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
9415         __roundevenf and define as weak alias.
9416         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
9417         __setpayloadf.
9418         (setpayloadf): Define as weak alias.
9419         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
9420         __setpayloadsigf.
9421         (setpayloadsigf): Define as weak alias.
9422         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
9423         __totalorderf and define as weak alias.
9424         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
9425         Rename to __totalordermagf and define as weak alias.
9426         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
9427         __ufromfpf.
9428         (ufromfpf): Define as weak alias.
9429         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
9430         __ufromfpxf.
9431         (ufromfpxf): Define as weak alias.
9432         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
9433         __fromfpl.
9434         (fromfpl): Define as weak alias.
9435         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
9436         __fromfpxl.
9437         (fromfpxl): Define as weak alias.
9438         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
9439         to __getpayloadl and define as weak alias.
9440         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
9441         __roundevenl and define as weak alias.
9442         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
9443         __setpayloadl.
9444         (setpayloadl): Define as weak alias.
9445         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
9446         __setpayloadsigl.
9447         (setpayloadsigl): Define as weak alias.
9448         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
9449         to __totalorderl and define as weak alias.
9450         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
9451         Rename to __totalordermagl and define as weak alias.
9452         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
9453         __ufromfpl.
9454         (ufromfpl): Define as weak alias.
9455         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
9456         __ufromfpxl.
9457         (ufromfpxl): Define as weak alias.
9458         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
9459         __fromfpl.
9460         (fromfpl): Define as weak alias.
9461         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
9462         __fromfpxl.
9463         (fromfpxl): Define as weak alias.
9464         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
9465         Rename to __getpayloadl and define as weak alias.
9466         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
9467         to __roundevenl and define as weak alias.  Call __roundeven
9468         instead of roundeven.
9469         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
9470         __setpayloadl.
9471         (setpayloadl): Define as weak alias.
9472         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
9473         __setpayloadsigl.
9474         (setpayloadsigl): Define as weak alias.
9475         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
9476         Rename to __totalorderl and define as weak alias.
9477         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
9478         Rename to __totalordermagl and define as weak alias.
9479         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
9480         __ufromfpl.
9481         (ufromfpl): Define as weak alias.
9482         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
9483         __ufromfpxl.
9484         (ufromfpxl): Define as weak alias.
9485         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
9486         __fromfpl.
9487         (fromfpl): Define as weak alias.
9488         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
9489         __fromfpxl.
9490         (fromfpxl): Define as weak alias.
9491         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
9492         __getpayloadl and define as weak alias.
9493         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
9494         __roundevenl and define as weak alias.
9495         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
9496         __setpayloadl.
9497         (setpayloadl): Define as weak alias.
9498         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
9499         __setpayloadsigl.
9500         (setpayloadsigl): Define as weak alias.
9501         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
9502         __totalorderl and define as weak alias.
9503         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
9504         Rename to __totalordermagl and define as weak alias.
9505         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
9506         __ufromfpl.
9507         (ufromfpl): Define as weak alias.
9508         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
9509         __ufromfpxl.
9510         (ufromfpxl): Define as weak alias.
9512 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9514         * benchtests/bench-string.h (realloc_bufs): New function.
9515         (test_init): Call it.
9516         * benchtests/bench-memset-large.c (do_test): Likewise.
9517         * benchtests/bench-memset.c (do_test): Likewise.
9519         * benchtests/bench-memset-large.c: Print output in JSON
9520         format.
9521         * benchtests/bench-memset.c: Likewise.
9523 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
9525         [BZ #21084]
9526         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
9527         * iconvdata/Makefile: Add IBM858.
9528         * iconvdata/gconv-modules: Likewise.
9529         * iconvdata/tst-tables.sh: Likewise.
9530         * iconvdata/ibm858.c: New file.
9531         * localedata/charmaps/IBM858: Likewise.
9533 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
9535         [BZ #22023]
9536         * locales/niu_NZ (LC_TIME): copy "niu_NU".
9537         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
9539 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
9541         [BZ #22112]
9542         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
9543         and add tel_int_fmt.
9545 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
9547         * sysdeps/generic/libm-alias-float128.h: New file.
9548         * sysdeps/generic/math-type-macros-float128.h: Include
9549         <libm-alias-float128.h>.
9550         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
9552 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
9554         * sysdeps/generic/libm-alias-ldouble.h: New file.
9555         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
9556         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
9557         * sysdeps/generic/math-type-macros-ldouble.h: Include
9558         <libm-alias-ldouble.h>.
9559         [!declare_mgen_alias] (declare_mgen_alias): Define to use
9560         libm_alias_ldouble.
9562 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9564         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
9565         * math/w_exp_compat.c: ... here.
9566         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
9567         * math/w_expf_compat.c: ... here.
9568         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
9569         * math/w_expl_compat.c: ... here.
9570         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
9571         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
9572         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
9573         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
9575 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
9577         * math/w_scalbln_template.c (strong_alias): Do not undefine and
9578         redefine.
9579         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
9580         macro.
9581         (ldexpl): Only define as compat symbol for libc, not libm.
9582         (scalbnl): Define as compat symbol for libc here.
9583         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
9584         define for [IS_IN (libc)].
9585         (__ldexpl_2): Remove alias.
9586         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
9587         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
9588         name in long_double_symbol call.
9589         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
9590         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
9591         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
9592         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
9593         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
9594         Remove macro.
9595         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
9596         Define as compat symbol.
9598 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9600         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
9601         * sysdeps/unix/sysv/linux/alpha/Makefile
9602         [$(subdir) = csu] (sysdep_routines): Remove rule.
9604 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
9606         * sysdeps/generic/libm-alias-double.h: New file.
9607         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
9608         * sysdeps/generic/math-type-macros-double.h: Include
9609         <libm-alias-double.h>.
9610         [declare_mgen_alias] (declare_mgen_alias): Define to use
9611         libm_alias_double.
9612         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
9613         (M_LIBM_NEED_COMPAT): Remove macro.
9614         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
9615         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
9616         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
9617         code.
9618         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9619         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9620         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9621         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9622         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9623         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9624         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9625         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9626         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9627         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9628         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9629         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9630         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9631         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9632         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9633         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9634         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9635         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9636         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9637         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9638         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9639         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9640         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9641         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9642         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9643         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9644         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
9645         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
9646         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
9647         macro.
9648         (declare_mgen_alias): New macro.
9649         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
9650         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
9651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
9652         (M_LIBM_NEED_COMPAT): Remove macro.
9653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
9654         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
9655         <first-versions.h>.
9656         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
9657         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
9659 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
9661         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
9662         (declare_mgen_alias_2): Remove.
9663         * sysdeps/generic/math-type-macros-double.h
9664         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
9665         Likewise.
9666         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
9667         alias.
9668         (ldexp): Define with declare_mgen_alias.
9669         (scalbn): Likewise.
9671 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
9673         * grp/initgroups.c: Include config.h.
9674         (DEFAULT_CONFIG): New macro.
9675         (internal_getgrouplist): Use DEFAULT_CONFIG.
9676         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9677         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
9678         (DEFAULT_DEFCONFIG): New macro.
9679         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
9680         * nss/grp-lookup.c: Include config.h
9681         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
9682         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
9683         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
9684         * manual/nss.texi: Update default values section.
9686 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
9688         [BZ #21967]
9689         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
9690         New.
9691         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
9692         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
9693         Handle MathVec_Prefer_No_AVX512.
9694         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
9695         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
9696         is set.
9698 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9700         * posix/sched_primax.c (__sched_get_priority_max): Add
9701         libc_hidden_def.
9702         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
9703         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
9704         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
9705         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
9706         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
9707         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
9708         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
9709         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
9710         Add aliases.
9712 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
9714         * sysdeps/generic/libm-alias-float.h: New file.
9715         * sysdeps/generic/math-type-macros-float.h: Include
9716         <libm-alias-float.h>.
9717         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
9719 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9721         [BZ #22093]
9722         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
9723         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
9724         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
9725         (HWCAP_IMPORTANT): Likewise.
9726         (HWCAP_X86_64): New enum.
9727         (HWCAP_X86_AVX512_1): Updated.
9728         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
9729         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
9730         (modules-names): Add x86_64/tst-x86_64mod-1.
9731         (LDFLAGS-tst-x86_64mod-1.so): New.
9732         ($(objpfx)tst-x86_64-1): Likewise.
9733         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
9734         (tst-x86_64-1-clean): Likewise.
9735         * sysdeps/x86_64/tst-x86_64-1.c: New file.
9736         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
9738 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9740         * po/sv.po: Update translations.
9741         * po/fr.po: Likewise.
9743 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9745         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
9746         seconds.
9747         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
9748         seconds.
9749         * elf/rtld-Rules: Fix $(error) use.
9751 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
9753         [BZ #14925]
9754         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
9755         * locale/iso-639.def: Change “Bengali” to “Bangla”.
9756         * localedata/locales/bn_BD: “Bengali” was still used in some
9757         comments. Change it to “Bangla”.
9759 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
9761         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
9763 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
9765         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
9766         thunderx2t99p1 to list of cpu names.
9767         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
9768         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
9770 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
9772         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
9773         Use strcmp instead of tunable_is_name.
9775 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
9777         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
9778         (F_GET_RW_HINT): New macro.
9779         [__USE_GNU] (F_SET_RW_HINT): Likewise.
9780         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
9781         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
9782         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
9783         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
9784         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
9785         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
9786         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
9787         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
9789         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
9790         (F_ADD_SEALS): New macro.
9791         [__USE_GNU] (F_GET_SEALS): Likewise.
9792         [__USE_GNU] (F_SEAL_SEAL): Likewise.
9793         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
9794         [__USE_GNU] (F_SEAL_GROW): Likewise.
9795         [__USE_GNU] (F_SEAL_WRITE): Likewise.
9797 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9799         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
9800         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
9801         * posix/glob_internal.h (__glob_pattern_type):
9802         * posix/glob.c (glob):
9803         * posix/glob_pattern_p.c (__glob_pattern_p):
9804         Use them.
9806         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
9807         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
9808         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
9809         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
9810         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
9811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
9812         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
9813         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
9814         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
9815         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
9816         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
9817         * sysdeps/wordsize-64/glob.c: Likewise.
9818         * sysdeps/wordsize-64/glob64.c: Likewise.
9819         * sysdeps/wordsize-64/globfree.c: Likewise.
9820         * sysdeps/wordsize-64/globfree64.c: Likewise.
9821         * sysdeps/unix/sysv/linux/glob.c: New file.
9822         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
9823         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
9824         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
9825         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
9826         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
9827         adds !GLOB_NO_OLD_VERSION as an extra condition.
9828         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
9829         using relative path instead of absolute one.
9830         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
9831         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
9832         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
9833         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
9834         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
9835         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
9837         [BZ #1062]
9838         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
9839         (glob): Use the same scratch buffer for both getlogin_r and
9840         getpwnam_r.  Don’t require preallocation of the login name.  This
9841         simplifies storage allocation, and corrects the handling of
9842         long login names.
9844         [BZ #1062]
9845         * posix/glob.c (glob): Port recent patches to platforms
9846         lacking getpwnam_r.
9847         (glob): Fix longstanding misuse of errno after getpwnam_r, which
9848         returns an error number rather than setting errno.
9850         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
9851         instead of GCC extension.
9852         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
9853         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
9854         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
9856         [BZ #866]
9857         [BZ #1062]
9858         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
9859         * posix/bug-glob1.c: Remove file.
9860         * posix/tst-glob_symlinks.c: New file.
9861         * posix/glob.c (__lstat64): New macro.
9862         (is_dir): New function.
9863         (glob, glob_in_dir): Match symlinks even if they are dangling.
9864         (link_stat, link_exists_p): Remove.  All uses removed.
9866         [BZ #1062]
9867         [BZ #19971]
9868         * posix/glob.c (struct readdir_result): Remove skip_entry member.
9869         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
9870         All uses removed.
9872         [BZ #1062]
9873         CVE-2017-15671
9874         * posix/Makefile (routines): Add globfree, globfree64, and
9875         glob_pattern_p.
9876         * posix/flexmember.h: New file.
9877         * posix/glob_internal.h: Likewise.
9878         * posix/glob_pattern_p.c: Likewise.
9879         * posix/globfree.c: Likewise.
9880         * posix/globfree64.c: Likewise.
9881         * sysdeps/gnu/globfree64.c: Likewise.
9882         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
9883         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
9884         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
9885         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
9886         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
9887         * sysdeps/wordsize-64/globfree.c: Likewise.
9888         * sysdeps/wordsize-64/globfree64.c: Likewise.
9889         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
9890         [NDEBUG): Remove comments.
9891         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
9892         (dirent_type): New type.  Use uint_fast8_t not
9893         uint8_t, as C99 does not require uint8_t.
9894         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
9895         (struct readdir_result): Use dirent_type.  Do not define skip_entry
9896         unless it is needed; this saves a byte on platforms lacking d_ino.
9897         (readdir_result_type, readdir_result_skip_entry):
9898         New functions, replacing ...
9899         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
9900          these functions, which were removed.  This makes the callers
9901         easier to read.  All callers changed.
9902         (D_INO_TO_RESULT): Now empty if there is no d_ino.
9903         (size_add_wrapv, glob_use_alloca): New static functions.
9904         (glob, glob_in_dir): Check for size_t overflow in several places,
9905         and fix some size_t checks that were not quite right.
9906         Remove old code using SHELL since Bash no longer
9907         uses this.
9908         (glob, prefix_array): Separate MS code better.
9909         (glob_in_dir): Remove old Amiga and VMS code.
9910         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
9911         separate files.
9912         (glob_in_dir): Do not rely on undefined behavior in accessing
9913         struct members beyond their bounds.  Use a flexible array member
9914         instead
9915         (link_stat): Rename from link_exists2_p and return -1/0 instead of
9916         0/1.  Caller changed.
9917         (glob): Fix memory leaks.
9918         * posix/glob64 (globfree64): Move to separate file.
9919         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
9920         (globfree64): Remove hidden alias.
9921         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
9922         oldglob.
9923         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
9924         separate file.
9925         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
9926         define.
9927         Move compat code to separate file.
9928         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
9929         separate file.
9931 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9933         * resolv/tst-resolv-qtypes.c (domain): Changed to
9934         "const char domain[] =".
9936 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
9938         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
9939         version to 3.1.6.
9941         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
9942         (TCP_MD5SIG_EXT): Likewise.
9943         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
9944         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
9945         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
9947         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
9949 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
9951         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
9953 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
9955         [BZ #22100]
9956         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
9958 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9960         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
9961         before assuming that the file is empty.  Avoid testing buffer content
9962         when nread == 0.
9964 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9966         [BZ #18858]
9967         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
9968         Remove define.
9969         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
9970         Likewise.
9971         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
9972         Likewise.
9973         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
9974         Likewise.
9975         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
9976         Likewise.
9977         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
9978         Likewise.
9979         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
9980         Likewise.
9982 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9984         * malloc/dynarray_emplace_enlarge.c
9985         (__libc_dynarray_emplace_enlarge): Add missing else.
9987 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9989         [BZ #22096]
9990         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
9991         case of failure to obtain the global conf object.
9993 2017-09-06  Florian Weimer  <fweimer@redhat.com>
9995         [BZ #22095]
9996         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
9997         dynarray allocation failure.
9999 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10001         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
10002         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
10003         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
10004         New functions.
10005         (response): Call them.  Add 'p', '6' flag processing.
10006         (test_reverse): New function.
10007         (test_get2_any): Call it.
10008         (test_no_inet6): Add 'p' test.
10009         (test_inet6): Likewise.
10011 2017-09-06  Florian Weimer  <fweimer@redhat.com>
10013         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
10014         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
10015         the QNAME.
10016         (test_gai): Adjust query names.  Add additional tests.
10017         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
10018         test_get2.  Adjust query names.  Add additional tests.
10019         (test_no_inet6): New function, extracted from threadfunc.
10020         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
10021         Add additional tests.
10023 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
10025         [BZ #22070]
10026         * localedata/unicode-gen/utf8_gen.py: Set the width for
10027         characters with Prepended_Concatenation_Mark property to 1
10028         * localedata/charmaps/UTF-8: Updated using the improved script.
10030 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
10032         [BZ #21750]
10033         * localedata/unicode-gen/utf8_gen.py: Improve the script to
10034         use the range notation for all ranges of neighbouring characters
10035         with the same width.
10037 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
10039         * sysdeps/generic/math-type-macros-double.h: Include
10040         <math-svid-compat.h>.
10041         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
10042         * sysdeps/generic/math-type-macros-float.h: Include
10043         <math-svid-compat.h>.
10044         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
10045         * sysdeps/generic/math-type-macros-ldouble.h: Include
10046         <math-svid-compat.h>.
10047         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
10048         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
10049         condition.
10050         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
10051         * math/w_acosf_compat.c: Likewise.
10052         * math/w_acosh_compat.c: Likewise.
10053         * math/w_acoshf_compat.c: Likewise.
10054         * math/w_acoshl_compat.c: Likewise.
10055         * math/w_acosl_compat.c: Likewise.
10056         * math/w_asin_compat.c: Likewise.
10057         * math/w_asinf_compat.c: Likewise.
10058         * math/w_asinl_compat.c: Likewise.
10059         * math/w_atan2_compat.c: Likewise.
10060         * math/w_atan2f_compat.c: Likewise.
10061         * math/w_atan2l_compat.c: Likewise.
10062         * math/w_atanh_compat.c: Likewise.
10063         * math/w_atanhf_compat.c: Likewise.
10064         * math/w_atanhl_compat.c: Likewise.
10065         * math/w_cosh_compat.c: Likewise.
10066         * math/w_coshf_compat.c: Likewise.
10067         * math/w_coshl_compat.c: Likewise.
10068         * math/w_exp10_compat.c: Likewise.
10069         * math/w_exp10f_compat.c: Likewise.
10070         * math/w_exp10l_compat.c: Likewise.
10071         * math/w_exp2_compat.c: Likewise.
10072         * math/w_exp2f_compat.c: Likewise.
10073         * math/w_exp2l_compat.c: Likewise.
10074         * math/w_fmod_compat.c: Likewise.
10075         * math/w_fmodf_compat.c: Likewise.
10076         * math/w_fmodl_compat.c: Likewise.
10077         * math/w_hypot_compat.c: Likewise.
10078         * math/w_hypotf_compat.c: Likewise.
10079         * math/w_hypotl_compat.c: Likewise.
10080         * math/w_j0_compat.c: Likewise.
10081         * math/w_j0f_compat.c: Likewise.
10082         * math/w_j0l_compat.c: Likewise.
10083         * math/w_j1_compat.c: Likewise.
10084         * math/w_j1f_compat.c: Likewise.
10085         * math/w_j1l_compat.c: Likewise.
10086         * math/w_jn_compat.c: Likewise.
10087         * math/w_jnf_compat.c: Likewise.
10088         * math/w_jnl_compat.c: Likewise.
10089         * math/w_lgamma_r_compat.c: Likewise.
10090         * math/w_lgammaf_r_compat.c: Likewise.
10091         * math/w_lgammal_r_compat.c: Likewise.
10092         * math/w_log10_compat.c: Likewise.
10093         * math/w_log10f_compat.c: Likewise.
10094         * math/w_log10l_compat.c: Likewise.
10095         * math/w_log2_compat.c: Likewise.
10096         * math/w_log2f_compat.c: Likewise.
10097         * math/w_log2l_compat.c: Likewise.
10098         * math/w_log_compat.c: Likewise.
10099         * math/w_logf_compat.c: Likewise.
10100         * math/w_logl_compat.c: Likewise.
10101         * math/w_pow_compat.c: Likewise.
10102         * math/w_powf_compat.c: Likewise.
10103         * math/w_powl_compat.c: Likewise.
10104         * math/w_remainder_compat.c: Likewise.
10105         * math/w_remainderf_compat.c: Likewise.
10106         * math/w_remainderl_compat.c: Likewise.
10107         * math/w_sinh_compat.c: Likewise.
10108         * math/w_sinhf_compat.c: Likewise.
10109         * math/w_sinhl_compat.c: Likewise.
10110         * math/w_sqrt_compat.c: Likewise.
10111         * math/w_sqrtf_compat.c: Likewise.
10112         * math/w_sqrtl_compat.c: Likewise.
10113         * math/w_tgamma_compat.c: Likewise.
10114         * math/w_tgammaf_compat.c: Likewise.
10115         * math/w_tgammal_compat.c: Likewise.
10116         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
10117         [LIBM_SVID_COMPAT].
10118         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
10119         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
10120         [LIBM_SVID_COMPAT].
10121         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
10122         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
10123         [LIBM_SVID_COMPAT].
10124         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
10125         * sysdeps/i386/fpu/w_sqrt.c: New file.
10126         * sysdeps/ia64/fpu/w_acos.c: Likewise.
10127         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
10128         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
10129         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
10130         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
10131         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
10132         * sysdeps/ia64/fpu/w_asin.c: Likewise.
10133         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
10134         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
10135         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
10136         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
10137         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
10138         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
10139         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
10140         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
10141         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
10142         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
10143         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
10144         * sysdeps/ia64/fpu/w_exp.c: Likewise.
10145         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
10146         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
10147         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
10148         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
10149         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
10150         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
10151         * sysdeps/ia64/fpu/w_expf.c: Likewise.
10152         * sysdeps/ia64/fpu/w_expl.c: Likewise.
10153         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
10154         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
10155         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
10156         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
10157         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
10158         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
10159         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
10160         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
10161         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
10162         * sysdeps/ia64/fpu/w_log.c: Likewise.
10163         * sysdeps/ia64/fpu/w_log10.c: Likewise.
10164         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
10165         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
10166         * sysdeps/ia64/fpu/w_log2.c: Likewise.
10167         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
10168         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
10169         * sysdeps/ia64/fpu/w_logf.c: Likewise.
10170         * sysdeps/ia64/fpu/w_logl.c: Likewise.
10171         * sysdeps/ia64/fpu/w_pow.c: Likewise.
10172         * sysdeps/ia64/fpu/w_powf.c: Likewise.
10173         * sysdeps/ia64/fpu/w_powl.c: Likewise.
10174         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
10175         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
10176         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
10177         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
10178         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
10179         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
10180         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
10181         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
10182         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
10183         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
10184         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
10185         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
10186         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
10187         [LIBM_SVID_COMPAT].
10188         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
10189         * sysdeps/ieee754/k_standard.c: Likewise.
10190         * sysdeps/ieee754/k_standardf.c: Likewise.
10191         * sysdeps/ieee754/k_standardl.c: Likewise.
10192         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
10193         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
10194         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
10195         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
10196         long_double_symbol call on [LIBM_SVID_COMPAT].
10197         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
10198         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
10199         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
10200         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
10201         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
10202         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
10203         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
10204         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
10205         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
10206         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
10207         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
10208         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
10209         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
10210         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
10211         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
10212         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
10213         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
10214         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
10215         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
10216         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
10217         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
10218         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
10220 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
10222         * include/shlib-compat.h (TEST_COMPAT): New Macro.
10223         * malloc/tst-mallocstate.c: Convert from test-skeleton
10224         to test-driver.  Ifdef code using TEST_COMPAT macro.
10225         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
10226         * math/test-matherr.c: Likewise.
10228 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
10230         [BZ #22086]
10231         * debug/pcprofiledump.c (main): Use byte-swapped mask when
10232         comparing word with byte-swapped constant.
10234 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
10236         [BZ #20498]
10237         * locale/iso-639.def: add Miskito.
10238         * localedata/SUPPORTED: Add miq_NI/UTF-8.
10239         * localedata/locales/miq_NI: New file.
10241 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
10243         [BZ #18822]
10244         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
10245         (__mkdir): Likewise.
10246         * io/chmod.c (__chmod): Add libc_hidden_def.
10247         * io/mkdir.c (__mkdir): Likewise.
10248         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
10249         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
10250         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
10251         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
10253 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
10255         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10256         version to 4.13.
10258         [BZ #22082]
10259         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
10260         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
10262 2017-09-04  Florian Weimer  <fweimer@redhat.com>
10264         * math/math.h: Issue warning if log is defined.
10266 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
10268         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10269         kernel version to 4.13.
10271 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10273         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
10274         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
10275         parameter.
10276         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
10277         just <bits/types.h>.
10278         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
10279         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
10280         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
10281         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
10282         * misc/preadv2.c: Include <errno.h>.
10283         * misc/preadv64v2.c: Include <errno.h>.
10284         * misc/pwritev2.c: Include <errno.h>.
10285         * misc/pwritev64v2.c: Include <errno.h>.
10286         * sysdeps/posix/preadv2.c: Include <errno.h>.
10287         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
10288         Fix <unistd.h> inclusion.
10289         * sysdeps/posix/pwritev2.c: Include <errno.h>.
10290         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
10291         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
10292         __strtoul_internal): New functions.
10293         * sysdeps/posix/pause.c: Include <sigsetops.h>.
10294         * sysdeps/posix/system.c: Include <sigsetops.h>.
10295         * sysdeps/mach/hurd/i386/Makefile
10296         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
10297         [$(subdir) = csu] (sysdep-only-routines): Likewise.
10298         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
10299         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
10300         __feraiseexcept_renamed to feraiseexcept instead of
10301         __GI_feraiseexcept.
10302         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
10303         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
10304         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
10305         RWF_NOWAIT): Define to 0 if undefined already.
10306         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
10307         boils down to 0.
10308         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
10309         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
10311 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
10313         * manual/math.texi (pow10): Do not document.
10314         (pow10f): Likewise.
10315         (pow10l): Likewise.
10316         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
10317         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
10318         * math/libm-test-exp10.inc (pow10_test): Remove.
10319         (do_test): Do not call pow10.
10320         * math/w_exp10_compat.c (pow10): Make into compat symbol.
10321         [NO_LONG_DOUBLE] (pow10l): Likewise.
10322         * math/w_exp10f_compat.c (pow10f): Likewise.
10323         * math/w_exp10l_compat.c (pow10l): Likewise.
10324         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
10325         (pow10): Make into compat symbol.
10326         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
10327         (pow10f): Make into compat symbol.
10328         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
10329         (pow10l): Make into compat symbol.
10330         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
10331         pow10.
10332         (CFLAGS-nldbl-pow10.c): Remove variable..
10333         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
10334         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
10335         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
10336         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
10337         Undefine and redefine.
10338         (pow10l): Make into compat symbol.
10339         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
10340         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
10341         * sysdeps/arm/libm-test-ulps: Likewise.
10342         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
10343         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
10344         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10345         * sysdeps/microblaze/libm-test-ulps: Likewise.
10346         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
10347         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10348         * sysdeps/nios2/libm-test-ulps: Likewise.
10349         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10350         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
10351         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
10352         * sysdeps/sh/libm-test-ulps: Likewise.
10353         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
10354         * sysdeps/tile/libm-test-ulps: Likewise.
10355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10357 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
10359         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
10361 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
10363         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
10364         "../ChangeLog.old/ChangeLog.8".
10365         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
10366         "../ChangeLog.old/ChangeLog.14".
10368 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
10370         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
10371         Threads Library.
10373 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
10375         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
10377 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
10379         * csu/version.c (banner): Remove "by Roland McGrath et al.".
10380         * nptl/Banner: Remove "by Ulrich Drepper et al.".
10382 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
10384         * stdlib/tst-atexit-common.c (do_test): Test support for at least
10385         32 atexit handlers.
10387 2017-09-01  Zack Weinberg  <zackw@panix.com>
10389         * math/math.h (HUGE_VAL): Improve commentary.
10391 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10392             Andreas Schwab  <schwab@suse.de>
10394         [BZ #21530]
10395         * include/stdio.h (__gen_tempfd): New function.
10396         * stdio-common/Makefile (routines): Add gentempfd.
10397         * stdio-common/gentempfd.c: New file.
10398         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
10399         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
10400         unnamed file first.
10402 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10404         [BZ #21915]
10405         [BZ #21922]
10406         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
10407         result to determine success or failure, not the errno value.
10408         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
10409         (tst-nss-files-hosts-erange): Link with -ldl.
10410         * nss/tst-nss-files-hosts-erange.c: New file.
10411         * nss/tst-resolv-basic.c (response): Handle nodata.example.
10412         (do_test): Add NO_DATA tests.
10413         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
10414         (do_test): Call it.
10416 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10418         [BZ #21922]
10419         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
10420         coming from gethostbyname2_r.
10422 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10424         * support/namespace.h (struct support_chroot_configuration): Add
10425         hosts, host_conf.
10426         (struct support_chroot): Add path_hosts, path_host_conf.
10427         * support/support_chroot.c (write_file): New function.
10428         (support_chroot_create): Call it to process /etc/resolv.conf,
10429         /etc/hosts, /etc/host.conf.
10430         (support_chroot_free): Update.
10432 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10434         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
10435         status indicates it is set.
10437 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10439         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
10440         function lookup failures more reliable.
10442 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10444         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
10445         (getcanonname): Likewise.
10446         (gaih_inet): Likewise.
10448 2017-09-01  Florian Weimer  <fweimer@redhat.com>
10450         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
10451         (getcanonname): Likewise.
10452         (gaih_inet): Likewise.
10454 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
10455             Richard Henderson <rth@twiddle.net>
10457         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
10458         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
10459         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
10460         (IREG_SIZE, OREG_SIZE): New macros.
10461         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
10462         (IREG_SIZE, OREG_SIZE): New macros.
10463         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
10464         (IREG_SIZE): New macro.
10465         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
10466         (IREG_SIZE): New macro.
10467         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
10468         New includes.
10469         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
10470         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
10471         (__CONCATX): Handle exceptions correctly on large values that may
10472         set FE_INVALID.
10473         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
10474         Initialize if not already set.
10475         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
10477 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10479         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
10480         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
10481         Likewise.
10482         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
10483         Likewise.
10484         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
10485         Likewise.
10486         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
10487         Likewise.
10488         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
10489         Likewise.
10490         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
10491         Likewise.
10492         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
10493         Likewise.
10494         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
10495         (NO_CANCELLATION): Likewise.
10496         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
10497         Likewise.
10498         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
10499         Likewise.
10500         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
10501         Likewise.
10502         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
10503         (NO_CANCELLATION): Likewise.
10504         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
10505         (NO_CANCELLATION): Likewise.
10506         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
10507         Likewise
10508         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
10509         Likewise.
10510         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
10511         Likewise.
10512         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
10513         Likewise.
10514         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
10515         hidden prototype.
10516         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
10517         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
10519 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
10521         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
10522         in resolver call.
10524 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10526         * include/libc-symbols.h (internal_function): Remove.
10528 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10530         * stdlib/fmtmsg.c (internal_addseverity): Remove
10531         internal_function.
10533 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10535         * stdio-common/printf_fp.c (group_number): Remove
10536         internal_function.
10537         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
10539 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10541         * posix/fnmatch.c (internal_function): Remove definition.
10542         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
10543         * posix/regcomp.c (peek_token, init_word_char)
10544         (duplicate_node_closure, fetch_token, peek_token)
10545         (peek_token_bracket, build_range_exp, build_collating_symbol):
10546         Likewise.
10547         * posix/regex_internal.c (re_string_construct_common)
10548         (create_ci_newstate, create_cd_newstate, re_string_allocate)
10549         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
10550         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
10551         (re_string_translate_buffer, re_string_reconstruct)
10552         (re_string_peek_byte_case, re_string_fetch_byte_case)
10553         (re_string_destruct, re_string_context_at, re_node_set_alloc)
10554         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
10555         (re_node_set_add_intersect, re_node_set_init_union)
10556         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
10557         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
10558         (re_dfa_add_node, calc_state_hash, re_acquire_state)
10559         (re_acquire_state_context): Likewise.
10560         * posix/regex_internal.h (internal_function): Remove definition.
10561         (re_string_realloc_buffers, build_wcs_buffer)
10562         (build_wcs_upper_buffer, build_upper_buffer)
10563         (re_string_translate_buffer, re_string_context_at)
10564         (re_string_char_size_at, re_string_wchar_at)
10565         (re_string_elem_size_at): Likewise.
10566         * posix/regexec.c (match_ctx_init, match_ctx_clean)
10567         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
10568         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
10569         (re_search_internal, re_search_2_stub, re_search_stub)
10570         (re_copy_regs, prune_impossible_nodes, check_matching)
10571         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
10572         (free_fail_stack_return, sift_states_iter_mb)
10573         (sift_states_backward, build_sifted_states)
10574         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
10575         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
10576         (check_subexp_limits, sift_states_bkref, merge_state_array)
10577         (find_recover_state, transit_state, merge_state_with_log)
10578         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
10579         (transit_state_mb, transit_state_bkref, get_subexp)
10580         (get_subexp_sub, find_subexp_node, check_arrival)
10581         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10582         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
10583         (check_node_accept_bytes, find_collation_sequence_value)
10584         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
10585         (acquire_init_state_context, check_halt_node_context)
10586         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
10587         (sub_epsilon_src_nodes): Likewise.
10588         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
10589         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
10590         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
10591         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
10592         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
10593         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
10594         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
10595         * sysdeps/posix/ttyname.c (getttyname): Likewise.
10596         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
10597         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
10598         (PREADV): Likewise.
10599         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
10600         (PREADV): Likewise.
10601         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
10602         (PWRITEV): Likewise.
10603         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
10604         (PWRITEV): Likewise.
10605         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
10606         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
10608 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10610         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
10611         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
10612         Remove internal_function.
10613         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
10614         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
10615         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
10616         (__deallocate_stack, __libc_pthread_init)
10617         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
10618         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
10619         (__libc_disable_asynccancel, __librt_disable_asynccancel):
10620         Likewise.
10621         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
10622         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
10623         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
10624         Likewise.
10625         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
10626         (__pthread_mutex_unlock_usercnt): Likewise.
10628 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10630         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
10631         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
10632         (fts_safe_changedir): Remove internal_function.
10633         * io/ftw.c (internal_function): Remove definition.
10634         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
10636 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10638         * inet/deadline.c (__deadline_current_time)
10639         (__deadline_from_timeval, __deadline_to_ms): Remove
10640         internal_function.
10641         * inet/getnameinfo.c (nrl_domainname): Likewise.
10642         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
10643         * inet/inet6_option.c (add_pad): Likewise.
10644         * inet/net-internal.h (__deadline_current_time)
10645         (__deadline_from_timeval, __deadline_to_ms): Likewise.
10646         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
10647         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
10648         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
10650 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
10652         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
10653         include <bits/nan.h>.
10654         * math/Makefile (headers): Remove bits/nan.h.
10655         * bits/nan.h: Remove.
10656         * sysdeps/ieee754/bits/nan.h: Likewise.
10657         * sysdeps/mips/bits/nan.h: Likewise.
10659         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
10660         not include <bits/inf.h>.
10661         * math/Makefile (headers): Remove bits/inf.h.
10662         * bits/inf.h: Remove.
10663         * sysdeps/ieee754/bits/inf.h: Likewise.
10665         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
10666         bits/huge_vall.h or bits/huge_val_flt128.h.
10667         (HUGE_VAL): Define directly here.
10668         [__USE_ISOC99] (HUGE_VALF): Likewise.
10669         [__USE_ISOC99] (HUGE_VALL): Likewise.
10670         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10671         (HUGE_VAL_F128): Likewise.
10672         * math/Makefile (headers): Remove bits/huge_val.h,
10673         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
10674         * bits/huge_val.h: Remove.
10675         * bits/huge_val_flt128.h: Likewise.
10676         * bits/huge_valf.h: Likewise.
10677         * bits/huge_vall.h: Likewise.
10678         * sysdeps/ia64/bits/huge_vall.h: Likewise.
10679         * sysdeps/ieee754/bits/huge_val.h: Likewise.
10680         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
10681         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
10682         * sysdeps/sh/bits/huge_val.h: Likewise.
10683         * sysdeps/sparc/bits/huge_vall.h: Likewise.
10684         * sysdeps/x86/bits/huge_vall.h: Likewise.
10686 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10688         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
10689         internal_function.
10690         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
10691         Likewise.
10692         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
10693         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
10694         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
10695         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
10696         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10697         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
10698         * elf/dl-libc.c (dlerror_run): Likewise.
10699         * elf/dl-load.c (add_name_to_object, decompose_rpath)
10700         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
10701         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
10702         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
10703         Likewise.
10704         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
10705         (_dl_higher_prime_number, _dl_strtoul): Likewise.
10706         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
10707         * elf/dl-profile.c (_dl_start_profile): Likewise.
10708         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
10709         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
10710         Likewise.
10711         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
10712         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
10713         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
10714         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
10715         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
10716         (_dl_allocate_tls_storage): Likewise.
10717         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
10718         (_dl_check_all_versions): Likewise.
10719         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10720         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
10721         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
10722         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
10723         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
10724         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
10725         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
10726         internal_function from __dl_start.
10727         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
10728         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10729         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
10730         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
10731         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
10732         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
10733         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
10734         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
10735         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
10736         (_dl_next_ld_env_entry, _dl_important_hwcaps)
10737         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
10738         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
10739         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
10740         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
10741         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
10742         Likewise.
10743         (struct rtld_global_ro): Remove internal_function from the
10744         _dl_lookup_symbol_x member.
10745         (_dl_symbol_value): Remove.  No longer defined anywhere.
10746         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
10747         internal_function.
10748         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
10749         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
10750         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
10751         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
10752         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
10753         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
10754         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
10755         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
10756         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
10757         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10758         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
10759         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
10761 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10763         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
10764         Remove internal_function.
10765         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
10766         Likewise.
10767         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
10768         Likewise.
10770 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10772         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
10773         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
10774         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
10776 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10778         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
10779         (__gai_enqueue_request): Remove internal_function.
10780         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
10781         (__gai_remove_request, __gai_notify, __gai_notify_only)
10782         (__gai_sigqueue): Likewise.
10783         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
10784         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
10785         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
10786         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
10787         Likewise.
10789 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10791         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
10792         * include/dirent.h (__opendirat, __getdents, __getdents64)
10793         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
10794         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
10795         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
10796         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
10797         Likewise.
10798         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
10800 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10802         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
10803         internal_function.
10804         (GETCWD_RETURN_TYPE): Likewise.
10806 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10808         * include/time.h (__tz_compute, __strptime_internal): Remove
10809         internal_function.
10810         * time/strptime_l.c (__strptime_internal): Likewise.
10811         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
10813 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10815         * iconv/gconv.c (__gconv): Remove internal_function.
10816         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
10817         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
10818         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
10819         (__gconv_release_cache): Likewise.
10820         * iconv/gconv_close.c (__gconv_close): Likewise.
10821         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
10822         (read_conf_file, __gconv_get_path): Likewise.
10823         * iconv/gconv_db.c (derivation_lookup, add_derivation)
10824         (__gconv_release_step, gen_steps, increment_counter)
10825         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
10826         (__gconv_close_transform, free_modules_db): Likewise.
10827         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
10828         Likewise.
10829         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
10830         (__gconv_find_transform, __gconv_lookup_cache)
10831         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
10832         (__gconv_close_transform, __gconv_release_cache)
10833         (__gconv_loaded_object, __gconv_release_shlib)
10834         (__gconv_compare_alias): Likewise.
10835         * iconv/gconv_open.c (__gconv_open): Likewise.
10836         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
10837         * iconv/iconvconfig.c (add_module): Likewise.
10838         * intl/dcigettext.c (plural_lookup, guess_category_value)
10839         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
10840         * intl/eval-plural.h (plural_eval): Likewise.
10841         * intl/finddomain.c (_nl_find_domain): Likewise.
10842         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
10843         (_nl_load_domain, _nl_find_msg): Likewise.
10844         (internal_function): Remove definition.
10845         * intl/loadinfo.h (internal_function): Likewise.
10846         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
10847         internal_function.
10848         * intl/localealias.c (internal_function): Remove definition.
10849         (read_alias_file): Remove internal_function.
10850         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
10851         * intl/plural-exp.h (internal_function): Remove definition.
10852         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
10853         internal_function.
10854         * intl/plural.c: Regenerate.
10855         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
10856         * locale/coll-lookup.c (__collidx_table_lookup)
10857         (__collseq_table_lookup): Likewise.
10858         * locale/coll-lookup.h (__collidx_table_lookup)
10859         (__collseq_table_lookup): Likewise.
10860         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
10861         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
10862         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
10863         (_nl_unload_locale): Likewise.
10864         * locale/localeinfo.h (struct __locale_data): Remove
10865         internal_function from cleanup member.
10866         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
10867         (_nl_remove_locale, _nl_load_locale_from_archive)
10868         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
10869         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
10870         (_nl_cleanup_time): Remove internal_function.
10871         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
10872         (_nl_parse_alt_digit): Likewise.
10873         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
10874         (_nl_select_era_entry): Likewise.
10875         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
10876         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
10877         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
10878         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
10879         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
10881 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10883         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
10884         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
10885         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
10886         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
10887         Likewise.
10888         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
10889         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
10890         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
10891         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
10892         Likewise.
10893         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
10895 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10897         * misc/getttyent.c (skip, value): Remove internal_function.
10898         * misc/syslog.c (openlog_internal): Likewise.
10899         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
10901 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10903         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
10904         (__nss_rewrite_field): Remove internal_function.
10905         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10906         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10907         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
10908         * nss/nsswitch.c (nss_parse_file, nss_getline)
10909         (nss_parse_service_list, nss_new_service): Likewise.
10910         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
10911         * nss/valid_field.c (__nss_valid_field): Likewise.
10912         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10914 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10916         * malloc/arena.c (__malloc_fork_lock_parent)
10917         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
10918         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
10919         internal_function from defintions.
10920         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
10921         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
10922         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
10923         internal_function from declarations.
10924         * malloc/malloc.c (internal_function): Do not define.
10925         (mem2mem_check): Remove internal_function from declaration.
10926         (munmap_chunk, mremap_chunk): Remove internal_function.
10927         * malloc/mtrace.c (tr_where): Likewise.
10929 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10931         * include/rpc/pmap_clnt.h (__get_socket): Remove
10932         internal_function.
10933         * sunrpc/auth_des.c (synchronize): Likewise.
10934         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
10935         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
10936         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
10937         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
10938         (key_call): Likewise.
10939         * sunrpc/pm_getport.c (__get_socket): Likewise.
10940         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
10941         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
10942         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
10943         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
10944         (invalidate): Likewise.
10945         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
10946         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
10947         (set_input_fragment, get_input_bytes): Likewise.
10949 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10951         * malloc/malloc.c (_int_free): Remove locked variable and related
10952         asserts.
10954 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
10956         [BZ #22051]
10957         * Makerules (build-module-helper-objlist): Filter out
10958         $(elf-objpfx)sofini.os.
10959         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
10960         needed.
10962 2017-08-31  Florian Weimer  <fweimer@redhat.com>
10964         * libio/fcloseall.c: Assume weak_alias is defined.
10965         * libio/feof.c: Likewise.
10966         * libio/fileno.c: Likewise.
10967         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
10968         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
10969         definitions.
10970         (_IO_file_open): Call __open directly.
10971         (_IO_new_file_sync): Assume ESPIPE is defined.
10972         (_IO_file_seekoff_maybe_mmap): Call __read directly.
10973         (_IO_new_file_write): Call __write directly.
10974         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
10975         * libio/ftello64.c (__ftello64): Assume EIO is defined.
10976         * libio/genops.c: Assume _LIBC is defined.
10977         (save_for_backup): Remove internal_function.
10978         * libio/getc.c: Assume weak_alias is defined.
10979         * libio/getwc.c: Likewise.
10980         * libio/iofclose.c: Assume _LIBC is defined.
10981         * libio/iofdopen.c: Likewise.
10982         (_IO_fcntl): Remove macro definition.
10983         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
10984         Call __fcntl directly.
10985         * libio/iofflush.c: Assume weak_alias is defined.
10986         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
10987         defined.
10988         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
10989         * libio/iofgets.c: Likewise.
10990         * libio/iofopen.c: Assume _LIBC is defined.
10991         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
10992         * libio/iofputs.c: Assume weak_alias is defined.
10993         * libio/iofread.c: Likewise.
10994         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
10995         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
10996         * libio/ioftell.c: Assume weak_alias is defined.
10997         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
10998         * libio/iofwide.c: Assume _LIBC is defined.
10999         (_IO_fwide): Drop SHARED conditional because it is implied by
11000         SHLIB_COMPAT.
11001         * libio/iofwrite.c: Assume weak_alias is defined.
11002         * libio/iogetdelim.c: Likewise.
11003         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
11004         * libio/iogetwline.c (wmemcpy): Remove macro definition.
11005         (_IO_getwline): Call __wmemcpy directly.
11006         * libio/iopopen.c: Assume _LIBC is defined.
11007         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
11008         (_IO_close): Remove macro definitions.
11009         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
11010         _exit directly.
11011         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
11012         directly.
11013         * libio/ioputs.c: Assume weak_alias is defined.
11014         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
11015         * libio/iosetbuffer.c: Assume weak_alias is defined.
11016         * libio/iosetvbuf.c: Likewise.
11017         * libio/ioungetc.c: Likewise.
11018         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
11019         libc_hidden_def, libc_hidden_weak, NULL are defined.
11020         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
11021         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
11022         defined.
11023         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
11024         definitions.
11025         (_IO_old_file_init_internal): Drop SHARED conditional because it
11026         is implied by SHLIB_COMPAT.
11027         (_IO_old_file_fopen): Call __open directly.
11028         (_IO_old_file_sync): Assume ESPIPE is defined.
11029         (_IO_old_file_write): Call __write directly.
11030         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
11031         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
11032         Call __fcntl directly.
11033         * libio/oldiofgetpos.c: Assume weak_alias is defined.
11034         (_IO_old_fgetpos): Assume EIO is defined.
11035         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
11036         (_IO_old_fgetpos64): Assume EIO is defined.
11037         * libio/oldiofsetpos.c: Assume weak_alias is defined.
11038         (_IO_old_fsetpos): Assume EIO is defined.
11039         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
11040         (_IO_old_fsetpos64): Assume EIO is defined.
11041         * libio/oldiopopen.c:  Assume _LIBC is defined.
11042         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
11043         (_IO_close): Remove macro definitions.
11044         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
11045         directly.
11046         (_IO_old_proc_close): Call __close, __waitpid directly.
11047         * libio/put.c: Assume weak_alias is defined.
11048         * libio/stdfiles.c: Assume _LIBC is defined.
11049         * libio/stdio.c: Likewise.
11050         * libio/wfileops.c: Likewise.
11051         (_IO_wfile_sync): Assume ESPIPE is defined.
11052         * libio/wgenops.c: Assume _LIBC is defined.
11053         (save_for_wbackup): Remove internal_function.
11055 2017-08-31  Florian Weimer  <fweimer@redhat.com>
11057         * malloc/malloc.c (top_check): Change return type to void.  Remove
11058         internal_function.
11059         * malloc/hooks.c (top_check): Likewise.
11060         (malloc_check, realloc_check, memalign_check): Adjust.
11062 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
11064         [BZ #21457]
11065         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
11066         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
11067         sigcontext and namespace requirements.
11068         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
11069         * sysdeps/m68k/sys/ucontext.h: Likewise.
11070         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
11071         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
11072         <bits/sigcontext.h>.
11073         (__ctx): Define earlier.
11074         (mcontext_t): Define structure contents rather than using struct
11075         sigcontext.
11076         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
11077         __glibc_reserved1 instead of __reserved.
11078         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
11079         <bits/sigcontext.h>.
11080         (__ctx): Define earlier.
11081         (mcontext_t): Define structure contents rather than using struct
11082         sigcontext.
11083         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
11084         mcontext_t instead of struct sigcontext.
11085         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
11086         <bits/sigcontext.h>.
11087         (__ctx): Define earlier.
11088         (mcontext_t): Define structure contents rather than using struct
11089         sigcontext.
11090         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
11091         <bits/sigcontext.h>.
11092         (__ctx): Define earlier.
11093         (mcontext_t): Define structure contents rather than using struct
11094         sigcontext.
11095         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
11096         mcontext_t instead of struct sigcontext.
11097         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
11098         mcontext_t instead of struct sigcontext.
11099         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
11100         <bits/sigcontext.h>.
11101         (__ctx): New macro.
11102         (struct __ia64_fpreg_mcontext): New type.
11103         (mcontext_t): Define structure contents rather than using struct
11104         sigcontext.
11105         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
11106         (uc_sigmask): Define using __ctx.
11107         (uc_stack): Likewise.
11108         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
11109         <bits/sigcontext.h>.
11110         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11111         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
11112         <bits/sigcontext.h>.
11113         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
11114         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
11115         <bits/sigcontext.h>.
11116         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
11117         <bits/sigcontext.h>.
11118         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
11119         <bits/sigcontext.h>.
11120         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
11121         <bits/sigcontext.h>.
11122         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
11123         <bits/sigcontext.h>.
11124         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
11125         <bits/sigcontext.h>.
11126         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
11127         <bits/sigcontext.h>.
11128         (__ctx): Define earlier.
11129         (mcontext_t): Define structure contents rather than using struct
11130         sigcontext.
11131         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
11132         <bits/sigcontext.h>.  Include <bits/types.h>.
11133         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
11134         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
11135         (test-xfail-XPG42/ucontext.h/conform): Likewise.
11136         (test-xfail-UNIX98/signal.h/conform): Likewise.
11137         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
11138         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
11139         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
11140         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
11141         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
11142         (test-xfail-POSIX2008/signal.h/conform): Likewise.
11143         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
11144         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
11145         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
11147 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11149         * malloc/dynarray_emplace_enlarge.c
11150         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
11151         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
11152         * malloc/tst-dynarray.c (test_long_overflow): New function.
11153         (do_test): Call it.
11155 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11157         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
11158         (set_arena_corrupt): Remove definitions.
11159         (mtrim): Do not check for corrupt arena.
11160         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
11161         Likewise.
11163 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11165         [BZ #21754]
11166         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
11167         check_action.
11168         (ptmalloc_init): Do not set or use check_action.
11169         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
11170         call to malloc_printerr.  Remove return statement.
11171         (free_check): Likewise.  Remove arena unlock.
11172         (top_check): Update comment.  Adjust call to malloc_printerr.
11173         Remove heap repair code.
11174         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
11175         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
11176         (sysmalloc): Adjust call to malloc_printerr.
11177         (munmap_chunk, __libc_realloc): Likewise.  Remove return
11178         statement.
11179         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
11180         Remove errout label and corresponding gotos.
11181         (_int_free): Likewise.  Remove arena unlock.
11182         (do_set_mallopt_check): Do not set check_action.
11183         (malloc_printerr): Adjust parameter list.  Do not mark arena as
11184         corrupt.
11185         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
11186         comment.
11187         * manual/probes.texi (Memory Allocation Probes): Remove
11188         memory_mallopt_check_action.
11190 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
11192         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
11193         Use pointer to uint64_t instead of long int for sp.
11195 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11197         [BZ #21754]
11198         * malloc/malloc.c (malloc_printerr): Always terminate the process,
11199         without printing a backtrace.  Do not leak any information in the
11200         error message.
11201         * manual/memory.texi (Heap Consistency Checking): Update.
11202         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
11204 2017-08-30  Florian Weimer  <fweimer@redhat.com>
11206         Do not scale NPTL tests with available number of CPUs.
11207         * nptl/tst-cond16.c (count): Set to constant value of 8.
11208         * nptl/tst-cond18.c (count): Likewise.
11210 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
11212         [BZ #22035]
11213         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
11214         Define to take a second argument that is a macro that
11215         concatentates a suffix, not the suffix itself.
11216         (__CONCAT_d): New macro.
11217         (__CONCAT_f): Likewise.
11218         (__CONCAT_l): Likewise.
11220 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
11222         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
11223         by child.
11225 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11226             Aurelien Jarno  <aurelien@aurel32.net>
11227             Maciej W. Rozycki  <macro@imgtec.com>
11229         [BZ #21956]
11230         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
11231         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
11232         `mips16-syscall6' and `mips16-syscall7'.
11233         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
11234         (CFLAGS-mips16-syscall7.c): Remove.
11235         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
11236         Remove `__mips16_syscall5', `__mips16_syscall6' and
11237         `__mips16_syscall7'.
11238         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
11239         (__mips16_syscall0): Rename `__mips16_syscall_return' to
11240         `__mips_syscall_return'.
11241         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
11242         (__mips16_syscall1): Likewise.
11243         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
11244         (__mips16_syscall2): Likewise.
11245         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
11246         (__mips16_syscall3): Likewise.
11247         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
11248         (__mips16_syscall4): Likewise.
11249         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
11250         Remove.
11251         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
11252         Remove.
11253         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
11254         Remove.
11255         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
11256         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
11257         `__mips16_syscall5'.  Remove prototype.
11258         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
11259         `__mips16_syscall6'.  Remove prototype.
11260         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
11261         `__mips16_syscall7'.  Remove prototype.
11262         (__nomips16, __mips16_syscall_return): Move to...
11263         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
11264         (__nomips16, __mips_syscall_return): ... here.
11265         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
11266         `__mips16_syscall_return' to `__mips_syscall_return'.
11267         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
11268         `internal_syscall##nr'.
11269         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
11270         `internal_syscall##nr'.
11271         (FORCE_FRAME_POINTER): Remove.
11272         (__mips_syscall5): New prototype.
11273         (internal_syscall5): Rewrite to call `__mips_syscall5'.
11274         (__mips_syscall6): New prototype.
11275         (internal_syscall6): Rewrite to call `__mips_syscall6'.
11276         (__mips_syscall7): New prototype.
11277         (internal_syscall7): Rewrite to call `__mips_syscall7'.
11278         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
11279         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
11280         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
11281         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
11282         (sysdep_routines): Add libc-do-syscall.
11283         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
11284         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
11286 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11288         [BZ #21672]
11289         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
11290         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
11291         (advise_stack_range): New function.
11292         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
11293         stack non required to advise_stack_range at allocatestack.c
11295 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11297         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
11299 2017-08-29  Florian Weimer  <fweimer@redhat.com>
11301         [BZ #22026]
11302         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
11303         __end_fct.  Mangle __end_fct after setting it to NULL.
11304         * iconv/Makefile (tests): Add tst-gconv-init-failure.
11305         (modules-names, modules-names-tests): Add
11306         tst-gconv-init-failure-mod.
11307         (gconv-modules): New target.
11308         (tst-gconv-init-failure-mod.so): Link against libsupport.
11309         (tst-gconv-init-failure): Depend on gconv-modules,
11310         tst-gconv-init-failure-mod.so.
11311         * iconv/tst-gconv-init-failure-mod.c: New file.
11312         * iconv/tst-gconv-init-failure.c: Likewise.
11313         * iconv/test-gconv-modules: Likewise.
11315 2017-08-29  Florian Weimer  <fweimer@redhat.com>
11317         [BZ #22025]
11318         * iconv/gconv_db.c (free_derivation): Remove redundant
11319         parentheses.
11320         (gen_steps): Unconditionally mangle __btowc_fct after
11321         initialization.
11322         (increment_counter): Likewise.  Do not call init_fct for internal
11323         modules.
11325 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
11327         [BZ #22028]
11328         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
11329         (_MSUF_): Remove macro.
11330         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
11331         Likewise.
11332         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
11333         (__REDIRFROM_X): New macro.
11334         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
11335         Likewise.
11336         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
11337         (__REDIRTO_X): Likewise.
11338         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
11339         arguments.
11340         (__MATH_REDIRCALL_2): Likewise.
11341         (__MATH_REDIRCALL_INTERNAL): Likewise.
11342         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
11343         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
11344         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
11345         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
11346         * math/test-finite-macros.c: New file.
11347         * math/Makefile (tests): Add test-finite-macros.
11348         (CFLAGS-test-finite-macros.c): New variable.
11350 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
11351             Jeff Law  <law@redhat.com>
11353         [BZ #22025]
11354         Mangle NULL pointers in iconv/gconv.
11355         * iconv/gconv_cache.c (find_module): Demangle init_fct before
11356         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
11357         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
11358         is non-NULL before demangling the end_fct.  Check for NULL
11359         end_fct after demangling.
11360         (__gconv_release_step): Demangle the end_fct before checking
11361         it for NULL.   Remove assert on __shlibc_handle != NULL.
11362         (gen_steps): Don't check btowc_fct for NULL before mangling.
11363         Demangle init_fct before checking for NULL.
11364         (increment_counter): Likewise.
11365         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
11366         end_fct for NULL before mangling.
11367         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
11368         for NULL.
11370 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
11372         [BZ #21971]
11373         * locale/iso-639.def: add Morisyen.
11375 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11377         [BZ #21930]
11378         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
11379         (iszero): New C++ implementation that does not use
11380         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
11381         signaling nans are enabled, since __builtin_types_compatible_p
11382         is a C-only feature.
11383         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
11384         defined, include ieee754_float128.h for access to the union and
11385         member ieee854_float128.ieee.
11386         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
11387         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
11388         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
11389         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
11390         options of test-math-zero on powerpc64le.
11392 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
11394         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
11395         Change double to float.
11397 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
11399         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
11400         unconditional.
11401         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
11402         conditional code; define contents only for [LIBM_SVID_COMPAT].
11404 2017-08-28  Florian Weimer  <fweimer@redhat.com>
11406         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
11407         (abi-lp64_be-options): Remove.
11408         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
11409         (abi-hard-options): Likewise.
11410         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
11411         (abi-o32_hard-options, abi-o32_soft_2008-options)
11412         (abi-o32_hard_2008-options, abi-n32_soft-options)
11413         (abi-n32_hard-options, abi-n32_soft_2008-options)
11414         (abi-n32_hard_2008-options, abi-n64_soft-options)
11415         (abi-n64_hard-options, abi-n64_soft_2008-options)
11416         (abi-n64_hard_2008-options): Likewise.
11417         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
11418         (abi-64-v1-options, abi-64-v2-options): Likewise.
11419         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
11420         (abi-64-options): Likewise.
11421         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
11422         (abi-64-options): Likewise.
11423         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
11424         (abi-64-options): Likewise.
11425         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
11426         (abi-64-options, abi-x32-options): Likewise.
11428 2017-08-28  Florian Weimer  <fweimer@redhat.com>
11430         Store supported list of SYS_* system calls in the source tree.
11431         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11432         (bits/syscall.h): Generate from list file.
11433         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
11434         [$(subdir) = misc] (tests): Add tst-syscall-list.
11435         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
11436         [$(subdir) = misc] (tst-syscall-list-macros.list)
11437         [$(subdir) = misc] (tst-syscall-list-nr.list)
11438         (tst-syscall-list-sys.list): Helper targets for new
11439         tst-syscall-list test.
11440         [$(subdir) = misc] (tst-syscall-list.out): Run test script
11441         tst-syscall-list.sh.
11442         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
11443         target. Do not include bits/syscall.d.
11444         [$(subdir) = misc] (generated): Do not update.
11445         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
11446         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
11447         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
11448         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
11450 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
11452         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
11453         (tst-cxa_atexit, tst-on_exit): Likewise.
11454         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
11455         tst-cxa_atexit, and tst-on_exit.
11456         * stdlib/tst-atexit-common.c: New file.
11457         * stdlib/tst-atexit.c: New file.
11458         * stdlib/tst-at_quick_exit.c: New file.
11459         * stdlib/tst-cxa_atexit.c: New file.
11460         * stdlib/tst-on_exit.c: New file.
11462 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11464         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
11465         * mach/stack_chk_fail_local.c: New file.
11466         * hurd/stack_chk_fail_local.c: New file.
11467         * mach/Machrules ($(interface-library)-routines): Add
11468         stack_chk_fail_local.
11469         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
11470         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
11471         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
11472         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
11473         * hurd/Makefile (CFLAGS-hurdstartup.o,
11474         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
11476 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11478         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
11479         (index_cpu_*, index_arch_*): Removed.
11481 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11483         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
11484         Use uint64_t instead of unsigned long.
11486 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
11488         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
11489         [__HAVE_DISTINCT_FLOAT128].
11491         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
11492         of <bits/math-finite.h>.
11493         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
11494         inclusion of <bits/math-finite.h>.
11495         * math/bits/math-finite.h (__REDIRTO_X): Do not define
11496         conditionally on [__MATH_DECLARING_LDOUBLE && defined
11497         __NO_LONG_DOUBLE_MATH].
11498         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
11499         (__MATH_REDIRCALL_2): Likewise.
11500         (__MATH_REDIRCALL_INTERNAL): Likewise.
11501         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
11502         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
11503         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
11505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
11506         Remove file.
11507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
11508         Likewise.
11509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
11510         Likewise.
11511         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
11512         Likewise.
11513         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
11514         Likewise.
11515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
11516         Likewise.
11517         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
11518         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
11519         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
11520         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
11521         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
11522         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
11523         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
11524         w_sqrtf_compat-ppc32.
11526 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11528         * math/math.h [defined __cplusplus] (issignaling): In the long
11529         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
11530         is not defined.  Call __issignaling, otherwise.
11532 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11534         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
11535         syscall definitions and replace __builtin_expect with __glibc_likely.
11536         * sysdeps/unix/syscall-template.S: Update comment about cancellable
11537         syscall.
11538          (SYSCALL_CANCELLABLE): Removedefinition
11539         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
11540         definition.
11541         (PSEUDO_END): Likewise.
11542         [IS_IN (libpthread)] (CENABLE): Likewise.
11543         [IS_IN (libpthread)] (CDISABLE): Likewise.
11544         [IS_IN (libc)] (CENABLE): Likewise.
11545         [IS_IN (libc)] (CENABLE): Likewise.
11546         [IS_IN (librt)] (CDISABLE): Likewise.
11547         [IS_IN (librt)] (CDISABLE): Likewise.
11548         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11549         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
11550         definition.
11551         (PSEUDO_END): Likewise.
11552         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
11553         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
11554         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
11555         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
11556         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
11557         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
11558         (CENABLE): Likewise.
11559         (CDISABLE): Likewise.
11560         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11561         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
11562         defintion.
11563         (PSEUDO_END): Likewise.
11564         [IS_IN (libpthread)] (CENABLE): Likewise.
11565         [IS_IN (libpthread)] (CDISABLE): Likewise.
11566         [IS_IN (libc)] (CENABLE): Likewise.
11567         [IS_IN (libc)] (CENABLE): Likewise.
11568         [IS_IN (librt)] (CDISABLE): Likewise.
11569         [IS_IN (librt)] (CDISABLE): Likewise.
11570         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11571         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
11572         definition.
11573         (PSEUDO_END): Likewise.
11574         [IS_IN (libpthread)] (CENABLE): Likewise.
11575         [IS_IN (libpthread)] (CDISABLE): Likewise.
11576         [IS_IN (libc)] (CENABLE): Likewise.
11577         [IS_IN (libc)] (CENABLE): Likewise.
11578         [IS_IN (librt)] (CDISABLE): Likewise.
11579         [IS_IN (librt)] (CDISABLE): Likewise.
11580         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11581         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
11582         definition.
11583         (PSEUDO_END): Likewise.
11584         [IS_IN (libpthread)] (CENABLE): Likewise.
11585         [IS_IN (libpthread)] (CDISABLE): Likewise.
11586         [IS_IN (libc)] (CENABLE): Likewise.
11587         [IS_IN (libc)] (CENABLE): Likewise.
11588         [IS_IN (librt)] (CDISABLE): Likewise.
11589         [IS_IN (librt)] (CDISABLE): Likewise.
11590         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11591         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
11592         definition.
11593         (PSEUDO_END): Likewise.
11594         [IS_IN (libpthread)] (CENABLE): Likewise.
11595         [IS_IN (libpthread)] (CDISABLE): Likewise.
11596         [IS_IN (libc)] (CENABLE): Likewise.
11597         [IS_IN (libc)] (CENABLE): Likewise.
11598         [IS_IN (librt)] (CDISABLE): Likewise.
11599         [IS_IN (librt)] (CDISABLE): Likewise.
11600         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11601         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
11602         definition.
11603         (PSEUDO_END): Likewise.
11604         [IS_IN (libpthread)] (CENABLE): Likewise.
11605         [IS_IN (libpthread)] (CDISABLE): Likewise.
11606         [IS_IN (libc)] (CENABLE): Likewise.
11607         [IS_IN (libc)] (CENABLE): Likewise.
11608         [IS_IN (librt)] (CDISABLE): Likewise.
11609         [IS_IN (librt)] (CDISABLE): Likewise.
11610         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11611         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
11612         definition.
11613         (PSEUDO_END): Likewise.
11614         [IS_IN (libpthread)] (CENABLE): Likewise.
11615         [IS_IN (libpthread)] (CDISABLE): Likewise.
11616         [IS_IN (libc)] (CENABLE): Likewise.
11617         [IS_IN (libc)] (CENABLE): Likewise.
11618         [IS_IN (librt)] (CDISABLE): Likewise.
11619         [IS_IN (librt)] (CDISABLE): Likewise.
11620         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11621         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
11622         Remove definition.
11623         (PSEUDO_END): Likewise.
11624         [IS_IN (libpthread)] (CENABLE): Likewise.
11625         [IS_IN (libpthread)] (CDISABLE): Likewise.
11626         [IS_IN (libc)] (CENABLE): Likewise.
11627         [IS_IN (libc)] (CENABLE): Likewise.
11628         [IS_IN (librt)] (CDISABLE): Likewise.
11629         [IS_IN (librt)] (CDISABLE): Likewise.
11630         (SINGLE_THREAD_P): Likewise.
11631         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
11632         definition.
11633         (PSEUDO_END): Likewise.
11634         [IS_IN (libpthread)] (CENABLE): Likewise.
11635         [IS_IN (libpthread)] (CDISABLE): Likewise.
11636         [IS_IN (libc)] (CENABLE): Likewise.
11637         [IS_IN (libc)] (CENABLE): Likewise.
11638         [IS_IN (librt)] (CDISABLE): Likewise.
11639         [IS_IN (librt)] (CDISABLE): Likewise.
11640         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11641         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
11642         definition.
11643         (PSEUDO_END): Likewise.
11644         [IS_IN (libpthread)] (CENABLE): Likewise.
11645         [IS_IN (libpthread)] (CDISABLE): Likewise.
11646         [IS_IN (libc)] (CENABLE): Likewise.
11647         [IS_IN (libc)] (CENABLE): Likewise.
11648         [IS_IN (librt)] (CDISABLE): Likewise.
11649         [IS_IN (librt)] (CDISABLE): Likewise.
11650         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11651         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
11652         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
11653         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
11654         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
11655         definition.
11656         (PSEUDO_END): Likewise.
11657         [IS_IN (libpthread)] (CENABLE): Likewise.
11658         [IS_IN (libpthread)] (CDISABLE): Likewise.
11659         [IS_IN (libc)] (CENABLE): Likewise.
11660         [IS_IN (libc)] (CENABLE): Likewise.
11661         [IS_IN (librt)] (CDISABLE): Likewise.
11662         [IS_IN (librt)] (CDISABLE): Likewise.
11663         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11664         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
11665         definition.
11666         (PSEUDO_END): Likewise.
11667         [IS_IN (libpthread)] (CENABLE): Likewise.
11668         [IS_IN (libpthread)] (CDISABLE): Likewise.
11669         [IS_IN (libc)] (CENABLE): Likewise.
11670         [IS_IN (libc)] (CENABLE): Likewise.
11671         [IS_IN (librt)] (CDISABLE): Likewise.
11672         [IS_IN (librt)] (CDISABLE): Likewise.
11673         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11674         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
11675         definition.
11676         (PSEUDO_END): Likewise.
11677         [IS_IN (libpthread)] (CENABLE): Likewise.
11678         [IS_IN (libpthread)] (CDISABLE): Likewise.
11679         [IS_IN (libc)] (CENABLE): Likewise.
11680         [IS_IN (libc)] (CENABLE): Likewise.
11681         [IS_IN (librt)] (CDISABLE): Likewise.
11682         [IS_IN (librt)] (CDISABLE): Likewise.
11683         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11684         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
11685         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
11686         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
11687         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
11688         definition.
11689         (PSEUDO_END): Likewise.
11690         [IS_IN (libpthread)] (CENABLE): Likewise.
11691         [IS_IN (libpthread)] (CDISABLE): Likewise.
11692         [IS_IN (libc)] (CENABLE): Likewise.
11693         [IS_IN (libc)] (CENABLE): Likewise.
11694         [IS_IN (librt)] (CDISABLE): Likewise.
11695         [IS_IN (librt)] (CDISABLE): Likewise.
11696         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11697         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
11698         definition.
11699         (PSEUDO_END): Likewise.
11700         [IS_IN (libpthread)] (CENABLE): Likewise.
11701         [IS_IN (libpthread)] (CDISABLE): Likewise.
11702         [IS_IN (libc)] (CENABLE): Likewise.
11703         [IS_IN (libc)] (CENABLE): Likewise.
11704         [IS_IN (librt)] (CDISABLE): Likewise.
11705         [IS_IN (librt)] (CDISABLE): Likewise.
11706         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
11708 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11710         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
11712 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
11714         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11716 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
11718         [BZ #21982]
11719         * string/stratcliff.c (do_test): Declare size, nchars, inner,
11720         middle and outer with size_t instead of int.  Repleace %d and
11721         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
11722         "MAX (outer, nchars - 64)" to support unsigned outer and
11723         nchars.  Also exit loop when outer == 0.
11725 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11727         * include/fcntl.h (__fcntl_nocancel): Remove definition.
11728         * include/signal.h (__sigsuspend_nocancel): Likewise.
11729         * include/time.h (__nanosleep_nocancel): Likewise.
11730         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
11731         * login/utmp_file.c: Include non cancellable syscall header.
11732         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
11733         prototype.
11735 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
11737         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
11738         .byte sequences with AVX512F instructions.
11739         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
11740         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
11741         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
11742         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
11743         Likewise.
11744         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
11745         Likewise.
11747 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11748             Steve Ellcey  <sellcey@cavium.com>
11750         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
11751         Use PTR_REG macro in cmp instruction.
11753 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11755         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
11756         Change the return type of the ifunc resolver to match the return
11757         type of the target function.
11759 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11761         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
11762         (preadv64): Likewise.
11763         (pwrite64(: Likewise.
11764         (pwritev64): Likewise.
11766         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11767         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
11768         (LOAD_ARGS_0): Likewise.
11769         (LOAD_ARGS_1): Likewise.
11770         (LOAD_ARGS_2): Likewise.
11771         (LOAD_ARGS_3): Likewise.
11772         (LOAD_ARGS_4): Likewise.
11773         (LOAD_ARGS_5): Likewise.
11774         (LOAD_ARGS_6): Likewise.
11775         (LOAD_REGS_0): Likewise.
11776         (LOAD_REGS_1): Likewise.
11777         (LOAD_REGS_2): Likewise.
11778         (LOAD_REGS_3): Likewise.
11779         (LOAD_REGS_4): Likewise.
11780         (LOAD_REGS_5): Likewise.
11781         (LOAD_REGS_6): Likewise.
11782         (ASM_ARGS_0): Likewise.
11783         (ASM_ARGS_1): Likewise.
11784         (ASM_ARGS_2): Likewise.
11785         (ASM_ARGS_3): Likewise.
11786         (ASM_ARGS_4): Likewise.
11787         (ASM_ARGS_5): Likewise.
11788         (ASM_ARGS_6): Likewise.
11789         (LOAD_ARGS_TYPES_1): Likewise.
11790         (LOAD_ARGS_TYPES_2): Likewise.
11791         (LOAD_ARGS_TYPES_3): Likewise.
11792         (LOAD_ARGS_TYPES_4): Likewise.
11793         (LOAD_ARGS_TYPES_5): Likewise.
11794         (LOAD_ARGS_TYPES_6): Likewise.
11795         (LOAD_REGS_TYPES_1): Likewise.
11796         (LOAD_REGS_TYPES_2): Likewise.
11797         (LOAD_REGS_TYPES_3): Likewise.
11798         (LOAD_REGS_TYPES_4): Likewise.
11799         (LOAD_REGS_TYPES_5): Likewise.
11800         (LOAD_REGS_TYPES_6): Likewise.
11801         (TYPEFY): New define.
11802         (ARGIFY): Likewise.
11803         (internal_syscall0): Likewise.
11804         (internal_syscall1): Likewise.
11805         (internal_syscall2): Likewise.
11806         (internal_syscall3): Likewise.
11807         (internal_syscall4): Likewise.
11808         (internal_syscall5): Likewise.
11809         (internal_syscall6): Likewise.
11810         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
11811         (INTERNAL_SYSCALL_NCS): Remove define.
11812         (internal_syscall1): Add define.
11814 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11816         * math/w_remainder_compat.c: Remove duplicate inclusion of
11817         math-svid-compat.h.
11818         * math/w_remainderf_compat.c: Likewise.
11819         * math/w_remainderl_compat.c: Likewise.
11821 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11825 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
11827         [BZ #21684]
11828         * math/tgmath.h (__floating_type): Simplify definitions.
11829         (__real_integer_type): New macro.
11830         (__complex_integer_type): Likewise.
11831         (__expr_is_real): Likewise.
11832         (__tgmath_real_type_sub): Update comment to describe handling of
11833         complex types.
11834         (__tgmath_complex_type_sub): New macro.
11835         (__tgmath_complex_type): Likewise.
11836         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
11837         (__TGMATH_CF128): Use __expr_is_real.
11838         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
11839         __expr_is_real.
11840         (__TGMATH_BINARY_REAL_IMAG): Likewise.
11841         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
11842         * math/gen-tgmath-tests.py (Type.create_type): Create complex
11843         integer types.
11845 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11847         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
11848         macro.
11849         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
11850         alias.
11851         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
11852         Likewise.
11854         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
11855         nanosleep_not_cancel with __nanosleep_nocancel.
11856         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
11857         (__nanosleep_nocancel): New macro.
11858         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
11859         function.
11860         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
11861         macro.
11862         (__nanosleep_nocancel): New prototype.
11864         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
11865         pause_not_cancel with __pause_nocancel.
11866         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
11867         (__pause_nocancel): New macro.
11868         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
11869         macro.
11870         (__pause_nocancel): New prototype.
11871         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
11873 2017-08-22  Martin Sebor  <msebor@redhat.com>
11875         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
11876         to return a pointer to the same type as the target function.
11878 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
11880         [BZ #18822]
11881         [BZ #21986]
11882         * include/printf.h (__printf_fphex): Add attribute_hidden.
11883         (__guess_grouping): New prototype.
11884         * stdio-common/printf_fp.c (__guess_grouping): Removed.
11885         * stdio-common/reg-printf.c (__register_printf_specifier): Add
11886         libc_hidden_proto and libc_hidden_def.
11887         * stdlib/strfmon_l.c (__guess_grouping): Removed.
11888         (__vstrfmon_l): Remove the third argument passed to
11889         __guess_grouping.
11891 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11893         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
11894         definition for issignaling that does not rely on __MATH_TG,
11895         since __MATH_TG uses __builtin_types_compatible_p, which is only
11896         available in C mode.
11897         (CFLAGS-test-math-issignaling.cc): New variable.
11898         * math/Makefile [CXX] (tests): Add test-math-issignaling.
11899         * math/test-math-issignaling.cc: New test for C++ implementation
11900         of type-generic issignaling.
11901         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
11902         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
11903         options of test-math-issignaling on powerpc64le.
11905 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
11907         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
11908         building libc.a.
11909         (hidden_proto): Likewise.
11910         (hidden_tls_proto): Likewise.
11911         (__hidden_proto): Likewise.
11913 2017-08-22  Florian Weimer  <fweimer@redhat.com>
11915         math: Statically link tests of internal functionality.
11916         * math/Makefile (tests): Remove atest-exp, atest-sincos,
11917         atest-exp2.
11918         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
11919         (gmp-objs): Remove assignment.
11920         (atest-exp, atest-sincos, atest-exp2): Remove targets.
11922 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
11924         [BZ #21987]
11925         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
11926         and copy to ...
11927         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
11928         ... here.
11929         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
11930         ... and here.
11932         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
11933         variable definitions above inclusion of ../Rules.
11935 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
11937         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
11938         case calling __builtin_unreachable.
11940 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11942         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
11943         __waitpid_nocancel.
11944         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
11945         (__waitpid_nocancel): New macro.
11946         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
11947         macro.
11948         (__waitpid_nocancel): Replace macro with a function.
11949         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
11950         function.
11952         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
11953         __fcntl_nocancel.
11954         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
11955         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
11957         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
11958         __writev_nocancel_nostatus.
11959         (write_call_graph): Likewise.
11960         (write_bb_counts): Likewise.
11961         * resolv/herror.c (herror): Likewise.
11962         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
11963         macro.
11964         (__writev_nocancel_nostatus): New macro.
11965         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
11966         Remove macro.
11967         (__writev_nocancel_nostatus): New function.
11969 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
11971         Revert:
11972         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11974         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
11975         building libc.a.
11976         (hidden_proto): Likewise.
11977         (hidden_tls_proto): Likewise.
11978         (__hidden_proto): Likewise.
11980         [BZ #21973]
11981         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
11982         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
11983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
11984         Likewise.
11985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
11986         Likewise.
11987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
11988         Likewise.
11989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
11990         Likewise.
11991         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
11992         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
11993         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
11994         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
11995         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11996         GLIBC_2.0 sqrtl symbol.
11998         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
11999         [__USE_MISC] (_LIB_VERSION): Likewise.
12000         [__USE_MISC] (struct exception): Likewise.
12001         [__USE_MISC] (matherr): Likewise.
12002         [__USE_MISC] (DOMAIN): Likewise.
12003         [__USE_MISC] (SING): Likewise.
12004         [__USE_MISC] (OVERFLOW): Likewise.
12005         [__USE_MISC] (UNDERFLOW): Likewise.
12006         [__USE_MISC] (TLOSS): Likewise.
12007         [__USE_MISC] (PLOSS): Likewise.
12008         [__USE_MISC] (HUGE): Likewise.
12009         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
12010         * math/math-svid-compat.h: New file.
12011         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
12012         and matherrl.
12013         * include/math.h [!_ISOMAC] (__matherr): Remove.
12014         * manual/arith.texi (FP Exceptions): Do not document matherr.
12015         * math/Makefile (tests): Change test-matherr to test-matherr-3.
12016         (tests-internal): New variable.
12017         (install-lib): Do not add libieee.a.
12018         (non-lib.a): Likewise.
12019         (extra-objs): Do not add libieee.a and ieee-math.o.
12020         (CPPFLAGS-s_lib_version.c): Remove variable.
12021         ($(objpfx)libieee.a): Remove rule.
12022         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
12023         * math/ieee-math.c: Remove.
12024         * math/libm-test-support.c (matherr): Remove.
12025         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
12026         and license notices.  Include <math-svid-compat.h> and
12027         <shlib-compat.h>.
12028         (matherr): Undefine as macro.  Use compat_symbol_reference.
12029         (_LIB_VERSION): Likewise.
12030         * math/test-matherr-2.c: New file.
12031         * math/test-matherr-3.c: Likewise.
12032         * sysdeps/generic/math_private.h (__kernel_standard): Remove
12033         declaration.
12034         (__kernel_standard_f): Likewise.
12035         (__kernel_standard_l): Likewise.
12036         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
12037         <math_private.h>.  Include <math-svid-compat.h>.
12038         (_LIB_VERSION): Undefine as macro.
12039         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
12040         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
12041         [LIBM_SVID_COMPAT], use compat_symbol.
12042         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
12043         <math_private.h>.  Include <math-svid-compat.h>.
12044         (matherr): Undefine as macro.
12045         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
12046         compat_symbol.
12047         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
12048         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
12049         compat_symbol_reference.
12050         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
12051         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
12052         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
12053         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
12054         (MATHERR_D): Remove declaration.
12055         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
12056         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
12057         [LIBM_BUILD] (pmatherrf): Likewise.
12058         [LIBM_BUILD] (pmatherr): Likewise.
12059         [LIBM_BUILD] (pmatherrl): Likewise.
12060         (DOMAIN): Likewise.
12061         (SING): Likewise.
12062         (OVERFLOW): Likewise.
12063         (UNDERFLOW): Likewise.
12064         (TLOSS): Likewise.
12065         (PLOSS): Likewise.
12066         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
12067         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
12068         compat_symbol.
12069         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
12070         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
12071         compat_symbol.
12072         * math/lgamma-compat.h: Include <math-svid-compat.h>.
12073         * math/w_acos_compat.c: Likewise.
12074         * math/w_acosf_compat.c: Likewise.
12075         * math/w_acosh_compat.c: Likewise.
12076         * math/w_acoshf_compat.c: Likewise.
12077         * math/w_acoshl_compat.c: Likewise.
12078         * math/w_acosl_compat.c: Likewise.
12079         * math/w_asin_compat.c: Likewise.
12080         * math/w_asinf_compat.c: Likewise.
12081         * math/w_asinl_compat.c: Likewise.
12082         * math/w_atan2_compat.c: Likewise.
12083         * math/w_atan2f_compat.c: Likewise.
12084         * math/w_atan2l_compat.c: Likewise.
12085         * math/w_atanh_compat.c: Likewise.
12086         * math/w_atanhf_compat.c: Likewise.
12087         * math/w_atanhl_compat.c: Likewise.
12088         * math/w_cosh_compat.c: Likewise.
12089         * math/w_coshf_compat.c: Likewise.
12090         * math/w_coshl_compat.c: Likewise.
12091         * math/w_exp10_compat.c: Likewise.
12092         * math/w_exp10f_compat.c: Likewise.
12093         * math/w_exp10l_compat.c: Likewise.
12094         * math/w_exp2_compat.c: Likewise.
12095         * math/w_exp2f_compat.c: Likewise.
12096         * math/w_exp2l_compat.c: Likewise.
12097         * math/w_fmod_compat.c: Likewise.
12098         * math/w_fmodf_compat.c: Likewise.
12099         * math/w_fmodl_compat.c: Likewise.
12100         * math/w_hypot_compat.c: Likewise.
12101         * math/w_hypotf_compat.c: Likewise.
12102         * math/w_hypotl_compat.c: Likewise.
12103         * math/w_j0_compat.c: Likewise.
12104         * math/w_j0f_compat.c: Likewise.
12105         * math/w_j0l_compat.c: Likewise.
12106         * math/w_j1_compat.c: Likewise.
12107         * math/w_j1f_compat.c: Likewise.
12108         * math/w_j1l_compat.c: Likewise.
12109         * math/w_jn_compat.c: Likewise.
12110         * math/w_jnf_compat.c: Likewise.
12111         * math/w_jnl_compat.c: Likewise.
12112         * math/w_lgamma_main.c: Likewise.
12113         * math/w_lgamma_r_compat.c: Likewise.
12114         * math/w_lgammaf_main.c: Likewise.
12115         * math/w_lgammaf_r_compat.c: Likewise.
12116         * math/w_lgammal_main.c: Likewise.
12117         * math/w_lgammal_r_compat.c: Likewise.
12118         * math/w_log10_compat.c: Likewise.
12119         * math/w_log10f_compat.c: Likewise.
12120         * math/w_log10l_compat.c: Likewise.
12121         * math/w_log2_compat.c: Likewise.
12122         * math/w_log2f_compat.c: Likewise.
12123         * math/w_log2l_compat.c: Likewise.
12124         * math/w_log_compat.c: Likewise.
12125         * math/w_logf_compat.c: Likewise.
12126         * math/w_logl_compat.c: Likewise.
12127         * math/w_pow_compat.c: Likewise.
12128         * math/w_powf_compat.c: Likewise.
12129         * math/w_powl_compat.c: Likewise.
12130         * math/w_remainder_compat.c: Likewise.
12131         * math/w_remainderf_compat.c: Likewise.
12132         * math/w_remainderl_compat.c: Likewise.
12133         * math/w_scalb_compat.c: Likewise.
12134         * math/w_scalbf_compat.c: Likewise.
12135         * math/w_scalbl_compat.c: Likewise.
12136         * math/w_sinh_compat.c: Likewise.
12137         * math/w_sinhf_compat.c: Likewise.
12138         * math/w_sinhl_compat.c: Likewise.
12139         * math/w_sqrt_compat.c: Likewise.
12140         * math/w_sqrtf_compat.c: Likewise.
12141         * math/w_sqrtl_compat.c: Likewise.
12142         * math/w_tgamma_compat.c: Likewise.
12143         * math/w_tgammaf_compat.c: Likewise.
12144         * math/w_tgammal_compat.c: Likewise.
12145         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
12146         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
12147         * sysdeps/ieee754/k_standard.c: Likewise.
12148         * sysdeps/ieee754/k_standardf.c: Likewise.
12149         * sysdeps/ieee754/k_standardl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
12152         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
12153         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
12154         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
12155         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
12156         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
12157         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
12158         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
12159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
12160         Likewise.
12161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
12162         Likewise.
12163         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
12164         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
12165         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
12166         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
12168 2017-08-21  Florian Weimer  <fweimer@redhat.com>
12170         [BZ #21864]
12171         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
12172         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
12173         Move before inclusion of ../Rules.
12175 2017-08-21  Florian Weimer  <fweimer@redhat.com>
12177         [BZ #21972]
12178         * assert/assert.h (assert): Use static_cast (bool) for C++.
12179         Use the ternary operator in the warning branch for GNU C.
12180         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
12181         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
12182         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
12183         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
12184         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
12186 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12188         [BZ #18822]
12189         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12190         (__syscall_clock_gettime): Add attribute_hidden.
12191         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
12192         (__start_context): Likewise.
12194 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12196         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
12197         building libc.a.
12198         (hidden_proto): Likewise.
12199         (hidden_tls_proto): Likewise.
12200         (__hidden_proto): Likewise.
12202 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12204         * include/libc-symbols.h (attribute_hidden): Enable hidden
12205         visibility in libc.a compiled with PIE.
12207 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12209         [BZ #18822]
12210         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
12211         Add attribute_hidden.
12213 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12215         [BZ #21864]
12216         * Makerules (all-nonlib): Add $(others-extras).
12217         * catgets/Makefile (others-extras): New.
12218         * elf/Makefile (others-extras): Likewise.
12219         * nss/Makefile (others-extras): Likewise.
12221 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12223         [BZ #18822]
12224         * csu/libc-start.c (__libc_multiple_libcs): Removed.
12225         * elf/dl-open.c: Include <libc-internal.h>.
12226         (__libc_multiple_libcs): Removed.
12227         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
12228         <hp-timing.h>.
12229         * include/libc-internal.h (__libc_multiple_libcs): New.
12230         * misc/sbrk.c: Include <libc-internal.h>.
12231         (__libc_multiple_libcs): Removed.
12233 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12235         [BZ #18822]
12236         * grp/initgroups.c (__nss_group_database): Removed.
12237         (__nss_initgroups_database): Likewise.
12238         * nscd/gai.c (__nss_hosts_database): Likewise.
12239         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
12240         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
12241         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
12242         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
12243         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
12244         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
12245         attribute_hidden.
12246         * nss/nsswitch.c (__nss_database_custom): Define only if
12247         USE_NSCD is defined.
12248         (__nss_configure_lookup): Use __nss_database_custom only if
12249         USE_NSCD is defined.
12250         * nss/nsswitch.h (__nss_database_custom): Declare only if
12251         USE_NSCD is defined.  Add attribute_hidden.
12252         (__nss_setent): Add attribute_hidden.
12253         (__nss_endent): Likewise.
12254         (__nss_getent_r): Likewise.
12255         (__nss_getent): Likewise.
12256         (DEFINE_DATABASE): Declare __nss_##arg##_database.
12258 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12260         [BZ #18822]
12261         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
12262         libc_hidden_proto and libc_hidden_def.
12264 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12266         [BZ #18822]
12267         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
12268         Add libc_hidden_proto.
12269         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
12270         Add libc_hidden_def.
12272 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12274         [BZ #21974]
12275         * gmon/Makefile (routines): Remove bb_init_func and
12276         bb_exit_func.
12277         (elide-routines.os): Removed.
12278         * gmon/bb_exit_func.c: Likewise.
12279         * gmon/bb_init_func.c: Likewise.
12280         * include/sys/gmon.h (__bb): Likewise.
12281         (__bb_init_func): Likewise.
12282         (__bb_exit_func): Likewise.
12283         * sysdeps/alpha/bb_init_func.S: Likewise.
12285 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12287         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
12288         * include/setjmp.h (____longjmp_chk): Here.  Add
12289         attribute_hidden.
12291 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12293         [BZ #18822]
12294         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
12295         attribute_hidden.
12296         (__strspn_sse2): Likewise.
12298 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12300         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
12301         (close_not_cancel_no_status): Likewise.
12302         (__close_nocancel): New macro.
12303         (__close_nocancel_nostatus): Likewise.
12304         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
12305         macro.
12306         (close_not_cancel): Likewise.
12307         (close_not_cancel_no_status): Likewise.
12308         (__close_nocancel): New prototype.
12309         (__close_nocancel_nostatus): New function.
12310         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
12311         * catgets/open_catalog.c (__open_catalog): Replace
12312         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
12313         * gmon/gmon.c (write_gmon): Likewise.
12314         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
12315         * intl/loadmsgcat.c (close): Likewise.
12316         * io/ftw.c (open_dir_stream): Likewise.
12317         (ftw_startup): Likewise.
12318         * libio/fileops.c (_IO_file_open): Likewise.
12319         (_IO_file_close_mmap): Likewise.
12320         (_IO_file_close): Likewise.
12321         * libio/iopopen.c (_IO_dup2): Likewise.
12322         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
12323         * locale/loadlocale.c (_nl_load_locale): Likewise.
12324         * login/utmp_file.c (pututline_file): Likewise.
12325         (endutent_file): Likewise.
12326         * misc/daemon.c (daemon): Likewise.
12327         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12328         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12329         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12330         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
12331         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12332         * nscd/nscd_helper.c (open_socket): Likewise.
12333         (__nscd_open_socket): Likewise.
12334         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12335         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
12336         (__nscd_innetgr): Likewise.
12337         * nss/nss_db/db-open.c (internal_setent): Likewise.
12338         * resolv/res-close.c (__res_iclose): Likewise.
12339         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
12340         * sysdeps/posix/closedir.c (__closedir): Likewise.
12341         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
12342         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12343         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
12344         (opendir_tail): Likewise.
12345         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
12346         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
12347         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
12348         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
12349         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
12350         (gethostid): Likewise.
12351         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
12352         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12353         Likewise.
12354         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
12355         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
12356         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
12357         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
12358         Likewise.
12359         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
12360         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
12361         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
12362         Likewise.
12363         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
12364         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12365         Likewise.
12366         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12367         Likewise.
12368         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
12369         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
12370         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12371         __close_nocancel.
12373         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
12374         (openat_not_cancel_3): Likewise.
12375         (openat64_not_cancel_3): Likewise).
12376         (openat_not_cancel_3): Likewise).
12377         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
12378         macro.
12379         (openat_not_cancel_3): Likewise.
12380         (openat64_not_cancel): Likewise.
12381         (openat64_not_cancel_3): Likewise.
12382         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
12383         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
12384         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
12385         __open{64}_nocancel.
12386         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
12387         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12388         * sysdeps/posix/opendir.c (__opendirat): Likewise.
12390 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12392         [BZ #18822]
12393         * include/argz.h (__argz_create_sep): New function prototype.
12394         (__argz_append): Likewise.
12395         (__argz_add): Likewise.
12396         (__argz_add_sep): Likewise.
12397         (__argz_delete): Likewise.
12398         (__argz_insert): Likewise.
12399         (__argz_replace): Likewise.
12400         * string/argz.h (__argz_create_sep): Removed.
12401         (__argz_append): Likewise.
12402         (__argz_add): Likewise.
12403         (__argz_add_sep): Likewise.
12404         (__argz_delete): Likewise.
12405         (__argz_insert): Likewise.
12406         (__argz_replace): Likewise.
12408 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12410         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
12411         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
12412         (GNU_PROPERTY_STACK_SIZE): Likewie.
12413         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
12414         (GNU_PROPERTY_LOPROC): Likewise.
12415         (GNU_PROPERTY_HIPROC): Likewise.
12416         (GNU_PROPERTY_LOUSER): Likewise.
12417         (GNU_PROPERTY_HIUSER): Likewise.
12418         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
12419         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
12420         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
12421         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
12422         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
12423         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
12424         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
12425         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
12426         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
12427         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
12428         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
12429         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
12430         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
12431         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
12432         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
12433         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
12434         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
12435         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
12436         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
12437         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
12438         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
12439         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
12440         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
12442 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12444         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
12445         in C++ mode.
12447 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12449         [BZ #21930]
12450         * math/math.h (isinf): Check if in C or C++ mode before using
12451         __builtin_types_compatible_p, since this is a C mode feature.
12453 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12455         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
12456         (__write_nocancel): New macro.
12457         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
12458         Rewrite as a function prototype.
12459         (write_not_cancel): Remove macro.
12460         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
12461         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
12462         (write_gmon): Likewise.
12463         * libio/fileops.c (_IO_new_file_write): Likewise.
12464         * login/utmp_file.c (pututline_file): Likewise.
12465         (updwtmp_file): Likewise.
12466         * stdio-common/psiginfo.c (psiginfo): Likewise.
12467         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
12468         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
12469         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
12470         Likewise.
12471         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12472         Likewise.
12474         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
12475         (__read_nocancel): New macro.
12476         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12477         __read_nocancel.
12478         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
12479         macro.
12480         (__read_nocancel): New prototype.
12481         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
12482         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
12483         with __read_nocancel.
12484         * intl/loadmsgcat.c (read): Likewise.
12485         * libio/fileops.c (_IO_file_read): Likewise.
12486         * locale/loadlocale.c (_nl_load_locale): Likewise.
12487         * login/utmp_file.c (getutent_r_file): Likewise.
12488         (internal_getut_r): Likewise.
12489         (getutline_r_file): Likewise.
12490         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
12491         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
12492         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
12493         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12494         Likewise.
12495         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
12496         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
12497         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
12498         Likewise.
12499         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
12500         Likewise.
12501         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
12502         Likewise.
12503         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12504         Likewise.
12505         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
12507 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12509         [BZ #21966]
12510         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
12511         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
12512         usable.
12514 2017-08-17  DJ Delorie  <dj@redhat.com>
12516         * bug17079.c: Update to new test harness.
12517         * test-digits-dots.c: Likewise.
12518         * test-netdb.c: Likewise.
12519         * tst-field.c: Likewise.
12520         * tst-nss-getpwent.c: Likewise.
12521         * tst-nss-static.c: Likewise.
12522         * tst-nss-test1.c: Likewise.
12523         * tst-nss-test2.c: Likewise.
12524         * tst-nss-test3.c: Likewise.
12525         * tst-nss-test4.c: Likewise.
12526         * tst-nss-test5.c: Likewise.
12528 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12530         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
12531         (open_not_cancel_2): Likewise.
12532         (open_nocancel): New macro.
12533         (open64_nocancel): Likewise.
12534         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
12535         (open_not_cancel_2): Likewise.
12536         (__open_nocancel): New prototype.
12537         (__open64_nocancel): Likewise.
12538         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12539         __open_nocancel.
12540         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
12541         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
12542         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
12543         with __open_nocancel.
12544         * csu/check_fds.c (check_one_fd): Likewise.
12545         * gmon/gmon.c (write_gmon): Likewise.
12546         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
12547         * intl/loadmsgcat.c (open): Likewise.
12548         * libio/fileops.c (_IO_file_open): Likewise.
12549         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
12550         * locale/loadlocale.c (_nl_load_locale): Likewise.
12551         * login/utmp_file.c (setutent_file): Likewise.
12552         * misc/daemon.c (daemon): Likewise.
12553         * nss/nss_db/db-open.c (internal_setent): Likewise.
12554         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
12555         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
12556         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
12557         (__opendir): Likewise.
12558         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
12559         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
12560         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
12561         (gethostid): Likewise.
12562         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
12563         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12564         Likewise.
12565         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
12566         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
12567         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
12568         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
12569         Likewise.
12570         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
12571         Likewise.
12572         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
12573         Likewise.
12574         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
12575         Likewise.
12576         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
12577         Likewise.
12578         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
12579         Likewise.
12580         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
12581         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
12583 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
12585         * benchtests/bench-skeleton.c (main): Add support for
12586         latency benchmarking.
12587         * benchtests/scripts/bench.py: Add support for latency benchmarking.
12589 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
12591         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
12592         the startup object.
12594 2017-08-17  Florian Weimer  <fweimer@redhat.com>
12596         * include/sys/socket.h (__opensock): Remove internal_function.
12597         * socket/opensock.c (__opensock): Likewise.
12598         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
12600 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
12602         [BZ #21944]
12603         * signal/bits/types/__sigval_t.h: New file.
12604         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
12605         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
12606         and define sigval_t using __sigval_t.
12607         * include/bits/types/__sigval_t.h: New file.
12608         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
12609         instead of <bits/types/__sigval_t.h>.
12610         (struct sigevent): Use __sigval_t instead of sigval_t.
12611         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
12612         instead of <bits/types/__sigval_t.h>.
12613         (siginfo_t): Use __sigval_t instead of sigval_t.
12614         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
12615         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
12616         (struct sigevent): Use __sigval_t instead of sigval_t.
12617         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
12618         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
12619         (siginfo_t): Use __sigval_t instead of sigval_t.
12620         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
12622 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
12624         * NEWS: Remove "[Add new features here]" for 2.27.
12626 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
12628         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
12629         libc.so.
12631 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
12633         * NEWS: Mention x86-64 FMA optimization.
12635 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
12637         [BZ #21912]
12638         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12639         Add e_expf-fma.
12640         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
12641         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
12642         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
12644 2017-08-16  Andreas Schwab  <schwab@suse.de>
12646         [BZ #16750]
12647         CVE-2009-5064
12648         * elf/ldd.bash.in: Never run file directly.
12650 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
12652         [BZ #21955]
12653         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
12654         (L(SP_INF_0)): Likewise.
12656 2017-08-15  Florian Weimer  <fweimer@redhat.com>
12658         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
12659         run-built-tests.
12661 2017-08-15  Florian Weimer  <fweimer@redhat.com>
12663         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
12664         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
12665         BROKEN_THREAD_SIGNALS code.
12666         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
12667         request_list): Remove caller_pid member used for
12668         BROKEN_THREAD_SIGNALS.
12669         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
12670         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
12671         Remove BROKEN_THREAD_SIGNALS support.
12672         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
12673         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
12675 2017-08-15  Florian Weimer  <fweimer@redhat.com>
12677         * gmon/Makefile (tests): Add tst-gmon.
12678         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
12679         Set.
12680         (tests-special): Add tst-gmon-prof.out.
12681         (tst-gmon.out): Depend on clean-tst-gmon-data.
12682         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
12683         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
12684         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
12685         startup object.
12686         * aclocal.m4 (GPROF): Set and substitute.
12687         * config.amke.in (GPROF): Set.
12688         * configure: Regenerate.
12690 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
12692         * elf/elf.h A (NT_PPC_TAR): New macro.
12693         (NT_PPC_PPR): Likewise.
12694         (NT_PPC_DSCR): Likewise.
12695         (NT_PPC_EBB): Likewise.
12696         (NT_PPC_PMU): Likewise.
12697         (NT_PPC_TM_CGPR): Likewise.
12698         (NT_PPC_TM_CFPR): Likewise.
12699         (NT_PPC_TM_CVMX): Likewise.
12700         (NT_PPC_TM_CVSX): Likewise.
12701         (NT_PPC_TM_SPR): Likewise.
12702         (NT_PPC_TM_CTAR): Likewise.
12703         (NT_PPC_TM_CPPR): Likewise.
12704         (NT_PPC_TM_CDSCR): Likewise.
12706 2017-08-15  Florian Weimer  <fweimer@redhat.com>
12708         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
12709         regparm (2) instead of internal_function.
12710         (_MCOUNT_DECL): Adjust.
12712 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
12714         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
12715         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12717 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
12719         * conform/data/sys/wait.h-data (si_value): Do not expect for
12720         XPG42.
12722 2017-08-14  Florian Weimer  <fweimer@redhat.com>
12724         [BZ #21962]
12725         NSS: Create stubs for accidentally exported lookup functions.
12726         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
12727         Remove declaration.
12728         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
12729         (ether_hostton): Call __nss_ethers_lookup2 instead.
12730         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
12731         (ether_ntohost): Call __nss_ethers_lookup2 instead.
12732         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
12733         (setup): Call __nss_netgroup_lookup2 instead.
12734         * nss/Makefile (routines): Add compat-lookup.
12735         * nss/Versions (GLIBC_2.27): Add symbol version.
12736         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
12737         (DB_COMPAT_FCT): Remove.
12738         * nss/compat-lookup.c: New file.
12739         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
12740         from databases.def.
12741         * nss/service-lookup.c (NO_COMPAT): Remove definition.
12742         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
12743         (netname2user): Call __nss_publickey_lookup2 instead.
12744         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
12745         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
12746         instead.
12748 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12749             Sergei Trofimovich  <slyfox@inbox.ru>
12751         [BZ #21908]
12752         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
12753         Rename to MMAP2_PAGE_UNIT.
12754         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
12755         __OFF_T_MATCHES_OFF64_T is not defined.
12756         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
12757         uint64_t.
12758         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
12759         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
12761 2017-08-14  Florian Weimer  <fweimer@redhat.com>
12763         i386: Do not set internal_function.
12764         * config.h.in (USE_REGPARMS, internal_function): Remove.
12765         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
12766         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
12768 2017-08-14  Florian Weimer  <fweimer@redhat.com>
12770         * elf/dl-init.c (_dl_init): Remove internal_function.
12771         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
12772         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
12774 2017-08-14  Florian Weimer  <fweimer@redhat.com>
12776         * elf/rtld.c (_dl_start): Remove internal_function.
12777         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
12778         _dl_start.
12780 2017-08-14  Florian Weimer  <fweimer@redhat.com>
12782         * elf/dl-fini.c (_dl_fini): Remove internal_function
12783         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
12785 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
12787         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
12788         (bit_cpu_SHSTK): Likewise.
12789         (index_cpu_IBT): Likewise.
12790         (index_cpu_SHSTK): Likewise.
12791         (reg_IBT): Likewise.
12792         (reg_SHSTK): Likewise.
12793         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
12794         Handle index_cpu_IBT and index_cpu_SHSTK.
12796 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
12798         [BZ #19982]
12799         * po/fr.po: Fix spelling mistake.
12801 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12803         * elf/dl-addr.c (_dl_addr): Remove internal_function.
12804         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
12805         (_dl_catch_error, _dl_receive_error): Likewise.
12806         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
12807         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
12808         (_dl_deallocate_tls): Likewise.
12809         * include/dlfcn.h (_dl_addr): Likewise.
12810         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
12811         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
12812         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
12813         Likewise.
12815 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12817         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
12818         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
12819         internal_function.
12820         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
12822 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12824         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
12825         internal_function.
12826         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
12827         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
12828         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
12829         internal_function from _dl_make_stack_executable_hook member.
12830         (_dl_make_stack_executable): Remove internal_function.
12831         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
12832         Likewise.
12833         * sysdeps/unix/sysv/linux/dl-execstack.c
12834         (_dl_make_stack_executable): Likewise.
12836 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12838         * sysdeps/unix/sysv/linux/netlinkaccess.h
12839         (__netlink_assert_response): Remove internal_function.
12840         * sysdeps/unix/sysv/linux/netlink_assert_response.c
12841         (__netlink_assert_response): Likewise.
12843 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12845         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
12846         internal_function.
12847         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
12849 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12851         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
12852         internal_function.
12853         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
12854         * inet/netgroup.h (__internal_setnetgrent)
12855         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
12856         * inet/getnetgrent_r.c (__internal_setnetgrent)
12857         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
12858         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
12859         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
12860         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
12861         * nss/nsswitch.h (db_lookup_function): Likewise.
12863 2017-08-13  Florian Weimer  <fweimer@redhat.com>
12865         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
12866         Remove internal_function.
12867         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
12868         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
12869         message argument on the stack.
12870         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
12871         Likeweise.
12873 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
12875         Adapt test case data to the changes in the thousands
12876         separators.
12878         [BZ #20756]
12879         * localedata/tst-langinfo.sh: Adapt test case data.
12880         * stdlib/tst-strfmon_l.c: Likewise.
12881         * stdlib/tst-strtod4.c: Likewise.
12882         * stdlib/tst-strtod5i.c: Likewise.
12884 2017-08-11  Florian Weimer  <fweimer@redhat.com>
12886         [BZ #21242]
12887         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
12888         Suppress pedantic warning resulting from statement expression.
12889         (__ASSERT_FUNCTION): Add missing __extension__.
12891 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12893         * benchtests/bench-memmove-large.c: Print output in JSON
12894         format.
12895         * benchtests/bench-memmove.c: Likewise.
12897         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
12898         * benchtests/bench-memchr.c (do_one_test): Likewise.
12899         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
12900         * benchtests/bench-memcpy.c (do_one_test): Likewise.
12901         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
12902         * benchtests/bench-memmove.c (do_one_test): Likewise.
12903         * benchtests/bench-memset-large.c (do_one_test): Likewise.
12904         * benchtests/bench-memset.c (do_one_test): Likewise.
12905         * benchtests/bench-string.h (test_init): Remove memsets.
12907 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
12909         * manual/lang.texi
12910         (Computing the Width of an Integer Data Type): Rename section to
12911         "Width of an Integer Type".  Remove inaccurate statement regarding
12912         lack of C language facilities for determining width of integer
12913         types, and reorder content to improve flow and context of
12914         discussion.
12916 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
12918         * lang.texi (va_copy): Change standard from ISO to C99.
12919         (__va_copy): Add standard and header annotation.
12920         Update description for clarity of origins and current use.
12922 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12924         [BZ #21941]
12925         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
12926         xssqrtqp requires operands to be in Vector Registers
12927         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
12928         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
12929         (__ieee754_sqrtf128): Likewise.
12931 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
12933         * sysdeps/aarch64/memcmp.S (memcmp):
12934         Rewrite of optimized memcmp.
12936 2017-08-10  Florian Weimer  <fweimer@redhat.com>
12938         Introduce ld.so exceptions.
12939         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
12940         (_dl_exception_create, _dl_exception_create_format)
12941         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
12942         (_dl_catch_exception): Declare.
12943         (_dl_catch_error): Update comment.
12944         * elf/dl-error-skeleton.c (struct catch): Replace objname,
12945         errstring, malloced members with exception member.
12946         (_dl_out_of_memory): Remove.
12947         (fatal_error): New function, extracted from _dl_signal_error.
12948         (_dl_signal_exception, _dl_signal_cexception): New functions.
12949         (_dl_signal_error): Call _dl_exception_create to allocate an
12950         exception object.
12951         (_dl_catch_exception): New function, based on _dl_catch_error.
12952         (_dl_catch_error): Implement using _dl_catch_exception.
12953         * elf/dl-exception.c: New file.
12954         * elf/Makefile (dl-routines): Add dl-exception.
12955         (elide-routines.os): Likewise.
12956         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
12957         _dl_exception_create_format, _dl_exception_free.
12958         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
12959         _dl_signal_exception.
12960         * elf/dl-lookup.c (make_string): Remove.
12961         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
12962         _dl_signal_cexception, _dl_exception_free.
12963         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
12964         _dl_signal_exception.
12965         * elf/dl-sym.c (do_sym): Likewise.
12966         * elf/dl-version.c (make_string): Remove.
12967         (match_symbol): Use _dl_exception_create_format,
12968         _dl_signal_cexception, _dl_exception_free.
12969         (_dl_check_map_versions): Likewise.
12970         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
12971         _dl_catch_exception.
12972         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
12973         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
12974         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
12975         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
12976         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
12977         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
12978         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
12979         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
12980         Likewise.
12981         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
12982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
12983         (ld.so): Likewise.
12984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
12985         (ld.so): Likewise.
12986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
12987         Likewise.
12988         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
12989         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
12990         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
12991         Likewise.
12992         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
12993         Likewise.
12994         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
12996 2017-08-10  Florian Weimer  <fweimer@redhat.com>
12998         * inet/net-internal.h (__inet6_scopeid_pton): Remove
12999         attribute_hidden, internal_function.
13000         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
13001         internal_function.
13003 2017-08-10  Florian Weimer  <fweimer@redhat.com>
13005         * malloc/malloc.c (get_max_fast): Reimplement as an inline
13006         function which calls __builtin_unreachable.
13008 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
13010         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
13011         Indian monetary formatting
13012         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
13013         test cases.
13015 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
13017         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
13018         Fix typo in comment.
13020         [BZ #21928]
13021         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
13022         PTRACE_SEIZE_DEVEL): Remove.
13023         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
13024         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
13025         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
13026         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
13027         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
13029 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
13031         * posix/bits/types.h (__qaddr_t): Remove.
13033         [BZ #21457]
13034         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
13035         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13036         __glibc_reserved1.
13037         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
13038         (ucontext_t): Use __ctx with uc_flags.
13039         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
13040         (__ctxt): Likewise.
13041         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13042         __glibc_reserved1.
13043         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
13044         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13045         __glibc_reserved1.
13046         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
13047         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13048         __glibc_reserved1.
13049         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
13050         macro.
13051         (ucontext_t): Use __ctx with uc_flags.
13052         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
13053         (ucontext_t): Use __ctx with uc_flags.
13054         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
13055         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
13056         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
13057         (ucontext_t): Use __ctx with uc_flags.
13058         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
13059         undefine further down.
13060         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
13061         __glibc_reserved1.
13062         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
13063         undefine further down.
13064         (ucontext_t): Use __ctx with uc_flags.
13065         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
13066         undefine further down.
13067         (ucontext_t): Use __ctx with uc_flags.
13068         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
13069         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
13070         Rename uc_pad to __glibc_reserved1.
13071         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
13072         undefine further down.
13073         (ucontext_t): Use __ctx with uc_flags.
13074         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
13075         further down.
13076         (ucontext_t): Use __ctx with uc_flags.
13077         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
13078         __ctx with uc_flags.
13079         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
13080         (ucontext_t): Use __ctx with uc_flags.
13081         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
13082         __ctx with uc_flags.
13084 2017-08-09  Florian Weimer  <fweimer@redhat.com>
13086         [BZ #21932]
13087         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
13088         before early return.
13090 2017-08-09  Andreas Schwab  <schwab@suse.de>
13092         [BZ #21041]
13093         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
13094         renamed alias.
13096         [BZ #21041]
13097         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
13098         tst-compat-forwarder.
13099         (modules-names): Add tst-compat-forwarder-mod.
13100         ($(objpfx)tst-compat-forwarder): Depend on
13101         $(objpfx)tst-compat-forwarder-mod.so.
13102         * nptl/tst-compat-forwarder.c: New file.
13103         * nptl/tst-compat-forwarder-mod.c: New file.
13105 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13107         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
13108         comments.
13110         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
13111         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13112         memcpy_falkor.
13113         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
13114         Bump.
13115         (__libc_ifunc_impl_list): Add __memcpy_falkor.
13116         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
13117         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
13118         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
13119         Add falkor.
13120         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
13121         New macro.
13123 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13125         [BZ #759]
13126         * manual/setjmp.texi (getcontex): Document uc_stack value
13127         compatibility differences.
13129 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
13131         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
13132         (old_malloc_hook): Likewise.
13133         (old_memalign_hook): Likewise.
13134         (old_realloc_hook): Likewise.
13135         (struct hdr): Likewise.
13136         (flood): Likewise.
13137         (freehook): Likewise.
13138         (mallochook): Likewise.
13139         (memalignhook): Likewise.
13140         (reallochook): Likewise.
13141         (mprobe): Likewise.
13142         * malloc/mtrace.c (mallwatch): Likewise.
13143         (tr_old_free_hook): Likewise.
13144         (tr_old_malloc_hook): Likewise.
13145         (tr_old_realloc_hook): Likewise.
13146         (tr_old_memalign_hook): Likewise.
13147         (tr_where): Likewise.
13148         (lock_and_info): Likewise.
13149         (tr_freehook): Likewise.
13150         (tr_mallochook): Likewise.
13151         (tr_reallochook): Likewise.
13152         (tr_memalignhook): Likewise.
13153         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
13154         * misc/mmap.c (__mmap): Likewise.
13155         * misc/mmap64.c (__mmap64): Likewise.
13156         * misc/mprotect.c (__mprotect): Likewise.
13157         * misc/msync.c (msync): Likewise.
13158         * misc/munmap.c (__munmap): Likewise.
13159         * posix/posix_madvise.c (posix_madvise): Likewise.
13160         * socket/send.c (__send): Likewise.
13161         * socket/sendto.c (__sendto): Likewise.
13162         * socket/setsockopt.c (__setsockopt): Likewise.
13163         * string/memcmp.c (__ptr_t): Remove macro.
13164         (MEMCMP): Use void * instead of ptr_t.
13165         * string/memrchr.c (__ptr_t): Remove macro.
13166         (__memrchr): Use void * instead of ptr_t.
13167         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
13168         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
13169         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
13170         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
13171         * sysdeps/mach/msync.c (msync): Likewise.
13172         * sysdeps/mach/munmap.c (__munmap): Likewise.
13173         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
13174         Likewise.
13175         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
13176         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
13177         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
13178         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
13179         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
13180         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
13181         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
13182         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
13183         Likewise.
13184         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
13185         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
13186         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
13187         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
13188         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
13189         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
13190         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
13191         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
13192         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
13193         Likewise.
13194         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
13195         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
13196         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
13197         (MEMCMP): Use void * instead of ptr_t.
13198         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
13199         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
13201 2017-08-08  Florian Weimer  <fweimer@redhat.com>
13203         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
13204         return statement.
13206 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
13208         [BZ #21913]
13209         * csu/libc-tls.c: Include <startup.h> first.
13210         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
13211         * elf/dl-tunables.c: Include <startup.h> first.
13212         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
13213         * sysdeps/generic/startup.h: New file.
13214         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
13215         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
13216         (I386_USE_SYSENTER): New.  Defined to 0.
13218 2017-08-08  Andreas Schwab  <schwab@suse.de>
13220         [BZ #21041]
13221         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
13222         * nptl/pt-system.c (system): Likewise.
13224 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13226         [BZ #21780]
13227         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
13228         EOPNOTSUPP.
13229         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
13230         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
13231         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
13232         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
13233         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
13234         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
13235         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
13237 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
13239         [BZ #21899]
13240         * bits/sigaction.h (struct sigaction): Define sa_handler and
13241         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
13242         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13243         [__USE_XOPEN_EXTENDED].
13244         (SA_RESTART): Likewise.
13245         (SA_NODEFER): Likewise.
13246         (SA_RESETHAND): Likewise.
13247         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
13248         (struct sigaction): Define sa_handler and sa_sigaction using union
13249         also for [__USE_XOPEN_EXTENDED].
13250         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13251         [__USE_XOPEN_EXTENDED].
13252         (SA_RESTART): Likewise.
13253         (SA_NODEFER): Likewise.
13254         (SA_RESETHAND): Likewise.
13255         * sysdeps/unix/sysv/linux/bits/sigaction.h
13256         (struct sigaction): Define sa_handler and sa_sigaction using union
13257         also for [__USE_XOPEN_EXTENDED].
13258         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13259         [__USE_XOPEN_EXTENDED].
13260         (SA_RESTART): Likewise.
13261         (SA_NODEFER): Likewise.
13262         (SA_RESETHAND): Likewise.
13263         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
13264         (struct sigaction): Define sa_handler and sa_sigaction using union
13265         also for [__USE_XOPEN_EXTENDED].
13266         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13267         [__USE_XOPEN_EXTENDED].
13268         (SA_RESTART): Likewise.
13269         (SA_NODEFER): Likewise.
13270         (SA_RESETHAND): Likewise.
13271         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
13272         (struct sigaction): Define sa_handler and sa_sigaction using union
13273         also for [__USE_XOPEN_EXTENDED].
13274         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13275         [__USE_XOPEN_EXTENDED].
13276         (SA_RESTART): Likewise.
13277         (SA_NODEFER): Likewise.
13278         (SA_RESETHAND): Likewise.
13279         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
13280         (struct sigaction): Define sa_handler and sa_sigaction using union
13281         also for [__USE_XOPEN_EXTENDED].
13282         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13283         [__USE_XOPEN_EXTENDED].
13284         (SA_RESTART): Likewise.
13285         (SA_NODEFER): Likewise.
13286         (SA_RESETHAND): Likewise.
13287         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
13288         (struct sigaction): Define sa_handler and sa_sigaction using union
13289         also for [__USE_XOPEN_EXTENDED].
13290         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13291         [__USE_XOPEN_EXTENDED].
13292         (SA_RESTART): Likewise.
13293         (SA_NODEFER): Likewise.
13294         (SA_RESETHAND): Likewise.
13295         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
13296         (struct sigaction): Define sa_handler and sa_sigaction using union
13297         also for [__USE_XOPEN_EXTENDED].
13298         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13299         [__USE_XOPEN_EXTENDED].
13300         (SA_RESTART): Likewise.
13301         (SA_NODEFER): Likewise.  Define directly rather than as alias.
13302         (SA_RESETHAND): Likewise.
13303         (SA_INTERRUPT): Define only for [__USE_MISC].
13304         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
13305         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
13306         [__USE_MISC].
13307         (SA_STACK): Define only for [__USE_MISC].
13308         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
13309         (struct sigaction): Define sa_handler and sa_sigaction using union
13310         also for [__USE_XOPEN_EXTENDED].
13311         (SA_ONSTACK): Change [__USE_UNIX98] condition to
13312         [__USE_XOPEN_EXTENDED].
13313         (SA_RESTART): Likewise.
13314         (SA_NODEFER): Likewise.
13315         (SA_RESETHAND): Likewise.
13316         (SA_NOPTRACE): Define only for [__USE_MISC].
13318         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
13319         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
13320         (struct catalog_info): Likewise.
13321         * inet/htontest.c (lo): Likewise.
13322         (foo): Likewise.
13323         * inet/inet_lnaof.c (inet_lnaof): Likewise.
13324         * inet/inet_net.c (inet_network): Likewise.
13325         * inet/inet_netof.c (inet_netof): Likewise.
13326         * inet/rcmd.c (__ivaliduser): Likewise.
13327         (iruserok): Likewise.
13328         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
13329         * locale/programs/locale-spec.c (locale_special): Likewise.
13330         * nis/nis_findserv.c (struct findserv_req): Likewise.
13331         (__nis_findfastest_with_timeout): Likewise.
13332         * nss/test-netdb.c (test_network): Likewise.
13333         * resolv/inet_neta.c (inet_neta): Likewise.
13334         * resolv/ns_date.c (ns_datetosecs): Likewise.
13335         (SECS_PER_DAY): Likewise.
13336         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
13337         Likewise.
13338         * resolv/res_comp.c (__putlong): Likewise.
13339         (__putshort): Likewise.
13340         (_getlong): Likewise.
13341         (_getshort): Likewise.
13342         * resolv/res_debug.c (p_time): Likewise.
13343         (precsize_ntoa): Likewise.
13344         (precsize_aton): Likewise.
13345         (latlon2ul): Likewise.
13346         (loc_aton): Likewise.
13347         (loc_ntoa): Likewise.
13348         * resolv/res_hconf.c (struct netaddr): Likewise.
13349         (_res_hconf_reorder_addrs): Likewise.
13350         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
13351         (clnttcp_control): Likewise.
13352         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13353         (clntudp_control): Likewise.
13354         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
13355         (clntunix_control): Likewise.
13356         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
13357         * sunrpc/rpc/auth.h (union des_block): Likewise.
13358         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
13359         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
13360         (xdrrec_create): Likewise.
13361         (xdrrec_endofrecord): Likewise.
13362         (flush_out): Likewise.
13363         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
13364         (xdrstdio_putlong): Likewise.
13365         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
13366         Likewise.
13368         * misc/sys/cdefs.h (__long_double_t): Remove.
13369         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
13370         instead of __long_double_t,
13371         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
13373 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13375         * benchtests/scripts/compare_strings.py: Avoid display error when
13376         running on a text terminal.
13378         * benchtests/scripts/compare_strings.py (main): Add an
13379         optional -base option.
13380         (process_results): New argument base_func.
13382         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
13383         hardcoding memcpy.
13384         * benchtests/bench-memcpy-large.c (test_name): Likewise.
13385         * benchtests/bench-memcpy-random.c (test_name): Likewise.
13387 2017-08-07  Andreas Schwab  <schwab@suse.de>
13389         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
13390         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
13391         * intl/Makefile ($(objpfx)tst-gettext.out)
13392         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
13393         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
13394         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
13395         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
13396         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
13397         * posix/Makefile ($(objpfx)globtest.out)
13398         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
13399         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
13400         ($(objpfx)tst-printf.out): Likewise.
13401         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
13402         ($(objpfx)tst-setcontext3.out): Likewise.
13404 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
13406         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13407         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
13408         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
13409         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
13410         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
13411         and mptan-fma.
13412         (CFLAGS-doasin-fma.c): New.
13413         (CFLAGS-dosincos-fma.c): Likewise.
13414         (CFLAGS-e_asin-fma.c): Likewise.
13415         (CFLAGS-e_atan2-fma.c): Likewise.
13416         (CFLAGS-e_exp-fma.c): Likewise.
13417         (CFLAGS-e_log-fma.c): Likewise.
13418         (CFLAGS-e_pow-fma.c): Likewise.
13419         (CFLAGS-halfulp-fma.c): Likewise.
13420         (CFLAGS-mpa-fma.c): Likewise.
13421         (CFLAGS-mpatan-fma.c): Likewise.
13422         (CFLAGS-mpatan2-fma.c): Likewise.
13423         (CFLAGS-mpexp-fma.c): Likewise.
13424         (CFLAGS-mplog-fma.c): Likewise.
13425         (CFLAGS-mpsqrt-fma.c): Likewise.
13426         (CFLAGS-mptan-fma.c): Likewise.
13427         (CFLAGS-s_atan-fma.c): Likewise.
13428         (CFLAGS-sincos32-fma.c): Likewise.
13429         (CFLAGS-slowexp-fma.c): Likewise.
13430         (CFLAGS-slowpow-fma.c): Likewise.
13431         (CFLAGS-s_sin-fma.c): Likewise.
13432         (CFLAGS-s_tan-fma.c): Likewise.
13433         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
13434         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
13435         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
13436         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
13437         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
13438         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
13439         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
13440         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
13441         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
13442         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
13443         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
13444         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
13445         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
13446         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
13447         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
13448         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
13449         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
13450         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
13451         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
13452         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
13453         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
13454         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
13455         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
13456         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
13457         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13458         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13459         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13460         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13461         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13462         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13463         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13465 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
13467         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
13468         (min_of_type_f): New macro.
13469         (min_of_type_): Likewise.
13470         (min_of_type_l): Likewise.
13471         (min_of_type_f128): Likewise.
13472         (min_of_type): Define using __MATH_TG and taking an expression
13473         argument.
13474         (math_check_force_underflow): Pass expression instead of type to
13475         min_of_type.
13476         (math_check_force_underflow_nonneg): Likewise.
13478 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13480         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
13481         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
13482         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
13484 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13486         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13487         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
13488         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
13489         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
13490         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
13491         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
13492         memcpy_chk-nonshared, mempcpy_chk-nonshared,
13493         memmove_chk-nonshared and memset_chk-nonshared
13494         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
13495         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
13496         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
13497         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
13498         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
13499         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
13500         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
13501         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
13502         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
13503         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
13504         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
13505         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
13506         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
13507         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
13508         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
13509         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
13510         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
13511         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
13512         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
13513         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
13514         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
13515         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
13516         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
13517         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
13518         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
13519         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
13520         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
13521         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
13522         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
13523         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
13524         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
13525         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
13526         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
13527         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
13528         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
13529         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
13530         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
13531         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
13532         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
13533         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
13534         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
13535         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
13536         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
13537         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
13538         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
13539         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
13540         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
13541         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
13542         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
13543         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
13544         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
13545         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
13546         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
13547         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
13548         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
13549         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
13550         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
13551         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
13552         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
13553         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
13554         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
13555         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
13556         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
13557         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
13558         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
13559         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
13560         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
13561         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
13562         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
13563         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
13564         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
13565         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13566         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13567         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13568         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13569         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13570         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13571         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13572         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13573         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13574         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13575         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13576         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13577         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13578         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
13579         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
13580         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13581         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
13582         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13583         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13584         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13585         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13586         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13587         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13588         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
13589         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
13590         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
13591         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
13592         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13593         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
13594         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13595         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13596         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13597         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13598         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13599         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13600         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13601         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13603 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13605         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
13606         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
13607         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
13608         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
13609         svml_d_log2_core-sse2, svml_d_log4_core-sse,
13610         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
13611         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
13612         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
13613         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
13614         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
13615         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
13616         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
13617         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
13618         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
13619         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
13620         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
13621         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
13622         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
13623         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
13624         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
13625         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
13626         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
13627         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
13628         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
13629         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
13630         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
13631         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
13632         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
13633         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
13634         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
13635         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
13636         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
13637         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
13638         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
13639         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
13640         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
13641         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
13642         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
13643         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
13644         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
13645         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
13646         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
13647         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
13648         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
13649         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
13650         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
13651         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
13652         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
13653         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
13654         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
13655         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
13656         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
13657         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
13658         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
13659         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
13660         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
13661         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
13662         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
13663         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
13664         ...
13665         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
13666         Don't include <sysdep.h> nor <init-arch.h>.
13667         (_ZGVbN2v_cos): Removed.
13668         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
13669         ...
13670         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
13671         Don't include <sysdep.h> nor <init-arch.h>.
13672         (_ZGVdN4v_cos): Removed.
13673         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
13674         ...
13675         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
13676         Don't include <sysdep.h> nor <init-arch.h>.
13677         (_ZGVeN8v_cos): Removed.
13678         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
13679         ...
13680         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
13681         Don't include <sysdep.h> nor <init-arch.h>.
13682         (_ZGVbN2v_exp): Removed.
13683         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
13684         ...
13685         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
13686         Don't include <sysdep.h> nor <init-arch.h>.
13687         (_ZGVdN4v_exp): Removed.
13688         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
13689         ...
13690         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
13691         Don't include <sysdep.h> nor <init-arch.h>.
13692         (_ZGVeN8v_exp): Removed.
13693         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
13694         ...
13695         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
13696         Don't include <sysdep.h> nor <init-arch.h>.
13697         (_ZGVbN2v_log): Removed.
13698         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
13699         ...
13700         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
13701         Don't include <sysdep.h> nor <init-arch.h>.
13702         (_ZGVdN4v_log): Removed.
13703         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
13704         ...
13705         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
13706         Don't include <sysdep.h> nor <init-arch.h>.
13707         (_ZGVeN8v_log): Removed.
13708         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
13709         ...
13710         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
13711         Don't include <sysdep.h> nor <init-arch.h>.
13712         (_ZGVbN2vv_pow): Removed.
13713         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
13714         ...
13715         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
13716         Don't include <sysdep.h> nor <init-arch.h>.
13717         (_ZGVdN4vv_pow): Removed.
13718         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
13719         ...
13720         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
13721         Don't include <sysdep.h> nor <init-arch.h>.
13722         (_ZGVeN8vv_pow): Removed.
13723         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
13724         ...
13725         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
13726         Don't include <sysdep.h> nor <init-arch.h>.
13727         (_ZGVbN2v_sin): Removed.
13728         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
13729         ...
13730         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
13731         Don't include <sysdep.h> nor <init-arch.h>.
13732         (_ZGVbN4v_sin): Removed.
13733         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
13734         ...
13735         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
13736         Don't include <sysdep.h> nor <init-arch.h>.
13737         (_ZGVbN8v_sin): Removed.
13738         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
13739         ...
13740         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
13741         Don't include <sysdep.h> nor <init-arch.h>.
13742         (_ZGVbN2vvv_sincos): Removed.
13743         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
13744         ...
13745         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
13746         Don't include <sysdep.h> nor <init-arch.h>.
13747         (_ZGVdN4vvv_sincos): Removed.
13748         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
13749         ...
13750         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
13751         Don't include <sysdep.h> nor <init-arch.h>.
13752         (_ZGVeN8vvv_sincos): Removed.
13753         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
13754         ...
13755         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
13756         Don't include <sysdep.h> nor <init-arch.h>.
13757         (_ZGVeN16v_cosf): Removed.
13758         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
13759         ...
13760         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
13761         Don't include <sysdep.h> nor <init-arch.h>.
13762         (_ZGVbN4v_cosf): Removed.
13763         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
13764         ...
13765         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
13766         Don't include <sysdep.h> nor <init-arch.h>.
13767         (_ZGVdN8v_cosf): Removed.
13768         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
13769         ...
13770         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
13771         Don't include <sysdep.h> nor <init-arch.h>.
13772         (_ZGVeN16v_expf): Removed.
13773         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
13774         ...
13775         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
13776         Don't include <sysdep.h> nor <init-arch.h>.
13777         (_ZGVbN4v_expf): Removed.
13778         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
13779         ...
13780         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
13781         Don't include <sysdep.h> nor <init-arch.h>.
13782         (_ZGVdN8v_expf): Removed.
13783         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
13784         ...
13785         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
13786         Don't include <sysdep.h> nor <init-arch.h>.
13787         (_ZGVeN16v_logf): Removed.
13788         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
13789         ...
13790         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
13791         Don't include <sysdep.h> nor <init-arch.h>.
13792         (_ZGVbN4v_logf): Removed.
13793         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
13794         ...
13795         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
13796         Don't include <sysdep.h> nor <init-arch.h>.
13797         (_ZGVdN8v_logf): Removed.
13798         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
13799         ...
13800         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
13801         Don't include <sysdep.h> nor <init-arch.h>.
13802         (_ZGVeN16vv_powf): Removed.
13803         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
13804         ...
13805         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
13806         Don't include <sysdep.h> nor <init-arch.h>.
13807         (_ZGVbN4vv_powf): Removed.
13808         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
13809         ...
13810         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
13811         Don't include <sysdep.h> nor <init-arch.h>.
13812         (_ZGVdN8vv_powf): Removed.
13813         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
13814         ...
13815         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
13816         Don't include <sysdep.h> nor <init-arch.h>.
13817         (_ZGVeN16vvv_sincosf): Removed.
13818         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
13819         ...
13820         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
13821         Don't include <sysdep.h> nor <init-arch.h>.
13822         (_ZGVbN4vvv_sincosf): Removed.
13823         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
13824         ...
13825         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
13826         Don't include <sysdep.h> nor <init-arch.h>.
13827         (_ZGVdN8vvv_sincosf): Removed.
13828         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
13829         ...
13830         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
13831         Don't include <sysdep.h> nor <init-arch.h>.
13832         (_ZGVeN16v_sinf): Removed.
13833         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
13834         ...
13835         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
13836         Don't include <sysdep.h> nor <init-arch.h>.
13837         (_ZGVbN4v_sinf): Removed.
13838         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
13839         ...
13840         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
13841         Don't include <sysdep.h> nor <init-arch.h>.
13842         (_ZGVdN8v_sinf): Removed.
13844 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13846         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13847         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
13848         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
13849         s_rint-sse4_1 and s_rintf-sse4_1.
13850         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
13851         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
13852         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
13853         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
13854         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
13855         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
13856         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
13857         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
13858         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
13859         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
13860         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
13861         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13862         (__ceil): Removed.
13863         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
13864         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
13865         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13866         (__ceilf): Removed.
13867         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
13868         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
13869         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13870         (__floor): Removed.
13871         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
13872         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
13873         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13874         (__floorf): Removed.
13875         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
13876         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
13877         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13878         (__nearbyint): Removed.
13879         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
13880         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
13881         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13882         (__nearbyintf): Removed.
13883         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
13884         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
13885         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13886         (__rint): Removed.
13887         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
13888         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
13889         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
13890         (__rintf): Removed.
13892 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13894         * sysdeps/i386/start.S (_start): Check Check PIC instead of
13895         SHARED.  Avoid dynamic relocation against main in static PIE.
13897 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13899         [BZ #21815]
13900         * elf/Makefile (CFLAGS-tst-prelink.c): New.
13901         (LDFLAGS-tst-prelink): Likewise.
13903 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13905         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
13906         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
13907         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
13908         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
13909         (INTERNAL_SYSCALL_NCS): Likewise.
13910         (LOADARGS_1): Likewise.
13911         (LOADARGS_5): Likewise.
13912         (RESTOREARGS_1): Likewise.
13913         (RESTOREARGS_5): Likewise.
13915 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13917         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
13918         (MEMPCPY_SYMBOL): Likewise.
13919         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13920         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
13921         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
13922         in libc.a.
13923         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13924         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13925         Likewise.
13926         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
13927         (__hidden_ver1): Don't use in libc.a.
13928         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
13929         (__mempcpy): Don't create a weak alias in libc.a.
13930         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
13931         libc.a.
13932         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
13933         (__hidden_ver1): Don't use in libc.a.
13935 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13937         * config.make.in (have-insert): New.
13938         * configure.ac (libc_cv_insert): New.  Set to yes if linker
13939         supports INSERT in linker script.
13940         (AC_SUBST(libc_cv_insert): New.
13941         * configure: Regenerated.
13942         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
13943         if $(have-insert) == yes.
13945 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13947         * elf/Makefile (tests): Add vismain only if
13948         $(have-protected-data) == yes.
13949         (tests-pie): Likewise.
13951 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13953         [BZ #21871]
13954         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
13955         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
13957 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
13959         [BZ #21790]
13960         * sysdeps/i386/i586/memset.S
13961         (__memset_zero_constant_len_parameter): Removed.
13962         * sysdeps/i386/i686/memset.S
13963         (__memset_zero_constant_len_parameter): Likewise.
13964         * sysdeps/i386/i686/multiarch/memset_chk.S
13965         (__memset_zero_constant_len_parameter): Likewise.
13966         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
13967         Likewise.
13969 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13971         * stdlib/getentropy.c (getentropy): Change return type to int.
13973 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13975         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13977 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
13979         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
13980         u_intN_t.
13981         * math/s_nexttowardf.c (__nexttowardf): Likewise.
13982         * sysdeps/generic/math_private.h (ieee_double_shape_type):
13983         Likewise.
13984         (ieee_float_shape_type): Likewise.
13985         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
13986         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
13987         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
13988         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
13989         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
13990         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
13991         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
13992         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
13993         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
13994         Likewise.
13995         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13996         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13997         (__ieee754_yn): Likewise.
13998         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
13999         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
14000         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
14001         Likewise.
14002         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
14003         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
14004         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
14005         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
14006         (__erfc): Likewise.
14007         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
14008         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
14009         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
14010         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
14011         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
14012         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
14013         Likewise.
14014         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
14015         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
14016         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
14017         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
14018         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
14019         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
14020         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
14021         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
14022         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
14023         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
14024         (__issignaling): Likewise.
14025         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
14026         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
14027         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
14028         Likewise.
14029         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
14030         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
14031         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14032         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
14033         Likewise.
14034         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
14035         Likewise.
14036         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
14037         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
14038         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
14039         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
14040         (__erfcf): Likewise.
14041         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
14042         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
14043         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
14044         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
14045         Likewise.
14046         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
14047         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
14048         Likewise.
14049         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
14050         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
14051         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
14052         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
14053         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
14054         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
14055         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
14056         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
14057         Likewise.
14058         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
14059         Likewise.
14060         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
14061         Likewise.
14062         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
14063         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
14064         Likewise.
14065         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
14066         Likewise.
14067         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14068         (__ieee754_ynl): Likewise.
14069         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14070         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
14071         Likewise.
14072         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
14073         Likewise.
14074         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
14075         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
14076         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
14077         Likewise.
14078         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
14079         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
14080         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
14081         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
14082         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
14083         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
14084         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
14085         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
14086         Likewise.
14087         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14088         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
14089         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
14090         Likewise.
14091         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
14092         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
14093         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
14094         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
14095         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
14096         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
14097         Likewise.
14098         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
14099         Likewise.
14100         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
14101         Likewise.
14102         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
14103         Likewise.
14104         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
14105         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
14106         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14107         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
14108         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
14109         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
14110         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
14111         Likewise.
14112         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
14113         Likewise.
14114         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14115         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14116         Likewise.
14117         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
14118         (__ieee754_remainderl): Likewise.
14119         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
14120         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14121         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
14122         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
14123         Likewise.
14124         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
14125         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14126         Likewise.
14127         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
14128         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
14129         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14130         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
14131         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
14132         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
14133         Likewise.
14134         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14135         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14136         (__ieee754_y0l): Likewise.
14137         (pzero): Likewise.
14138         (qzero): Likewise.
14139         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14140         (__ieee754_y1l): Likewise.
14141         (pone): Likewise.
14142         (qone): Likewise.
14143         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14144         (__ieee754_ynl): Likewise.
14145         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
14146         (__ieee754_lgammal_r): Likewise.
14147         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
14148         Likewise.
14149         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
14150         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
14151         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
14152         (__erfcl): Likewise.
14153         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14154         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
14155         Likewise.
14156         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
14157         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
14158         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
14159         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
14160         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
14161         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
14162         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14163         Likewise.
14164         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
14165         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
14166         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
14167         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
14168         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14169         Likewise.
14170         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
14171         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
14172         Likewise.
14173         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
14174         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
14175         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
14176         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
14177         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
14179 2017-08-03  Florian Weimer  <fweimer@redhat.com>
14181         [BZ #21885]
14182         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
14183         on memory allocation failure.
14185 2017-08-03  Alan Modra  <amodra@gmail.com>
14187         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
14188         tst-tlsopt-powerpc.c with function name change and no test harness.
14189         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
14190         Call tls_get_addr_opt_test.
14191         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
14192         (modules-names): Add mod-tlsopt-powerpc.
14193         (mod-tlsopt-powerpc.so-no-z-defs): Define.
14194         (tst-tlsopt-powerpc): Depend on .so.
14195         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
14196         define.  Expand use in TLS_GD and TLS_LD.
14198 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14200         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
14201         function.
14202         * sysdeps/posix/shm_open.c: Include <pthread.h>.
14204 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
14206         [BZ #21686]
14207         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
14208         comparing size with that of double.
14209         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
14210         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
14211         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
14212         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
14213         (__TGMATH_BINARY_REAL_IMAG): Likewise.
14214         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
14215         unsigned __int128 types.
14217 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
14219         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
14220         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
14221         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
14222         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
14223         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
14225 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
14227         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
14229 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
14231         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
14232         of SHARED.
14233         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
14234         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14235         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14236         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14237         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14238         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14239         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14241 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
14243         [BZ #21685]
14244         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
14245         bit-field expressions passed to sizeof or typeof.
14246         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
14247         (__TGMATH_F128): Likewise.
14248         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
14249         (__TGMATH_CF128): Likewise.
14250         (__TGMATH_UNARY_REAL_ONLY): Likewise.
14251         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
14252         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
14253         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
14254         (__TGMATH_BINARY_REAL_ONLY): Likewise.
14255         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
14256         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
14257         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
14258         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
14259         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
14260         (__TGMATH_UNARY_REAL_IMAG): Likewise.
14261         (__TGMATH_UNARY_IMAG): Likewise.
14262         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
14263         (__TGMATH_BINARY_REAL_IMAG): Likewise.
14264         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
14265         type.
14266         (define_vars_for_type): Handle bit_field type specially.
14267         (Tests.__init__): Declare structure with bit-field element.
14269 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
14271         [BZ #21791]
14272         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
14273         (MEMCPY_CHK): Define only if SHARED is defined.
14274         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
14275         Likewise.
14276         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
14277         Likewise.
14279 See ChangeLog.18 for earlier changes.