[powerpc] get_rounding_mode: utilize faster method to get rounding mode
[glibc.git] / ChangeLog
blobd988bc53095319440939e2524d43a56e68c083e7
1 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
3         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
4         (__FPU_MFFS): New.
5         (__FPU_MFFSL): New.
6         (_FPU_GET_RC): New.
7         (_FPU_GETCW): Use __FPU_MFFS().
8         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
10 2019-06-06  Florian Weimer  <fweimer@redhat.com>
12         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
13         internal GCC preprocessor identifier __has_include__.
15 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
17         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
18         with call to equivalent function.
20 2019-06-04  Florian Weimer  <fweimer@redhat.com>
22         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
23         (do_release_shlib): Adjust for __twalk_r.
24         (__gconv_release_shlib): Call __twalk_r.
26 2019-06-04  Andreas Schwab  <schwab@suse.de>
28         [BZ #18830]
29         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
30         no irreversible characters occurred.
31         * iconv/gconv_simple.c (internal_ucs4_loop)
32         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
33         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
34         (ucs4_internal_loop_single, internal_ucs4le_loop)
35         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
36         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37         (ucs4le_internal_loop_single): Add const to outend.
38         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
39         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
40         * iconv/Makefile (tests): Add tst-iconv7.
41         * iconv/tst-iconv7.c: New file.
43 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
45         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
47 2019-06-01  Florian Weimer  <fweimer@redhat.com>
49         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
50         * sysdeps/unix/sysv/linux/arm/Makefile
51         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
52         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
53         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
54         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
55         compatibility symbols.
57 2019-05-31  Florian Weimer  <fweimer@redhat.com>
59         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
60         system calls for the arm architecture: breakpoint, get_tls,
61         set_tls, usr26, usr32.
63 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
65         * sysdeps/powerpc/Makefile
66         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
67         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
68         Declare '.machine power7' to get support for ldbrx.
69         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
70         directive based on the directory of the file.
71         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
72         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
73         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
74         '.machine' directive.
75         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
76         (VADDUQM_V7_V8): Remove.
77         (__STRCASECMP): Replace macros with actual instructions.
78         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
79         '.machine' directive.
80         (VCLZD_V8_v7): Remove.
81         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
83 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
85         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
86         Remove file.
87         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
89 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
91         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
92         NEARBYINT handling.
93         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
94         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
95         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
96         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
97         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
98         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
100 2019-05-28  mansayk  <6688000@gmail.com>
102         [BZ #24370]
103         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
105 2019-05-28  mansayk  <6688000@gmail.com>
107         [BZ #24369]
108         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
109         (abmon): Likewise, but remove the trailing dots.
111 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
113         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
115 2019-05-27  Florian Weimer  <fweimer@redhat.com>
117         * nptl/nptl-init.c: Add comment.
119 2019-05-24  Florian Weimer  <fweimer@redhat.com>
121         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
122         struct in_addr/struct in6_addr alignment.
124 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
126         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
127         (F_SEAL_FUTURE_WRITE): New macro.
129 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
131        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
132        * elf/tst-ldconfig-bad-aux-cache.c: New file.
133        * elf/tst-ldconfig_aux-cache.root: New directory.
134        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
135        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
136        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
138 2019-05-22  Zack Weinberg  <zackw@panix.com>
140         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
141         host type.
142         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
143         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
145         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
148         Delete.
150         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
151         Issue an #error if used with a compiler in SPE-float mode.
152         * sysdeps/powerpc/powerpc32/__longjmp_common.S
153         * sysdeps/powerpc/powerpc32/setjmp_common.S
154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
160         Remove code to preserve SPE register state.
162         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
163         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
164         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
165         Remove __SPE__ ifndefs.
167 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
169         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
170         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
171         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
172         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
173         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
174         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
175         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
176         (INNER_LOOP_ITERS_MEDIUM): New define.
177         (INNER_LOOP_ITERS_SMALL): New define.
178         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
179         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
180         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
181         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
182         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
184 2019-05-21  Adhemeval Zanella  <adhemerval.zanella@linaro.org>
186         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
187         New define.
188         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
189         (SEMTIMEDOP_IPC_ARGS): Likewise.
191 2019-05-21  Florian Weimer  <fweimer@redhat.com>
193         [BZ #24584]
194         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
195         before updating __counter field and release it afterwards.  Add
196         overflow check.
197         * iconv/gconv.h (struct __gconv_step): Mention synchronization
198         requirement for __counter member.
200 2019-05-21  Florian Weimer  <fweimer@redhat.com>
202         [BZ #24583]
203         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
204         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
205         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
206         instead of __gconv_release_step.
207         * libio/Makefile (tests): Add tst-wfile-gconv.
208         (tests-container): Add tst-wfile-ascii.
209         (tst-wfile-gconv-ENV): Enable mtrace.
210         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
211         (tests-special): Add tst-wfile-gconv-mem.out.
212         (tst-wfile-gconv.out): Depend on locales.
213         (tst-wfile-gconv-mem.out): Add mtrace rule.
214         * libio/tst-wfile-ascii.c: New file.
215         * libio/tst-wfile-gconv.c: Likewise.
217 2019-05-20  Florian Weimer  <fweimer@redhat.com>
219         [BZ #24588]
220         libio: Remove codecvt vtable.
221         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
222         __libio_codecvt.
223         * libio/iofgetpos.c (_IO_new_fgetpos): Call
224         __libio_codecvt_encoding.
225         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
226         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
227         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
228         * libio/iofwide.c (__libio_codecvt): Remove variable.
229         (_IO_fwide): Do not copy __libio_codecvt.
230         (__libio_codecvt_out): Rename from do_out and export.
231         (do_unshift): Remove function.
232         (__libio_codecvt_in): Rename from do_in and export.
233         (__libio_codecvt_encoding): Rename from do_encoding and export.
234         (do_always_noconv): Remove function.
235         (__libio_codecvt_length): Rename from do_length and export.
236         (do_max_length): Remove function.
237         * libio/libio.h (enum __codecvt_result): Remove definition; moved
238         to libioP.h.
239         (struct _IO_codecvt): Remove fields __codecvt_destr,
240         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
241         __codecvt_do_encoding, __codecvt_do_always_noconv,
242         __codecvt_do_length, __codecvt_do_max_length.
243         * libio/libioP.h (enum __codecvt_result): Define; moved from
244         libio.h.
245         (__libio_codecvt_out, __libio_codecvt_in)
246         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
247         functions.
248         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
249         (_IO_wfile_underflow): Call __libio_codecvt_in.
250         (_IO_wfile_underflow): Likewise.
251         (_IO_wfile_underflow_mmap): Likewise.
252         (_IO_wfile_sync): Call __libio_codecvt_encoding,
253         __libio_codecvt_length.
254         (adjust_wide_data): Call __libio_codecvt_encoding,
255         __libio_codecvt_in.
256         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
257         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
258         __libio_codecvt_length.
260 2019-05-20  Florian Weimer  <fweimer@redhat.com>
262         * support/support.h (support_sbindir_prefix): Declare.
263         (support_install_rootsbindir): Update comment.
264         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
265         * support/support_paths.c (support_sbindir_prefix): Define.
267 2019-05-20  Mike Crowe  <mac@mcrowe.com>
269         * support/timespec.c: Add backslash to correct newline in failure
270         message.
272         * support/timespec.h: Correct confusing comment.
274 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
276         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
277         define.
278         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
279         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
280         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
281         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
283         [BZ #24570]
284         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
285         usage.
287 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
289         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
290         (NT_ARM_PACG_KEYS): Likewise.
292 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
294         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
295         (tcache_put): Remove redundant assert.
296         (tcache_get): Remove redundant asserts.
297         (__libc_malloc): Check tcache count is not zero.
298         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
300 2019-05-17  Florian Weimer  <fweimer@redhat.com>
302         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
304 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
306         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
307         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
308         0x050100].
309         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
310         Likewise.
311         * sysdeps/unix/sysv/linux/sh/kernel-features.h
312         (__ASSUME_STATX): Likewise.
314 2019-05-16  Florian Weimer  <fweimer@redhat.com>
316         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
317         flags argument.
318         (LINE_PARSER): Do not map IPv4 addresses.
319         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
320         to parse_line.
321         (_nss_nis_gethostent_r): Always pass AF_INET to
322         internal_nis_gethostent_r.
323         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
324         to parse_line.
325         (_nss_nis_gethostbyname2_r): Adjust call to
326         internal_nis_gethostent_r.
327         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
328         call to internal_nis_gethostent_r.
329         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
330         from parse_line.
331         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
332         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
333         Remove flags argument.  Do not map IPv4 addresses.
334         (internal_nisplus_gethostent_r): Adjust call to
335         _nss_nisplus_parse_hostent.
336         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
337         to _nss_nisplus_parse_hostent.
338         (_nss_nisplus_gethostbyname2_r): Adjust call to
339         internal_gethostbyname2_r.
340         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
341         Adjust call to internal_gethostbyname2_r.
342         (_nss_nisplus_gethostbyaddr_r): Adjust call to
343         _nss_nisplus_parse_hostent.
344         (_nss_nisplus_gethostbyname4_r): Adjust call to
345         internal_gethostbyname2_r.
347 2019-05-16  Florian Weimer  <fweimer@redhat.com>
349         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
350         Remove flags.
351         (LINE_PARSER): Remove address mapping.
352         (EXTRA_ARGS_VALUE): Remove flags argument.
353         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
354         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
355         gethostbyname3_multi.
356         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
357         _nss_files_gethostbyname3_r.
358         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
360 2019-05-16  Florian Weimer  <fweimer@redhat.com>
362         * support/support_test_compare_blob.c (report_blob): Report
363         incorrect NULL blobs.
365 2019-05-15  Mark Wielaard  <mark@klomp.org>
367         [BZ# 24476]
368         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
369         __libc_once_get (once) and static_buf == NULL.
370         (__dlerror): Check we have a valid key, set result to static_buf
371         otherwise.
373 2019-05-15  Andreas Schwab  <schwab@suse.de>
375         [BZ #20568]
376         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
377         __codecvt_do_length.
378         * libio/Makefile (tests): Add tst-wfile-sync.
379         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
380         * libio/tst-wfile-sync.c: New file.
381         * libio/tst-wfile-sync.input: New file.
383 2019-05-15  Florian Weimer  <fweimer@redhat.com>
385         nss: Turn __nss_database_lookup into a compatibility symbol.
386         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
387         __nss_database_lookup.
388         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
389         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
390         __nss_database_lookup.
391         (__nss_next): Move to …
392         * nss/compat-lookup.c (nss_next): … here.  Change it to fail
393         unconditionally.
394         (__nss_database_lookup): New function.
395         * nss/Versions (GLIBC_2.0): Update comment.
396         (GLIBC_PRIVATE): Export __nss_database_lookup2.
397         * grp/initgroups.c (internal_getgrouplist): Call
398         __nss_database_lookup2 instead of __nss_database_lookup.
399         * nscd/aicache.c (addhstaiX): Likewise.
400         * nscd/initgrcache.c (addinitgroupsX): Likewise.
401         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
402         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
403         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
404         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
405         Likewise.
406         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
407         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
408         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
410 2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
412         * support/support.h (support_install_rootsbindir): New variable.
413         * support/support_paths.c: Likewise.
414         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
416 2019-05-15  Florian Weimer  <fweimer@redhat.com>
418         * iconv/gconv.h (__gconv_transliterate): Move declaration …
419         * iconv/gconv_int.h (__gconv_transliterate): … here.
420         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
421         * iconv/skeleton.c: Likewise.
423 2019-05-14  Florian Weimer  <fweimer@redhat.com>
425         Linux: Add the tgkill function.
426         * bits/signal_ext.h: New file.
427         * manual/signal.texi (Signaling Another Process): Document tgkill.
428         * signal/Makefile (headers): Add bits/signal_ext.h.
429         * signal/signal.h: Include <bits/signal_ext.h>.
430         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
431         (tst-tgkill): Link with libpthread.
432         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
433         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
434         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
435         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
436         tgkill.
437         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
438         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
439         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
440         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
441         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
442         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
443         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
444         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
445         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
446         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
447         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
448         Likewise.
449         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
450         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
451         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
453         Likewise.
454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
455         Likewise.
456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
457         Likewise.
458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
459         Likewise.
460         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
461         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
462         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
463         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
464         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
465         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
466         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
467         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
469 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
471         * manual/search.texi (Tree Search Function): Adjust twalk_r
472         documentation.
474 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
476         [BZ #24544]
477         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
478         pre-defined value.
480         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
481         * support/support.h (support_bindir_prefix): New variable.
482         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
484         * config.make.in (bindir): New variable.
486         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
487         (lll_trylock): Call __lll_trylock.
488         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
489         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
490         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
491         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
492         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
493         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
494         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
495         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
496         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
497         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
498         lowlevellock-futex.h.
500         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
501         initialization for LLL_LOCK_INITIALIZER different than 0.
502         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
503         Assume LLL_LOCK_INITIALIZER being 0.
504         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
505         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
506         Likewise.
507         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
508         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
510         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
511         Optimize futex call and add systemtap probe.
513         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
514         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
515         __libc_disable_asynccancel, __librt_enable_asynccancel,
516         __libc_disable_asynccancel, __librt_enable_asynccancel,
517         __librt_disable_asynccancel): Move to ...
518         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
519         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
520         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
521         * sysdeps/generic/single-thread.h: New file.
522         * sysdeps/unix/sysdep.h: Include single-thread.h.
523         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
524         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
526 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
528         [BZ #24535]
529         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
530         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
531         Unicode 12.1.0.
532         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
533         * localedata/unicode-gen/PropList.txt: Likewise.
534         * localedata/unicode-gen/UnicodeData.txt: Likewise.
535         * localedata/charmaps/UTF-8: Regenerate.
536         * localedata/locales/i18n_ctype: Likewise.
537         * localedata/locales/tr_TR: Likewise.
538         * localedata/locales/translit_circle: Likewise.
539         * localedata/locales/translit_cjk_compat: Likewise.
540         * localedata/locales/translit_combining: Likewise.
541         * localedata/locales/translit_compat: Likewise.
542         * localedata/locales/translit_font: Likewise.
543         * localedata/locales/translit_fraction: Likewise.
545 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
547         [BZ #24531]
548         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
549         (do_set_tcache_count): Only update if count is small enough.
550         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
552 2019-05-10  Florian Weimer  <fweimer@redhat.com>
554         * nptl/sem_close.c (struct walk_closure): Define.
555         (walker): Adjust for __twalk_r.
556         (sem_close): Call __twalk_r.
558 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
560         * support/timespec.c (test_timespec_before_impl,
561         test_timespec_equal_or_after_impl): print timespec member as intmax_t
562         insted of long int.
564 2019-05-09  Mike Crowe <mac@mcrowe.com>
566         * nptl/tst-abstime.c: Use libsupport.
568         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
569         small bug where only tv.tv_usec was checked which could cause an
570         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
571         than a second.
573         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
574         libsupport.
576         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
577         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
579         * nptl/tst-cond11.c: Use libsupport.
581         * support/timespec.h: New file.  Provide timespec helper functions
582         along with macros in the style of those in check.h.
583         * support/timespec.c: New file.  Implement check functions declared
584         in support/timespec.h.
585         * support/timespec-add.c: New file from gnulib containing
586         timespec_add implementation that handles overflow.
587         * support/timespec-sub.c: New file from gnulib containing
588         timespec_sub implementation that handles overflow.
589         * support/README: Mention timespec.h.
591 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
593         [BZ #24537]
594         * nptl/Makefile: Move tst-eintr1 to xtests.
596 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
598         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
599          TRUNC handling.
600         (round_mode): Add definition for TRUNC.
601         * sysdeps/powerpc/fpu/s_trunc.c: New file.
602         * sysdeps/powerpc/fpu/s_truncf.c: New file.
603         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
604         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
605         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
606         Likewise.
607         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
608         Likewise.
609         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
610         Likewise.
611         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
612         Likewise.
613         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
614         file.
615         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
616         Likewise.
617         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
618         Likewise.
619         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
620         Likewise.
621         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
622         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
623         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
624         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
625         s_truncf-power5+, and s_truncf-ppc64.
626         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
627         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
628         file.
629         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
630         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
631         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
632         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
633         file.
634         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
635         Likewise.
636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
637         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
638         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
639         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
640         s_truncf-power5+, and s_truncf-ppc64.
641         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
642         file.
643         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
644         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
645         Likewise.
646         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
647         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
648         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
649         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
650         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
652         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
653         ROUND handling.
654         (round_mode): Add definition for ROUND.
655         (round_to_integer_float): Likewise.
656         * sysdeps/powerpc/fpu/s_round.c: New file.
657         * sysdeps/powerpc/fpu/s_roundf.c: New file.
658         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
659         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
660         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
661         Likewise.
662         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
663         Likewise.
664         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
665         Likewise.
666         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
667         Likewise.
668         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
669         file.
670         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
671         Likewise.
672         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
673         Likewise.
674         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
675         Likewise.
676         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
677         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
678         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
679         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
680         s_roundf-power5+, and s_roundf-ppc64.
681         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
682         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
683         file.
684         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
685         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
686         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
687         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
688         file.
689         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
690         Likewise.
691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
692         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
693         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
694         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
695         s_roundf-power5+, and s_roundf-ppc64.
696         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
697         file.
698         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
699         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
700         Likewise.
701         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
702         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
703         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
704         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
705         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
707         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
708         Add FLOOR option.
709         (round_mode): Add definition for FLOOR.
710         * sysdeps/powerpc/fpu/s_floor.c: New file.
711         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
712         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
713         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
714         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
715         Remove file.
716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
717         Likewise
718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
719         Likewise.
720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
721         Likewise.
722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
723         New file.
724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
725         Likewise.
726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
727         Likewise.
728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
729         Likewise.
730         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
731         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
732         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
733         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
734         s_floorf-power5+, and s_floorf-ppc64.
735         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
736         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
737         file.
738         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
740         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
741         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
742         file.
743         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
744         Likewise.
745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
746         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
747         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
748         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
749         s_floorf-power5+, and s_floorf-ppc64.
750         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
751         file.
752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
753         file.
754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
755         Likewise.
756         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
757         Likewise.
758         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
759         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
760         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
761         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
763 2019-05-08  Mike Crowe  <mac@mcrowe.com>
765         * support/xclock_gettime.c (xclock_gettime): New file. Provide
766         clock_gettime wrapper for use in tests that fails the test rather
767         than returning failure.
769         * support/xtime.h: New file to declare xclock_gettime.
771         * support/Makefile: Add xclock_gettime.c.
773         * support/README: Mention xtime.h.
775 2019-05-08  Florian Weimer  <fweimer@redhat.com>
777         malloc/tst-mallocfork2: Use process-shared barriers.
778         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
779         (signal_count, sigusr1_sender_pid): Remove.
780         (iterations): Define constant.
781         (shared): New variable.
782         (sigusr1_received): Update comment.
783         (sigusr1_handler): Do not send SIGSTOP to the sender process.
784         (signal_sender): Optional use barriers to avoid sending signals
785         during irrelevant times.
786         (do_it): Initialize variable shared.  Use xfork for error
787         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
788         the iteration count, independent of signal delivery.  Check for
789         deadlocks in fork.  Introduce barriers for reducing signal
790         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
791         replaced by the barriers.  Count signals during fork/free/malloc
792         and report them.
793         * malloc/Makefile (tst-mallocfork): Link with libpthread.
795 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
797         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
798         version to 5.1.
799         (clock_adjtime64) New syscall.
800         (clock_getres_time64) Likewise.
801         (clock_gettime64) Likewise.
802         (clock_nanosleep_time64) Likewise.
803         (clock_settime64) Likewise.
804         (futex_time64) Likewise.
805         (io_pgetevents_time64) Likewise.
806         (io_uring_enter) Likewise.
807         (io_uring_register) Likewise.
808         (io_uring_setup) Likewise.
809         (mq_timedreceive_time64) Likewise.
810         (mq_timedsend_time64) Likewise.
811         (pidfd_send_signal) Likewise.
812         (ppoll_time64) Likewise.
813         (pselect6_time64) Likewise.
814         (recvmmsg_time64) Likewise.
815         (rt_sigtimedwait_time64) Likewise.
816         (sched_rr_get_interval_time64) Likewise.
817         (semtimedop_time64) Likewise.
818         (timer_gettime64) Likewise.
819         (timer_settime64) Likewise.
820         (timerfd_gettime64) Likewise.
821         (timerfd_settime64) Likewise.
822         (utimensat_time64) Likewise.
824         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
825         version to 9 branch.
827 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
829         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
830         __memmove_thunderx2 to the list of implementations
831         * sysdeps/aarch64/multiarch/memmove.c: Likewise
832         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
833         (__memmove_thunderx2): Rewritten using SIMD ld/st
834         (__memcpy_thunderx2): Fixed handling overlapping cases.
835         Used ldp/stp instead of ldr/str if possible. Made loops
836         tails branchless.
838 2019-05-03  Florian Weimer  <fweimer@redhat.com>
840         * misc/tst-tsearch.c (walk_tree): Add more error checking.
842 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
844         [BZ #24506]
845         * elf/tst-pldd.c (in_str_list): New function.
846         (do_test): Add default names for ld and libc as one option.
848 2019-05-02  Florian Weimer  <fweimer@redhat.com>
850         misc: Add twalk_r function.
851         * include/search.h (__twalk_r): Declare.
852         * manual/examples/twalk.c: New file.
853         * manual/search.texi (Tree Search Function): Document twalk_r.
854         * misc/Versions (2.30): Export twalk_r.
855         (GLIBC_PRIVATE): Export __twalk_r.
856         * misc/search.h [__USE_GNU] (twalk_r): Declare.
857         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
858         (twalk_r): Add weak alias.
859         * misc/tst-tsearch.c (struct walk_trace_element): Define.
860         (walk_trace): New variable.
861         (struct twalk_with_twalk_r_closure): Define.
862         (twalk_with_twalk_r_action): New function.
863         (twalk_with_twalk_r): Likewise.
864         (walk_action): Call walk_trace_add.
865         (walk_tree_with): Rename from walk_tree.  Add walk argument.
866         (walk_tree): New function.
867         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
868         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
869         Likewise.
870         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
871         Likewise.
872         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
873         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
874         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
875         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
876         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
877         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
878         Likewise.
879         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
880         Likewise.
881         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
882         Likewise.
883         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
884         (GLIBC_2.30): Likewise.
885         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
886         (GLIBC_2.30): Likewise.
887         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
888         (GLIBC_2.30): Likewise.
889         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
890         (GLIBC_2.30): Likewise.
891         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
892         Likewise.
893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
894         (GLIBC_2.30): Likewise.
895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
896         (GLIBC_2.30): Likewise.
897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
898         (GLIBC_2.30): Likewise.
899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
900         (GLIBC_2.30): Likewise.
901         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
902         Likewise.
903         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
904         Likewise.
905         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
906         Likewise.
907         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
908         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
909         Likewise.
910         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
911         Likewise.
912         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
913         Likewise.
914         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
915         Likewise.
917 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
919         Make mktime etc. compatible with __time64_t
920         Keep these functions compatible with Gnulib while adding
921         __time64_t support.  The basic idea is to move private API
922         declarations from include/time.h to time/mktime-internal.h, since
923         the former file cannot easily be shared with Gnulib whereas the
924         latter can.
925         Also, do some other minor cleanup while in the neighborhood.
926         * include/time.h: Include stdbool.h, time/mktime-internal.h.
927         (__mktime_internal): Move this prototype to time/mktime-internal.h,
928         since Gnulib needs it.
929         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
930         Move these macros to time/mktime-internal.h, since Gnulib needs them.
931         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
932         (in_time_t_range): New static function.
933         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
934         so that glibc users are not tempted to use __time64_t.
935         * time/mktime-internal.h: Rewrite so that it does both glibc
936         and Gnulib work.  Include time.h if not _LIBC.
937         (mktime_offset_t) [!_LIBC]: Define for gnulib.
938         (__time64_t): New type or macro, moved here from
939         posix/bits/types.h.
940         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
941         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
942         from include/time.h.
943         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
944         New macros, taken from GNulib.
945         (__mktime_internal): New prototype, moved here from include/time.h.
946         * time/mktime.c (mktime_min, mktime_max, convert_time)
947         (ranged_convert, __mktime_internal, __mktime64):
948         * time/timegm.c (__timegm64):
949         Use __time64_t, not time_t.
950         * time/mktime.c: Stop worrying about whether time_t is floating-point.
951         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
952         Rename from mktime.
953         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
954         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
955         for libc_hidden_def.
956         Include errno.h.
957         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
958         Rename from timegm.
959         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
961 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
963         [BZ #19444]
964         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
965         from `-Wmaybe-uninitialized'.
966         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
968 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
970         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
971         function.
972         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
973         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
974         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
975         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
976         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
978         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
980         Remove file.
981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
982         Likewise.
983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
984         Likewise.
985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
986         Likewise.
987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
988         New file.
989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
990         Likewise.
991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
992         Likewise.
993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
994         Likewise.
995         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
996         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
997         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
998         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
999         Likewise.
1000         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1001         Likewise.
1002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1003         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1004         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1005         file.
1006         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1007         Likewise.
1008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1009         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1010         * here.
1011         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1012         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1013         s_ceilf-power5+, and s_ceilf-ppc64.
1014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1015         file.
1016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1019         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1020         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1021         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1022         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1024         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1025         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1026         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1028 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
1030         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1031         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1032         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1033         (sem_getvalue): Likewise.
1035 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1037         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1038         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1040 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1042         Makeconfig: Move -Wl,-rpath-link options before library references.
1043         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1044         (link-libc): Remove $(link-libc-rpath-link).
1046 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1048         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1049         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1050         (+link-static-before-libc): Remove $(CC).
1051         (+link-static, +link-static-tests): Add $(CC).
1052         (+link-before-libc): Remove $(CC).
1053         (+link, +link-pie, +link-pie-printers): Add $(CC).
1055 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1057         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1058         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1059         (+link-static-before-libc): Remove $(CC).
1060         (+link-static, +link-static-tests): Add $(CC).
1061         (+link-before-libc): Remove $(CC).
1062         (+link, +link-pie, +link-pie-printers): Add $(CC).
1064 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
1066         [BZ#24484]
1067         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1069 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1071         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1072         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1073         (bench-link-targets): New variable.
1074         ($(binaries-bench) …): Use it.  Set LDFLAGS accordingly.
1076 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1078         Also enable BIND_NOW for programs if --enable-bind-now.
1079         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1080         (+link-pie): Use $(link-extra-flags).
1081         (+link-static): Likewise.
1082         [! $(build-pie-default)] (+link): Likewise.
1083         * manual/install.texi (Configuring and compiling): Update
1084         --enable-bind-now description.
1085         * INSTALL: Regenerated.
1087 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
1089         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1090         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1092 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
1094         [BZ #18465]
1095         * malloc/Makefile (others): Add memusagestat.
1096         ($(objpfx)memusagestat): Delete rule.
1097         (LDLIBS-memusagestat): New variable.
1099 2019-04-24  Florian Weimer  <fweimer@redhat.com>
1101         * locale/Makefile (tests-special): Guard setting by
1102         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1103         to run while cross-compiling.
1105 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1107         [BZ #18035]
1108         * elf/Makefile (tests-container): Add tst-pldd.
1109         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1110         (E(find_maps)): Avoid use alloca, use default read file operations
1111         instead of explicit LFS names, and fix infinite loop.
1112         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1113         (get_process_info): Use _Static_assert instead of assert, use default
1114         directory operations instead of explicit LFS names, and free some
1115         leadek pointers.
1116         * elf/tst-pldd.c: New file.
1118 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1120         * malloc/arena.c (do_set_mallopt_check): Removed.
1122 2019-04-23  Florian Weimer  <fweimer@redhat.com>
1124         locale: Add LOCPATH diagnostics to the locale program.
1125         * locale/programs/locale.c (setlocale_failed): New variable.
1126         (try_setlocale): New function.
1127         (quote_string): Likewise.
1128         (setlocale_diagnostics): Likewise.
1129         (main): Call try_setlocale instead of setlocale.  Call
1130         setlocale_diagnostics.
1131         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1132         (tst-locale-locpath.out): New target.
1133         * locale/tst-locale-locpath.sh: New file.
1135 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1137         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1138         to 2.30 notes.
1140 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1142         [BZ #23741]
1143         * malloc/hooks.c (malloc_check, realloc_check): Use
1144         __builtin_add_overflow on overflow check and adapt to
1145         checked_request2size change.
1146         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1147         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1148         allocation size to PTRDIFF_MAX.
1149         (REQUEST_OUT_OF_RANGE): Remove macro.
1150         (checked_request2size): Change to inline function and limit maximum
1151         requested size to PTRDIFF_MAX.
1152         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1153         maximum allocation size to PTRDIFF_MAX.
1154         (_mid_memalign): Use _int_memalign call for overflow check.
1155         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1156         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1157         limit maximum requested size to PTRDIFF_MAX.
1158         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1159         valloc, pvalloc): Add __attribute_alloc_size__.
1160         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1161         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1162         larger than PTRDIFF_MAX.
1163         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1164         around tests of malloc with negative sizes.
1165         * malloc/tst-posix_memalign.c (do_test): Likewise.
1166         * malloc/tst-pvalloc.c (do_test): Likewise.
1167         * malloc/tst-valloc.c (do_test): Likewise.
1168         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1169         with resulting size allocation larger than PTRDIFF_MAX with
1170         reallocarray_nowarn.
1171         (reallocarray_nowarn): New function.
1172         * NEWS: Mention the malloc function semantic change.
1174 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1176         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1177         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1179         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1180         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1181         * sysdeps/powerpc/fpu/s_fma.c: New file.
1182         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1184         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1185         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1187         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1188         the magic flag store.
1189         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1190         Likewise.
1191         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1192         Likewise.
1193         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1194         Remove rt_sigreturn call.
1196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1197         Remove rt_sigreturn call.
1198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1199         Likewise.
1200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1203         * support/Makefile (libsupport-routines): Add support_subprocess,
1204         xposix_spawn, xposix_spawn_file_actions_addclose, and
1205         xposix_spawn_file_actions_adddup2.
1206         (tst-support_capture_subprocess-ARGS): New rule.
1207         * support/capture_subprocess.h (support_capture_subprogram): New
1208         prototype.
1209         * support/support_capture_subprocess.c (support_capture_subprocess):
1210         Refactor to use support_subprocess and support_capture_poll.
1211         (support_capture_subprogram): New function.
1212         * support/tst-support_capture_subprocess.c (write_mode_to_str,
1213         str_to_write_mode, test_common, parse_int, handle_restart,
1214         do_subprocess, do_subprogram, do_multiple_tests): New functions.
1215         (do_test): Add support_capture_subprogram tests.
1216         * support/subprocess.h: New file.
1217         * support/support_subprocess.c: Likewise.
1218         * support/xposix_spawn.c: Likewise.
1219         * support/xposix_spawn_file_actions_addclose.c: Likewise.
1220         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1221         * support/xspawn.h: Likewise.
1223 2019-04-17  Mike Gerow  <gerow@google.com>
1225         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1226         groups limit.
1228 2019-04-11  Florian Weimer  <fweimer@redhat.com>
1230         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1231         domain with empty string.
1232         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1234 2019-04-11  Florian Weimer  <fweimer@redhat.com>
1236         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1237         comment.
1238         (alloc_buffer_next): Change return type to non-const.  Update
1239         comment.
1241 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1243         * manual/time.texi (Formatting Calendar Time): Add missing percent
1244         sign to conversion specifier.
1246 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
1247             Kwok Cheung Yeung  <kcy@codesourcery.com>
1249         [BZ #16573]
1250         * malloc/mtrace.c: Define prototypes for all hooks.
1251         (set_default_hooks): New function.
1252         (set_trace_hooks): Likewise.
1253         (save_default_hooks): Likewise.
1254         (tr_freehook): Use new s*_hooks functions.
1255         (tr_mallochook): Likewise.
1256         (tr_reallochook): Likewise.
1257         (tr_memalignhook): Likewise.
1258         (mtrace): Likewise.
1259         (muntrace): Likewise.
1261 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1263         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1264         (generic_stpcpy): New function.
1265         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1266         (generic_stpncpy): New function.
1267         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1268         (generic_strcat): New function.
1269         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1270         (generic_strcpy): New function.
1271         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1272         (STUPID_STRNCAT): Remove function.
1273         (generic_strncat): New function.
1274         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1275         (STUPID_STRNCPY): Remove function.
1276         (generic_strncpy): New function.
1277         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1278         (generic_strnlen): New function.
1279         (memchr_strnlen): New function.
1280         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1281         (memchr_strlen): Likewise.
1283 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1285         * benchtests/bench-strstr.c (input): Add realistic input text.
1286         (stupid_strstr): Remove function.
1287         (basic_strstr): Add function.
1288         (twoway_strstr): Add function.
1289         (do_one_test): Add result checking.
1290         (do_test): Use new input text.  Remove accidental early matches.
1291         (test_main): Improve range of tests, reduce unaligned cases.
1293 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1295         * benchtests/bench-memmem.c (simple_memmem): Remove function.
1296         (basic_memmem): Add function.
1297         (twoway_memmem): Add function.
1299 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1301         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1302         * benchtests/bench-malloc-thread.c: Likewise.
1303         * benchtests/bench-skeleton.c: Likewise.
1304         * benchtests/bench-strtod.c: Likewise.
1305         * benchtests/bench-timing.h: Likewise.
1307 2019-04-08  Florian Weimer  <fweimer@redhat.com>
1309         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1310         definitions.
1311         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1312         RES_INSECURE2 security checks.
1313         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1314         RES_INSECURE2 handling.
1316 2019-04-08  Florian Weimer  <fweimer@redhat.com>
1318         resolv: Remove support for RES_USE_INET6 and the inet6 option.
1319         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1320         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1321         GETHOSTBYNAME.
1322         * resolv/Makefile (tests): Remove tst-res_use_inet6.
1323         (tests-internal): Update justification for tst-resolv-res_init,
1324         tst-resolv-res_init-thread.
1325         (tst-res_use_inet6): Remove target.
1326         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1327         * resolv/res_debug.c (p_option): Remove "inet6" support.
1328         * resolv/res_init.c (res_setoptions): Likewise.
1329         * resolv/res_use_inet6.h: Remove file.
1330         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1331         definition.
1332         (res_use_inet6): Always return false.
1333         * resolv/resolv.h (RES_USE_INET6): Remove definition.
1334         * resolv/resolv_context.h: Adjust file comment.
1335         (struct resolv_context): Update comment on __next field.
1336         (__resolv_context_put): Update comment.
1337         * resolv/tst-res_use_inet6.c: Remove file.
1338         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1339         "inet6" support.
1340         (test_cases): Adjust test case.
1341         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1342         (thread_byname2_af_inet6): Use old byname_inet6 code.
1343         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1344         (gai): Remove do_inet6 argument.
1345         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1346         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1347         (thread_gai_unspec_inet6): Remove functions.
1348         (do_test): Adjust thread_funcs.
1349         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1350         RES_USE_INET6 flag.
1351         (gaih_inet): Do not disable RES_USE_INET6 flag.
1353 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1355         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1356         and remove redundant code.
1358 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1360         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1361         New rule.
1362         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1363         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1364         Likewise.
1365         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1366         Likewise.
1367         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1368         Likewise.
1369         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1370         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1371         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1372         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1373         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1374         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1375         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1376         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1377         wcsrchr-power7.
1378         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1379         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1380         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1381         Remove wcsrchr optimizations.
1382         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1384         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1385         the loop unroll.
1387         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1388         New rule.
1389         * sysdeps/powerpc/power6/wcschr.c: Remove file.
1390         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1391         Likewise.
1392         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1393         Likewise.
1394         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1395         Likewise.
1396         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1397         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1398         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1399         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1400         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1401         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1402         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1403         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1404         wcschr-power7.
1405         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1406         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1407         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1408         Remove wcschr optimizations.
1409         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1411         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1412         the loop unroll.
1414         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1415         New rule.
1416         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1417         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1418         Likewise.
1419         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1420         Likewise.
1421         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1422         Likewise.
1423         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1424         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1425         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1426         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1427         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1428         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1429         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1430         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1431         wcscpy-power7.
1432         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1433         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1434         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1435         Remove wcscpy optimizations.
1436         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1438         * include/loop_unroll.h: New file.
1439         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1440         besides generic implementation.
1442 2019-04-03  DJ Delorie  <dj@redhat.com>
1444         * time/tst-strftime3.c (tm_to_printed): Disable warning about
1445         snprintf truncating output.
1447 2019-04-02  DJ Delorie  <dj@redhat.com>
1449         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
1450         warning.
1452 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1454         [BZ #22964]
1455         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1456         era.
1457         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1458         (mkreftable): Add rules for the new Japanese era and the new dates.
1460 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1461             Rafal Luzynski  <digitalfreak@lingonborough.com>
1463         * time/tst-strftime2.c (date_t): Explicitly define the type.
1464         (dates): Use natural month and year numbers to express a date.
1465         (is_before): New function to compare dates.
1466         (mkreftable): Minor improvements to simplify maintenance.
1467         (do_test): Reflect the changes in dates array.
1469         [BZ #24293]
1470         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1471         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1472         * time/tst-strftime2.c (locales): Likewise.
1473         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1474         2010-04-01, and 2011-04-01.
1475         (mkreftable): Add rules for the new locales and the new dates.
1477 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
1479         * localedata/locales/ja_JP: Add comments to era entries.
1481 2019-04-01  DJ Delorie  <dj@redhat.com>
1483         [BZ #24394]
1484         * time/strptime_l.c (%Ey): Fix fencepost error.
1485         * time/tst-strftime3.c: New.
1486         * time/Makefile (tests): Add tst-strftime3.
1488 2019-04-01  Uros Bizjak  <ubizjak@gmail.com>
1490         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1491         conditional branch to DIVBYZERO.  Fix unwind info.
1492         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1493         excb after conditional branch to $powerof2.  Add missing unop
1494         instructions and .align directives and reorder instructions to
1495         match __divqu.
1497 2019-04-01  Richard Henderson  <rth@twiddle.net>
1499         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1500         Do not redefine.
1501         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1502         Do not redefine.
1504 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
1506         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1507         $libc_cv_riscv_float_abi in `test' invocation.
1508         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1510 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
1512         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1513         asm with builtin.
1514         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1515         Likewise.
1516         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1517         (_GET_SI_FPSCR): Likewise.
1518         (_SET_SI_FPSCR): Likewise.
1520 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1522         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1523         clang 2.8.
1524         (signbit): Use builtin for clang 3.3.
1525         (isinf): Use builtin for clang 3.7.
1527 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1529         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1531 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
1533         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1534         quote in printf.
1536 2019-03-25  Mike Crowe  <mac@mcrowe.com>
1538         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1539         pthread_rwlock_timedrdlock with calls to
1540         pthread_rwlock_timedwrlock to ensure that the latter is tested
1541         too. Use new function name in diagnostic messages too.
1543         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1544         (do_test) Use libsupport test macros rather than hand-coded
1545         conditionals and error messages. Ensure that sem_init returns zero
1546         rather than not -1. Use <support/test-driver.c> rather than
1547         test-skeleton.c.
1549         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1550         test macros rather than hand-coded conditionals and error messages.
1551         Use <support/test-driver.c> rather than test-skeleton.c.
1553 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
1555         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1557         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1558         (NT_MIPS_MSA): Likewise.
1560 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1562         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1563         * benchtests/README: Update description.
1564         * benchtests/bench-timing.h: Default to hp-timing.
1565         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1566         HP_TIMING_PRINT): Remove.
1567         (HP_TIMING_NOW): Add generic implementation.
1568         (hp_timing_t): Change to uint64_t.
1570         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1571         HP_TIMING_INLINE.
1572         * nptl/descr.h: Likewise.
1573         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1574         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1575         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1576         Abstract hp-timing usage with RTLD_* macros.
1577         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1578         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1579         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1580         HP_TIMING_NONAVAIL): Likewise.
1581         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1582         Likewise.
1583         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1584         HP_SMALL_TIMING_AVAIL): Likewise.
1585         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1586         HP_SMALL_TIMING_AVAIL): Likewise.
1587         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1588         HP_SMALL_TIMING_AVAIL): Likewise.
1589         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1590         HP_SMALL_TIMING_AVAIL): Likewise.
1591         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1592         Likewise.
1593         * sysdeps/generic/hp-timing-common.h: Update comment with
1594         HP_TIMING_AVAIL removal.
1596         * include/random-bits.h: New file.
1597         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1598         (__res_context_mkquery): Remove usage hp-timing usage and replace with
1599         random_bits.
1600         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1601         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1602         Likewise.
1604         * include/libc-internal.h (__get_clockfreq): Remove prototype.
1605         * rt/Makefile (clock-routines): Remove get_clockfreq.
1606         * rt/get_clockfreq.c: Remove file.
1607         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1608         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1609         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1610         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1611         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1613         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1614         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1615         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1616         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1617         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1619         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1620         pthread_clock_settime.
1621         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1622         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1623         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1624         * elf/rtld.c (_dl_start_final): Likewise.
1625         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1626         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1627         Remove.
1628         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1629         (_dl_cpuclock_offset): Remove.
1630         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1631         cpuclock_offset_ununsed.
1632         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1633         cpuclock_offset set.
1634         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1635         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1636         * nptl/pthread_clock_gettime.c: Remove file.
1637         * nptl/pthread_clock_settime.c: Likewise.
1638         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1639         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1640         and CLOCK_PROCESS_CPUTIME_ID support.
1641         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1642         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1643         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1644         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1645         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1646         Likewise.
1647         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1649 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1651         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1652         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1653         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1654         New defines.
1655         * sysdeps/s390/memmem-arch13.S: New file.
1656         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1657         if it is only used as fallback.
1658         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1659         * sysdeps/s390/multiarch/ifunc-impl-list.c
1660         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1662 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1664         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1665         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1666         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1667         New defines.
1668         * sysdeps/s390/multiarch/ifunc-impl-list.c
1669         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1670         * sysdeps/s390/strstr-arch13.S: New file.
1671         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1672         if it is only used as fallback.
1673         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1675 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1677         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1678         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1679         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1680         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1681         ifunc selector.
1682         * sysdeps/s390/multiarch/ifunc-impl-list.c
1683         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1684         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1685         S390_IS_ARCH13_MIE3): New defines.
1687 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1689         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1690         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1691         * sysdeps/s390/configure.ac: Add checks for arch13 support.
1692         * sysdeps/s390/configure: Regenerated.
1694 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1696         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1697         Add vxe2, vxp, dflt, sort flags.
1698         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1699         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1700         capabilities.
1701         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1702         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1703         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1704         HWCAP_S390_DFLT): Define.
1706 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1708         [BZ #24372]
1709         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1710         of compiler warning.
1711         * locale/programs/ld-collate.c (collate_output): Likewise.
1713 2019-03-21  DJ Delorie  <dj@redhat.com>
1715         [BZ #24372]
1716         * iconv/iconvconfig.c (write_output): Replace floating point math
1717         with integer math to avoid imprecise results.
1718         * locale/programs/ld-collate.c (collate_output): Likewise.
1720 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
1722         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1723         Add HWCAP_S390_VX and HWCAP_S390_VXE.
1725 2019-03-20  mansayk  <6688000@gmail.com>
1727         [BZ #24296]
1728         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1729         (abday): Likewise, but remove the trailing dots.
1731 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
1733         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1734         macro.
1735         (HWCAP_PACA): Likewise.
1736         (HWCAP_PACG): Likewise.
1737         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1738         Increase to 32.
1739         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1741 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1743         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1744         should be handled.
1746 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
1748         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1749         version to 5.0.
1750         (old_getpagesize): New syscall.
1752 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
1754         [BZ #24293]
1755         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1756         * localedata/locales/cmn_TW (era): Likewise.
1757         * localedata/locales/hak_TW (era): Likewise.
1758         * localedata/locales/lzh_TW (era): Likewise.
1759         * localedata/locales/nan_TW (era): Likewise.
1761 2019-03-14  Adam Maris  <amaris@redhat.com>
1763         * malloc/malloc.c (_int_malloc): Check for large bin list
1764         corruption when inserting unsorted chunk.
1766 2019-03-14  Florian Weimer  <fweimer@redhat.com>
1768         Remove obsolete, never-implemented XSI STREAMS declarations.
1769         * manual/terminal.texi (Allocation): Remove portability note and
1770         adjust example.
1771         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1772         _SC_STREAMS.
1773         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1774         * sysdeps/unix/inet/Subdirs (streams): Remove.
1775         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1776         (conformtest-headers-UNIX98): Likewise.
1777         (conformtest-headers-XOPEN2K): Likewise.
1778         (conformtest-headers-POSIX2008): Likewise.
1779         * posix/compat-streams.c: New file.
1780         * posix/Makefile (routines): Add it.
1781         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1782         getpmsg, isastream, putmsg, putpmsg.
1783         (GLIBC_2.30): New section.
1784         * bits/stropts.h: Remove file.
1785         * bits/xtitypes.h: Likewise.
1786         * conform/data/stropts.h-data: Likewise.
1787         * include/stropts.h: Likewise.
1788         * include/sys/stropts.h: Likewise.
1789         * include/xtitypes.h: Likewise.
1790         * streams/Makefile: Likewise.
1791         * streams/fattach.c: Likewise.
1792         * streams/fdetach.c: Likewise.
1793         * streams/getmsg.c: Likewise.
1794         * streams/getpmsg.c: Likewise.
1795         * streams/isastream.c: Likewise.
1796         * streams/putmsg.c: Likewise.
1797         * streams/putpmsg.c: Likewise.
1798         * streams/stropts.h: Likewise.
1799         * streams/sys/stropts.h: Likewise.
1800         * sysdeps/ia64/bits/xtitypes.h: Likewise.
1801         * sysdeps/s390/bits/xtitypes.h: Likewise.
1802         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1803         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1804         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1805         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1806         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1807         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1808         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1809         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1810         * sysdeps/x86/bits/xtitypes.h: Likewise.
1812 2019-03-14  Florian Weimer  <fweimer@redhat.com>
1814         * nss/tst-nss-files-alias-truncated.c (do_test): Load
1815         libnss_files.
1816         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1817         but not with libnss_files.
1818         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1820 2019-03-14  Zack Weinberg  <zackw@panix.com>
1822         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1823         Specify encoding="utf-8" when opening headers to check.
1825 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
1827         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1828         version to 5.0.
1829         (Context.checkout_tar): Handle variable major version for Linux
1830         kernel.
1832 2019-03-13  Florian Weimer  <fweimer@redhat.com>
1834         [BZ #24047]
1835         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1837 2019-03-13  Zack Weinberg  <zackw@panix.com>
1839         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1840         Move to stdlib.
1841         * include/inttypes.h: Adjust to match.
1842         * include/stdint.h: New wrapper.
1844 2019-03-13  Zack Weinberg  <zackw@panix.com>
1846         * scripts/check-obsolete-constructs.py: New test script.
1847         * scripts/check-installed-headers.sh: Remove tests for
1848         obsolete typedefs, superseded by check-obsolete-constructs.py.
1849         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1850         as a special test.  Update commentary.
1851         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1852         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1853         Update commentary.
1854         * posix/sys/types.h (__u_intN_t): Remove.
1855         (u_int8_t): Typedef using __uint8_t.
1856         (u_int16_t): Typedef using __uint16_t.
1857         (u_int32_t): Typedef using __uint32_t.
1858         (u_int64_t): Typedef using __uint64_t.
1860 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
1862         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1863         call _dl_procinfo.
1864         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1865         Ignore types other than AT_HWCAP.
1866         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1867         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1868         Likewise.
1869         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1870         in the case of falling back to generic output mechanism.
1871         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1872         Likewise.
1874 2019-03-12  Florian Weimer  <fweimer@redhat.com>
1876         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1878 2019-03-12  Florian Weimer  <fweimer@redhat.com>
1880         [BZ #24047]
1881         resolv: Enable full ICMP errors for UDP DNS sockets
1882         * resolv/res_enable_icmp.c: New file.
1883         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1884         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1885         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1886         socket.
1888 2019-03-11  Mao Han  <han_mao@c-sky.com>
1890         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1891         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1893 2019-03-11  Mao Han  <han_mao@c-sky.com>
1895         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1896         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1897         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1899 2019-03-11  Mao Han  <han_mao@c-sky.com>
1901         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1902         directly.
1903         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1904         definition.
1906 2019-03-11  Mao Han  <han_mao@c-sky.com>
1908         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1909         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1910         in mcontext_t
1912 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
1914         [BZ #24307]
1915         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1916         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1917         Unicode 12.0.0.
1918         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1919         * localedata/unicode-gen/PropList.txt: Likewise.
1920         * localedata/unicode-gen/UnicodeData.txt: Likewise.
1921         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1922         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1923         * localedata/charmaps/UTF-8: Regenerate.
1924         * localedata/locales/i18n_ctype: Likewise.
1925         * localedata/locales/tr_TR: Likewise.
1926         * localedata/locales/translit_circle: Likewise.
1927         * localedata/locales/translit_cjk_compat: Likewise.
1928         * localedata/locales/translit_combining: Likewise.
1929         * localedata/locales/translit_compat: Likewise.
1930         * localedata/locales/translit_font: Likewise.
1931         * localedata/locales/translit_fraction: Likewise.
1933 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
1935         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1936         than after operators.
1937         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1938         (setitimer_locked): Likewise.
1939         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1940         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1941         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1942         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1943         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1944         (PPC_CPU_SUPPORTED): Likewise.
1945         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1946         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1947         (stat_overflow): Likewise.
1948         (statfs_overflow): Likewise.
1949         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1950         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1951         (eq_ttyname_r): Likewise.
1952         (run_chroot_tests): Likewise.
1954 2019-03-07  Florian Weimer  <fweimer@redhat.com>
1956         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1957         header check.
1959 2019-03-07  Martin Liska  <mliska@suse.cz>
1961         * math/Makefile: Change location where math-vector-fortran.h is
1962         installed.
1963         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1964         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1965         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1966         * scripts/check-installed-headers.sh: Skip Fortran header files.
1967         * scripts/check-wrapper-headers.py: Likewise.
1969 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1971         * nptl/nptl-init.c (__have_futex_clock_realtime,
1972         __have_futex_clock_realtime): Remove definition.
1973         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1974         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1975         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1976         __ASSUME_FUTEX_CLOCK_REALTIME support.
1977         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1978         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1979         * sysdeps/unix/sysv/linux/kernel-features.h
1980         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1981         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1982         Adjust comment.
1984 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1986         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1987         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1988         __GI___wcscpy and wcscpy.
1990 2019-03-04  Florian Weimer  <fweimer@redhat.com>
1992         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1993         declaration.
1994         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1995         defined.
1997 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
1999         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2000         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2002 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2004         [BZ #24162]
2005         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2006         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
2008 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2010         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2011         tests.
2012         (do_test): Likewise.
2013         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2014         (do_test_call_varg): Likewise.
2015         (do_test_call_rarg): Likewise.
2016         * sysdeps/ieee754/ldbl-opt/Makefile
2017         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2018         tst-nldbl-error.
2019         ($(objpfx)tst-nldbl-warn.c): New rule.
2020         ($(objpfx)tst-nldbl-error.c): Likewise.
2021         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2022         New variables.
2024 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2026         [BZ #23984]
2027         * include/bits/error-ldbl.h: New file.
2028         * include/error.h: Include stdarg.h.  Declare internal functions
2029         __error_internal and __error_at_line_internal.
2030         * misc/Makefile (headers): Add bits/error-ldbl.h.
2031         * misc/bits/error-ldbl.h: New file.
2032         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2033         avoid the inclusion of bits/error.h.
2034         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2035         and __nldbl_error_at_line.
2036         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2037         (__nldbl_error, __ndlbl_error_at_line): New functions.
2038         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2039         Redirect error and error_at_line.
2040         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2042         Likewise.
2043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2044         Likewise.
2045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2046         Likewise.
2047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2048         Likewise.
2049         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2050         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2051         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2053 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2055         [BZ #23984]
2056         * include/bits/err-ldbl.h: New file.
2057         * include/err.h: Add prototypes for the internal functions:
2058         __vwarnx_internal and __vwarn_internal.
2059         * misc/Makefile (headers): Add bits/err-ldbl.h.
2060         * misc/bits/err-ldbl.h: New file.
2061         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2062         defined, i.e.: when -mlong-double-64 is in use.
2063         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2064         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2065         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2066         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2067         (VA_CALL): New macro.
2068         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2069         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2070         functions.
2071         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2072         declare prototypes for the new functions.
2073         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2075         Likewise.
2076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2077         Likewise.
2078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2079         Likewise.
2080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2081         Likewise.
2082         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2083         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2084         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2086 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2088         * sysdeps/ieee754/ldbl-opt/Makefile
2089         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2090         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2091         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2093 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2095         [BZ #23983]
2096         * argp/Makefile (headers): Add bits/argp-ldbl.h.
2097         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2098         * argp/bits/argp-ldbl.h: New file.
2099         * include/argp.h: Include stdarg.h.  Add prototypes for internal
2100         functions: __argp_error_internal and __argp_failure_internal.
2101         * include/bits/argp-ldbl.h: New file.
2102         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2103         __nldbl_argp_error and __nldbl_argp_failure.
2104         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2105         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2106         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2107         Redirect argp_error and argp_failure calls.
2108         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2110         Likewise.
2111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2112         Likewise.
2113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2114         Likewise.
2115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2116         Likewise.
2117         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2118         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2119         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2121 2019-03-01  Florian Weimer  <fweimer@redhat.com>
2123         [BZ #20419]
2124         * elf/tst-big-note-lib.S: Create a syntactically valid note.
2125         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2126         code, to avoid creating an ABI tag note.
2127         (modules-names-nobuild): Add tst-big-note-lib.
2129 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
2131         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2132         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2134 2019-03-01  Florian Weimer  <fweimer@redhat.com>
2136         [BZ #20271]
2137         * sysdeps/unix/sysv/linux/netlink_assert_response.c
2138         (__netlink_assert_response): Add additional missing newlines.
2140 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
2142         * sysdeps/powerpc/powerpc32/dl-machine.c
2143         (__elf_machine_fixup_plt): Use space before '('.
2144         (__process_machine_rela): Likewise.
2145         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2146         Likewise.
2147         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2148         Likewise.
2149         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2150         Likewise.
2151         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2152         (pattern): Likewise.
2153         (delta): Likewise.
2154         (check_result): Likewise.
2155         (check_excepts): Likewise.
2156         (check_op): Likewise.
2157         (fail_xr): Likewise.
2158         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2159         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2160         (SCNHSZ): Likewise.
2161         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2162         Likewise.
2163         (ARGS): Likewise.
2164         (__makecontext): Likewise.
2165         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2166         Likewise.
2168 2019-02-28  Florian Weimer  <fweimer@redhat.com>
2170         [BZ #23937]
2171         elf: Add test with a local IFUNC resolver.
2172         * elf/ifuncmain9.c: New file.
2173         * elf/ifuncmain9pic.c: Likewise.
2174         * elf/ifuncmain9picstatic.c: Likewise.
2175         * elf/ifuncmain9pie.c: Likewise.
2176         * elf/ifuncmain9static.c: Likewise.
2177         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2178         ifuncmain9static, ifuncmain9picstatic.
2179         * elf/Makefile [multi-arch && build-shared] (tests-internal):
2180         Add ifuncmain9, ifuncmain9pic.
2181         * elf/Makefile [multi-arch && build-shared && have-fpie]
2182         (ifunc-pie-tests): Add ifuncmain9pie.
2183         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2184         (CFLAGS-ifuncmain9picstatic.c): Likewise.
2185         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2187 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
2189         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2190         * configure: Regenerated.
2191         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2193 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2196         symbol as __wcspcy instead of wcscpy.
2198 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2200         * include/stdio.h (__renameat2): New hidden prototype.
2201         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2202         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2203         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2204         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2206 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
2208         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2209         if statement.
2211         * benchtests/bench-strcpy.c (do_test): Use space before '('.
2212         * benchtests/bench-string.h (cmdline_process_function): Likewise.
2213         * benchtests/bench-strlen.c (do_test): Likewise.
2214         (test_main): Likewise.
2215         * catgets/gencat.c (read_old): Likewise.
2216         * elf/cache.c (load_aux_cache): Likewise.
2217         * iconvdata/bug-iconv8.c (do_test): Likewise.
2218         * math/test-tgmath-ret.c (do_test): Likewise.
2219         * nis/nis_call.c (rec_dirsearch): Likewise.
2220         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2221         * nptl/tst-audit-threads.c (do_test): Likewise.
2222         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2223         * nss/nss_test1.c (init): Likewise.
2224         * nss/test-netdb.c (test_hosts): Likewise.
2225         * posix/execvpe.c (maybe_script_execute): Likewise.
2226         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2227         * stdio-common/tst-printf.c (do_test): Likewise.
2228         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2229         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2230         * stdlib/qsort.c (STACK_SIZE): Likewise.
2231         * stdlib/test-canon.c (do_test): Likewise.
2232         * stdlib/tst-swapcontext1.c (do_test): Likewise.
2233         * string/memcmp.c (OPSIZ): Likewise.
2234         * string/test-strcpy.c (do_test): Likewise.
2235         (do_random_tests): Likewise.
2236         * string/test-strlen.c (do_test): Likewise.
2237         (test_main): Likewise.
2238         * string/test-strrchr.c (do_test): Likewise.
2239         (do_random_tests): Likewise.
2240         * string/tester.c (test_memrchr): Likewise.
2241         (test_memchr): Likewise.
2242         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2243         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2244         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2245         (read_encoded_value_with_base): Likewise.
2246         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2247         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2248         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2249         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2250         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2251         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2252         Likewise.
2253         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2254         Likewise.
2255         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2256         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2257         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2258         Likewise.
2259         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2260         Likewise.
2261         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2262         Likewise.
2263         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2264         Likewise.
2265         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2266         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2267         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2268         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2269         * time/test_time.c (main): Likewise.
2271 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2273         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2275         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2276         wmemcpy.
2278         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2279         wmemcpy.
2281         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2283         * include/wchar.h (__wcscpy): New prototype.
2284         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2285         (__wcscpy): Route internal symbol to generic implementation.
2286         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2287         Add internal __wcscpy alias.
2288         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2289         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2290         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2291         * wcsmbs/wcscpy.c (wcscpy): Add
2292         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2293         use generic implementation.
2294         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2296         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2297         wmemset.
2299         * sysdeps/m68k/wcpcpy.c: Remove file.
2300         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2302 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
2304         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2305         than after operators.
2306         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2307         * sysdeps/mach/hurd/getcwd.c
2308         (__hurd_canonicalize_directory_name_internal): Likewise.
2309         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2310         (pthread_mutex_consistent): Likewise.
2311         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2312         Likewise.
2313         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2314         (__pthread_mutex_transfer_np): Likewise.
2315         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2316         (__pthread_mutex_unlock): Likewise.
2317         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2318         (mtx_owned_p): Likewise.
2319         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2320         (pthread_mutexattr_getrobust): Likewise.
2321         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2322         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2323         Likewise.
2324         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2325         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2326         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2327         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2328         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2329         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2330         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2331         Likewise.
2332         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2333         Likewise.
2334         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2335         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2336         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2337         (____longjmp_chk): Likewise.
2338         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2339         Likewise.
2340         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2341         (INTERNAL_SYSCALL): Likewise.
2342         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2343         (INTERNAL_SYSCALL): Likewise.
2344         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2345         (__get_clockfreq_via_cpuinfo): Likewise.
2347         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2348         comments.
2349         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2350         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2351         (WORD_COPY_BWD): Likewise.
2352         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2353         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2354         Likewise.
2355         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2356         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2357         comment.
2358         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2360 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
2362         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2363         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2364         rather than after operators.
2365         * elf/cache.c (print_cache): Likewise.
2366         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2367         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2368         * hurd/hurdinit.c (_hurd_setproc): Likewise.
2369         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2370         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2371         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2372         (reauth_proc): Likewise.
2373         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2374         (__file_name_split_at): Likewise.
2375         (__directory_name_split_at): Likewise.
2376         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2377         * hurd/port2fd.c (_hurd_port2fd): Likewise.
2378         * iconv/gconv_dl.c (do_print): Likewise.
2379         * inet/netinet/in.h (struct sockaddr_in): Likewise.
2380         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2381         * locale/setlocale.c (new_composite_name): Likewise.
2382         * malloc/memusagestat.c (main): Likewise.
2383         * misc/fstab.c (fstab_convert): Likewise.
2384         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2385         Likewise.
2386         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2387         (getgrent_next_file): Likewise.
2388         (internal_getgrnam_r): Likewise.
2389         (internal_getgrgid_r): Likewise.
2390         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2391         Likewise.
2392         (internal_getgrent_r): Likewise.
2393         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2394         (getpwent_next_nss): Likewise.
2395         (getpwent_next_file): Likewise.
2396         (internal_getpwnam_r): Likewise.
2397         (internal_getpwuid_r): Likewise.
2398         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2399         Likewise.
2400         (getspent_next_nss): Likewise.
2401         (internal_getspnam_r): Likewise.
2402         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2403         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2404         * string/strchr.c (STRCHR): Likewise.
2405         * string/strchrnul.c (STRCHRNUL): Likewise.
2406         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2407         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2408         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2409         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2410         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2411         Likewise.
2412         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2413         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2414         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2415         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2416         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2417         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2418         (open_file): Likewise.
2419         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2420         (pthread_mutexattr_setprotocol): Likewise.
2421         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2422         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2423         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2424         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2425         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2426         Likewise.
2427         (elf_machine_rela): Likewise.
2428         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2429         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2430         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2431         * sysdeps/posix/rename.c (rename): Likewise.
2432         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2433         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2434         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2435         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2436         * sysdeps/unix/grantpt.c (grantpt): Likewise.
2437         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2438         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2439         Likewise.
2440         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2441         Likewise.
2442         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2443         * time/tzfile.c (__tzfile_compute): Likewise.
2445 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
2447         * benchtests/bench-memmem.c (simple_memmem): Break lines before
2448         rather than after operators.
2449         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2450         * crypt/md5.c (md5_finish_ctx): Likewise.
2451         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2452         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2453         * elf/cache.c (load_aux_cache): Likewise.
2454         * elf/dl-load.c (open_verify): Likewise.
2455         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2456         * elf/readelflib.c (process_elf_file): Likewise.
2457         * elf/rtld.c (dl_main): Likewise.
2458         * elf/sprof.c (generate_call_graph): Likewise.
2459         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2460         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2461         * hurd/dtable.c (reauth_dtable): Likewise.
2462         * hurd/getdport.c (__getdport): Likewise.
2463         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2464         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2465         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2466         Likewise.
2467         * hurd/hurdioctl.c (fioctl): Likewise.
2468         * hurd/hurdselect.c (_hurd_select): Likewise.
2469         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2470         (STOPSIGS): Likewise.
2471         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2472         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2473         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2474         * hurd/msgportdemux.c (msgport_server): Likewise.
2475         * hurd/setauth.c (_hurd_setauth): Likewise.
2476         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2477         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2478         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2479         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2480         * login/tst-utmp.c (do_check): Likewise.
2481         (simulate_login): Likewise.
2482         * mach/lowlevellock.h (lll_lock): Likewise.
2483         (lll_trylock): Likewise.
2484         * math/test-fenv.c (ALL_EXC): Likewise.
2485         * math/test-fenvinline.c (ALL_EXC): Likewise.
2486         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2487         * nis/nis_call.c (__do_niscall3): Likewise.
2488         * nis/nis_callback.c (cb_prog_1): Likewise.
2489         * nis/nis_defaults.c (searchaccess): Likewise.
2490         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2491         * nis/nis_ismember.c (internal_ismember): Likewise.
2492         * nis/nis_local_names.c (nis_local_principal): Likewise.
2493         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2494         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2495         Likewise.
2496         * nis/ypclnt.c (yp_match): Likewise.
2497         (yp_first): Likewise.
2498         (yp_next): Likewise.
2499         (yp_master): Likewise.
2500         (yp_order): Likewise.
2501         * nscd/hstcache.c (cache_addhst): Likewise.
2502         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2503         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2504         (internal_getpwuid_r): Likewise.
2505         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2506         * posix/glob.h (__GLOB_FLAGS): Likewise.
2507         * posix/regcomp.c (peek_token): Likewise.
2508         (peek_token_bracket): Likewise.
2509         (parse_expression): Likewise.
2510         * posix/regexec.c (sift_states_iter_mb): Likewise.
2511         (check_node_accept_bytes): Likewise.
2512         * posix/tst-spawn3.c (do_test): Likewise.
2513         * posix/wordexp-test.c (testit): Likewise.
2514         * posix/wordexp.c (parse_tilde): Likewise.
2515         (exec_comm): Likewise.
2516         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2517         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2518         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2519         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2520         * stdio-common/tst-fileno.c (do_test): Likewise.
2521         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2522         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2523         * stdlib/strtod_l.c (round_and_return): Likewise.
2524         (____STRTOF_INTERNAL): Likewise.
2525         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2526         * string/strcspn.c (STRCSPN): Likewise.
2527         * string/test-memmem.c (simple_memmem): Likewise.
2528         * termios/tcsetattr.c (tcsetattr): Likewise.
2529         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2530         * time/asctime.c (asctime_internal): Likewise.
2531         * time/strptime_l.c (__strptime_internal): Likewise.
2532         * time/sys/time.h (timercmp): Likewise.
2533         * time/tzfile.c (__tzfile_compute): Likewise.
2535 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
2537         [BZ #21915]
2538         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2540 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2542         * argp/argp-help.c (__argp_error_internal): New function,
2543         renamed from __argp_error, but that takes a 'mode_flags'
2544         parameter to control the format of long double parameters.
2545         (__argp_error): Converted into a call __argp_error_internal.
2546         (__argp_failure_internal): New function, renamed from
2547         __argp_failure, but that takes a 'mode_flags' parameter.
2548         (__argp_failure): Converted into a call __argp_failure_internal.
2549         * misc/err.c (__vwarnx_internal): New function, renamed from
2550         vwarnx, but that takes a 'mode_flags' parameter.
2551         (vwarnx): Converted into a call to __vwarnx_internal.
2552         (__vwarn_internal): New function, renamed from vwarn, but that
2553         takes a 'mode_flags' parameter.
2554         (vwarn): Converted into a call to __vwarn_internal.
2555         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2556         call to __vfxprintf with 'mode_flags'.
2557         (__error_internal): New function, renamed from error, but that
2558         takes a 'mode_flags' parameter.
2559         (error): Converted into a call to __error_internal.
2560         (__error_at_line_internal): New function, renamed from
2561         error_at_line, but that takes a 'mode_flags' parameter.
2562         (error_at_line): Converted into a call to
2563         __error_at_line_internal.
2564         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2565         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2566         Likewise.
2568 2019-02-20  Martin Liska  <mliska@suse.cz>
2570         * math/Makefile: Install math-vector-fortran.h.
2571         * bits/math-vector-fortran.h: New file.
2572         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2574 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2576         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2577         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2579 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
2581         * nptl/pthread_mutex_trylock.c: Fix comment.
2583 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
2585         * nptl/pthread_tryjoin.c: Fix comment.
2587 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
2589         [BZ #24231]
2590         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2591         after R_SPARC_H34 case.
2593 2019-02-18  Florian Weimer  <fweimer@redhat.com>
2595         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2596         (getanswer): Do not call Dprintf.
2597         (res_gethostbyname2_context): Likewise.
2598         (res_gethostbyaddr_context): Likewise.
2600 2019-02-18  Florian Weimer  <fweimer@redhat.com>
2602         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2603         declaration.
2604         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2605         Remove definitions.
2606         * libio/stdfiles.c: Update comment.
2607         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
2608         set _IO_stdin, _IO_stdout, _IO_stderr.
2609         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2610         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2611         inline function.
2612         (_IO_deallocate_file): New inline function.
2613         * libio/iolibio.h (_IO_vprintf): Remove definition.
2614         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2615         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2616         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2617         _IO_legacy_file.
2618         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2619         __builtin_expect.  Use _IO_legacy_file.
2621 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
2623         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2624         Initialize ctid with a known value and remove update of ctid
2625         after clone.
2626         (wait_tid): Adjust arguments and call futex_wait with ctid_val
2627         as assumed current value of ctid_ptr.
2629 2019-02-16  Florian Weimer  <fweimer@redhat.com>
2631         Check that non-sysdeps headers have wrapper headers.
2632         * scripts/check-wrapper-headers.py: New file.
2633         * Makefile (tests-special): Add check-wrapper-headers.out.
2634         (check-wrapper-headers.out): New target.
2635         * Rules (tests-special): Add check-wrapper-headers.out.
2636         (check-wrapper-headers.out): New target.
2638 2019-02-16  Florian Weimer  <fweimer@redhat.com>
2640         Add missing header wrappers under include/.
2641         * include/ar.h: New file.
2642         * include/bits/mqueue2.h: Likewise.
2643         * include/bits/stdio.h: Likewise.
2644         * include/bits/stdio2.h: Likewise.
2645         * include/fstab.h: Likewise.
2646         * include/fts.h: Likewise.
2647         * include/lastlog.h: Likewise.
2648         * include/netinet/icmp6.h: Likewise.
2649         * include/netinet/igmp.h: Likewise.
2650         * include/netinet/ip6.h: Likewise.
2651         * include/re_comp.h: Likewise.
2652         * include/regexp.h: Likewise.
2653         * include/rpcsvc/bootparam.h: Likewise.
2654         * include/rpcsvc/yp_prot.h: Likewise.
2655         * include/sys/random.h: Likewise.
2656         * include/sys/stropts.h: Likewise.
2657         * include/sys/ttychars.h: Likewise.
2658         * include/sys/vfs.h: Likewise.
2659         * include/wait.h: Likewise.
2661 2019-02-16  Florian Weimer  <fweimer@redhat.com>
2663         * nptl_db/proc_service.h: Move to ...
2664         * sysdeps/nptl/proc_service.h: ... here.
2665         * nptl_db/thread_db.h: Move to ...
2666         * sysdeps/nptl/thread_db.h: ... here.
2667         * nptl/descr.h: Include <thread_db.h>.
2669 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2671         * io/Makefile (tests): Add tst-lockf.
2672         * io/lockf.c (lockf): Use __fcntl and only define for
2673         !__OFF_T_MATCHES_OFF64_T.
2674         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2675         __OFF_T_MATCHES_OFF64_T case.
2676         * io/tst-lockf.c: New file.
2677         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2678         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2679         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2680         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2681         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2683         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2684         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2685         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2687 2019-02-15  Florian Weimer  <fweimer@redhat.com>
2689         [BZ #24211]
2690         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2691         pd->result after the thread descriptor has been freed.
2693 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
2695         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2696         from function return type.
2698         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2700 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2702         * scripts/test_printers_common.py: Set TERM to a known harmless
2703         value.
2705 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
2707         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2708         (xdr_u_int): Likewise.
2709         (xdr_enum): Likewise.
2710         (xdr_bytes): Reword fall-through comment.
2711         (xdr_string): Likewise.
2713 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2715         [BZ #2421]
2716         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2717         (tests): Add tst-join8 tst-join9.
2718         * nptl/lll_timedwait_tid.c: Remove file.
2719         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2720         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2721         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2722         * nptl/pthread_join_common.c (timedwait_tid): New function.
2723         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2724         is set.
2725         * nptl/tst-join5.c (thread_join): New function.
2726         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2727         check.
2728         * nptl/tst-join8.c: New file.
2729         * nptl/tst-join9.c: Likewise.
2730         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2731         lll_futex_timed_wait_cancel): Add generic macros.
2732         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2733         Remove definitions.
2734         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2735         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2736         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2737         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2738         Remove function.
2739         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2740         Likewise.
2741         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2742         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2743         (lll_futex_timed_wait_cancel): New macro.
2745 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
2747         * benchtests/Makefile: Add malloc-simple benchmark.
2748         * benchtests/bench-malloc-simple.c: New benchmark.
2750 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2752         * benchtests/bench-memmove.c (do_one_test): Remove unused
2753         ORIG_SRC.
2754         (do_test): Adjust.
2755         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2756         ORIG_SRC.
2757         (do_test): Adjust.
2759 2019-01-13  Jim Wilson  <jimw@sifive.com>
2761         [BZ #24040]
2762         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2763         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2764         (func): New.
2765         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
2766         call func directly.
2767         * nptl/Makefile (tests): Add tst-unwind-thread.
2768         (CFLAGS-tst-unwind-thread.c): Define.
2769         * nptl/tst-unwind-thread.c: New file.
2770         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2771         as undefined.
2773 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
2775         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2776         comment wording.
2777         * nis/nis_call.c (__do_niscall3): Likewise.
2779         * catgets/gencat.c (normalize_line): Use braces around empty
2780         'else' body.
2781         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2782         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2783         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2784         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2785         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2786         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2787         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2788         definition.
2790         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2791         execlp returns.
2793 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
2795         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2796         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2797         * benchtests/bench-strchr.c (stupid_strchr): Remove.
2798         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2799         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2800         * benchtests/bench-strlen.c (builtin_strlen): Remove.
2801         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2802         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2803         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2804         * benchtests/bench-strspn.c (stupid_strspn): Remove.
2805         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2806         * benchtests/bench-bcopy.c: Delete file.
2807         * benchtests/bench-bzero.c: Likewise.
2808         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2809         (simple_memccpy): Remove.
2810         (generic_memccpy): Add function.
2811         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2812         * benchtests/bench-memmove.c (simple_bcopy): Remove.
2813         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2814         (generic_mempcpy): Add new function.
2815         * benchtests/bench-memset.c (simple_bzero): Remove.
2816         (builtin_bzero): Remove.
2817         (builtin_memset): Remove.
2818         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2819         (generic_rawmemchr): Add new function.
2821 2019-02-12  Florian Weimer  <fweimer@redhat.com>
2823         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2825 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2827         [BZ #24122]
2828         * elf/Makefile (tests): Add tst-audit13.
2829         (modules-names): Add tst-audit13mod1.
2830         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2831         rule.
2832         * elf/tst-audit13.c: New file.
2833         * elf/tst-audit13mod1.c: Likewise.
2835 2019-02-12  Florian Weimer  <fweimer@redhat.com>
2837         [BZ #24122]
2838         * elf/rtld.c (unload_audit_module): New function.
2839         (report_audit_module_load_error): Likewise.
2840         (load_audit_module): Likewise.  Extracted from dl_main.  Call
2841         _dl_close if the laversion symbol cannot be found.  Use early
2842         returns for error handling.  Add malloc error check.  Check for a
2843         zero return value from la_version.  Remove spurious comment about
2844         static TLS initialization.  Remove useless casts.
2845         (notify_audit_modules_of_loaded_object): New function.  Extracted
2846         from dl_main.
2847         (load_audit_module): Likewise.
2848         (dl_main): Call load_audit_modules.
2850 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
2852         * elf/dl-exception.c (_dl_exception_create_format): Add
2853         fall-through comments.
2854         * elf/ldconfig.c (parse_conf_include): Likewise.
2855         * elf/rtld.c (print_statistics): Likewise.
2856         * locale/programs/charmap.c (parse_charmap): Likewise.
2857         * misc/mntent_r.c (__getmntent_r): Likewise.
2858         * posix/wordexp.c (parse_arith): Likewise.
2859         (parse_backtick): Likewise.
2860         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2861         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2862         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2864 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
2866         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2867         Use float instead of double.
2869 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2871         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2873 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
2875         * sysdeps/powerpc/bits/mathinline.h: Remove.
2877 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2879         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2880         * math/bits/math-finite.h: Move to ...
2881         * bits/math-finite.h: ... here.
2883 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2885         * sysdeps/generic/bits/unistd_ext.h: Move to ...
2886         * bits/unistd_ext.h: here.
2888 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
2890         [BZ #21915]
2891         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2892         * nss/tst-nss-files-hosts-long.c: New file.
2893         * nss/tst-nss-files-hosts-long.root: New directory.
2894         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2895         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2897 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2899         * include/bits/unistd_ext.h: Remove file.
2900         * posix/bits/unistd_ext.h: Move to ...
2901         * sysdeps/generic/bits/unistd_ext.h: ... here.
2903 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2905         * include/bits/unistd_ext.h: New file.
2907 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2909         * time/tst-strftime2.c: Use array_length macros instead of magic
2910         numbers.
2912 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2914         [BZ #24161]
2915         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2916         argument.
2917         * nptl/register-atfork.c (__run_fork_handlers): Only perform
2918         locking if the new do_locking argument is true.
2919         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2920         __run_fork_handlers.
2922 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2924         [BZ #6399]
2925         Linux: Add gettid system call wrapper.
2926         * posix/Makefile (headers): Add bits/unistd_ext.h.
2927         * posix/bits/unistd_ext.h: New file.
2928         * posix/unistd.h: Include it.
2929         * manual/process.texi (Process Identification): Document gettid.
2930         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2931         tst-gettid, tst-gettid-kill.
2932         (tst-gettid): Link with $(shared-thread-library).
2933         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2934         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2935         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2936         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2937         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2938         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2939         Add gettid.
2940         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2941         Likewise.
2942         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2943         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2944         Likewise.
2945         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2946         Likewise.
2947         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2948         Likewise.
2949         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2950         Likewise.
2951         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2952         Likewise.
2953         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2954         Likewise.
2955         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2956         Likewise.
2957         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2958         (GLIBC_2.30): Likewise.
2959         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2960         (GLIBC_2.30): Likewise.
2961         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2962         (GLIBC_2.30): Likewise.
2963         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2964         (GLIBC_2.30): Likewise.
2965         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2966         Likewise.
2967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2968         (GLIBC_2.30): Likewise.
2969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2970         (GLIBC_2.30): Likewise.
2971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2972         (GLIBC_2.30): Likewise.
2973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2974         (GLIBC_2.30): Likewise.
2975         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2976         Likewise.
2977         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2978         Likewise.
2979         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2980         Likewise.
2981         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2982         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2983         Likewise.
2984         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2985         Likewise.
2986         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2987         Likewise.
2988         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2989         Likewise.
2990         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2992 2019-02-08  Florian Weimer  <fweimer@redhat.com>
2994         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2995         compatibility symbols.
2997 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
2999         [BZ #24180]
3000         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3001         Add compiler barriers and comments.
3003 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3005         * include/array_length.h (array_length): Do not use a statement
3006         expression and _Static_assert, so that array_length can be used at
3007         file scope and as a constant expression.
3009 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3011         * support/xdlfcn.h (xdlmopen): Declare.
3012         * support/xdlmopen.c: New file.
3013         * support/Makefile (libsupport-routines): Add xdlmopen.
3015 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
3017         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3018         before return type, without separate inline.
3019         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3020         * elf/dl-tunables.h (tunable_is_name): Likewise.
3021         * malloc/malloc.c (do_set_trim_threshold): Likewise.
3022         (do_set_top_pad): Likewise.
3023         (do_set_mmap_threshold): Likewise.
3024         (do_set_mmaps_max): Likewise.
3025         (do_set_mallopt_check): Likewise.
3026         (do_set_perturb_byte): Likewise.
3027         (do_set_arena_test): Likewise.
3028         (do_set_arena_max): Likewise.
3029         (do_set_tcache_max): Likewise.
3030         (do_set_tcache_count): Likewise.
3031         (do_set_tcache_unsorted_limit): Likewise.
3032         * nis/nis_subr.c (count_dots): Likewise.
3033         * nptl/allocatestack.c (advise_stack_range): Likewise.
3034         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3035         (do_sin): Likewise.
3036         (reduce_sincos): Likewise.
3037         (do_sincos): Likewise.
3038         * sysdeps/unix/sysv/linux/x86/elision-conf.c
3039         (do_set_elision_enable): Likewise.
3040         (TUNABLE_CALLBACK_FNDECL): Likewise.
3042 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3044         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3045         (xdlsym): Use dlerror to detect a NULL symbol.
3047 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3049         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3050         <stap-probe.h>.
3051         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3053 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3055         * libio/tst-bz24153.c (wide): Use wide char format specifier.
3057 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3059         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3060         __wmemcmp and weak alias to wmemcmp.
3062 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3064         [BZ #23403]
3065         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3066         TLS_TCB_AT_TP tls variant.
3067         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3068         Add alignment checks.
3069         * support/Makefile (libsupport-routines): Add xposix_memalign and
3070         xpthread_setstack.
3071         * support/support.h: Add xposix_memalign.
3072         * support/xthread.h: Add xpthread_attr_setstack.
3073         * support/xposix_memalign.c: New File.
3074         * support/xpthread_attr_setstack.c: Likewise.
3076 2019-02-05  Florian Weimer  <fweimer@redhat.com>
3078         [BZ #24164]
3079         arm: Use "nr" constraint for Systemtap probes, to avoid the
3080         compiler using memory operands for constants, due to the "o"
3081         alternative in the default "nor" constraint.
3082         * include/stap-probe.h [USE_STAP_PROBE]: Include
3083         <stap-probe-machine.h>
3084         * sysdeps/generic/stap-probe-machine.h: New file.
3085         * sysdeps/arm/stap-probe-machine.h: Likewise.
3087 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
3089         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3090         with 0, not tcache->entries[tc_idx].
3092         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3093         once.
3095 2019-02-04  Andreas Schwab  <schwab@suse.de>
3097         [BZ #16976]
3098         [BZ #17396]
3099         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3100         looking up collating elements match against (wide) character
3101         sequence instead of name.  Correct alignment adjustment.
3102         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3103         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3104         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3105         (LOCALES): Add cs_CZ.ISO-8859-2.
3106         * posix/tst-fnmatch4.c: New file.
3107         * posix/tst-fnmatch5.c: New file.
3108         * include/wchar.h (__wmemcmp): Declare.
3109         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3110         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3111         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3112         * sysdeps/s390/wmemcmp.c: Likewise.
3114 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3116         [BZ #24155]
3117         CVE-2019-7309
3118         * NEWS: Updated for CVE-2019-7309.
3119         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
3120         upper 32 bits of RDX register for x32.  Use unsigned Jcc
3121         instructions, instead of signed.
3122         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3123         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3125 2019-02-04  Florian Weimer  <fweimer@redhat.com>
3127         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3128         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3129         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3130         Likewise.
3131         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3132         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3133         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3134         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3135         Likewise.
3136         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3137         Likewise.
3138         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3139         Likewise.
3140         (posix_spawn_file_actions_addopen): Likewise.
3141         (posix_spawn_file_actions_addclose): Likewise.
3142         (posix_spawn_file_actions_adddup2): Likewise.
3143         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
3144         qualifiers.
3145         (posix_spawn_file_actions_addfchdir_np): Likewise.
3147 2019-02-04  David Newall  <glibc@davidnewall.com>
3149         elf: Implement --preload option for the dynamic linker.
3150         * elf/rtld.c (preloadarg): New variable.
3151         (handle_preload_list): Pass through “where” argument to
3152         do_preload.
3153         (dl_main): Handle "--preload" and add second call to
3154         handle_preload_list.
3155         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3156         (tst-rtld-preload-OBJS): Set variable.
3157         (tst-rtld-preload.out): New target.
3158         * elf/tst-rtld-preload.sh: New file.
3160 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
3162         * Makefile (testrun.sh): Exit in case of incorrect argument.
3164 2019-02-04  Florian Weimer  <fweimer@redhat.com>
3166         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3167         alignment gaps.
3169 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3171         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3172         implicit overflow checks.
3174 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
3176         * stdlib/isomac.c: Include <unistd.h>.
3178 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3180         * include/time.h (__tzfile_default): Use int, not long int, for
3181         the GMT offsets.
3182         * time/tzfile.c (struct ttinfo): Change type of the offset member
3183         to int.
3184         (__tzfile_read): Remove useless cast.
3185         (__tzfile_default): Adjust prototype.
3186         * time/tzset.c (tz_rule): Change type of the offset member to int.
3187         (parse_offset): Change the type of the sign variable to int.
3189 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3191         [BZ #24153]
3192         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3193         * libio/getchar.c (getchar): Likewise.
3194         * libio/getchar_u.c (getchar_unlocked): Likewise.
3195         * libio/getwchar.c (getwchar): Likewise.
3196         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3197         * libio/iogets.c (_IO_gets): Likewise.
3198         * libio/vscanf.c (_IO_vscanf): Likewise.
3199         * libio/vwscanf.c (__vwscanf): Likewise.
3200         * libio/tst-bz24153.c: New file.
3201         * libio/Makefile (tests): Add it.
3203 2019-02-02  Florian Weimer  <fweimer@redhat.com>
3205         [BZ #14829]
3206         * manual/resource.texi (Basic Scheduling Functions): Add
3207         portability note.  Change process to task throughout the section.
3208         Remove incorrect comment about sched_yield as it affects
3209         tasks/threads, not entire processes.
3210         * sysdeps/unix/sysv/linux/bits/posix_opt.h
3211         (_POSIX_PRIORITY_SCHEDULING): Update comment.
3213 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
3215         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3216         * configure: Regenerated.
3217         * manual/install.texi (Tools for Compilation): Update minimum GCC
3218         version.
3219         * INSTALL: Regenerated.
3221 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3223         * support/support_test_compare_string.c
3224         (support_test_compare_string): Use "string" in error message.
3225         * support/tst-test_compare_string.c (do_test): Adjust.
3227 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3229         * support/support_format_address_family.c
3230         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3232 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3234         * manual/socket.texi (Internet Address Formats): Clarify the byte
3235         order of struct sockaddr_in, struct sockaddr_in6.  Document
3236         sin6_flowinfo and sin6_scope_id.
3238 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
3240         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3241         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3242         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3243         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3244         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3245         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3247 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3249         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3250         [!MEMCHR](MEMCHR): Set to __memchr.
3251         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3252         Add memchr_generic and memchr_nosimd.
3253         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3254         (__libc_ifunc_impl_list): Add memchr ifuncs.
3255         * sysdeps/aarch64/multiarch/memchr.c: New file.
3256         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3257         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3259 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3261         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3262         Add memset_emag.
3263         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3264         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3265         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3266         Add IS_EMAG check for ifunc dispatch.
3267         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3268         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3270 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3272         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3273         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3274         Add emag.
3275         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3276         New macro.
3278 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
3280         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3282 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
3284         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3285         syscall-template file.
3287 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
3288             Torvald Riegel  <triegel@redhat.com>
3289             Rik Prohaska  <prohaska7@gmail.com>
3291         [BZ# 23844]
3292         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3293         tst-rwlock-trywrlock-stall.
3294         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3295         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3296         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3297         Set __wrphase_fute to 1 only if we started the write phase.
3298         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3299         * nptl/tst-rwlock-trywrlock-stall.c: New file.
3300         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3301         * support/xpthread_rwlock_destroy.c: New file.
3302         * support/xthread.h: Declare xpthread_rwlock_destroy.
3304 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
3306         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3307         version to 4.0.2.
3309 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
3311         [BZ #24051]
3312         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3313         * libio/fileops.c (_IO_new_file_underflow): Likewise
3314         * libio/wfileops.c (_IO_wfile_underflow): Likewise
3315         * libio/putchar.c (putchar): Likewise.
3316         * libio/putchar_u.c (putchar_unlocked): Likewise.
3317         * libio/putwchar.c (putchar): Likewise.
3318         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3319         * libio/tst-bz24051.c: New test.
3320         * libio/Makefile (tests): Add tst-bz24051
3322 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3324         CVE-2019-9169
3325         regex: fix read overrun [BZ #24114]
3326         Problem found by AddressSanitizer, reported by Hongxu Chen in:
3327         https://debbugs.gnu.org/34140
3328         * posix/regexec.c (proceed_next_node):
3329         Do not read past end of input buffer.
3331 2019-01-31  Florian Weimer  <fweimer@redhat.com>
3333         [BZ #24059]
3334         * nss/nss_files/files-alias.c (get_next_alias): Handle
3335         continuation line without newline at the end.
3336         * nss/tst-nss-files-alias-truncated.c: New file.
3337         * nss/Makefile [$(build-shared)] (tests): Add
3338         tst-nss-files-alias-truncated.
3339         (tst-nss-files-alias-truncated): Link with libnss_files.so.
3340         * support/namespace.h (struct support_chroot_configuration): Add
3341         aliases member.
3342         (struct support_chroot): Add path_aliases member.
3343         * support/support_chroot.c (support_chroot_create): Handle
3344         aliases.
3345         (support_chroot_free): Free path_aliases.
3347 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3349         * version.h (RELEASE): Set to "development".
3350         (VERSION): Set to "2.29.9000".
3351         * NEWS: Add section for 2.30.
3353         * version.h (RELEASE): Set to "stable".
3354         (VERSION): Set to "2.29".
3355         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3357         * NEWS: Add the list of bugs fixed in 2.29.
3358         * manual/contrib.texi: Update contributors list with some more
3359         names.
3360         * manual/install.texi: Update latest versions of packages
3361         tested.
3362         * INSTALL: Regenerated.
3364 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3366         * po/be.po: Update translations.
3367         * po/bg.po: Likewise.
3368         * po/ca.po: Likewise.
3369         * po/cs.po: Likewise.
3370         * po/da.po: Likewise.
3371         * po/de.po: Likewise.
3372         * po/el.po: Likewise.
3373         * po/eo.po: Likewise.
3374         * po/es.po: Likewise.
3375         * po/fi.po: Likewise.
3376         * po/fr.po: Likewise.
3377         * po/gl.po: Likewise.
3378         * po/hr.po: Likewise.
3379         * po/hu.po: Likewise.
3380         * po/ia.po: Likewise.
3381         * po/id.po: Likewise.
3382         * po/it.po: Likewise.
3383         * po/ja.po: Likewise.
3384         * po/ko.po: Likewise.
3385         * po/lt.po: Likewise.
3386         * po/nb.po: Likewise.
3387         * po/nl.po: Likewise.
3388         * po/pl.po: Likewise.
3389         * po/pt_BR.po: Likewise.
3390         * po/ru.po: Likewise.
3391         * po/rw.po: Likewise.
3392         * po/sk.po: Likewise.
3393         * po/sl.po: Likewise.
3394         * po/sv.po: Likewise.
3395         * po/tr.po: Likewise.
3396         * po/uk.po: Likewise.
3397         * po/vi.po: Likewise.
3398         * po/zh_CN.po: Likewise.
3399         * po/zh_TW.po: Likewise.
3401 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
3403         [BZ #24130]
3404         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3405         of $f3 register on $y_is_neg path.
3407 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3409         [BZ #24110]
3410         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3411         sigaltstack.ss_flags.
3413 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3415         [BZ #23758]
3416         * manual/time.texi (strftime): Document "%Ey".
3417         * time/strftime_l.c (__strftime_internal): Set the default width
3418         padding with zero of "%Ey" to 2.
3420         [BZ #24096]
3421         * manual/time.texi (strftime): Document "%EC" and "%EY".
3422         * time/Makefile (tests): Add tst-strftime2.
3423         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3424         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3425         override padding for "%Ey".
3426         If an optional flag ('_' or '-') is specified to "%EY", interpret the
3427         "%Ey" in the subformat as if decorated with that flag.
3428         * time/tst-strftime2.c: New file.
3430 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3432         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3433         are not defined.
3435         [BZ #24122]
3436         * elf/Makefile (tests): Add tst-audit13.
3437         (modules-names): Add tst-audit13mod1.
3438         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3439         rule.
3440         * elf/rtld.c (dl_main): Handle invalid audit module version.
3441         * elf/tst-audit13.c: New file.
3442         * elf/tst-audit13mod1.c: Likewise.
3444 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3446         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3447         returned by __hurd_at_flags.
3448         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3449         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3450         directly instead of __hurd_file_name_lookup.
3452 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
3454         * scripts/build-many-glibcs.py (Context.checkout): Default
3455         binutils version to 2.32 branch.
3457 2019-01-21  Florian Weimer  <fweimer@redhat.com>
3459         [BZ #20018]
3460         CVE-2016-10739
3461         resolv: Reject trailing characters in host names
3462         * include/arpa/inet.h (__inet_aton_exact): Declare.
3463         (inet_aton): Remove hidden prototype.  No longer used internally.
3464         * nscd/gai.c (__inet_aton): Do not define.
3465         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3466         * nss/digits_dots.c (__inet_aton): Likewise.
3467         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3468         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3469         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3470         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3471         (tst-resolv-trailing): Likewise.
3472         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3473         libc.
3474         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3475         Make static.  Add endp parameter.
3476         (__inet_aton_exact): New function.
3477         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3478         (__inet_addr): Call inet_aton_end.
3479         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3480         not just IPv6.  Call __inet_aton_exact.
3481         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3482         (tests): Make const.  Add additional test cases with trailing
3483         characters.
3484         (do_test): Use array_length.
3485         * resolv/tst-inet_aton_exact.c: New file.
3486         * resolv/tst-resolv-trailing.c: Likewise.
3487         * resolv/tst-resolv-nondecimal.c: Likewise.
3488         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3490 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3492         [BZ# 24097]
3493         CVE-2019-6488
3494         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3495         Clear the upper 32 bits of RSI register.
3496         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3497         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3498         and tst-size_t-wcsnlen.
3499         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3500         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3502 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3504         [BZ# 24097]
3505         CVE-2019-6488
3506         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3507         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3508         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3509         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3510         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3512 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3514         [BZ# 24097]
3515         CVE-2019-6488
3516         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3517         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3518         * sysdeps/x86_64/strcmp.S: Likewise.
3519         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3520         tst-size_t-strncmp and tst-size_t-wcsncmp.
3521         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3522         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3523         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3525 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3527         [BZ# 24097]
3528         CVE-2019-6488
3529         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3530         RDX_LP for length.  Clear the upper 32 bits of RDX register.
3531         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3532         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3533         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3534         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3536 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3538         [BZ# 24097]
3539         CVE-2019-6488
3540         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3541         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3542         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3543         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3545 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3547         [BZ# 24097]
3548         CVE-2019-6488
3549         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3550         length.  Clear the upper 32 bits of RDX register.
3551         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3552         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3553         Likewise.
3554         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3555         Likewise.
3556         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3557         tst-size_t-wmemchr.
3558         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3560 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3562         [BZ# 24097]
3563         CVE-2019-6488
3564         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3565         length.  Clear the upper 32 bits of RDX register.
3566         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3567         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3568         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3569         tst-size_t-wmemcmp.
3570         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3571         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3573 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3575         [BZ# 24097]
3576         CVE-2019-6488
3577         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
3578         upper 32 bits of RDX register.
3579         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3580         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3581         tst-size_t-wmemchr.
3582         * sysdeps/x86_64/x32/test-size_t.h: New file.
3583         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3584         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3586 2019-01-18  Florian Weimer  <fweimer@redhat.com>
3588         [BZ #24112]
3589         resolv: Do not send queries for non-host-names in nss_dns.
3590         * resolv/nss_dns/dns-host.c (check_name): New function.
3591         (_nss_dns_gethostbyname2_r): Use it.
3592         (_nss_dns_gethostbyname_r): Likewise.
3593         (_nss_dns_gethostbyname4_r): Likewise.
3595 2019-01-21  Florian Weimer  <fweimer@redhat.com>
3597         * resolv/inet_addr.c: Reformat to GNU style.
3598         (__inet_addr, __inet_aton): Update comment.
3600 2019-01-18  Florian Weimer  <fweimer@redhat.com>
3602         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3603         ("malloc: Use current (C11-style) atomics for fastbin access").
3604         This commit introduces a substantial performance regression on
3605         POWER and Aarch64.
3606         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3607         (REMOVE_FB): Define.
3608         (_int_malloc): Use it and reindent.
3609         (_int_free): Use CAS loop with
3610         catomic_compare_and_exchange_val_rel.
3611         (malloc_consolidate): Use atomic_exchange_acq.
3614 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
3616         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
3617         -Wl,-z,now.
3618         (LDFLAGS-tst-minsigstksz-2): Likewise.
3619         (LDFLAGS-tst-minsigstksz-3): Likewise.
3620         (LDFLAGS-tst-minsigstksz-3a): Likewise.
3621         (LDFLAGS-tst-minsigstksz-4): Likewise.
3623 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3625         * manual/time.texi (strftime): Fix the wording to "alternative" rather
3626         than "alternate".
3628 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
3630         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3632 2019-01-16  Zack Weinberg  <zackw@panix.com>
3634         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3635         (xget_sigstack_location): New test support functions.
3636         * support/xsigstack.c: New file, implementing them.
3637         * support/tst-xsigstack.c: New test for them.
3638         * support/Makefile: Update.
3640         * signal/tst-minsigstksz-1.c
3641         * signal/tst-minsigstksz-2.c
3642         * signal/tst-minsigstksz-3.c
3643         * signal/tst-minsigstksz-3a.c
3644         * signal/tst-minsigstksz-4.c: New tests.
3645         * signal/Makefile: Run them.
3647 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3649         * po/libc.pot: Regenerate.
3651 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3653         * math/libm-test-fma.inc (fma_test_data): Set
3654         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3656 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
3658         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3659         (do_test): Changed __vector __int128_t to __vector unsigned int.
3661 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
3663         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3664         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3665         stpcpy-avx2 and stpncpy-avx2.
3666         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3667         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3668         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3669         and __stpncpy_avx2.
3670         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3671         ifunc-strcpy.h}: rename header for a more generic name.
3672         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3673         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3674         AVX unaligned load is fast and vzeroupper is preferred.
3675         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3676         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3677         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3678         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3679         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3680         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3682 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3684         * argp/argp-help.c: Fix typo in comment.
3685         * misc/sys/cdefs.h: Likewise.
3686         * posix/regexec.c (sift_states_iter_mb): Likewise.
3687         * socket/sockatmark.c: Likewise.
3688         * socket/sys/socket.h: Likewise.
3689         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3690         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3691         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3692         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3693         * sysdeps/unix/sockatmark.c: Likewise.
3694         * time/strptime_l.c: Likewise.
3696 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3698         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3699         missing space after the cast of "_NL_CURRENT".
3701 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
3703         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3704         ifdef to fix read of VSCR.
3705         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3706         tst-ucontext-ppc64-vscr.c to test list.
3707         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3709 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
3711         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3712         fall-through.
3714 2019-01-09  Jim Wilson  <jimw@sifive.com>
3716         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3718 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
3720         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3721         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3722         __memcpy_falkor for ares.
3723         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3724         Add new define.
3725         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3726         Add ares cpu.
3728 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
3730         [BZ #24066]
3731         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3732         4_FP_W_TYPEs are used for IEEE quad precision.
3733         * soft-fp/extendhftf2.c: Likewise.
3734         * soft-fp/extendsftf2.c: Likewise.
3735         * soft-fp/extendxftf2.c: Likewise.
3736         * soft-fp/trunctfdf2.c: Likewise.
3737         * soft-fp/trunctfhf2.c: Likewise.
3738         * soft-fp/trunctfsf2.c: Likewise.
3739         * soft-fp/trunctfxf2.c: Likewise.
3740         * sysdeps/alpha/ots_cvttx.c: Likewise.
3741         * sysdeps/alpha/ots_cvtxt.c: Likewise.
3742         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3743         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3744         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3745         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3746         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3747         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3748         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3749         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3750         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3751         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3752         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3753         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3754         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3755         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3756         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3757         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3759 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
3761         [BZ #24024]
3762         * Makeconfig: Build libm with -fno-math-errno but build the remaining
3763         code with -fmath-errno.
3764         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3765         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3766         * string/test-strerror-errno.c: New file.
3768 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
3770         [BZ #24046]
3771         * localedata/locales/en_US (date_fmt): Add, set to
3772         "%a %d %b %Y %r %Z".
3774 2019-01-07  Florian Weimer  <fweimer@redhat.com>
3776         [BZ #24063]
3777         * manual/arith.texi (Math Error Reporting): Use @code{errno}
3778         instead of @var{errno}.
3779         (Parsing of Integers): Likewise.
3780         (Parsing of Floats): Likewise.
3781         * manual/filesys.texi (Working with Directory Trees): Likewise.
3782         (Temporary Files): Likewise.
3783         * manual/job.texi (Terminal Access Functions): Likewise.
3784         * manual/llio.texi (Synchronizing I/O): Likewise.
3785         * manual/math.texi (SVID Random): Likewise.
3786         * manual/message.texi (The catgets Functions): Likewise.
3787         (Translation with gettext): Likewise.
3788         (Locating gettext catalog): Likewise.
3789         (Charset conversion in gettext): Likewise.
3790         * manual/nss.texi (NSS Module Function Internals): Likewise.
3791         * manual/search.texi (Hash Search Function): Likewise.
3792         * manual/setjmp.texi (System V contexts): Likewise.
3793         * manual/time.texi (Sleeping): Likewise.
3794         * manual/users.texi (Lookup User): Likewise.
3795         (Lookup Group): Likewise.
3797 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3799         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3800         fix typo.
3802 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
3804         [BZ #19444]
3805         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3806         __builtin_unreachable for default case in switch.
3807         (__ieee754_yn): Likewise.
3808         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3809         (__ieee754_ynl): Likewise.
3810         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3811         (__ieee754_ynl): Likewise.
3812         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3813         (__ieee754_ynl): Likewise.
3815 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3817         * manual/maint.texi: Use @{ and @}.
3819 2019-01-04  Florian Weimer  <fweimer@redhat.com>
3821         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3822         function.
3823         (do_in_chroot_1): Call it.
3824         (run_chroot_tests):
3825         Improve error reporting in case it is not possible to create a
3826         collision for the PTY name required by the test.
3828 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3830         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3831         lll_wait_tid with timeout.
3832         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3833         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3834         futex_reltimed_wait_cancelable for cancelabla mode.
3835         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3836         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3837         macros.
3838         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3839         * sysdeps/posix/waitid.c (__sigwait): Likewise.
3840         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3841         SYSCALL_CANCEL_NCS): New macro.
3842         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3843         (lll_timedwait_tid): Remove macro.
3844         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3845         Likewise.
3846         (lll_timedwait_tid): Likewise.
3847         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3848         Likewise.
3849         (lll_timedwait_tid): Likewise.
3850         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3851         Likewise.
3852         (lll_timedwait_tid): Likewise.
3853         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3854         Use INTERNAL_SYSCALL_CANCEL.
3855         * sysdeps/unix/sysv/linux/futex-internal.h
3856         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3857         instead of __pthread_{enable,disable}_asynccancel.
3858         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3859         (lll_futex_wait_cancel): New macro.
3861         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3862         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3864         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3865         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3867         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3868         in backtrace analysis.
3869         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3870         side-effects.
3871         (tf_send): Likewise.
3873         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3874         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3875         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3876         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3877         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3878         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3879         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3880         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3881         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3882         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3883         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3884         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3885         Likewise.
3886         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3887         tst-cancel-wrappers.sh.
3888         (generated): Remove tst-cancel-wrappers.out.
3889         (tst-cancel-wrappers.out): Remove rule.
3890         * nptl/tst-cancel-wrappers.sh: Remove file.
3892 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3894         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3895         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3896         Update.
3898 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3900         [BZ #23640]
3901         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3902         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3903         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3904         close-on-exec reset for adddup2 file action.
3905         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3907 2019-01-03  Zack Weinberg  <zackw@panix.com>
3909         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3910         parameter.  Only use deprecated scanf when __USE_GNU is defined
3911         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3912         than 201103L, whichever is relevant for the language being compiled.
3914         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3915         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3916         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3917         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3918         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3920         * libio/iovsscanf.c
3921         * libio/fwscanf.c
3922         * libio/iovswscanf.c
3923         * libio/swscanf.c
3924         * libio/vscanf.c
3925         * libio/vwscanf.c
3926         * libio/wscanf.c
3927         * stdio-common/fscanf.c
3928         * stdio-common/scanf.c
3929         * stdio-common/vfscanf.c
3930         * stdio-common/vfwscanf.c
3931         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3932         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3933         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3934         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3935         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3936         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3937         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3938         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3939         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3940         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3941         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3942         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3943         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3944         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3945         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3947         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
3948         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3949         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3950         not sscanf.
3951         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3952         with a preprocessor macro.
3954         * stdio-common/bug21.c, stdio-common/scanf14.c:
3955         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3956         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3957         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
3958         to xscanf, xfscanf, xsscanf.
3960         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3961         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3962         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3963         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
3964         xfscanf, xsscanf.
3965         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3966         override feature selection macros or provide definitions of u_char etc.
3967         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3968         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3969         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
3970         with -std=gnu89.
3972 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3974         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3975         bits/termios-misc.h.
3976         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3977         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3978         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3979         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3980         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3981         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3983         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3984         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3985         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3986         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3987         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3988         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3989         termios-misc.h.
3990         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3991         (sysdep_headers): Add termios-misc.h.
3993         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3994         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3995         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3997         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3998         termios-tcflow.h.
3999         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4000         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4001         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4002         TCSAFLUSH): Move to termios-tcflow.h.
4003         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4004         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4005         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4006         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4008         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4009         termios-c_lflag.h.
4010         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4011         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4012         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4013         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4014         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4015         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4016         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4017         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4018         Likewise.
4019         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4020         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4021         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4022         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4024         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4025         termios-c_cflag.h.
4026         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4027         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4028         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4029         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4030         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4031         termios-c_cflag.h.
4032         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4033         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4034         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4035         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4037         [BZ #23783]
4038         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4039         termios-baud.h.
4040         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4041         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4042         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4043         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4044         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4045         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4046         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4047         __MAX_BAUD): Move to termios-baud.h.
4048         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4049         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4050         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4051         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4052         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4054         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4055         termios-c_oflag.h.
4056         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4057         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4058         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4059         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4060         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4061         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
4062         termios-c_oflag.h.
4063         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4064         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4065         FFR1): Likewise.
4066         [USE_MISC] (XTABS): Likewise.
4067         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4068         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4069         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4070         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4072         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4073         termios-c_iflag.h.
4074         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4075         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4076         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4077         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4078         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4079         IUTF8): Move to termios-c_iflag.h.
4080         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4081         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4082         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4083         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4085         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4086         termios-cc.h.
4087         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4088         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4089         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4090         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4091         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4092         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4093         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4094         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4095         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4096         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4097         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4098         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4100         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4101         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4102         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4103         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4104         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4105         termios-struct.h.
4106         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4107         termios-struct.h.
4108         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4109         Likewise.
4110         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4111         Likewise.
4112         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4113         Likewise.
4114         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4115         Likewise.
4116         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4117         _HAVE_C_OSPEED): Define.
4118         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4119         _HAVE_C_OSPEED): Likewise.
4120         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4121         _HAVE_C_OSPEED): Likewise.
4122         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4123         (cfsetospeed): Check for define value instead of existence.
4124         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4125         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4126         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4127         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4128         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4130         [BZ #17783]
4131         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4132         Define.
4133         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4134         (TIOCSER_TEMT): Likewise.
4135         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4136         (TEOCSER_TEMT): Likewise.
4138 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
4140         [BZ #24011]
4141         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4143 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
4145         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4147 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4149         * sysdeps/htl/pt-barrierattr-setpshared.c
4150         (pthread_barrierattr_setpshared): Add stub warning.
4151         * sysdeps/htl/pt-condattr-setpshared.c
4152         (pthread_condattr_setpshared): Likewise.
4153         * sysdeps/htl/pt-mutexattr-setpshared.c
4154         (pthread_mutexattr_setpshared): Likewise.
4155         * sysdeps/htl/pt-rwlockattr-setpshared.c
4156         (pthread_rwlockattr_setpshared): Likewise.
4157         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4158         (pthread_mutexattr_setpshared): Likewise.
4160 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
4162         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4163         constants to match with Linux 4.20.
4165         * sysdeps/mips/mips32/libm-test-ulps: Update.
4166         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4168 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4170         [BZ #24034]
4171         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4172         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4173         than __typeof (...) for the a_ptr variable.
4175 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4177         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4178         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4179         * libio/Makefile (tests): Add tst-sprintf-ub and
4180         tst-sprintf-chk-ub.
4181         (CFLAGS-tst-sprintf-ub.c): New variable.
4182         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4183         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4184         destination buffer and check for overflows in fortified mode.
4185         * libio/libioP.h (PRINTF_CHK): New macro.
4186         * libio/tst-sprintf-chk-ub.c: New file.
4187         * libio/tst-sprintf-ub.c: Likewise.
4189 2019-01-02  Florian Weimer  <fweimer@redhat.com>
4191         [BZ #24018]
4192         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4193         failure.
4195 2019-01-02  Florian Weimer  <fweimer@redhat.com>
4197         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4199 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
4201         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4202         macro.
4204         * sysdeps/unix/sysv/linux/netpacket/packet.h
4205         (PACKET_IGNORE_OUTGOING): New macro.
4207         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4208         macro.
4210         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4211         version to 4.20.
4212         (riscv_flush_icache): New syscall.
4214         * manual/texinfo.tex: Update to version 2018-12-28.17 with
4215         trailing whitespace removed.
4216         * scripts/config.guess: Update to version 2019-01-01.
4217         * scripts/config.sub: Update to version 2019-01-01.
4218         * scripts/move-if-change: Update from gnulib.
4220         * NEWS: Update copyright dates.
4221         * catgets/gencat.c (print_version): Likewise.
4222         * csu/version.c (banner): Likewise.
4223         * debug/catchsegv.sh: Likewise.
4224         * debug/pcprofiledump.c (print_version): Likewise.
4225         * debug/xtrace.sh (do_version): Likewise.
4226         * elf/ldconfig.c (print_version): Likewise.
4227         * elf/ldd.bash.in: Likewise.
4228         * elf/pldd.c (print_version): Likewise.
4229         * elf/sotruss.sh: Likewise.
4230         * elf/sprof.c (print_version): Likewise.
4231         * iconv/iconv_prog.c (print_version): Likewise.
4232         * iconv/iconvconfig.c (print_version): Likewise.
4233         * locale/programs/locale.c (print_version): Likewise.
4234         * locale/programs/localedef.c (print_version): Likewise.
4235         * login/programs/pt_chown.c (print_version): Likewise.
4236         * malloc/memusage.sh (do_version): Likewise.
4237         * malloc/memusagestat.c (print_version): Likewise.
4238         * malloc/mtrace.pl: Likewise.
4239         * manual/libc.texinfo: Likewise.
4240         * nptl/version.c (banner): Likewise.
4241         * nscd/nscd.c (print_version): Likewise.
4242         * nss/getent.c (print_version): Likewise.
4243         * nss/makedb.c (print_version): Likewise.
4244         * posix/getconf.c (main): Likewise.
4245         * scripts/test-installation.pl: Likewise.
4246         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4248         * All files with FSF copyright notices: Update copyright dates
4249         using scripts/update-copyrights.
4250         * locale/programs/charmap-kw.h: Regenerated.
4251         * locale/programs/locfile-kw.h: Likewise.
4253 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
4255         * timezone/zdump.c: Update from tzcode 2018i.
4256         * timezone/zic.c: Likewise.
4258 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4260         regex: improve Gnulib port to AIX
4261         From the glibc point of view, this removes duplicate macro
4262         definitions and is obviously safe.
4263         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4264         * posix/regex_internal.h:
4265         (__attribute__, __attribute_warn_unused_result__):
4266         Remove; already defined elsewhere.
4268 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
4270         [BZ #24027]
4271         * malloc/malloc.c (_int_realloc): Always call memcpy for the
4272         copying operation.  (ncopies had the wrong type, resulting in an
4273         integer wraparound and too few elements being copied.)
4275 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
4277         [BZ #24022]
4278         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4279         <asm/syscalls.h> exists with __has_include__ before including it.
4281 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
4283         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4284         version to 4.20.
4286 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
4288         * hurd/lookup-retry: Include <unistd.h>.
4289         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4290         Release it on return.  Handle "pid" magical lookup retry.
4292 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
4294         [BZ #10496]
4295         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4296         (t_fmt_ampm): Likewise.
4297         * localedata/locales/aa_ER (t_fmt): Likewise.
4298         (t_fmt_ampm): Likewise.
4299         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4300         (t_fmt_ampm): Likewise.
4301         * localedata/locales/aa_ET (t_fmt): Likewise.
4302         (t_fmt_ampm): Likewise.
4303         * localedata/locales/am_ET (t_fmt): Likewise.
4304         (t_fmt_ampm): Likewise.
4305         * localedata/locales/byn_ER (t_fmt): Likewise.
4306         (t_fmt_ampm): Likewise.
4307         * localedata/locales/om_ET (t_fmt): Likewise.
4308         (t_fmt_ampm): Likewise.
4309         * localedata/locales/sid_ET (t_fmt): Likewise.
4310         (t_fmt_ampm): Likewise.
4311         * localedata/locales/so_DJ (t_fmt): Likewise.
4312         (t_fmt_ampm): Likewise.
4313         * localedata/locales/so_ET (t_fmt): Likewise.
4314         (t_fmt_ampm): Likewise.
4315         * localedata/locales/so_SO (t_fmt): Likewise.
4316         (t_fmt_ampm): Likewise.
4317         * localedata/locales/ti_ER (t_fmt): Likewise.
4318         (t_fmt_ampm): Likewise.
4319         * localedata/locales/ti_ET (t_fmt): Likewise.
4320         (t_fmt_ampm): Likewise.
4321         * localedata/locales/tig_ER (t_fmt): Likewise.
4322         (t_fmt_ampm): Likewise.
4323         * localedata/locales/wal_ET (t_fmt): Likewise.
4324         (t_fmt_ampm): Likewise.
4326         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4327         * localedata/locales/ar_IN (t_fmt): Likewise.
4328         * localedata/locales/bhb_IN (t_fmt): Likewise.
4329         * localedata/locales/bho_IN (t_fmt): Likewise.
4330         * localedata/locales/bi_VU (t_fmt): Likewise.
4331         * localedata/locales/bn_BD (t_fmt): Likewise.
4332         * localedata/locales/bn_IN (t_fmt): Likewise.
4333         * localedata/locales/brx_IN (t_fmt): Likewise.
4334         * localedata/locales/doi_IN (t_fmt): Likewise.
4335         * localedata/locales/en_HK (t_fmt): Likewise.
4336         (t_fmt_ampm): Likewise.
4337         * localedata/locales/en_IN (t_fmt): Likewise.
4338         * localedata/locales/en_PH (t_fmt): Likewise.
4339         * localedata/locales/gu_IN (t_fmt): Likewise.
4340         * localedata/locales/hi_IN (t_fmt): Likewise.
4341         * localedata/locales/hif_FJ (t_fmt): Likewise.
4342         * localedata/locales/hne_IN (t_fmt): Likewise.
4343         * localedata/locales/kn_IN (t_fmt): Likewise.
4344         * localedata/locales/kok_IN (t_fmt): Likewise.
4345         * localedata/locales/ks_IN (t_fmt): Likewise.
4346         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4347         * localedata/locales/mag_IN (t_fmt): Likewise.
4348         * localedata/locales/mai_IN (t_fmt): Likewise.
4349         * localedata/locales/mjw_IN (t_fmt): Likewise.
4350         * localedata/locales/ml_IN (t_fmt): Likewise.
4351         * localedata/locales/mni_IN (t_fmt): Likewise.
4352         * localedata/locales/mr_IN (t_fmt): Likewise.
4353         * localedata/locales/ms_MY (t_fmt): Likewise.
4354         * localedata/locales/pa_IN (t_fmt): Likewise.
4355         * localedata/locales/raj_IN (t_fmt): Likewise.
4356         * localedata/locales/sa_IN (t_fmt): Likewise.
4357         * localedata/locales/sat_IN (t_fmt): Likewise.
4358         * localedata/locales/sd_IN (t_fmt): Likewise.
4359         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4360         * localedata/locales/tcy_IN (t_fmt): Likewise.
4361         * localedata/locales/the_NP (t_fmt): Likewise.
4362         * localedata/locales/to_TO (t_fmt): Likewise.
4363         * localedata/locales/ur_IN (t_fmt): Likewise.
4365         * localedata/locales/hif_FJ (d_t_fmt): Set to
4366         "%A %d %b %Y %I:%M:%S %p".
4367         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4369         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4370         * localedata/locales/ar_BH (t_fmt): Likewise.
4371         * localedata/locales/ar_DZ (t_fmt): Likewise.
4372         * localedata/locales/ar_EG (t_fmt): Likewise.
4373         * localedata/locales/ar_IQ (t_fmt): Likewise.
4374         * localedata/locales/ar_JO (t_fmt): Likewise.
4375         * localedata/locales/ar_KW (t_fmt): Likewise.
4376         * localedata/locales/ar_LB (t_fmt): Likewise.
4377         * localedata/locales/ar_LY (t_fmt): Likewise.
4378         * localedata/locales/ar_OM (t_fmt): Likewise.
4379         * localedata/locales/ar_QA (t_fmt): Likewise.
4380         * localedata/locales/ar_SD (t_fmt): Likewise.
4381         * localedata/locales/ar_SS (t_fmt): Likewise.
4382         * localedata/locales/ar_SY (t_fmt): Likewise.
4383         * localedata/locales/ar_TN (t_fmt): Likewise.
4384         * localedata/locales/ar_YE (t_fmt): Likewise.
4386         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4387         (t_fmt_ampm): Likewise.
4388         * localedata/locales/gez_ET (t_fmt): Likewise.
4389         (t_fmt_ampm): Likewise.
4391         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4392         (t_fmt_ampm): Likewise.
4393         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4395         * localedata/locales/zh_HK (t_fmt):
4396         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4398         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4399         because this locale does not use the 12-hour clock.
4400         (t_fmt): Set to "%Z %H:%M:%S".
4401         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4403         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4404         because this locale does not use the 12-hour clock.
4405         (t_fmt): Set to "%H:%M:%S %Z".
4406         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4408         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4409         because this locale does not use the 12-hour clock.
4410         (t_fmt): Set to "%T".
4411         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4412         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4414         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4415         because this locale does not use the 12-hour clock.
4416         (t_fmt): Set to "%H:%M:%S %Z".
4417         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4419         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4420         because this locale does not use the 12-hour clock.
4421         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4422         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4424 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
4426         [BZ #10496]
4427         [BZ #23724]
4428         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4429         (t_fmt_ampm): Likewise.
4430         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4431         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4432         (d_fmt): Set to "%-d.%-m.%y".
4434 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4436         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4437         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4438         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4439         Likewise.
4440         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4441         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4442         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4443         function.
4444         * support/blob_repeat.c (check_mul_overflow_size_t,
4445         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4447 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
4449         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4451 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4453         regex: simplify Gnulib port
4454         This simplifies the code, by removing stuff intended for porting
4455         to Gnulib but no longer needed there.
4456         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4457         uses of libc_hidden_def, weak_alias.
4458         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4459         _Restrict_ except for public-facing headers.
4460         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4461         Remove; already defined elsewhere.
4462         * posix/regex.c, posix/regex_internal.h:
4463         Use __GNUC_PREREQ instead of rolling our own.
4464         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4466 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
4468         * benchtests/bench-strlen.c (generic_strlen): New function.
4469         (memchr_strlen): New function.
4471 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
4473         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4474         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4475         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4477 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
4479         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4481 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
4483         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4484         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4485         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
4486         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4487         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4488         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4489         <sysdeps/ieee754/flt-32/s_sincosf.c>.
4491 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
4493         [BZ #24023]
4494         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4495         PLT reference in libc.so.
4496         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4497         _Q_lltoq and _Q_qtod PLT references in libc.so.
4499 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
4501         * benchtests/bench-memchr.c: Cleanup defines.
4502         * benchtests/bench-memcmp.c: Likewise.
4503         * benchtests/bench-memset.c: Likewise.
4504         * benchtests/bench-memset-large.c: Likewise.
4505         * benchtests/bench-memset-walk.c: Likewise.
4506         * benchtests/bench-stpcpy.c: Likewise.
4507         * benchtests/bench-stpncpy.c: Likewise.
4508         * benchtests/bench-strcat.c: Likewise.
4509         * benchtests/bench-strchr.c: Likewise.
4510         * benchtests/bench-strcmp.c: Likewise.
4511         * benchtests/bench-strcpy.c: Likewise.
4512         * benchtests/bench-strcspn.c: Likewise.
4513         * benchtests/bench-string.h: Likewise.
4514         * benchtests/bench-strlen.c: Likewise.
4515         * benchtests/bench-strncat.c: Likewise.
4516         * benchtests/bench-strncmp.c: Likewise.
4517         * benchtests/bench-strncpy.c: Likewise.
4518         * benchtests/bench-strnlen.c: Likewise.
4519         * benchtests/bench-strpbrk.c: Likewise.
4520         * benchtests/bench-strrchr.c: Likewise.
4521         * benchtests/bench-strspn.c: Likewise.
4523 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
4525         * stdlib/longlong.h: Update from GCC.
4527         [BZ #23993]
4528         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4529         * configure: Regenerated.
4530         * manual/install.texi (Tools for Compilation): Update minimum GCC
4531         version.
4532         * INSTALL: Regenerated.
4534 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
4536         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4538 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
4540         * malloc/malloc.c (mremap_chunk): Additional checks.
4542 2018-12-21  Mao Han  <han_mao@c-sky.com>
4544         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4545         * scripts/build-many-glibcs.py: Add C-SKY targets.
4546         * sysdeps/csky/Implies: New file.
4547         * sysdeps/csky/Makefile: Likewise.
4548         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4549         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4550         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4551         * sysdeps/csky/abiv2/memcmp.S: Likewise.
4552         * sysdeps/csky/abiv2/memcpy.S: Likewise.
4553         * sysdeps/csky/abiv2/memmove.S: Likewise.
4554         * sysdeps/csky/abiv2/memset.S: Likewise.
4555         * sysdeps/csky/abiv2/setjmp.S: Likewise.
4556         * sysdeps/csky/abiv2/start.S: Likewise.
4557         * sysdeps/csky/abiv2/strcmp.S: Likewise.
4558         * sysdeps/csky/abiv2/strcpy.S: Likewise.
4559         * sysdeps/csky/abiv2/strlen.S: Likewise.
4560         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4561         * sysdeps/csky/abort-instr.h: Likewise.
4562         * sysdeps/csky/atomic-machine.h: Likewise.
4563         * sysdeps/csky/bits/endian.h: Likewise.
4564         * sysdeps/csky/bits/fenv.h: Likewise.
4565         * sysdeps/csky/bits/link.h: Likewise.
4566         * sysdeps/csky/bits/setjmp.h: Likewise.
4567         * sysdeps/csky/bsd-_setjmp.S: Likewise.
4568         * sysdeps/csky/bsd-setjmp.S: Likewise.
4569         * sysdeps/csky/configure: Likewise.
4570         * sysdeps/csky/configure.ac: Likewise.
4571         * sysdeps/csky/dl-machine.h: Likewise.
4572         * sysdeps/csky/dl-procinfo.c: Likewise.
4573         * sysdeps/csky/dl-procinfo.h: Likewise.
4574         * sysdeps/csky/dl-sysdep.h: Likewise.
4575         * sysdeps/csky/dl-tls.h: Likewise.
4576         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4577         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4578         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4579         * sysdeps/csky/fpu/fegetenv.c: Likewise.
4580         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4581         * sysdeps/csky/fpu/fegetmode.c: Likewise.
4582         * sysdeps/csky/fpu/fegetround.c: Likewise.
4583         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4584         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4585         * sysdeps/csky/fpu/fenv_private.h: Likewise.
4586         * sysdeps/csky/fpu/fesetenv.c: Likewise.
4587         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4588         * sysdeps/csky/fpu/fesetmode.c: Likewise.
4589         * sysdeps/csky/fpu/fesetround.c: Likewise.
4590         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4591         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4592         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4593         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4594         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4595         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4596         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4597         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4598         * sysdeps/csky/fpu_control.h: Likewise.
4599         * sysdeps/csky/gccframe.h: Likewise.
4600         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4601         * sysdeps/csky/ldsodefs.h: Likewise.
4602         * sysdeps/csky/libc-tls.c: Likewise.
4603         * sysdeps/csky/linkmap.h: Likewise.
4604         * sysdeps/csky/machine-gmon.h: Likewise.
4605         * sysdeps/csky/memusage.h: Likewise.
4606         * sysdeps/csky/nofpu/Implies: Likewise.
4607         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4608         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4609         * sysdeps/csky/nptl/Makefile: Likewise.
4610         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4611         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4612         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4613         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4614         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4615         * sysdeps/csky/nptl/tls.h: Likewise.
4616         * sysdeps/csky/preconfigure: Likewise.
4617         * sysdeps/csky/sfp-machine.h: Likewise.
4618         * sysdeps/csky/sotruss-lib.c: Likewise.
4619         * sysdeps/csky/stackinfo.h: Likewise.
4620         * sysdeps/csky/sysdep.h: Likewise.
4621         * sysdeps/csky/tininess.h: Likewise.
4622         * sysdeps/csky/tst-audit.h: Likewise.
4623         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4624         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4625         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4626         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4627         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4628         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4629         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4630         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4631         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4632         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4633         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4634         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4635         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4636         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4637         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4638         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4639         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4640         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4641         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4642         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4643         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4644         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4645         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4646         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4647         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4648         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4649         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4650         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4651         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4652         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4653         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4654         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4655         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4656         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4657         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4658         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4659         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4660         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4661         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4662         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4663         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4664         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4665         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4666         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4668 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
4670         * include/time.h (__difftime64): Add.
4671         * time/difftime.c (subtract): convert to 64-bit time.
4672         * time/difftime.c (__difftime64): Add.
4673         * time/difftime.c (__difftime): Wrap around __difftime64.
4675 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
4677         * manual/examples/add.c: Remove redundant "if not".
4678         * manual/examples/argp-ex1.c: Likewise.
4679         * manual/examples/argp-ex2.c: Likewise.
4680         * manual/examples/argp-ex3.c: Likewise.
4681         * manual/examples/argp-ex4.c: Likewise.
4682         * manual/examples/atexit.c: Likewise.
4683         * manual/examples/db.c: Likewise.
4684         * manual/examples/dir.c: Likewise.
4685         * manual/examples/dir2.c: Likewise.
4686         * manual/examples/execinfo.c: Likewise.
4687         * manual/examples/filecli.c: Likewise.
4688         * manual/examples/filesrv.c: Likewise.
4689         * manual/examples/fmtmsgexpl.c: Likewise.
4690         * manual/examples/genpass.c: Likewise.
4691         * manual/examples/inetcli.c: Likewise.
4692         * manual/examples/inetsrv.c: Likewise.
4693         * manual/examples/isockad.c: Likewise.
4694         * manual/examples/longopt.c: Likewise.
4695         * manual/examples/memopen.c: Likewise.
4696         * manual/examples/memstrm.c: Likewise.
4697         * manual/examples/mkdirent.c: Likewise.
4698         * manual/examples/mkfsock.c: Likewise.
4699         * manual/examples/mkisock.c: Likewise.
4700         * manual/examples/mygetpass.c: Likewise.
4701         * manual/examples/pipe.c: Likewise.
4702         * manual/examples/popen.c: Likewise.
4703         * manual/examples/rprintf.c: Likewise.
4704         * manual/examples/search.c: Likewise.
4705         * manual/examples/select.c: Likewise.
4706         * manual/examples/setjmp.c: Likewise.
4707         * manual/examples/sigh1.c: Likewise.
4708         * manual/examples/sigusr.c: Likewise.
4709         * manual/examples/stpcpy.c: Likewise.
4710         * manual/examples/strdupa.c: Likewise.
4711         * manual/examples/strftim.c: Likewise.
4712         * manual/examples/subopt.c: Likewise.
4713         * manual/examples/swapcontext.c: Likewise.
4714         * manual/examples/termios.c: Likewise.
4715         * manual/examples/testopt.c: Likewise.
4716         * manual/examples/testpass.c: Likewise.
4717         * manual/examples/timeval_subtract.c: Likewise.
4719 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
4721         * sysdeps/x86/fpu/math_private.h: New file.
4722         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4724         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4725         definition.
4726         (cosh): Likewise.
4727         (tanh): Likewise.
4729 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4731         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4732         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4733         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4734         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
4735         fields.
4736         (_dl_show_auxv): Give a special treatment to
4737         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4738         and AT_L3_CACHEGEOMETRY.
4739         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4740         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4741         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
4742         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4744 2018-12-19  Andreas Schwab  <schwab@suse.de>
4746         * nscd/connections.c (check_use): Don't abort on invalid len.
4748 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4750         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4751         values in the 64bit value cases.
4753 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
4755         * include/time.h
4756         (__ctime64_r): Add.
4757         * time/ctime_r.c
4758         (__ctime64_r): Add.
4759         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4761         * include/time.h
4762         (__ctime64): Add.
4763         * time/gmtime.c
4764         (__ctime64): Add.
4765         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4767         * include/time.h
4768         (__gmtime64_r): Add.
4769         * time/gmtime.c
4770         (__gmtime64_r): Add.
4771         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4773         * include/time.h
4774         (__gmtime64): Add.
4775         * time/gmtime.c
4776         (__gmtime64): Add.
4777         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4779         * include/time.h
4780         (__localtime64_r): Add.
4781         * time/localtime.c
4782         (__localtime64_r): Add.
4783         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4785 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4787         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4788         kernel_sigction definition.
4790         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4792         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4794         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4795         __syscall_rt_sigaction.
4796         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4797         (kernel_sigaction): Use Linux generic defintion.
4798         (STUB): Define.
4799         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4800         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4801         (__syscall_rt_sigaction): Remove implementation.
4802         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4803         hidden.
4804         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4805         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4806         INTERNAL_SYSCALL): Remove definitions.
4807         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4808         action and signal set size.
4809         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4810         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4812 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4813             James Clarke  <jrtc27@jrtc27.com>
4815         [BZ #23967]
4816         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4817         Define if SA_RESTORER is defined.
4818         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4819         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4820         already defined.
4821         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4822         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4823         definitions.
4824         (HAS_SA_RESTORER): Define.
4825         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4826         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4827         (HAS_SA_RESTORER): Define.
4828         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4829         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4830         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4831         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4832         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4834 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
4836         * sysdeps/unix/sysv/linux/kernel-features.h
4837         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4838         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4839         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4840         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4841         (__ASSUME_ST_INO_64_BIT): Likewise.
4842         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4843         <kernel-features.h>.
4844         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4845         Remove conditional code.
4846         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4847         <kernel-features.h>.
4848         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4849         Remove conditional code.
4850         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4851         <kernel-features.h>.
4852         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4853         Remove conditional code.
4854         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4855         <kernel-features.h>.
4856         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4857         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4859 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4861         * sysdeps/s390/multiarch/ifunc-resolve.h
4862         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4863         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4864         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4865         Delete macro definition.
4866         (s390_libc_ifunc_init): Rename to
4867         s390_libc_ifunc_expr_stfle_init.
4868         * sysdeps/s390/bzero: Use
4869         s390_libc_ifunc_expr_stfle_init instead of
4870         s390_libc_ifunc_init.
4871         * sysdeps/s390/memcmp.c: Likewise.
4872         * sysdeps/s390/memcpy.c: Likewise.
4873         * sysdeps/s390/mempcpy.c: Likewise.
4874         * sysdeps/s390/memset.c: Likewise.
4876 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4878         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4879         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4881 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4883         * sysdeps/s390/multiarch/Makefile
4884         (sysdep_routines): Remove wmemcmp variants.
4885         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4886         * sysdeps/s390/multiarch/ifunc-impl-list.c
4887         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4888         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4889         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4890         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4891         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4892         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4893         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4894         * sysdeps/s390/ifunc-wmemcmp.h: New file.
4896 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4898         * sysdeps/s390/multiarch/Makefile
4899         (sysdep_routines): Remove wmemset variants.
4900         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4901         * sysdeps/s390/multiarch/ifunc-impl-list.c
4902         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4903         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4904         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4905         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4906         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4907         * sysdeps/s390/multiarch/wmemset.c: Move to ...
4908         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4909         * sysdeps/s390/ifunc-wmemset.h: New file.
4911 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4913         * sysdeps/s390/multiarch/Makefile
4914         (sysdep_routines): Remove wmemchr variants.
4915         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4916         * sysdeps/s390/multiarch/ifunc-impl-list.c
4917         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4918         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4919         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4920         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4921         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4922         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4923         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4924         * sysdeps/s390/ifunc-wmemchr.h: New file.
4926 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4928         * sysdeps/s390/multiarch/Makefile
4929         (sysdep_routines): Remove wcscspn variants.
4930         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4931         * sysdeps/s390/multiarch/ifunc-impl-list.c
4932         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4933         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4934         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4935         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4936         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4937         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4938         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4939         * sysdeps/s390/ifunc-wcscspn.h: New file.
4941 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4943         * sysdeps/s390/multiarch/Makefile
4944         (sysdep_routines): Remove wcspbrk variants.
4945         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4946         * sysdeps/s390/multiarch/ifunc-impl-list.c
4947         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4948         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4949         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4950         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4951         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4952         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4953         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4954         * sysdeps/s390/ifunc-wcspbrk.h: New file.
4956 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4958         * sysdeps/s390/multiarch/Makefile
4959         (sysdep_routines): Remove wcsspn variants.
4960         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4961         * sysdeps/s390/multiarch/ifunc-impl-list.c
4962         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4963         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4964         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4965         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4966         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4967         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4968         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4969         * sysdeps/s390/ifunc-wcsspn.h: New file.
4971 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4973         * sysdeps/s390/multiarch/Makefile
4974         (sysdep_routines): Remove wcsrchr variants.
4975         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4976         * sysdeps/s390/multiarch/ifunc-impl-list.c
4977         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4978         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4979         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4980         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4981         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4982         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4983         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4984         * sysdeps/s390/ifunc-wcsrchr.h: New file.
4986 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4988         * sysdeps/s390/multiarch/Makefile
4989         (sysdep_routines): Remove wcschrnul variants.
4990         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4991         * sysdeps/s390/multiarch/ifunc-impl-list.c
4992         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4993         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4994         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4995         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4996         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4997         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4998         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4999         * sysdeps/s390/ifunc-wcschrnul.h: New file.
5001 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5003         * sysdeps/s390/multiarch/Makefile
5004         (sysdep_routines): Remove wcschr variants.
5005         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5006         * sysdeps/s390/multiarch/ifunc-impl-list.c
5007         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5008         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5009         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5010         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5011         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5012         * sysdeps/s390/multiarch/wcschr.c: Move to ...
5013         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5014         * sysdeps/s390/ifunc-wcschr.h: New file.
5016 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5018         * sysdeps/s390/multiarch/Makefile
5019         (sysdep_routines): Remove wcsncmp variants.
5020         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5021         * sysdeps/s390/multiarch/ifunc-impl-list.c
5022         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5023         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5024         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5025         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5026         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5027         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5028         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5029         * sysdeps/s390/ifunc-wcsncmp.h: New file.
5031 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5033         * sysdeps/s390/multiarch/Makefile
5034         (sysdep_routines): Remove wcscmp variants.
5035         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5036         * sysdeps/s390/multiarch/ifunc-impl-list.c
5037         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5038         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5039         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5040         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5041         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5042         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5043         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5044         * sysdeps/s390/ifunc-wcscmp.h: New file.
5046 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5048         * sysdeps/s390/multiarch/Makefile
5049         (sysdep_routines): Remove wcsncat variants.
5050         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5051         * sysdeps/s390/multiarch/ifunc-impl-list.c
5052         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5053         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5054         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5055         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5056         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5057         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5058         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5059         * sysdeps/s390/ifunc-wcsncat.h: New file.
5061 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5063         * sysdeps/s390/multiarch/Makefile
5064         (sysdep_routines): Remove wcscat variants.
5065         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5066         * sysdeps/s390/multiarch/ifunc-impl-list.c
5067         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5068         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5069         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5070         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5071         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5072         * sysdeps/s390/multiarch/wcscat.c: Move to ...
5073         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5074         * sysdeps/s390/ifunc-wcscat.h: New file.
5076 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5078         * sysdeps/s390/multiarch/Makefile
5079         (sysdep_routines): Remove wcpncpy variants.
5080         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5081         * sysdeps/s390/multiarch/ifunc-impl-list.c
5082         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5083         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5084         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5085         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5086         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5087         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5088         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5089         * sysdeps/s390/ifunc-wcpncpy.h: New file.
5091 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5093         * sysdeps/s390/multiarch/Makefile
5094         (sysdep_routines): Remove wcsncpy variants.
5095         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5096         * sysdeps/s390/multiarch/ifunc-impl-list.c
5097         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5098         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5099         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5100         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5101         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5102         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5103         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5104         * sysdeps/s390/ifunc-wcsncpy.h: New file.
5106 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5108         * sysdeps/s390/multiarch/Makefile
5109         (sysdep_routines): Remove wcpcpy variants.
5110         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5111         * sysdeps/s390/multiarch/ifunc-impl-list.c
5112         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5113         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5114         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5115         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5116         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5117         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5118         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5119         * sysdeps/s390/ifunc-wcpcpy.h: New file.
5121 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5123         * sysdeps/s390/multiarch/Makefile
5124         (sysdep_routines): Remove wcscpy variants.
5125         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5126         * sysdeps/s390/multiarch/ifunc-impl-list.c
5127         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5128         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5129         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5130         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5131         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5132         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5133         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5134         * sysdeps/s390/ifunc-wcscpy.h: New file.
5136 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5138         * sysdeps/s390/multiarch/Makefile
5139         (sysdep_routines): Remove wcsnlen variants.
5140         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5141         * sysdeps/s390/multiarch/ifunc-impl-list.c
5142         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5143         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5144         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5145         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5146         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5147         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5148         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5149         * sysdeps/s390/ifunc-wcsnlen.h: New file.
5151 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5153         * sysdeps/s390/multiarch/Makefile
5154         (sysdep_routines): Remove wcslen variants.
5155         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5156         * sysdeps/s390/multiarch/ifunc-impl-list.c
5157         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5158         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5159         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5160         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5161         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5162         * sysdeps/s390/multiarch/wcslen.c: Move to ...
5163         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5164         * sysdeps/s390/ifunc-wcslen.h: New file.
5166 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5168         * sysdeps/s390/multiarch/Makefile
5169         (sysdep_routines): Remove memrchr variants.
5170         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5171         * sysdeps/s390/multiarch/ifunc-impl-list.c
5172         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5173         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5174         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5175         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5176         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5177         * sysdeps/s390/multiarch/memrchr.c: Move to ...
5178         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5179         * sysdeps/s390/ifunc-memrchr.h: New file.
5181 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5183         * sysdeps/s390/multiarch/Makefile
5184         (sysdep_routines): Remove memccpy variants.
5185         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5186         * sysdeps/s390/multiarch/ifunc-impl-list.c
5187         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5188         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5189         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5190         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5191         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5192         * sysdeps/s390/multiarch/memccpy.c: Move to ...
5193         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5194         * sysdeps/s390/ifunc-memccpy.h: New file.
5196 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5198         * sysdeps/s390/multiarch/Makefile
5199         (sysdep_routines): Remove rawmemchr variants.
5200         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5201         * sysdeps/s390/multiarch/ifunc-impl-list.c
5202         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5203         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5204         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5205         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5206         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5207         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5208         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5209         * sysdeps/s390/ifunc-rawmemchr.h: New file.
5211 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5213         * sysdeps/s390/multiarch/Makefile
5214         (sysdep_routines): Remove memchr variants.
5215         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5216         * sysdeps/s390/multiarch/ifunc-impl-list.c
5217         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5218         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5219         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5220         * sysdeps/s390/multiarch/memchr.c: Move to ...
5221         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5222         * sysdeps/s390/ifunc-memchr.h: New file.
5223         * sysdeps/s390/s390-64/memchr.S: Move to ...
5224         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5225         for 31/64bit and ifunc handling.
5226         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5227         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5228         * sysdeps/s390/s390-32/memchr.S: Likewise.
5230 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5232         * sysdeps/s390/multiarch/Makefile
5233         (sysdep_routines): Remove strcspn variants.
5234         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5235         * sysdeps/s390/multiarch/ifunc-impl-list.c
5236         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5237         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5238         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5239         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5240         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5241         * sysdeps/s390/multiarch/strcspn.c: Move to ...
5242         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5243         * sysdeps/s390/ifunc-strcspn.h: New file.
5245 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5247         * sysdeps/s390/multiarch/Makefile
5248         (sysdep_routines): Remove strpbrk variants.
5249         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5250         * sysdeps/s390/multiarch/ifunc-impl-list.c
5251         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5252         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5253         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5254         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5255         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5256         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5257         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5258         * sysdeps/s390/ifunc-strpbrk.h: New file.
5260 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5262         * sysdeps/s390/multiarch/Makefile
5263         (sysdep_routines): Remove strspn variants.
5264         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5265         * sysdeps/s390/multiarch/ifunc-impl-list.c
5266         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5267         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5268         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5269         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5270         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5271         * sysdeps/s390/multiarch/strspn.c: Move to ...
5272         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5273         * sysdeps/s390/ifunc-strspn.h: New file.
5275 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5277         * sysdeps/s390/multiarch/Makefile
5278         (sysdep_routines): Remove strrchr variants.
5279         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5280         * sysdeps/s390/multiarch/ifunc-impl-list.c
5281         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5282         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5283         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5284         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5285         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5286         * sysdeps/s390/multiarch/strrchr.c: Move to ...
5287         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5288         * sysdeps/s390/ifunc-strrchr.h: New file.
5290 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5292         * sysdeps/s390/multiarch/Makefile
5293         (sysdep_routines): Remove strchrnul variants.
5294         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5295         * sysdeps/s390/multiarch/ifunc-impl-list.c
5296         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5297         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5298         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5299         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5300         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5301         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5302         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5303         * sysdeps/s390/ifunc-strchrnul.h: New file.
5305 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5307         * sysdeps/s390/multiarch/Makefile
5308         (sysdep_routines): Remove strchr variants.
5309         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5310         * sysdeps/s390/multiarch/ifunc-impl-list.c
5311         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5312         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5313         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5314         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5315         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5316         * sysdeps/s390/multiarch/strchr.c: Move to ...
5317         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5318         * sysdeps/s390/ifunc-strchr.h: New file.
5320 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5322         * sysdeps/s390/multiarch/Makefile
5323         (sysdep_routines): Remove strncmp variants.
5324         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5325         * sysdeps/s390/multiarch/ifunc-impl-list.c
5326         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5327         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5328         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5329         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5330         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5331         * sysdeps/s390/multiarch/strncmp.c: Move to ...
5332         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5333         * sysdeps/s390/ifunc-strncmp.h: New file.
5335 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5337         * sysdeps/s390/multiarch/Makefile
5338         (sysdep_routines): Remove strcmp variants.
5339         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5340         * sysdeps/s390/multiarch/ifunc-impl-list.c
5341         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5342         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5343         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5344         * sysdeps/s390/multiarch/strcmp.c: Move to ...
5345         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5346         * sysdeps/s390/ifunc-strcmp.h: New file.
5347         * sysdeps/s390/s390-64/strcmp.S: Move to ...
5348         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5349         for 31/64bit and ifunc handling.
5350         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5351         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5352         * sysdeps/s390/s390-32/strcmp.S: Likewise.
5354 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5356         * sysdeps/s390/multiarch/Makefile
5357         (sysdep_routines): Remove strncat variants.
5358         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5359         * sysdeps/s390/multiarch/ifunc-impl-list.c
5360         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5361         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5362         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5363         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5364         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5365         * sysdeps/s390/multiarch/strncat.c: Move to ...
5366         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5367         * sysdeps/s390/ifunc-strncat.h: New file.
5369 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5371         * sysdeps/s390/multiarch/Makefile
5372         (sysdep_routines): Remove strcat variants.
5373         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5374         * sysdeps/s390/multiarch/ifunc-impl-list.c
5375         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5376         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5377         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5378         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5379         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5380         * sysdeps/s390/multiarch/strcat.c: Move to ...
5381         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5382         * sysdeps/s390/ifunc-strcat.h: New file.
5384 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5386         * sysdeps/s390/multiarch/Makefile
5387         (sysdep_routines): Remove stpncpy variants.
5388         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5389         * sysdeps/s390/multiarch/ifunc-impl-list.c
5390         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5391         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5392         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5393         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5394         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5395         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5396         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5397         * sysdeps/s390/ifunc-stpncpy.h: New file.
5399 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5401         * sysdeps/s390/multiarch/Makefile
5402         (sysdep_routines): Remove strncpy variants.
5403         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5404         * sysdeps/s390/multiarch/ifunc-impl-list.c
5405         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5406         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5407         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5408         * sysdeps/s390/multiarch/strncpy.c: Move to ...
5409         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5410         * sysdeps/s390/ifunc-strncpy.h: New file.
5411         * sysdeps/s390/s390-64/strncpy.S: Move to ...
5412         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5413         and adjust ifunc handling.
5414         * sysdeps/s390/s390-32/strncpy.S: Move to ...
5415         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5416         and adjust ifunc handling.
5417         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5418         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5420 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5422         * sysdeps/s390/multiarch/Makefile
5423         (sysdep_routines): Remove stpcpy variants.
5424         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5425         * sysdeps/s390/multiarch/ifunc-impl-list.c
5426         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5427         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5428         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5429         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5430         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5431         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5432         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5433         * sysdeps/s390/ifunc-stpcpy.h: New file.
5435 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5437         * sysdeps/s390/multiarch/Makefile
5438         (sysdep_routines): Remove strcpy variants.
5439         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5440         * sysdeps/s390/multiarch/ifunc-impl-list.c
5441         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5442         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5443         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5444         * sysdeps/s390/multiarch/strcpy.c: Move to ...
5445         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5446         * sysdeps/s390/ifunc-strcpy.h: New file.
5447         * sysdeps/s390/s390-64/strcpy.S: Move to ...
5448         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5449         for 31/64bit and ifunc handling.
5450         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5451         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5452         * sysdeps/s390/s390-32/strcpy.S: Likewise.
5454 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5456         * sysdeps/s390/multiarch/Makefile
5457         (sysdep_routines): Remove strnlen variants.
5458         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5459         * sysdeps/s390/multiarch/ifunc-impl-list.c
5460         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5461         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5462         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5463         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5464         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5465         * sysdeps/s390/multiarch/strnlen.c: Move to ...
5466         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5467         * sysdeps/s390/ifunc-strnlen.h: New file.
5469 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5471         * sysdeps/s390/multiarch/Makefile
5472         (sysdep_routines): Remove strlen variants.
5473         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5474         * sysdeps/s390/multiarch/ifunc-impl-list.c
5475         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5476         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5477         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5478         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5479         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5480         * sysdeps/s390/multiarch/strlen.c: Move to ...
5481         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5482         * sysdeps/s390/ifunc-strlen.h: New file.
5484 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5486         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5487         * sysdeps/s390/multiarch/ifunc-impl-list.c
5488         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5489         * sysdeps/s390/ifunc-memmem.h: New file.
5490         * sysdeps/s390/memmem.c: Likewise.
5491         * sysdeps/s390/memmem-c.c: Likewise.
5492         * sysdeps/s390/memmem-vx.c: Likewise.
5494 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5496         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5497         * sysdeps/s390/multiarch/ifunc-impl-list.c
5498         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5499         * sysdeps/s390/ifunc-strstr.h: New file.
5500         * sysdeps/s390/strstr.c: Likewise.
5501         * sysdeps/s390/strstr-c.c: Likewise.
5502         * sysdeps/s390/strstr-vx.c: Likewise.
5504 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5506         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5507         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5508         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5509         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5510         New defines.
5511         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5512         * sysdeps/s390/memmove-c.c: New file.
5513         * sysdeps/s390/memmove.c: Likewise.
5514         * sysdeps/s390/multiarch/ifunc-impl-list.c
5515         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5517 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5519         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5520         * sysdeps/s390/configure.ac: Add check for z13 support.
5521         * sysdeps/s390/configure: Regenerated.
5523 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5525         * sysdeps/s390/memcopy.h: New file.
5527 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5529         * sysdeps/s390/s390-32/bcopy.S: Remove.
5530         * sysdeps/s390/s390-64/bcopy.S: Likewise.
5532 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5534         * sysdeps/s390/ifunc-memcpy.h: New File.
5535         * sysdeps/s390/memcpy.S: Move to ...
5536         * sysdeps/s390/memcpy-z900.S ... here.
5537         Move implementations from memcpy-s390x.s to here.
5538         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5539         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5540         Remove memcpy/mempcpy variants.
5541         * sysdeps/s390/Makefile (sysdep_routines):
5542         Add memcpy/mempcpy variants.
5543         * sysdeps/s390/multiarch/ifunc-impl-list.c
5544         (__libc_ifunc_impl_list): Adjust ifunc variants for
5545         memcpy and mempcpy.
5546         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5547         to ...
5548         * sysdeps/s390/memcpy.c: ... here.
5549         Adjust ifunc variants for memcpy.
5550         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5551         * sysdeps/s390/mempcpy.c: ... here.
5552         Adjust ifunc variants for mempcpy.
5553         * sysdeps/s390/mempcpy.S: Delete file.
5555 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5557         * sysdeps/s390/s390-64/memcpy.S: Move to ...
5558         * sysdeps/s390/memcpy.S: ... here.
5559         Adjust to be usable for 31/64bit.
5560         * sysdeps/s390/s390-32/memcpy.S: Delete File.
5561         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5562         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5563         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5564         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5565         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5566         Adjust to be usable for 31/64bit.
5567         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5568         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5569         * sysdeps/s390/multiarch/memcpy.c: ... here.
5570         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5572 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5574         * sysdeps/s390/ifunc-memcmp.h: New File.
5575         * sysdeps/s390/memcmp.S: Move to ...
5576         * sysdeps/s390/memcmp-z900.S ... here.
5577         Move implementations from memcmp-s390x.s to here.
5578         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5579         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5580         Remove memcmp variants.
5581         * sysdeps/s390/Makefile (sysdep_routines):
5582         Add memcmp variants.
5583         * sysdeps/s390/multiarch/ifunc-impl-list.c
5584         (__libc_ifunc_impl_list): Adjust ifunc variants for
5585         memcmp.
5586         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5587         to ...
5588         * sysdeps/s390/memcmp.c: ... here.
5589         Adjust ifunc variants for memcmp.
5591 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5593         * sysdeps/s390/s390-64/memcmp.S: Move to ...
5594         * sysdeps/s390/memcmp.S: ... here.
5595         Adjust to be usable for 31/64bit.
5596         * sysdeps/s390/s390-32/memcmp.S: Delete File.
5597         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5598         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5599         Remove memcmp.
5600         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5601         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5602         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5603         Adjust to be usable for 31/64bit.
5604         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5605         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5606         * sysdeps/s390/multiarch/memcmp.c: ... here.
5607         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5609 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5611         * sysdeps/s390/s390-32/bzero.S: Delete file.
5612         * sysdeps/s390/s390-64/bzero.S: Likewise.
5613         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5614         * sysdeps/s390/bzero.c: New file.
5615         * sysdeps/s390/memset-z900.S: Add bzero entry points.
5616         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5617         * sysdeps/s390/multiarch/ifunc-impl-list.c
5618         (__libc_ifunc_impl_list): Add bzero ifunc variants.
5620 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5622         * sysdeps/s390/ifunc-memset.h: New File.
5623         * sysdeps/s390/memset.S: Move to ...
5624         * sysdeps/s390/memset-z900.S ... here.
5625         Move implementations from memset-s390x.s to here.
5626         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5627         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5628         Remove memset variants.
5629         * sysdeps/s390/Makefile (sysdep_routines):
5630         Add memset variants.
5631         * sysdeps/s390/multiarch/ifunc-impl-list.c
5632         (__libc_ifunc_impl_list): Adjust ifunc variants for
5633         memset.
5634         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5635         to ...
5636         * sysdeps/s390/memset.c: ... here.
5637         Adjust ifunc variants for memset.
5639 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5641         * sysdeps/s390/s390-64/memset.S: Move to ...
5642         * sysdeps/s390/memset.S: ... here.
5643         Adjust to be usable for 31/64bit.
5644         * sysdeps/s390/s390-32/memset.S: Delete File.
5645         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5646         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5647         Remove memset.
5648         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5649         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5650         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5651         Adjust to be usable for 31/64bit.
5652         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5653         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5654         * sysdeps/s390/multiarch/memset.c: ... here.
5655         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5657 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5659         * sysdeps/s390/multiarch/ifunc-resolve.h
5660         (s390_libc_ifunc_init, s390_libc_ifunc,
5661         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5663 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5665         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5666         * sysdeps/s390/configure.ac: Add check for z10 support.
5667         * sysdeps/s390/configure: Regenerated.
5669 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
5671         * sysdeps/i386/atomic-machine.h: Merged with ...
5672         * sysdeps/x86_64/atomic-machine.h: To ...
5673         * sysdeps/x86/atomic-machine.h: This.  New file.
5675 2018-12-18  Florian Weimer  <fweimer@redhat.com>
5677         Rewrite locale/gen-translit.pl in Python.
5678         * locale/Makefile (generated): Add C-translit.h.
5679         (before-compile): Add $(objpfx)C-translit.h.
5680         (C-translit.h): Move to $(objpfx).  Create target directory.
5681         Build using Python script.
5682         * locale/gen-translit.py: New file.
5683         * locale/gen-translit.pl: Remove file.
5684         * locale/C-translit.h.in: Change comment character to '#' for
5685         easier parsing without a C preprocessor.
5686         * locale/C-translit.h: Remove generated file.
5687         * manual/install.texi (Tools for Compilation): Do not mention
5688         C-translit.h.
5689         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5690         Remove locale/C-translit.h.
5691         * scripts/update-copyrights: Likewise.
5692         * INSTALL: Regenerate.
5694 2018-12-18  Florian Weimer  <fweimer@redhat.com>
5696         [BZ #23995]
5697         * localedata/locales/bi_VU: Remove executable bit from file.
5699 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5701         * include/time.h
5702         (__localtime64): Add.
5703         * manual/maint.texi: Document Y2038 symbol handling.
5704         * time/localtime.c
5705         (__localtime64): Add.
5706         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5708 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
5710         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5711         Do not clobber r12.
5713         * scripts/glibcextract.py (compare_macro_consts): Take parameters
5714         to allow extra macros from first or second sources.
5715         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5716         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5717         (tests-special): Add $(objpfx)tst-mman-consts.out.
5718         ($(objpfx)tst-mman-consts.out): New makefile target.
5720 2018-12-17  Mao Han  <han_mao@c-sky.com>
5722         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5723         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5724         without stat64 system call support.
5725         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5726         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5727         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5728         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5729         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5730         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5731         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5732         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5733         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5734         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5735         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5737 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5739         regex: fix storage-exhaustion error
5740         [BZ #18040]
5741         * posix/regexec.c (get_subexp):
5742         Do not continue if storage is exhausted.
5744 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
5746         regex: fix heap-use-after-free error
5747         [BZ #18040]
5748         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5749         https://debbugs.gnu.org/32592
5750         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5751         call extend_buffers which reallocates the re_string_t internal buffer.
5752         Local variable 'buf' was not updated in such case, resulting in
5753         use-after-free.
5754         * posix/regexec.c (get_subexp): Update 'buf' after call to
5755         get_subexp_sub.
5757 2018-12-15  Florian Weimer  <fweimer@redhat.com>
5759         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5760         (minimum_stride_size): Use it.
5761         (support_blob_repeat_allocate): Likewise.
5763 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
5765         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5766         definition.
5767         (acosh): Likewise.
5768         (atanh): Likewise.
5770 2018-12-14  Florian Weimer  <fweimer@redhat.com>
5772         * manual/process.texi (Process Creation Concepts): Remove
5773         documentation of process (ID) lifetime.  List more process
5774         creation functions.  Reference Process Identification section.
5775         (Process Identification): Add information about process ID
5776         lifetime.  Describe Linux thread/task IDs.
5777         * manual/signal.texi (Signaling Another Process): Mention that the
5778         signal is always sent to the process.
5780 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5782         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
5783         and tst-ldbl-efgcvt.
5784         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5785         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5786         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5787         (fcvt_tests, output_error, output_r_error, do_test): Use the
5788         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5789         select the type of floating-point variables and arguments; to
5790         produce extra tests for double and conversion specifiers for
5791         printf; and to set the names of called functions.
5792         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5793         in tst-efgcvt-template.c.
5794         * misc/tst-ldbl-efgcvt.c: Likewise.
5796 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
5798         * nss/Makefile (tst-nss-test3.out): New rule.
5800 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
5802         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5803         clobber sp.
5805 2018-12-13  fanjinke  <fanjinke@hygon.cn>
5807         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5808         "HygonGenuine".
5810 2018-12-13  Andreas Schwab  <schwab@suse.de>
5812         [BZ #23861]
5813         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
5814         (__pthread_rwlock_rdlock_full): Update expected value for
5815         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5816         * nptl/tst-rwlock-pwn.c: New file.
5817         * nptl/Makefile (tests): Add tst-rwlock-pwn.
5819 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
5821         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5822         definition.
5824 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5826         * benchtests/scripts/compare_bench.py (do_compare): write to
5827         stderr in casestat is not present.
5828         * benchtests/scripts/compare_bench.py (plot_graphs): write to
5829         stderr in case timings field is not present. Also string showing
5830         the output filename goes into the stderr.
5832 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5834         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5835         and ZeroDivisorError exceptions.
5836         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5837         argument to loop through user provided statistics.
5838         * benchtests/scripts/compare_bench.py (main): Include the --stats
5839         argument.
5841 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5843         * benchtests/scripts/compare_bench.py (compare_runs): Continue
5844         instead of return.
5846 2018-12-12  Florian Weimer  <fweimer@redhat.com>
5848         * sysdeps/posix/timespec_get.c: Add missing “any later version”
5849         clause to copyright header.
5851 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5853         [BZ #23614]
5854         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5855         registers saved in the stack frame.
5856         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5857         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5859 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5861         * include/bits/monetary-ldbl.h: New file.
5862         * include/bits/printf-ldbl.h: Likewise.
5863         * include/bits/stdio-ldbl.h: Likewise.
5864         * include/bits/stdlib-ldbl.h: Likewise.
5865         * include/bits/syslog-ldbl.h: Likewise.
5866         * include/bits/wchar-ldbl.h: Likewise.
5868 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5870         * libio/libio.h: Remove redirection for _IO_vfprintf.
5872 2018-12-11  Andreas Schwab  <schwab@suse.de>
5874         * Makerules: Remove all references to abilist-pattern.
5875         (update-all-abi): Simplify find expression.
5877 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5879         [BZ #23961]
5880         * math/auto-libm-test-in: Add new test case.
5881         * math/auto-libm-test-out-pow: Regenerated.
5882         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5884 2018-12-10  DJ Delorie  <dj@redhat.com>
5886         [BZ #23948]
5887         * support/test-container.c: Move postclean step to before we
5888         change namespaces.
5890 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
5892         * scripts/gen-as-const.py (main): Handle --python option.
5893         * scripts/gen-py-const.awk: Remove.
5894         * Makerules (py-const-script): Use gen-as-const.py.
5895         ($(py-const)): Likewise.
5896         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5897         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5898         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5899         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5900         ~PTHREAD_MUTEX_NO_ELISION_NP.
5901         * manual/README.pretty-printers: Update reference to
5902         gen-py-const.awk.
5904         * scripts/glibcextract.py: New file.
5905         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5906         or tempfile.  Import glibcexctract.
5907         (compute_c_consts): Remove.  Moved to glibcextract.py.
5908         (gen_test): Update reference to compute_c_consts.
5909         (main): Likewise.
5910         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5911         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5912         * sysdeps/unix/sysv/linux/Makefile
5913         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5914         Redirect stderr as well as stdout.
5916 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
5918         [BZ #19767]
5919         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5920         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5921         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5922         ALWAYS_USE_VSYSCALL.
5923         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5924         ALWAYS_USE_VSYSCALL.
5925         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5926         ALWAYS_USE_VSYSCALL.
5928 2018-12-10  Florian Weimer  <fweimer@redhat.com>
5930         [BZ #23972]
5931         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5932         offset instead of count for clarity.  Fix typo in comment.
5933         (__old_getdents64): Keep track of previous offset.  Use it to call
5934         handle_overflow.
5935         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5936         that d_off is never zero.
5938 2018-12-10  Andreas Schwab  <schwab@suse.de>
5940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5941         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5943         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5944         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5946 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
5948         * timezone/private.h: Update from tzcode 2018g.
5949         * timezone/tzfile.h: Likewise.
5950         * timezone/tzselect.ksh: Likewise.
5951         * timezone/zdump.c: Likewise.
5952         * timezone/zic.c: Likewise.
5954 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
5956         [BZ #23490]
5957         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5958         (do_test): Adjust buffer size and fix format.
5960 2018-12-07  DJ Delorie  <dj@redhat.com>
5962         [BZ #23907]
5963         * malloc/tst-tcfree3.c: New.
5964         * malloc/Makefile: Add it.
5966 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5968         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5970 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5972         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5973         used as a mask for the mode argument of __vfscanf_internal and
5974         __vfwscanf_internal.
5975         * stdio-common/vfscanf-internal.c
5976         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5977         (__strtof128_internal): Define to __wcstof128_internal.
5978         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5979         __strtof128_internal or __wcstof128_internal when the format of
5980         long double is the same as _Float128.
5982 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5984         * include/unistd.h (__confstr): Add prototype and hidden prototype.
5985         * posix/confstr.c (confstr): Rename to __confstr.
5986         (__confstr): Add hidden def.
5987         (confstr): Add weak alias for __confstr.
5988         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5989         confstr.
5991 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5993         * NEWS: Mention getcpu.
5994         * include/sched.h (__getcpu): New libc_hidden_proto.
5995         * manual/resource.texi: Document getcpu.
5996         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5997         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5998         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5999         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6000         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6001         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6002         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6003         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6004         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6005         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6006         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6007         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6008         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6009         Likewise.
6010         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6011         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6012         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6014         Likewise.
6015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6016         Likewise.
6017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6018         Likewise.
6019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6020         Likewise.
6021         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6022         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6023         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6024         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6025         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6026         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6027         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6028         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6029         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6030         * sysdeps/unix/sysv/linux/getcpu.c: New file.
6031         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6032         Also check getcpu.
6034 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6036         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6037         functions.
6038         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6040 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6042         [BZ #17405]
6043         * posix/Makefile (routines): Add spawn_faction_addfchdir.
6044         * posix/Versions (GLIBC_2.29): Export
6045         posix_spawn_file_actions_addfchdir_np.
6046         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6047         * posix/spawn_faction_destroy.c
6048         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6049         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6050         and the field action.fchdir_action.
6051         * posix/tst-spawn-chdir.c (add_chdir): New function.
6052         (do_test): Add do_fchdir loop.  Call add_chdir.
6053         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6054         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6055         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6056         posix_spawn_file_actions_addfchdir_np.
6057         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6058         Likewise.
6059         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6060         Likewise.
6061         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6062         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6063         Likewise.
6064         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6065         Likewise.
6066         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6067         Likewise.
6068         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6069         Likewise.
6070         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6071         Likewise.
6072         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6073         Likewise.
6074         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6075         (GLIBC_2.29): Likewise.
6076         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6077         (GLIBC_2.29): Likewise.
6078         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6079         (GLIBC_2.29): Likewise.
6080         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6081         (GLIBC_2.29): Likewise.
6082         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6083         Likewise.
6084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6085         (GLIBC_2.29): Likewise.
6086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6087         (GLIBC_2.29): Likewise.
6088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6089         (GLIBC_2.29): Likewise.
6090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6091         (GLIBC_2.29): Likewise.
6092         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6093         Likewise.
6094         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6095         Likewise.
6096         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6097         Likewise.
6098         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6099         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6100         Likewise.
6101         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6102         Likewise.
6103         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6104         Likewise.
6105         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6106         Likewise.
6108 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
6110         * manual/texinfo.tex: Update to version 2018-09-21.20 with
6111         trailing whitespace removed.
6112         * scripts/config.guess: Update to version 2018-11-28.
6113         * scripts/config.sub: Update to version 2018-11-28.
6114         * scripts/install-sh: Update to version 2018-03-11.20.
6115         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6116         * scripts/move-if-change: Update to version 2018-03-07 03:47.
6118 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6120         [BZ #23927]
6121         CVE-2018-19591
6122         * inet/tst-if_index-long.c: New file.
6123         * inet/Makefile (tests): Add tst-if_index-long.
6125 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6127         * support/check.h (support_record_failure_is_failed): Declare.
6128         * support/descriptors.h: New file.
6129         * support/support_descriptors.c: Likewise.
6130         * support/tst-support_descriptors.c: Likewise.
6131         * support/support_record_failure.c
6132         (support_record_failure_is_failed): New function.
6133         * support/Makefile (libsupport-routines): Add support_descriptors.
6134         (tests): Add tst-support_descriptors.
6136 2018-12-05  Zack Weinberg  <zackw@panix.com>
6137             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6139         * stdio-common/vfprintf-internal.c
6140         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6141         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6142         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6143         and __no_long_double.
6144         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6145         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6146         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6147         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6148         and __nldbl_*syslog* functions.
6149         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6150         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6151         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6152         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6153         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6154         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6155         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6156         (__nldbl_vwprintf, __nldbl_wprintf):
6157         Directly call the appropriate __v*printf_internal routine, passing
6158         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
6159         variable names.
6160         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6161         (__nldbl___printf_chk, __nldbl___snprintf_chk)
6162         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6163         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6164         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6165         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6166         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6167         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6168         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6169         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6170         Likewise, and also pass PRINTF_FORTIFY when appropriate.
6171         (__nldbl_syslog, __nldbl_vsyslog):
6172         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6173         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6174         appropriate.
6175         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6176         appropriate.
6178 2018-12-05  Zack Weinberg  <zackw@panix.com>
6179             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6181         [BZ #11319]
6182         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6183         Moved here from debug/vsprintf_chk.c.
6184         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
6185         and completion logic for the strfile to match exactly what
6186         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6187         _IO_str_init_static_internal instead of maxlen-1.
6188         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6189         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6190         __vsprintf_internal.
6192         * debug/vsprintf_chk.c (__vsprintf_chk)
6193         * debug/sprintf_chk.c (__sprintf_chk):
6194         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6195         'flags' argument is positive, and slen as maxlen.  No need to lock
6196         the FILE and/or construct a temporary FILE.  Minimize and normalize
6197         header inclusions and variable names.  Do not libc_hidden_def anything.
6199         * debug/asprintf_chk.c (__asprintf_chk)
6200         * debug/dprintf_chk.c (__dprintf_chk)
6201         * debug/fprintf_chk.c (__fprintf_chk)
6202         * debug/fwprintf_chk.c (__fwprintf_chk)
6203         * debug/printf_chk.c (__printf_chk)
6204         * debug/snprintf_chk.c (__snprintf_chk)
6205         * debug/swprintf_chk.c (__swprintf_chk)
6206         * debug/vasprintf_chk.c (__vasprintf_chk)
6207         * debug/vdprintf_chk.c (__vdprintf_chk)
6208         * debug/vfprintf_chk.c (__vfprintf_chk)
6209         * debug/vfwprintf_chk.c (__vfwprintf_chk)
6210         * debug/vprintf_chk.c (__vprintf_chk)
6211         * debug/vsnprintf_chk.c (__vsnprintf_chk)
6212         * debug/vswprintf_chk.c (__vswprintf_chk)
6213         * debug/vwprintf_chk.c (__vwprintf_chk)
6214         * debug/wprintf_chk.c (__wprintf_chk):
6215         Directly call the corresponding vxxprintf_internal function, passing
6216         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
6217         the FILE and/or construct a temporary FILE.  Minimize and normalize
6218         header inclusions and variable names.  Do not libc_hidden_def anything.
6220         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6221         __obstack_vprintf_internal.
6222         (__obstack_vprintf_chk): Convert into a wrapper that calls
6223         __obstack_vprintf_internal (these two functions already had the
6224         same code) and move to new file...
6225         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
6226         file.
6227         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6228         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6229         * debug/Makefile (routines): Add vobprintf_chk.
6231         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6232         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6233         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6234         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6235         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6236         (__nldbl___obstack_vfprintf_chk):
6237         Directly call the corresponding vxxprintf_internal function,
6238         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
6239         duplicate comparison of slen with 0 or maxlen from the corresponding
6240         non-__nldbl function.
6242         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6243         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6244         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6245         Remove libc_hidden_proto.
6247         * stdio-common/vfprintf-internal.c
6248         (__vfprintf_internal, __vfwprintf_internal):
6249         Do not check _IO_FLAGS2_FORTIFY.
6250         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6251         * libio/libioP.h: Update prototype of __vsprintf_internal and add
6252         a comment explaining why it has the maxlen argument.
6253         (_IO_acquire_lock_clear_flags2_fct): Remove.
6254         (_IO_acquire_lock_clear_flags2): Remove.
6255         (_IO_release_lock): Remove conditional statement which will
6256         now never execute.
6257         (_IO_acquire_lock): Remove variable which is now unused.
6258         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6259         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6261         * stdio-common/Makefile (tests): Add tst-bz11319 and
6262         tst-bz11319-fortify2.
6263         (CFLAGS-tst-bz11319-fortify2.c): New macro.
6264         * stdio-common/tst-bz11319-fortify2.c: New file.
6265         * stdio-common/tst-bz11319.c: Likewise.
6267 2018-12-05  Zack Weinberg  <zackw@panix.com>
6268             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6270         * misc/syslog.c: Include libioP.h, not iolibio.h.
6271         (__vsyslog_internal): New function with the former body of
6272         __vsyslog_chk; takes mode_flags argument same as
6273         __v*printf_internal.  Call __vfprintf_internal directly.
6275         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6276         Remove libc_hidden_def.
6277         (__syslog, __syslog_chk): Use __vsyslog_internal.
6278         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
6280         * include/sys/syslog.h: Add multiple inclusion guard.
6281         Add prototype for __vsyslog_internal.
6282         Remove declaration and libc_hidden_proto for __vsyslog_chk.
6284         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6285         Use __vsyslog_internal.
6287 2018-12-05  Zack Weinberg  <zackw@panix.com>
6288             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6290         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6291         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6292         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6293         New functions.
6294         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6295         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6297         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6298         Include wctype.h here if COMPILE_WPRINTF is defined.
6299         Define __vfprintf_internal or __vfwprintf_internal, depending
6300         on COMPILE_WPRINTF.
6301         Temporarily, on entry to this function, update mode_flags
6302         according to the environmental settings corresponding to
6303         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6304         Throughout, check mode_flags instead of __ldbl_is_dbl and
6305         _IO_FLAGS2_FORTIFY on the destination FILE.
6306         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6307         Include vfprintf-internal.c.  Don't include wctype.h.
6308         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
6309         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6310         and vfprintf.
6311         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
6312         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6313         and vfwprintf.
6314         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6316         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6317         and add mode_flags argument; use __vfprintf_internal.
6318         (__vdprintf): New function.  Alias vdprintf to this.
6319         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6320         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6321         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6322         (__obstack_printf): Use __obstack_printf_internal.
6323         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6324         public aliases __vsnprintf and vsnprintf.
6325         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6326         called internally.
6327         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6328         public aliases _IO_vsprintf and vsprintf.
6329         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6330         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6331         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6332         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6333         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6335         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6336         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6337         * stdio-common/fprintf.c, stdio-common/fxprintf.c
6338         * stdio-common/printf.c: Use __vfprintf_internal.
6340         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6341         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6342         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6344         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6345         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6346         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6347         __vfwprintf_internal.
6349         * libio/libio.h: Remove libc_hidden_proto and declaration for
6350         _IO_vfprintf.
6351         Remove declaration of _IO_vfwprintf.
6352         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6353         _IO_vsprintf.
6354         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6355         _IO_obstack_printf.
6356         * include/stdio.h: Add prototype for __vasprintf.
6357         (__vsnprintf): Remove declaration, because there are no more
6358         internal calls.
6359         * include/wchar.h (__vfwprintf, __vswprintf): Remove
6360         declaration, because there are no more internal calls.
6362         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6363         __vsnprintf_internal, instead of _IO_vsnprintf.
6364         * argp/argp-help.c (__argp_error, __argp_failure): Use
6365         __vasprintf_internal, instead of _IO_vasprintf.
6366         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6367         redefine, because there are no more internal calls.
6369 2018-12-05  Zack Weinberg  <zackw@panix.com>
6370             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6372         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6373         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6374         Include libio/strfile.h instead of libioP.h.
6375         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6376         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6377         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6378         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6379         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6380         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
6381         necessary.  Do not set __no_long_double.  Normalize variable names.
6382         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6383         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6384         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6385         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6386         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6387         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6388         Call __vfscanf_internal / __vfwscanf_internal directly, passing
6389         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
6390         Do not set __no_long_double.  Normalize variable names.
6392 2018-12-05  Zack Weinberg  <zackw@panix.com>
6393             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6395         * stdio-common/isoc99_scanf.c
6396         * stdio-common/isoc99_fscanf.c
6397         * stdio-common/isoc99_sscanf.c
6398         * stdio-common/isoc99_vscanf.c
6399         * stdio-common/isoc99_vfscanf.c
6400         * stdio-common/isoc99_vsscanf.c
6401         * wcsmbs/isoc99_wscanf.c
6402         * wcsmbs/isoc99_fwscanf.c
6403         * wcsmbs/isoc99_swscanf.c
6404         * wcsmbs/isoc99_vwscanf.c
6405         * wcsmbs/isoc99_vfwscanf.c
6406         * wcsmbs/isoc99_vswscanf.c:
6407         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6408         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6409         No need to lock and unlock the FILE passed to that function.
6411         * stdio-common/vfscanf-internal.c
6412         (__vfscanf_internal, __vfwscanf_internal):
6413         Don't look at _IO_FLAGS2_SCANF_STD.
6414         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6415         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6416         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6418 2018-12-05  Zack Weinberg  <zackw@panix.com>
6419             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6421         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6422         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6423         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6424         * libio/strfile.h: Add multiple inclusion guard.
6425         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6427         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6428         consistency with the other version of this file.
6429         (ldbl_compat_symbol): New macro.
6430         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6431         New macro.
6433         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6434         Define __vfscanf_internal or __vfwscanf_internal, depending on
6435         COMPILE_WSCANF; don't define any other public symbols.
6436         Remove errval and code to set errp.
6437         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6438         as the mode_flags argument.
6439         (encode_error, conv_error, input_error): Don't set errval.
6440         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6441         Include vfscanf-internal.c.
6442         * stdio-common/vfscanf.c: New file defining the public entry
6443         point vfscanf, which calls __vfscanf_internal.
6444         * stdio-common/vfwscanf.c: New file defining the public entry
6445         point vfwscanf, which calls __vfwscanf_internal.
6447         * stdio-common/iovfscanf.c: New file.
6448         * stdio-common/iovfwscanf.c: Likewise.
6450         * stdio-common/Makefile (routines): Add vfscanf-internal,
6451         vfwscanf-internal, iovfscanf, iovfwscanf.
6452         * stdio-common/Versions: Mention GLIBC_2.29, so that
6453         it can be used in SHLIB_COMPAT expressions.
6454         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6455         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6456         Call __vfscanf_internal, instead of _IO_vfscanf.
6457         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6458         _IO_vfscanf.
6459         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6460         _IO_vfwscanf.
6462         * libio/iovsscanf.c: Clean up includes, when possible.  Use
6463         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
6464         __vfscanf_internal or __vfwscanf_internal directly.
6465         * libio/iovswscanf.c: Likewise.
6466         * libio/swscanf.c: Likewise.
6467         * libio/vscanf.c: Likewise.
6468         * libio/vwscanf.c: Likewise.
6469         * libio/wscanf.c: Likewise.
6470         * stdio-common/isoc99_fscanf.c: Likewise.
6471         * stdio-common/isoc99_scanf.c: Likewise.
6472         * stdio-common/isoc99_sscanf.c: Likewise.
6473         * stdio-common/isoc99_vfscanf.c: Likewise.
6474         * stdio-common/isoc99_vscanf.c: Likewise.
6475         * stdio-common/isoc99_vsscanf.c: Likewise.
6476         * stdio-common/scanf.c: Likewise.
6477         * stdio-common/sscanf.c: Likewise.
6478         * wcsmbs/isoc99_fwscanf.c: Likewise.
6479         * wcsmbs/isoc99_swscanf.c: Likewise.
6480         * wcsmbs/isoc99_vfwscanf.c: Likewise.
6481         * wcsmbs/isoc99_vswscanf.c: Likewise.
6482         * wcsmbs/isoc99_vwscanf.c: Likewise.
6483         * wcsmbs/isoc99_wscanf.c: Likewise.
6485 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6487         * include/time.h
6488         (__tz_compute): Replace time_t with __time64_t.
6489         (__tz_convert): Replace time_t* with __time64_t.
6490         (__offtime): Replace time_t* with __time64_t.
6491         * time/gmtime.c
6492         (__gmtime_r): Adjust call to __tz_convert.
6493         (gmtime): Likewise.
6494         * time/localtime.c
6495         (__localtime_r): Likewise.
6496         (localtime): Likewise.
6497         * time/offtime.c: Replace time_t with __time64_t.
6498         * time/tzset.c: Likewise.
6500 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
6502         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6503         dynamic linker unless [$(run-built-tests) = yes].
6505 2018-12-03  DJ Delorie  <dj@delorie.com>
6507         * support/test-container.c (check_for_unshare_hints): New.
6508         (main): Call it if unshare fails.  Add support for "su" scriptlet
6509         command.
6511 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
6513         * scripts/gen-as-const.py (compute_c_consts): Take an argument
6514         'START' to indicate that start text should be output.
6515         (gen_test): Likewise.
6516         (main): Generate 'START' for first symbol or '--' line, or at end
6517         of input if not previously generated.
6519 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
6521         [BZ #19767]
6522         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6523         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6524         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6525         ALWAYS_USE_VSYSCALL.
6527 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6529         [BZ #23913]
6530         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6531         new_argv by one.
6533 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
6535         [BZ #23923]
6536         * locale/programs/localedef.c: Declare boolean hard_links default true.
6537         (options): Add --no-hard-links option.
6538         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6539         * locale/programs/localedef.h: Declare prototype for hard_links.
6540         * locale/programs/locfile.c (write_locale_data): Don't use hard
6541         links if hard_links is false.
6543 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
6545         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6546         cpu_features_basic.
6547         (__cache_sysconf): Likewise.
6548         (init_cacheinfo): Likewise.
6549         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6550         populate COMMON_CPUID_INDEX_80000007 and
6551         COMMON_CPUID_INDEX_80000008.
6552         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6553         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6554         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
6555         (init_cpu_features): Use _Static_assert on
6556         index_arch_Fast_Unaligned_Load.
6557         __get_cpuid_registers and __get_arch_feature.  Updated for
6558         cpu_features_basic.  Set stepping in cpu_features.
6559         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6560         (FEATURE_INDEX_2): New.
6561         (FEATURE_INDEX_MAX): Changed to enum.
6562         (COMMON_CPUID_INDEX_D_ECX_1): New.
6563         (COMMON_CPUID_INDEX_80000007): Likewise.
6564         (COMMON_CPUID_INDEX_80000008): Likewise.
6565         (cpuid_registers): Likewise.
6566         (cpu_features_basic): Likewise.
6567         (CPU_FEATURE_USABLE): Likewise.
6568         (bit_arch_XXX_Usable): Likewise.
6569         (cpu_features): Use cpuid_registers and cpu_features_basic.
6570         (bit_arch_XXX): Reweritten.
6571         (bit_cpu_XXX): Likewise.
6572         (index_cpu_XXX): Likewise.
6573         (reg_XXX): Likewise.
6574         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6575         <support/check.h>.
6576         (CHECK_CPU_FEATURE): New.
6577         (CHECK_CPU_FEATURE_USABLE): Likewise.
6578         (cpu_kinds): Likewise.
6579         (do_test): Print vendor, family, model and stepping.  Check
6580         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6581         (TEST_FUNCTION): Removed.
6582         Include <support/test-driver.c> instead of
6583         "../../test-skeleton.c".
6584         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6585         Check POPCNT instead of POPCOUNT.
6586         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6588 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6590         * scripts/gen-as-const.py (main): Avoid emitting empty line when
6591         there is no element in `consts'.
6593 2018-12-01  Florian Weimer  <fweimer@redhat.com>
6595         * support/support_capture_subprocess.c
6596         (support_capture_subprocess): Check that pipe descriptors have
6597         expected values.  Close original pipe descriptors in subprocess.
6599 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6601         [BZ #23032]
6602         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6603         attr with __pthread_default_barrierattr.
6604         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6605         attr with __pthread_default_condattr.
6606         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6607         attr with __pthread_default_mutexattr.
6608         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6609         attr with __pthread_default_rwlockattr.
6611 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
6613         * manual/tunables.texi (POSIX Thread Tunables): New node.
6614         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6615         * nptl/nptl-init.c: Include pthread_mutex_conf.h
6616         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6617         __pthread_tunables_init.
6618         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6619         (max_adaptive_count): Define.
6620         * nptl/pthread_mutex_conf.c: New file.
6621         * nptl/pthread_mutex_conf.h: New file.
6622         * sysdeps/generic/adaptive_spin_count.h: New file.
6623         * sysdeps/nptl/dl-tunables.list: New file.
6624         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6625         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6626         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6627         Likewise.
6629 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6631         [BZ #20544]
6632         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6633         * stdlib/on_exit.c (__on_exit): Likewise.
6634         * stdlib/Makefile (tests): Add tst-bz20544.
6635         * stdlib/tst-bz20544.c: New test.
6637 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
6639         [BZ #19767]
6640         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6641         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6642         New.
6644 2018-11-30  Florian Weimer  <fweimer@redhat.com>
6646         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6647         Extend error logging.
6648         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6649         symbol.
6651 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6653         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6654         __sigismember instead of sigismember.
6655         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6656         cancel_handler): New definitions.
6657         (do_system): Use posix_spawn instead of fork and execl and remove
6658         reentracy code.
6659         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6660         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6661         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6662         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6663         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6664         * sysdeps/unix/sysv/linux/system.c: Likewise.
6666         [BZ #22834]
6667         [BZ #17490]
6668         * NEWS: Add new semantic for atfork with popen and system.
6669         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6670         fork and execl.
6672 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6674         [BZ #23690]
6675         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6676         modification order when accessing reloc_result->addr.
6677         * include/link.h (reloc_result): Add field init.
6678         * nptl/Makefile (tests): Add tst-audit-threads.
6679         (modules-names): Add tst-audit-threads-mod1 and
6680         tst-audit-threads-mod2.
6681         Add rules to build tst-audit-threads.
6682         * nptl/tst-audit-threads-mod1.c: New file.
6683         * nptl/tst-audit-threads-mod2.c: Likewise.
6684         * nptl/tst-audit-threads.c: Likewise.
6685         * nptl/tst-audit-threads.h: Likewise.
6687 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
6689         * scripts/gen-as-const.py: New file.
6690         * scripts/gen-as-const.awk: Remove.
6691         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6692         gen-as-const.py.
6693         ($(objpfx)test-as-const-%.c): Likewise.
6695 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
6697         * elf/dl-exception.c: Include <_itoa.h>.
6699 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6701         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6702         returned by __f_setlk.
6704 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
6705             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6707         * elf/Makefile (tests-internal): Add tst-create_format1.
6708         * elf/dl-exception.c (_dl_exception_create_format): Support
6709         %x, %lx and %zx.
6710         * elf/tst-create_format1.c: New file.
6712 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
6714         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6715         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
6716         gnulib.)
6717         * argp/argp-help.c (__argp_failure): Likewise.
6719 2018-11-29  Mao Han  <han_mao@c-sky.com>
6721         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6722         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6723         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6724         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6725         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6726         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6727         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6728         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6729         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6730         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6731         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6732         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6733         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6734         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6735         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6736         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6737         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6738         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6739         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6740         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6741         (R_CKCORE_TLS_TPOFF32): New defines.
6743 2018-11-29  Florian Weimer  <fweimer@redhat.com>
6745         * posix/Makefile (before-compile): Remove testcases.h and
6746         ptestcases.h.
6747         (generated): Add testcases.h and ptestcases.h.
6748         (testcases.h, ptestcases.h): Move to $(objpfx).
6749         (runtests.o): Add dependency on testcases.h.
6750         (runptests.o): Add dependency on ptestcases.h.
6751         * posix/testcases.h, posix/ptestcases.h: Remove files.
6752         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6753         not touch posix/testcases.h and posix/ptestcases.h.
6755 2018-11-28  Florian Weimer  <fweimer@redhat.com>
6757         support: Add signal support to support_capture_subprocess_check.
6758         * support/capture_subprocess.h (support_capture_subprocess_check):
6759         Adjust comment and rename parameter.
6760         * support/support_capture_subprocess_check.c
6761         (print_actual_status): New function.
6762         (support_capture_subprocess_check): Support negative
6763         status_or_signal.  Call print_actual_status.
6764         * support/tst-support_capture_subprocess.c (do_test): Call
6765         support_capture_subprocess_check.
6766         * libio/tst-vtables-common.c (termination_status)
6767         (init_termination_status): Remove.
6768         (check_for_termination): Adjust support_capture_subprocess_check
6769         call.
6770         (do_test): Remove call to init_termination_status.
6772 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
6774         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6775         source directory instead of a copy.
6776         (CommandList.create_copy_dir): Remove.
6778 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
6780         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6782 2018-11-28  Florian Weimer  <fweimer@redhat.com>
6784         * support/support.h (support_quote_string): Do not use str
6785         parameter name.
6787 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
6789         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6790         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6792 2018-11-27  Florian Weimer  <fweimer@redhat.com>
6794         * support/support.h (support_quote_string): Declare.
6795         * support/support_quote_string.c: New file.
6796         * support/tst-support_quote_string.c: Likewise.
6797         * support/Makefile (libsupport-routines): Add
6798         support_quote_string.
6799         (tests): Add tst-support_quote_string.
6801 2018-11-27  Florian Weimer  <fweimer@redhat.com>
6803         [BZ #23927]
6804         CVE-2018-19591
6805         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6806         descriptor leak in case of ENODEV error.
6808 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
6810         [BZ #19767]
6811         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6812         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6813         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6815 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
6817         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6818         Error for unknown lines.
6820 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
6822         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6823         Touch additional files.
6825 2018-11-26  Florian Weimer  <fweimer@redhat.com>
6827         [BZ #23907]
6828         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6829         double-frees.
6831 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
6833         [BZ #19767]
6834         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6835         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6836         SHARED.  Include sysdep.h.
6837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6838         ALWAYS_USE_VSYSCALL.
6839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6840         ALWAYS_USE_VSYSCALL.
6842 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
6844         [BZ #19767]
6845         * nptl/Makefile (tests-static): Add tst-cond11-static.
6846         (tests): Likewise.
6847         * nptl/tst-cond11-static.c: New File.
6848         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6849         tst-affinity-static.
6850         (tests): Likewise.
6851         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6852         instead of SHARED.
6853         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6854         (USE_VSYSCALL): Likewise.
6855         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6856         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6857         instead of SHARED.
6858         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6859         SHARED.
6860         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6861         New.
6863 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
6865         [BZ #23915]
6866         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6867         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6868         Undefine.
6870 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
6872         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6873         (tst-cet-legacy-1a-ARGS): New.
6874         ($(objpfx)tst-cet-legacy-1a): New target.
6875         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6877 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
6879         * conform/conformtest.py (CompileSubTest.__init__): Set
6880         self.run_early to False.
6881         (ExecuteSubTest.__init__): Likewise.
6882         (HeaderTests.run): Try running all non-optional, non-XFAILed
6883         compilation tests in a single execution of the compiler.
6885         * conform/conformtest.py (CompileSubTest): New class.
6886         (ExecuteSubTest): Likewise.
6887         (ElementTest.run): Rename to gen_subtests.  Append tests to
6888         self.subtests instead of running them.
6889         (ConstantTest.run): Likewise.
6890         (SymbolTest.run): Likewise.
6891         (TypeTest.run): Likewise.
6892         (TagTest.run): Likewise.
6893         (FunctionTest.run): Likewise.
6894         (VariableTest.run): Likewise.
6895         (MacroFunctionTest.run): Likewise.
6896         (MacroStrTest.run): Likewise.
6897         (HeaderTests.handle_test_line): Generate subtests for tests.
6898         (HeaderTests.run): Run subtests for tests.
6900 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6902         * math/Versions (GLIBC_2.29): Add pow.
6903         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6904         symbol.
6905         * math/w_pow.c: New file.
6906         * sysdeps/i386/fpu/w_pow.c: New file.
6907         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6908         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6909         and add necessary aliases.
6910         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6911         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6912         * sysdeps/mach/hurd/i386/libm.abilist: Update.
6913         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6914         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6915         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6916         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6917         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6918         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6919         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6920         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6921         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6922         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6923         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6924         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6929         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6930         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6931         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6932         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6933         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6934         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6935         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6936         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6937         __pow.
6938         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6939         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6940         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6942 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6944         * math/Versions (GLIBC_2.29): Add log2.
6945         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6946         symbol.
6947         * math/w_log2.c: New file.
6948         * sysdeps/i386/fpu/w_log2.c: New file.
6949         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6950         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6951         and add necessary aliases.
6952         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6953         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6954         * sysdeps/mach/hurd/i386/libm.abilist: Update.
6955         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6956         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6957         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6958         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6959         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6960         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6961         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6962         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6963         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6964         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6965         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6966         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6971         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6972         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6973         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6974         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6975         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6976         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6977         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6979 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6981         * math/Versions (GLIBC_2.29): Add log.
6982         * math/w_log_compat.c (__log_compat): Change to versioned compat
6983         symbol.
6984         * math/w_log.c: New file.
6985         * sysdeps/i386/fpu/w_log.c: New file.
6986         * sysdeps/ia64/fpu/e_log.S: Update.
6987         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6988         and add necessary aliases.
6989         * sysdeps/ieee754/dbl-64/w_log.c: New file.
6990         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6991         * sysdeps/mach/hurd/i386/libm.abilist: Update.
6992         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6993         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6994         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6995         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6996         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6997         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6998         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6999         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7000         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7001         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7002         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7003         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7008         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7009         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7010         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7011         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7012         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7013         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7014         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7015         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7016         __log.
7017         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7018         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7019         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7020         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7022 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7024         * math/Versions (GLIBC_2.29): Add exp and exp2.
7025         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7026         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7027         * math/w_exp_compat.c (__exp_compat): Likewise.
7028         * math/w_exp.c: New file.
7029         * math/w_exp2.c: New file.
7030         * sysdeps/i386/fpu/w_exp.c: New file.
7031         * sysdeps/i386/fpu/w_exp2.c: New file.
7032         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7033         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7034         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7035         and add necessary aliases.
7036         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7037         and add necessary aliases.
7038         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7039         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7040         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7041         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7042         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7043         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7044         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7045         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7046         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7047         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7048         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7049         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7050         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7051         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7052         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7053         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7054         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7059         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7060         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7061         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7062         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7063         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7064         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7065         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7066         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7067         (__ieee754_exp): Rename to __exp.
7068         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7069         (__ieee754_exp): Rename to __exp.
7070         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7071         (__ieee754_exp): Rename to __exp.
7072         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7073         __exp.
7074         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7076 2018-11-20  DJ Delorie  <dj@redhat.com>
7078         * malloc/malloc.c (tcache_entry): Add key field.
7079         (tcache_put): Set it.
7080         (tcache_get): Likewise.
7081         (_int_free): Check for double free in tcache.
7082         * malloc/tst-tcfree1.c: New.
7083         * malloc/tst-tcfree2.c: New.
7084         * malloc/Makefile: Run the new tests.
7085         * manual/probes.texi: Document memory_tcache_double_free probe.
7087         * dlfcn/dlerror.c (check_free): Prevent double frees.
7089 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
7091         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7093 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
7095         * conform/conformtest.py (ElementTest.run): Use unique identifiers
7096         in tests.  Use names for format arguments.
7097         (ConstantTest.run): Likewise.
7098         (SymbolTest.run): Likewise.
7099         (TypeTest.run): Likewise.
7100         (TagTest.run): Likewise.
7101         (FunctionTest.run): Likewise.
7102         (VariableTest.run): Likewise.
7103         (MacroFunctionTest.run): Likewise.
7104         (MacroStrTest.run): Likewise.
7105         (HeaderTests.__init__): Set self.num_tests.
7106         (HeaderTests.handle_test_line): Set test.num.  Increment
7107         self.num_tests.
7109 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7111         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7112         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7113         SEEK_SET.
7115 2018-11-19  Mao Han  <han_mao@c-sky.com>
7117         * scripts/config.guess: Update to version 2018-08-29.
7118         * scripts/config.sub: Update to version 2018-08-29.
7120 2018-11-19  Florian Weimer  <fweimer@redhat.com>
7122         support: Print timestamps in timeout handler.
7123         * support/support_test_main.c (print_timestamp): New function.
7124         (signal_handler): Use it to print the termination time and the
7125         time of the last write to standard output.
7127 2018-11-16  Zack Weinberg  <zackw@panix.com>
7128             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7130         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7131         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7132         argument.
7133         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7134         and add flags argument.  Check flags instead of __ldbl_is_dbl when
7135         deciding whether to set is_long_double.
7136         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7137         passing zero for flags argument.
7138         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7140         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7141         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7142         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7143         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
7144         variable names.  Remove libc_hidden_def/libc_hidden_proto from
7145         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7146         longer called from within the library.
7147         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7148         for __nldbl___vstrfmon_l, declare it explicitly.
7150         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7152 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7154         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7155         macros
7156         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7157         F_SETLK64, F_SETLKW64, respectively.
7158         * sysdeps/mach/hurd/f_setlk.c: New file.
7159         * sysdeps/mach/hurd/f_setlk.h: New file.
7160         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7161         f_setlk.
7162         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7163         (__libc_fcntl): Move non-flock operations to...
7164         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7165         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7167 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7169         mktime: DEBUG_MKTIME cleanup
7170         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7171         And it’s no longer needed now that glibc and Gnulib both have
7172         their own testing mechanisms for mktime.
7173         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
7175         mktime: fix non-EOVERFLOW errno handling
7176         [BZ#23789]
7177         mktime was not properly reporting failures when the underlying
7178         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7179         them like EOVERFLOW failures, and set errno to EOVERFLOW.
7180         The problem could happen on non-glibc platforms, with Gnulib.
7181         * time/mktime.c (guess_time_tm): Remove, replacing with ...
7182         (tm_diff): ... this simpler function, which does not change errno.
7183         All callers changed to deal with errno themselves.
7184         (ranged_convert, __mktime_internal): Return failure immediately if
7185         the underlying function reports any failure other than EOVERFLOW.
7186         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7187         gap code fails.
7189         mktime: fix bug with Y2038 DST transition
7190         [BZ#23789]
7191         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7192         mishandle a DST transition that jumps over the Y2038 boundary.
7193         No such DST transitions are known so this is only a theoretical
7194         bug, but we might as well do things right.
7196         mktime: make more room for overflow
7197         [BZ#23789]
7198         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7199         This is so that we can add tm_diff results to a previous guess,
7200         which will be useful in a later patch.
7202         mktime: simplify offset guess
7203         [BZ#23789]
7204         * time/mktime.c (__mktime_internal): Omit excess precision.
7206         mktime: new test for mktime failure
7207         [BZ#23789]
7208         Based on a test suggested by Albert Aribaud in:
7209         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7210         * time/Makefile (tests): Add bug-mktime4.
7211         * time/bug-mktime4.c: New file.
7213         mktime: fix EOVERFLOW bug
7214         [BZ#23789]
7215         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7216         Include libc-config.h, not config.h, for __set_errno.
7217         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7219 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7221         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7222         __attribute_copy__ to copy attributes from name. Drop static qualifier
7223         to avoid warnings about leaf attribute not having effect on static
7224         functions.
7226 2018-11-13  Florian Weimer  <fweimer@redhat.com>
7228         * malloc/malloc.c (fastbin_push_entry): New function.
7229         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
7230         (REMOVE_FB): Remove macro.
7231         (_int_malloc): Use fastbin_pop_entry and reindent.
7232         (_int_free): Use fastbin_push_entry.
7233         (malloc_consolidate): Use atomic_exchange_acquire.
7235 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
7237         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7238         alias attribute, not with strong_alias.
7240         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7241         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
7242         with additional parameter thread.
7243         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7244         in terms of __hidden_ver2.
7245         (hidden_tls_def): New macro.
7246         (libc_hidden_tls_def): Likewise.
7247         (rtld_hidden_tls_def): Likewise.
7248         (libm_hidden_tls_def): Likewise.
7249         (libmvec_hidden_tls_def): Likewise.
7250         (libresolv_hidden_tls_def): Likewise.
7251         (librt_hidden_tls_def): Likewise.
7252         (libdl_hidden_tls_def): Likewise.
7253         (libnss_files_hidden_tls_def): Likewise.
7254         (libnsl_hidden_tls_def): Likewise.
7255         (libnss_nisplus_hidden_tls_def): Likewise.
7256         (libutil_hidden_tls_def): Likewise.
7257         (libutil_hidden_tls_def): Likweise.
7258         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7259         libc_hidden_tls_def.
7260         (__sim_disabled_exceptions_thread): Likewise.
7261         (__sim_round_mode_thread): Likewise.
7263         * sysdeps/sparc/sparc-ifunc.h [SHARED]
7264         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7265         copy attributes from name.
7267 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
7269         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7270         Use __attribute_copy__ to copy attributes from name.
7272         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7273         with __hidden_ver1 call.
7274         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7275         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7276         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7277         (__cosf): Do not declare here.
7278         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7279         (__sincosf): Do not declare here.
7280         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7281         (__sinf): Do not declare here.
7283         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7284         (__BIG_ENDIAN): Likewise.
7285         (__BYTE_ORDER): Likewise.
7286         (strong_alias): Likewise.
7287         (_strong_alias): Likewise.
7289 2018-11-12  Florian Weimer  <fweimer@redhat.com>
7291         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7292         function.  Move after the definition of in_smallbin_range.  Do not
7293         use __builtin_expect for paths that lead to a noreturn function.
7294         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7295         because it is unclear whether this is in fact an unlikely
7296         condition.
7297         (_int_malloc, _int_free): Adjust.
7298         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
7299         variables.
7300         * malloc/arena.c (heap_trim): Likewise.
7302 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7304         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7305         it, free it if needed.
7306         (reauthenticate): Test and use ccwdir.
7307         (child_init_port): In non-resetids case, test and use ccwdir.
7308         (child_chdir): New nested function to set ccwdir.
7309         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7310         * hurd/hurd/port.h (_hurd_port_move): New function.
7311         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7312         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7313         * hurd/Versions (_hurd_port_move): Export function.
7314         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7315         symbol.
7316         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7317         of dtablesize for allocating dtable_cloexec.
7319 2018-11-09  Martin Sebor  <msebor@redhat.com>
7321         * include/libc-symbols.h (__attribute_copy__): Define macro unless
7322         it's already defined.
7323         (_strong_alias): Use __attribute_copy__.
7324         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
7325         * misc/sys/cdefs.h (__attribute_copy__): New macro.
7326         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7327         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7328         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7329         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7330         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7331         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7332         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7333         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7334         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7335         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7336         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7337         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7338         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7339         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7340         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7341         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7342         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7344 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7346         * misc/tst-efgcvt.c: Include support/check.h and
7347         support/test-driver.c.  Do not include test-skeleton.c.
7348         (error_count): Remove.
7349         (output_error): Replace increments to error_count with calls to
7350         support_record_failure.
7351         (output_r_error): Likewise.
7352         (special): Likewise.
7353         (do_test): Unconditionally return zero.
7354         (TEST_FUNCTION): Remove.
7356 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
7358         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7359         not $(@D)/scratch.
7360         ($(linknamespace-header-tests)): Likewise.
7362         * conform/conformtest.py: New file.
7363         * conform/conformtest.pl: Remove.
7364         * conform/GlibcConform.pm: Likewise.
7365         * conform/glibcconform.py (KEYWORDS_C90): New constant.
7366         (KEYWORDS_C99): Likewise.
7367         (KEYWORDS): Likewise.
7368         * conform/Makefile ($(conformtest-header-tests)): Use
7369         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
7370         option.  Use --header instead of --headers.
7371         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7372         function entries.
7373         * conform/data/spawn.h-data: Likewise.
7374         * conform/data/fcntl.h-data (openat): Add space after function
7375         name.
7376         * conform/data/wchar.h-data (wcscasecmp): Likewise.
7377         (wcscasecmp_l): Likewise.
7378         * conform/data/termios.h-data (c_cc): Add space after element
7379         name.
7381 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7383         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7384         instead of manually comparing and reporting mismatching strings.
7385         * misc/tst-ldbl-error.c (do_one_test): Likewise.
7386         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7388 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
7390         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7391         __ASSUME_SOCKETCALL.
7392         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7393         (__ASSUME_SOCKETCALL): Remove.
7394         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7395         (__ASSUME_SOCKETCALL): Likewise.
7396         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7397         (__ASSUME_SOCKETCALL): Likewise.
7398         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7399         (__ASSUME_SOCKETCALL): Likewise.
7400         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7401         (__ASSUME_SOCKETCALL): Likewise.
7402         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7403         (__ASSUME_SOCKETCALL): Likewise.
7404         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7405         (__ASSUME_SOCKETCALL): Likewise.
7407 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
7409         [BZ #23509]
7410         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7411         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7412         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7413         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7414         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
7415         lc_unknown.
7417 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
7419         [BZ #17630]
7420         * resolv/tst-resolv-network.c: Add test for getnetbyname.
7422 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
7424         [BZ #23867]
7425         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7426         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7427         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7428         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7430 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7432         * support/support_test_compare_string.c
7433         (support_test_compare_string): Fix printf format.
7435 2018-11-07  Florian Weimer  <fweimer@redhat.com>
7437         Implement TEST_COMPARE_STRING.
7438         * support/check.h (TEST_COMPARE_STRING): Define.
7439         (support_test_compare_string): Declare.
7440         * support/Makefile (libsupport-routines): Add
7441         support_test_compare_string.
7442         (tests): Add tst-test_compare_string.
7443         * support/support_test_compare_string.c: New file.
7444         * support/tst-test_compare_string.c: Likewise.
7446 2018-11-07  Andreas Schwab  <schwab@suse.de>
7448         [BZ #23864]
7449         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7450         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7451         Undef.
7453 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
7455         [BZ #23862]
7456         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7457         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7458         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7459         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7460         Likewise.
7462 2018-11-06  Florian Weimer  <fweimer@redhat.com>
7464         [BZ #17405]
7465         * posix/Makefile (routines): Add spawn_faction_addchdir.
7466         (tests): Add tst-spawn-chdir.
7467         * posix/Versions (GLIBC_2.29): Add
7468         posix_spawn_file_actions_addchdir_np.
7469         * posix/spawn_faction_addchdir.c: New file.
7470         * posix/spawn_faction_destroy.c
7471         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7472         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7473         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7474         chdir_action.
7475         * posix/tst-spawn-chdir.c: New file.
7476         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7477         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7478         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7479         posix_spawn_file_actions_addchdir_np.
7480         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7481         Likewise.
7482         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7483         Likewise.
7484         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7485         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7486         Likewise.
7487         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7488         Likewise.
7489         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7490         Likewise.
7491         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7492         Likewise.
7493         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7494         Likewise.
7495         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7496         Likewise.
7497         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7498         (GLIBC_2.29): Likewise.
7499         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7500         (GLIBC_2.29): Likewise.
7501         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7502         (GLIBC_2.29): Likewise.
7503         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7504         (GLIBC_2.29): Likewise.
7505         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7506         Likewise.
7507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7508         (GLIBC_2.29): Likewise.
7509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7510         (GLIBC_2.29): Likewise.
7511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7512         (GLIBC_2.29): Likewise.
7513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7514         (GLIBC_2.29): Likewise.
7515         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7516         Likewise.
7517         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7518         Likewise.
7519         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7520         Likewise.
7521         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7522         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7523         Likewise.
7524         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7525         Likewise.
7526         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7527         Likewise.
7528         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7529         Likewise.
7531 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7533         * misc/Makefile (tests): Add tst-ldbl-error.
7534         * misc/tst-ldbl-error.c: New file.
7536 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7538         * misc/Makefile (tests): Add tst-ldbl-warn.
7539         * misc/tst-ldbl-warn.c: New file.
7541 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7543         * argp/Makefile (tests): Add tst-ldbl-argp.
7544         * argp/tst-ldbl-argp.c: New file.
7546 2018-11-05  Arjun Shankar  <arjun@redhat.com>
7548         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7549         __gconv_path_elem and call __gconv_get_path unconditionally.
7551 2018-11-05  Andreas Schwab  <schwab@suse.de>
7553         [BZ #22927]
7554         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7555         creating the first helper thread failed.
7557 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7559         * sysdeps/mach/hurd/msync.c: New file.
7561 2018-11-02  Florian Weimer  <fweimer@redhat.com>
7563         * support/shell-container.c (copy_func): Call
7564         support_copy_file_range instead of copy_file_range to support
7565         cross-device copies.
7567 2018-11-02  Florian Weimer  <fweimer@redhat.com>
7569         * support/test-container.c: Include <libc-pointer-arith.h> for
7570         ALIGN_UP.
7572 2018-11-01  Zong Li  <zong@andestech.com>
7574         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7575         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7576         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7577         (__FP_FRAC_SET_8): Add implementation for RV32 use.
7579         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7580         variable to avoid overlap arguments.
7582 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
7584         * posix/bug-regex22.c (main): Use puts with distinct error
7585         messages for unexpected success of re_compile_pattern, not printf
7586         with NULL argument to %s.
7588         * stdio-common/bug22.c: Include <libc-diag.h>.
7589         (do_test): Disable -Wformat-overflow= warnings around fprintf
7590         calls outputting more than INT_MAX characters.
7591         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7592         around printf call with NULL %s argument.
7594         [BZ #23848]
7595         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7596         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7597         Undefine.
7598         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7599         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7600         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7601         (__ASSUME_SENDTO_SYSCALL): Likewise.
7602         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7603         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7604         [!__arch64__].
7605         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7606         (__ASSUME_CONNECT_SYSCALL): Likewise.
7607         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7608         (__ASSUME_RECVFROM_SYSCALL): Likewise.
7609         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7610         Define.
7611         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7612         Likewise.
7613         [__LINUX_KERNEL_VERSION >= 0x040400]
7614         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7615         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7616         Remove.
7617         (listen): Likewise.
7618         (setsockopt): Likewise.
7620 2018-11-01  Fredrik Noring  <noring@nocrew.org>
7622         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7623         with the ISA override.
7625 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
7627         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7628         #endif.
7630 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7632         * manual/errno.texi (EIEIO): Document how translators should
7633         translate the error message.
7634         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
7635         printing trailing whitespaces refused by git.
7636         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7637         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7638         * hurd/Makefile (user-interfaces): Add pci.
7640 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
7642         * conform/linknamespace.py: New file.
7643         * conform/linknamespace.pl: Remove file.
7644         * conform/Makefile ($(linknamespace-header-tests)): Use
7645         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
7646         option.
7648 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7650         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7651         memory leaks.
7653 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7655         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7657 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7659         * stdlib/tst-strtod-overflow.c (do_test): Switch to
7660         support_blob_repeat.
7662 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7664         Avoid spurious test failures in stdlib/test-bz22786.
7665         * support/Makefile (libsupport-routines): Add blob_repeat.
7666         (tests): Add tst-support_blob_repeat.
7667         * support/blob_repeat.h: New file.
7668         * support/blob_repeat.c: Likewise.
7669         * support/tst-support_blob_repeat.c: Likewise.
7670         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7671         support_blob_repeat_allocate.
7673 2018-10-30  Andreas Schwab  <schwab@suse.de>
7675         [BZ #23125]
7676         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7677         Don't use tail call.
7678         * elf/tst-unwind-main.c: New file.
7679         * elf/Makefile (tests): Add tst-unwind-main.
7680         (CFLAGS-tst-unwind-main.c): Define.
7682 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
7684         [BZ #23791]
7685         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7686         n_cs_precedes to 0.
7687         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7689 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
7691         * conform/glibcconform.py: Do not import shutil.
7692         (list_exported_functions): Use tempfile.TemporaryDirectory instead
7693         of mkdtemp.
7695         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
7696         critic_missing for versions before 3.4.
7697         * configure: Regenerated.
7698         * manual/install.texi (Tools for Compilation): Document
7699         requirement for Python to build glibc.
7700         * INSTALL: Regenerated.
7701         * Rules [PYTHON]: Make code unconditional.
7702         * benchtests/Makefile [PYTHON]: Likewise.
7703         * conform/Makefile [PYTHON]: Likewise.
7704         * manual/Makefile [PYTHON]: Likewise.
7705         * math/Makefile [PYTHON]: Likewise.
7707 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7709         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7710         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7711         answer to interrupt_operation, return EIEIO instead of EINTR.
7712         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7713         _hurd_intr_rpc_msg_about_to global point to start of controlled
7714         assembly snippet. Make it check canceled flag.
7715         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7716         the _hurd_intr_rpc_msg_about_to point.
7717         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7718         issue, remove cancel flag check.
7720 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
7722         * scripts/build-many-glibcs.py: Remove compatibility for missing
7723         os.cpu_count and re.fullmatch.
7725 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7727         [BZ #23822]
7728         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7729         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7730         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7732 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
7734         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7735         macro.
7737 2018-10-25  Florian Weimer  <fweimer@redhat.com>
7739         [BZ #23562]
7740         [BZ #23821]
7741         XFAIL siginfo_t si_band conform test on sparc64.
7742         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7743         (__SI_BAND_TYPE): Only override long int default type on sparc64.
7744         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7745         (conformtest-xfail-conds): Add sparc64-linux.
7746         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7747         sparc64.
7748         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7750 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
7752         * elf/elf.h (NT_MIPS_DSP): New macro.
7753         (NT_MIPS_FP_MODE): Likewise.
7755 2018-10-25  Zong Li  <zong@andestech.com>
7757         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7758         name by adding the file extension (.so).
7760 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7762         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7763         (test-xfail-ISO11/threads.h/linknamespace,
7764         test-xfail-ISO11/threads.h/conform): Add.
7766 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
7768         * math/gen-libm-test.py: Import os.
7769         (ALL_FLOATS_MANUAL): New constant.
7770         (ALL_FLOATS_SUFFIX): Likewise.
7771         (Ulps.all_functions): New function.
7772         (real_all_ulps): Likewise.
7773         (generate_err_table_sub): Likewise.
7774         (generate_err_table): Likewise.
7775         (main): Handle -s and -m options.
7776         * manual/libm-err-tab.pl: Remove.
7777         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7778         instead of libm-err-tab.pl.
7779         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7780         != no].
7781         * manual/install.texi (Tools for Compilation): Document
7782         requirement for Python to build manual.
7783         * INSTALL: Regenerated.
7785 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
7787         * bits/time64.h: New file.
7788         * include/time.h: Replace internal_time_t with __time64_t.
7789         * posix/bits/types (__time64_t): Add.
7790         * stdlib/Makefile: Add bits/time64.h to includes.
7791         * time/tzfile.c: Replace internal_time_t with __time64_t.
7793 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7795         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7796         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7797         __posix_spawn_file_actions_init, __posix_spawnattr_init,
7798         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7799         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7800         prototype.
7801         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7802         * posix/spawn_faction_addclose.c
7803         (__posix_spawn_file_actions_addclose): Add hidden definition.
7804         * posix/spawn_faction_adddup2.c
7805         (__posix_spawn_file_actions_adddup2): Likewise.
7806         * posix/spawn_faction_destroy.c
7807         (__posix_spawn_file_actions_destroy): Likewise.
7808         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7809         Likewise.
7810         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7811         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7812         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7813         Likewise.
7814         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7815         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7816         Likewise.
7818 2018-10-24  Andreas Schwab  <schwab@suse.de>
7820         [BZ #18093]
7821         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7822         format cache.
7823         * elf/cache.c (print_cache): Likewise.
7825 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
7827         * bits/timesize.h: New file.
7828         * stdlib/Makefile (headers): Add bits/timesize.h.
7829         * sysdeps/unix/sysv/linux/bits/msq-pad.h
7830         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7831         * sysdeps/unix/sysv/linux/bits/sem-pad.h
7832         (__SEM_PAD_AFTER_TIME): Likewise.
7833         * sysdeps/unix/sysv/linux/bits/shm-pad.h
7834         (__SHM_PAD_AFTER_TIME): Likewise.
7835         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7836         (__MSQ_PAD_BEFORE_TIME): Likewise.
7837         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7838         (__SEM_PAD_BEFORE_TIME): Likewise.
7839         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7840         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7841         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7842         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7843         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7844         (__MSQ_PAD_BEFORE_TIME): Likewise.
7845         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7846         (__SEM_PAD_BEFORE_TIME): Likewise.
7847         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7848         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7849         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7850         (__MSQ_PAD_BEFORE_TIME): Likewise.
7851         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7852         (__SEM_PAD_BEFORE_TIME): Likewise.
7853         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7854         (__SHM_PAD_BEFORE_TIME): Likewise.
7855         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7856         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7857         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7859 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
7861         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7862         USE_RDTSCP is defined.
7863         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7864         USE_RDTSCP is defined.
7866 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7868         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7869         defined.
7871         [BZ #23709]
7872         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7873         independently of other flags.
7875 2018-10-23  Florian Weimer  <fweimer@redhat.com>
7877         * time/tst-mktime2.c (N_STRINGS): Remove.
7878         (set_timezone): New function.
7879         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
7880         (mktime_test1): Report localtime failure and check errno value.
7881         Use TEST_COMPARE.
7882         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7883         (do_test): Remove alarm call. Use set_timezone and array_length.
7885 2018-10-23  Andreas Schwab  <schwab@suse.de>
7887         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7888         (__start_context): Use END instead of PSEUDO_END.
7890 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
7892         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7893         version to 4.19.
7895         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7896         version to 4.19.
7898         [BZ #23793]
7899         * wcsmbs/c32rtomb.c: New file.
7900         * wcsmbs/mbrtoc32.c: Likewise.
7901         * wcsmbs/tst-c32-state.c: Likewise.
7902         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7903         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7904         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7905         (tests): Add tst-c32-state.
7906         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7907         $(gen-locales).
7909 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7911         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7912         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7914 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
7916         [BZ #23794]
7917         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7918         pair and return 0 in that case, and use saved character to
7919         interpret following character.
7920         * wcsmbs/tst-c16-surrogate.c: New file.
7921         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7922         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7923         Depend on $(gen-locales)
7925 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
7927         [BZ #23562]
7928         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7929         (struct siginfo_t): Use correct type for si_band.
7931 2018-10-19  Florian Weimer  <fweimer@redhat.com>
7933         [BZ #23689]
7934         * resource/bits/types/struct_rusage.h (struct rusage): Update
7935         comment on struct.  Remove extraneous field comment.
7937 2018-10-18  David S. Miller  <davem@davemloft.net>
7939         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7940         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7941         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7942         sysdep_routines in subdir elf.
7943         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7944         version for __vdso_clock_gettime.
7945         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7946         Define.
7947         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7948         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7950         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7952 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
7954         * sysdeps/i386/init-arch.h: Removed.
7955         * sysdeps/i386/i586/init-arch.h: Likewise.
7956         * sysdeps/i386/i686/init-arch.h: Likewise.
7957         * sysdeps/i386/i686/hp-timing.h: Likewise.
7958         * sysdeps/x86_64/hp-timing.h: Likewise.
7959         * sysdeps/i386/isa.h: New file.
7960         * sysdeps/i386/i586/isa.h: Likewise.
7961         * sysdeps/i386/i686/isa.h: Likewise.
7962         * sysdeps/x86_64/isa.h: Likewise.
7963         * sysdeps/x86/hp-timing.h: New file.
7964         * sysdeps/x86/init-arch.h: Include <isa.h>.
7966 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
7968         * math/libm-test-pow.inc (pow_test_data): Do not allow
7969         divide-by-zero exception for pow(+/- 0, -Inf).
7971 2018-10-17  Zack Weinberg  <zackw@panix.com>
7973         * manual/job.texi (Job Control is Optional): Remove node, as
7974         job control has not been optional in quite some time.
7975         (Job Control): Mention briefly that systems older than
7976         POSIX.1-2001 might not support job control.
7977         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7978         defined on systems conforming to POSIX.1-2001.
7980 2018-10-17  Arjun Shankar  <arjun@redhat.com>
7982         [BZ #22062]
7983         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7984         indentation.
7985         * (__gconv_read_conf): Mark function static.
7986         * (once): New static variable.
7987         * (__gconv_load_conf): New function.
7988         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7989         * iconv/gconv_db.c (once): Remove static variable.
7990         * (__gconv_compare_alias): Use __gconv_load_conf instead of
7991         __gconv_read_conf.
7992         * (__gconv_find_transform): Likewise.
7993         * iconv/tst-iconv-mt.c: New test.
7994         * iconv/Makefile: Add tst-iconv_mt.
7996 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
7998         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7999         bits/shm-pad.h.
8000         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8001         (shmatt_t): Define as __syscall_ulong_t.
8002         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8003         and [__SHM_PAD_AFTER_TIME].
8004         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8005         Define shm_segsz and associated padding based on
8006         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8007         Use __syscall_ulong_t instead of unsigned long int.
8008         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8009         unsigned long int.
8010         [__USE_MISC] (struct shm_info): Likewise.
8011         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8012         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8013         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8014         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8015         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8016         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8017         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8018         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8019         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8020         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8021         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8023         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8024         bits/shmlba.h.
8025         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8026         (SHMLBA): Remove macro.
8027         (__getpagesize): Remove function declaration.
8028         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8029         <bits/shmlba.h>.
8030         (SHMLBA): Remove macro.
8031         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8032         <bits/shmlba.h>.
8033         (SHMLBA): Remove macro.
8034         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8035         <bits/shmlba.h>.
8036         (SHMLBA): Remove macro.
8037         (__getpagesize): Remove function declaration.
8038         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8039         <bits/shmlba.h>.
8040         (SHMLBA): Remove macro.
8041         (__getshmlba): Remove function declaration.
8042         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8043         (SHMLBA): Remove macro.
8044         (__getpagesize): Remove function declaration.
8045         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8046         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8047         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8048         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8049         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8050         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8051         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8052         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8053         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8054         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8056 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
8058         [BZ #23275]
8059         * nptl/tst-mutex10.c: New File.
8060         * nptl/Makefile (tests): Add tst-mutex10.
8061         (tst-mutex10-ENV): New variable.
8062         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8063         Ensure that elision path is used if elision is available.
8064         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8065         Likewise.
8066         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8067         Likewise.
8068         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8069         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8070         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8071         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8072         Likewise.
8073         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8074         (__pthread_mutex_cond_lock_adjust): Likewise.
8075         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8076         Likewise.
8077         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8078         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8079         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8080         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8081         Add comments.
8082         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8083         Use atomic_load_relaxed and atomic_store_relaxed.
8084         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8085         Use atomic_store_relaxed.
8087 2018-10-17  Andreas Schwab  <schwab@suse.de>
8089         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8090         * crypt/badsalttest.c (TIMEOUT): Likewise.
8091         * crypt/sha256c-test.c (TIMEOUT): Likewise.
8092         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8093         * io/test-lfs.c (TIMEOUT): Likewise.
8094         * libio/tst-atime.c (TIMEOUT): Likewise.
8095         * localedata/tst-leaks.c (TIMEOUT): Likewise.
8096         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8097         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8098         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8099         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8100         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8101         * nptl/tst-cond11.c (TIMEOUT): Likewise.
8102         * nptl/tst-cond14.c (TIMEOUT): Likewise.
8103         * nptl/tst-cond15.c (TIMEOUT): Likewise.
8104         * nptl/tst-cond24.c (TIMEOUT): Likewise.
8105         * nptl/tst-cond25.c (TIMEOUT): Likewise.
8106         * nptl/tst-kill2.c (TIMEOUT): Likewise.
8107         * nptl/tst-kill3.c (TIMEOUT): Likewise.
8108         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8109         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8110         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8111         * nptl/tst-once2.c (TIMEOUT): Likewise.
8112         * nptl/tst-once3.c (TIMEOUT): Likewise.
8113         * nptl/tst-once4.c (TIMEOUT): Likewise.
8114         * nptl/tst-robust8.c (TIMEOUT): Likewise.
8115         * nptl/tst-robust9.c (TIMEOUT): Likewise.
8116         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8117         * nptl/tst-sem14.c (TIMEOUT): Likewise.
8118         * nptl/tst-sem6.c (TIMEOUT): Likewise.
8119         * nptl/tst-signal3.c (TIMEOUT): Likewise.
8120         * nptl/tst-spin4.c (TIMEOUT): Likewise.
8121         * nptl/tst-tls3.c (TIMEOUT): Likewise.
8122         * nptl/tst-tls4.c (TIMEOUT): Likewise.
8123         * posix/tst-chmod.c (TIMEOUT): Likewise.
8124         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8125         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8126         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8127         * posix/tst-regex2.c (TIMEOUT): Likewise.
8128         * posix/tst-waitid.c (TIMEOUT): Likewise.
8129         * rt/tst-aio.c (TIMEOUT): Likewise.
8130         * rt/tst-aio10.c (TIMEOUT): Likewise.
8131         * rt/tst-aio4.c (TIMEOUT): Likewise.
8132         * rt/tst-aio5.c (TIMEOUT): Likewise.
8133         * rt/tst-aio6.c (TIMEOUT): Likewise.
8134         * rt/tst-aio64.c (TIMEOUT): Likewise.
8135         * rt/tst-aio7.c (TIMEOUT): Likewise.
8136         * rt/tst-aio9.c (TIMEOUT): Likewise.
8137         * rt/tst-clock.c (TIMEOUT): Likewise.
8138         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8139         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8140         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8141         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8142         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8143         * rt/tst-timer4.c (TIMEOUT): Likewise.
8144         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8145         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8146         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8147         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8148         * time/tst-ftime.c (TIMEOUT): Likewise.
8149         * timezone/tst-tzset.c (TIMEOUT): Likewise.
8151 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
8153         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8154         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8155         for thunderX2.
8157 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
8159         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8160         bits/sem-pad.h.
8161         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8162         instead of <bits/wordsize.h>.
8163         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8164         and [__SEM_PAD_AFTER_TIME].
8165         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
8166         __syscall_ulong_t instead of unsigned long int.
8167         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8168         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8169         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8170         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8171         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8172         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8173         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8174         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8175         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8176         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8177         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8179 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8181         regex: simplify by using intprops.h
8182         [BZ#23744]
8183         * posix/regex_internal.h [_LIBC]: Include intprops.h.
8184         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8185         intprops.h defines them.
8187         regex: __builtin_expect → __glibc_unlikely
8188         [BZ#23744]
8189         This refactoring was prompted by a problem when the regex code is
8190         used as part of Gnulib and when the builder’s compiler does not grok
8191         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
8192         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8193         Although this refactoring does not fix the problem directly,
8194         we might as well have Gawk use the now-preferred glibc style for when
8195         __builtin_expect is unavailable.
8196         * posix/regex_internal.h (BE): Remove.
8197         All uses replaced by __glibc_unlikely or __glibc_likely.
8199 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
8201         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8202         bits/msq-pad.h.
8203         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8204         instead of <bits/wordsize.h>.
8205         (msgqnum_t): Define as __syscall_ulong_t.
8206         (msglen_t): Likewise.
8207         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8208         and [__MSQ_PAD_AFTER_TIME].
8209         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
8210         __syscall_ulong_t instead of unsigned long int.
8211         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8212         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8213         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8214         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8215         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8216         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8217         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8218         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8219         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8220         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8221         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8223 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
8225         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8226         (struct shmid_ds): Condition padding after time fields on
8227         [__WORDSIZE == 32].
8228         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8229         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8230         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8232         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8233         (struct semid_ds): Condition padding after time fields on
8234         [__WORDSIZE == 32].
8235         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8236         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8237         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8238         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8240         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8241         (struct msqid_ds): Condition padding after time fields on
8242         [__WORDSIZE == 32].
8243         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8244         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8245         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8246         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8248 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8250         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8252 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8254         * libio/tst-readline.c (TIMEOUT): Define.
8256 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8258         mktime fix for Gnulib + coreutils
8259         [BZ#23745]
8260         This fix affects only Gnulib.  Problem discovered when
8261         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8262         * time/mktime.c:
8263         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8264         Do not define since it is not used.  Defining an unused static
8265         function prompts a warning from GCC when Coreutils is configured
8266         with --enable-gcc-warnings.
8268 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
8270         * benchtests/scripts/compare_bench.py (main): set float type on
8271         threshold argument.
8273 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
8275         [BZ #23740]
8276         * localedata/locales/kl_GL (mon): Update, the relative case.
8277         (alt_mon): Add, fill with month names in the nominative case.
8278         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8279         (d_fmt): Set to "%b %d %Y".
8281 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
8283         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8284         <bits/mman-linux.h>.
8285         (PROT_READ): Don't define here.
8286         (PROT_WRITE): Likewise.
8287         (PROT_EXEC): Likewise.
8288         (PROT_NONE): Likewise.
8289         (PROT_GROWSDOWN): Likewise.
8290         (PROT_GROWSUP): Likewise.
8291         (MAP_SHARED): Likewise.
8292         (MAP_PRIVATE): Likewise.
8293         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8294         [__USE_MISC] (MAP_FILE): Likewise.
8295         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8296         [__USE_MISC] (MAP_ANON): Likewise.
8297         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8298         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8299         (MCL_CURRENT): Likewise.
8300         (MCL_FUTURE): Likewise.
8301         (MCL_ONFAULT): Likewise.
8302         [__USE_MISC] (MADV_NORMAL): Likewise.
8303         [__USE_MISC] (MADV_RANDOM): Likewise.
8304         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8305         [__USE_MISC] (MADV_WILLNEED): Likewise.
8306         [__USE_MISC] (MADV_DONTNEED): Likewise.
8307         [__USE_MISC] (MADV_FREE): Likewise.
8308         [__USE_MISC] (MADV_REMOVE): Likewise.
8309         [__USE_MISC] (MADV_DONTFORK): Likewise.
8310         [__USE_MISC] (MADV_DOFORK): Likewise.
8311         [__USE_MISC] (MADV_HWPOISON): Likewise.
8312         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8313         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8314         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8315         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8316         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8317         (__MAP_ANONYMOUS): New macro.
8318         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8319         <bits/mman-linux.h> inclusion.
8320         (MAP_FIXED): Likewise.
8321         (MS_SYNC): Likewise.
8322         (MS_ASYNC): Likewise.
8323         (MS_INVALIDATE): Likewise.
8324         [__USE_MISC] (MADV_MERGEABLE): Likewise.
8325         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8326         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8327         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8328         [__USE_MISC] (MADV_DONTDUMP): Likewise.
8329         [__USE_MISC] (MADV_DODUMP): Likewise.
8330         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8331         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8333         [BZ #23735]
8334         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8335         Define.
8336         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8337         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8338         Add test-nldbl-redirect.
8339         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8340         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8341         $(objpfx)libnldbl_nonshared.a.
8343 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
8345         * support/support.h (support_objdir_elf_ldso): New variable.
8346         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8347         * support/Makefile (CFLAGS-support_paths.c): Add definition
8348         for OBJDIR_ELF_LDSO_PATH.
8349         * support/test-container.c (main): Search for the ld.so
8350         which is also used by the testsuite.
8352 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
8354         [BZ #20209]
8355         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8356         should be "sap" rather than "sab".
8357         (day): Fix spelling of Sunday, should be "sapaat" rather than
8358         "sabaat".
8360 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
8362         * math/libm-test-fma.inc (fma_test_data): Add more tests.
8364 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
8366         [BZ #19444]
8367         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8368         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8369         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8371 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8373         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8375 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8377         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8378         Add -mrtm.
8379         (CFLAGS-elision-unlock.c): Likewise.
8380         (CFLAGS-elision-timed.c): Likewise.
8381         (CFLAGS-elision-trylock.c): Likewise.
8382         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8384 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8386         [BZ #21037]
8387         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8388         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8389         new fd_to_filename interface.
8390         * libio/freopen64.c (freopen64): Likewise.
8391         * libio/tst-memstream.h: New file.
8392         * libio/tst-memstream4.c: Likewise.
8393         * libio/tst-wmemstream4.c: Likewise.
8394         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8395         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8396         and remove internal dynamic allocation.
8398 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
8400         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8401         (MREMAP_MAYMOVE): Do not define here.
8402         [__USE_GNU] (MREMAP_FIXED): Likewise.
8403         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8404         (MREMAP_MAYMOVE): Define here instead.
8405         [__USE_GNU] (MREMAP_FIXED): Likewise.
8406         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8407         (MREMAP_MAYMOVE): Remove.
8408         [__USE_GNU] (MREMAP_FIXED): Likewise.
8410 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
8412         * math/fromfp.h: Do not include <math_private.h>.
8413         * math/s_cacosh_template.c: Likewise.
8414         * math/s_casin_template.c: Likewise.
8415         * math/s_casinh_template.c: Likewise.
8416         * math/s_ccos_template.c: Likewise.
8417         * math/s_cproj_template.c: Likewise.
8418         * math/s_fdim_template.c: Likewise.
8419         * math/s_fmaxmag_template.c: Likewise.
8420         * math/s_fminmag_template.c: Likewise.
8421         * math/s_iseqsig_template.c: Likewise.
8422         * math/s_ldexp_template.c: Likewise.
8423         * math/s_nextdown_template.c: Likewise.
8424         * math/w_log1p_template.c: Likewise.
8425         * math/w_scalbln_template.c: Likewise.
8426         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8427         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8428         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8429         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8430         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8431         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8432         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8433         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8434         * sysdeps/i386/fpu/s_atanl.c: Likewise.
8435         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8436         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8437         * sysdeps/i386/fpu/s_fdim.c: Likewise.
8438         * sysdeps/i386/fpu/s_logbl.c: Likewise.
8439         * sysdeps/i386/fpu/s_rintl.c: Likewise.
8440         * sysdeps/i386/fpu/s_significandl.c: Likewise.
8441         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8442         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8443         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8444         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8445         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8446         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8447         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8448         * sysdeps/ieee754/k_standardf.c: Likewise.
8449         * sysdeps/ieee754/k_standardl.c: Likewise.
8450         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8451         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8452         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8453         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8454         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8455         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8456         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8457         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8458         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8459         * sysdeps/ieee754/s_signgam.c: Likewise.
8460         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8461         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8462         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8463         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8464         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8465         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8466         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8467         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8468         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8469         * sysdeps/riscv/rvd/s_finite.c: Likewise.
8470         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8471         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8472         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8473         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8474         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8475         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8476         * sysdeps/riscv/rvf/fegetround.c: Likewise.
8477         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8478         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8479         * sysdeps/riscv/rvf/fesetround.c: Likewise.
8480         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8481         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8482         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8483         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8484         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8485         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8486         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8487         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8488         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8489         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8490         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8491         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8492         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8493         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8494         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8495         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8496         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8497         <math_private.h>.
8498         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8500 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8502         [BZ #23716]
8503         * sysdeps/i386/dl-cet.c: Removed.
8504         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8505         prototype.
8506         (_dl_runtime_profile_shstk): Likewise.
8507         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8508         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8510 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8512         [BZ #23579]
8513         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8514         do_test_with_invalid_iov): New tests.
8515         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8516         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8517         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8518         errno is ENOSYS.
8519         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8520         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8521         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8523 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
8525         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8526         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8527         (MATH_REDIRECT_BINARY_ARGS): New macro.
8528         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8529         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8530         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8531         header inclusion.
8532         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8533         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8534         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8535         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8536         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8537         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8538         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8540         Likewise.
8541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8542         Likewise.
8543         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8545         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8546         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8548         Likewise.
8549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8550         Likewise.
8551         * sysdeps/generic/math_private_calls.h
8552         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8553         Do not declare and define as an inline function.
8554         * math/divtc3.c (__divtc3): Use copysign functions instead of
8555         __copysign variants.
8556         * math/multc3.c (__multc3): Likewise.
8557         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8558         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8559         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8560         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8561         Likewise.
8562         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8563         (__ieee754_yn): Likewise.
8564         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8565         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8566         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8567         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8568         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8569         (__sin): Likewise.
8570         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8571         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8572         Likewise.
8573         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8574         Likewise.
8575         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8576         Likewise.
8577         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8578         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8579         Likewise.
8580         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8581         (__ieee754_ynf): Likewise.
8582         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8583         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8584         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8585         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8586         Likewise.
8587         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8588         (__ieee754_ynl): Likewise.
8589         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8590         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8591         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8592         Likewise.
8593         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8594         (__ieee754_ynl): Likewise.
8595         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8596         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8597         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8598         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8599         Likewise.
8600         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8601         (__ieee754_ynl)
8602         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8603         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8604         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8605         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8606         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8608         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8609         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8610         using MATH_REDIRECT.
8611         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8612         header inclusion.
8613         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8614         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8615         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8616         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8617         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8618         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8619         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8622         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8624         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8625         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8626         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8627         (round): Redirect to __round.
8628         (__roundl): Call round instead of __round.
8629         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8630         Remove macro.
8631         [_ARCH_PWR5X] (__roundf): Likewise.
8632         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8633         functions instead of __round variants.
8634         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8635         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8636         Likewise.
8637         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8638         Likewise.
8639         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8640         Likewise.
8641         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8642         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8643         __lroundl.
8644         (__ieee754_expl): Call roundl instead of __roundl.
8646 2018-09-27  Andreas Schwab  <schwab@suse.de>
8648         [BZ #23717]
8649         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8650         (do_test): Make st1 static.
8652 2018-09-26  Andreas Schwab  <schwab@suse.de>
8654         [BZ #23707]
8655         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8656         * elf/Makefile (tests): Add tst-unwind-ctor.
8657         (modules-names): Add tst-unwind-ctor-lib.
8658         ($(objpfx)tst-unwind-ctor): Depend on
8659         $(objpfx)tst-unwind-ctor-lib.so.
8661 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
8663         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8664         file.  Most contents moved from ....
8665         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
8666         and include <bits/mman-map-flags-generic.h>.
8667         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8668         (sysdep_headers): Add bits/mman-map-flags-generic.h.
8669         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8670         <bits/mman-map-flags-generic.h>.
8671         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8672         macros defined in <bits/mman-map-flags-generic.h>.
8673         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8674         <bits/mman-map-flags-generic.h>.
8675         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8676         defined in <bits/mman-map-flags-generic.h>.
8678 2018-09-26  Andreas Schwab  <schwab@suse.de>
8680         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8681         output.
8683 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
8684             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8685             Fangrui Song  <maskray@google.com>
8687         [BZ #20480]
8688         * config.make.in (have-textrel_ifunc): New define.
8689         * configure.ac: Add check if linker supports textrel relocation with
8690         ifunc.
8691         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8692         tst-ifunc-textrel.
8693         (CFLAGS-tst-ifunc-textrel.c): New rule.
8694         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8695         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8696         * elf/tst-ifunc-textrel.c: New file.
8698 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
8700         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8701         <bits/procfs-prregset.h>.
8702         (prgregset_t): Define using __prgregset_t.
8703         (prfpregset_t): Define using __prfpregset_t.
8704         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8705         (sysdep_headers): Add bits/procfs-prregset.h.
8706         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8707         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8708         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8709         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8711         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8712         <bits/procfs-id.h> and <bits/procfs-extra.h>.
8713         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8714         pr_uid and pr_gid.
8715         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8716         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8717         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8718         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8719         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8720         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8721         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8722         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8723         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8724         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8725         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8726         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8727         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8728         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8729         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8730         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8731         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8732         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8733         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8734         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8735         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8736         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8737         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8738         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8740         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8741         AArch64 version.  Include <bits/procfs.h>.
8742         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8743         (sysdep_headers): Add bits/procfs.h.
8744         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8745         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8746         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8747         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8748         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8749         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8750         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8751         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8752         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8753         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8754         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8755         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8756         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8757         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8758         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8759         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8760         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8762 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8764         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8765         Use libsupport.
8767 2018-09-25  Arjun Shankar  <arjun@redhat.com>
8769         * iconv/gconv_int.h (__gconv_path_elem): Remove.
8770         (__gconv_max_path_elem_len): Likewise.
8771         (__gconv_nmodules): Likewise.
8772         (__gconv_get_path): Likewise.
8773         (path_elem): Move to ...
8774         * iconv/gconv_conf.c: ... here.
8775         (__gconv_get_path): Mark function static.
8776         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8777         * iconv/gconv_open.c: ... here.
8779 2018-09-24  Andreas Schwab  <schwab@suse.de>
8781         * scripts/haveversions.awk: New file.
8782         * Makerules ($(common-objpfx)Versions.def)
8783         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8784         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8785         Move rules ...
8786         * Makeconfig ($(common-objpfx)Versions.def)
8787         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8788         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8789         ... here.
8790         ($(common-objpfx)Versions.mk): New rule.  Include it.
8791         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8792         Emit error if build-obsolete-nsl = yes.
8793         * manual/install.texi (Configuring and compiling): Describe
8794         --enable-obsolete-nsl as unavaiable after version 2.28.
8795         * INSTALL: Regenerate.
8797 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8799         * NEWS: Add note about new TLE support on powerpc64le.
8800         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8801         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8802         __ununsed1.
8803         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8804         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8805         * sysdeps/powerpc/powerpc32/sysdep.h,
8806         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8807         ABORT_TRANSACTION): Remove macros.
8808         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8809         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8810         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8812         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8813         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8814         usage.
8815         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8817 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
8819         [BZ #10425]
8820         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8821         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8822         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8823         which is the same as in it_IT.
8824         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8825         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8827 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
8829         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8830         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8831         using MATH_REDIRECT.
8832         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8833         header inclusion.
8834         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8835         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8836         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8837         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8838         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8839         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8844         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8845         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8846         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8847         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8848         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8849         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8850         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8851         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8852         (ceil): Redirect to __ceil.
8853         (floor): Redirect to __floor.
8854         (trunc): Redirect to __trunc.
8855         (__truncl): Call trunc instead of __trunc.
8856         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8857         Remove macro.
8858         [_ARCH_PWR5X] (__truncf): Likewise.
8859         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8860         trunc functions instead of __trunc variants.
8861         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8862         Likewise.
8863         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8864         Likewise.
8865         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8866         Likewise.
8867         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8868         Likewise.
8870         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8871         [__i586__ || __pentium__].
8872         [__i486__]: Handle explicitly.
8873         (HAS_CPUID): Define to 1 if above macros are undefined.
8874         (HAS_I586): Likewise.
8875         (HAS_I686): Likewise.
8877 2018-09-20  Florian Weimer  <fweimer@redhat.com>
8879         * misc/tst-gethostid.c: New file.
8880         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8881         (tst-gethostid): Link with -ldl.
8883 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
8885         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8886         value from gethostbyname_r.
8888 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
8890         * stdlib/tst-setcontext9.c (f1): Rename to...
8891         (f1a): ... this.
8892         (f1b): New function implementing lower half of f1 in alternate stack.
8894 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
8896         Fix mktime localtime offset confusion
8897         [BZ #23603]
8898         * include/time.h (__mktime_internal): The localtime offset is now
8899         of type long int instead of time_t.  This is the longstanding type
8900         in glibc, and it is more than enough to represent difference
8901         between localtime and gmtime even if it is 32 bits and time_t is
8902         64.  Changing it now will let us avoid an unnecessary change when
8903         time_t is widened to 64 bits on 32-bit platforms.
8904         * time/mktime-internal.h (mktime_offset_t): Now long int.
8906         Merge mktime, timegm from upstream Gnulib
8907         [BZ #23603][BZ #16346]
8908         This fixes some obscure problems with integer overflow.
8909         Although it looks scary, it is almost all a byte-for-byte copy
8910         from Gnulib, and the Gnulib code has been tested reasonably well.
8911         * include/intprops.h: New file, copied from Gnulib.
8912         * include/verify.h, time/mktime-internal.h:
8913         New tiny files, simplified from Gnulib.
8914         * time/mktime.c: Copy from Gnulib.  This has the following changes:
8915         Do not include config.h if DEBUG_MKTIME is nonzero.
8916         Include stdbool.h, intprops.h, verify.h.
8917         Include string.h only if needed.
8918         Include stdlib.h on MS-Windows.
8919         Include mktime-internal.h.
8920         (DEBUG_MKTIME): Default to 0, and simplify later uses.
8921         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8922         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8923         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8924         simplify later conditionals; default the others to zero.  Use
8925         these conditionals to express only the code needed on the current
8926         platform.  In uses of these conditionals, explicitly spell out how
8927         _LIBC affects things, so it’s easier to review from a glibc
8928         viewpoint.
8929         (WRAPV): Remove; no longer needed now that we have
8930         systematic overflow checking.
8931         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8932         compartmentalize tzset issues.  Move system-dependent tzsettish
8933         code here from mktime.
8934         (verify): Remove; now done by verify.h.  All uses changed.
8935         (long_int): Use a more-conservative definition, to avoid
8936         integer overflow.
8937         (SHR): Remove, replacing with ...
8938         (shr): New function, which means we needn’t worry about side
8939         effects in args, and conversion analysis is simpler.
8940         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8941         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8942         (time_t_avg, time_t_add_ok): Remove.
8943         (mktime_min, mktime_max): New constants.
8944         (leapyear, isdst_differ): Use bool for booleans.
8945         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8946         Use long_int, not time_t, for mktime differences.
8947         (long_int_avg): New function, replacing time_t_avg.
8948         INT_ADD_WRAPV replaces time_t_add_ok.
8949         (guess_time_tm): 6th arg is now long_int, not time_t const *.
8950         All uses changed.
8951         (convert_time): New function.
8952         (ranged_convert): Use it.
8953         (__mktime_internal): Last arg now points to mktime_offset_t, not
8954         time_t.  All uses changed.  This is a no-op on glibc, where
8955         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
8956         offset guess.  Directly check for integer overflow instead of
8957         using a heuristic that works only 99.9...% of the time.
8958         Access *OFFSET only once, to avoid an unlikely race if the
8959         compiler delays a load and if this cascades into a signed integer
8960         overflow.
8961         (mktime): Move tzsettish code to my_tzset, and move
8962         localtime_offset to within mktime so that it doesn’t
8963         need a separate ifdef.
8964         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8965         instead of localtime.
8966         * time/timegm.c: Copy from Gnulib.  This has the following changes:
8967         Include mktime-internal.h.
8968         [!_LIBC]: Include config.h and time.h.  Do not include
8969         timegm.h or time_r.h.  Make __mktime_internal a macro,
8970         and include mktime-internal.h to get its declaration.
8971         (timegm): Temporary is now mktime_offset_t, not time_t.
8972         This affects only Gnulib.
8974 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
8976         [BZ #23637]
8977         * string/test-strstr.c (pr23637): New function.
8978         (test_main): Add tests with longer needles.
8979         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8980         * string/strstr.c (AVAILABLE): Likewise.
8982 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8984         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8986 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8988         * NEWS: Mention pow improvements.
8989         * math/Makefile (type-double-routines): Add e_pow_log_data.
8990         * sysdeps/generic/math_private.h (__exp1): Remove.
8991         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8992         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8993         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8994         contraction.
8995         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8996         (exp_inline): Remove.
8997         (__ieee754_exp): Only single double input is handled.
8998         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8999         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9000         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9001         (__pow_log_data): Define.
9002         * sysdeps/ieee754/dbl-64/upow.h: Remove.
9003         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9004         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9005         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9006         contraction.
9007         (CFLAGS-e_pow-fma4.c): Likewise.
9009 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9011         Simplify tzfile fstat failure code
9012         [BZ #21716]
9013         * time/tzfile.c (__tzfile_read): Simplify slightly.
9015         Fix tzfile low-memory assertion failure
9016         [BZ #21716]
9017         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9018         when registering time zone abbreviations.
9020 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
9022         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9023         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9024         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9025         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9026         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9027         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9028         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9029         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9030         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9032         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9033         __ceil.
9034         (__ceill): Call ceil instead of __ceil.
9035         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9036         __floor.
9037         (__floorl): Call floor instead of __floor.
9039 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
9041         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9042         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9043         using MATH_REDIRECT.
9044         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9045         header inclusion.
9046         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9047         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9048         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9049         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9050         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9051         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9052         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9053         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9058         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9059         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9060         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9061         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9062         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9063         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9064         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9065         Remove macro.
9066         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9067         functions instead of __ceil variants.
9068         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9069         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9070         Likewise.
9071         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9072         Likewise.
9073         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9074         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9075         Likewise.
9076         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9077         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9079         [BZ #21286]
9080         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9081         constant.
9082         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9083         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9084         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9085         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9086         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9087         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9088         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9089         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9090         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9091         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9092         (ILL_BADIADDR): Remove constant.
9093         (TRAP_BRANCH): Likewise.
9094         (TRAP_HWBKPT): Likewise.
9096 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
9098         [BZ #23656]
9099         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9100         Remove [_MIPS_SIM = _ABIN32] conditional case.
9101         (struct elf_prpsinfo): Likewise.
9103         [BZ #23649]
9104         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9105         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9106         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9107         Likewise.
9108         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9109         elf_prpsinfo): Likewise.
9110         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9111         elf_prpsinfo): Likewise.
9112         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9113         Likewise.
9115         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9116         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9117         using MATH_REDIRECT.
9118         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9119         header inclusion.
9120         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9121         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9122         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9123         * sysdeps/i386/fpu/s_rintl.c: Likewise.
9124         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9125         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9126         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9127         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9128         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9129         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9130         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9131         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9132         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9133         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9134         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9135         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9136         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9137         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9138         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9141         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9142         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9143         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9144         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9145         * sysdeps/x86_64/fpu/math_private.h: Remove file.
9146         * math/e_scalb.c (invalid_fn): Use rint functions instead of
9147         __rint variants.
9148         * math/e_scalbf.c (invalid_fn): Likewise.
9149         * math/e_scalbl.c (invalid_fn): Likewise.
9150         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9151         Likewise.
9152         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9153         Likewise.
9154         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9155         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9156         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9157         Likewise.
9158         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9159         Likewise.
9160         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9161         Likewise.
9162         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9163         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9165         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9166         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9167         New macro.
9168         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9169         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9170         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9171         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9172         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9173         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9174         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9175         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9176         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9177         && !NO_MATH_REDIRECT] (floor): Likewise.
9178         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9179         header inclusion.
9180         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9181         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9182         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9183         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9184         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9185         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9186         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9187         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9192         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9193         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9194         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9195         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9196         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9197         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9198         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9199         Remove macro.
9200         [_ARCH_PWR5X] (__floorf): Likewise.
9201         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9202         inline function.
9203         [__SSE4_1__] (__floorf): Likewise.
9204         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9205         instead of __floor variants.
9206         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9207         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9208         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9209         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9210         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9211         * math/w_tgamma_compat.c (__tgamma): Likewise.
9212         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9213         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9214         * math/w_tgammal_compat.c (__tgammal): Likewise.
9215         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9216         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9217         Likewise.
9218         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9219         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9220         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9221         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9222         Likewise.
9223         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9224         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9225         Likewise.
9226         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9227         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9228         Likewise.
9229         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9230         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9231         Likewise.
9232         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9233         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9234         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9235         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9236         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9237         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9239 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
9241         * elf/Makefile (modules-names-tests): New variable.
9243 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9245         * NEWS: Mention log2 improvements.
9246         * math/Makefile (type-double-routines): Add e_log2_data.
9247         * sysdeps/i386/fpu/e_log2_data.c: New file.
9248         * sysdeps/ia64/fpu/e_log2_data.c: New file.
9249         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9250         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9251         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9252         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9253         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9255 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9257         * NEWS: Mention log improvement.
9258         * math/Makefile (type-double-routines): Add e_log_data.
9259         * sysdeps/i386/fpu/e_log_data.c: New file.
9260         * sysdeps/ia64/fpu/e_log_data.c: New file.
9261         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9262         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9263         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9264         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9265         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9266         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9268 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
9269             Xuepeng Guo  <xuepeng.guo@intel.com>
9271         [BZ #23606]
9272         * sysdeps/i386/start.S: Include <sysdep.h>
9273         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9274         enabled.  Add cfi_undefined (eip).
9276 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
9278         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9279         (MOVQ): Likewise.
9280         (EXTRACT_WORDS64): Likewise.
9281         (INSERT_WORDS64): Likewise.
9282         (GET_FLOAT_WORD): Likewise.
9283         (SET_FLOAT_WORD): Likewise.
9285         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9286         argument.
9287         (Config.build_gcc): Use --disable-libsanitizer for first GCC
9288         build, but not for second build if --full-gcc.  Use
9289         --enable-languages=all for second build if --full-gcc.
9290         (get_parser): Add --full-gcc option.
9291         (main): Update call to Context.
9293 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
9295         [BZ #10797]
9296         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9297         Single Quotation Mark).
9298         (thousands_sep): Likewise.
9299         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9300         * localedata/locales/it_IT (thousands_sep): Use ".".
9301         (grouping): Use "3;3".
9303 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
9305         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9306         x86_64 and i686 configs using --enable-obsolete-rpc
9307         --enable-obsolete-nsl.
9309 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
9311         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9313 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
9315         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9316         Increment size of new_argv by one.
9318 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
9320         [BZ #17426]
9321         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9322         * localedata/locales/ar_IN (d_fmt): Likewise.
9323         * localedata/locales/bhb_IN (d_fmt): Likewise.
9324         * localedata/locales/bho_IN (d_fmt): Likewise.
9325         * localedata/locales/bn_BD (d_fmt): Likewise.
9326         * localedata/locales/bn_IN (d_fmt): Likewise.
9327         * localedata/locales/doi_IN (d_fmt): Likewise.
9328         * localedata/locales/gu_IN (d_fmt): Likewise.
9329         * localedata/locales/hi_IN (d_fmt): Likewise.
9330         * localedata/locales/hne_IN (d_fmt): Likewise.
9331         * localedata/locales/kn_IN (d_fmt): Likewise.
9332         * localedata/locales/mag_IN (d_fmt): Likewise.
9333         * localedata/locales/mai_IN (d_fmt): Likewise.
9334         * localedata/locales/mjw_IN (d_fmt): Likewise.
9335         * localedata/locales/ml_IN (d_fmt): Likewise.
9336         * localedata/locales/mni_IN (d_fmt): Likewise.
9337         * localedata/locales/mr_IN (d_fmt): Likewise.
9338         * localedata/locales/pa_IN (d_fmt): Likewise.
9339         * localedata/locales/raj_IN (d_fmt): Likewise.
9340         * localedata/locales/sat_IN (d_fmt): Likewise.
9341         * localedata/locales/sd_IN (d_fmt): Likewise.
9342         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9343         * localedata/locales/ta_IN (d_fmt): Likewise.
9344         * localedata/locales/ta_LK (d_fmt): Likewise.
9345         * localedata/locales/tcy_IN (d_fmt): Likewise.
9346         * localedata/locales/ur_IN (d_fmt): Likewise.
9348         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9349         * localedata/locales/ks_IN (d_fmt): Likewise.
9350         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9352         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9353         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9354         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9355         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9357 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9359         * NEWS: Mention exp and exp2 improvements.
9360         * math/Makefile (libm-support): Remove t_exp.
9361         (type-double-routines): Add math_err and e_exp_data.
9362         * sysdeps/aarch64/libm-test-ulps: Update.
9363         * sysdeps/arm/libm-test-ulps: Update.
9364         * sysdeps/i386/fpu/e_exp_data.c: New file.
9365         * sysdeps/i386/fpu/math_err.c: New file.
9366         * sysdeps/i386/fpu/t_exp.c: Remove.
9367         * sysdeps/ia64/fpu/e_exp_data.c: New file.
9368         * sysdeps/ia64/fpu/math_err.c: New file.
9369         * sysdeps/ia64/fpu/t_exp.c: Remove.
9370         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9371         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9372         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9373         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9374         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9375         * sysdeps/ieee754/dbl-64/math_config.h: New file.
9376         * sysdeps/ieee754/dbl-64/math_err.c: New file.
9377         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9378         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9379         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9380         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9381         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9382         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9383         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9385         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9387 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
9389         * sysdeps/alpha/fpu/math_private.h: Remove.
9391         * sysdeps/generic/math_private.h
9392         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9393         Move this inline function ....
9394         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9395         * include/math.h [!_ISOMAC]: To here....
9397 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
9399         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9400         code ....
9401         [!FE_HAVE_ROUNDING_MODES]: And this code ....
9402         * include/fenv.h [!_ISOMAC]: ... to here.
9403         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9404         (feraiseexcept): Likewise.
9405         * math/fromfp.h: Do not include <fenv_private.h>.
9406         * math/s_cexp_template.c: Likewise.
9407         * math/s_csin_template.c: Likewise.
9408         * math/s_csinh_template.c: Likewise.
9409         * math/s_ctan_template.c: Likewise.
9410         * math/s_ctanh_template.c: Likewise.
9411         * math/s_iseqsig_template.c: Likewise.
9412         * math/w_acos_compat.c: Likewise.
9413         * math/w_acosf_compat.c: Likewise.
9414         * math/w_acosl_compat.c: Likewise.
9415         * math/w_asin_compat.c: Likewise.
9416         * math/w_asinf_compat.c: Likewise.
9417         * math/w_asinl_compat.c: Likewise.
9418         * math/w_j0_compat.c: Likewise.
9419         * math/w_j0f_compat.c: Likewise.
9420         * math/w_j0l_compat.c: Likewise.
9421         * math/w_j1_compat.c: Likewise.
9422         * math/w_j1f_compat.c: Likewise.
9423         * math/w_j1l_compat.c: Likewise.
9424         * math/w_jn_compat.c: Likewise.
9425         * math/w_jnf_compat.c: Likewise.
9426         * math/w_log10_compat.c: Likewise.
9427         * math/w_log10f_compat.c: Likewise.
9428         * math/w_log10l_compat.c: Likewise.
9429         * math/w_log2_compat.c: Likewise.
9430         * math/w_log2f_compat.c: Likewise.
9431         * math/w_log2l_compat.c: Likewise.
9432         * math/w_log_compat.c: Likewise.
9433         * math/w_logf_compat.c: Likewise.
9434         * math/w_logl_compat.c: Likewise.
9435         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9436         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9437         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9438         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9439         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9440         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9441         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9442         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9443         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9444         * sysdeps/ieee754/k_standardl.c: Likewise.
9445         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9446         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9447         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9448         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9449         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9450         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9451         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9452         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9453         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9454         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9455         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9456         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9457         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9458         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9459         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9460         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9461         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9462         * math/w_ilogb_template.c: Include <fenv.h> instead of
9463         <fenv_private.h>.
9464         * math/w_llogb_template.c: Likewise.
9465         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9466         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9468 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
9470         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9471         * math/fromfp.h: Include <fenv_private.h>.
9472         * math/math-narrow.h: Likewise.
9473         * math/s_cexp_template.c: Likewise.
9474         * math/s_csin_template.c: Likewise.
9475         * math/s_csinh_template.c: Likewise.
9476         * math/s_ctan_template.c: Likewise.
9477         * math/s_ctanh_template.c: Likewise.
9478         * math/s_iseqsig_template.c: Likewise.
9479         * math/w_acos_compat.c: Likewise.
9480         * math/w_acosf_compat.c: Likewise.
9481         * math/w_acosl_compat.c: Likewise.
9482         * math/w_asin_compat.c: Likewise.
9483         * math/w_asinf_compat.c: Likewise.
9484         * math/w_asinl_compat.c: Likewise.
9485         * math/w_ilogb_template.c: Likewise.
9486         * math/w_j0_compat.c: Likewise.
9487         * math/w_j0f_compat.c: Likewise.
9488         * math/w_j0l_compat.c: Likewise.
9489         * math/w_j1_compat.c: Likewise.
9490         * math/w_j1f_compat.c: Likewise.
9491         * math/w_j1l_compat.c: Likewise.
9492         * math/w_jn_compat.c: Likewise.
9493         * math/w_jnf_compat.c: Likewise.
9494         * math/w_llogb_template.c: Likewise.
9495         * math/w_log10_compat.c: Likewise.
9496         * math/w_log10f_compat.c: Likewise.
9497         * math/w_log10l_compat.c: Likewise.
9498         * math/w_log2_compat.c: Likewise.
9499         * math/w_log2f_compat.c: Likewise.
9500         * math/w_log2l_compat.c: Likewise.
9501         * math/w_log_compat.c: Likewise.
9502         * math/w_logf_compat.c: Likewise.
9503         * math/w_logl_compat.c: Likewise.
9504         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9505         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9506         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9507         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9508         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9509         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9510         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9511         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9512         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9513         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9514         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9515         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9516         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9517         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9518         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9519         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9520         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9521         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9522         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9523         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9524         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9525         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9526         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9527         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9528         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9529         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9530         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9531         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9532         * sysdeps/ieee754/float128/float128_private.h: Likewise.
9533         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9534         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9535         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9536         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9537         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9538         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9539         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9540         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9541         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9542         * sysdeps/ieee754/k_standardl.c: Likewise.
9543         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9544         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9545         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9546         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9547         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9548         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9549         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9550         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9551         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9552         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9553         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9554         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9555         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9556         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9557         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9558         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9559         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9560         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9561         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9562         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9563         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9564         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9565         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9566         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9567         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9568         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9569         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9570         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9571         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9572         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9573         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9574         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9575         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9576         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9577         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9578         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9579         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9580         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9581         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9582         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9583         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9584         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9585         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9586         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9587         * sysdeps/riscv/rvd/s_finite.c: Likewise.
9588         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9589         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9590         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9591         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9592         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9593         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9594         * sysdeps/riscv/rvf/fegetround.c: Likewise.
9595         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9596         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9597         * sysdeps/riscv/rvf/fesetround.c: Likewise.
9598         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9599         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9600         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9601         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9602         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9603         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9604         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9605         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9606         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9607         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9608         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9609         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9610         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9611         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9612         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9613         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9615 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
9617         [BZ #20271]
9618         * include/stdio.h (__libc_fatal): Mention newline in comment.
9619         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9620         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9621         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9622         * nss/nsswitch.c (__nss_next2): Likewise.
9623         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9624         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9625         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9626         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9627         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9628         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9629         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9630         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9631         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9632         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9633         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9634         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9635         (__netlink_assert_response): Likewise.
9637 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
9639         * conform/glibcconform.py: New file.
9640         * conform/list-header-symbols.py: Likewise.
9641         * conform/list-header-symbols.pl: Remove.
9642         * conform/Makefile (tests-special): Only add linknamespace tests
9643         if [PYTHON].
9644         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9646 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
9648         [BZ #23597]
9649         * support/Makefile (libsupport-routines): Add
9650         support_copy_file_range and xcopy_file_range.
9651         * support/support.h: Include <sys/types.h>.
9652         (support_copy_file_range): New prototype.
9653         * support/support_copy_file_range.c: New file.  Copied and
9654         modified from io/copy_file_range-compat.c.
9655         * support/test-container.c (copy_one_file): Call xcopy_file_rang
9656         instead of copy_file_range.
9657         * support/xcopy_file_range.c: New file.
9658         * support/xunistd.h (xcopy_file_range): New prototype.
9660 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
9662         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9663         xpthread_create and xpthread_join.
9665 2018-08-30  Florian Weimer  <fweimer@redhat.com>
9667         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9669 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
9671         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9672         if malloc fails.
9674 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
9676         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9677         and minus_oflow as non-finite.
9679 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
9681         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
9682         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
9683         moved to fenv_private.h except for ...
9684         (TOINT_INTRINSICS): Kept in math_private.h.
9685         (roundtoint): Likewise.
9686         (converttoint): Likewise.
9687         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9688         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
9689         * sysdeps/arm/math_private.h: Remove.
9690         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
9691         ....
9692         * sysdeps/generic/math_private.h: ... this file.  Include
9693         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
9694         Include <fenv_private.h>.  Remove functions and macros moved to
9695         fenv_private.h.
9696         * sysdeps/i386/fpu/math_private.h: Remove.
9697         * sysdeps/mips/math_private.h: Move to ....
9698         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
9699         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
9700         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
9701         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9702         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
9703         * sysdeps/powerpc/fpu/math_private.h: Do not include
9704         <fenv_private.h>.
9705         * sysdeps/riscv/rvf/math_private.h: Move to ....
9706         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
9707         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
9708         <fenv_private.h>.
9709         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9710         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
9711         * sysdeps/sparc/fpu/math_private.h: Remove.
9712         * sysdeps/i386/fpu/fenv_private.h: Move to ....
9713         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
9714         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
9715         <fenv_private.h>.
9716         * sysdeps/x86_64/fpu/math_private.h: Do not include
9717         <sysdeps/i386/fpu/fenv_private.h>.
9719 2018-08-28  Florian Weimer  <fweimer@redhat.com>
9721         [BZ #23578]
9722         * posix/tst-regcomp-truncated.c: New file.
9723         * posix/Makefile (tests): Add it.
9724         (tst-regcomp-truncated.out): Depend on generated locales.
9726 2018-08-28  Florian Weimer  <fweimer@redhat.com>
9728         * support/test-container.c (main): Treat unshare failure with
9729         EPERM as an unsupported test.
9731 2018-08-28  Florian Weimer  <fweimer@redhat.com>
9733         [BZ #23520]
9734         nscd: Fix use-after-free in addgetnetgrentX and its callers.
9735         * nscd/netgroupcache.c
9736         (addgetnetgrentX): Add tofreep parameter.  Do not free
9737         heap-allocated buffer.
9738         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9739         (addgetnetgrentX_ignore): New function.
9740         (addgetnetgrent): Call it.
9741         (readdgetnetgrent): Likewise.
9743 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9745         * string/memmem.c: Use memcmp for first match.
9747 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
9749         [BZ #17426]
9750         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9752 2018-08-27  DJ Delorie  <dj@redhat.com>
9754         * support/Makefile (others): Don't list programs explicitly as a
9755         dependency of "others".
9757 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
9759         * sysdeps/generic/math-tests-trap-force.h: New file.
9760         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9761         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9762         * sysdeps/powerpc/math-tests.h: Remove file.
9763         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9765 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
9766             Torvald Riegel  <triegel@redhat.com>
9768         [BZ #23538]
9769         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9770         Update r to include the set wake-request flag if waiters are
9771         remaining after spinning.
9773 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
9775         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9777 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9779         [BZ #23578]
9780         regex: fix uninitialized memory access
9781         I introduced this bug into gnulib in commit
9782         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9783         eventually it was merged into glibc.  The bug was found by
9784         project-repo <bugs@feusi.co> and reported here:
9785         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9786         Diagnosis and draft fix reported by Assaf Gordon here:
9787         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9788         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9789         * posix/regex_internal.c (build_wcs_upper_buffer):
9790         Fix bug when mbrtowc returns 0.
9792 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
9794         * po/be.po: Update translation.
9796 2018-08-24  DJ Delorie  <dj@delorie.com>
9798         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9799         $(libunwind).
9801 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
9803         [BZ #23400]
9804         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9805         create temporary files in source tree.
9807 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
9809         * sysdeps/generic/math-tests-trap.h: New file.
9810         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9811         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9812         * sysdeps/aarch64/math-tests.h: Remove file.
9813         * sysdeps/arm/math-tests.h: Likewise.
9814         * sysdeps/riscv/math-tests.h: Likewise.
9815         * sysdeps/aarch64/math-tests-trap.h: New file.
9816         * sysdeps/arm/math-tests-trap.h: Likewise.
9817         * sysdeps/riscv/math-tests-trap.h: Likewise.
9819 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
9821         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9822         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9823         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9824         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9825         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9826         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9827         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9828         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9829         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9830         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9831         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9832         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9833         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9834         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9835         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9836         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9837         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9838         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9840 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
9842         * sysdeps/generic/math-tests-exceptions.h: New file.
9843         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9844         (EXCEPTION_TESTS_float): Do not define here.
9845         (EXCEPTION_TESTS_double): Likewise.
9846         (EXCEPTION_TESTS_long_double): Likewise.
9847         (EXCEPTION_TESTS_float128): Likewise.
9848         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9849         Likewise.
9850         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9851         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9852         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9853         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9854         * sysdeps/mips/math-tests.h: Likewise.
9855         * sysdeps/nios2/math-tests.h: Likewise.
9856         * sysdeps/riscv/math-tests.h [!__riscv_flen]
9857         (EXCEPTION_TESTS_float): Do not define here.
9858         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9859         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9860         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9862 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
9864         * NEWS: Move optimized sinf entry to 2.29.
9866 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
9868         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9870 2018-08-22  DJ Delorie  <dj@redhat.com>
9872         * Makefile (testroot.pristine): New rules to initialize the
9873         test-in-container "testroot".
9874         * Makerules (all-testsuite): Add tests-container.
9875         * Rules (tests-expected): Add tests-container.
9876         (binaries-all-tests): Likewise.
9877         (tests-container): New, run these tests in the testroot container.
9878         * support/Makefile (others): Add *-container, support_paths.c,
9879         xmkdirp, and links-dso-program.
9880         * support/links-dso-program-c.c: New.
9881         * support/links-dso-program.cc: New.
9882         * support/test-container.c: New.
9883         * support/shell-container.c: New.
9884         * support/echo-container.c: New.
9885         * support/true-container.c: New.
9886         * support/xmkdirp.c: New.
9887         * support/xsymlink.c: New.
9888         * support/support_paths.c: New.
9889         * support/support.h: Add support paths prototypes.
9890         * support/xunistd.h: Add xmkdirp () and xsymlink ().
9892         * nss/tst-nss-test3.c: Convert to test-in-container.
9893         * nss/tst-nss-test3.root/: New.
9895 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9897         regex: port Gnulib code to z/OS POSIX environment
9898         Problem reported by Arnold Robbins in:
9899         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9900         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9901         Undef.
9903 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
9905         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9906         (ROUNDING_TESTS_double): Remove.
9907         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9908         (ROUNDING_TESTS_double): Remove.
9909         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9910         (ROUNDING_TESTS_double): Remove.
9911         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9912         (ROUNDING_TESTS_float): Remove.
9913         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9914         (ROUNDING_TESTS_float): Remove.
9915         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9916         (ROUNDING_TESTS_float): Remove.
9917         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9918         !TEST_MATHVEC here.
9919         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9920         (IF_ROUND_INIT_FE_UPWARD): Likewise.
9922         * sysdeps/generic/math-tests-rounding.h: New file.
9923         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9924         (ROUNDING_TESTS_float): Do not define here.
9925         (ROUNDING_TESTS_double): Likewise.
9926         (ROUNDING_TESTS_long_double): Likewise.
9927         (ROUNDING_TESTS_float128): Likewise.
9928         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9929         (ROUNDING_TESTS_double): Undefine before defining.
9930         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9931         (ROUNDING_TESTS_double): Undefine before defining.
9932         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9933         (ROUNDING_TESTS_double): Undefine before defining.
9934         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9935         (ROUNDING_TESTS_float): Undefine before defining.
9936         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9937         (ROUNDING_TESTS_float): Undefine before defining.
9938         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9939         (ROUNDING_TESTS_float): Undefine before defining.
9940         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9941         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9942         not define here.
9943         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9944         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9945         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9946         * sysdeps/riscv/math-tests.h [!__riscv_flen]
9947         (ROUNDING_TESTS_float): Do not define here.
9948         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9949         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9950         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9951         (ROUNDING_TESTS_float): Likewise.
9952         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9953         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9954         * sysdeps/mips/math-tests.h [__mips_soft_float]
9955         (ROUNDING_TESTS_float): Likewise.
9956         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9957         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9958         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9959         (ROUNDING_TESTS_double): Likewise.
9960         (ROUNDING_TESTS_long_double): Likewise.
9962 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
9964         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9965         (PF_XDP): New macro.
9966         (AF_XDP): New macro.
9967         (SOL_XDP): New macro.
9969 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
9971         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9972         (TCP_INQ): Likewise.
9973         (TCP_CM_INQ): Likewise.
9974         (TCP_REPAIR_ON): Likewise.
9975         (TCP_REPAIR_OFF): Likewise.
9976         (TCP_REPAIR_OFF_NO_WP): Likewise.
9977         (struct tcp_zerocopy_receive): New type.
9979 2018-08-21  Florian Weimer  <fweimer@redhat.com>
9981         * support/support.h (support_descriptor_supports_holes): Declare.
9982         * support/Makefile (libsupport-routines): Add
9983         support_descriptor_supports_holes.
9984         * support/support_descriptor_supports_holes.c: New file.
9985         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9986         and stop testing if holes are not supported.
9987         * io/test-lfs.c (do_prepare): Likewise.
9988         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9989         Likewise.
9990         * timezone/tst-tzset.c (create_tz_file): Likewise.
9991         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9992         variable.
9993         (do_prepare): Set it.
9994         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9996 2018-08-21  Florian Weimer  <fweimer@redhat.com>
9998         [BZ #17248]
9999         * Makeconfig (+cflags): Do not sort (and deduplicate).
10001 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10003         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10004         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10006 2018-08-20  Florian Weimer  <fweimer@redhat.com>
10008         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10009         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
10011 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
10013         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10014         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10015         and ssi_arch members.
10017         * elf/elf.c (NT_VMCOREDD): New macro.
10018         (AT_MINSIGSTKSZ): Likewise.
10020 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10022         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10023         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10024         s_cosf-ppc64 and s_cosf-power8.
10025         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10026         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10027         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10028         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10031         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10035         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10036         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10038 2018-08-17  Florian Weimer  <fweimer@redhat.com>
10040         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10042 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
10044         * malloc/malloc.c (_int_malloc): Additional binning code checks.
10046 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10048         * configure.ac: Add --with-nonshared-cflags option.
10049         * config.make.in (extra-nonshared-cflags): Set variable.
10050         * Makeconfig (CFLAGS-.oS): Use it.
10051         * manual/install.texi (Configuring and compiling): Document
10052         --with-nonshared-cflags.
10053         * configure: Regenerate.
10054         * INSTALL: Likewise.
10056 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10058         * Makeconfig (ASFLAGS): Always append required assembler flags.
10060 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
10062         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10063         (malloc_consolidate): Likewise.
10065 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
10067         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10069 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10071         * benchtests/bench-strlen.c (do_test): Allocate buffers before
10072         every strlen call.
10074         * benchtests/bench-strlen.c: Print performance numbers in json.
10076 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10078         * sysdeps/powerpc/powerpc64/multiarch/Makefile
10079         (sysdep_routines): Build strcmp-power9 and strncmp-power9
10080         only for little endian.
10081         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10082         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10083         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10084         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10085         Add check for little endian.
10086         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10087         (__strcmp_power9): Add check for little endian.
10088         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10089         Add check for little endian.
10090         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10091         (__strncmp_power9): Add check for little endian.
10092         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10093         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10094         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10095         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10096         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10098 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10100         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10101         [!STRLEN](STRLEN): Set to __strlen.
10102         * sysdeps/aarch64/multiarch/strlen.c: New file.
10103         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10104         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10105         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10106         (__libc_ifunc_impl_list): Add strlen.
10107         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10108         strlen_generic and strlen_asimd.
10110 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
10112         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10113         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10114         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10116 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
10118         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10120 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10122         [BZ #23519]
10123         * include/stdio.h (__vfxprintf): Declare.
10124         * stdio-common/fxprintf.c (__vfxprintf): New function.
10125         (__fxprintf): Call it.
10126         * misc/err.c (convert_and_print): Remove function.
10127         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10128         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10129         * misc/Makefile (tests): Add tst-warn-wide.
10130         * misc/tst-warn-wide.c: New file.
10132 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
10133             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10135         * NEWS: Mention sinf, cosf, sincosf.
10136         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10137         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10138         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10139         constants rather than including generic sincosf.h.
10140         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10141         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10142         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10143         (reduced_cos): Remove.
10144         (sinf_poly): New function.
10145         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10147 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10149         [BZ #23521]
10150         [BZ #23522]
10151         * nss/nss_files/files-alias.c (get_next_alias): During :include:
10152         processing, bail out if no room, and close the stream before
10153         returning ERANGE.
10154         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10155         (tst-nss-files-alias-leak): Link with libdl.
10156         (tst-nss-files-alias-leak.out): Depend on nss_files.
10158         * nss/tst-nss-files-alias-leak.c: New file.
10160 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10162         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10163         server_user, stat_user.
10165 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
10167         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10168         version to 4.18.
10169         (io_pgetevents): New syscall.
10170         (rseq): Likewise.
10172         * manual/install.texi (Configuring and compiling): Do not list
10173         tools used for testing pretty printers here.
10174         (Tools for Compilation): List Python, PExpect and GDB here.
10175         Update descriptions of uses of Perl and Python.
10176         * INSTALL: Regenerate.
10178         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10179         version to 4.18.
10181 2018-08-13  Florian Weimer  <fweimer@redhat.com>
10183         * misc/error.c (error): Add missing va_end call.
10184         (error_at_line): Likewise.
10186 2018-08-13  Florian Weimer  <fweimer@redhat.com>
10188         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10190 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10192         * benchtests/scripts/benchout.schema.json (properties): Add
10193         new properties.
10195         * benchtests/bench-skeleton.c (main): Add duration and
10196         iterations attributes.
10198 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10200         regex: Gnulib unibyte RRI uses bytes not chars
10201         Adjust the non-glibc code to agree with what Gawk needs for
10202         rational range interpretation (RRI) for regular expression ranges.
10203         In unibyte locales, Gawk wants ranges to use the underlying byte
10204         rather than the character code point.  This change does not affect
10205         glibc proper.
10206         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10207         In unibyte locales, use the byte value rather than
10208         running it through btowc.
10210 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
10212         * sysdeps/generic/math-tests-snan.h: New file.
10213         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10214         (SNAN_TESTS_float): Do not define here.
10215         (SNAN_TESTS_double): Likewise.
10216         (SNAN_TESTS_long_double): Likewise.
10217         (SNAN_TESTS_float128): Likewise.
10218         * sysdeps/i386/fpu/math-tests-snan.h: New file.
10219         * sysdeps/i386/fpu/math-tests.h: Remove file.
10220         * sysdeps/ia64/math-tests-snan.h: New file.
10221         * sysdeps/ia64/math-tests.h: Remove file.
10222         * sysdeps/x86/math-tests.h: Likewise.
10223         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10225 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10226             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10228         * math/Makefile: Add s_sincosf_data.c.
10229         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10230         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10231         (sincosf_poly): Likewise.
10232         (reduce_small): Likewise.
10233         (reduce_large): Likewise.
10234         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10235         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10236         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10237         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10239 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10240             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10242         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10243         (converttoint): Use lround.
10244         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10245         document the semantics when TOINT_INTRINSICS is set.
10246         (converttoint): Likewise.
10247         (TOINT_RINT): Remove.
10248         (TOINT_SHIFT): Remove.
10249         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10250         path.
10252 2018-08-10  Florian Weimer  <fweimer@redhat.com>
10254         [BZ #23497]
10255         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10256         function.
10257         (__old_getdents64): Use getdents64.  Convert entries without
10258         moving them.
10259         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10260         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10261         tst-readdir64-compat.
10263 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10265         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10266         Fix unwind.
10268 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10270         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10271         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10272         code to s390x-mcount.h and #include it.
10273         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10274         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10275         (__fentry__): Add.
10277 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10279         * stdlib/Versions: Remove __fentry__.
10280         * sysdeps/i386/Versions: Add __fentry__.
10281         * sysdeps/x86_64/Versions: Add __fentry__.
10283 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10285         * sysdeps/s390/Makefile: Register the new tests.
10286         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10287         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10288         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10289         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10290         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10291         * sysdeps/s390/tst-dl-runtime.c: New file.
10293 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10295         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10296         Do not clobber R0.
10298 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10300         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10301         Do not clobber R0.
10303 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10305         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10306         Do not clobber R0.
10308 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10310         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10311         Do not clobber R0.
10313 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10315         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10316         Use symbolic offsets for stack variables.
10318 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10320         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10321         Use symbolic offsets for stack variables.
10323 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10325         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10326         Use symbolic offsets for stack variables.
10328 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10330         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10331         Use symbolic offsets for stack variables.
10333 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
10335         * math/gen-libm-test.py: New file.
10336         * math/gen-libm-test.pl: Remove.
10337         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10338         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10339         gen-libm-test.pl.
10340         ($(libm-test-c-noauto-obj)): Likewise.
10341         ($(libm-test-c-auto-obj)): Likewise.
10342         ($(libm-test-c-narrow-obj)): Likewise.
10343         (regen-ulps): Likewise.
10344         * math/README.libm-test: Update references to gen-libm-test.pl.
10345         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10346         referencing gen-libm-test.pl.
10347         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10348         * math/libm-test-support.c: Likewise.
10349         * math/libm-test-support.h: Likewise.
10350         * sysdeps/generic/libm-test-ulps: Likewise.
10352 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10354         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10355         Fix value.
10357 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
10359         * math/libm-test-nextdown.inc (do_test): Move comment to ....
10360         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10362 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10364         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10365         symbols.
10366         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10367         __pthread_setspecific): Add hidden proto.
10368         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10369         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10371 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10373         * benchtests/bench-string.h (buf1_size, buf2_size): New
10374         variables.
10375         (init_sizes): New function.
10376         (test_init): Use it.
10377         (alloc_buf, exit_error): New functions.
10378         (alloc_bufs): Use ALLOC_BUF.
10379         (realloc_bufs): Remove.
10380         * benchtests/bench-memcmp.c (do_test): Adjust.
10381         * benchtests/bench-memset-large.c (do_test): Likewise.
10382         * benchtests/bench-memset-walk.c (do_test): Likewise.
10383         * benchtests/bench-memset.c (do_test): Likewise.
10384         * benchtests/bench-strncmp.c (do_test): Likewise.
10386 2018-08-06  Andreas Schwab  <schwab@suse.de>
10388         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10389         of CONST_THREAD_AREA.
10391 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10393         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10394         (STATE_SAVE_MASK): Likewise.
10395         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10396         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10397         (STATE_SAVE_MASK): Likewise.
10398         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10399         instead of <cpu-features.h>.
10401 2018-08-03  DJ Delorie  <dj@redhat.com>
10403         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10404         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10406         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10408 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
10410         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10411         after TEST_* calls.
10412         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10413         * math/libm-test-logb.inc (logb_test_data): Likewise.
10415 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
10417         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10418         * string/strstr.c (AVAILABLE): Likewise.
10420 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
10422         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10423         <init-arch.h>.
10424         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10425         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10426         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10428 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
10430         * po/be.po: Update translation.
10432         * po/be.po: Update translation.
10434 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
10436         * sysdeps/x86/cpu-features-offsets.sym
10437         (rtld_global_ro_offsetof): Removed.
10438         (CPU_FEATURES_SIZE): Likewise.
10439         (CPUID_OFFSET): Likewise.
10440         (CPUID_SIZE): Likewise.
10441         (CPUID_EAX_OFFSET): Likewise.
10442         (CPUID_EBX_OFFSET): Likewise.
10443         (CPUID_ECX_OFFSET): Likewise.
10444         (CPUID_EDX_OFFSET): Likewise.
10445         (FAMILY_OFFSET): Likewise.
10446         (MODEL_OFFSET): Likewise.
10447         (FEATURE_OFFSET): Likewise.
10448         (FEATURE_SIZ): Likewise.
10449         (COMMON_CPUID_INDEX_1): Likewise.
10450         (COMMON_CPUID_INDEX_7): Likewise.
10451         (FEATURE_INDEX_1): Likewise.
10452         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10454 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
10456         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10457         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10458         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10459         (install-locales): Depend on install-locale-archive.
10460         (install-locale-archive): Define.
10461         (install-locale-files): Define.
10462         (build-one-locale): Define macro.
10463         * manual/install.texi (Running make install): Document.
10464         * manual/INSTALL: Regenerate.
10466 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10468         * benchtests/scripts/compare_strings.py: Import traceback.
10469         (parse_file): Pretty-print error.
10471         * NEWS: Mention the change.
10472         * elf/dl-tunables.list: Rename tune namespace to cpu.
10473         * sysdeps/powerpc/dl-tunables.list: Likewise.
10474         * sysdeps/x86/dl-tunables.list: Likewise.
10475         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10476         cpu.name.
10477         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10478         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10479         * manual/README.tunables: Likewise.
10480         * manual/tunables.texi: Likewise.
10481         * sysdeps/powerpc/cpu-features.c: Likewise.
10482         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10483         (init_cpu_features): Likewise.
10484         * sysdeps/x86/cpu-features.c: Likewise.
10485         * sysdeps/x86/cpu-features.h: Likewise.
10486         * sysdeps/x86/cpu-tunables.c: Likewise.
10487         * sysdeps/x86_64/Makefile: Likewise.
10488         * sysdeps/x86/dl-cet.c: Likewise.
10490 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
10492         [BZ #23479]
10493         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10494         [__mips_hard_float].
10495         (FE_UNDERFLOW): Likewise.
10496         (FE_OVERFLOW): Likewise.
10497         (FE_DIVBYZERO): Likewise.
10498         (FE_INVALID): Likewise.
10499         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10500         (FE_TOWARDZERO): Define only if [__mips_hard_float].
10501         (FE_UPWARD): Likewise.
10502         (FE_DOWNWARD): Likewise.
10503         (__FE_UNDEFINED): Define if [!__mips_hard_float]
10504         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10505         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10506         [__mips_hard_float].
10507         (FP_ROUNDMODE): Likewise.
10508         (FP_RND_NEAREST): Likewise.
10509         (FP_RND_ZERO): Likewise.
10510         (FP_RND_PINF): Likewise.
10511         (FP_RND_MINF): Likewise.
10512         (FP_EX_INVALID): Likewise.
10513         (FP_EX_OVERFLOW): Likewise.
10514         (FP_EX_UNDERFLOW): Likewise.
10515         (FP_EX_DIVZERO): Likewise.
10516         (FP_EX_INEXACT): Likewise.
10517         (FP_INIT_ROUNDMODE): Likewise.
10518         * sysdeps/mips/nofpu/fesetenv.c: New file.
10519         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10521 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
10523         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10524         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10525         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10526         conditional on [FE_UPWARD].
10528 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
10530         regex: fix memory leak in Gnulib
10531         Problem and fix reported by Assaf Gordon in:
10532         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10533         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10534         range_ends members too, as they are defined in 'struct
10535         re_charset_t' even if not _LIBC.  This affects only Gnulib.
10537 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
10539         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10540         ...
10541         (get_common_indices): This.
10542         (init_cpu_features): Updated.
10544 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
10546         * sysdeps/generic/math-tests-snan-payload.h: New file.
10547         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10548         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10549         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10550         * sysdeps/generic/math-tests.h: Include
10551         <math-tests-snan-payload.h>.
10552         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10553         * sysdeps/hppa/math-tests.h: Remove file.
10554         * sysdeps/mips/math-tests.h [!__mips_nan2008]
10555         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10556         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10557         Likewise.
10559         * sysdeps/generic/math-tests-snan-cast.h: New file.
10560         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10561         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10562         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10563         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10565 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
10567         * version.h (RELEASE): Set to "development".
10568         (VERSION): Set to "2.28.9000".
10569         * NEWS (2.29): New section.
10571         * version.h (RELEASE): Set to "stable".
10572         (VERSION): Set to "2.28".
10573         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10574         * NEWS: Add the list of bugs fixed in 2.28.
10576         * po/ca.po: Update to latest version.
10577         * po/cs.po: Likewise
10578         * po/da.po: Likewise
10579         * po/el.po: Likewise
10580         * po/eo.po: Likewise
10581         * po/es.po: Likewise
10582         * po/fi.po: Likewise
10583         * po/fr.po: Likewise
10584         * po/gl.po: Likewise
10585         * po/hu.po: Likewise
10586         * po/ia.po: Likewise
10587         * po/id.po: Likewise
10588         * po/it.po: Likewise
10589         * po/ja.po: Likewise
10590         * po/ko.po: Likewise
10591         * po/lt.po: Likewise
10592         * po/nb.po: Likewise
10593         * po/nl.po: Likewise
10594         * po/pt_BR.po: Likewise
10595         * po/ru.po: Likewise
10596         * po/rw.po: Likewise
10597         * po/sk.po: Likewise
10598         * po/sl.po: Likewise
10599         * po/tr.po: Likewise
10600         * po/zh_CN.po: Likewise
10601         * po/zh_TW.po: Likewise
10603 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10605         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10606         initialization...
10607         (init): ... before initializing libpthread.
10609         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10610         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10611         (__mach_setup_tls): ... new function.
10612         (mach_setup_tls): New alias.
10613         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10614         __mach_setup_thread.
10615         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10616         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10617         * mach/Versions [libc] (mach_setup_tls): Add symbol.
10618         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10620 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
10622         * manual/install.texi: Update versions.
10623         * INSTALL: Regenerate.
10625         * manual/contrib.texi (Contributors): Update contributions.
10627 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
10629         * po/be.po: Update translations.
10631 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10633         * sysdeps/sh/libm-test-ulps: Update.
10635 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
10637         * po/bg.po: Update translations.
10638         * po/de.po: Likewise.
10639         * po/hr.po: Likewise.
10640         * po/pt_BR.po: Likewise.
10641         * po/sv.po: Likewise.
10642         * po/vi.po: Likewise.
10644 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
10646         [BZ #23467]
10647         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10648         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10649         (CFLAGS-tst-cet-property-1.o): New.
10650         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10651         ($(objpfx)tst-cet-property-2): Likewise.
10652         ($(objpfx)tst-cet-property-2.out): Likewise.
10653         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10654         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10655         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10656         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10657         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10659 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
10661         [BZ #23458]
10662         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10664 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10666         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10667         __sbrk): Do not set attribute_hidden.
10668         * sysdeps/mach/hurd/not-errno.h: New file.
10669         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10670         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10672 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
10674         * po/uk.po: Update translations.
10675         * po/cs.po: Likewise.
10676         * po/pl.po: Likewise.
10678 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
10680         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10681         parse beyond the note end.
10683 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10685         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10686         kernel does not support OFD locks.
10687         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10689 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10691         * sysdeps/mach/hurd/Versions (libc): Make __access and
10692         __access_noerrno external so they can override the ld symbols.
10693         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10694         __writev, __open64, __access_noerrno extern so they can be overrided.
10695         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10696         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10698 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
10700         * po/libc.pot: Regenerate.
10702 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
10704         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10706 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
10708         [BZ #23459]
10709         * sysdeps/x86/cpu-features.c (get_extended_indices): New
10710         function.
10711         (init_cpu_features): Call get_extended_indices for both Intel
10712         and AMD CPUs.
10713         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10714         Remove "for AMD" comment.
10716 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
10718         [BZ # 23456]
10719         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10720         COMMON_CPUID_INDEX_80000001.
10722 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
10724         * string/tst-xbzero-opt.c (use_test_buffer): New function.
10725         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10727 2018-07-26  Florian Weimer  <fweimer@redhat.com>
10729         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10730         aliases for symbols not in the implementation namespace.
10732 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
10734         [BZ #23393]
10735         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10736         lowercase in LATIN script.
10737         * localedata/Makefile (test-input): Add en_US.UTF-8.
10738         * localedata/en_US.UTF-8.in: New file.
10739         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10740         and restore old tests.
10741         * posix/tst-regexloc.c (do_test): Add back range expression test.
10743 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10745         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10747 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10749         * nptl/threads.h: Move to ...
10750         * sysdeps/nptl/threads.h: ... here.
10751         * sysdeps/hurd/stdc-predef.h: New file.
10753 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10755         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10756         tst-cet-setcontext-1 if CET is enabled.
10757         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10758         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10760 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10762         * include/threads.h: Move to ...
10763         * sysdeps/nptl/threads.h: ... here.
10764         * sysdeps/htl/threads.h: New file.
10765         * conform/Makefile (linknamespace-libs-ISO11): Use
10766         static-thread-library instead of linking libpthread.
10767         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10769 2018-07-25  Florian Weimer  <fweimer@redhat.com>
10771         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10772         nanoseconds into seconds.
10773         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10774         (do_test): Likewise.
10775         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10776         (do_test): Likewise.  Avoid nanosecond overflow and spurious
10777         timeouts due to system load.
10778         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10779         (child_wait): Increment it.
10780         (do_test): Wait as long as necessary until all expected threads
10781         have arrived.
10783 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
10784             H.J. Lu  <hongjiu.lu@intel.com>
10786         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10787         __ssp.
10788         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10789         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10790         (__push___start_context): New.
10791         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10792         <asm/prctl.h>.
10793         (__getcontext): Record the current shadow stack base.  Save the
10794         caller's shadow stack pointer and base.
10795         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10796         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10797         (__push___start_context): New prototype.
10798         (__makecontext): Call __push___start_context to allocate a new
10799         shadow stack, push __start_context onto the new stack as well
10800         as the new shadow stack.
10801         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10802         <asm/prctl.h>.
10803         (__setcontext): Restore the target shadow stack.
10804         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10805         <asm/prctl.h>.
10806         (__swapcontext): Record the current shadow stack base.  Save
10807         the caller's shadow stack pointer and base. Restore the target
10808         shadow stack.
10809         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10810         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10811         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10813 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10815         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10816         tst-setcontext8 and tst-setcontext9.
10817         * stdlib/tst-setcontext6.c: New file.
10818         * stdlib/tst-setcontext7.c: Likewise.
10819         * stdlib/tst-setcontext8.c: Likewise.
10820         * stdlib/tst-setcontext9.c: Likewise.
10822 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10824         * stdlib/Makefile ((tests): Add tst-setcontext5.
10825         * stdlib/tst-setcontext5.c: New file.
10827 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10829         * stdlib/Makefile (tests): Add tst-setcontext4.
10830         * stdlib/tst-setcontext4.c: New file.
10832 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10834         * stdlib/Makefile (tests): Add tst-swapcontext1.
10835         * stdlib/tst-swapcontext1.c: New test.
10837 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10839         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10840         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10841         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10842         and tst-cet-legacy-4c.
10843         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10844         and tst-cet-legacy-mod-4.
10845         (CFLAGS-tst-cet-legacy-2.c): New.
10846         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10847         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10848         (CFLAGS-tst-cet-legacy-3.c): Likewise.
10849         (CFLAGS-tst-cet-legacy-4.c): Likewise.
10850         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10851         ($(objpfx)tst-cet-legacy-1): Likewise.
10852         ($(objpfx)tst-cet-legacy-2): Likewise.
10853         ($(objpfx)tst-cet-legacy-2.out): Likewise.
10854         ($(objpfx)tst-cet-legacy-2a): Likewise.
10855         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10856         ($(objpfx)tst-cet-legacy-4): Likewise.
10857         ($(objpfx)tst-cet-legacy-4.out): Likewise.
10858         ($(objpfx)tst-cet-legacy-4a): Likewise.
10859         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10860         (tst-cet-legacy-4a-ENV): Likewise.
10861         ($(objpfx)tst-cet-legacy-4b): Likewise.
10862         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10863         (tst-cet-legacy-4b-ENV): Likewise.
10864         ($(objpfx)tst-cet-legacy-4c): Likewise.
10865         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10866         (tst-cet-legacy-4c-ENV): Likewise.
10867         * sysdeps/x86/tst-cet-legacy-1.c: New file.
10868         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10869         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10870         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10871         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10872         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10873         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10874         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10875         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10876         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10877         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10879 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
10881         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10882         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10883         with ssp_base.
10884         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10885         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10886         with ssp_base.
10888 2018-07-25  Andreas Schwab  <schwab@suse.de>
10890         [BZ #23442]
10891         * locale/weightwc.h (findidx): Handle the case where usrc is a
10892         prefix of cp but one character too short.
10894 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10896         * NEWS: Add ISO C threads addition.
10898 2018-07-24  Florian Weimer  <fweimer@redhat.com>
10900         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10901         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10902         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
10903         4.13.
10905 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
10907         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10908         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10909         <sys/prctl.h> and <asm/prctl.h>.
10910         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10911         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10912         and <asm/prctl.h>.
10913         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10914         ARCH_CET_LEGACY_BITMAP.
10915         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10916         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10917         * sysdeps/x86/libc-start.c: Include <startup.h>.
10919 2018-07-24  Florian Weimer  <fweimer@redhat.com>
10921         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10922         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
10924 2018-07-24  Rical Jasan  <rj@2c3t.io>
10925             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10926             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
10928         [BZ #14092]
10929         * manual/debug.texi: Update adjacent chapter name.
10930         * manual/probes.texi: Likewise.
10931         * manual/threads.texi (ISO C Threads): New section.
10932         (POSIX Threads): Convert to a section.
10934 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10935             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
10937         [BZ# 14092]
10938         * nptl/Makefile (tests): Add new test files.
10939         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10940         * nptl/tst-cnd-basic.c: Likewise.
10941         * nptl/tst-cnd-broadcast.c: Likewise.
10942         * nptl/tst-cnd-timedwait.c: Likewise.
10943         * nptl/tst-mtx-basic.c: Likewise.
10944         * nptl/tst-mtx-recursive.c: Likewise.
10945         * nptl/tst-mtx-timedlock.c: Likewise.
10946         * nptl/tst-mtx-trylock.c: Likewise.
10947         * nptl/tst-thrd-basic.c: Likewise.
10948         * nptl/tst-thrd-detach.c: Likewise.
10949         * nptl/tst-thrd-sleep.c: Likewise.
10950         * nptl/tst-tss-basic.c: Likewise.
10952 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10954         [BZ #14092]
10955         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10956         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10957         symbols.
10958         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10959         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10960         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10961         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10962         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10963         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10964         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10965         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10966         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10967         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10968         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10969         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10971         Likewise.
10972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10973         Likewise.
10974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10975         Likewise.
10976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10977         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10978         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10979         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10980         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10981         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10982         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10983         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10984         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10985         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10986         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10987         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10988         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10989         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10990         Likewise.
10991         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10992         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10993         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10994         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10995         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10996         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10997         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10998         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10999         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11000         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11001         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11002         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11003         ikewise.
11004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11006         Likewise.
11007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11008         Likewise.
11009         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11010         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11011         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11012         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11013         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11014         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11015         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11016         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11018         [BZ #14092]
11019         * conform/data/threads.h-data (thread_local): New macro.
11020         (TSS_DTOR_ITERATIONS): Likewise.
11021         (tss_t): New type.
11022         (tss_dtor_t): Likewise.
11023         (tss_create): New function.
11024         (tss_get): Likewise.
11025         (tss_set): Likewise.
11026         (tss_delete): Likewise.
11027         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11028         tss_get, and tss_set objects.
11029         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11030         * nptl/tss_create.c: New file.
11031         * nptl/tss_delete.c: Likewise.
11032         * nptl/tss_get.c: Likewise.
11033         * nptl/tss_set.c: Likewise.
11034         * sysdeps/nptl/threads.h (thread_local): New define.
11035         (TSS_DTOR_ITERATIONS): Likewise.
11036         (tss_t): New typedef.
11037         (tss_dtor_t): Likewise.
11038         (tss_create): New prototype.
11039         (tss_get): Likewise.
11040         (tss_set): Likewise.
11041         (tss_delete): Likewise.
11043         [BZ #14092]
11044         * conform/data/threads.h-data (cnd_t): New type.
11045         (cnd_init): New function.
11046         (cnd_signal): Likewise.
11047         (cnd_broadcast): Likewise.
11048         (cnd_wait): Likewise.
11049         (cnd_timedwait): Likewise.
11050         (cnd_destroy): Likewise.
11051         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11052         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11053         object.
11054         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11055         * nptl/cnd_broadcast.c: New file.
11056         * nptl/cnd_destroy.c: Likewise.
11057         * nptl/cnd_init.c: Likewise.
11058         * nptl/cnd_signal.c: Likewise.
11059         * nptl/cnd_timedwait.c: Likewise.
11060         * nptl/cnd_wait.c: Likewise.
11061         * sysdeps/nptl/threads.h (cnd_t): New type.
11062         (cnd_init): New prototype.
11063         (cnd_signa): Likewise.
11064         (cnd_broadcast): Likewise.
11065         (cnd_wait): Likewise.
11066         (cnd_timedwait): Likewise.
11067         (cnd_destroy): Likewise.
11069         [BZ #14092]
11070         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11071         (once_flag): New type.
11072         (call_once): New function.
11073         * nptl/Makefile (libpthread-routines): Add call_once object.
11074         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11075         * nptl/call_once.c: New file.
11076         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11077         (once_flag): New type.
11078         (call_once): New prototype.
11080         [BZ #14092]
11081         * conform/data/threads.h-data (mtx_plain): New constant.
11082         (mtx_recursive): Likewise.
11083         (mtx_timed): Likewise.
11084         (mtx_t): New type.
11085         (mtx_init): New function.
11086         (mtx_lock): Likewise.
11087         (mtx_timedlock): Likewise.
11088         (mtx_trylock): Likewise.
11089         (mtx_unlock): Likewise.
11090         (mtx_destroy): Likewise.
11091         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11092         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11093         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11094         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11095         * nptl/mtx_destroy.c: New file.
11096         * nptl/mtx_init.c: Likewise.
11097         * nptl/mtx_lock.c: Likewise.
11098         * nptl/mtx_timedlock.c: Likewise.
11099         * nptl/mtx_trylock.c: Likewise.
11100         * nptl/mtx_unlock.c: Likewise.
11101         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11102         (mtx_recursive): Likewise.
11103         (mtx_timed): Likewise.
11104         (mtx_t): New type.
11105         (mtx_init): New prototype.
11106         (mtx_lock): Likewise.
11107         (mtx_timedlock): Likewise.
11108         (mtx_trylock): Likewise.
11109         (mtx_unlock): Likewise.
11110         (mtx_destroy): Likewise.
11112         [BZ #14092]
11113         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11114         (linknamespace-libs-ISO11): Add libpthread.a.
11115         * conform/data/threads.h-data: New file: add C11 thrd_* types and
11116         functions.
11117         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11118         * nptl/Makefile (headers): Add threads.h.
11119         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11120         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11121         thrd_yield.
11122         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11123         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11124         thrd_join, thrd_sleep, and thrd_yield symbols.
11125         * nptl/descr.h (struct pthread): Add c11 field.
11126         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11127         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11128         routine with expected function prototype.
11129         (__pthread_create_2_1): Add C11 threads check based on attribute
11130         value.
11131         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11132         * nptl/thrd_create.c: New file.
11133         * nptl/thrd_current.c: Likewise.
11134         * nptl/thrd_detach.c: Likewise.
11135         * nptl/thrd_equal.c: Likewise.
11136         * nptl/thrd_exit.c: Likewise.
11137         * nptl/thrd_join.c: Likewise.
11138         * nptl/thrd_priv.h: Likewise.
11139         * nptl/thrd_sleep.c: Likewise.
11140         * nptl/thrd_yield.c: Likewise.
11141         * include/threads.h: Likewise.
11143 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11145         * bits/indirect-return.h: New file.
11146         * misc/sys/cdefs.h (__glibc_has_attribute): New.
11147         * sysdeps/x86/bits/indirect-return.h: Likewise.
11148         * stdlib/Makefile (headers): Add bits/indirect-return.h.
11149         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11150         (swapcontext): Add __INDIRECT_RETURN.
11151         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11152         (prepare_test_buffer): Use it.
11154 2018-07-24  Andreas Schwab  <schwab@suse.de>
11156         [BZ #23448]
11157         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11158         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11160 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11162         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11163         Redefine if shadow stack is enabled.
11164         (SYSCALL_ERROR_LABEL): Likewise.
11165         (__vfork): Pop shadow stack and jump back to to caller directly
11166         when shadow stack is in use.
11167         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11168         Redefine if shadow stack is enabled.
11169         (SYSCALL_ERROR_LABEL): Likewise.
11170         (__vfork): Pop shadow stack and jump back to to caller directly
11171         when shadow stack is in use.
11173 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11175         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11176         enabled.
11177         (foo): Likewise.
11178         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11179         (foo): Likewise.
11181 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
11183         * scripts/build-many-glibcs.py (Context.checkout): Default
11184         binutils version to 2.31 branch.
11186 2018-07-20  Zong Li  <zong@andestech.com>
11188         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11189         URL of gcc's tarball.
11191 2018-07-20  Florian Weimer  <fweimer@redhat.com>
11193         [BZ #23396]
11194         * posix/regcomp.c (build_equiv_class): When comparing weights, do
11195         not compare an extra byte after the end of the weights.
11197 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11199         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11200         to 1.
11201         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11202         hidden prototypes.
11203         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11204         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11205         * scripts/check-execstack.awk: Consider `xfail' variable containing a
11206         list of libraries whose stack executability is expected.
11207         * elf/Makefile ($(objpfx)check-execstack.out): Pass
11208         $(check-execstack-xfail) to check-execstack.awk through `xfail'
11209         variable.
11210         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11211         libc.so libpthread.so.
11213 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
11215         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11216         SOCK_NONBLOCK.
11217         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11218         and SOCK_NONBLOCK.
11219         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
11220         implement __pipe2.
11221         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11223 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11225         * benchtests/scripts/compare_bench.py (__main__): use the argparse
11226         library to improve command line parsing.
11227         (__main__): make schema file as optional parameter (--schema),
11228         defaulting to benchtests/scripts/benchout.schema.json.
11229         (main): move out of the parsing stuff to __main_  and leave it
11230         only as caller of main comparison functions.
11232 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
11234         * NEWS: Add a note for Intel CET status.
11235         * manual/install.texi: Likewise.
11236         * INSTALL: Regenerated.
11238 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
11240         [BZ #23140]
11241         * localedata/locales/oc_FR (mon): Rename to...
11242         (alt_mon): This, then update October (typo fix).
11243         (mon): New content (genitive case, month names preceded by
11244         "de" or "d’").
11246         [BZ #23422]
11247         * localedata/locales/oc_FR (abday): Update all items.
11248         (day): Update Wednesday and Saturday (typo fixes).
11249         (abmon): Update all items, except May.
11250         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11251         (LC_IDENTIFICATION): Bump the revision number and date.
11252         Keep the "category" entries in alphabetic order.
11253         (LC_ADDRESS): Remove no longer needed comment.
11254         (LC_COLLATE): Use “copy "ca_ES"”.
11255         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11256         "name_mrs".
11258 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
11260         * grp/tst_fgetgrent.c: Include <unistd.h>.
11261         (main): Use mkstemp instead of tmpnam.
11262         * io/test-utime.c (main): Likewise.
11263         * posix/annexc.c (macrofile): Change to modifiable array.
11264         (main): Remove macrofile here.
11265         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
11266         macrofile here.
11267         (check_header): Do not remove macrofile here.
11268         * posix/bug-getopt1.c: Include <stdlib.h>.
11269         (do_test): Use mkstemp instead of tmpnam.
11270         * posix/bug-getopt2.c: Include <stdlib.h>.
11271         (do_test): Use mkstemp instead of tmpnam.
11272         * posix/bug-getopt3.c: Include <stdlib.h>.
11273         (do_test): Use mkstemp instead of tmpnam.
11274         * posix/bug-getopt4.c: Include <stdlib.h>.
11275         (do_test): Use mkstemp instead of tmpnam.
11276         * posix/bug-getopt5.c: Include <stdlib.h>.
11277         (do_test): Use mkstemp instead of tmpnam.
11278         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11279         (main): Use mkstemp instead of tmpnam.
11280         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11281         (main): Use mkstemp instead of tmpnam.
11282         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11283         (main): use mkstemp instead of tmpnam.
11284         * stdlib/isomac.c (macrofile): Change to modifiable array.
11285         (main): Remove macrofile here.
11286         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
11287         macrofile here.
11288         (check_header): Do not remove macrofile here.
11290 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11292         * manual/tunables.texi: Document glibc.tune.x86_ibt and
11293         glibc.tune.x86_shstk.
11295 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11297         * NEWS: Mention --enable-cet.
11298         * manual/install.texi: Document --enable-cet.
11299         * INSTALL: Regenerated.
11301 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11303         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11304         Add _CET_NOTRACK before indirect jump to jump table.
11306 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11308         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11309         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11310         to jump table.
11312 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11314         * sysdeps/i386/i686/multiarch/strcat-sse2.S
11315         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11316         to jump table.
11318 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11320         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11321         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11322         to jump table.
11324 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11326         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11327         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11328         to jump table.
11330 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11332         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11333         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11334         to jump table.
11335         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11337 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11339         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11340         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11341         to jump table.
11343 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11345         * sysdeps/i386/i686/multiarch/memset-sse2.S
11346         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11347         to jump table.
11349 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11351         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11352         indirect jump to jump table.
11354 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11356         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11357         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11358         to jump table.
11359         (MEMCPY): Likewise.
11361 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11363         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11364         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11365         to jump table.
11366         (MEMCPY): Likewise.
11368 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11370         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11371         _CET_NOTRACK before indirect jump to jump table.
11373 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11375         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11376         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11377         to jump table.
11379 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11381         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11382         indirect jump to jump table.
11384 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
11386         [BZ #22241]
11387         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11388         (LOCALES): Likewise.
11389         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11390         * localedata/locales/sah_RU: New file.
11391         * localedata/sah_RU.UTF-8.in: New file.
11393 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11395         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11396         "sysdep.h".
11397         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
11398         _CET_ENDBR to indirect jump targets and adjust jump destination
11399         for _CET_ENDBR.
11400         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11401         "sysdep.h".
11402         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
11403         _CET_ENDBR to indirect jump targets and adjust jump destination
11404         for _CET_ENDBR.
11405         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11406         "sysdep.h".
11407         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
11408         _CET_ENDBR to indirect jump targets and adjust jump destination
11409         for _CET_ENDBR.
11411 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11413         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11414         _CET_ENDBR.
11416 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11418         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11419         _CET_ENDBR.
11420         (_dl_tlsdesc_undefweak): Likewise.
11421         (_dl_tlsdesc_dynamic): Likewise.
11422         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11423         (_dl_tlsdesc_resolve_rel): Likewise.
11424         (_dl_tlsdesc_resolve_rela): Likewise.
11425         (_dl_tlsdesc_resolve_hold): Likewise.
11426         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11427         (_dl_tlsdesc_undefweak): Likewise.
11428         (_dl_tlsdesc_dynamic): Likewise.
11429         (_dl_tlsdesc_resolve_rela): Likewise.
11430         (_dl_tlsdesc_resolve_hold): Likewise.
11432 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11434         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11435         (_fini): Likewise.
11436         * sysdeps/x86_64/crti.S (_init): Likewise.
11437         (_fini): Likewise.
11439 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
11441         [BZ #23140]
11442         * localedata/locales/os_RU (mon): Rename to...
11443         (alt_mon): This.
11444         (mon): Import from CLDR (genitive case).
11446 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11448         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11449         cet-tunables.h> when CET is enabled.
11451 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
11453         [BZ #21598]
11454         * configure.ac: Add --enable-cet.
11455         * configure: Regenerated.
11456         * elf/Makefille (all-built-dso): Add a comment.
11457         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11458         Include <dl-prop.h>.
11459         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11460         segment.
11461         * elf/dl-open.c: Include <dl-prop.h>.
11462         (dl_open_worker): Call _dl_open_check.
11463         * elf/rtld.c: Include <dl-prop.h>.
11464         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
11465         _rtld_main_check.
11466         * sysdeps/generic/dl-prop.h: New file.
11467         * sysdeps/i386/dl-cet.c: Likewise.
11468         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11469         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11470         * sysdeps/x86/cet-tunables.h: Likewise.
11471         * sysdeps/x86/check-cet.awk: Likewise.
11472         * sysdeps/x86/configure: Likewise.
11473         * sysdeps/x86/configure.ac: Likewise.
11474         * sysdeps/x86/dl-cet.c: Likewise.
11475         * sysdeps/x86/dl-procruntime.c: Likewise.
11476         * sysdeps/x86/dl-prop.h: Likewise.
11477         * sysdeps/x86/libc-start.h: Likewise.
11478         * sysdeps/x86/link_map.h: Likewise.
11479         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11480         _CET_ENDBR.
11481         (_dl_runtime_profile): Likewise.
11482         (_dl_runtime_resolve_shstk): New.
11483         (_dl_runtime_profile_shstk): Likewise.
11484         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11485         if CET is enabled.
11486         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11487         (CFLAGS-.os): Likewise.
11488         (CFLAGS-.op): Likewise.
11489         (CFLAGS-.oS): Likewise.
11490         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11491         is enabled.
11492         (tests-special): Add $(objpfx)check-cet.out.
11493         (cet-built-dso): New.
11494         (+$(cet-built-dso:=.note)): Likewise.
11495         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11496         ($(objpfx)check-cet.out): New.
11497         (generated): Add check-cet.out.
11498         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11499         <cet-tunables.h>.
11500         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11501         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11502         (init_cpu_features): Call get_cet_status to check CET status
11503         and update dl_x86_feature_1 with CET status.  Call
11504         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11505         (set_x86_shstk).  Disable and lock CET in libc.a.
11506         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11507         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11508         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11509         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11510         (_CET_ENDBR): Define if not defined.
11511         (ENTRY): Add _CET_ENDBR.
11512         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11513         x86_shstk.
11514         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11515         _CET_ENDBR.
11516         (_dl_runtime_profile): Likewise.
11518 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
11520         [BZ #21895]
11521         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11522         restore r2 on longjmp.
11523         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11524         test list.
11525         Added rules to build test tst-setjmp-bug21895-static.
11526         Added module setjmp-bug21895 and rules to build a shared object from it.
11527         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11528         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11530 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
11532         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11533         * benchtests/bench-strstr.c: Likewise.
11534         * string/memmem.c (FASTSEARCH): Define.
11535         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11536         Add support for FASTSEARCH.
11537         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11538         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11539         (FASTSEARCH): Define.
11540         * string/test-strcasestr.c: Rename __strnlen to strnlen.
11541         * string/test-strstr.c: Likewise.
11543 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
11545         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11546         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11548 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11549             H.J. Lu  <hongjiu.lu@intel.com>
11551         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11552         (__longjmp): Restore shadow stack pointer if shadow stack is
11553         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11554         isn't defined for __longjmp_cancel.
11555         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11556         (_setjmp): Save shadow stack pointer if shadow stack is enabled
11557         and SHADOW_STACK_POINTER_OFFSET is defined.
11558         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11559         (setjmp): Save shadow stack pointer if shadow stack is enabled
11560         and SHADOW_STACK_POINTER_OFFSET is defined.
11561         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11562         (__sigsetjmp): Save shadow stack pointer if shadow stack is
11563         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11564         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11565         <jmp_buf-ssp.h>.
11566         (____longjmp_chk): Restore shadow stack pointer if shadow stack
11567         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11568         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11569         Remove jmp_buf-ssp.sym.
11570         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11571         <jmp_buf-ssp.h>.
11572         (____longjmp_chk): Restore shadow stack pointer if shadow stack
11573         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11574         * sysdeps/x86/Makefile (gen-as-const-headers): Add
11575         jmp_buf-ssp.sym.
11576         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11577         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11578         (__longjmp): Restore shadow stack pointer if shadow stack is
11579         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11580         isn't defined for __longjmp_cancel.
11581         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11582         (__sigsetjmp): Save shadow stack pointer if shadow stack is
11583         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11585 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
11587         [BZ #22563]
11588         * nptl/pthread_create.c: Include <tls-setup.h>.
11589         (__pthread_create_2_1): Call tls_setup_tcbhead.
11590         * sysdeps/generic/tls-setup.h: New file.
11591         * sysdeps/x86/nptl/tls-setup.h: Likewise.
11592         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11593         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11594         Likewise.
11595         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11596         to feature_1.
11597         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11598         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11599         (X86_FEATURE_1_SHSTK): Likewise.
11600         (CET_ENABLED): Likewise.
11601         (IBT_ENABLED): Likewise.
11602         (SHSTK_ENABLED): Likewise.
11604 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
11606         [BZ #23208]
11607         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11608         (LOCALES): Likewise.
11609         * localedata/dsb_DE.UTF-8.in: New file.
11610         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11612 2018-07-12  Florian Weimer  <fweimer@redhat.com>
11614         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11615         __mprotect, not mprotect.
11617 2018-07-11  Florian Weimer  <fweimer@redhat.com>
11619         * io/Makefile (headers): Add bits/statx.h.
11621 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
11623         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11624         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11625         and headers.
11626         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11627         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11628         for utf8_gen.py
11630 2018-07-10  Florian Weimer  <fweimer@redhat.com>
11632         * io/Makefile (routines): Add statx.
11633         (tests-internal): Add tst-statx.
11634         * io/Versions (GLIBC_2.28): Export statx.
11635         * io/bits/statx.h: New file.
11636         * io/sys/stat.h [__USE_GNU]: Include it.
11637         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11638         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11639         Define.
11640         * io/statx.c: New file.
11641         * io/statx_generic.: Likewise.
11642         * io/tst-statx.: Likewise.
11643         * include/bits/statx.h: Likewise.
11644         * sysdeps/unix/sysv/linux/kernel-features.h
11645         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11646         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11647         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11648         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11649         Undefine.
11650         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11651         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11652         * sysdeps/unix/sysv/linux/statx.c: New file.
11653         * manual/filesys.texi: Note that statx is undocumented.
11654         * sysdeps/**/libc*.abilist: Update.
11656 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11658         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11659         a kernel issue which lead to test failure in some cases.
11661 2018-07-10  Florian Weimer  <fweimer@redhat.com>
11663         [BZ #23036]
11664         * posix/regexec.c (check_node_accept_bytes): When comparing
11665         weights, do not compare an extra byte after the end of the
11666         weights.
11668 2018-07-10  Florian Weimer  <fweimer@redhat.com>
11670         * libio/readline.c: Fix copyright year.
11671         * libio/tst-readline.c Likewise.
11672         * nss/tst-nss-files-hosts-getent.c: Likewise.
11674 2018-07-06  Florian Weimer  <fweimer@redhat.com>
11676         [BZ #18991]
11677         * nss/nss_files/files-XXX.c (internal_getent): Use
11678         __libc_readline_unlocked.  Seek back to the start of the line if
11679         parsing failes with ERANGE.
11680         (get_contents_ret, get_contents): Remove.
11681         * nss/tst-nss-files-hosts-getent.c: New file.
11682         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11683         (tst-nss-files-hosts-getent): Link with -ldl.
11685 2018-07-06  Florian Weimer  <fweimer@redhat.com>
11687         * include/stdio.h (__libc_readline_unlocked): Declare.
11688         (__ftello64, __fseeko64): Declare aliases.
11689         * libio/readline.c: New file.
11690         * libio/tst-readline.c: Likewise.
11691         (routines): Add readline.
11692         (tests-internal): Add tst-readlime.
11693         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11694         __libc_readline_unlocked.
11695         * libio/fseeko.c (__fseeko): Rename from fseeko.
11696         (fseeko): Add alias.
11697         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11698         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11699         (fseeko64): Add alias.
11700         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11701         * libio/ftello64.c (__ftello64): Rename from ftello64.
11702         (ftello64): Add alias.
11704 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11706         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11707         HWCAP_ATOMICS.
11709 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11711         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11712         Use dl_hwcap without masking.
11713         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11714         Remove HWCAP_CPUID.
11716 2018-07-06  Florian Weimer  <fweimer@redhat.com>
11718         * conform/conformtest.pl (checknamespace): Escape literal braces
11719         in regular expressions.
11721 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
11723         * sysdeps/x86/cpu-features.c (get_common_indeces):
11724         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11725         * sysdeps/x86/cpu-features.c (init_cpu_features):
11726         AVX_Fast_Unaligned_Load is disabled for Excavator core.
11728 2018-07-05  Florian Weimer  <fweimer@redhat.com>
11730         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11731         protector.
11732         (CFLAGS-elf-init.oS): Likewise.
11734 2018-07-05  Florian Weimer  <fweimer@redhat.com>
11735             Carlos O'Donell  <carlos@redhat.com>
11737         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11738         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
11739         with stack protector enabled because there is no risk of infinite
11740         recursion.
11742 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
11744         [BZ #19818]
11745         [BZ #23307]
11746         * libc-abis (ABSOLUTE): New ABI.
11747         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11748         * NEWS: Mention the new ABI.
11750 2018-07-05  Florian Weimer  <fweimer@redhat.com>
11752         [BZ # 17662]
11753         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11754         (RENAME_WHITEOUT): Define.
11755         [__USE_GNU] (renameat2): Declare.
11756         * stdio-common/Makefile (routines): Add renameat2.
11757         (tests): Add tst-renameat2.
11758         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11759         * stdio-common/renameat2.c: New file.
11760         * stdio-common/tst-renameat2.c: Likewise.
11761         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11762         * manual/filesys.texi (Temporary Files): Note that renameat2 is
11763         undocumented.
11764         * sysdeps/unix/sysv/linux/kernel-features.h
11765         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11766         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11767         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11768         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11769         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11770         * sysdeps/unix/sysv/linux/sh/kernel-features.h
11771         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11772         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11773         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11774         * include/stdio.h (__renameat): Add alias for renameat.
11775         * stdio-common/renameat.c (__renameat): Rename from renameat.
11776         Add hidden definition and alias.
11777         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11778         * sysdeps/mach/hurd/renameat.c: Likewise.
11779         * sysdeps/**/libc*.abilist: Add renameat2.
11781 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11783         * posix/bug-regex33.c: Fix build after regex sync.
11785 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
11787         [BZ #23164]
11788         * localedata/tst-langinfo-setlocale.c: New file.
11789         * localedata/tst-langinfo-setlocale-static.c: New file.
11790         * localedata/tst-langinfo-newlocale.c: New file.
11791         * localedata/tst-langinfo-newlocale-static.c: New file.
11792         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11793         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11794         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11795         (tests-static): Remove tst-langinfo-static. Add
11796         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11797         (tests-special): Remove $(objpfx)tst-langinfo.out,
11798         $(objpfx)tst-langinfo-static.out. Add
11799         $(objpfx)tst-langinfo-setlocale.out,
11800         $(objpfx)tst-langinfo-newlocale.out,
11801         $(objpfx)tst-langinfo-setlocale-static.out,
11802         $(objpfx)tst-langinfo-newlocale-static.out.
11803         ($(objpfx)tst-langinfo.out): Remove.
11804         ($(objpfx)tst-langinfo-static.out): Remove.
11805         ($(objpfx)tst-langinfo-newlocale.out): New target.
11806         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11807         (test-xfail-tst-langinfo-newlocale-static): Add.
11808         ($(objpfx)tst-langinfo-setlocale.out): New target.
11809         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11810         * localedata/tst-langinfo.c: Call test_locale.
11811         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11812         data.
11814 2018-07-04  Florian Weimer  <fweimer@redhat.com>
11816         testrun.sh: Implement --tool=strace, --tool=valgrind
11817         * Makefile (testrun-script): Define variable.
11818         (testrun.sh): Use variable.
11819         * manual/install.texi (Tools for Compilation): make 4.0 or later
11820         is required.
11821         * configure.ac: Check for make 4.0 or later.
11822         * INSTALL: Regenerate.
11823         * configure: Likewise.
11825 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11827         [BZ #23233]
11828         [BZ #21163]
11829         [BZ #18986]
11830         [BZ #13762]
11831         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11832         * posix/PCRE.tests: Remove invalid test.
11833         * posix/bug-regex28.c: Fix expected values for used syntax.
11834         * posix/bug-regex37.c: New file.
11835         * posix/bug-regex38.c: Likewise.
11836         * posix/regcomp.c: Sync with gnulib.
11837         * posix/regex.c: Likewise.
11838         * posix/regex.h: Likewise.
11839         * posix/regex_internal.c: Likewise.
11840         * posix/regex_internal.h: Likewise.
11841         * posix/regexec.c: Likewise.
11843 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
11845         [BZ #23308]
11846         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11847         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11848         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11849         * localedata/unicode-gen/PropList.txt: likewise.
11850         * localedata/unicode-gen/UnicodeData.txt: likewise.
11851         * localedata/charmaps/UTF-8: Regenerate.
11852         * localedata/locales/i18n_ctype: likewise.
11853         * localedata/locales/tr_TR: likewise.
11854         * localedata/locales/translit_circle: likewise.
11855         * localedata/locales/translit_cjk_compat: likewise.
11856         * localedata/locales/translit_combining: likewise.
11857         * localedata/locales/translit_compat: likewise.
11858         * localedata/locales/translit_font: likewise.
11859         * localedata/locales/translit_fraction: likewise.
11861 2018-07-03  Florian Weimer  <fweimer@redhat.com>
11863         [BZ #23363]
11864         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11865         * stdio-common/tst-printf.sh: Adjust expected output.
11866         * LICENSES: Update.
11868 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11870         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11871         symbol.
11873 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11875         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11876         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11877         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11878         * stdio-common/tst-printfsz-islongdouble.c: New file.
11879         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11880         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11881         [subdir == stdio-common] (routines): Add ieee128-printf_size.
11882         [subdir == stdio-common] (tests-internal): Add
11883         test-printf-size-ieee128, and test-printf-size-ibm128.
11884         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11885         (CFLAGS-test-printf-size-ibm128.c): New variables.
11886         [subdir == stdio-common] (tests-special): Add
11887         $(objpfx)test-printf-size-ieee128.out and
11888         $(objpfx)test-printf-size-ibm128.out.
11889         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11890         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11891         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11892         __printf_sizeieee128.
11893         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11894         New file.
11895         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11896         Likewise.
11897         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11898         Likewise.
11900 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11902         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11903         (exp2f_inline): Likewise.
11904         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11905         (__math_uflowf): Likewise.
11906         (__math_may_uflowf): Likewise.
11907         (__math_divzerof): Likewise.
11908         (__math_invalidf): Likewise.
11909         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11910         (__math_oflowf): Likewise.
11911         (__math_uflowf): Likewise.
11912         (__math_may_uflowf): Likewise.
11913         (__math_divzerof): Likewise.
11914         (__math_invalidf): Likewise.
11916 2018-06-29  DJ Delorie  <dj@redhat.com>
11917             Carlos O'Donell  <carlos@redhat.com>
11919         [BZ #23329]
11920         * include/libc-symbols.h: Comment the freeres framework.
11921         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
11922         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11923         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11924         * dlfcn/dlerror.c: Include libc-symbols.h
11925         (__dlerror_main_freeres): New function.
11926         * dlfcn/dlfreeres.c: New file.
11927         * dlfcn/sdlfreeres.c: New file.
11928         * include/dlfcn.h: Declare __dlerror_main_freeres.
11929         * malloc/set-freeres.c: Declare __libdl_freeres, and
11930         __libpthread_freeres.
11931         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11932         the releavant libraries are loaded.
11933         * malloc/thread-freeres.c: Add comments.
11934         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11935         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11936         * nptl/allocatestack.c (__nptl_free_stacks): New function.
11937         (__free_stacks): Rename to...
11938         (free_stacks): ...this. Mark static.
11939         (queue_stack): Call free_stacks.
11940         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11941         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11942         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11943         ptr_freeres element from struct.
11944         (pthread_functions): Remove .ptr_freeres from struct initializer.
11945         [SHARED] (nptl_freeres): Remove.
11946         * nptl/nptlfreeres.c: New file.
11947         * nptl/pthreadP.h
11948         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11949         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
11950         attribute_hidden.
11951         (__free_stacks): Rename to...
11952         (__nptl_stacks_freeres): ...this.
11953         (__shm_directory_freeres): Declare.
11954         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11955         (__nptl_unwind_freeres): ...this.
11956         * resolv/res-close.c: Add comment.
11957         * resolv/resolv_conf.c: Include libc-symbols.h.
11958         * string/strerror_l.c: Include libc-symbols.h.
11959         * sunrpc/rpc_thread.c: Include libc-symbols.h.
11960         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11961         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11962         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11964 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11966         * stdlib/tst-strfmon_l.c: Add tests for long double.
11968 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
11970         [BZ #23208]
11971         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11972         * localedata/locales/dsb_DE: New file.
11974 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
11976         [BZ #23140]
11977         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11978         genitive case).
11979         (alt_mon): New entry, import from CLDR (nominative case).
11981 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
11983         [BZ #22996]
11984         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11986 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11988         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11989         Use vector registers.
11991         * sysdeps/aarch64/multiarch/memmove_falkor.S
11992         (__memcpy_falkor): Use vector registers.
11994 2018-06-29  Martin Sebor  <msebor@redhat.com>
11996         * manual/stdio.texi (Customizing Printf): Mention interaction
11997         with GCC built-ins.
11999 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
12001         [BZ #23307]
12002         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12003         `st_value' is 0 if `st_shndx' is SHN_ABS.
12004         * elf/tst-absolute-zero.c: New file.
12005         * elf/tst-absolute-zero-lib.c: New file.
12006         * elf/tst-absolute-zero-lib.lds: New file.
12007         * elf/Makefile (tests): Add `tst-absolute-zero'.
12008         (modules-names): Add `tst-absolute-zero-lib'.
12009         (LDLIBS-tst-absolute-zero-lib.so): New variable.
12010         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12011         ($(objpfx)tst-absolute-zero: New dependency.
12013 2018-06-29  Zack Weinberg  <zackw@panix.com>
12015         * configure.ac: New command-line option --disable-crypt.
12016         Force --disable-nss-crypt when --disable-crypt is given, with a
12017         warning if it was explicitly enabled.
12018         * configure: Regenerate.
12019         * config.make.in: New boolean substitution variable $(build-crypt).
12020         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12021         when $(build-crypt).
12022         * manual/install.texi: Document --disable-crypt.
12023         * INSTALL: Regenerate.
12025         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12026         which is never set.
12027         * conform/Makefile: Only include libcrypt.a in
12028         linknamespace-libs-xsi and linknamespace-libs-XPG4
12029         when $(build-crypt).
12030         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12031         USE_CRYPT to 1 when $(build-crypt).
12032         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12033         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12034         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12036 2018-06-29  Zack Weinberg  <zackw@panix.com>
12038         * crypt/crypt.h, posix/unistd.h: Update comments and
12039         prototypes for crypt and crypt_r.
12041         * manual/crypt.texi (Cryptographic Functions): New initial
12042         exposition.
12043         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
12044         (Unpredictable Bytes): Improve initial exposition.  Clarify error
12045         behavior of getentropy and getrandom.
12046         * manual/examples/genpass.c: Generate a salt using getentropy
12047         instead of the current time. Use hash $5$ (SHA-2-256).
12048         * manual/examples/testpass.c: Demonstrate validation against
12049         hashes generated with three different one-way functions.
12051         * manual/intro.texi: crypt.texi does not need an overview
12052         anymore.
12054         * manual/nss.texi, manual/memory.texi, manual/socket.texi
12055         * manual/terminal.texi: Consistently refer to "passphrases"
12056         * instead of "passwords", and to the "user database" instead
12057         * of the "password database".
12058         * manual/users.texi: Similarly.  Add notes about how actual
12059         passphrase hashes are now stored in the shadow database.
12060         Remove 20-year-old junk todo note.
12062 2018-06-29  Zack Weinberg  <zackw@panix.com>
12064         * manual/crypt.texi: Use a normal top-level @node declaration.
12065         Move most of the introductory text to the 'crypt' section.
12066         Move the example programs below the @deftypefun for 'crypt_r'.
12067         Move the 'getpass' section...
12068         * manual/terminal.texi: ...here.
12070 2018-06-29  Zack Weinberg  <zackw@panix.com>
12071             Florian Weimer <fweimer@redhat.com>
12073         * posix/unistd.h: Do not declare encrypt.
12074         (_XOPEN_CRYPT): Remove macro definition.
12075         (crypt): Declare only for _USE_MISC.
12076         * stdlib/stdlib.h: Do not declare setkey.
12077         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12078         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12080         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12081         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12082         into compat symbols.  Don't define initial_perm if it's not
12083         going to be used.
12084         * crypt/cert.c: Link explicitly with the expected versions for
12085         setkey and encrypt.  If they are not available at all, mark
12086         the test as unsupported.
12088         * sunrpc/des_crypt.c: Unconditionally block linkage with
12089         cbc_crypt and ecb_crypt for new binaries.
12090         * sunrpc/des_soft.c: Unconditionally block linkage with
12091         des_setparity for new binaries.
12093         * manual/crypt.texi: Remove the entire "DES Encryption"
12094         section.  Also remove the paragraph talking about FIPS 140-2
12095         from the introduction.
12096         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
12097         of libgcrypt for "real" encryption, not DES.
12098         * manual/conf.texi (Constants for Sysconf): Mention that
12099         _XOPEN_CRYPT is no longer impelemented.
12101         * conform/data/unistd.h-data: Remove crypt function declaration.
12103 2018-06-29  Florian Weimer  <fweimer@redhat.com>
12105         [BZ #23351]
12106         * malloc/hooks.c: Update comments on restoring of dumped heaps.
12107         (disallow_malloc_check): Remove variable.
12108         (__malloc_check_init): Adjust.
12109         (malloc_set_state): Update comment.
12110         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12111         declarations.
12113 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12115         [BZ #23140]
12116         * localedata/locales/ast_ES (mon): Rename to...
12117         (alt_mon): This.
12118         (mon): Import from CLDR (genitive case).
12120 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
12121             Jakub Sitnicki  <jkbs@redhat.com>
12123         [BZ #21812]
12124         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12125         on NLM_F_DUMP_INTR.
12127 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12129         * manual/llio.texi: Remove spurious space.
12131 2018-06-28  Florian Weimer  <fweimer@redhat.com>
12133         [BZ #23349]
12134         * time/bits/types/struct_timespec.h: Change header inclusion guard to
12135         _STRUCT_TIMESPEC.
12137 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12139         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12140         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12141         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12142         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12143         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12144         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12145         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12147 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
12149         [BZ #23266]
12150         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12151         Copy and null-terminate entries that are not terminated, in
12152         addition to empty ones.
12154 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12156         [BZ #18023]
12157         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12158         (extend_alloca_account): Remove.
12159         * manual/stdio.texi (Variable Arguments Output): Update comment.
12161 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
12163         * nptl/sockperf.c: Remove file.
12165 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12167         [BZ #18023]
12168         * elf/dl-deps.c (_dl_map_object_deps): Use struct
12169         scratch_buffer instead of extend_alloca.
12171 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12173         [BZ #18023]
12174         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12175         scratch_buffer instead of extend_alloca.  Update comments.
12177 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12179         [BZ #18023]
12180         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12181         instead of extend_alloca.
12183 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
12185         [BZ #13888]
12186         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12187         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12188         /tmp.
12189         * scripts/test-installation.pl: Put temporary files in build
12190         directory, not /tmp.
12191         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12192         (CFLAGS-bug4.c): Likewise.
12193         (CFLAGS-bug5.c): Likewise.
12194         (CFLAGS-test-fseek.c): Likewise.
12195         (CFLAGS-test-popen.c): Likewise.
12196         (CFLAGS-test_rdwr.c): Likewise.
12197         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12198         /tmp.
12199         * stdio-common/bug4.c (main): Likewise.
12200         * stdio-common/bug5.c (main): Likewise.
12201         * stdio-common/test-fseek.c (TESTFILE): Likewise.
12202         * stdio-common/test-popen.c (do_test): Likewise.
12203         * stdio-common/test_rdwr.c (main): Likewise.
12205 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
12207         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12208         (sem_open): Set sem.newsem.pad to zero for valgrind.
12210 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12212         [BZ #20251]
12213         * NEWS: Mention fcntl64 addition.
12214         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12215         * login/utmp_file.c: Likewise.
12216         * sysdeps/posix/fdopendir.c: Likewise.
12217         * sysdeps/posix/opendir.c: Likewise.
12218         * sysdeps/unix/pt-fcntl.c: Likewise.
12219         * include/fcntl.h (__libc_fcntl64, __fcntl64,
12220         __fcntl64_nocancel_adjusted): New prototype.
12221         (__fcntl_nocancel_adjusted): Remove prototype.
12222         * io/Makefile (routines): Add fcntl64.
12223         (CFLAGS-fcntl64.c): New rule.
12224         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12225         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12226         * io/fcntl.h (fcntl64): Add prototype and redirect if
12227         __USE_FILE_OFFSET64 is defined.
12228         * io/fcntl64.c: New file.
12229         * manual/llio.text: Add a note for which commands fcntl acts a
12230         cancellation point.
12231         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12232         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12233         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12234         New symbols.
12235         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12236         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12237         non-LFS case.
12238         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12239         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12240         to __fcntl64_nocancel.
12241         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12242         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12243         to __fcntl64_nocancel.
12244         * sysdeps/generic/not-cancel.h: Likewise.
12245         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12246         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12247         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12248         (fcntl64): New symbol.
12249         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12250         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12251         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12254         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12255         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12256         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12257         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12258         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12259         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12260         fcntl64): Likewise.
12261         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12262         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12263         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12264         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12265         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12266         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12267         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12268         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12269         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12271         Likewise.
12272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12273         Likewise.
12274         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12275         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12276         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12278 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12280         Run thread shutdown functions in an explicit order.
12281         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12282         definition.
12283         (__libc_thread_freeres): Call thread shutdown functions
12284         explicitly.
12285         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12286         * include/string.h (__strerror_thread_freeres): Declare.
12287         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12288         arena_thread_freeres.  No longer static.  Remove thread shutdown
12289         hook registration.
12290         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12291         Declare.
12292         * resolv/res-close.c (__res_thread_freeres): Renamed from
12293         res_thread_freeres.  No longer static.  Remove thread shutdown
12294         hook registration.
12295         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12296         * resolv/resolv_conf.c (freeres): Remove incorrect section
12297         attribute and use libc_freeres_fn.
12298         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12299         strerror_thread_freeres.  No longer static.  Remove thread
12300         shutdown hook registration.
12301         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12302         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12303         shutdown hook registration.
12304         * Makerules (shlib.lds): Do not provide section boundary symbols
12305         for __libc_thread_subfreeres.
12306         * manual/memory.texi (Basic Allocation): Update comment.
12308 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12310         Remove always-defined _RPC_THREAD_SAFE_ macro.
12311         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12312         Do not define _RPC_THREAD_SAFE_.
12313         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12314         conditional.
12315         * sunrpc/clnt_perr.c: Likewise.
12316         * sunrpc/clnt_raw.c: Likewise.
12317         * sunrpc/clnt_simp.c: Likewise.
12318         * sunrpc/key_call.c: Likewise.
12319         * sunrpc/rpc_common.c: Likewise.
12320         * sunrpc/rpc_main.c: Likewise.
12321         * sunrpc/rpc_thread.c: Likewise.
12322         * sunrpc/svc.c: Likewise.
12323         * sunrpc/svc_raw.c: Likewise.
12324         * sunrpc/svc_simple.c: Likewise.
12325         * sumrpc/svcauth_des.c: Likewise.
12327 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12329         * libio/Makefile (tests-internal): Add tst-vtables,
12330         tst-vtables-interposed.
12331         * libio/tst-vtables.c: New file.
12332         * libio/tst-vtables-common.c: Likewise.
12333         * libio/tst-vtables-interposed.c: Likewise.
12335 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12337         * support/support_test_main.c (support_test_main): Only call
12338         setvbuf if not disables.
12339         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12340         * support/test-driver.h (struct test_config): Add no_setvbuf member.
12342 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12344         [BZ #23313]
12345         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12347 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12349         [BZ #18023]
12350         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12351         Use struct scratch_buffer instead of extend_alloca.
12353 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12355         [BZ #18023]
12356         * nss/getent.c (initgroups_keys): Use dynarray instead of
12357         extend_alloca.
12359 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12361         [BZ #18023]
12362         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12363         Use struct scratch_buffer instead of extend_alloca.
12365 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12367         [BZ #18023]
12368         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12369         back to malloc directly, without stack allocations.
12371 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12373         [BZ #18023]
12374         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12375         of extend_alloca.
12377 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12379         [BZ #18023]
12380         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12381         of extend_alloca.
12382         * nscd/hstcache.c (addhstbyX): Likewise.
12383         * nscd/pwdcache.c (addpwbyX): Likewise.
12384         * nscd/servicescache.c (addservbyX): Likewise.
12386 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12388         [BZ #18023]
12389         * nscd/connections.c (read_cmdline): New function.
12390         (restart): Use it.  Update comment.
12392 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
12394         [BZ #23140]
12395         * localedata/locales/csb_PL (mon): Rename to...
12396         (alt_mon): This.
12397         (abmon): Rename to...
12398         (ab_alt_mon): This.
12399         (mon): Add with proper genitive forms, copy from Wikipedia.
12400         (abmon): Likewise.
12402 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
12404         [BZ #19485]
12405         * localedata/locales/csb_PL (mon): Fix typos:
12406         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12407         (yesstr): Add, value is "jo".
12408         (nostr): Add, value is "nié".
12410 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12412         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12413         all log1p and significand functions on m680x0.
12414         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12415         of s_significand.c..
12416         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12417         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12418         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12419         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12420         s_log1p.c and include it..
12422 2018-06-21  Vincent Chen  <vincentc@andestech.com>
12424         * elf/elf.h (R_NDS32_NONE): New define.
12425         (R_NDS32_32_RELA): Likewise.
12426         (R_NDS32_COPY): Likewise.
12427         (R_NDS32_GLOB_DAT): Likewise.
12428         (R_NDS32_JUMP_SLOT): Likewise.
12429         (R_NDS32_RELATIVE): Likewise.
12430         (R_NDS32_TLS_TPOFF): Likewise.
12431         (R_NDS32_TLS_DESC): Likewise.
12433 2018-06-21  Mark Wielaard  <mark@klomp.org>
12435         * elf/elf.h (R_BPF_MAP_FD): Removed.
12436         (R_BPF_64_64, R_BPF_64_32): New.
12438 2018-06-21  Florian Weimer  <fweimer@redhat.com>
12440         [BZ #23253]
12441         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12442         Renamed from libc_feholdsetround_ctx.
12443         (default_libc_feresetround_ctx): Renamed from
12444         libc_feresetround_ctx.
12445         (default_libc_feholdsetround_noex_ctx): Renamed from
12446         libc_feholdsetround_noex_ctx.
12447         (default_libc_feresetround_noex_ctx): Renamed from
12448         libc_feresetround_noex_ctx.
12449         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12450         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12451         forwardning to the old implementations under the new names.
12452         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12453         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12454         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12455         (libc_feresetround_ctx): Forward to default implements for i386
12456         and MATH_SET_BOTH_ROUNDING_MODES.
12457         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12458         Add -DMATH_SET_BOTH_ROUNDING_MODES.
12460 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
12462         * string/tst-cmp.c: Include <libc-diag.h>.
12463         (strncmp_max): Disable -Wstringop-overflow= around call to
12464         strncmp.
12465         (strncasecmp_max): Disable -Wstringop-overflow= around call to
12466         strncasecmp.
12468         * string/bug-strpbrk1.c: Include <libc-diag.h>.
12469         (main): Disable -Wunused-value around call to strpbrk.
12470         * string/bug-strspn1.c: Include <libc-diag.h>.
12471         (main): Disable -Wunused-value around call to strspn.
12473 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12474             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12476         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12477         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12479 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12481         * math/Makefile (libm-calls): Move s_significandF to...
12482         (gen-libm-calls): ... here.
12483         * math/s_significand_template.c: New file.
12484         * math/s_significand.c: Removed.
12485         * math/s_significandf.c: Removed.
12486         * math/s_significandl.c: Removed.
12487         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12488         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12490         * math/e_exp2_template.c (declare_mgen_finite_alias,
12491         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12492         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12493         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12495 2018-06-20  Florian Weimer  <fweimer@redhat.com>
12497         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12499 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
12501         [BZ #23280]
12502         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12503         floating-point number to strtod functions rather than possibly
12504         negating result of those functions.
12505         * stdio-common/tst-scanf-round.c: New file.
12506         * stdio-common/Makefile (tests): Add tst-scanf-round.
12507         ($(objpfx)tst-scanf-round): Depend on $(libm).
12509 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12511         * sysdeps/mach/hurd/localplt.data: Move to...
12512         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12513         R_386_GLOB_DAT like on Linux i386.
12515 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
12517         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12518         (SHM_STAT_ANY): New macro.
12519         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12520         (SHM_STAT_ANY): Likewise.
12521         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12522         (SHM_STAT_ANY): Likewise.
12523         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12524         (SHM_STAT_ANY): Likewise.
12525         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12526         (SHM_STAT_ANY): Likewise.
12527         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12528         (SHM_STAT_ANY): Likewise.
12529         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12530         (SHM_STAT_ANY): Likewise.
12531         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12532         (SHM_STAT_ANY): Likewise.
12533         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12534         (SHM_STAT_ANY): Likewise.
12535         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12536         (SHM_STAT_ANY): Likewise.
12537         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12538         (SHM_STAT_ANY): Likewise.
12539         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12540         (SHM_STAT_ANY): Likewise.
12542         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12543         (SEM_STAT_ANY): New macro.
12544         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12545         (SEM_STAT_ANY): Likewise.
12546         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12547         (SEM_STAT_ANY): Likewise.
12548         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12549         (SEM_STAT_ANY): Likewise.
12550         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12551         (SEM_STAT_ANY): Likewise.
12552         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12553         (SEM_STAT_ANY): Likewise.
12554         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12555         (SEM_STAT_ANY): Likewise.
12556         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12557         (SEM_STAT_ANY): Likewise.
12558         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12559         (SEM_STAT_ANY): Likewise.
12560         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12561         (SEM_STAT_ANY): Likewise.
12563         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12564         (MSG_STAT_ANY): New macro.
12565         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12566         (MSG_STAT_ANY): Likewise.
12567         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12568         (MSG_STAT_ANY): Likewise.
12569         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12570         (MSG_STAT_ANY): Likewise.
12571         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12572         (MSG_STAT_ANY): Likewise.
12573         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12574         (MSG_STAT_ANY): Likewise.
12575         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12576         (MSG_STAT_ANY): Likewise.
12577         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12578         (MSG_STAT_ANY): Likewise.
12579         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12580         (MSG_STAT_ANY): Likewise.
12581         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12582         (MSG_STAT_ANY): Likewise.
12584         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12585         (MAP_TYPE): Change value to 0x2b.
12587 2018-06-18  Florian Weimer  <fweimer@redhat.com>
12589         [BZ #15722]
12590         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12591         socket with SOCK_CLOEXEC.
12593 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
12595         [BZ #23303]
12596         * sysdeps/powerpc/powerpc64/le/Makefile
12597         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12598         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12599         (gnulib-tests): Also add $(f128-loader-link) for
12600         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12602 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12604         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12605         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12606         of sendfile.
12607         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12608         (sendfile64): New strong alias.
12609         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12610         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12611         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12612         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12613         attribute.
12614         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12615         ___pthread_get_cleanup_stack.
12616         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12617         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12618         * mach/shortcut.awk: Make syscall stubs include
12619         <mach-shortcuts-hidden.h> and add hidden definition.
12620         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12621         (__mach_msg): Add hidden prototype.
12622         * mach/msg.c: Include <mach.h>.
12623         (__mach_msg): Add hidden definition.
12624         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12625         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12626         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12627         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12628         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12629         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12630         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12631         prototype and definition.
12632         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12633         hidden target for _hurd_self_sigstate.
12635 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
12637         [BZ #23007]
12638         * stdlib/tst-strtod-nan-sign-main.c: New file.
12639         * stdlib/tst-strtod-nan-sign.c: Likewise.
12640         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12641         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12642         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12643         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12644         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12646 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
12648         [BZ #23007]
12649         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12650         appropriate sign.
12652 2018-06-14  Florian Weimer  <fweimer@redhat.com>
12654         [BZ #23290]
12655         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12656         that the result stays within the ISO-8859-1 range.
12657         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12658         characters are defined in IBM273.
12660 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12662         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12663         __mach_task_self): Remove attribute_hidden.
12665 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
12667         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12668         ignore -Wrestrict for one test.
12670 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
12671             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12673         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12675 2018-06-14  Florian Weimer  <fweimer@redhat.com>
12677         * scripts/update-abilist.sh: Accept empty list of files to patch.
12679 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12681         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12682         test-xfail-check-abi-libmachuser): Add.
12683         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12684         __libc_read and __libc_write to __read and __write.
12685         * sysdeps/hurd/include/hurd/port.h: New file.
12686         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12687         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12688         __thread_switch, __evc_wait): Move declarations to...
12689         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12690         attribute_hidden.
12691         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12692         use PLT to call _hurd_self_sigstate.
12694 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
12696         [BZ #23279]
12697         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12698         MAX_EXP as overflowing.
12699         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12700         overflow flag.
12701         (round_str): Output also whether result overflows in each rounding
12702         mode.
12703         * stdlib/tst-strtod-round-data: Add more tests.
12704         * stdlib/tst-strtod-round-data.h: Regenerated.
12705         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12706         (TEST): Handle extra arguments for overflow flags.
12707         (struct test_overflow): New type.
12708         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12709         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
12710         (test_in_one_mode): Take argument with overflow information.
12711         (do_test): Update calls to test_in_one_mode.
12713 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
12715         * elf/dl-load (_dl_dst_substitute): Correct comment.
12716         (_dl_dst_count): Likewise.
12718         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12719         lll_futex_timed_wait.
12721 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
12723         [BZ #23277]
12724         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12725         attribute.
12726         * math/test-nan-const.c: New file.
12727         * math/Makefile (tests): Add test-nan-const.
12728         (CFLAGS-test-nan-const.c): New variable.
12730 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12732         * benchtests/scripts/compare_strings.py (process_results): Add
12733         funcs argument.  Compare only functions which are selected.
12734         (main): Check if base function is among selected functions.
12735         Pass selected functions to process_results.
12736         (__main__): Add -f/--functions argument.
12738 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
12739             Hongbo Zhang  <hongbo.zhang@linaro.org>
12741         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12742         __memcpy_falkor for phecda core.
12743         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12744         __memmove_falkor for phecda core.
12745         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12746         __memset_falkor for phecda core.
12747         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12748         for phecda core.
12749         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12750         macro to identify phecda core.
12752 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
12753             Andreas Schwab  <schwab@suse.de>
12754             Dmitry V. Levin  <ldv@altlinux.org>
12755             Florian Weimer  <fweimer@redhat.com>
12757         [BZ #23102]
12758         [BZ #21942]
12759         [BZ #18018]
12760         [BZ #23259]
12761         CVE-2011-0536
12762         * elf/dl-dst.h: Remove DL_DST_COUNT.
12763         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12764         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12765         (is_dst): Comment.  Support ELF gABI.
12766         (_dl_dst_count): Comment.  Simplify and count DSTs.
12767         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
12768         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12769         locals.
12771 2018-06-12  Zack Weinberg  <zackw@panix.com>
12773         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12774         * sysdeps/unix/sysv/linux/dl-sysdep.c
12775         Include not-cancel.h.  Use __close_nocancel instead of __close,
12776         __open64_nocancel instead of __open, __read_nocancel instead of
12777         __libc_read, and __write_nocancel instead of __libc_write.
12779         * csu/check_fds.c (check_one_fd)
12780         * sysdeps/posix/fdopendir.c (__fdopendir)
12781         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12782         instead of __fcntl and/or __libc_fcntl.
12784         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12785         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12786         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12787         Use __open64_nocancel instead of __open_nocancel.
12789         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12790         hidden_proto declarations to the end and issue them if either
12791         IS_IN(libc) or IS_IN(rtld).
12792         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12793         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12794         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12795         read_nocancel, waitpid_nocancel, write_nocancel.
12797         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12798         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12799         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12801         * nptl/pt-fcntl.c: New file.
12802         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12803         (libpthread-routines): Add pt-fcntl.
12804         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12805         (__libc_fcntl): Remove attribute_hidden.
12806         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12807         __fcntl_nocancel_adjusted, not fcntl_common.
12808         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12809         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12810         to fcntl_nocancel.c.
12811         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12814         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12816         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12817         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12818         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12819         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12820         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12821         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12822         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12823         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12824         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12825         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12826         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12827         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12828         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12829         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12830         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12831         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12832         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12833         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12834         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12835         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12837         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12838         libpthread-routines.
12839         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12840         defines nothing.
12842         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12843         __libc_read, and __write instead of __libc_write.  Define
12844         __open64 in addition to __open.
12846 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12848         [BZ #23250]
12849         [BZ #10686]
12850         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12851         to _private_tm[3] and add __glibc_reserved2.
12852         Add _Static_assert of offset of __private_ss == 0x30.
12853         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12854         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12856 2018-06-12  Florian Weimer  <fweimer@redhat.com>
12858         x86: Make strncmp usable from rtld.
12859         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12860         __strncmp_ia32 if in libc (and not in rtld).
12861         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12862         strncmp if not in libc (and not to __strncmp_sse2).
12864 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
12866         [BZ #23140]
12867         * localedata/locales/gd_GB (mon): Rename to...
12868         (alt_mon): This.
12869         (mon): Import from CLDR (genitive case).
12870         * localedata/locales/hsb_DE (mon): Rename to...
12871         (alt_mon): This.
12872         (mon): Import from CLDR (genitive case).
12873         * localedata/locales/wa_BE (mon): Rename to...
12874         (alt_mon): This.
12875         (mon): Add, fill with the proper genitive forms, but CLDR data
12876         is incomplete; completed according to the comments in this file.
12877         (d_t_fmt): Do not use "di" before the month name, no longer needed.
12879         * localedata/locales/wa_BE (country_name): Reword
12880         "Beljike" -> "Beldjike".
12882 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
12884         [BZ #23272]
12885         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12886         cases of non-finite arguments.
12887         * math/libm-test-fma.inc (fma_test_data): Add more tests.
12889 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
12891         [BZ #23174]
12892         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12894 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12896         [BZ #23264]
12897         * include/unistd.h (__execvpex): New prototype.
12898         * posix/Makefile (tests): Add tst-spawn4.
12899         (tests-internal): Add tst-spawn4-compat.
12900         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12901         * posix/tst-spawn4-compat.c: New file.
12902         * posix/tst-spawn4.c: Likewise.
12903         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12904         binaries as shell scripts.
12905         * sysdeps/posix/spawni.c (__spawni): Likewise.
12907 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
12909         [BZ #23145]
12910         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12911         ($(all-built-dso:=.dynsym): New target.
12912         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12913         ($(objpfx)check-initfini.out): New target.
12914         (generated): Add check-initfini.out.
12915         * scripts/check-initfini.awk: New file.
12916         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12917         (_fini): Likewise.
12918         * sysdeps/alpha/crti.S (_init): Mark as hidden.
12919         (_fini): Likewise.
12920         * sysdeps/arm/crti.S (_init): Mark as hidden.
12921         (_fini): Likewise.
12922         * sysdeps/hppa/crti.S (_init): Mark as hidden.
12923         (_fini): Likewise.
12924         * sysdeps/i386/crti.S (_init): Mark as hidden.
12925         (_fini): Likewise.
12926         * sysdeps/ia64/crti.S (_init): Mark as hidden.
12927         (_fini): Likewise.
12928         * sysdeps/m68k/crti.S (_init): Mark as hidden.
12929         (_fini): Likewise.
12930         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12931         (_fini): Likewise.
12932         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12933         (_fini): Likewise.
12934         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12935         (_fini): Likewise.
12936         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12937         (_fini): Likewise.
12938         * sysdeps/nios2/crti.S (_init): Mark as hidden.
12939         (_fini): Likewise.
12940         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12941         (_fini): Likewise.
12942         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12943         (_fini): Likewise.
12944         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12945         (_fini): Likewise.
12946         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12947         (_fini): Likewise.
12948         * sysdeps/sh/crti.S (_init): Mark as hidden.
12949         (_fini): Likewise.
12950         * sysdeps/sparc/crti.S (_init): Mark as hidden.
12951         (_fini): Likewise.
12952         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12953         (_fini): Likewise.
12955 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12957         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12958         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12959         and TF redirection to KFtype and KF only when the default
12960         long double type is not the IEEE 128-bit floating point type.
12962 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
12964         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12965         macro.
12966         (HWCAP_USCAT): Likewise.
12967         (HWCAP_ILRCPC): Likewise.
12968         (HWCAP_FLAGM): Likewise.
12969         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12970         Increase to 28.
12971         (_dl_aarch64_cap_flags): Add new flag names.
12973         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12974         (MAP_FIXED_NOREPLACE): New macro.
12975         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12976         (MAP_FIXED_NOREPLACE): Likewise.
12977         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12978         (MAP_FIXED_NOREPLACE): Likewise.
12979         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12980         (MAP_FIXED_NOREPLACE): Likewise.
12981         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12982         (MAP_FIXED_NOREPLACE): Likewise.
12983         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12984         (MAP_FIXED_NOREPLACE): Likewise.
12985         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12986         (MAP_FIXED_NOREPLACE): Likewise.
12987         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12988         (MAP_FIXED_NOREPLACE): Likewise.
12989         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12990         (MAP_FIXED_NOREPLACE): Likewise.
12991         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12992         (MAP_FIXED_NOREPLACE): Likewise.
12993         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12994         (MAP_FIXED_NOREPLACE): Likewise.
12995         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12996         (MAP_FIXED_NOREPLACE): Likewise.
12997         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12998         (MAP_FIXED_NOREPLACE): Likewise.
12999         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13000         (MAP_FIXED_NOREPLACE): Likewise.
13001         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13002         (MAP_FIXED_NOREPLACE): Likewise.
13004         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13005         version to 4.17.
13007 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
13009         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13010         version to 4.17
13012 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13014         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13015         int.
13016         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13018 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13020         * benchtests/scripts/compare_string.py: (process_results) Catch
13021         exception in non-existent base_func and catch exception in
13022         non-existent attribute.
13023         (parse_file) Catch exception if input file does not exist.
13025 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13027         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13028         options to avoid diff calculation and omit header, respectively.
13029         (main): process --no-diff and --no-header
13031 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13032             H.J. Lu  <hongjiu.lu@intel.com>
13034         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13035         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13036         wcsncmp-sse2.
13037         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13038         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13039         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13040         and __wcsncmp_sse2.
13041         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13042         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13043         AVX unaligned load is fast and vzeroupper is preferred.
13044         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13045         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13046         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13047         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13048         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13049         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13050         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13051         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13052         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13053         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13054         is undefined.
13056 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13058         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13059         configuring with --disable-multi-arch, building with
13060         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13061         Haswell-era CPU.
13063 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13065         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13066         results from building with “-march=x86-64 -mtune=generic
13067         -mfpmath=sse” and running on a Haswell-era CPU.
13069 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
13071         [BZ #18473]
13072         * soft-fp/sqrttf2.c: Remove file.
13073         * soft-fp/sqrtdf2.c: Move to ....
13074         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
13075         <shlib-compat.h>.
13076         (__sqrtdf2): Make conditional on
13077         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13078         symbol.
13079         * soft-fp/sqrtsf2.c: Move to ....
13080         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
13081         <shlib-compat.h>.
13082         (__sqrtsf2): Make conditional on
13083         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13084         symbol.
13085         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13086         (gcc-double-routines): Remove sqrtdf2.
13087         (gcc-quad-routines): Remove sqrttf2.
13088         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13089         Do not filter out sqrtsf2 and sqrtdf2.
13090         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13091         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13093 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13095         * sysdeps/generic/libcidn.abilist: Remove file.
13097 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13099         [BZ #23236]
13100         * libio/strfile.h (struct _IO_str_fields): Rename members to
13101         discourage their use and add comment.
13102         (_IO_STR_DYNAMIC): Remove unused macro.
13103         * libio/strops.c (_IO_str_init_static_internal): Do not use
13104         callback pointers.  Call malloc and free.
13105         (_IO_str_overflow): Do not use callback pointers.  Call malloc
13106         and free.
13107         (enlarge_userbuf): Likewise.
13108         (_IO_str_finish): Call free.
13109         * libio/wstrops.c (_IO_wstr_init_static): Initialize
13110         _allocate_buffer_unused.
13111         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
13112         and free.
13113         (enlarge_userbuf): Likewise.
13114         (_IO_wstr_finish): Call free.
13115         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13116         _allocate_buffer_unused, _free_buffer_unused.
13117         * libio/memstream.c (__open_memstream): Likewise.
13118         * libio/vasprintf.c (_IO_vasprintf): Likewise.
13119         * libio/wmemstream.c (open_wmemstream): Likewise.
13121 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
13123         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13124         AMD Ryzen 7 1800X.
13126 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13128         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13129         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13130         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13131         New file.
13132         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13133         Likewise.
13134         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13136 2018-05-29  Florian Weimer  <fweimer@redhat.com>
13138         * support/Makefile (libsupport-routines): Add
13139         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13140         xpthread_barrierattr_setpshared.
13141         * support/xpthread_barrierattr_destroy.c: New file.
13142         * support/xpthread_barrierattr_init.c: Likewise.
13143         * support/xpthread_barrierattr_setpshared.c: Likewise.
13145 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13147         [BZ #23206]
13148         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13149         _r_debug and update DT_DEBUG for debugger.
13151 2018-05-29  Florian Weimer  <fweimer@redhat.com>
13153         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13154         (tst-strtod5i.out): Likewise.
13156 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
13158         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13159         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13160         (sparc64-quad-routines): New variable.  Moved from ....
13161         [$(subdir) = soft-fp] (sysdep_routines): Add
13162         $(sparc64-quad-routines).  Moved from ....
13163         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
13164         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
13165         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13166         moved from ....
13167         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
13168         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13169         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13170         * sysdeps/sparc/sparc64/qp_add.c: ... here.
13171         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13172         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13173         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13174         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13175         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13176         * sysdeps/sparc/sparc64/qp_div.c: ... here.
13177         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13178         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13179         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13180         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13181         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13182         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13183         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13184         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13185         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13186         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13187         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13188         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13189         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13190         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13191         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13192         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13193         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13194         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13195         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13196         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13197         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13198         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13199         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13200         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13201         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13202         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13203         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13204         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13205         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13206         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13207         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13208         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13209         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13210         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13211         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13212         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13213         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13214         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13215         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13216         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13217         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13218         * sysdeps/sparc/sparc64/qp_util.c: ... here.
13219         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13220         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13221         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13222         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13223         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13224         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13226         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13227         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13228         (sparc32-quad-routines): New variable.  Moved from ....
13229         [$(subdir) = soft-fp] (sysdep_routines): Add
13230         $(sparc32-quad-routines).  Moved from ....
13231         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
13232         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13233         moved from ....
13234         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
13235         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13236         * sysdeps/sparc/sparc32/q_add.c: ... here.
13237         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13238         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13239         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13240         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13241         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13242         * sysdeps/sparc/sparc32/q_div.c: ... here.
13243         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13244         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13245         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13246         * sysdeps/sparc/sparc32/q_feq.c: ... here.
13247         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13248         * sysdeps/sparc/sparc32/q_fge.c: ... here.
13249         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13250         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13251         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13252         * sysdeps/sparc/sparc32/q_fle.c: ... here.
13253         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13254         * sysdeps/sparc/sparc32/q_flt.c: ... here.
13255         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13256         * sysdeps/sparc/sparc32/q_fne.c: ... here.
13257         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13258         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13259         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13260         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13261         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13262         * sysdeps/sparc/sparc32/q_mul.c: ... here.
13263         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13264         * sysdeps/sparc/sparc32/q_neg.c: ... here.
13265         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13266         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13267         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13268         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13269         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13270         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13271         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13272         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13273         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13274         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13275         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13276         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13277         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13278         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13279         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13280         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13281         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13282         * sysdeps/sparc/sparc32/q_sub.c: ... here.
13283         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13284         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13285         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13286         * sysdeps/sparc/sparc32/q_util.c: ... here.
13287         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13288         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13289         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13290         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13292 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13293             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13295         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
13296         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13297         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13298         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13300 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
13302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13303         powerpc/soft-fp.
13304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13305         Likewise.
13306         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13307         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13309 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13311         [BZ #23171]
13312         * math/math.h [C++] (iseqsig): Fix parameter type for the long
13313         double version.
13315 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
13317         * sysdeps/sh/Implies: Remove sh/soft-fp.
13318         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13319         * sysdeps/sh/sfp-machine.h: ... here.
13321 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13323         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13324         (__mempcpy_erms): Skip zero length.
13325         (__memmove_erms): Likewise.
13326         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13327         (__memset_erms): Likewise.
13329 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
13331         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13332         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13333         Add functions moved from ....
13334         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
13335         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
13336         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13337         from ....
13338         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
13339         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13340         * sysdeps/alpha/e_sqrtl.c: ... here.
13341         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13342         * sysdeps/alpha/local-soft-fp.h: ... here.
13343         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13344         * sysdeps/alpha/ots_add.c: ... here.
13345         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13346         * sysdeps/alpha/ots_cmp.c: ... here.
13347         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13348         * sysdeps/alpha/ots_cmpe.c: ... here.
13349         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13350         * sysdeps/alpha/ots_cvtqux.c: ... here.
13351         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13352         * sysdeps/alpha/ots_cvtqx.c: ... here.
13353         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13354         * sysdeps/alpha/ots_cvttx.c: ... here.
13355         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13356         * sysdeps/alpha/ots_cvtxq.c: ... here.
13357         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13358         * sysdeps/alpha/ots_cvtxt.c: ... here.
13359         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13360         * sysdeps/alpha/ots_div.c: ... here.
13361         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13362         * sysdeps/alpha/ots_mul.c: ... here.
13363         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13364         * sysdeps/alpha/ots_nintxq.c: ... here.
13365         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13366         * sysdeps/alpha/ots_sub.c: ... here.
13367         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13368         * sysdeps/alpha/sfp-machine.h: ... here.
13370 2018-05-23  Florian Weimer  <fweimer@redhat.com>
13372         [BZ #19728]
13373         [BZ #19729]
13374         [BZ #22247]
13375         CVE-2016-6261
13376         CVE-2016-6263
13377         CVE-2017-14062
13378         Switch to extern IDNA implementation (libidn2).
13379         * libidn: Remove subdirectory.
13380         * LICENSES: Do not mention licensing conditions for the removed
13381         libidn code.
13382         * config.h.in (HAVE_LIBIDN): Remove.
13383         * include/dlfcn.h (__libc_dlopen): Update comment.
13384         * include/idna.h: Remove file.
13385         * inet/Makefile (routines): Add idna.
13386         (tests-static, tests-internal): Add tst-idna_name_classify.
13387         (LOCALES): Generate locales for tests.
13388         (tst-idna_name_classify.out): Depend on generated locales.
13389         * inet/idna_name_classify.c: New file.
13390         * inet/tst-idna_name_classify.c: Likewise.
13391         * inet/net-internal.h (__idna_to_dns_encoding)
13392         (__idna_from_dns_encoding): Declare.
13393         * inet/net-internal.h (enum idna_name_classification): Define.
13394         (__idna_name_classify): Declare.
13395         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13396         __idna_from_dns_encoding.
13397         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13398         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
13399         name as a fallback in case of encoding errors.
13400         (getnameinfo): Use DEPRECATED_NI_IDN.
13401         * inet/idna.c: New file.
13402         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13403         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13404         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13405         (modules-names): Add tst-no-libidn2.
13406         (extra-test-objs): Add tst-no-libidn2.os.
13407         (LDFLAGS-tst-no-libidn2.so): Set soname.
13408         (LOCALES): Set, and generate locales.
13409         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13410         (tst-resolv-ai_idn-latin1): Likewise.
13411         (tst-resolv-ai_idn-nolibidn2): Likewise.
13412         (tst-resolv-ai_idn.out): Depend on locales.
13413         (tst-resolv-ai_idn-latin1.out): Depend on locales.
13414         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13415         tst-no-libidn2.so.
13416         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13417         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13418         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13419         * resolv/tst-resolv-ai_idn.c: New file.
13420         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13421         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13422         * resolv/tst-no-libidn2.c: Likewise.
13423         * support/support_format_addrinfo.c (format_ai_flags): Do not
13424         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13425         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13426         (gaih_inet): Call __idna_to_dns_encoding and
13427         __idna_from_dns_encoding, and use the original (punycode) name if
13428         __idna_from_dns_encoding fails due to an encoding error.
13429         (getaddrinfo): Use DEPRECATED_AI_IDN.
13430         * sysdeps/unix/inet/Subdirs (libidn): Remove.
13431         * sysdeps/unix/inet/configure: Remove file.
13432         * sysdeps/unix/inet/configure.ac: Likewise.
13434 2018-05-23  Florian Weimer  <fweimer@redhat.com>
13436         Implement allocate_once.
13437         * include/allocate_once.h: New file.
13438         * misc/allocate_once.c: Likewise.
13439         * misc/tst-allocate_once.c: Likewise.
13440         * misc/Makefile (routines): Add allocate_once.
13441         (tests-internal): Add tst-allocate_once.
13442         (generated): Add tst-allocate_once.mtrace,
13443         tst-allocate_once-mem.out.
13444         (tests-special): Add tst-allocate_once-mem.out.
13445         (tst-allocate_once-ENV): Set MALLOC_TRACE.
13446         (tst-allocate_once-mem.out): Call mtrace.
13447         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13449 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13451         [BZ #23196]
13452         * string/test-memcpy.c (do_test1): New function.
13453         (test_main): Call it.
13455 2018-05-23  Andreas Schwab  <schwab@suse.de>
13457         [BZ #23196]
13458         CVE-2018-11237
13459         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13460         (L(preloop_large)): Save initial destination pointer in %r11 and
13461         use it instead of %rax after the loop.
13462         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13464 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
13466         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13467         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13468         -I../soft-fp.  Moved from ....
13469         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
13470         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13471         * sysdeps/aarch64/e_sqrtl.c: ... here.
13472         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13473         * sysdeps/aarch64/sfp-machine.h: ... here.
13475         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13476         -Wmaybe-uninitialized around access to fq[0].
13477         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13478         Likewise.
13480         [BZ #18471]
13481         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13482         aliases for non-libc case of versioned symbols.
13483         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13484         (llseek): Define as compat symbol if
13485         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13486         with link warning.
13487         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13488         Make into a compat symbol, disabled for minimum symbol version
13489         GLIBC_2.28 and later.
13490         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13492 2018-05-22  Florian Weimer  <fweimer@redhat.com>
13494         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13495         not add -mpreferred-stack-boundary=4.
13496         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13497         (stack-align-test-flags): Likewise.
13498         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13499         Likewise.
13500         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13501         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13502         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13503         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13504         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13505         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13506         (CFLAGS-tst-align2.c): Likewise.
13508 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13510         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13511         (index_arch_Prefer_FSRM): Likewise.
13512         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13513         Also check Prefer_FSRM.
13514         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13515         Also return OPTIMIZE (erms) for Prefer_FSRM.
13517 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13519         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13520         (index_cpu_FSRM): Likewise.
13521         (reg_FSRM): Likewise.
13523 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
13525         * math/gen-tgmath-tests.py: Import sys.
13526         (Tests.__init__): Initialize macros_seen.
13527         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
13528         if requested to do so for this macro.
13529         (Tests.add_all_tests): Take argument for macro for which to
13530         generate tests.
13531         (Tests.check_macro_list): New function.
13532         (main): Handle check-list argument and argument specifying macro
13533         for which to generate tests.
13534         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13535         [PYTHON] (tgmath3-macro-tests): Likewise.
13536         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13537         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13538         not test-tgmath3.c.
13539         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13540         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13541         to CFLAGS.
13542         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13543         [PYTHON] ($(foreach
13544         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
13545         rule.
13546         [PYTHON] (tests-special): Add
13547         $(objpfx)test-tgmath3-macro-list.out.
13548         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13550         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13551         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13552         later.
13554         [BZ #22639]
13555         * time/tzset.c (SECSPERDAY): Cast to time_t.
13556         * time/tst-y2039.c: New file.
13557         * time/Makefile (tests): Add tst-y2039.
13559 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13561         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13562         (PREFETCH_ONE_SET): Remove duplicate line.
13564 2018-05-17  Florian Weimer  <fweimer@redhat.com>
13566         * sysdeps/generic/math-type-macros-double.h: Include
13567         <math-nan-payload-double.h> after <libm-alias-double.h>.
13568         * sysdeps/generic/math-type-macros-float.h: Include
13569         <math-nan-payload-float.h> after <libm-alias-float.h>.
13570         * sysdeps/generic/math-type-macros-float128.h: Include
13571         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13572         * sysdeps/generic/math-type-macros-ldouble.h: Include
13573         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13575 2018-05-17  Andreas Schwab  <schwab@suse.de>
13577         * resolv/res_send.c (__res_context_send): Don't set errno when
13578         returing error after malloc failure.
13580 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13582         * nptl/allocatestack.c (allocate_stack): Remove the
13583         !__ASSUME_PRIVATE_FUTEX paths.
13584         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13585         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13586         Likewise.
13587         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13588         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13589         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13590         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13591         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13592         !__ASSUME_PRIVATE_FUTEX path.
13593         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13594         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13595         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13596         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13597         !__ASSUME_PRIVATE_FUTEX macros.
13598         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13599         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13600         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13601         * sysdeps/unix/sysv/linux/kernel-features.h
13602         (__ASSUME_PRIVATE_FUTEX): Removed.
13604 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
13606         * math/Makefile (libm-narrow-fns): Add div.
13607         (libm-test-funcs-narrow): Likewise.
13608         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13609         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13610         * math/gen-auto-libm-tests.c (test_functions): Add div.
13611         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13612         (NARROW_DIV_ROUND_TO_ODD): Likewise.
13613         (NARROW_DIV_TRIVIAL): Likewise.
13614         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13615         macro.
13616         (__ddivl): Likewise.
13617         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13618         ddiv.
13619         (CFLAGS-nldbl-ddiv.c): New variable.
13620         (CFLAGS-nldbl-fdiv.c): Likewise.
13621         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13622         __nldbl_ddivl.
13623         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13624         prototype.
13625         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13626         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13627         * math/auto-libm-test-in: Add tests of div.
13628         * math/auto-libm-test-out-narrow-div: New generated file.
13629         * math/libm-test-narrow-div.inc: New file.
13630         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13631         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13632         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13633         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13634         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13635         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13636         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13637         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13638         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13639         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13640         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13641         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13642         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13643         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13644         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13645         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13646         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13647         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13649         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13650         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13651         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13652         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13653         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13654         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13655         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13656         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13657         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13658         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13659         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13660         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13661         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13666         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13667         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13668         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13669         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13670         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13671         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13672         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13673         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13675 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13677         [BZ #23178]
13678         * nscd/nscd-client.h (sendfileall): Remove prototype.
13679         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13680         (handle_request): Use writeall instead of sendfileall.
13681         * nscd/aicache.c (addhstaiX): Likewise.
13682         * nscd/grpcache.c (cache_addgr): Likewise.
13683         * nscd/hstcache.c (cache_addhst): Likewise.
13684         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13685         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13686         * nscd/pwdcache.c (cache_addpw): Likewise.
13687         * nscd/servicescache.c (cache_addserv): Likewise.
13688         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13689         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13690         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13691         Remove define.
13693 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13695         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13696         Include <string/strncat.c>.
13697         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13698         alias.
13699         (__GI___strncat): New hidden alias.
13701 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
13703         * sysdeps/mips/mips32/libm-test-ulps: Update.
13704         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13706 2018-05-16  Florian Weimer  <fweimer@redhat.com>
13708         * support/Makefile (libsupport-routines): Add support_quote_blob,
13709         support_test_compare_blob.
13710         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13711         * support/check.h (TEST_COMPARE_BLOB): Define.
13712         (support_test_compare_blob): Declare.
13713         * support/support.h (support_quote_blob): Declare.
13714         * support/support_quote_blob.c: New file.
13715         * support/support_test_compare_blob.c: Likewise.
13716         * support/tst-support_quote_blob.c: Likewise.
13717         * support/tst-test_compare_blob.c: Likewise.
13719 2018-05-16  Florian Weimer  <fweimer@redhat.com>
13721         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13722         of <strtod_nan_double.h>.
13723         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13724         instead of SET_MANTISSA.
13725         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13726         of include <strtod_nan_float.h>.
13727         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13728         instead of <strtod_nan_ldouble.h>.
13729         * stdlib/strtod_nan_double.h: Move to ...
13730         * sysdeps/generic/math-nan-payload-double.h: ... here.
13731         (FLOAT): Remove definition.
13732         (SET_MANTISSA): Rename to ...
13733         (SET_NAN_PAYLOAD): ... this.
13734         * stdlib/strtod_nan_float.h: Move to ...
13735         * sysdeps/generic/math-nan-payload-float.h: ... here.
13736         (FLOAT): Remove definition.
13737         (SET_MANTISSA): Rename to ...
13738         (SET_NAN_PAYLOAD): ... this.
13739         * sysdeps/generic/math-type-macros-double.h: Include
13740         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
13741         instead of <math-svid-compat.h>.
13742         * sysdeps/generic/math-type-macros-float.h: Include
13743         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
13744         instead of <math-svid-compat.h>.
13745         * sysdeps/generic/math-type-macros-float128.h: Include
13746         <math-nan-payload-float128.h>.
13747         * sysdeps/generic/math-type-macros-ldouble.h: Include
13748         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
13749         instead of <math-svid-compat.h>.
13750         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13751         check for definition.
13752         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13753         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13754         Include <ieee754_float128.h>.
13755         (FLOAT): Remove definition.
13756         (SET_MANTISSA): Rename to ...
13757         (SET_NAN_PAYLOAD): ... this.
13758         * sysdeps/ieee754/float128/strtof128_nan.c: Include
13759         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13760         Do not include <float128_private.h>.
13761         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13762         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13763         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13764         (FLOAT): Remove definition.
13765         (SET_MANTISSA): Rename to ...
13766         (SET_NAN_PAYLOAD): ... this.
13767         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13768         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13769         (FLOAT): Remove definition.
13770         (SET_MANTISSA): Rename to ...
13771         (SET_NAN_PAYLOAD): ... this.
13772         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13773         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13774         (FLOAT): Remove definition.
13775         (SET_MANTISSA): Rename to ...
13776         (SET_NAN_PAYLOAD): ... this.
13777         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13778         of "../stdlib/strtod_nan_double.h".
13779         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13780         of "../stdlib/strtod_nan_float.h".
13781         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13782         instead of "../stdlib/strtod_nan_ldouble.h".
13783         * manual/arith.texi (Parsing of Floats): Adjust comment.
13785 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
13787         * math/Makefile (libm-narrow-fns): Add mul.
13788         (libm-test-funcs-narrow): Likewise.
13789         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13790         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13791         * math/gen-auto-libm-tests.c (test_functions): Add mul.
13792         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13793         (NARROW_MUL_ROUND_TO_ODD): Likewise.
13794         (NARROW_MUL_TRIVIAL): Likewise.
13795         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13796         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13797         macro.
13798         (__dmull): Likewise.
13799         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13800         dmul.
13801         (CFLAGS-nldbl-dmul.c): New variable.
13802         (CFLAGS-nldbl-fmul.c): Likewise.
13803         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13804         __nldbl_dmull.
13805         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13806         prototype.
13807         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13808         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13809         * math/auto-libm-test-in: Add tests of mul.
13810         * math/auto-libm-test-out-narrow-mul: New generated file.
13811         * math/libm-test-narrow-mul.inc: New file.
13812         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13813         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13814         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13815         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13816         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13817         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13818         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13819         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13820         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13821         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13822         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13823         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13824         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13825         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13826         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13827         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13828         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13829         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13830         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13831         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13832         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13833         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13834         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13835         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13836         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13837         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13838         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13839         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13840         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13841         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13842         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13843         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13848         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13849         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13850         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13851         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13852         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13853         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13854         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13855         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13857 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13859         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13860         with *%eax in call.
13862 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13864         * sysdeps/i386/ldsodefs.h: Removed.
13865         * sysdeps/x86_64/ldsodefs.h: Moved to ...
13866         * sysdeps/x86/ldsodefs.h: This.
13867         (La_i86_regs): New.
13868         (La_i86_retval): Likewise.
13869         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13870         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13872 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13874         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13875         unnecessary testl.
13877 2018-05-13  Alan Modra  <amodra@gmail.com>
13879         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13880         R_PARISC_TLS_DTPOFF32 reloc addend.
13882 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13884         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13885         * math/math.h: Restrict the prototype definition for the functions
13886         issignaling(_Float128) and iszero(_Float128); and template
13887         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13888         __HAVE_FLOAT128_UNLIKE_LDBL.
13889         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13890         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13891         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13892         __f128() constants; define the type _Float128 as long double;
13893         and reuse long double in __CFLOAT128.
13895 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
13897         * sysdeps/generic/math_private.h: Do not include
13898         <math-barriers.h>.
13899         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13900         <math_private.h>.
13901         * math/fromfp.h: Include <math-barriers.h>.
13902         * math/math-narrow.h: Likewise.
13903         * math/s_nextafter.c: Likewise.
13904         * math/s_nexttowardf.c: Likewise.
13905         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13906         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13907         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13908         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13909         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13910         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13911         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13912         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13913         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13914         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13915         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13916         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13917         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13918         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13919         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13920         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13921         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13922         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13923         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13924         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13925         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13926         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13927         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13928         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13929         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13930         * sysdeps/ieee754/k_standardl.c: Likewise.
13931         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13932         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13933         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13934         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13935         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13936         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13937         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13938         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13939         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13940         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13941         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13942         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13943         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13944         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13945         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13946         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13947         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13948         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13949         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13950         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13951         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13952         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13954 2018-05-11  Florian Weimer  <fweimer@redhat.com>
13956         Use 64-bit epoch values in the time zone file parser.
13957         * include/time.h (internal_time_t): Define.
13958         (__tzfile_compute): Use it.
13959         * time/tzfile.c (struct leap): Use internal_time_t for epoch
13960         member.
13961         (transitions): Switch to internal_time_t.
13962         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
13963         types.
13964         (__tzfile_compute): Use internal_time_t for timer argument.  Check
13965         for truncation before calling __offtime.
13967 2018-05-11  Florian Weimer  <fweimer@redhat.com>
13969         [BZ #23166]
13970         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13971         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13972         Likewise.
13973         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13974         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
13975         export without --enable-obsolete-rpc.
13976         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13977         symbol.  This should not have been exported, ever.
13979 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
13981         [BZ #23152]
13982         * localedata/locales/gd_GB (abmon): Fix typo in May:
13983         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
13985 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13987         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13988         Use multiple registers to copy data in loop tail.
13990         * sysdeps/aarch64/multiarch/memmove_falkor.S
13991         (__memmove_falkor): Use multiple registers to move data in
13992         loop tail.
13994 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
13996         * math/math-underflow.h: New file.
13997         * sysdeps/generic/math_private.h: Do not include <float.h>.
13998         (fabs_tg): Remove macro.  Moved to math-underflow.h.
13999         (min_of_type_f): Likewise.
14000         (min_of_type_): Likewise.
14001         (min_of_type_l): Likewise.
14002         (min_of_type_f128): Likewise.
14003         (min_of_type): Likewise.
14004         (math_check_force_underflow): Likewise.
14005         (math_check_force_underflow_nonneg): Likewise.
14006         (math_check_force_underflow_complex): Likewise.
14007         * math/e_exp2_template.c: Include <math-underflow.h>.
14008         * math/k_casinh_template.c: Likewise.
14009         * math/s_catan_template.c: Likewise.
14010         * math/s_catanh_template.c: Likewise.
14011         * math/s_ccosh_template.c: Likewise.
14012         * math/s_cexp_template.c: Likewise.
14013         * math/s_clog10_template.c: Likewise.
14014         * math/s_clog_template.c: Likewise.
14015         * math/s_csin_template.c: Likewise.
14016         * math/s_csinh_template.c: Likewise.
14017         * math/s_csqrt_template.c: Likewise.
14018         * math/s_ctan_template.c: Likewise.
14019         * math/s_ctanh_template.c: Likewise.
14020         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14021         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14022         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14023         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14024         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14025         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14026         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14027         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14028         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14029         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14030         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14031         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14032         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14033         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14034         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14035         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14036         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14037         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14038         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14039         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14040         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14041         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14042         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14043         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14044         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14045         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14046         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14047         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14048         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14049         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14050         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14051         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14052         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14053         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14054         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14055         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14056         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14057         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14058         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14059         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14060         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14061         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14062         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14063         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14064         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14065         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14066         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14067         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14068         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14069         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14070         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14071         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14072         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14073         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14074         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14075         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14076         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14077         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14078         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14079         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14080         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14081         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14082         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14083         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14084         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14085         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14086         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14087         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14088         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14089         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14090         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14091         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14092         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14093         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14094         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14095         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14096         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14097         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14098         * sysdeps/x86/fpu/powl_helper.c: Likewise.
14099         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14100         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14101         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14102         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14103         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14105 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
14107         * sysdeps/generic/math-barriers.h: New file.
14108         * sysdeps/generic/math_private.h [!math_opt_barrier]
14109         (math_opt_barrier): Move to math-barriers.h.
14110         [!math_opt_barrier] (math_force_eval): Likewise.
14111         * sysdeps/aarch64/fpu/math-barriers.h: New file.
14112         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14113         math-barriers.h.
14114         (math_force_eval): Likewise.
14115         * sysdeps/alpha/fpu/math-barriers.h: New file.
14116         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14117         math-barriers.h.
14118         (math_force_eval): Likewise.
14119         * sysdeps/x86/fpu/math-barriers.h: New file.
14120         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14121         math-barriers.h.
14122         (math_force_eval): Likewise.
14123         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14124         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
14125         multiple-include guard for rename.
14126         * sysdeps/powerpc/fpu/math-barriers.h: New file.
14127         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14128         math-barriers.h.
14129         (math_force_eval): Likewise.
14131 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14133         [BZ #22786]
14134         CVE-2018-11236
14135         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14136         computation.
14137         * stdlib/Makefile (test-bz22786): New test.
14138         * stdlib/test-bz22786.c: New test.
14140 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
14142         * include/math-narrow-eval.h: New file.  Contents moved from ....
14143         * sysdeps/generic/math_private.h: ... here.
14144         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
14145         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14146         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14147         * stdlib/strtod_l.c: Likewise.
14148         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14149         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14150         * sysdeps/i386/fpu/s_fdim.c: Likewise.
14151         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14152         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14153         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14154         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14155         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14156         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14157         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14158         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14163         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14164         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14165         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14166         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14167         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14168         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14169         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14170         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14171         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14172         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14173         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14174         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14175         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14176         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14178 2018-05-08  Andreas Schwab  <schwab@suse.de>
14180         * sysdeps/nptl/internaltypes.h: Fix comment.
14182 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
14184         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14185         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14186         hidden.
14188 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14190         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14191         of I into loop header.
14192         * benchtests/bench-memmove-walk.c
14193         (test_main): Likewise.
14195 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
14197         Revert:
14198         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
14199         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14201 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14203         [BZ #20419]
14204         * elf/dl-load.c (open_verify): Fix stack overflow.
14205         * elf/Makefile (tst-big-note): New test.
14206         * elf/tst-big-note-lib.S: New.
14207         * elf/tst-big-note.c: New.
14209 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
14211         * scripts/abilist.awk: Ignore absolute symbols.
14212         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14213         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14214         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14215         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14216         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14217         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14218         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14219         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14220         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14221         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14222         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14223         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14224         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14225         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14226         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14227         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14228         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14229         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14230         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14231         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14232         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14233         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14234         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14235         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14236         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14237         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14238         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14239         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14240         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14241         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14242         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14243         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14244         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14245         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14246         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14247         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14248         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14249         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14250         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14251         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14252         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14253         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14254         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14255         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14256         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14257         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14258         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14259         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14260         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14261         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14262         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14263         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14264         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14265         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14266         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14267         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14268         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14269         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14270         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14271         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14272         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14273         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14274         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14275         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14276         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14277         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14278         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14279         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14280         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14281         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14282         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14283         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14284         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14285         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14286         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14287         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14288         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14289         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14290         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14291         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14292         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14293         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14294         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14295         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14296         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14297         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14298         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14299         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14300         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14301         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14302         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14303         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14304         Likewise.
14305         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14306         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14307         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14308         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14309         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14310         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14311         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14312         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14313         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14314         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14315         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14316         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14317         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14318         Likewise.
14319         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14320         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14321         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14322         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14323         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14324         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14325         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14326         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14327         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14328         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14329         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14330         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14331         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14332         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14333         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14334         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14335         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14336         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14337         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14338         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14339         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14340         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14341         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14342         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14343         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14344         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14345         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14346         Likewise.
14347         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14348         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14349         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14350         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14351         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14352         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14353         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14354         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14355         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14356         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14357         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14358         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14359         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14360         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14361         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14362         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14363         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14364         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14365         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14366         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14367         Likewise.
14368         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14369         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14370         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14371         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14372         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14373         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14374         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14375         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14376         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14377         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14378         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14379         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14380         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14381         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14382         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14383         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14384         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14385         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14386         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14387         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14388         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14389         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14390         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14391         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14392         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14393         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14394         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14395         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14400         Likewise.
14401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14406         Likewise.
14407         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14408         Likewise.
14409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14411         Likewise.
14412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14414         Likewise.
14415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14416         Likewise.
14417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14420         Likewise.
14421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14422         Likewise.
14423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14424         Likewise.
14425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14429         Likewise.
14430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14436         Likewise.
14437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14439         Likewise.
14440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14441         Likewise.
14442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14443         Likewise.
14444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14445         Likewise.
14446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14449         Likewise.
14450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14451         Likewise.
14452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14453         Likewise.
14454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14455         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14456         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14457         Likewise.
14458         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14459         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14460         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14461         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14462         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14463         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14464         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14465         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14466         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14467         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14468         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14469         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14470         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14471         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14472         Likewise.
14473         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14474         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14475         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14476         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14477         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14478         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14479         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14480         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14481         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14482         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14483         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14484         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14485         Likewise.
14486         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14487         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14488         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14489         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14490         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14491         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14492         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14493         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14494         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14495         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14496         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14497         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14498         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14499         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14500         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14501         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14502         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14503         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14504         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14505         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14506         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14507         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14508         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14509         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14510         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14511         Likewise.
14512         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14513         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14514         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14515         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14516         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14517         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14518         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14519         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14520         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14521         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14522         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14523         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14524         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14525         Likewise.
14526         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14527         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14528         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14529         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14530         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14531         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14532         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14533         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14534         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14535         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14536         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14537         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14538         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14539         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14540         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14541         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14542         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14543         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14544         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14545         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14546         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14547         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14548         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14549         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14550         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14551         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14552         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14553         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14554         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14555         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14556         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14557         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14558         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14559         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14560         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14561         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14562         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14563         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14565 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
14567         [BZ #23137]
14568         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14569         Use atomic_load_acquire to load __tid.
14571 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14573         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14574         Restore the pointer into %rdx, after syscall and use %rdx,
14575         instead of %rsi, to restore context.
14577 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14579         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14580         Pop the pointer into %rdx after syscall and use %rdx, instead
14581         of %rsi, to restore context.
14583 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14585         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14586         handlers after setjmp.
14587         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14588         defined.
14589         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14590         <libc-pointer-arith.h>.
14591         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14592         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14593         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14594         _JUMP_BUF_SIGSET_BITS_PER_WORD.
14595         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14596         * sysdeps/x86/__longjmp_cancel.S: New file.
14597         * sysdeps/x86/longjmp.c: Likewise.
14598         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14600 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14602         * NEWS: Add ustat.h deprecation entry.
14603         * bits/ustat.h: Remove file.
14604         * misc/sys/ustat.h: Likewise.
14605         * misc/ustat.h: Likewise.
14606         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14607         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14608         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14609         compatibility mode.
14610         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14611         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14612         generic Linux implementation.
14614 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14616         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14617         * math/w_expl_compat.c: Likewise.
14618         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
14620 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
14622         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14624 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14626         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14627         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14628         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14629         Remove.
14630         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14632         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14633         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14634         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14635         and SYSCALL_LL64.
14637 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14639         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14641         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14642         * math/w_asin_template.c: Likewise.
14643         * math/w_atanh_template.c: Likewise.
14645 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14647         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14648         to powerpc/powerpc64/be for big-endian.
14649         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14650         little-endian.
14652         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14653         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14654         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14655         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14656         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14657         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14658         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14659         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14660         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14661         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14662         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14663         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14664         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14665         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14666         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14667         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14668         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14669         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14670         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14671         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14672         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14673         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14674         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14675         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14676         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14677         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14678         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14679         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14680         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14681         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14682         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14683         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14685         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14686         adjusted to imply powerpc64 and older processors on powerpc64/be.
14687         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14688         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14689         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14690         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14691         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14692         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14693         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14694         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14695         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14696         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14697         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14698         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14699         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14700         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14701         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14702         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14703         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14704         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14705         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14706         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14707         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14708         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14709         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14710         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14711         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14712         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14713         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14714         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14715         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14716         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14717         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14719         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14720         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14721         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14722         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14724         * sysdeps/powerpc/powerpc64/be/Implies: New file.
14725         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14726         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14727         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14729         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14730         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14731         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14732         * sysdeps/powerpc/powerpc64le/configure: Likewise.
14733         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14734         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14735         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14736         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14737         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14738         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14739         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14741         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14742         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14743         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14744         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14745         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14746         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14747         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14748         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14749         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14750         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14751         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14753         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14754         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14755         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14756         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14757         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14758         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14759         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14760         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14761         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14762         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14763         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14764         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14766         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14767         and adjusted to imply olders processors.
14768         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14769         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14770         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14771         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14772         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14773         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14774         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14775         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14776         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14777         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14778         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14780         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14781         powerpc64/le.
14782         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14783         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14786         powerpc64le.
14787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14791         powerpc64/be.
14792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14797         powerpc64 and adjusted.
14798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14801         Likewise.
14803 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
14805         * sysdeps/tile: Remove.
14806         * sysdeps/unix/sysv/linux/tile: Likewise.
14807         * README (tilegx-*-linux-gnu): Remove from list of supported
14808         configurations.
14809         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14810         contribution of support for generic Linux kernel syscall
14811         interface.
14812         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14813         tilegx configurations.
14814         (Config.install_linux_headers): Do not handle tile.
14815         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14816         in comment.
14817         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14818         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14819         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14820         conditional undefine and redefine.
14821         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14822         in comment.
14823         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14824         conditional undefine and redefine.
14826 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
14828         * signal/tst-sigaction.c: New file to test BZ #23069.
14829         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14831 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14833         [BZ #22766]
14834         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14835         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14836         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14837         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14839 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14841         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14842         _DIRENT_MATCHES_DIRENT64 is not defined.
14843         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14844         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14845         is defined.
14846         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14847         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14849 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
14851         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14852         version to GCC 8 branch.
14854 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
14856         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14857         (check_no_hidden): Use type of original function when declaring
14858         alias.
14860         * sysdeps/unix/sysv/linux/sys/ptrace.h
14861         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14862         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14863         (struct __ptrace_seccomp_metadata): New type.
14864         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14865         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14866         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14867         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14868         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14869         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14870         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14871         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14872         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14873         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14874         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14875         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14876         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14877         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14878         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14879         (PTRACE_SECCOMP_GET_METADATA): Likewise.
14881 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14883         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14884         defined.
14885         * dirent/versionsort.c (versionsort): Likewise.
14886         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14887         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14888         * dirent/versionsort64.c (versionsort64): Likewise.
14889         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14890         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14891         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14892         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14893         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14894         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14895         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14896         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14897         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14898         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14901         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14902         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14904 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
14906         * elf/elf.h (NT_PPC_PKEY): New macro.
14908 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
14910         [BZ #23094]
14911         * localedata/locales/hr_HR: fix thousands_sep and
14912         mon_thousands_sep
14914 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
14916         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14917         (XTABS): Define to TAB3.
14919 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14921         * sysdeps/hppa/fpu/libm-test-ulps: Update.
14923         * dirent/scandir-tail-common.c: New file.
14924         * dirent/scandir-tail.c: Use scandir-tail-common.c.
14925         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14926         * dirent/scandir.c: Use scandir-tail-common.c.
14927         * dirent/scandirat.c: Likewise.
14928         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14929         * dirent/scandir64.c (scandir64): Always build and alias to scandir
14930         if _DIRENT_MATCHES_DIRENT64 is defined.
14931         * dirent/scandirat64.c (scandirat64): Likewise.
14932         * include/dirent.h (__scandir_tail): Only define iff
14933         _DIRENT_MATCHES_DIRENT64 is not defined.
14934         (__scandir64_tail): Define regardless.
14935         (__scandirat, scandirat64): Remove libc_hidden_proto.
14936         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14937         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14939         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14940         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14941         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14942         * sysdeps/unix/sysv/linux/scandir64.c: New file.
14944 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
14946         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14947         New macro.
14948         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14949         Increase to 24.
14950         (_dl_aarch64_cap_flags): Add asimdfhm.
14952 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
14954         * sysdeps/nios2/libm-test-ulps: Update.
14956 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14958         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14959         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14961         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14962         requirements.
14963         (_DIRENT_MATCHES_DIRENT64): Undef
14964         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14965         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14966         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14967         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14968         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14969         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14970         use getdents64 syscalls as base.
14971         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14972         symbol if required.
14973         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14974         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14975         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14976         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14977         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14978         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14979         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14980         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14981         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14982         (__get_clockfreq_via_proc_openprom): Use __getdents64.
14983         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14985 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
14987         * scripts/test_printers_common.py (init_test): Disable lock elision.
14989 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
14991         * math/test-tgmath.c (count_double, count_float,
14992         count_ldouble, count_cdouble, count_cfloat,
14993         count_cldouble): Use volatile int.
14995 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14997         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14998         (conformtest-xfail-conds): Add i386-gnu.
14999         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15000         i386-gnu.
15001         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15002         ipc_perm.cuid, ipc_perm.cgid): Likewise.
15003         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15004         msqid_ds.msg_lrpid): Likewise.
15005         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15006         Likewise.
15007         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15008         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15009         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15010         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15011         unsigned int.
15012         (struct statvfs64): Likewise.
15013         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15014         Likewise.
15015         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15016         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15017         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15018         instead of wait_queue.
15019         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15020         instead of vm_area_struct.
15021         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15022         struct sched_param definition to it.
15023         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15024         * bits/types/struct_sched_param.h: New file.
15025         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15026         <bits/types/struct_sched_param.h> instead of <sched.h>.
15027         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15028         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15029         generic version but include <bits/pthreadtypes.h> to make struct
15030         sigevent's sigev_notify_attributes field a pthread_attr_t*.
15031         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15032         non-compliant.
15033         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15034         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15035         [__USE_XOPEN] (OFDEL): New macro.
15036         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15037         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15038         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15039         prototypes.
15040         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15041         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15042         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15043         non-compliant.
15044         * sysdeps/i386/sys/ucontext.h: Likewise.
15045         * sysdeps/m68k/sys/ucontext.h: Likewise.
15046         * sysdeps/mips/sys/ucontext.h: Likewise.
15047         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15048         * sysdeps/mach/hurd/i386/Makefile
15049         (test-xfail-POSIX/fcntl.h/conform): Add.
15050         (test-xfail-POSIX/signal.h/conform): Add.
15051         (test-xfail-POSIX/semaphore.h/conform): Add.
15052         (test-xfail-POSIX/regex.h/conform): Add.
15053         (test-xfail-POSIX/aio.h/conform): Add.
15054         (test-xfail-POSIX/mqueue.h/conform): Add.
15055         (test-xfail-POSIX/sys/types.h/conform): Add.
15056         (test-xfail-UNIX98/fcntl.h/conform): Add.
15057         (test-xfail-UNIX98/netdb.h/conform): Add.
15058         (test-xfail-UNIX98/signal.h/conform): Add.
15059         (test-xfail-UNIX98/semaphore.h/conform): Add.
15060         (test-xfail-UNIX98/regex.h/conform): Add.
15061         (test-xfail-UNIX98/aio.h/conform): Add.
15062         (test-xfail-UNIX98/ftw.h/conform): Add.
15063         (test-xfail-UNIX98/mqueue.h/conform): Add.
15064         (test-xfail-UNIX98/netinet/in.h/conform): Add.
15065         (test-xfail-UNIX98/sys/wait.h/conform): Add.
15066         (test-xfail-UNIX98/sys/sem.h/conform): Add.
15067         (test-xfail-UNIX98/sys/uio.h/conform): Add.
15068         (test-xfail-UNIX98/sys/socket.h/conform): Add.
15069         (test-xfail-UNIX98/sys/types.h/conform): Add.
15070         (test-xfail-UNIX98/stdlib.h/conform): Add.
15071         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15072         (test-xfail-POSIX2008/fcntl.h/conform): Add.
15073         (test-xfail-POSIX2008/netdb.h/conform): Add.
15074         (test-xfail-POSIX2008/signal.h/conform): Add.
15075         (test-xfail-POSIX2008/semaphore.h/conform): Add.
15076         (test-xfail-POSIX2008/regex.h/conform): Add.
15077         (test-xfail-POSIX2008/aio.h/conform): Add.
15078         (test-xfail-POSIX2008/mqueue.h/conform): Add.
15079         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15080         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15081         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15082         (test-xfail-POSIX2008/sys/types.h/conform): Add.
15083         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15084         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15085         (test-xfail-XOPEN2K/netdb.h/conform): Add.
15086         (test-xfail-XOPEN2K/signal.h/conform): Add.
15087         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15088         (test-xfail-XOPEN2K/regex.h/conform): Add.
15089         (test-xfail-XOPEN2K/aio.h/conform): Add.
15090         (test-xfail-XOPEN2K/ftw.h/conform): Add.
15091         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15092         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15093         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15094         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15095         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15096         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15097         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15098         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15099         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15100         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15101         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15102         (test-xfail-XOPEN2K8/signal.h/conform): Add.
15103         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15104         (test-xfail-XOPEN2K8/regex.h/conform): Add.
15105         (test-xfail-XOPEN2K8/aio.h/conform): Add.
15106         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15107         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15108         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15109         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15110         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15111         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15112         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15113         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15114         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15115         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15116         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15117         i386-gnu.
15118         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15119         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15121 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
15123         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15124         --enable-obsolete for powerpc-linux-gnuspe.
15126 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15128         * conform/data/sys/un.h-data: Allow sun_ prefix.
15129         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15130         prototypes.
15131         * sysdeps/mach/include/mach.h: Likewise.
15132         * sysdeps/mach/include/mach/mig_support.h: Likewise.
15133         * sysdeps/mach/include/mach_error.h: Likewise.
15135 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15137         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15138         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15139         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15140         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15142 2018-04-16  Andreas Schwab  <schwab@suse.de>
15144         [BZ #19527]
15145         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15147 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
15149         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15150         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15152 2018-04-12  DJ Delorie  <dj@redhat.com>
15154         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15155         version to 4.16.
15157 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
15159         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15160         (struct kernel_sigaction): Use the same definition on 31bit as is used
15161         on 64bit.
15163 2018-04-09  Florian Weimer  <fweimer@redhat.com>
15165         [BZ #23037]
15166         * resolv/res_send.c (send_dg): Use designated initializers instead
15167         of assignment to zero-initialize other fields of struct mmsghdr.
15169 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15171         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15172         __READDIR_ALIAS): Undefine after usage.
15173         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15174         __READDIR_R_ALIAS): Likewise.
15175         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15176         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15177         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15178         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15179         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15180         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15181         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15182         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15183         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15184         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15185         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15186         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15187         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15188         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15189         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15190         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15191         * sysdeps/unix/sysv/linux/readdir.c: New file.
15192         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15193         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15194         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15196         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15198 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
15200         * manual/charset.texi (Converting a Character): Fix typo.
15202 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15204         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15206         * sysdeps/arm/libm-test-ulps: Update.
15208         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15209         as base implementation.
15210         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15211         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15212         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15213         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15214         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15215         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15216         remove unrequired definitions and update comments.
15217         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15218         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15219         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15220         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15221         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15222         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15223         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15224         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15225         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15226         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15227         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15228         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15229         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15230         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15231         and RESET_SA_RESTORER hooks.
15233 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
15235         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15237 2018-04-05  Florian Weimer  <fweimer@redhat.com>
15239         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15240         integer overflow, memory leak on error, and indeterminate errno
15241         value.  Add a null wide character to terminate the result string.
15242         * manual/charset.texi (Converting a Character): Mention embedded
15243         null bytes in the mbrtowc input string.  Explain what happens in
15244         the -2 result case.  Do not claim that mbrtowc is simple or
15245         obvious to use.  Adjust the description of the code example.  Use
15246         @code, not @var, for concrete variables.
15248 2018-04-05  Florian Weimer  <fweimer@redhat.com>
15250         * manual/examples/mbstouwcs.c: New file.
15251         * manual/charset.texi (Converting a Character): Include it.
15253 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15255         * include/dirent.h (dirfd): Add hidden proto.
15256         * dirent/dirfd.c (dirfd): Add hidden def.
15257         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15258         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15260 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15262         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15263         sin, cos and sincos to 1 ULP.
15265 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
15267         [BZ #19818]
15268         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15269         symbols.
15270         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15271         * elf/tst-absolute-sym.c: New file.
15272         * elf/tst-absolute-sym-lib.c: New file.
15273         * elf/tst-absolute-sym-lib.lds: New file.
15274         * elf/Makefile (tests): Add `tst-absolute-sym'.
15275         (modules-names): Add `tst-absolute-sym-lib'.
15276         (LDLIBS-tst-absolute-sym-lib.so): New variable.
15277         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15278         ($(objpfx)tst-absolute-sym): New dependency.
15280         [BZ #19818]
15281         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15282         parameter.
15283         (SYMBOL_ADDRESS): New macro.
15284         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15285         SYMBOL_ADDRESS for symbol address calculation.
15286         * elf/dl-runtime.c (_dl_fixup): Likewise.
15287         (_dl_profile_fixup): Likewise.
15288         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15289         * elf/rtld.c (dl_main): Likewise.
15290         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15291         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15292         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15293         (elf_machine_rela): Likewise.
15294         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15295         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15296         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15297         (elf_machine_rela): Likewise.
15298         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15299         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15300         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15301         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15302         Likewise.
15303         (elf_machine_reloc): Likewise.
15304         (elf_machine_got_rel): Likewise.
15305         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15306         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15307         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15308         Likewise.
15309         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15310         Likewise.
15311         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15312         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15313         Likewise.
15314         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15315         Likewise.
15316         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15317         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15318         Likewise.
15319         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15320         Likewise.
15321         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15322         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15324 2018-04-04  Zack Weinberg  <zackw@panix.com>
15326         * sysdeps/generic/internal-signals.h: Include signal.h,
15327         sigsetops.h, and stdbool.h.
15328         (__libc_signal_block_all): Actually block all signals.
15329         (__libc_signal_block_app): Likewise.
15330         (__libc_signal_restore_set): Actually restore the signal mask.
15332 2018-04-04  Florian Weimer  <fweimer@redhat.com>
15334         inet: Actually build and run tst-deadline.
15335         * inet/Makefile (tests-internal): Add tst-deadline and do not
15336         overwrite the variable.
15337         (tests-static-internal): Remove variable.
15339 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
15341         [BZ #22947]
15342         * bits/uio-ext.h (RWF_APPEND): New.
15343         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15344         * manual/llio.texi: Document RWF_APPEND.
15345         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15346         (RWF_SUPPORTED): Add RWF_APPEND.
15348 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15350         [BZ #22391]
15351         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15352         check for internal nptl signals.
15353         * nptl/sigaction.c (__sigaction): Likewise.
15354         * signal/sigaddset.c (sigaddset): Likewise.
15355         * signal/sigdelset.c (sigdelset): Likewise.
15356         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15357         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15358         value.
15359         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15360         to filter out internal nptl signals.
15361         * signal/tst-sigset.c (do_test): Check ech signal indidually and
15362         also check realtime signals using standard macros.
15363         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15364         __is_internal_signal, __libc_signal_block_all,
15365         __libc_signal_block_app, __libc_signal_restore_set): New functions.
15366         * sysdeps/nptl/sigfillset.c: Remove file.
15367         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15368         Change return to bool.
15369         (__clear_internal_signals): Remove SIGTIMER clean since it is
15370         equal to SIGCANEL on Linux.
15371         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15372         signal set was constructed using standard functions.
15374 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15376         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15377         ifname is too long.
15378         * hurd/hurdsig.c (interrupted_reply_port_location): Use
15379         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15380         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15381         hidden def.
15382         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15383         * signal/sigaddset.c: Include <sigsetopts.h>.
15384         * signal/sigdelset.c: Likewise.
15386 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15388         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15389         (__cos): Likewise.
15390         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15391         logic as sin and cos.
15393 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15395         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15396         inputs.  Return correct sign.
15397         (do_sincos): Remove small input check before do_sin, let do_sin set
15398         the sign.
15399         (__sin): Likewise.
15400         (__cos): Likewise.
15402 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15404         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15405         (do_cos_slow): Likewise.
15406         (do_sin_slow): Likewise.
15407         (reduce_and_compute): Likewise.
15408         (slow): Likewise.
15409         (slow1): Likewise.
15410         (slow2): Likewise.
15411         (sloww): Likewise.
15412         (sloww1): Likewise.
15413         (sloww2): Likewise.
15414         (bslow): Likewise.
15415         (bslow1): Likewise.
15416         (bslow2): Likewise.
15417         (cslow2): Likewise.
15419 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15421         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15422         (do_cos): Remove corp parameter and calculations.
15423         (do_sin): Likewise.
15424         (do_sincos): Remove cor variable.
15425         (__sin): Use do_sincos for huge inputs.
15426         (__cos): Likewise.
15427         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15428         (reduce_and_compute_sincos): Remove unused function.
15430 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15432         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15433         reduce_sincos, improve accuracy to 136 bits.
15434         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15435         (__sin): Use improved reduction and simplified do_sincos calculation.
15436         (__cos): Likewise.
15437         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15439 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15441         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15442         (do_sincos_2): Likewise.
15443         (__sin): Remove middle range reduction case.
15444         (__cos): Likewise.
15445         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15446         reduction case.
15448 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15450         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15451         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15452         inputs.
15453         (__cos): Likewise.
15454         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15456 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
15458         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15459         version to 4.16
15461 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15463         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15464         Remove definitions.
15465         (opendir_oflags): Use O_DIRECTORY regardless.
15466         (__opendir, __opendirat): Remove need_isdir_precheck usage.
15467         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15469 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15471         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15472         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15473         macros.
15474         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15475         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15476         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15477         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15478         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15479         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15481         * htl/Makefile: Bump licence to LGPL 2.1+.
15482         * htl/alloca_cutoff.c: Likewise.
15483         * htl/cthreads-compat.c: Likewise.
15484         * htl/lockfile.c: Likewise.
15485         * htl/pt-alloc.c: Likewise.
15486         * htl/pt-cancel.c: Likewise.
15487         * htl/pt-cleanup.c: Likewise.
15488         * htl/pt-create.c: Likewise.
15489         * htl/pt-dealloc.c: Likewise.
15490         * htl/pt-detach.c: Likewise.
15491         * htl/pt-exit.c: Likewise.
15492         * htl/pt-getattr.c: Likewise.
15493         * htl/pt-initialize.c: Likewise.
15494         * htl/pt-internal.h: Likewise.
15495         * htl/pt-join.c: Likewise.
15496         * htl/pt-self.c: Likewise.
15497         * htl/pt-setcancelstate.c: Likewise.
15498         * htl/pt-setcanceltype.c: Likewise.
15499         * htl/pt-sigmask.c: Likewise.
15500         * htl/pt-spin-inlines.c: Likewise.
15501         * htl/pt-testcancel.c: Likewise.
15502         * htl/pt-yield.c: Likewise.
15503         * htl/tests/test-1.c: Likewise.
15504         * htl/tests/test-10.c: Likewise.
15505         * htl/tests/test-11.c: Likewise.
15506         * htl/tests/test-12.c: Likewise.
15507         * htl/tests/test-13.c: Likewise.
15508         * htl/tests/test-14.c: Likewise.
15509         * htl/tests/test-15.c: Likewise.
15510         * htl/tests/test-16.c: Likewise.
15511         * htl/tests/test-17.c: Likewise.
15512         * htl/tests/test-2.c: Likewise.
15513         * htl/tests/test-3.c: Likewise.
15514         * htl/tests/test-4.c: Likewise.
15515         * htl/tests/test-5.c: Likewise.
15516         * htl/tests/test-6.c: Likewise.
15517         * htl/tests/test-7.c: Likewise.
15518         * htl/tests/test-8.c: Likewise.
15519         * htl/tests/test-9.c: Likewise.
15520         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15521         * sysdeps/htl/bits/cancelation.h: Likewise.
15522         * sysdeps/htl/bits/pthread-np.h: Likewise.
15523         * sysdeps/htl/bits/pthread.h: Likewise.
15524         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15525         * sysdeps/htl/bits/semaphore.h: Likewise.
15526         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15527         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15528         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15529         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15530         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15531         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15532         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15533         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15534         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15535         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15536         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15537         * sysdeps/htl/old_pt-atfork.c: Likewise.
15538         * sysdeps/htl/pt-atfork.c: Likewise.
15539         * sysdeps/htl/pt-attr-destroy.c: Likewise.
15540         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15541         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15542         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15543         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15544         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15545         * sysdeps/htl/pt-attr-getscope.c: Likewise.
15546         * sysdeps/htl/pt-attr-getstack.c: Likewise.
15547         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15548         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15549         * sysdeps/htl/pt-attr-init.c: Likewise.
15550         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15551         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15552         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15553         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15554         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15555         * sysdeps/htl/pt-attr-setscope.c: Likewise.
15556         * sysdeps/htl/pt-attr-setstack.c: Likewise.
15557         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15558         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15559         * sysdeps/htl/pt-attr.c: Likewise.
15560         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15561         * sysdeps/htl/pt-barrier-init.c: Likewise.
15562         * sysdeps/htl/pt-barrier-wait.c: Likewise.
15563         * sysdeps/htl/pt-barrier.c: Likewise.
15564         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15565         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15566         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15567         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15568         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15569         * sysdeps/htl/pt-cond-destroy.c: Likewise.
15570         * sysdeps/htl/pt-cond-init.c: Likewise.
15571         * sysdeps/htl/pt-cond-signal.c: Likewise.
15572         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15573         * sysdeps/htl/pt-cond-wait.c: Likewise.
15574         * sysdeps/htl/pt-cond.c: Likewise.
15575         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15576         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15577         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15578         * sysdeps/htl/pt-condattr-init.c: Likewise.
15579         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15580         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15581         * sysdeps/htl/pt-destroy-specific.c: Likewise.
15582         * sysdeps/htl/pt-equal.c: Likewise.
15583         * sysdeps/htl/pt-getconcurrency.c: Likewise.
15584         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15585         * sysdeps/htl/pt-getschedparam.c: Likewise.
15586         * sysdeps/htl/pt-getspecific.c: Likewise.
15587         * sysdeps/htl/pt-init-specific.c: Likewise.
15588         * sysdeps/htl/pt-key-create.c: Likewise.
15589         * sysdeps/htl/pt-key-delete.c: Likewise.
15590         * sysdeps/htl/pt-key.h: Likewise.
15591         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15592         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15593         * sysdeps/htl/pt-mutex-init.c: Likewise.
15594         * sysdeps/htl/pt-mutex-lock.c: Likewise.
15595         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15596         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15597         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15598         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15599         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15600         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15601         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15602         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15603         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15604         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15605         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15606         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15607         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15608         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15609         * sysdeps/htl/pt-mutexattr.c: Likewise.
15610         * sysdeps/htl/pt-once.c: Likewise.
15611         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15612         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15613         * sysdeps/htl/pt-rwlock-init.c: Likewise.
15614         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15615         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15616         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15617         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15618         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15619         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15620         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15621         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15622         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15623         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15624         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15625         * sysdeps/htl/pt-setconcurrency.c: Likewise.
15626         * sysdeps/htl/pt-setschedparam.c: Likewise.
15627         * sysdeps/htl/pt-setschedprio.c: Likewise.
15628         * sysdeps/htl/pt-setspecific.c: Likewise.
15629         * sysdeps/htl/pt-spin.c: Likewise.
15630         * sysdeps/htl/pt-startup.c: Likewise.
15631         * sysdeps/htl/pthread.h: Likewise.
15632         * sysdeps/htl/sem-close.c: Likewise.
15633         * sysdeps/htl/sem-destroy.c: Likewise.
15634         * sysdeps/htl/sem-getvalue.c: Likewise.
15635         * sysdeps/htl/sem-init.c: Likewise.
15636         * sysdeps/htl/sem-open.c: Likewise.
15637         * sysdeps/htl/sem-post.c: Likewise.
15638         * sysdeps/htl/sem-timedwait.c: Likewise.
15639         * sysdeps/htl/sem-trywait.c: Likewise.
15640         * sysdeps/htl/sem-unlink.c: Likewise.
15641         * sysdeps/htl/sem-wait.c: Likewise.
15642         * sysdeps/hurd/htl/pt-kill.c: Likewise.
15643         * sysdeps/i386/htl/pt-machdep.h: Likewise.
15644         * sysdeps/mach/htl/pt-block.c: Likewise.
15645         * sysdeps/mach/htl/pt-spin.c: Likewise.
15646         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15647         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15648         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15649         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15650         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15651         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15652         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15653         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15654         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15655         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15656         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15657         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15658         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15659         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15660         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15661         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15662         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15663         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15664         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15665         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15666         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15667         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15668         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15669         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15670         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15671         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15672         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15673         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15674         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15675         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15676         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15677         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15678         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15679         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15680         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15681         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15682         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15683         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15684         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15685         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15686         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15687         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15688         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15690         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15691         * README: Remove the mention of out-of-tree patches needed for
15692         GNU/Hurd.
15694         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15695         (UTIME_NOW, UTIME_OMIT): Define macros.
15697         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15698         instead of pthread_detach.
15699         (__cthread_fork): Call __pthread_create instead of pthread_create.
15700         (__cthread_keycreate): Call __pthread_key_create instead of
15701         pthread_key_create.
15702         (__cthread_getspecific): Call __pthread_getspecific instead of
15703         pthread_getspecific.
15704         (__cthread_setspecific): Call __pthread_setspecific instead of
15705         pthread_setspecific.
15706         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15707         __pthread_mutex_unlock instead of pthread_mutex_lock and
15708         pthread_mutex_unlock.
15709         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15710         ___pthread_get_cleanup_stack.
15711         (__pthread_get_cleanup_stack): New strong alias.
15712         * htl/pt-create.c: Include <pthreadP.h>.
15713         (entry_point): Call __pthread_exit instead of pthread_exit.
15714         (pthread_create): Rename to __pthread_create.
15715         (pthread_create): New strong alias.
15716         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15717         (pthread_detach): New strong alias.
15718         (__pthread_detach): Call __pthread_cond_broadcast instead of
15719         pthread_cond_broadcast.
15720         * htl/pt-exit.c: Include <pthreadP.h>.
15721         (__pthread_exit): Call __pthread_setcancelstate and
15722         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15723         __pthread_get_cleanup_stack.
15724         * htl/pt-testcancel.c: Include <pthreadP.h>.
15725         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15726         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15727         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15728         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15729         pthread_attr_getstacksize.
15730         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15731         Rename to __pthread_attr_getstackaddr.
15732         (pthread_attr_getstackaddr): New strong alias.
15733         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15734         Rename to __pthread_attr_getstacksize.
15735         (pthread_attr_getstacksize): New strong alias.
15736         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15737         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15738         (pthread_attr_setstack): New strong alias.
15739         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15740         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15741         pthread_attr_getstacksize, pthread_attr_setstacksize and
15742         pthread_attr_setstackaddr.
15743         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15744         Rename to __pthread_attr_setstackaddr.
15745         (pthread_attr_setstackaddr): New strong alias.
15746         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15747         Rename to __pthread_attr_setstacksize.
15748         (pthread_attr_setstacksize): New strong alias.
15749         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15750         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15751         pthread_exit.
15752         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15753         (__pthread_key_create): New hidden def.
15754         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15755         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15756         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15757         __pthread_exit, __pthread_key_create, __pthread_getspecific,
15758         __pthread_setspecific, __pthread_setcancelstate,
15759         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15760         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15761         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15762         declarations.
15763         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15764         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15765         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15766         (pthread_attr_setstackaddr): New strong alias.
15767         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15768         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15769         (pthread_attr_setstacksize): New strong alias.
15770         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15771         (call_exit): Call __pthread_exit instead of pthread_exit.
15772         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15773         (_pthread_mutex_init): New hidden definition.
15774         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15775         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15776         instead of pthread_attr_init and pthread_attr_setstack.
15778         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15779         __vm_deallocate instead of vm_allocate and vm_deallocate.
15780         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15781         setenv.
15782         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15783         of geteuid.
15784         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15785         strdup.
15786         * hurd/siginfo.c: Include <libioP.h>.
15787         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15788         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15789         munmap.
15790         * mach/devstream.c: Include <libioP.h>.
15791         (dealloc_ref): Call __mach_port_deallocate instead of
15792         mach_port_deallocate.
15793         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15794         Call __mach_port_deallocate instead of mach_port_deallocate.
15795         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15796         pathconf.
15797         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15798         munmap.
15799         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15800         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15801         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15802         of munmap.
15803         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15804         of close.
15805         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15806         instead of sysconf.
15807         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15808         __clock_gettime instead of clock_gettime.
15809         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15810         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15811         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15812         * sysdeps/unix/bsd/stty.c (stty): Likewise.
15813         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15814         tcgetattr.
15815         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15816         __clock_gettime and __nanosleep instead of clock_gettime and
15817         nanosleep.
15818         * hurd/catch-signal.c (hurd_catch_signal): Rename to
15819         __hurd_catch_signal.
15820         (hurd_catch_signal): New strong alias.
15821         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15822         __hurd_catch_signal instead of hurd_catch_signal.
15823         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15824         * hurd/hurdexec.c (_hurd_init): Add hidden def.
15825         * hurd/hurdinit.c (_hurd_init): Add hidden def.
15826         * hurd/hurdsig.c: Include <mach/mig_support.h>.
15827         (_hurd_thread_sigstate): Add hidden def.
15828         (_hurd_internal_post_signal): Use __mutex_unlock instead of
15829         mutex_unlock.
15830         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15831         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15832         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15833         __hurd_file_name_path_lookup.
15834         (hurd_file_name_path_lookup): New strong alias.
15835         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15836         hurd_file_name_path_lookup.
15837         * mach/errstring.c (mach_error_type): Add hidden def.
15838         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15839         * mach/mutex-init.c (__mutex_init): Add hidden def.
15840         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15841         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15842         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15843         * sysdeps/mach/hurd/getcwd.c
15844         (_hurd_canonicalize_directory_name_internal): Rename to
15845         __hurd_canonicalize_directory_name_internal.
15846         (_hurd_canonicalize_directory_name_internal): New strong alias.
15847         (__canonicalize_directory_name_internal, __getcwd): Call
15848         __hurd_canonicalize_directory_name_internal instead of
15849         _hurd_canonicalize_directory_name_internal.
15850         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15851         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15852         hidden defs.
15853         * sysdeps/hurd/include/hurd.h: New file.
15854         * sysdeps/hurd/include/hurd/fd.h: New file.
15855         * sysdeps/hurd/include/hurd/signal.h: New file.
15856         * sysdeps/mach/include/lock-intern.h: New file.
15857         * sysdeps/mach/include/mach.h: New file.
15858         * sysdeps/mach/include/mach/mig_support.h: New file.
15859         * sysdeps/mach/include/mach_error.h: New file.
15860         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15861         prototype.
15862         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15863         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15864         _HEADER_H_HIDDEN_DEF macro.
15865         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15866         _hurd_fd_error_signal): Add hidden prototype.
15867         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15868         hidden def.
15869         * libio/iolibio.h (_IO_puts): New hidden prototype.
15870         * libio/ioputs.c (_IO_puts): New hidden def.
15871         * sysdeps/mach/hurd/localplt.data: New file.
15873 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
15874             Amos Jeffries  <squid3@treenet.co.nz>
15875             David Michael  <fedora.dm0@gmail.com>
15876             Marco Gerards  <marco@gnu.org>
15877             Marcus Brinkmann  <marcus@gnu.org>
15878             Neal H. Walfield  <neal@gnu.org>
15879             Pino Toscano  <toscano.pino@tiscali.it>
15880             Richard Braun  <rbraun@sceen.net>
15881             Roland McGrath  <roland@gnu.org>
15882             Samuel Thibault  <samuel.thibault@ens-lyon.org>
15883             Thomas DiModica  <ricinwich@yahoo.com>
15884             Thomas Schwinge  <tschwinge@gnu.org>
15886         * htl: New directory.
15887         * sysdeps/htl: New directory.
15888         * sysdeps/hurd/htl: New directory.
15889         * sysdeps/i386/htl: New directory.
15890         * sysdeps/mach/htl: New directory.
15891         * sysdeps/mach/hurd/htl: New directory.
15892         * sysdeps/mach/hurd/i386/htl: New directory.
15893         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15894         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15895         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15897 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15899         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15900         signals in thread created for runing timers.
15902 2018-04-01  Florian Weimer  <fweimer@redhat.com>
15904         * support/support_format_addrinfo.c (support_format_addrinfo):
15905         Include unknown error number in formatted result.
15907 2018-03-29  Florian Weimer  <fweimer@redhat.com>
15909         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15910         capture SIGBUS.
15912 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15914         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15915         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15916         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15917         (__ASSUME_CLONE_BACKWARDS): Define.
15919 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
15921         [BZ #23024]
15922         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15923         early when linux sentinel value is set.
15925 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15927         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15929 2018-03-27  Andreas Schwab  <schwab@suse.de>
15931         [BZ #23005]
15932         * resolv/res_send.c (__res_context_send): Return ENOMEM if
15933         allocation of private copy of nsaddr_list fails.
15935 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
15937         [BZ #16552]
15938         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15939         * sysdeps/unix/sysv/linux/umount.c: ... here.
15940         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15941         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15942         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15943         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15945         * sysdeps/unix/sysv/linux/umount.S: Likewise.
15946         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15948 2018-03-26  Andreas Schwab  <schwab@suse.de>
15950         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15951         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15952         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15953         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15954         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15955         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15956         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15957         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15958         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15959         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15960         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15961         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15962         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15963         (R_RISCV_NUM): Define.
15965 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15967         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15968         TLS declaration of errno.
15969         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15970         __libc_setup_tls.
15971         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15972         (ARCH_SETUP_TLS): Likewise.
15973         * sysdeps/mach/hurd/libc-start.h: New file copied from
15974         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15975         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15976         instead of __libc_setup_tls.
15977         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15978         __libc_setup_tls before initializing libpthread and running _hurd_init
15979         which starts the signal thread.
15980         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15981         Declare function.
15982         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15984 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
15986         [BZ #22998]
15987         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15988         after it is defined.
15990 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15991             Max Horn  <max@quendi.de>
15993         [BZ #22644]
15994         CVE-2017-18269
15995         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15996         branch conditions.
15997         * string/test-memmove.c (do_test2): New testcase.
15999 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
16001         * sysdeps/generic/frame.h: Remove file.
16002         * sysdeps/arm/frame.h: Likewise.
16003         * sysdeps/hppa/frame.h: Likewise.
16004         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16005         macro.
16006         (GET_FRAME): Likewise.
16007         (GET_STACK): Likewise.
16008         (CALL_SIGHANDLER): Likewise.
16009         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16010         Likewise.
16011         (GET_FRAME): Likewise.
16012         (GET_STACK): Likewise.
16013         (CALL_SIGHANDLER): Likewise.
16014         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16015         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16016         (GET_FRAME): Likewise.
16017         (GET_STACK): Likewise.
16018         (CALL_SIGHANDLER): Likewise.
16019         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16020         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16021         (GET_FRAME): Likewise.
16022         (GET_STACK): Likewise.
16023         (ADVANCE_STACK_FRAME): Likewise.
16024         (CALL_SIGHANDLER): Likewise.
16025         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16026         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16027         (GET_FRAME): Likewise.
16028         (GET_STACK): Likewise.
16029         (CALL_SIGHANDLER): Likewise.
16030         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16031         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16032         (GET_FRAME): Likewise.
16033         (GET_STACK): Likewise.
16034         (CALL_SIGHANDLER): Likewise.
16035         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16036         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16037         (GET_FRAME): Likewise.
16038         (GET_STACK): Likewise.
16039         (CALL_SIGHANDLER): Likewise.
16040         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16041         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16042         (GET_FRAME): Likewise.
16043         (GET_STACK): Likewise.
16044         (CALL_SIGHANDLER): Likewise.
16045         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16046         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16047         (GET_FRAME): Likewise.
16048         (GET_STACK): Likewise.
16049         (CALL_SIGHANDLER): Likewise.
16050         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16051         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16052         (GET_FRAME): Likewise.
16053         (GET_STACK): Likewise.
16054         (CALL_SIGHANDLER): Likewise.
16055         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16056         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16057         (GET_FRAME): Likewise.
16058         (GET_STACK): Likewise.
16059         (CALL_SIGHANDLER): Likewise.
16060         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16061         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16062         (GET_FRAME): Likewise.
16063         (GET_STACK): Likewise.
16064         (CALL_SIGHANDLER): Likewise.
16065         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16066         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16067         (GET_FRAME): Likewise.
16068         (GET_STACK): Likewise.
16069         (CALL_SIGHANDLER): Likewise.
16070         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16071         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16072         (FIRST_FRAME_POINTER): Likewise.
16073         (ADVANCE_STACK_FRAME): Likewise.
16074         (GET_STACK): Likewise.
16075         (GET_FRAME): Likewise.
16076         (CALL_SIGHANDLER): Likewise.
16077         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16078         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16079         (ADVANCE_STACK_FRAME): Likewise.
16080         (GET_STACK): Likewise.
16081         (GET_FRAME): Likewise.
16082         (CALL_SIGHANDLER): Likewise.
16083         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16084         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16085         (GET_FRAME): Likewise.
16086         (GET_STACK): Likewise.
16087         (CALL_SIGHANDLER): Likewise.
16088         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16089         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16090         (GET_FRAME): Likewise.
16091         (GET_STACK): Likewise.
16092         (CALL_SIGHANDLER): Likewise.
16094 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
16096         * sysdeps/x86_64/backtrace.c: Move to ....
16097         * debug/backtrace.c: ... here.
16098         * sysdeps/aarch64/backtrace.c: Remove file.
16099         * sysdeps/alpha/backtrace.c: Likewise.
16100         * sysdeps/hppa/backtrace.c: Likewise.
16101         * sysdeps/ia64/backtrace.c: Likewise.
16102         * sysdeps/mips/backtrace.c: Likewise.
16103         * sysdeps/nios2/backtrace.c: Likewise.
16104         * sysdeps/riscv/backtrace.c: Likewise.
16105         * sysdeps/sh/backtrace.c: Likewise.
16106         * sysdeps/tile/backtrace.c: Likewise.
16108 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
16110         [BZ #22987]
16111         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16112         function.
16113         (fdimf): Likewise.
16114         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16116         [BZ #17343]
16117         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16118         possibly overflowing computations.
16120 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16122         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16123         values from Linux-specific section now that it is in the GNU section.
16124         * sysdeps/gnu/errlist.c: Regenerate.
16126 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
16128         * math/Makefile (libm-narrow-fns): Add sub.
16129         (libm-test-funcs-narrow): Likewise.
16130         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16131         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16132         * math/gen-auto-libm-tests.c (test_functions): Add sub.
16133         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16134         (NARROW_SUB_ROUND_TO_ODD): Likewise.
16135         (NARROW_SUB_TRIVIAL): Likewise.
16136         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16137         macro.
16138         (__dsubl): Likewise.
16139         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16140         dsub.
16141         (CFLAGS-nldbl-dsub.c): New variable.
16142         (CFLAGS-nldbl-fsub.c): Likewise.
16143         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16144         __nldbl_dsubl.
16145         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16146         prototype.
16147         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16148         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16149         * math/auto-libm-test-in: Add tests of sub.
16150         * math/auto-libm-test-out-narrow-sub: New generated file.
16151         * math/libm-test-narrow-sub.inc: New file.
16152         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16153         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16154         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16155         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16156         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16157         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16158         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16159         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16160         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16161         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16162         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16163         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16164         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16165         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16166         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16167         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16168         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16169         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16170         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16171         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16172         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16173         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16174         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16175         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16176         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16177         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16178         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16179         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16180         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16181         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16182         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16183         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16188         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16189         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16190         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16191         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16192         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16193         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16194         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16195         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16196         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16197         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16199 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
16201         [BZ #20079]
16202         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16204 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
16206         * benchtests/bench-timing.h (attribute_hidden): Undefine.
16208 2018-03-18  Richard Braun  <rbraun@sceen.net>
16210         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16211         thread reference.
16213 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
16215         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16216         (__libc_cleanup_fct): Define function.
16217         (__libc_cleanup_region_start, __libc_cleanup_region_end,
16218         __libc_cleanup_end): Rewrite implementation using
16219         __attribute__ ((__cleanup__)).
16220         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16221         * hurd/Makefile (routines): Add hurdlock.
16222         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16223         interface.
16224         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16225         * hurd/hurdpid.c: Include <lowlevellock.h>
16226         (_S_msg_proc_newids): Use lll_wait to synchronize.
16227         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16228         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16229         * mach/Makefile (lock-headers): Remove machine-lock.h.
16230         * mach/lock-intern.h: Include <lowlevellock.h> instead of
16231         <machine-lock.h>.
16232         (__spin_lock_t): New type.
16233         (__SPIN_LOCK_INITIALIZER): New macro.
16234         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16235         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16236         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16237         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16238         (__mutex_init): Initialize with lll.
16239         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16240         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16241         needing lll.
16242         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16243         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16244         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16245         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16246         (__setpgid): Use lll for synchronization.
16247         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16248         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16249         instead of <cthreads.h>.
16250         (_IO_lock_inexpensive): New macro
16251         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16252         (__libc_lock_self0): New declaration.
16253         (__libc_lock_owner_self): New macro.
16254         (__libc_key_t): Remove type.
16255         (_LIBC_LOCK_INITIALIZER): New macro.
16256         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16257         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16258         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16259         __libc_lock_define_initialized_recursive,
16260         __rtld_lock_define_initialized_recursive,
16261         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16262         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16263         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16264         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16265         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16266         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16267         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16268         New macros.
16269         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16270         * hurd/hurdlock.c: New file.
16271         * hurd/hurdlock.h: New file.
16272         * mach/lowlevellock.h: New file
16274 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16276         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16277         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16278         when opening a symlink with O_NOFOLLOW.
16279         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16280         path when flags contains O_NOFOLLOW.
16281         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16282         if flags contains O_DIRECTORY and the result is a directory.
16283         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16284         oneself when the pointer given in D is nul (as set by ext2fs).
16285         * sysdeps/mach/hurd/mlockall.c: New file.
16286         * sysdeps/mach/hurd/munlockall.c: New file.
16288 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16290         * hurd/hurdsig.c: Include <pthread.h>.
16291         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16292         get the signal thread stack layout.
16293         * hurd/Makefile (headers): Remove threadvar.h.
16294         (inline-headers): Remove threadvar.h.
16295         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16296         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16297         __hurd_threadvar_max, __hurd_errno_location.
16298         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16299         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16300         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16301         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16302         unless TLS is not initialized yet, in which case we do not need a
16303         critical section yet anyway.
16304         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16305         <machine-sp.h>.
16306         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16307         declarations.
16308         (__hurd_threadvar_index): Remove enum.
16309         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16310         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16311         inlines.
16312         (__hurd_reply_port0): New variable declaration.
16313         (__hurd_local_reply_port): New macro.
16314         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16315         (interrupted_reply_port_location): Add thread_t parameter.  Use it
16316         with THREAD_TCB to access thread-local variables.
16317         (_hurdsig_abort_rpcs): Pass ss->thread to
16318         interrupted_reply_port_location.
16319         (_hurd_internal_post_signal): Likewise.
16320         (_hurdsig_init): Use presence of cthread_fork instead of
16321         __hurd_threadvar_stack_mask to start signal thread by hand.
16322         Remove signal thread threadvar initialization.
16323         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16324         * hurd/sigunwind.c: Include <hurd/threadvar.h>
16325         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16326         of threadvar.
16327         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16328         __libc_lock_self0.
16329         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16330         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16331         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16332         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16333         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16334         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16335         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16336         define variables.
16337         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16338         <hurd/threadvar.h>.
16339         [IS_IN(rtld)] (rtld_errno): New variable.
16340         [IS_IN(rtld)] (__errno_location): New weak function.
16341         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16342         * sysdeps/mach/hurd/errno.c: Remove file.
16343         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16344         (__fork): Remove THREADVAR_SPACE macro and its use.
16345         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16346         variable.
16347         (init): Do not initialize threadvar.
16348         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16349         symbol.
16350         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16351         __hurd_local_reply_port instead of threadvar.
16352         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16353         _hurd_sigstate fields.
16354         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16355         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16356         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16357         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16358         instead of threadvar.
16359         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16360         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16361         (use_threadvar, global_reply_port): Remove variables.
16362         (__hurd_reply_port0): New variable.
16363         (__mig_get_reply_port): Use __hurd_local_reply_port and
16364         __hurd_reply_port0 instead of threadvar.
16365         (__mig_dealloc_reply_port): Likewise.
16366         (__mig_init): Do not initialize threadvar.
16367         * sysdeps/mach/hurd/profil.c: Fix comment.
16368         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16369         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16370         cthread_keycreate, cthread_getspecific, cthread_setspecific to
16371         __cthread_fork, __cthread_detach, __pthread_getattr_np,
16372         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16373         __cthread_setspecific.
16374         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16375         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16376         __cthread_t instead of cthread_fork, cthread_detach,
16377         pthread_getattr_np, pthread_attr_getstack.
16378         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16379         __cthread_keycreate.
16380         (cthread_getspecific): Rename to __cthread_getspecific.
16381         (cthread_setspecific): Rename to __cthread_setspecific.
16382         (__libc_getspecific): Use __cthread_getspecific instead of
16383         cthread_getspecific.
16384         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16385         __cthread_keycreate instead of cthread_keycreate.
16386         (__libc_setspecific): Use __cthread_setspecific instead of
16387         cthread_setspecific.
16388         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16389         Likewise.
16390         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16391         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
16392         testing whether it is defined.
16394 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16396         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16397         Define macro.
16398         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16399         * sysdeps/mach/i386/thread_state.h
16400         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16401         i386_THREAD_STATE.
16402         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16403         i386_THREAD_STATE.
16404         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16406         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16407         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16409         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16410         macros.
16411         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16412         descriptor instead of creating a new one.
16413         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16415         * mach/setup-thread.c: Include <ldsodefs.h>.
16416         (__mach_setup_thread): Call _dl_allocate_tls, pass
16417         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16418         MACHINE_THREAD_STATE_FLAVOR, before getting
16419         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16420         MACHINE_THREAD_STATE_FLAVOR with the result.
16421         * hurd/hurdfault.c (_hurdsig_fault_init): Call
16422         MACHINE_THREAD_STATE_FIX_NEW.
16423         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16424         too.  Add original thread parameter.
16426 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
16428         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16429         Remove inline function.
16431         * sysdeps/i386/fpu/libm-test-ulps: Update.
16432         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16434 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
16436         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16437         commit.
16439 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
16441         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16442         (__sincos_code): Remove define and undefine.
16443         [__FAST_MATH__] (__sincos): Remove inline function.
16444         [__FAST_MATH__] (__sincosf): Remove inline function.
16445         [__FAST_MATH__] (__sincosl): Remove inline function.
16446         (__atan2l): Remove inline functions.
16447         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16448         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16449         function.
16450         (floor): Remove inline function.
16451         (ceil): Likewise.
16452         [__FAST_MATH__] (__ldexp_code): Remove macro.
16453         [__FAST_MATH__] (ldexp): Remove inline function.
16454         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16455         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16456         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16457         [__USE_ISOC99] (__lrint_code): Remove macro.
16458         [__USE_ISOC99] (__llrint_code): Likewise.
16459         [__USE_ISOC99] (lrintf): Remove inline function.
16460         [__USE_ISOC99] (lrint): Likewise.
16461         [__USE_ISOC99] (lrintl): Likewise.
16462         [__USE_ISOC99] (llrint): Likewise.
16463         [__USE_ISOC99] (llrintf): Likewise.
16464         [__USE_ISOC99] (llrintl): Likewise.
16466 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16468         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16469         (__ieee754_sqrtf): Remove.
16470         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16471         (__ieee754_sqrtf): Remove.
16472         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16473         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16474         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16475         (__ieee754_sqrtf): Remove.
16476         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16477         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16478         (sqrtf): Remove.
16479         (sqrtl): Remove.
16480         (__ieee754_sqrt): Remove.
16481         (__ieee754_sqrtf): Remove.
16482         (__ieee754_sqrtl): Remove.
16483         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16484         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16485         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16486         (__ieee754_sqrtf): Remove.
16487         (__ieee754_sqrtl): Remove.
16489 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16491         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16492         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16493         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16494         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16495         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16496         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16497         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16498         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16499         Likewise.
16500         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16501         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16502         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16503         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16504         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16505         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16506         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16507         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16508         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16509         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16510         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16511         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16512         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16513         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16514         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16515         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16516         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16517         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16518         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16519         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16520         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16521         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16522         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16523         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16524         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16525         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16526         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16527         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16528         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16529         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16530         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16531         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16532         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16533         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16534         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16535         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16536         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16537         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16538         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16539         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16541 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16543         * include/math.h (sqrt): Declare with asm redirect.
16544         (sqrtf): Likewise.
16545         (sqrtl): Likewise.
16546         (sqrtf128): Likewise.
16547         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16548         nonlib and libnldbl with -fmath-errno.
16549         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16550         * math/w_sqrt_template.c: Likewise.
16551         * math/w_sqrtf_compat.c: Likewise.
16552         * math/w_sqrtl_compat.c: Likewise.
16553         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16554         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16555         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16556         complex.h.
16558 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16560         * benchtests/Makefile: Define _ISOMAC.
16561         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16562         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16563         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16564         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16565         * benchtests/bench-timing.h: Define attribute_hidden.
16567 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16569         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16570         mov + lsr.
16572 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
16574         [BZ #22963]
16575         * localedata/locales/cs_CZ (mon): Rename to...
16576         (alt_mon): This.
16577         (mon): Import from CLDR (genitive case).
16579 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
16581         [BZ #22937]
16582         * localedata/locales/el_CY (abmon): Rename to...
16583         (ab_alt_mon): This.
16584         (abmon): Import from CLDR (abbreviated genitive case).
16585         * localedata/locales/el_GR (abmon): Rename to...
16586         (ab_alt_mon): This.
16587         (abmon): Import from CLDR (abbreviated genitive case).
16589 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
16591         [BZ #22932]
16592         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16594 2018-03-15  Robert Buj  <robert.buj@gmail.com>
16596         [BZ #22848]
16597         * localedata/locales/ca_ES (abmon): Rename to...
16598         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16599         (mon): Rename to...
16600         (alt_mon): This.
16601         (abmon): Import from CLDR (genitive case, month names preceded by
16602         "de" or "d’").
16603         (mon): Likewise.
16604         (abday): Synchronize with CLDR.
16605         (d_t_fmt): Likewise.
16606         (d_fmt): Likewise.
16607         (am_pm): Likewise.
16609         (LC_TIME): Improve indentation.
16610         (LC_TELEPHONE): Likewise.
16611         (LC_NAME): Likewise.
16612         (LC_ADDRESS): Likewise.
16614 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
16616         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16617         (lrintf): Remove definitions used only with old GCC.
16618         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16619         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16620         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16621         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16622         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16623         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16624         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16625         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16626         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16627         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16628         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16629         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16630         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16631         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16632         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16633         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16634         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16635         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16636         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16637         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16638         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16639         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16640         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16641         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16642         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16643         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16644         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16645         [__FAST_MATH__] (__M_SQRT2): Remove macro.
16647 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16649         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16650         instruction to unbreak builds with binutils 2.26 and older.
16652 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16654         * sysdeps/aarch64/strncmp.S (count): New macro.
16655         (strncmp): Store misaligned length in SRC1 in COUNT.
16656         (mutual_align): Adjust.
16657         (misaligned8): Load dword at a time when it is safe.
16659 2018-03-12  Zack Weinberg  <zackw@panix.com>
16661         [BZ #1190]
16662         [BZ #19476]
16663         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16664         if the _IO_EOF_SEEN bit is already set; update commentary.
16665         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16666         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16668         * support/support_openpty.c, support/tty.h: New files.
16669         * support/Makefile (libsupport-routines): Add support_openpty.
16671         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16672         New test cases.
16673         * libio/Makefile (tests): Add tst-fgetc-after-eof.
16674         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16676 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
16678         * po/pt_BR.po: Update translations.
16680 2018-03-12  David Michael  <fedora.dm0@gmail.com>
16682         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16683         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16684         get a port to the startup server.
16686 2018-03-11  Zack Weinberg  <zackw@panix.com>
16688         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16689         before nldbl-compat.h.
16691 2018-03-10  Zack Weinberg  <zackw@panix.com>
16693         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16694         math.h or math_private.h.
16696         * sysdeps/alpha/fpu/s_isnan.c
16697         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16698         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16699         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16700         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16701         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16702         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16703         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16704         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16705         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16708         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16709         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16710         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16711         Include math_private.h.
16713         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16714         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16715         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16716         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16717         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16718         * sysdeps/powerpc/power7/fpu/s_logb.c:
16719         Include math.h and math_private.h.
16721         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16722         uses of $at in .set noat / .set at.
16724 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
16726         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16727         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16728         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16729         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16730         Likewise.
16732 2018-03-09  Florian Weimer  <fweimer@redhat.com>
16734         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16735         in comment.
16737 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
16739         [BZ #22919]
16740         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16741         Add nop before __startcontext, add explaining comments.
16743 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16745         [BZ #22926]
16746         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16747         empty for __SPE__.
16748         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16749         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16750         Do not build hardware transactional code for __SPE__.
16751         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16752         (__lll_trylock_elision): Likewise.
16753         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16754         (__lll_unlock_elision): Likewise.
16756         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16757         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16758         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16759         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16760         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16761         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16762         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16763         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16764         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16765         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16766         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16767         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16768         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16769         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16770         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16771         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16772         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16773         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16774         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16775         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16776         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16777         * sysdeps/unix/sysv/linux/arm/kernel-features.h
16778         (__ASSUME_CLONE_BACKWARDS): Define.
16779         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16780         __clone2 if __NR_clone2 is defined.
16781         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16782         (__ASSUME_CLONE_BACKWARDS): Likewise.
16783         * sysdeps/unix/sysv/linux/i386/kernel-features.h
16784         (__ASSUME_CLONE_BACKWARDS): Likewise.
16785         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16786         (__ASSUME_CLONE2): Likewise.
16787         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16788         (__ASSUME_CLONE_BACKWARDS3): Likewise.
16789         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16790         variants and the define architecture can use.
16791         (__ASSUME_CLONE_DEFAULT): Define as default.
16792         * sysdeps/unix/sysv/linux/mips/kernel-features.h
16793         (__ASSUME_CLONE_BACKWARDS): Likewise.
16794         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16795         (__ASSUME_CLONE_BACKWARDS): Likewise.
16796         * sysdeps/unix/sysv/linux/s390/kernel-features.h
16797         (__ASSUME_CLONE_BACKWARDS2): Likewise.
16799 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16801         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16803         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16804         time.
16806         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16807         (do_test_limit): Likewise.
16809         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16810         for every implementation.
16811         (do_test): Likewise.
16813         * benchtests/bench-strncmp.c: Convert output to json.
16815 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16817         * io/futimens.c: Add missing start-of-file descriptive comment.
16818         * io/utime.c: Likewise.
16819         * misc/futimesat.c: Likewise.
16820         * misc/utimes.c: Likewise.
16821         * sysdeps/mach/hurd/futimesat.c: Likewise.
16822         * sysdeps/mach/hurd/utimes.c: Likewise.
16823         * sysdeps/posix/utime.c: Likewise.
16824         * sysdeps/posix/utimes.c: Likewise.
16825         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16826         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16827         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16828         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16830 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16832         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16833         hurd_futimes.
16834         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16835         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16836         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16837         (__futimens): Move implementation to...
16838         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16839         utime_tvalue_from_tspec): ... new helper functions.
16840         (hurd_futimens): New function.
16841         * sysdeps/mach/hurd/futimesat.c: New file.
16842         * sysdeps/mach/hurd/utimensat.c: New file.
16844 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
16846         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16847         UTIME_OMIT): New macros.
16848         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16849         before reverting to converting time spec to time value and calling
16850         __file_utimes.
16851         * sysdeps/mach/hurd/utime-helper.c: New file.
16852         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16853         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16854         reverting to utime_tvalue_from_tval and __file_utimes.
16855         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16856         (__lutimes): Just call hurd_futimens after lookup.
16857         * sysdeps/mach/hurd/utimes.c: Likewise.
16859 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16861         * bits/sigaction.h: Add include guard.
16862         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16863         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16864         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16865         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16866         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16867         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16868         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16869         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16870         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16872 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
16874         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16875         -Wmaybe-uninitialized for -Os.
16876         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16877         this disabling.
16879 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16881         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16882         __INO_T_MATCHES_INO64_T is defined.
16883         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16884         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16885         of definition.
16886         * dirent/alphasort64.c: Likewise.
16887         * dirent/scandir.c: Likewise.
16888         * dirent/scandir64-tail.c: Likewise.
16889         * dirent/scandir64.c: Likewise.
16890         * dirent/scandirat.c: Likewise.
16891         * dirent/scandirat64.c: Likewise.
16892         * dirent/versionsort.c: Likewise.
16893         * dirent/versionsort64.c: Likewise.
16894         * include/dirent.h: Likewise.
16896         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16897         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16898         for socketpair endpoint.
16899         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16900         WRITE_BUFFER_SIZE as buffer size for sending socket.
16901         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16902         issue on system where send is implemented with sendto syscall.
16903         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16904         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16905         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16906         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16908         [BZ #21269]
16909         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16910         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16911         sa_restorer for vDSO case.
16912         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16914 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16916         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16917         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16918         * hurd/hurd/ioctl.h: Include <mach/port.h>
16919         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16920         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16921         <mach/mach_types.h> and <mach/message.h>.
16922         (headers): Move mach/param.h to bits/mach/param.h.
16923         * sysdeps/mach/i386/mach/param.h: Move file to ...
16924         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
16925         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16926         of <mach/param.h>.
16927         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16928         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16929         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16930         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16931         trivial, for C++ conformity.
16932         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16933         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16934         Process mig output through $(migheadersed).
16935         * hurd/Makefile (migheadersed): Define variable.
16936         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16937         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16938         headers.
16939         * hurd/hurd.h: Include <bits/types/sigset_t.h>
16940         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16941         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16942         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16943         <bits/types/sigset_t.h>.
16944         [!defined __USE_GNU]: Do not #error out.
16945         (struct hurd_sigstate): Use _NSIG instead of NSIG.
16946         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16947         Include <stddef.h> and <bits/types/sigset_t.h>
16948         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16949         instead of sighandler_t.
16950         * stdlib/errno.h (error_t): Move definition to...
16951         * bits/types/error_t.h: ... new header.
16952         * stdlib/Makefile (headers): Add bits/types/error_t.h.
16953         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16954         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16955         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16956         * hurd/hurd.h: Include <bits/types/error_t.h>
16957         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16958         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16959         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16960         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16961         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16962         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16963         * sysdeps/mach/hurd/futimens.c: New file.
16965 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
16967         [BZ #22918]
16968         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16969         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16970         * nscd/gai.c (__nss_hosts_database): Readd definition.
16971         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16972         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16973         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16975 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
16977         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16978         (ifunc_one): Likewise.
16980 2018-03-01  DJ Delorie  <dj@delorie.com>
16982         [BZ #22342]
16983         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16984         key value.
16986 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
16988         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16989         `match_pid' parameter.
16990         (td_ta_thr_iter): Update accordingly.
16992 2018-03-01  Florian Weimer  <fweimer@redhat.com>
16994         * nptl/Makefile (install-lib-ldscripts): Remove.
16995         (install): Remove rule.
16996         ($(inst_libdir)/libpthread.so): Likewise.
16998 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17000         [BZ #22896]
17001         * localedata/locales/an_ES: update month and day names,
17002         improve d_fmt, improve postal_fmt, add country_post,
17003         add country_isbn
17005 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17007         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17008         Ukrainian instead of Bulgarian.
17010 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17012         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17013         reference.
17015 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17017         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
17018         * nptl/Makefile (routines): Add pthread_atfork.
17019         (static-only-routines): Set to pthread_atfork.
17020         (libpthread-routines): Remove pthread_atfork.
17021         (libpthread-static-only-routines): Remove.
17022         (install): Update comment.
17023         (libpthread.so): Do not install libpthread_nonshared.a.
17024         (tests): Do not link with libpthread_nonshared.a.
17025         (generated): Remove libpthread_nonshared.a.
17026         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17027         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17028         with libpthread_nonshared.a.
17030 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
17032         [BZ #22902]
17033         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17034         (libc_feholdexcept_setroundf128): New macro.
17035         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17037         [BZ #15105]
17038         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17039         libc_hidden_def.
17040         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17041         * include/inttypes.h: New file.
17043 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
17045         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17046         -Os in two more places.
17048 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17050         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17051         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17052         be sorted correctly at the moment because of a bug.
17054 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17056         [BZ #22550] - es_ES locale (and other es_* locales): collation should
17057         treat ñ as a primary different character, sync the collation
17058         for Spanish with CLDR.
17059         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17060         * localedata/Makefile: Add new test files.
17061         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17062         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17063         collation order.
17064         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17065         * localedata/am_ET.UTF-8.in: New test file.
17066         * localedata/az_AZ.UTF-8.in: Likewise.
17067         * localedata/be_BY.UTF-8.in: Likewise.
17068         * localedata/ber_DZ.UTF-8.in: Likewise.
17069         * localedata/ber_MA.UTF-8.in: Likewise.
17070         * localedata/bg_BG.UTF-8.in: Likewise.
17071         * localedata/br_FR.UTF-8.in: Likewise.
17072         * localedata/cmn_TW.UTF-8.in: Likewise.
17073         * localedata/crh_UA.UTF-8.in: Likewise.
17074         * localedata/csb_PL.UTF-8.in: Likewise.
17075         * localedata/cv_RU.UTF-8.in: Likewise.
17076         * localedata/cy_GB.UTF-8.in: Likewise.
17077         * localedata/dz_BT.UTF-8.in: Likewise.
17078         * localedata/eo.UTF-8.in: Likewise.
17079         * localedata/es_ES.UTF-8.in: Likewise.
17080         * localedata/fa_IR.UTF-8.in: Likewise.
17081         * localedata/fi_FI.UTF-8.in: Likewise.
17082         * localedata/fil_PH.UTF-8.in: Likewise.
17083         * localedata/fur_IT.UTF-8.in: Likewise.
17084         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17085         * localedata/ha_NG.UTF-8.in: Likewise.
17086         * localedata/ig_NG.UTF-8.in: Likewise.
17087         * localedata/ik_CA.UTF-8.in: Likewise.
17088         * localedata/kk_KZ.UTF-8.in: Likewise.
17089         * localedata/ku_TR.UTF-8.in: Likewise.
17090         * localedata/ky_KG.UTF-8.in: Likewise.
17091         * localedata/ln_CD.UTF-8.in: Likewise.
17092         * localedata/mi_NZ.UTF-8.in: Likewise.
17093         * localedata/ml_IN.UTF-8.in: Likewise.
17094         * localedata/mn_MN.UTF-8.in: Likewise.
17095         * localedata/mr_IN.UTF-8.in: Likewise.
17096         * localedata/mt_MT.UTF-8.in: Likewise.
17097         * localedata/nb_NO.UTF-8.in: Likewise.
17098         * localedata/om_KE.UTF-8.in: Likewise.
17099         * localedata/os_RU.UTF-8.in: Likewise.
17100         * localedata/ps_AF.UTF-8.in: Likewise.
17101         * localedata/ro_RO.UTF-8.in: Likewise.
17102         * localedata/ru_RU.UTF-8.in: Likewise.
17103         * localedata/sc_IT.UTF-8.in: Likewise.
17104         * localedata/se_NO.UTF-8.in: Likewise.
17105         * localedata/sq_AL.UTF-8.in: Likewise.
17106         * localedata/sv_SE.UTF-8.in: Likewise.
17107         * localedata/szl_PL.UTF-8.in: Likewise.
17108         * localedata/tg_TJ.UTF-8.in: Likewise.
17109         * localedata/tk_TM.UTF-8.in: Likewise.
17110         * localedata/tt_RU.UTF-8.in: Likewise.
17111         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17112         * localedata/ug_CN.UTF-8.in: Likewise.
17113         * localedata/uz_UZ.UTF-8.in: Likewise.
17114         * localedata/vi_VN.UTF-8.in: Likewise.
17115         * localedata/yi_US.UTF-8.in: Likewise.
17116         * localedata/yo_NG.UTF-8.in: Likewise.
17117         * localedata/zh_CN.UTF-8.in: Likewise.
17118         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17119         file and fix bugs in the collation.
17120         * localedata/locales/az_AZ: Likewise.
17121         * localedata/locales/be_BY: Likewise.
17122         * localedata/locales/ber_DZ: Likewise.
17123         * localedata/locales/ber_MA: Likewise.
17124         * localedata/locales/bg_BG: Likewise.
17125         * localedata/locales/br_FR: Likewise.
17126         * localedata/locales/br_FR@euro: Likewise.
17127         * localedata/locales/ca_ES: Likewise.
17128         * localedata/locales/cns11643_stroke: Likewise.
17129         * localedata/locales/crh_UA: Likewise.
17130         * localedata/locales/cs_CZ: Likewise.
17131         * localedata/locales/csb_PL: Likewise.
17132         * localedata/locales/cv_RU: Likewise.
17133         * localedata/locales/cy_GB: Likewise.
17134         * localedata/locales/da_DK: Likewise.
17135         * localedata/locales/dz_BT: Likewise.
17136         * localedata/locales/en_CA: Likewise.
17137         * localedata/locales/eo: Likewise.
17138         * localedata/locales/es_CU: Likewise.
17139         * localedata/locales/es_EC: Likewise.
17140         * localedata/locales/es_ES: Likewise.
17141         * localedata/locales/es_US: Likewise.
17142         * localedata/locales/et_EE: Likewise.
17143         * localedata/locales/fa_IR: Likewise.
17144         * localedata/locales/fi_FI: Likewise.
17145         * localedata/locales/fil_PH: Likewise.
17146         * localedata/locales/fur_IT: Likewise.
17147         * localedata/locales/gez_ER@abegede: Likewise.
17148         * localedata/locales/ha_NG: Likewise.
17149         * localedata/locales/hr_HR: Likewise.
17150         * localedata/locales/hsb_DE: Likewise.
17151         * localedata/locales/hu_HU: Likewise.
17152         * localedata/locales/ig_NG: Likewise.
17153         * localedata/locales/ik_CA: Likewise.
17154         * localedata/locales/is_IS: Likewise.
17155         * localedata/locales/iso14651_t1_pinyin: Likewise.
17156         * localedata/locales/kk_KZ: Likewise.
17157         * localedata/locales/ku_TR: Likewise.
17158         * localedata/locales/ky_KG: Likewise.
17159         * localedata/locales/ln_CD: Likewise.
17160         * localedata/locales/lt_LT: Likewise.
17161         * localedata/locales/lv_LV: Likewise.
17162         * localedata/locales/mi_NZ: Likewise.
17163         * localedata/locales/ml_IN: Likewise.
17164         * localedata/locales/mn_MN: Likewise.
17165         * localedata/locales/mr_IN: Likewise.
17166         * localedata/locales/mt_MT: Likewise.
17167         * localedata/locales/nb_NO: Likewise.
17168         * localedata/locales/om_KE: Likewise.
17169         * localedata/locales/os_RU: Likewise.
17170         * localedata/locales/pl_PL: Likewise.
17171         * localedata/locales/ps_AF: Likewise.
17172         * localedata/locales/ro_RO: Likewise.
17173         * localedata/locales/ru_RU: Likewise.
17174         * localedata/locales/ru_UA: Likewise.
17175         * localedata/locales/sc_IT: Likewise.
17176         * localedata/locales/se_NO: Likewise.
17177         * localedata/locales/si_LK: Likewise.
17178         * localedata/locales/sq_AL: Likewise.
17179         * localedata/locales/sv_FI: Likewise.
17180         * localedata/locales/sv_FI@euro: Likewise.
17181         * localedata/locales/sv_SE: Likewise.
17182         * localedata/locales/szl_PL: Likewise.
17183         * localedata/locales/tg_TJ: Likewise.
17184         * localedata/locales/ti_ER: Likewise.
17185         * localedata/locales/tk_TM: Likewise.
17186         * localedata/locales/tl_PH: Likewise.
17187         * localedata/locales/tr_TR: Likewise.
17188         * localedata/locales/tt_RU: Likewise.
17189         * localedata/locales/tt_RU@iqtelif: Likewise.
17190         * localedata/locales/ug_CN: Likewise.
17191         * localedata/locales/uk_UA: Likewise.
17192         * localedata/locales/uz_UZ: Likewise.
17193         * localedata/locales/uz_UZ@cyrillic: Likewise.
17194         * localedata/locales/vi_VN: Likewise.
17195         * localedata/locales/yi_US: Likewise.
17196         * localedata/locales/yo_NG: Likewise.
17198 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17200         * gen-locales.mk: Make test files which contain @ modifiers in their
17201         name work.
17202         * localedata/gen-locale.sh: Likewise.
17204 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17206         * posix/tst-fnmatch.input: Fix results for range expressions
17207         for non C locales.
17208         * posix/tst-regexloc.c: Do not use a range expression for
17209         de_DE.ISO-8859-1 locale.
17211 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17213         * posix/bug-regex5.c: Fix test case because with the new
17214         iso14651_t1_common file, the da_DK locale now has 6 collating elements
17215         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17216         file.
17218 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17220         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17221         downloaded from ISO, the collation order of @-. and space has changed.
17222         Therefore, this test file needed to be adapted.
17223         * localedata/fr_CA.UTF-8.in: Likewise.
17224         * localedata/fr_FR.UTF-8.in: Likewise.
17225         * localedata/uk_UA.UTF-8.in: Likewise.
17227 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17229         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17230         order of ȥ in the new iso14651_t1_common file.
17231         * localedata/pl_PL.UTF-8.in: Likewise.
17233 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17235         * localedata/locales/iso14651_t1_common: Add sections for various
17236         scripts to the iso14651_t1_common file.
17238 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17240         * localedata/locales/iso14651_t1_common: Use the code point of a
17241         character in the fourth collation level instead of IGNORE for all
17242         entries which have IGNORE on all 4 levels.
17244 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17246         * localedata/locales/iso14651_t1_common: Add some convenient collation
17247         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17248         rules similar to those in CLDR.
17250 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17252         * localedata/locales/iso14651_t1_common: The new version of this
17253         file downloaded from ISO contained several syntax errors which
17254         are fixed by this patch.
17256 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17258         * localedata/locales/iso14651_t1_common: replace all <U.....>
17259         with <U000.....> because glibc understands only 4 digit or 8 digit
17261 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17263         * localedata/locales/iso14651_t1_common: Necessary changes
17264         to make the file downloaded from ISO usable by glibc.
17266 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17268         [BZ #14095]
17269         * localedata/locales/iso14651_t1_common: Update file to
17270         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17272 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17274         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17275         of <nptl/pthreadP.h>
17276         (thread_attr_compare): Move function to...
17277         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17278         * sysdeps/nptl/timer_routines.h: ... new header.
17279         * sysdeps/mach/hurd/gai_misc.h: New file.
17281 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
17283         * string/strcoll_l.c: Include <libc-diag.h>.
17284         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17285         declarations of seq1 and seq2.
17287         [BZ #15105]
17288         * stdlib/atoi.c (atoi): Use libc_hidden_def.
17289         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17291 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
17293         [BZ #22433]
17294         [BZ #22807]
17295         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17296         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17297         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17298         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17299         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17300         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17302 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17304         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17305         macros used in __ptrace_request.
17307 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
17309         [BZ #22792]
17310         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17311         to $(CC).
17312         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17313         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17314         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17315         <tcb-offsets.h>.
17317 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
17319         [BZ #15105]
17320         * ctype/ctype.c (tolower): Use libc_hidden_def.
17321         (toupper): Likewise.
17322         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17323         [!_ISOMAC] (toupper): Likewise.
17325 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17327         * localedata/Makefile: Remove --quiet argument when
17328         installing locales
17330 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17332         [BZ #17438]
17333         * localedata/locales/pt_BR (LC_TIME): use / instead of -
17334         in d_fmt.
17335         * localedata/locales/pt_PT (LC_TIME): likewise
17337 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17339         [BZ #22646]
17340         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17341         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17342         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17344 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17348         * nptl/Makefile (routines): Remove unregister-atfork.
17349         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17350         (fork_handler_alloc): Remove function.
17351         (fork_handlers, fork_handler_init): New variables.
17352         (__fork_lock): Rename to atfork_lock.
17353         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17354         to use a dynamic array to add/remove atfork handlers.
17355         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17356         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17357         Remove declaration.
17358         (fork_handler): Remove next, refcntr, and need_signal member.
17359         (__run_fork_handler_type): New enum.
17360         (__run_fork_handlers): New prototype.
17361         * nptl/register-atfork.c: Remove file.
17362         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17364         * sysdeps/nptl/nptl-signals.h: Move to ...
17365         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
17366         comments.
17367         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17368         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17369         unnecessary check for SIGTIMER.
17370         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17371         remove unnecessary removal of SIGTIMER.
17372         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17373         include-signals.h rename.
17374         * nptl/pthreadP.h: Likewise.
17375         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17376         __is_internal_signal instead of __nptl_is_internal_signal.
17378 2018-02-22  Andrew Waterman  <andrew@sifive.com>
17380         [BZ # 22884]
17381         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17382         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17383         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17384         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17386 2018-02-22  DJ Delorie  <dj@delorie.com>
17388         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17390 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17392         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17393         do_misaligned, not misaligned8.
17395 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
17397         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17398         Add memcpy_thunderx2.
17399         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17400         Increment to 4.
17401         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17402         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17403         and IS_THUNDERX2PA checks.
17404         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17405         Use macro to set name appropriately.
17406         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17407         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17408         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17409         New macro.
17410         (IS_THUNDERX2): New macro.
17412 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
17414         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17416 2018-02-21  Zack Weinberg  <zackw@panix.com>
17418         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17419         Define here, unconditionally.
17420         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17421         * libio/libioP.h: Remove #if 0 blocks.
17422         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17423         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17424         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
17426         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17427         Assume weak_alias is always defined.
17429         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17430         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17431         Remove #if 0 and #ifdef TODO blocks.
17432         Assume text_set_element is always defined.
17434         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17435         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17436         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17438         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17439         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17440         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17441         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17442         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17443         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17444         Reformat bit flags for _flags field to make occupancy clearer.
17445         Update commentary.
17446         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17447         Keep definitions consistent with those in libio/libio.h.
17449         * libio/libio.h (_IO_file_flags): Remove macro.
17450         All uses changed to _flags.
17452         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17453         (__HAVE_COLUMN, _IO_BE): Don't define.
17454         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17455         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17456         * libio/libioP.h (EOF): Don't define.
17457         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17458         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17459         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17460         testing _IO_UNIFIED_JUMPTABLES.
17462         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17463         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17464         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17465         (_IO_size_t): Delete; all uses changed to size_t.
17466         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17467         (_IO_off_t): Delete; all uses changed to off_t.
17468         (_IO_off64_t): Delete; all uses changed to off64_t.
17469         (_IO_pid_t): Delete; all uses changed to pid_t.
17470         (_IO_uid_t): Delete; all uses changed to uid_t.
17471         (_IO_wint_t): Delete; all uses changed to wint_t.
17472         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17473         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17474         (_IO_cookie_io_functions_t): Delete; all uses changed to
17475         cookie_io_functions_t.
17476         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17477         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17478         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17479         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17481         * libio/iofopncook.c: Remove unnecessary forward declarations.
17482         * libio/iolibio.h: Correct outdated commentary.
17483         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17484         * stdio-common/fxprintf.c (__fxprintf_nocancel):
17485         Remove unnecessary casts.
17486         * stdio-common/getline.c: Use _IO_getdelim directly.
17487         Don't redefine ssize_t.
17488         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17489         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17490         Remove outdated comments.
17491         * stdio-common/vfscanf.c: Don't redefine va_list.
17493         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17494         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17495         Remove preprocessor conditionals on _LIBC and __USE_GNU,
17496         which are always true, and __cplusplus, which is always false.
17498 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
17500         [BZ #15105]
17501         [BZ #19463]
17502         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17503         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17504         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
17505         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17506         libc_hidden_proto.
17507         [!_ISOMAC] (putc_unlocked): Likewise.
17508         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17509         define inline if [__USE_EXTERN_INLINES].
17510         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17511         putc_unlocked.
17513         [BZ #15105]
17514         [BZ #19463]
17515         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17516         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17517         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17518         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17519         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17520         getc_unlocked.
17521         * time/tzfile.c (__tzfile_read): Likewise.
17523 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
17525         [BZ #22517]
17526         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17528 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
17530         * io/fcntl.h: Fix a typo in a comment.
17532 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
17534         [BZ #22862]
17535         * include/features.h: Add _ISOC11_SOURCE to test for whether to
17536         define _DEFAULT_SOURCE.
17537         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17539 2018-02-21  Florian Weimer  <fweimer@redhat.com>
17541         [BZ #20890]
17542         * elf/cache.c (save_cache): Call fsync on temporary file before
17543         renaming it.
17544         (save_aux_cache): Call fdatasync on temporary file before renaming
17545         it.
17547 2018-02-21  Florian Weimer  <fweimer@redhat.com>
17549         [BZ #22787]
17550         * include/caller.h: Remove file.
17551         * elf/dl-caller.c: Likewise.
17552         * elf/Makefile (dl-routines): Remove dl-caller.
17553         (shared-only-routines): Do not add dl-caller.
17554         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17555         __check_caller.
17556         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17557         member.
17558         (dl_open_worker): Do not call __check_caller.
17559         (_dl_open): Do not set caller_dl_open member.
17560         * elf/rtld.c (_rtld_global_ro): Do not initialize
17561         _dl_check_caller member.
17562         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17563         _dl_check_caller member.
17564         (_dl_check_caller): Remove declaration.
17565         * sysdeps/unix/sysv/linux/dl-execstack.c
17566         (_dl_make_stack_executable): Do not call __check_caller.
17568 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17570         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17571         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17573 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
17575         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17576         description.
17578 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
17580         [BZ #16335]
17581         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17582         of 199606L, 200112L, and 200809L.
17583         (_XOPEN_SOURCE): Document special values of 600 and 700.
17584         (_ISOC11_SOURCE): Document macro.
17585         (_ATFILE_SOURCE): Likewise.
17586         (_FORTIFY_SOURCE): Likewise.
17588 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
17590         [BZ #15105]
17591         [BZ #19463]
17592         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17593         and define as weak alias of __ferror_unlocked.  Use
17594         libc_hidden_weak.
17595         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17596         libc_hidden_proto.
17597         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17598         function if [__USE_EXTERN_INLINES].
17599         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17600         ferror_unlocked.
17602 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
17604         [BZ #6889]
17605         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17607 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
17609         [BZ #22818]
17610         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17611         the GLIBC_2.1 version.
17613 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
17615         [BZ #21508]
17616         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17617         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17618         intl/tst-gettext-de.po from po/de.po by removing the
17619         POT-Creation-Date line.
17620         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17621         ../po/de.po.
17622         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17623         ../po/de.po.
17625 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17627         * mach/Makefile (headers): Add mach/param.h.
17628         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17629         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17630         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17631         (__ptsname_r): Move implementation to...
17632         (__ptsname_internal): ... new function.  Add filling the STP
17633         structure.
17635 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
17637         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17638         idouble to 1 ULP.
17640 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
17642         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17643         syntax.
17645 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
17647         * nptl/Makefile (tst-mutex8-ENV): Delete.
17648         * nptl/tst-mutex8.c (check_type):
17649         Add runtime check if mutex will be elided.
17651 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
17653         [BZ #20980]
17654         [BZ #21234]
17655         * manual/install.texi (Configuring and compiling): Describe
17656         passing CC and CFLAGS on configure command line, not as
17657         environment variables.  Use @code markup on those variables.
17658         Specify what options go in CC and what go in CFLAGS.  Note the
17659         requirement to compile with optimization.
17660         * INSTALL: Regenerated.
17662         [BZ #18124]
17663         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17664         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17665         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17666         __sigprocmask instead of sigprocmask.
17667         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17668         Likewise.
17669         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17670         __sigsetjmp and sigprocmask.
17672         [BZ #15105]
17673         * include/argz.h (argz_next): Use libc_hidden_proto.
17674         (__argz_next): Likewise.
17675         * string-argz-next.c (__argz_next): Use libc_hidden_def.
17676         (argz_next): Use libc_hidden_weak.
17678         [BZ #15105]
17679         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17680         libc_hidden_proto.
17681         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17682         libc_hidden_def.
17684         [BZ #15105]
17685         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17686         libc_hidden_proto.
17687         * libio/iofputs.c (fputs): Use libc_hidden_weak.
17689         [BZ #15105]
17690         [BZ #19463]
17691         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17692         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
17693         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17694         (__feof_unlocked): New declaration, and inline function if
17695         [__USE_EXTERN_INLINES].
17696         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17697         instead of feof_unlocked.
17698         * intl/localealias.c [_LIBC] (FEOF): Likewise.
17699         * nss/nsswitch.c (nss_parse_file): Likewise.
17700         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17701         Likewise.
17702         * time/getdate.c (__getdate_r): Likewise.
17703         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17704         Define as macro to call __feof_unlocked.
17706 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
17708         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17710 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
17712         * math/Makefile: Remove mpexp.c and mplog.c
17713         * sysdeps/i386/fpu/mpexp.c: Delete file.
17714         * sysdeps/i386/fpu/mplog.c: Likewise.
17715         * sysdeps/ia64/fpu/mpexp.c: Likewise.
17716         * sysdeps/ia64/fpu/mplog.c: Likewise.
17717         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17718         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17719         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17720         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17721         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17722         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17723         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17724         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17725         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17726         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17727         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17728         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17729         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17730         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17731         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17732         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17734 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
17736         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17738 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17740         * sysdeps/sh/libm-test-ulps: Update.
17742 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17744         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17745         idouble to 1 ULP.
17747 2018-02-12  Zack Weinberg  <zackw@panix.com>
17749         [BZ #19239]
17750         * posix/sys/types.h: Don't include sys/sysmacros.h.
17751         * misc/sys/sysmacros.h: Remove the conditional deprecation
17752         warnings for the macros defined by this header.
17754 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17756         * manual/probes.texi: Remove slowexp probes.
17757         * math/Makefile: Remove slowexp.
17758         * sysdeps/generic/math_private.h (__slowexp): Remove.
17759         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17760         document error bounds.
17761         * sysdeps/i386/fpu/slowexp.c: Remove.
17762         * sysdeps/ia64/fpu/slowexp.c: Remove.
17763         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17764         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17765         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17766         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17767         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17768         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17769         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17770         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17771         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17772         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17773         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17775 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
17777         [BZ #13932]
17778         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17779         * benchtests/pow-inputs: Update comment for slow path cases.
17780         * manual/probes.texi (slowpow_p10): Delete removed probe.
17781         (slowpow_p10): Likewise.
17782         * math/Makefile: Remove halfulp.c and slowpow.c.
17783         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17784         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17785         (__halfulp): Remove.
17786         (__slowpow): Remove.
17787         * sysdeps/i386/fpu/halfulp.c: Delete file.
17788         * sysdeps/i386/fpu/slowpow.c: Likewise.
17789         * sysdeps/ia64/fpu/halfulp.c: Likewise.
17790         * sysdeps/ia64/fpu/slowpow.c: Likewise.
17791         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17792         improve comments and add error analysis.
17793         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17794         (power1): Remove function:
17795         (log1): Remove error argument, add error analysis.
17796         (my_log2): Remove function.
17797         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17798         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17799         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17800         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17801         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17802         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17803         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17804         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17805         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17806         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17807         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17808         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17809         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17810         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17812 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17814         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17815         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17817 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
17819         [BZ #22433]
17820         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17821         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17822         and PTRACE_SETHBPREGS.
17824 2018-02-10  Zack Weinberg  <zackw@panix.com>
17826         [BZ #22830]
17827         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17828         correctly.
17829         * malloc/tst-malloc-stats-cancellation.c: New test case.
17830         * malloc/Makefile: Add new test case.
17832 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
17834         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17836 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
17838         * math/Makefile (libm-narrow-fns): Add add.
17839         (libm-test-funcs-narrow): Likewise.
17840         * math/Versions (GLIBC_2.28): Add narrowing add functions.
17841         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17842         * math/gen-auto-libm-tests.c (test_functions): Add add.
17843         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17844         (NARROW_ADD_ROUND_TO_ODD): Likewise.
17845         (NARROW_ADD_TRIVIAL): Likewise.
17846         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17847         macro.
17848         (__daddl): Likewise.
17849         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17850         dadd.
17851         (CFLAGS-nldbl-dadd.c): New variable.
17852         (CFLAGS-nldbl-fadd.c): Likewise.
17853         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17854         __nldbl_daddl.
17855         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17856         prototype.
17857         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17858         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17859         * math/auto-libm-test-in: Add tests of add.
17860         * math/auto-libm-test-out-narrow-add: New generated file.
17861         * math/libm-test-narrow-add.inc: New file.
17862         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17863         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17864         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17865         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17866         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17867         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17868         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17869         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17870         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17871         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17872         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17873         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17874         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17875         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17876         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17877         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17878         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17879         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17880         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17881         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17882         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17883         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17884         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17885         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17886         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17887         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17888         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17889         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17890         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17891         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17892         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17893         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17898         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17899         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17900         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17901         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17902         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17903         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17904         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17905         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17906         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17907         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17909         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17910         (f128-pairs): New variable.
17911         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17912         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17913         to CFLAGS.
17914         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17915         Also make tests add $(f128-loader-link) to gnulib-tests.
17917 2018-02-09  DJ Delorie  <dj@redhat.com>
17919         [BZ #22827]
17920         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17921         64-bit ELF type for 64-bit ELF objects.
17923 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
17925         * math/libm-test-driver.c (snan_tests_arg): New variable.
17926         * math/libm-test-support.h (snan_tests_arg): New declaration.
17927         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17929         * math/Makefile (test-type-pairs): New variable.
17930         (test-type-pairs-f64xf128-yes): Likewise.
17931         (tests): Add test-narrow-macros.
17932         (libm-test-funcs-narrow): New variable.
17933         (libm-test-c-narrow): Likewise.
17934         (generated): Add $(libm-test-c-narrow).
17935         (libm-tests-base-narrow): New variable.
17936         (libm-tests-narrow): Likewise.
17937         (libm-tests): Add $(libm-tests-narrow).
17938         (libm-tests-for-type): Handle $(libm-tests-narrow).
17939         (libm-test-c-narrow-obj): New variable.
17940         ($(libm-test-c-narrow-obj)): New rule.
17941         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17942         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17943         $(o-iterator) to set dependencies and CFLAGS.
17944         * math/gen-auto-libm-tests.c: Document use for narrowing
17945         functions.
17946         (output_for_one_input_case): Take argument NARROW.
17947         (generate_output): Likewise.  Update call to
17948         output_for_one_input_case.
17949         (main): Take --narrow option.  Update call to generate_output.
17950         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17951         (apply_lit): Update call to _apply_lit.
17952         (apply_arglit): New function.
17953         (parse_args): Handle "a" arguments.
17954         (parse_auto_input): Handle format names using ":".
17955         * math/README.libm-test: Document "a" parameter type.
17956         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17957         (ARG_TYPE_TRUE_MIN): Likewise.
17958         (ARG_TYPE_MAX): Likwise.
17959         (ARG_MIN_EXP): Likewise.
17960         (ARG_MAX_EXP): Likewise.
17961         (ARG_MANT_DIG): Likewise.
17962         (TEST_COND_arg_ibm128): Likewise.
17963         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17964         (TEST_COND_arg_fmt): New macro.
17965         (init_max_error): Update prototype.
17966         * math/libm-test-support.c (test_ibm128): New variable.
17967         (init_max_error): Take argument testing_ibm128 and set test_ibm128
17968         instead of using [TEST_COND_ibm128] conditional.
17969         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17970         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17971         [TEST_NARROW] (TEST_MSG): New definition.
17972         (arg_plus_zero): New macro.
17973         (arg_minus_zero): Likewise.
17974         (arg_plus_infty): Likewise.
17975         (arg_minus_infty): Likewise.
17976         (arg_qnan_value_pl): Likewise.
17977         (arg_qnan_value): Likewise.
17978         (arg_snan_value_pl): Likewise.
17979         (arg_snan_value): Likewise.
17980         (arg_max_value): Likewise.
17981         (arg_min_value): Likewise.
17982         (arg_min_subnorm_value): Likewise.
17983         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17984         (RUN_TEST_LOOP_aa_f): New macro.
17985         (TEST_SUFF): New macro.
17986         (TEST_SUFF_STR): Likewise.
17987         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17988         (TEST_COND_any_ibm128): New macro.
17989         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17990         this_func.  Update call to init_max_error.
17991         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17992         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17993         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17994         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17995         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17996         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17997         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17998         * math/test-math-scalar.h (TEST_NARROW): Likewise.
17999         * math/test-math-vector.h (TEST_NARROW): Likewise.
18000         * math/test-arg-double.h: New file.
18001         * math/test-arg-float128.h: Likewise.
18002         * math/test-arg-float32x.h: Likewise.
18003         * math/test-arg-float64.h: Likewise.
18004         * math/test-arg-float64x.h: Likewise.
18005         * math/test-arg-ldouble.h: Likewise.
18006         * math/test-math-narrow.h: Likewise.
18007         * math/test-narrow-macros.c: Likewise.
18008         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18009         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18010         test-narrow-macros-ldbl-64.
18011         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18013         * math/bits/mathcalls-narrow.h: New file.
18014         * include/bits/mathcalls-narrow.h: Likewise.
18015         * math/math-narrow.h: Likewise.
18016         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18017         (__MATHCALL_NARROW_ARGS_2): Likewise.
18018         (__MATHCALL_NARROW_ARGS_3): Likewise.
18019         (__MATHCALL_NARROW_NORMAL): Likewise.
18020         (__MATHCALL_NARROW_REDIR): Likewise.
18021         (__MATHCALL_NARROW): Likewise.
18022         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18023         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18024         defined.
18025         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18026         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18027         (libm-narrow-fns): New variable.
18028         (libm-narrow-types-basic): Likewise.
18029         (libm-narrow-types-ldouble-yes): Likewise.
18030         (libm-narrow-types-float128-yes): Likewise.
18031         (libm-narrow-types-float128-alias-yes): Likewise.
18032         (libm-narrow-types): Likewise.
18033         (libm-routines): Add narrowing functions.
18034         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18035         (libc_feholdexcept_setroundf128): New macro.
18036         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18037         * sysdeps/ieee754/float128/float128_private.h: Include
18038         <math/math-narrow.h>.
18039         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18040         Undefine and redefine.
18041         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18042         (libm_alias_float_ldouble): Undefine and redefine.
18043         (libm_alias_double_ldouble): Likewise.
18045         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18047 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
18049         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18050         FPCR/FPSR.
18052 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
18054         * manual/creature.texi: Convert references to gcc.info to gcc.
18055         * manual/stdio.texi: Likewise.
18056         * manual/string.texi: Likewise.
18058 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18060         [BZ #17979]
18061         * posix/bits/types.h (__int_least8_t): New typedef.
18062         (__uint_least8_t): Likewise.
18063         (__int_least16_t): Likewise.
18064         (__uint_least16_t): Likewise.
18065         (__int_least32_t): Likewise.
18066         (__uint_least32_t): Likewise.
18067         (__int_least64_t): Likewise.
18068         (__uint_least64_t): Likewise.
18069         * sysdeps/generic/stdint.h (int_least8_t): Define using
18070         __int_least8_t.
18071         (int_least16_t): Define using __int_least16_t.
18072         (int_least32_t): Define using __int_least32_t.
18073         (int_least64_t): Define using __int_least64_t.
18074         (uint_least8_t): Define using __uint_least8_t.
18075         (uint_least16_t): Define using __uint_least16_t.
18076         (uint_least32_t): Define using __uint_least32_t.
18077         (uint_least64_t): Define using __uint_least64_t.
18078         * wcsmbs/uchar.h: Include <bits/types.h>.
18079         (char16_t): Define using __uint_least16_t conditional only on
18080         [!__USE_ISOCXX11].
18081         (char32_t): Define using __uint_least32_t conditional only on
18082         [!__USE_ISOCXX11].
18083         * wcsmbs/test-char-types.c: New file.
18084         * wcsmbs/Makefile (tests): Add test-char-types.
18086         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18087         version to 4.0.1.
18089 2018-02-07  Zack Weinberg  <zackw@panix.com>
18091         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18092         Delete all contents except for definitions of _G_HAVE_MMAP and
18093         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
18094         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18095         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
18096         change as above.
18098         * libio/libio.h: Don't include bits/_G_config.h here.
18099         Include stddef.h with __need_wchar_t defined.  Include
18100         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18101         Define _IO_iconv_t here, directly.
18102         Don't define _IO_HAVE_ST_BLKSIZE.
18103         * libio/libioP.h: Include _G_config.h here.  Move include of
18104         shlib-compat.h up with rest of includes.  Simplify conditionals
18105         controlling definition of _IO_JUMPS_OFFSET.
18107         * csu/init.c: Remove always-true #if around entire file.
18108         Don't include stdio.h.  Set _IO_stdin_used to hardwired
18109         constant 0x20001, and update commentary.
18110         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18111         Replace all uses of _G_va_list with __gnuc_va_list.
18112         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18113         instead of #if _IO_HAVE_ST_BLKSIZE.
18114         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18115         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18116         not #ifdef.
18118         * libio/bits/libio.h: Move back to libio/libio.h and adjust
18119         multiple-include guard to match.
18120         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18121         into this file.
18122         Remove preprocessor conditionals that are always true and/or
18123         redundant to other preprocessor conditionals in the same nest.
18124         Include shlib-compat.h unconditionally.
18125         Error out if _LIBC is not defined, or if _ISOMAC is defined,
18126         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18127         defined after including stdio.h.
18128         Use __BEGIN_DECLS/__END_DECLS.
18130         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18131         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18132         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18134 2018-02-07  Zack Weinberg  <zackw@panix.com>
18136         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18137         New single-type headers split from _G_config.h.
18138         * libio/bits/types/cookie_io_functions_t.h
18139         * libio/bits/types/struct_FILE.h
18140         New single-type headers split from libio.h.
18142         * libio/Makefile: Install the above new headers.  Don't install
18143         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18144         bits/libio-ldbl.h.
18145         * libio/_G_config.h, libio/libio.h: Delete file.
18147         * libio/bits/libio.h: Remove improper-inclusion guard.
18148         Include stdio.h and don't repeat anything that it does.
18149         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18150         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18151         __io_read_fn as cookie_read_function_t,
18152         __io_write_fn as cookie_write_function_t,
18153         __io_seek_fn as cookie_seek_function_t,
18154         __io_close_fn as cookie_close_function_t,
18155         and _IO_cookie_io_functions_t as cookie_io_functions_t.
18156         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18157         here, in the "compatibility defines" section.  Remove an #if 0
18158         block.  Use the "body" macros from bits/types/struct_FILE.h to
18159         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18160         and _IO_ferror_unlocked.
18161         Move prototypes of __uflow and __overflow...
18163         * libio/stdio.h: ...here.  Don't include bits/libio.h.
18164         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
18165         directly from stdarg.h.  Include bits/types/__fpos_t.h,
18166         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18167         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18168         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18169         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18170         cookie_io_functions_t, not _IO_cookie_io_functions_t;
18171         __ssize_t, not _IO_ssize_t.  Unconditionally define
18172         BUFSIZ as 8192 and EOF as (-1).
18174         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
18175         macros from bits/types/struct_FILE.h instead of _IO_* macros
18176         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18177         instead of _IO_ssize_t.
18178         * libio/bits/stdio2.h: Similarly.
18180         * libio/iolibio.h: Add multiple-include guard.
18181         Include bits/libio.h after stdio.h.
18182         * libio/libioP.h: Add multiple-include guard.
18183         Include stdio.h and bits/libio.h before iolibio.h.
18185         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18186         * include/bits/types/cookie_io_functions_t.h
18187         * include/bits/types/struct_FILE.h: New wrappers.
18189         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18190         Get definitions of _G_fpos_t and _G_fpos64_t from
18191         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18192         respectively.  Remove improper-inclusion guards.
18194         * conform/data/stdio.h-data: Update expectations of va_list.
18195         * scripts/check-installed-headers.sh: Remove special case for
18196         libio.h and _G_config.h.
18198 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18200         [BZ #15105]
18201         [BZ #19463]
18202         * include/sys/sysmacros.h [!_ISOMAC]
18203         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18204         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18205         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18206         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18207         libc_hidden_proto.
18208         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18209         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18210         Likewise.
18211         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18212         Undefine and redefine to add use __gnu_dev_ prefix.
18213         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18214         Likewise.
18215         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18216         and define as hidden inline function.
18217         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18218         Likewise.
18219         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18220         Likewise.
18221         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18222         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18223         (gnu_dev_minor): Likewise.
18224         (gnu_dev_makedev): Likewise.
18225         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18226         makedev.
18227         * posix/wordexp.c (exec_comm_child): Likewise.
18228         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18229         instead of minor and __gnu_dev_major instead of major.
18230         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18231         __gnu_dev_major instead of major.
18232         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18233         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18234         instead of gnu_dev_minor.
18235         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18236         (SLAVE_P): Likewise.
18237         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18238         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18239         instead of major.
18241         [BZ #21313]
18242         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18243         in another place.
18244         * locale/weightwc.h (findidx): Likewise.
18246 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
18248         * manual/probes.texi (slowlog): Delete documentation of removed probe.
18249         (slowlog_inexact): Likewise
18250         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18251         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18253 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
18255         [BZ #22797]
18256         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18257         missing second underscore to parameter name.
18259 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
18261         [BZ #14508]
18262         [BZ #15512]
18263         [BZ #17082]
18264         [BZ #20530]
18265         * bits/byteswap.h: Update file comment.  Do not include
18266         <bits/byteswap-16.h>.
18267         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
18268         constant.
18269         (__bswap_16): Define as inline function.
18270         (__bswap_constant_32): Reformat definition.
18271         (__bswap_32): Always define as inline function, not macro, using
18272         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18273         otherwise __bswap_constant_32.
18274         (__bswap_constant_64): Reformat definition.  Do not use
18275         __extension__ here.
18276         (__bswap_64): Always define as inline function, not macro.  Use
18277         __extension__ on function definition.  Use __builtin_bswap64 if
18278         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18279         * string/test-endian-file-scope.c: New file.
18280         * string/test-endian-sign-conversion.c: Likewise.
18281         * string/Makefile (headers): Remove bits/byteswap-16.h.
18282         (tests): Add test-endian-file-scope and
18283         test-endian-sign-conversion.
18284         (CFLAGS-test-endian-sign-conversion.c): New variable.
18285         * bits/byteswap-16.h: Remove file.
18286         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18287         * sysdeps/ia64/bits/byteswap.h: Likewise.
18288         * sysdeps/m68k/bits/byteswap.h: Likewise.
18289         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18290         * sysdeps/s390/bits/byteswap.h: Likewise.
18291         * sysdeps/tile/bits/byteswap.h: Likewise.
18292         * sysdeps/x86/bits/byteswap-16.h: Likewise.
18293         * sysdeps/x86/bits/byteswap.h: Likewise.
18295         [BZ #17721]
18296         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18297         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18298         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18299         199901L] (__restrict): Define to restrict.
18301         [BZ #19667]
18302         * string/testcopy.c: Include <support/support.h>.  Do not include
18303         <malloc.h>.  Use <support/test-driver.c>.
18304         (main): Rename to do_test.  Make static.  Use xmalloc instead of
18305         malloc.
18307         [BZ #13575]
18308         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18309         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18310         (SSIZE_MAX): Define to INT_MAX.
18311         * posix/test-ssize-max.c: New file.
18312         * posix/Makefile (tests): Add test-ssize-max.
18314         [BZ #19668]
18315         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18316         <support/support.h>.  Do not include <malloc.h>.
18317         (query_auxv): Use xmalloc instead of malloc.
18319         [BZ #14553]
18320         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18321         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18322         instead of loff_t.
18324 2018-02-06  Florian Weimer  <fweimer@redhat.com>
18326         [BZ #18023]
18327         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18328         Use scratch_buffer instead of extend_alloca.
18330 2018-02-06  Zack Weinberg  <zackw@panix.com>
18332         * libio/stdio.h: Don't define getc or putc as macros.
18333         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18334         not _IO_getc and _IO_putc.
18336         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18337         * stdio-common/tstgetln.c: Don't redefine ssize_t.
18339 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
18341         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18342         (TCP_FASTOPEN_NO_COOKIE): Likewise.
18344         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18346         [BZ #14890]
18347         * elf/elf.h (NT_PRFPREG): New macro.
18348         (NT_S390_VXRS_LOW): Likewise.
18349         (NT_S390_VXRS_HIGH): Likewise.
18350         (NT_S390_GS_CB): Likewise.
18351         (NT_S390_GS_BC): Likewise.
18352         (NT_S390_RI_CB): Likewise.
18354         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18355         (MAP_SYNC): New macro.
18356         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18357         Likewise.
18358         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18359         (MAP_SYNC): Likewise.
18360         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18361         (MAP_SYNC): Likewise.
18362         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18363         (MAP_SYNC): Likewise.
18364         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18365         (MAP_SYNC): Likewise.
18366         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18367         (MAP_SYNC): Likewise.
18368         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18369         (MAP_SYNC): Likewise.
18370         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18371         Likewise.
18372         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18373         Likewise.
18375         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18376         (MAP_SHARED_VALIDATE): New macro.
18377         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18378         (MAP_SHARED_VALIDATE): Likewise.
18380 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18382         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18383         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18384         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18386 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18388         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
18389         (DT_NUM): Updated to 35.
18391 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18393         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18394         __builtin_expect with __glibc_likely and __glibc_unlikely.
18395         (elf_machine_rela): Likewise.
18396         (elf_machine_lazy_rel): Likewise.
18398 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18400         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18401         __builtin_expect with __glibc_likely and __glibc_unlikely.
18402         (elf_machine_lazy_rel): Likewise.
18404 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18406         [BZ #22638]
18407         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18408         SHARED.
18409         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18411 2018-02-05  Andreas Schwab  <schwab@suse.de>
18413         [BZ #22761]
18414         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18415         string.
18417 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18419         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18420         not check against PTHREAD_STACK_MIN.
18422 2018-02-02  Sean McKean  <smckean83@gmail.com>
18424         [BZ #22735]
18425         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18427 2018-02-02  Florian Weimer  <fweimer@redhat.com>
18429         [BZ #22753]
18430         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18431         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18432         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18433         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18434         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18435         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18436         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18437         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18438         * manual/llio.texi (Scatter-Gather): Mention offset -1.
18439         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18440         * misc/tst-preadvwritev2.c (do_test): Call it.
18441         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18443 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18445         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18447         * benchtests/bench-memcmp.c: Print json instead of plain text.
18449         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18450         every test run.
18452 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
18454         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18455         version to 4.15.
18456         (s390_sthyi): New syscall.
18458         * sysdeps/generic/ldbl-classify-compat.h: New file.
18459         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18460         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18461         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18462         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18463         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18464         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18465         * sysdeps/ieee754/dbl-64/s_finite.c: Include
18466         <ldbl-classify-compat.h>.
18467         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18468         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18469         <ldbl-classify-compat.h>.
18470         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18471         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18472         <ldbl-classify-compat.h>.
18473         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18474         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18475         <ldbl-classify-compat.h>.
18476         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18477         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18478         <ldbl-classify-compat.h>.
18479         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18480         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18481         <ldbl-classify-compat.h>.
18482         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18483         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18484         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18485         * sysdeps/m68k/coldfire/math_private.h: Remove file.
18486         * sysdeps/microblaze/math_private.h: Likewise.
18487         * sysdeps/nios2/math_private.h: Likewise.
18488         * sysdeps/sh/math_private.h: Likewise.
18490         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18491         * sysdeps/m68k/coldfire/math_private.h: ... here.
18492         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18493         * sysdeps/tile/math_private.h: Likewise.
18494         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18495         Remove macro.
18496         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18497         Likewise.
18499         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18500         Remove macro.
18501         (libc_fetestexcept): Likewise.
18502         (libc_feupdateenv_test): Likewise.
18503         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18504         (libc_fetestexcept): Likewise.
18505         (libc_feupdateenv_test): Likewise.
18506         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18507         (libc_fetestexcept): Likewise.
18508         (libc_feupdateenv_test): Likewise.
18509         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18510         (libc_fetestexcept): Likewise.
18511         (libc_feupdateenv_test): Likewise.
18513         * sysdeps/generic/math_private.h
18514         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18515         New inline function.
18516         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18517         Likewise.
18519         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18520         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18521         * sysdeps/generic/math_private.h
18522         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18523         inline function.
18524         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18525         Likewise.
18526         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18527         Likewise.
18528         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18529         Likewise.
18530         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18531         Likewise.
18532         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18533         Likewise.
18534         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18535         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18536         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18537         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18538         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18539         (__fegetenv): Likewise.
18540         (fesetenv): Likewise.
18541         (__fesetenv): Likewise.
18542         (feupdateenv): Likewise.
18543         (__feupdateenv): Likewise.
18544         (fegetround): Likewise.
18545         (__fegetround): Likewise.
18546         (fesetround): Likewise.
18547         (__fesetround): Likewise.
18549         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18550         (feraiseexcept): New macro.
18551         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18552         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18553         Remove macro.
18554         (__feraiseexcept): Likewise.
18555         (feclearexcept): Likewise.
18556         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18557         (__feraiseexcept): Likewise.
18558         (feclearexcept): Likewise.
18559         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18560         (__feraiseexcept): Likewise.
18561         (feclearexcept): Likewise.
18562         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18563         (__feraiseexcept): Likewise.
18564         (feclearexcept): Likewise.
18565         (fetestexcept): Likewise.
18567         * sysdeps/m68k/coldfire/math-tests.h: New file.
18569         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18570         * sysdeps/m68k/bits/fenv.h: ... here.
18571         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18572         not define.
18573         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18574         Likewise.
18575         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18576         Likewise.
18577         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18578         Likewise.
18579         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18580         Likewise.
18581         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18582         Define to 0.
18583         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18584         (__FE_UNDEFINED): New enum constant.
18585         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18586         Do not define.
18587         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18588         Likewise.
18589         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18590         Likewise.
18591         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18592         to match generic bits/fenv.h.
18593         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18594         Do not define.
18596         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18597         packed on bits.
18598         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18599         * soft-fp/half.h (union _FP_UNION_H): Likewise.
18600         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18601         * soft-fp/single.h (union _FP_UNION_S): Likewise.
18603 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
18604             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
18605             Joseph Myers  <joseph@codesourcery.com>
18607         [BZ #21314]
18608         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18609         (__log1p): Disable -Wmaybe-uninitialized for -Os around
18610         computation using c.
18611         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18612         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18613         computation using c.
18615 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
18617         * version.h (RELEASE): Set to "development".
18618         (VERSION): Set to "2.27.9000".
18619         * NEWS (2.28): New section.
18621         * version.h (RELEASE): Set to "stable".
18622         (VERSION): Set to "2.27".
18623         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18625         * NEWS: Add the list of bugs fixed in 2.27.
18627 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18629         * stdlib/test-atexit-race-common.c (do_test): Check stack size
18630         against PTHREAD_STACK_MIN.
18632 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
18634         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18635         New entries.
18636         (Rafal Luzynski, Andreas Schwab): Update.
18638 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
18640         [BZ #10871]
18641         * NEWS: List the languages which actually use the alternative
18642         months feature in this release.  Also explain that "alt_mon" and
18643         "ab_alt_mon" are optional.
18645 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
18647         [BZ #22765]
18648         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18650 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
18652         * manual/install.texi (Tools for Compilation): Update the newest
18653         versions of gcc, binutils, texinfo, gawk, bison, and sed.
18654         * INSTALL: Regenerated.
18656 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18658         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18659         instead of __builtin_expect.
18661 2018-01-30  Florian Weimer  <fweimer@redhat.com>
18663         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18664         data.
18665         * nss/tst-nss-getpwent.c (do_test): Likewise.
18667 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
18669         [BZ #10871]
18670         * localedata/locales/hr_HR (mon): Rename to...
18671         (alt_mon): This.
18672         (mon): Import from CLDR (genitive case).
18673         (d_t_fmt): Update the comment.
18675 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
18677         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18678         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18679         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18681 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18683         * mach/Versions: Fix version when __mach_host_self_ was added.
18684         * hurd/Versions: Fix version when _hurd_exec_paths was added.
18685         * sysdeps/mach/hurd/i386/ld.abilist: New file.
18686         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18687         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18688         * sysdeps/mach/hurd/i386/libc.abilist: New file.
18689         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18690         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18691         * sysdeps/mach/hurd/i386/libm.abilist: New file.
18692         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18693         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18694         * sysdeps/mach/hurd/i386/librt.abilist: New file.
18695         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18696         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18697         || to respect codestyle.
18698         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18699         (do_test_bz20181): Rename accordingly.
18700         * malloc/malloc.c: Include <assert.h>.
18701         (assert): Do not define.
18702         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18703         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18704         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18705         * sysdeps/mach/hurd/hp-timing.h: New file.
18706         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18708 2018-01-29  Darius Rad  <darius@bluespec.com>
18710         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18712 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
18714         * sysdeps/init_array/crti.S (.section .init_array): Add
18715         PREINIT_FUNCTION when defined.
18716         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18717         * config.h.in: Regenerate.
18718         * manual/platform.texi: Add RISC-V documenation for
18719         __riscv_flush_icache.
18720         * sysdeps/riscv/__longjmp.S: New file.
18721         * sysdeps/riscv/backtrace.c: Likewise.
18722         * sysdeps/riscv/bits/endian.h: Likewise.
18723         * sysdeps/riscv/bits/setjmp.h: Likewise.
18724         * sysdeps/riscv/bits/wordsize.h: Likewise.
18725         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18726         * sysdeps/riscv/bsd-setjmp.c: Likewise.
18727         * sysdeps/riscv/dl-trampoline.S: Likewise.
18728         * sysdeps/riscv/gccframe.h: Likewise.
18729         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18730         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18731         * sysdeps/riscv/machine-gmon.h: Likewise.
18732         * sysdeps/riscv/memusage.h: Likewise.
18733         * sysdeps/riscv/setjmp.S: Likewise.
18734         * sysdeps/riscv/sys/asm.h: Likewise.
18735         * sysdeps/riscv/tls-macros.h: Likewise.
18736         * sysdeps/riscv/dl-tls.h: New file.
18737         * sysdeps/riscv/libc-tls.c: Likewise.
18738         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18739         * sysdeps/riscv/nptl/tls.h: Likewise.
18740         * sysdeps/riscv/stackinfo.h: Likewise.
18741         * sysdeps/riscv/bits/fenv.h: New file.
18742         * sysdeps/riscv/e_sqrtl.c: Likewise.
18743         * sysdeps/riscv/fpu_control.h: Likewise.
18744         * sysdeps/riscv/math-tests.h: Likewise.
18745         * sysdeps/riscv/nofpu/Implies: Likewise.
18746         * sysdeps/riscv/sfp-machine.h: Likewise.
18747         * sysdeps/riscv/tininess.h: Likewise.
18748         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18749         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18750         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18751         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18752         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18753         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18754         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18755         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18756         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18757         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18758         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18759         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18760         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18761         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18762         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18763         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18764         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18765         * sysdeps/riscv/rvd/s_finite.c: Likewise.
18766         * sysdeps/riscv/rvd/s_fma.c: Likewise.
18767         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18768         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18769         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18770         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18771         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18772         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18773         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18774         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18775         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18776         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18777         * sysdeps/riscv/rvf/fegetround.c: Likewise.
18778         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18779         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18780         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18781         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18782         * sysdeps/riscv/rvf/fesetround.c: Likewise.
18783         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18784         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18785         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18786         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18787         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18788         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18789         * sysdeps/riscv/rvf/math_private.h: Likewise.
18790         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18791         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18792         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18793         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18794         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18795         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18796         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18797         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18798         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18799         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18800         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18801         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18802         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18803         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18804         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18805         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18806         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18807         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18808         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18809         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18810         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18811         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18812         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18813         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18814         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18815         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18816         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18817         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18818         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18819         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18820         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18821         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18822         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18823         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18824         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18825         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18826         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18827         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18828         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18829         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18830         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18831         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18832         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18833         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18834         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18835         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18836         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18837         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18838         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18839         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18840         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18841         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18842         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18843         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18844         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18845         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18846         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18847         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18848         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18849         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18850         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18851         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18852         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18853         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18854         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18855         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18856         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18857         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18858         * sysdeps/riscv/Implies: New file.
18859         * sysdeps/riscv/Makefile: Likewise.
18860         * sysdeps/riscv/configure: Likewise.
18861         * sysdeps/riscv/configure.ac: Likewise.
18862         * sysdeps/riscv/nptl/Makefile: Likewise.
18863         * sysdeps/riscv/preconfigure: Likewise.
18864         * sysdeps/riscv/rv64/Implies-after: Likewise.
18865         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18866         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18867         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18868         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18869         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18870         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18871         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18872         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18873         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18874         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18875         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18876         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18877         (Config): Likewise.
18879 2018-01-29  Florian Weimer  <fweimer@redhat.com>
18881         [BZ #22701]
18882         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18883         libnsl_hidden_proto.
18884         * include/rpcsvc/yp.h (yp_xdrall): Declare with
18885         libnsl_hidden_proto.
18886         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18887         * nis/Makefile (libnsl-routines): Add nss-default only for
18888         build-obsolete-nsl.
18889         * nis/nis_defaults.c (__nis_default_ttl): Add
18890         libnsl_hidden_nolink_def.
18891         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18892         declaration.
18893         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18894         * nis/ypclnt.c (yp_maplist): Likewise.
18896 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
18898         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18899         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18901 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
18903         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18904         clean -dxfq for git updates when replacing sources.
18906         * scripts/build-many-glibcs.py (Config.build_gcc): Use
18907         --disable-libcilkrts unconditionally, not just for the final GCC
18908         build for Hurd.
18910         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18911         version to 4.15.
18913 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
18915         [BZ #10871]
18916         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18917         case).
18919 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
18921         [BZ #10871]
18922         * localedata/locales/be_BY (mon): Rename to...
18923         (alt_mon): This, then synchronize with CLDR (nominative case).
18924         (abmon): Rename to...
18925         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18926         (mon): Import from CLDR (genitive case).
18927         (abmon): Likewise.
18928         * localedata/locales/be_BY@latin (mon): Rename to...
18929         (alt_mon): This.
18930         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18932         * localedata/locales/be_BY@latin (lang_name): Reworded to
18933         "biełaruskaja mova".
18935 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
18937         [BZ #10871]
18938         * localedata/locales/el_CY (mon): Renamed to...
18939         (alt_mon): This.
18940         (mon): Import from CLDR (genitive case).
18941         * localedata/locales/el_GR: Likewise.
18943 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
18945         [BZ #10871]
18946         * localedata/locales/ru_RU (mon): Rename to...
18947         (alt_mon): This.
18948         (abmon): Rename to...
18949         (ab_alt_mon): This.
18950         (mon): Import from CLDR (genitive case).
18951         (abmon): Copy from the old content except the 5th month which is
18952         now in the genitive case, even when abbreviated.
18953         * localedata/locales/ru_UA: Likewise.
18954         * time/tst-strptime.c (day_tests): Add an actual example of
18955         a difference between %b and %Ob in Russian.
18957 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18959         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18960         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18961         a `c' variable.
18962         * resolv/res-close.c: Include <stdlib.h>.
18963         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18964         <sys/wait.h>, <time.h>, <sys/uio.h>.
18965         (NOT_CANCEL_H): Add inclusion guard.
18966         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18967         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18968         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18969         return 0.
18970         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18971         vm_address_t * to ElfW(Addr) * for dl_main parameter.
18972         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18973         instead of void *.
18974         * sysdeps/pthread/timer_create.c (timer_create): Do not use
18975         timer_ptr2id to cast struct timer_node * to void *.
18976         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18977         --disable-libcilkrts to gcc configure.
18978         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18979         and make them the default for now.
18980         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18981         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18982         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18983         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18984         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18985         MACH_IPC_COMPAT.
18986         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18987         __task_terminate would ever return successfully.
18988         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18989         to global scope.
18990         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18991         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18992         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18993         critical section to make code simpler and avoid warning.
18994         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18995         critical section to make code simpler and avoid warning.
18996         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18997         const char * instead of char *.
18998         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18999         __hurd_file_name_split, hurd_file_name_split,
19000         __hurd_directory_name_split, hurd_directory_name_split,
19001         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19002         hurd_file_name_path_lookup): Make lookup function parameter take a
19003         const char *name instead of char *name.
19004         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19005         __hurd_directory_name_split): Likewise.
19006         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19007         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19008         * sysdeps/mach/hurd/check_native.c: New file.
19009         * sysdeps/mach/hurd/check_pf.c: New file.
19010         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19011         (__freeifaddrs): Define macro to freeifaddrs.
19012         * sysdeps/mach/hurd/libhurduser.abilist: New file.
19013         * sysdeps/mach/libmachuser.abilist: New file.
19014         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19015         (do_test_bz20181): Rename accordingly.
19016         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19017         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19018         <sys/mount.h>.
19019         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19020         version only if __USE_EXTERN_INLINES is defined.
19021         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19022         __hurd_sockfail): Likewise.
19023         (_hurd_fd_get): Always declare functions, and provide inline versions
19024         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19025         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19026         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19027         _hurd_port_set): Always declare functions, and provide inline versions
19028         only if __USE_EXTERN_INLINES and _LIBC are defined and
19029         IS_IN(libc).
19030         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19031         _hurd_critical_section_unlock): Likewise.
19032         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19033         * __hurd_threadvar_location): Likewise.
19034         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19035         _hurd_userlink_clear): Likewise.
19036         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19037         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19038         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19039         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19040         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19041         __spin_lock_locked): Likewise.
19042         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19043         __spin_lock_locked): Likewise.
19044         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19045         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19046         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19047         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19048         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19049         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19050         _POSIX_NO_TRUNC): Define to 0.
19051         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19052         check size against PTHREAD_STACK_MIN.
19053         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19054         IS_IN(libpthread)]: Include <sigsetops.h>.
19055         * mach/Makefile (user-interfaces): Add mach/gnumach.
19056         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19057         * sysdeps/mach/configure (mach_interface_list): Regenerate.
19058         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19059         instead of invalid -1.
19060         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19061         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19062         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19063         <net/ppp_defs.h>.
19065 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
19067         * hurd/fcntl-internal.h: New file.
19069 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
19071         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19073         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19075 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
19077         [BZ #22701]
19078         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19079         Build only shared objects.
19081 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19083         * README: Update for hppa.
19085 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19087         * sysdeps/sparc/fpu/libm-test-ulps: Update
19088         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19090 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19092         Revert:
19094         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19096         [BZ #22563]
19097         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19098         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19099         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19100         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19101         to feature_1.
19103         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19105         [BZ #22563]
19106         * bits/types/__cancel_jmp_buf_tag.h: New file.
19107         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19108         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19109         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19110         * nptl/Makefile (headers): Add
19111         bits/types/__cancel_jmp_buf_tag.h.
19112         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19113         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19114         * sysdeps/nptl/pthread.h: Include
19115         <bits/types/__cancel_jmp_buf_tag.h>.
19116         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19117         __cancel_jmp_buf.
19118         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19120 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
19122         [BZ #10871]
19123         * localedata/locales/uk_UA (mon): Renamed to...
19124         (alt_mon): This.
19125         (alt_digits): "0" removed and then renamed to...
19126         (mon): This.
19127         (date_fmt): Definition changed not to use the alternative
19128         digits hack.
19130 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
19132         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19133         FLAG_RISCV_FLOAT_ABI_DOUBLE.
19134         * elf/elf.h (EF_RISCV_RVC): New define.
19135         (EF_RISCV_FLOAT_ABI): Likewise.
19136         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19137         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19138         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19139         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19140         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19141         define.
19142         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19144 2018-01-25  Andreas Schwab  <schwab@suse.de>
19146         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19147         single quotes.
19148         * sysdeps/gnu/configure: Regenerate.
19149         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19150         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19152         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19153         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19154         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19155         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19156         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19158 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19160         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19161         URL, and run autoconf, make it the default for now.
19163 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
19165         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19166         soft-float ColdFire configuration.
19168         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19169         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19170         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19172         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
19173         MicroBlaze file.
19175         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19176         ....
19177         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19178         ... here.
19179         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19180         New file.
19182         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19183         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19184         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19185         file.
19187 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19189         [BZ #22742]
19190         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19191         Rename to __reserved and add comment.
19192         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19193         Rename to __reserved.
19195 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
19197         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19198         i686-gnu configurations.
19199         (Context.run_builds): Include mig, gnumach and hurd in components
19200         considered.
19201         (Context.checkout): Add mig, gnumach and hurd to components.
19202         (Context.checkout_tar): Add URL mappings for mig, gnumach and
19203         hurd.
19204         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19205         (Config.build): Install gnumach headers, build mig and install
19206         hurd headers for 'gnu' OS.
19207         (Config.install_gnumach_headers): New function.
19208         (Config.install_hurd_headers): Likewise.
19209         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
19210         when building for 'gnu' OS.
19212 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
19214         * manual/tunables.texi (Hardware Capability Tunables): Fix
19215         spelling.
19217 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
19219         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19220         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19221         (ALTMON_11, ALTMON_12): Improve documentation.
19222         * manual/time.texi (strftime): Likewise.
19224 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19226         [BZ #10871]
19227         * localedata/locales/pl_PL: Alternative month names added,
19228         primary month names are genitive now.
19229         * time/tst-strptime.c (day_tests): Actually use a genitive case
19230         of a month name in Polish language.
19232 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19234         [BZ #10871]
19235         * manual/locale.texi: Document ALTMON_1..12 constants for
19236         nl_langinfo.  Specify when to use ALTMON instead of MON.
19237         * manual/time.texi (strftime, strptime): Document GNU extension
19238         permitting O modifier with %B and %b.  Specify when to use
19239         %OB instead of %B.
19241 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19243         [BZ #10871]
19244         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19245         names, define them as the same as abbreviated month names explicitly.
19246         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19247         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19248         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19249         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19250         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19251         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19252         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19253         _NL_WABALTMON_12): New enum constants.
19254         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19255         wab_alt_mon, and ab_alt_mon_defined members.
19256         (time_output): Output ab_alt_mon and wab_alt_mon members.
19257         (time_read): Read them, initialize them as copies of abmon and wabmon
19258         respectively if they are missing, initialize ab_alt_mon_defined.
19259         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19260         * locale/programs/locfile-kw.h: Regenerate.
19261         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19262         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19263         and ru_RU.UTF-8.
19264         * time/strftime_l.c (a_altmonth, aam_len): New macros.
19265         [!COMPILE_WIDE] (ABALTMON_1): New macro.
19266         (__strftime_internal): Handle %Ob and %Oh formats.
19267         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19268         (__strptime_internal): Handle %Ob and %Oh formats.
19269         * time/tst-strptime.c (day_tests): Add more tests to parse different
19270         forms of month names including the new %Ob format specifier.
19272 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19274         [BZ #10871]
19275         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19276         define them as the same as primary full month names explicitly.
19277         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19278         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19279         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19280         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19281         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19282         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19283         _NL_WALTMON_12): New enum constants.
19284         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19285         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19286         macros.
19287         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19288         walt_mon, and alt_mon_defined members.
19289         (time_output): Output alt_mon and walt_mon members.
19290         (time_read): Read them, initialize them as copies of mon and wmon
19291         respectively if they are missing, initialize alt_mon_defined.
19292         * locale/programs/locfile-kw.gperf (alt_mon): Define.
19293         * locale/programs/locfile-kw.h: Regenerate.
19294         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19295         * localedata/tst-langinfo.c (map): Add tests for the new constants
19296         ALTMON_1 .. ALTMON_12.
19297         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19298         and pl_PL.UTF-8.
19299         * time/strftime_l.c (f_altmonth): New macro.
19300         (__strftime_internal): Handle %OB format.
19301         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19302         (__strptime_internal): Handle %OB format.
19303         * time/tst-strptime.c (day_tests): Add tests to parse different forms
19304         of month names including the new %OB format specifier.
19306 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19308         [BZ #22685]
19309         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19310         from ABORT_TRANSACTION.
19311         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19312         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19313         ABORT_TRANSACTION_IMPL): Likewise.
19314         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
19315         Linux code, but remove the code that aborts transactions.
19317 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19319         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19321 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
19323         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19324         in date: "2004-14-09" should be "2004-09-14".
19325         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19326         "2003-15-09" should be "2003-09-15".
19328 2018-01-18  Arjun Shankar  <arjun@redhat.com>
19330         [BZ #22343]
19331         [BZ #22774]
19332         CVE-2018-6485
19333         CVE-2018-6551
19334         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19335         after padding.
19336         (_int_memalign): check for integer overflow before calling
19337         _int_malloc.
19338         * malloc/tst-malloc-too-large.c: New test.
19339         * malloc/Makefile: Add tst-malloc-too-large.
19341 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
19343         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19344         in date: "2017-24-07" should be "2017-07-24".
19345         * localedata/locales/mai_IN: Likewise.
19346         * localedata/locales/mai_NP: Likewise.
19348 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
19350         * po/ru.po: Update translations.
19352 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
19354         [BZ #22719]
19355         * sysdeps/hppa/backtrace.c: New file.
19357 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19359         [BZ #22715]
19360         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19361         align La_x86_64_retval to VEC_SIZE.
19363 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
19365         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19366         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19368 2018-01-16  Florian Weimer  <fweimer@redhat.com>
19370         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19371         Move tst-thread-exit-clobber ...
19372         [$(CXX)] (tests-unsupported): ... to here.
19374 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19376         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19377         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19378         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19379         (_dl_aarch64_cap_flags): Update.
19380         (_DL_HWCAP_COUNT): Update.
19382 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19384         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19385         (_DL_HWCAP_LAST): Remove.
19386         (_DL_HWCAP_COUNT): Move to ...
19387         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19388         (_DL_HWCAP_COUNT): ... here.
19390 2018-01-16  Florian Weimer  <fweimer@redhat.com>
19392         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19393         mode with GNU extensions.
19395 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
19397         * elf/elf.h (NT_ARM_SVE): Define.
19399 2018-01-15  Florian Weimer  <fweimer@redhat.com>
19401         [BZ #22636]
19402         * nptl/tst-minstack-throw.cc: New file.
19403         * nptl/Makefile (tests): Add tst-minstack-throw.
19404         (LDLIBS-tst-minstack-throw): Link with libstdc++.
19405         [!CXX] (tests-unsupported): Add tst-minstack-throw.
19407 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
19409         * scripts/build-many-glibcs.py (Context.checkout): Default
19410         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19411         version to 1.1.0.
19413 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
19415         [BZ #22707]
19416         * elf/elf.h (DF_1_STUB): Define.
19417         (DF_1_PIE): Define.
19419 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19421         [BZ #22697]
19422         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19423         Do not add 0.5 to integer or out-of-range arguments.
19425 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
19427         * po/bg.po: Update translations.
19428         * po/cs.po: Likewise.
19429         * po/de.po: Likewise.
19430         * po/ko.po: Likewise.
19431         * po/pl.po: Likewise.
19432         * po/sv.po: Likewise.
19433         * po/uk.po: Likewise.
19434         * po/vi.po: Likewise.
19436 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19438         * aarch64/start.S (_start): Use __wrap_main.
19439         (__wrap_main): New local symbol.
19441 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
19443         [BZ #22679]
19444         CVE-2018-1000001
19445         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19446         generic_getcwd if the path returned by getcwd syscall is not absolute.
19447         * io/tst-getcwd-abspath.c: New test.
19448         * io/Makefile (tests): Add tst-getcwd-abspath.
19450 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
19452         * malloc/malloc.c (malloc_consolidate): Add size check.
19454 2018-01-12  Florian Weimer  <fweimer@redhat.com>
19456         * support/write_message.c (write_message): Preserve errno.
19457         * support/check.c (print_failure): Likewise.
19458         * support/support_test_verify_impl.c (support_test_verify_impl):
19459         Likewise.
19460         * support/support_test_compare_failure.c
19461         (support_test_compare_failure): Likewise.
19463 2018-01-12  Florian Weimer  <fweimer@redhat.com>
19465         [BZ #22701]
19466         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19467         Prevent installation of libnsl.so.
19468         (libnsl-inhibit-o): Do not build (or install) static libraries.
19470 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
19472         [BZ #22657]
19473         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19474         before the day number which may produce a double space.
19475         (date_fmt): Likewise.
19477 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
19479         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19480         instead of fegetenv.
19482 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
19484         [BZ #22702]
19485         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19486         comment to say exceptions are discarded.
19487         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19488         __fegetenv.
19489         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19490         be enabled.
19492 2018-01-11  Florian Weimer  <fweimer@redhat.com>
19494         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19495         and error message.
19497 2018-01-11  Florian Weimer  <fweimer@redhat.com>
19499         [BZ #22636]
19500         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19501         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19503 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
19505         [BZ #22693]
19506         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19507         negative arguments in test for NaN or infinity argument.
19509 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
19511         * po/libc.pot: Regenerate.
19513 2018-01-10  Florian Weimer  <fweimer@redhat.com>
19515         [BZ #22636]
19516         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19517         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19519 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19521         * hurd/hurd/fd.h: Include <fcntl.h>
19522         (__hurd_at_flags): New function.
19523         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19524         with call to __hurd_at_flags.
19525         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19526         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19527         __faccessat
19528         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19529         (__access_noerrno): Use __faccessat_common instead of access_common.
19530         (__access): Likewise.
19531         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19532         with a call to __faccessat.
19533         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19534         (__faccessat_common): ... this. Move implementation of __access into it when
19535         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19536         reauthenticate_cwdir_at helper to implement AT mechanism.
19537         (__faccessat_noerrno): New function, just calls __faccessat_common.
19538         (__faccessat): New function, just calls __faccessat_common.
19539         (faccessat): Define weak alias.
19541 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
19543         [BZ #22691]
19544         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19545         (CFLAGS-s_fmaxmagl.c): New variable.
19546         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19548         [BZ #22690]
19549         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19550         long int for arguments of possibly overflowing addition or
19551         subtraction.
19552         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19554 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
19556         [BZ #22688]
19557         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19558         (CFLAGS-e_remainderl.c): New variable.
19560         [BZ #22687]
19561         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19562         variable.
19563         (CFLAGS-s_cacoshl.c): Likewise.
19564         (CFLAGS-s_casinhl.c): Likewise.
19565         (CFLAGS-s_catanl.c): Likewise.
19566         (CFLAGS-s_catanhl.c): Likewise.
19567         (CFLAGS-s_cexpl.c): Likewise.
19568         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19569         (CFLAGS-s_csinhl.c): Likewise.
19570         (CFLAGS-s_clogl.c): Likewise.
19571         (CFLAGS-s_clog10l.c): Likewise.
19572         (CFLAGS-s_csinl.c): Likewise.
19573         (CFLAGS-s_csqrtl.c): Likewise.
19575 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19576 2017-01-09  Svante Signell  <svante.signell@gmail.com>
19578         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19579         (_hurd_exec_paths): New function.
19580         * hurd/hurd.h (_hurd_exec): Deprecate function.
19581         (_hurd_exec_paths): Declare function.
19582         * hurd/Versions: Export _hurd_exec_paths.
19583         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19584         (__execve): Use __getcwd to build absolute path, and use
19585         _hurd_exec_paths instead of _hurd_exec.
19586         * sysdeps/mach/hurd/spawni.c: Likewise.
19587         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19588         _hurd_exec.
19590 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
19592         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19593         test instead of failing in case of ENOENT returned by posix_openpt.
19595 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19597         resolv: Support binary labels in test framework.
19598         * support/resolv_test.c (struct to_be_freed): Remove.
19599         (struct compressed_name): New.
19600         (allocate_compressed_name, ascii_tolower)
19601         (compare_compressed_name): New functions.
19602         (struct resolv_response_builder): Update type of
19603         compression_offsets for use with tsearch.  Rempve to_be_freed.
19604         (response_push_pointer_to_free): Remove function.
19605         (resolv_response_add_name): Rewrite using struct compressed_name
19606         and tsearch instead of hsearch_r.
19607         (response_builder_allocate): Remove initialization of
19608         compression_offsets.
19609         (response_builder_free): Update for removal of to_be_freed.  Use
19610         tdestroy instead of hdestroy_r.
19611         * resolv/Makefile (tests): Add tst-resolv-binary.
19612         (tst-resolv-binary): Link with -lresolv -lpthread.
19614 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19616         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19617         time.  Pass positive flag instead of negative flag to
19618         support_test_compare_failure.
19619         (support_test_compare_failure): Change negative parameter to
19620         positive.
19621         * support/support_test_compare_failure.c (report)
19622         (support_test_compare_failure): Likewise.
19623         * support/tst-test_compare.c (return_ssize_t, return_int): New.
19624         (do_test): Check int/size_t, ssize_t/size_t comparisons.
19626 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19628         [BZ #22637]
19629         * nptl/descr.h (stackblock, stackblock_size): Update comments.
19630         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19631         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19632         stacksize.
19633         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19635 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
19637         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19638         Add s_sincosf-sse2 and s_sincosf-fma.
19639         (CFLAGS-s_sincosf-fma.c): New.
19640         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19641         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19642         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19643         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19644         __sincosf is defined.
19646 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19648         * nptl/tst-thread-exit-clobber.cc: New file.
19649         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19650         C++11 mode.
19651         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19652         (tests): Add tst-thread-exit-clobber.
19653         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19655 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19657         * support/check.h (support_static_assert): Define.
19658         (TEST_COMPARE): Use it.
19660 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
19662         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19663         [!__RLIM_T_MATCHES_RLIM64_T]
19664         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19665         __getrlimit64. Add libc_hidden_weak.
19667 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
19669         * elf/elf.h (R_RISCV_NONE): New define.
19670         (R_RISCV_32): Likewise.
19671         (R_RISCV_64): Likewise.
19672         (R_RISCV_RELATIVE): Likewise.
19673         (R_RISCV_COPY): Likewise.
19674         (R_RISCV_JUMP_SLOT): Likewise.
19675         (R_RISCV_TLS_DTPMOD32): Likewise.
19676         (R_RISCV_TLS_DTPMOD64): Likewise.
19677         (R_RISCV_TLS_DTPREL32): Likewise.
19678         (R_RISCV_TLS_DTPREL64): Likewise.
19679         (R_RISCV_TLS_TPREL32): Likewise.
19680         (R_RISCV_TLS_TPREL64): Likewise.
19681         * Makerules (make-link-multidir): Make directories before linking into
19682         them.
19683         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19684         define.
19685         (VDSO_HASH_LINUX_4_15): Likewise.
19686         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19687         in subdirectories of lib.
19688         * nptl/Makefile (/librt.so): Always depend on
19689         "$(shared-thread-library)".
19691 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19693         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19694         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19695         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19696         (___tls_get_addr).
19697         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19698         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19699         "-O2 -march=i686".
19700         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19701         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19702         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19703         * sysdeps/gnu/glob-lstat-compat.c: New file.
19704         * sysdeps/gnu/glob64-lstat-compat.c: New file.
19705         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19707 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19709         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19710         Reserve 16 chars to reloc_addr before calling _itoa_word.
19712 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
19714         [BZ #22678]
19715         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19716         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19718         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19719         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19721         * resource/tst-getrlimit.c: Add copyright header.
19723 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
19724             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19726         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19727         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19728         Define __GI_getrlimit64 as weak alias of __getrlimit64.
19729         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19730         instead.
19731         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19732         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19733         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19734         RLIM64_INFINITY): Fix values to match the kernel ones.
19735         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19736         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
19737         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
19738         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19739         getrlimit64@@GLIBC_2_27.
19740         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19741         and setrlimit64.
19742         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19743         getrlimit, setrlimit, getrlimit64 and setrlimit64.
19744         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19745         setrlimit, getrlimit64 and setrlimit64.
19747 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
19749         [BZ #22648]
19750         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19751         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19753 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
19755         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19756         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19757         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19759 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19761         [BZ #15479]
19762         [BZ #22666]
19763         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19764         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19766         [BZ #15479]
19767         [BZ #22665]
19768         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19769         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19770         * sysdeps/alpha/fpu/s_floor.c: Likewise.
19771         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19773 2018-01-04  Florian Weimer  <fweimer@redhat.com>
19775         [BZ #22667]
19776         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19777         Align the stack before calling exit.
19778         * stdlib/tst-makecontext-align.c: New file.
19779         * stdlib/Makefile (tests): Add tst-makecontext-align.
19781 2018-01-04  Florian Weimer  <fweimer@redhat.com>
19783         Add support for calling dlvsym from libc.so.
19784         * include/dlfcn.h (__libc_dlvsym): Declare.
19785         * elf/Makefile (tests-static-internal): Add
19786         tst-libc_dlvsym-static.
19787         (tests-internal): Add tst-libc_dlvsym.
19788         (modules-names): Add tst-libc_dlvsym-dso.
19789         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19790         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19791         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19792         object tst-libc_dlvsym-dso.so needs to be built before running
19793         these tests.
19794         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19795         * elf/Versions: Export __libc_dlvsym.
19796         * elf/dl-libc.c (struct do_dlvsym_args): New.
19797         (do_dlvsym, __libc_dlvsym): New functions.
19798         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19799         (_dl_open_hook2): New variable.
19800         (__libc_register_dl_open_hook): Set it.
19801         * elf/tst-libc_dlvsym-dso.c: New file.
19802         * elf/tst-libc_dlvsym-static.c: Likewise.
19803         * elf/tst-libc_dlvsym.c: Likewise.
19804         * elf/tst-libc_dlvsym.h: Likewise.
19806 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19808         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19809         include <sys/mount.h>.
19811 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
19813         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19814         Add __NO_MATH_ERRNO__ check.
19816 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
19818         * sysdeps/mips/mips32/libm-test-ulps: Update.
19819         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19821 2018-01-02  Florian Weimer  <fweimer@redhat.com>
19823         * misc/tst-pselect.c: Add copyright header.
19825 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
19827         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19828         comment.
19829         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19830         comment.
19831         (settrlimit): Rename into setrlimit.
19832         (__sttrlimit): Rename into __setrlimit.
19834         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19835         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19836         never defined in that case.
19838 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
19840         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19842         * sysdeps/arm/libm-test-ulps: Update.
19844         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19845         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19847 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19849         * NEWS: Add cosf and sincosf to list of optimized functions.
19851 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
19853         [BZ #22660]
19854         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19855         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19856         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19857         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19859 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
19861         [BZ #22433]
19862         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19864         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19865         making a copy of it.
19867 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
19869         * manual/texinfo.tex: Update to version 2017-12-26.21 with
19870         trailing whitespace removed.
19871         * scripts/config.guess: Update to version 2018-01-01.
19872         * scripts/config.sub: Update to version 2018-01-01.
19873         * scripts/move-if-change: Update from gnulib.
19875         * NEWS: Update copyright dates.
19876         * catgets/gencat.c (print_version): Likewise.
19877         * csu/version.c (banner): Likewise.
19878         * debug/catchsegv.sh: Likewise.
19879         * debug/pcprofiledump.c (print_version): Likewise.
19880         * debug/xtrace.sh (do_version): Likewise.
19881         * elf/ldconfig.c (print_version): Likewise.
19882         * elf/ldd.bash.in: Likewise.
19883         * elf/pldd.c (print_version): Likewise.
19884         * elf/sotruss.sh: Likewise.
19885         * elf/sprof.c (print_version): Likewise.
19886         * iconv/iconv_prog.c (print_version): Likewise.
19887         * iconv/iconvconfig.c (print_version): Likewise.
19888         * locale/programs/locale.c (print_version): Likewise.
19889         * locale/programs/localedef.c (print_version): Likewise.
19890         * login/programs/pt_chown.c (print_version): Likewise.
19891         * malloc/memusage.sh (do_version): Likewise.
19892         * malloc/memusagestat.c (print_version): Likewise.
19893         * malloc/mtrace.pl: Likewise.
19894         * manual/libc.texinfo: Likewise.
19895         * nptl/version.c (banner): Likewise.
19896         * nscd/nscd.c (print_version): Likewise.
19897         * nss/getent.c (print_version): Likewise.
19898         * nss/makedb.c (print_version): Likewise.
19899         * posix/getconf.c (main): Likewise.
19900         * scripts/test-installation.pl: Likewise.
19901         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19903         * All files with FSF copyright notices: Update copyright dates
19904         using scripts/update-copyrights.
19905         * locale/programs/charmap-kw.h: Regenerated.
19906         * locale/programs/locfile-kw.h: Likewise.
19908 2017-12-31  Zack Weinberg  <zackw@panix.com>
19910         * libio/bits/libio-ldbl.h: Correct check for improper
19911         inclusion.  Add own multiple include guard.
19913 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
19914             Dmitry V. Levin  <ldv@altlinux.org>
19916         [BZ #22625]
19917         CVE-2017-16997
19918         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19919         string token expansion. Check for NULL pointer or empty string possibly
19920         returned by expand_dynamic_string_token.
19921         (decompose_rpath): Check for empty path after dynamic string
19922         token expansion.
19924 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
19926         [BZ #22433]
19927         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19929         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19930         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19931         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
19932         and PTRACE_SYSCALL.
19933         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19934         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19935         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19936         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19937         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19938         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19940         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19941         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19942         __ptrace_peeksiginfo_flags, ptrace): Move to ...
19943         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19944         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19945         bits/ptrace-shared.h.
19946         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19947         <bits/ptrace-shared.h>.
19948         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19949         __ptrace_peeksiginfo_flags, ptrace): Remove.
19950         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19951         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19952         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19953         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19954         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19956 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
19958         [BZ #17804]
19959         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19960         end of the loop. Improve comments.
19962 2017-12-29  Zack Weinberg  <zackw@panix.com>
19964         [BZ #22615]
19965         * manual/errno.texi (Checking for Errors): Explicitly say that errno
19966         might be set on success.
19968 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
19970         [BZ #22611]
19971         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19972         is unchanged on success.
19974 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
19976         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19977         updated.
19978         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19979         expand_dynamic_string_token): Likewise.
19980         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19981         is_path argument.
19983         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19984         contains ':'.
19986         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19987         is set and name contains ':', and all code depending on these checks.
19989 2017-12-24  Zack Weinberg  <zackw@panix.com>
19991         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19992         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19993         respectively.
19994         * libio/libio.h: Rename the original version of this file to
19995         libio/bits/libio.h.  Error out if not included by stdio.h or the
19996         stub libio.h.
19997         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
19998         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
19999         if not included by bits/libio.h or the stub _G_config.h.
20000         * sysdeps/unix/sysv/linux/_G_config.h: Move to
20001         sysdeps/unix/sysv/linux/bits.  Error out if not included by
20002         bits/libio.h or the stub _G_config.h.
20003         * libio/stdio.h: Include bits/libio.h, not libio.h.
20004         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20005         well as libio.h and _G_config.h.
20007         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20008         * libio/strfile.h, stdio-common/vfscanf.c
20009         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20010         Include stdio.h, not _G_config.h nor libio.h.
20011         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20012         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20014         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20016 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
20018         [BZ #22347]
20019         * stdlib/getrandom.c (getrandom): Fix comment.
20020         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20022 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
20024         [BZ #21161]
20025         * manual/arith.texi (strtoul): Fix a typo.
20027         [BZ #22596]
20028         * manual/arith.texi (finite): Fix the description of the return
20029         value.
20031 2017-12-22  Eric Blake  <ebb9@byu.net>
20033         Avoid gcc warnings on cygwin
20034         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20035         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20036         Avoid unused variable.
20038 2017-12-22  Florian Weimer  <fweimer@redhat.com>
20040         * io/Makefile (routines): Add copy_file_range.
20041         (tests): Add tst-copy_file_range.
20042         (tests-static, tests-internal): Add tst-copy_file_range-compat.
20043         * io/Versions (GLIBC_2.27): Export copy_file_range.
20044         * io/copy_file_range-compat.c: New file.
20045         * io/copy_file_range.c: Likewise.
20046         * io/tst-copy_file_range-compat.c: Likewise.
20047         * io/tst-copy_file_range.c: Likewise.
20048         * manual/llio.texi (Copying File Data): New section.
20049         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20050         * support/Makefile (libsupport-routines): Add support-xfstat,
20051         xftruncate, xlseek.
20052         * support/support-xfstat.c: New file.
20053         * support/xftruncate.c: Likewise.
20054         * support/xlseek.c: Likewise.
20055         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20056         * sysdeps/unix/sysv/linux/**.abilist: Update.
20057         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20059 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20061         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20062         disable-multi-arch variant to aarch64-linux-gnu.
20064 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
20066         * manual/texinfo.tex: Update to version 2017-12-18.20 with
20067         trailing whitespace removed.
20068         * scripts/config.guess: Update to version 2017-12-17.
20069         * scripts/config.sub: Update to version 2017-11-23.
20070         * scripts/install-sh: Update to version 2017-09-23.17.
20071         * scripts/move-if-change: Update to version 2017-09-13 06:45.
20073 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20075         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20076         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20077         * sysdeps/tile/_mcount.S (__mcount): Likewise.
20078         * sysdeps/tile/crti.S (_init, _fini): Likewise.
20079         * sysdeps/tile/crtn.S: Likewise.
20080         * sysdeps/tile/dl-start.S (_start): Likewise.
20081         * sysdeps/tile/dl-trampoline.S: Likewise.
20082         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20083         * sysdeps/tile/start.S (_start): Likewise.
20084         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20085         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20086         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20087         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20088         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20089         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20090         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20092         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20093         comment.
20094         * sysdeps/tile/preconfigure: Remove tilegx folder.
20095         * sysdeps/tile/tilegx/Implies: Move definitions to ...
20096         * sysdeps/tile/Implies: ... here.
20097         * sysdeps/tile/tilegx/Makefile: Move rules to ...
20098         * sysdeps/tile/Makefile: ... here.
20099         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20100         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
20101         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20102         * sysdeps/tile/bits/wordsize.h: ... here.
20103         * sysdeps/tile/tilegx/*: Move to ...
20104         * sysdeps/tile/*: ... here.
20105         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20106         * sysdeps/tile/tilegx32/Implies: ... here.
20107         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20108         * sysdeps/tile/tilegx64/Implies: ... here.
20109         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20110         to ...
20111         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20112         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20113         * sysdeps/unix/sysv/linux/tile/*: ... here.
20114         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20115         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20117         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20119         * README: Remove tilepro-*-linux-gnu from supported architecture.
20120         * scripts/build-many-glibcs.py: Likewise.
20121         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20122         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20123         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20124         elf_machine_matches_host, elf_machine_dynamic,
20125         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20126         howto, elf_machine_rela): Likewise.
20127         * sysdeps/tile/dl-start.S (_start): Likewise.
20128         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20129         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20130         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20131         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20132         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20133         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20134         Likewise.
20135         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20136         * sysdeps/tile/preconfigure: Likewise.
20137         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20138         POINTER_CHK_GUARD): Likewise.
20139         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20140         * sysdeps/tile/start.S (_start): Likewise.
20141         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20142         Likewise.
20143         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20144         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20145         CMOVNEZ): Remove.
20146         * sysdeps/unix/sysv/linux/tile/bits/environments.h
20147         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20148         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20149         Likewise.
20150         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20151         * sysdeps/tile/tilepro/Implies: Remove file.
20152         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20153         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20154         * sysdeps/tile/tilepro/memchr.c: Likewise.
20155         * sysdeps/tile/tilepro/memcpy.S: Likewise.
20156         * sysdeps/tile/tilepro/memset.c: Likewise.
20157         * sysdeps/tile/tilepro/memusage.h: Likewise.
20158         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20159         * sysdeps/tile/tilepro/strchr.c: Likewise.
20160         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20161         * sysdeps/tile/tilepro/strlen.c: Likewise.
20162         * sysdeps/tile/tilepro/strrchr.c: Likewise.
20163         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20164         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20165         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20166         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20167         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20168         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20169         Likewise.
20170         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20171         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20172         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20173         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20174         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20175         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20176         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20177         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20178         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20179         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20180         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20181         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20182         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20183         tilepro mention in comment.
20185         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20186         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20187         * nptl/pthread_join_common.c: New file: common function used on
20188         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20189         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20190         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20191         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20192         (cleanup): Move definition to pthread_join_common.c.
20193         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20194         Remove superflous checks.
20195         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20196         Likewise.
20198 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20200         * sysdeps/aarch64/libm-test-ulps: Update.
20202 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20204         * sysdeps/aarch64/memset.S (MEMSET): Define.
20206 2017-12-20  Florian Weimer  <fweimer@redhat.com>
20208         [BZ #22635]
20209         nptl: Provide full implementation of pthread_self in libc.so.
20210         * nptl/Makefile (routines): Add pthread_self.
20211         (libpthread-routines): Replace pthread_self with
20212         compat-pthread_self.
20213         * nptl/forward.c (pthread_self): Remove.
20214         * nptl/nptl-init.c (pthread_functions): Do not initialize
20215         ptr_pthread_self.
20216         * nptl/pthread_self.c (pthread_self): Remove weak alias.
20217         * nptl/compat-pthread_self.c: New file.
20218         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20219         Remove ptr_pthread_self.
20221 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
20223         * posix/regcomp.c: Fix spelling in comments.
20224         * posix/regex.h: Likewise.
20225         * posix/regex_internal.c: Likewise.
20226         * posix/regexec.c: Likewise.
20228 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20230         [BZ #22377]
20231         * math/Makefile [C++] (tests): Add test for iseqsig.
20232         * math/math.h [C++] (iseqsig): New implementation, which does
20233         not rely on __MATH_TG/__builtin_types_compatible_p.
20234         * math/test-math-iseqsig.cc: New file.
20235         * sysdeps/powerpc/powerpc64le/Makefile
20236         (CFLAGS-test-math-iseqsig.cc): New variable.
20238 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
20240         * elf/dl-load.c (is_trusted_path): Remove.
20241         (fillin_rpath): Remove check_trusted argument and its use,
20242         all callers changed.
20244 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20246         [BZ #22630]
20247         * Makeconfig (link-pie-before-libc): Replace -pie with
20248         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20249         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20250         (tst-dlopen-aout-no-pie): New.
20251         (LDFLAGS-tst-prelink): Removed.
20252         (tst-prelink-no-pie): New.
20253         (LDFLAGS-tst-main1): Removed.
20254         (tst-main1-no-pie): New.
20255         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20256         (tst-gmon-no-pie): New.
20258 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20260         * manual/install.texi: Document that --enable-static-pie
20261         implies PIE.
20262         * INSTALL: Regenerated.
20264 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20266         [BZ #21309]
20267         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20268         unsigned.
20270 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20272         Revert:
20274         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20276         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20278         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20280         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20281         <errno.h>.  Include "eexp.tbl".
20282         (half): New constant.
20283         (one): Likewise.
20284         (__ieee754_exp): Rewrite.
20285         (__slowexp): Remove prototype.
20286         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20287         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20288         * sysdeps/i386/fpu/slowexp.c: Likewise.
20289         * sysdeps/ia64/fpu/slowexp.c: Likewise.
20290         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20291         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20292         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20293         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20294         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20295         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20296         comment.
20297         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20298         (CPPFLAGS-slowexp.c): Remove variable.
20299         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20300         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20301         (CFLAGS-slowexp-fma.c): Remove variable.
20302         (CFLAGS-slowexp-fma4.c): Likewise.
20303         (CFLAGS-slowexp-avx.c): Likewise.
20304         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20305         define as macro.
20306         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20307         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20308         * math/Makefile (type-double-routines): Remove slowexp.
20309         * manual/probes.texi (slowexp_p6): Remove.
20310         (slowexp_p32): Likewise.
20312 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20314         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20315         arithmetic.
20317         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20319 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20321         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20323 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20325         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20326         <errno.h>.  Include "eexp.tbl".
20327         (half): New constant.
20328         (one): Likewise.
20329         (__ieee754_exp): Rewrite.
20330         (__slowexp): Remove prototype.
20331         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20332         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20333         * sysdeps/i386/fpu/slowexp.c: Likewise.
20334         * sysdeps/ia64/fpu/slowexp.c: Likewise.
20335         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20336         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20337         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20338         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20339         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20340         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20341         comment.
20342         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20343         (CPPFLAGS-slowexp.c): Remove variable.
20344         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20345         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20346         (CFLAGS-slowexp-fma.c): Remove variable.
20347         (CFLAGS-slowexp-fma4.c): Likewise.
20348         (CFLAGS-slowexp-avx.c): Likewise.
20349         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20350         define as macro.
20351         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20352         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20353         * math/Makefile (type-double-routines): Remove slowexp.
20354         * manual/probes.texi (slowexp_p6): Remove.
20355         (slowexp_p32): Likewise.
20357 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20358             James Clarke  <jrtc27@jrtc27.com>
20360         [BZ #22603]
20361         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20362         addition.
20364 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20366         [BZ #22605]
20367         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20368         code.
20370 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20372         [BZ #22563]
20373         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20374         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20375         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20376         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20377         to feature_1.
20379 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20381         [BZ #22563]
20382         * bits/types/__cancel_jmp_buf_tag.h: New file.
20383         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20384         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20385         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20386         * nptl/Makefile (headers): Add
20387         bits/types/__cancel_jmp_buf_tag.h.
20388         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20389         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20390         * sysdeps/nptl/pthread.h: Include
20391         <bits/types/__cancel_jmp_buf_tag.h>.
20392         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20393         __cancel_jmp_buf.
20394         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20396 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
20398         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20399         --enable-static-pie variants to x86_64, x32 and i686.
20401 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20403         [BZ #22631]
20404         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20405         argument for attrubutes.  All callers changed.
20406         (__inline_mathop1): Likewise.  All callers changed.
20407         (__inline_mathop): Likewise.  All callers changed.
20408         [__USE_MISC] (scalbn): Use __inline_forward instead of
20409         __inline_forward_c.
20410         [__USE_ISOC99] (scalbln): Likewise.
20411         [__USE_ISOC99] (nearbyint): Likewise.
20412         [__USE_ISOC99] (lrint): Likewise.
20413         [__USE_MISC] (scalbnf): Likewise.
20414         [__USE_ISOC99] (scalblnf): Likewise.
20415         [__USE_ISOC99] (nearbyintf): Likewise.
20416         [__USE_ISOC99] (lrintf): Likewise.
20417         [__USE_MISC] (scalbnl): Likewise.
20418         [__USE_ISOC99] (scalblnl): Likewise.
20419         [__USE_ISOC99] (nearbyintl): Likewise.
20420         [__USE_ISOC99] (lrintl): Likewise.
20421         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20422         __inline_mathop and __m81_defun changed.
20424         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20425         CPU or FPU for ARM hard-float configurations.
20427 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
20429         * nptl/tst-attr3.c: Include <libc-diag.h>.
20430         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20432         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20434         * string/tester.c (test_strncat): Also disable -Warray-bounds
20435         warnings for two tests.
20437 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
20439         [BZ #22614]
20440         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20441         $(cc-pie-default) == yes.
20442         * config.make.in (cc-pie-default): New.
20443         * configure.ac (libc_cv_pie_default): Renamed to ...
20444         (libc_cv_cc_pie_default): This.
20445         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20446         * configure: Regenerated.
20448 2017-12-18  Florian Weimer  <fweimer@redhat.com>
20450         [BZ #20204]
20451         ld.so: Harden dl-libc/libdl hooks.
20452         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20453         (rtld_active): New function.
20454         * dlfcn/dladdr.c (__dladdr): Call it.
20455         * dlfcn/dladdr1.c (__dladdr1): Likewise.
20456         * dlfcn/dlclose.c (__dlcose): Likewise.
20457         * dlfcn/dlerror.c (__dlerror): Likewise.
20458         * dlfcn/dlinfo.c (__dlinfo): Likewise.
20459         * dlfcn/dlmopen.c (__dlmopen): Likewise.
20460         * dlfcn/dlopen.c (__dlopen): Likewise.
20461         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20462         * dlfcn/dlsym.c (__dlsym): Likewise.
20463         * dlfcn/dlvsym.c (__dlvsym): Likewise.
20464         * libio/vtables.c (_IO_vtable_check): Likewise.
20465         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20466         (__libc_dlclose): Likewise.
20467         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20468         assignment.
20470 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
20472         [BZ #22446]
20473         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20474         buffers for readlink input and output.
20476 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
20478         [BZ #22624]
20479         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20480         inhibit_stack_protector.
20482         [BZ #22624]
20483         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20484         inhibit_stack_protector.
20486 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
20488         [BZ #22627]
20489         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20490         code and invocation.
20492 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20494         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20496 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
20498         [BZ #22505]
20499         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20501 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20503         * sysdeps/s390/fpu/libm-test-ulps: Update.
20505 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20509 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20511         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20512         constants to s_sincosf.h file.
20513         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20514         * sysdeps/ieee754/flt-32/s_sincosf.c: New
20515         implementation.
20516         * sysdeps/ieee754/flt-32/s_sincosf.h:
20517         New file.
20519 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
20521         [BZ #14681]
20522         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20523         before mtrace.
20525 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20527         [BZ #19574]
20528         * INSTALL: Regenerated.
20529         * Makeconfig (real-static-start-installed-name): New.
20530         (pic-default): Updated for --enable-static-pie.
20531         (pie-default): New for --enable-static-pie.
20532         (default-pie-ldflag): Likewise.
20533         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20534         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20535         Replace $(static-start-installed-name) with
20536         $(real-static-start-installed-name).
20537         (+prectorT): Updated for --enable-static-pie.
20538         (+postctorT): Likewise.
20539         (CFLAGS-.o): Add $(pie-default).
20540         (CFLAGS-.op): Likewise.
20541         * NEWS: Mention --enable-static-pie.
20542         * config.h.in (ENABLE_STATIC_PIE): New.
20543         * configure.ac (--enable-static-pie): New configure option.
20544         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20545         (have-static-pie): Likewise.
20546         Enable static PIE if linker supports --no-dynamic-linker.
20547         (ENABLE_STATIC_PIE): New AC_DEFINE.
20548         (enable-static-pie): New LIBC_CONFIG_VAR.
20549         * configure: Regenerated.
20550         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20551         gr$(start-installed-name) for --enable-static-pie.
20552         (extra-objs): Likewise.
20553         (install-lib): Likewise.
20554         (extra-objs): Add static-reloc.o and static-reloc.os
20555         ($(objpfx)$(start-installed-name)): Also depend on
20556         $(objpfx)static-reloc.o.
20557         ($(objpfx)r$(start-installed-name)): New.
20558         ($(objpfx)g$(start-installed-name)): Also depend on
20559         $(objpfx)static-reloc.os.
20560         ($(objpfx)gr$(start-installed-name)): New.
20561         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20562         in libc.a.
20563         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20564         initimage.
20565         * csu/static-reloc.c: New file.
20566         * elf/Makefile (routines): Add dl-reloc-static-pie.
20567         (elide-routines.os): Likewise.
20568         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20569         (tst-tls1-static-non-pie-no-pie): New.
20570         * elf/dl-reloc-static-pie.c: New file.
20571         * elf/dl-support.c (_dl_get_dl_main_map): New function.
20572         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20573         STATIC_PIE_BOOTSTRAP.
20574         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20575         * gmon/Makefile (tests): Add tst-gmon-static-pie.
20576         (tests-static): Likewise.
20577         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20578         (tst-gmon-static-no-pie): New.
20579         (CFLAGS-tst-gmon-static-pie.c): Likewise.
20580         (CRT-tst-gmon-static-pie): Likewise.
20581         (tst-gmon-static-pie-ENV): Likewise.
20582         (tests-special): Likewise.
20583         ($(objpfx)tst-gmon-static-pie.out): Likewise.
20584         (clean-tst-gmon-static-pie-data): Likewise.
20585         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20586         * gmon/tst-gmon-static-pie.c: New file.
20587         * manual/install.texi: Document --enable-static-pie.
20588         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20589         (_dl_get_dl_main_map): Likewise.
20590         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20591         * sysdeps/x86_64/configure.ac: Likewise.
20592         * sysdeps/i386/configure: Regenerated.
20593         * sysdeps/x86_64/configure: Likewise.
20594         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20595         (ASFLAGS-.op): Likewise.
20597 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
20599         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20600         * posix/tst-mmap-offset.c (fname): Use /tmp.
20601         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20603 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
20605         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20607 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
20609         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20610         errno.
20612 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
20614         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20615         --with-float=hard for arm-linux-gnueabihf configurations.
20617         [BZ #14121]
20618         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20619         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
20620         ($(mo-installed)): Use $(objpfx)%.mo.
20621         (realclean): Remove rule.
20623         * po/Makefile (linguas): Remove rule and dependencies.
20624         (linguas.mo): Likewise.
20625         (.PHONY): Do not depend on linguas and linguas.mo.
20626         (podir): Remove variable.
20627         (pofiles): Likewise.
20628         [$(pofiles)] (%.po): Remove rule.
20630         * sysdeps/sparc/sparc32/Makefile
20631         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20632         start-of-line whitespace in argument of echo.
20633         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20634         with whitespace.  Generate __wrap_.udiv alias.
20635         * sysdeps/sparc/sparc32/rem.S: Regenerated.
20636         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20637         * sysdeps/sparc/sparc32/udiv.S: Likewise.
20638         * sysdeps/sparc/sparc32/urem.S: Likewise.
20640 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20642         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20643         for aligned inputs.
20645 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20647         * benchtests/bench-strcmp.c: Print output in JSON format.
20649         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20651 2017-12-14  Florian Weimer  <fweimer@redhat.com>
20653         [BZ #22607]
20654         CVE-2017-1000409
20655         * elf/dl-load.c (_dl_init_paths): Compute number of components in
20656         the expanded path string.
20658 2017-12-14  Florian Weimer  <fweimer@redhat.com>
20660         [BZ #22606]
20661         CVE-2017-1000408
20662         * elf/dl-load.c (system_dirs): Update comment.
20663         (nsystem_dirs_len): Use array_length.
20664         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20666 2017-12-14  Florian Weimer  <fweimer@redhat.com>
20668         Simplify compiling most of support/ outside of glibc.
20669         * support/check_addrinfo.c: Include <string.h>.
20670         * support/check_dns_packet.c: Likewise.
20671         * support/check_hostent.c: Likewise.
20672         * support/support_can_chroot.c: Include <support/xunistd.h>.
20673         * support/support_format_addrinfo.c: Include <stdlib.h>
20674         * support/support_format_dns_packet.c: Include <stdbool.h>.
20675         * support/support_format_hostent.c: Include <stdlib.h>.
20676         * support/support_format_netent.c: Likewise.
20677         * support/support_write_string.c: Include <support/xunistd.h>.
20678         * support/xdlfcn.c: Include <stddef.h>.
20680 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
20682         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20684 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20685             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20687         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20688         (sysdeps_routines): Add memset-niagara7.
20689         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20690         Likewise.
20691         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20692         file.
20693         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20694         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20695         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20696         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20697         Add niagara7 option.
20698         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20699         memset.
20701         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20702         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20703         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20704         Likewise.
20705         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20706         New file.
20707         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20708         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20709         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20710         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20711         and __memmove_niagara7.
20712         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20713         Add niagara7 option.
20714         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20715         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20716         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20717         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20718         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20720 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
20722         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20723         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20724         * sysdeps/sparc/sparc64/memmove.S: Likewise.
20725         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20727         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20728         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20729         _dl_sparc_cap_flags array.
20730         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20732 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20734         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20735         time whenever possible.
20737 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
20739         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20740         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20742 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
20744         * soft-fp/fmadf4.c: Move to ....
20745         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20746         * soft-fp/fmasf4.c: Move to ....
20747         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20748         * soft-fp/fmatf4.c: Move to ....
20749         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20750         * sysdeps/ieee754/soft-fp/Makefile: New file.
20751         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20752         * sysdeps/arm/preconfigure: Regenerated.
20753         * sysdeps/arm/nofpu/Implies: New file.
20754         * sysdeps/arm/s_fma.c: Remove file.
20755         * sysdeps/arm/s_fmaf.c: Likewise.
20756         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20757         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20758         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20759         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20760         * sysdeps/microblaze/s_fma.c: Remove file.
20761         * sysdeps/microblaze/s_fmaf.c: Likewise.
20762         * sysdeps/mips/mips32/nofpu/Implies: New file.
20763         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20764         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20765         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20766         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20767         * sysdeps/mips/ieee754/s_fma.c: Remove file.
20768         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20769         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20770         implementation.
20771         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20772         * sysdeps/nios2/s_fma.c: Remove file.
20773         * sysdeps/nios2/s_fmaf.c: Likewise.
20774         * sysdeps/sh/nofpu/Implies: New file.
20775         * sysdeps/sh/s_fma.c: Remove file.
20776         * sysdeps/sh/s_fmaf.c: Likewise.
20777         * sysdeps/tile/Implies: Add ieee754/soft-fp.
20778         * sysdeps/tile/s_fma.c: Remove file.
20779         * sysdeps/tile/s_fmaf.c: Likewise.
20781 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
20783         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20784         Add s_cosf-sse2 and s_cosf-fma.
20785         (CFLAGS-s_cosf-fma.c): New.
20786         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20787         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20788         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20790 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
20792         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20794 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20796         * libio/Makefile (tests): Add tst-bz22415.
20797         (tst-bz22415-ENV): New rule.
20798         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20799         (tests-special): Add tst-bz22415-mem.out.
20800         ($(objpfx)tst-bz22415-mem.out): New rule.
20801         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20802         in case of a successful seek operation.
20803         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20804         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20805         buffer is required.
20806         * libio/tst-bz22415.c: New test.
20808         * sysdeps/ia64/fpu/libm-test-ulps: Update.
20810 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
20812         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20813         __IPC_64 to 0 to avoid IPC_64 being set.
20815 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20817         [BZ #22593]
20818         * math/bits/mathcalls.h (nextafter): Remove const.
20819         (nexttoward): Likewise.
20821 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
20823         * configure.ac (--with-fp): Remove configure option.
20824         (with_fp_cond): New variable.
20825         (libc_cv_with_fp): New configure test.  Use this variable instead
20826         of with_fp.
20827         * configure: Regenerated.
20828         * config.make.in (with-fp): Use @libc_cv_with_fp@.
20829         * manual/install.texi (Configuring and compiling): Remove
20830         --without-fp.
20831         * INSTALL: Regenerated.
20832         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20833         * sysdeps/mips/preconfigure (with_fp_cond): Define.
20834         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20835         * sysdeps/sh/preconfigure (with_fp_cond): Define.
20836         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20837         use --without-fp to configure glibc.
20839 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
20841         * manual/locale.texi (nl_langinfo): Fix a typo.
20843 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
20845         [BZ #22588]
20846         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20848 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
20850         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20851         (CFLAGS-argp-parse.c): Likewise.
20852         (CFLAGS-argp-fmtstream.c): Likewise.
20853         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20854         (CPPFLAGS-sha512-crypt.c): Likewise.
20855         (CPPFLAGS-md5-crypt.c): Likewise.
20856         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20857         (CFLAGS-stack_chk_fail_local.c): Likewise.
20858         (CFLAGS-backtrace.c): Likewise.
20859         (CFLAGS-sprintf_chk.c): Likewise.
20860         (CFLAGS-snprintf_chk.c): Likewise.
20861         (CFLAGS-vsprintf_chk.c): Likewise.
20862         (CFLAGS-vsnprintf_chk.c): Likewise.
20863         (CFLAGS-asprintf_chk.c): Likewise.
20864         (CFLAGS-vasprintf_chk.c): Likewise.
20865         (CFLAGS-obprintf_chk.c): Likewise.
20866         (CFLAGS-dprintf_chk.c): Likewise.
20867         (CFLAGS-vdprintf_chk.c): Likewise.
20868         (CFLAGS-printf_chk.c): Likewise.
20869         (CFLAGS-fprintf_chk.c): Likewise.
20870         (CFLAGS-vprintf_chk.c): Likewise.
20871         (CFLAGS-vfprintf_chk.c): Likewise.
20872         (CFLAGS-gets_chk.c): Likewise.
20873         (CFLAGS-fgets_chk.c): Likewise.
20874         (CFLAGS-fgets_u_chk.c): Likewise.
20875         (CFLAGS-fread_chk.c): Likewise.
20876         (CFLAGS-fread_u_chk.c): Likewise.
20877         (CFLAGS-swprintf_chk.c): Likewise.
20878         (CFLAGS-vswprintf_chk.c): Likewise.
20879         (CFLAGS-wprintf_chk.c): Likewise.
20880         (CFLAGS-fwprintf_chk.c): Likewise.
20881         (CFLAGS-vwprintf_chk.c): Likewise.
20882         (CFLAGS-vfwprintf_chk.c): Likewise.
20883         (CFLAGS-fgetws_chk.c): Likewise.
20884         (CFLAGS-fgetws_u_chk.c): Likewise.
20885         (CFLAGS-read_chk.c): Likewise.
20886         (CFLAGS-pread_chk.c): Likewise.
20887         (CFLAGS-pread64_chk.c): Likewise.
20888         (CFLAGS-recv_chk.c): Likewise.
20889         (CFLAGS-recvfrom_chk.c): Likewise.
20890         (CFLAGS-tst-longjmp_chk.c): Likewise.
20891         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20892         (CFLAGS-tst-longjmp_chk2.c): Likewise.
20893         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20894         (CFLAGS-tst-longjmp_chk3.c): Likewise.
20895         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20896         (CFLAGS-tst-chk1.c): Likewise.
20897         (CFLAGS-tst-chk2.c): Likewise.
20898         (CFLAGS-tst-chk3.c): Likewise.
20899         (CFLAGS-tst-chk4.cc): Likewise.
20900         (CFLAGS-tst-chk5.cc): Likewise.
20901         (CFLAGS-tst-chk6.cc): Likewise.
20902         (CFLAGS-tst-lfschk1.c): Likewise.
20903         (CFLAGS-tst-lfschk2.c): Likewise.
20904         (CFLAGS-tst-lfschk3.c): Likewise.
20905         (CFLAGS-tst-lfschk4.cc): Likewise.
20906         (CFLAGS-tst-lfschk5.cc): Likewise.
20907         (CFLAGS-tst-lfschk6.cc): Likewise.
20908         (CFLAGS-tst-ssp-1.c): Likewise.
20909         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20910         (CFLAGS-scandir64.c): Likewise.
20911         (CFLAGS-scandir-tail.c): Likewise.
20912         (CFLAGS-scandir64-tail.c): Likewise.
20913         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20914         (CFLAGS-dl-tunables.c): Likewise.
20915         (CFLAGS-dl-runtime.c): Likewise.
20916         (CFLAGS-dl-lookup.c): Likewise.
20917         (CFLAGS-dl-iterate-phdr.c): Likewise.
20918         (CFLAGS-vismain.c): Likewise.
20919         (CFLAGS-tst-linkall-static.c): Likewise.
20920         (CFLAGS-tst-linkall-static.c): Likewise.
20921         (CPPFLAGS-dl-load.c): Likewise.
20922         (CFLAGS-ldconfig.c): Likewise.
20923         (CFLAGS-dl-cache.c): Likewise.
20924         (CFLAGS-cache.c): Likewise.
20925         (CFLAGS-rtld.c): Likewise.
20926         (CFLAGS-multiload.c): Likewise.
20927         (CFLAGS-filtmod1.c): Likewise.
20928         (CFLAGS-tst-align.c): Likewise.
20929         (CFLAGS-tst-align2.c): Likewise.
20930         (CFLAGS-tst-alignmod.c): Likewise.
20931         (CFLAGS-tst-alignmod2.c): Likewise.
20932         (CPPFLAGS-tst-execstack.c): Likewise.
20933         (CFLAGS-tst-ptrguard1-static.c): Likewise.
20934         (CFLAGS-tst-latepthreadmod.c): Likewise.
20935         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20936         (CFLAGS-getgrnam_r.c): Likewise.
20937         (CFLAGS-getgrent_r.c): Likewise.
20938         (CFLAGS-getgrent.c): Likewise.
20939         (CFLAGS-fgetgrent.c): Likewise.
20940         (CFLAGS-fgetgrent_r.c): Likewise.
20941         (CFLAGS-putgrent.c): Likewise.
20942         (CFLAGS-initgroups.c): Likewise.
20943         (CFLAGS-getgrgid.c): Likewise.
20944         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20945         (CFLAGS-getsgent.c): Likewise.
20946         (CFLAGS-fgetsgent.c): Likewise.
20947         (CFLAGS-fgetsgent_r.c): Likewise.
20948         (CFLAGS-putsgent.c): Likewise.
20949         (CFLAGS-getsgnam.c): Likewise.
20950         (CFLAGS-getsgnam_r.c): Likewise.
20951         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20952         (CFLAGS-iconv_charmap.c): Likewise.
20953         (CFLAGS-dummy-repertoire.c): Likewise.
20954         (CFLAGS-charmap.c): Likewise.
20955         (CFLAGS-linereader.c): Likewise.
20956         (CFLAGS-simple-hash.c): Likewise.
20957         (CFLAGS-gconv_conf.c): Likewise.
20958         (CFLAGS-iconvconfig.c): Likewise.
20959         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20960         (CFLAGS-gethstbyad.c): Likewise.
20961         (CFLAGS-gethstbynm_r.c): Likewise.
20962         (CFLAGS-gethstbynm.c): Likewise.
20963         (CFLAGS-gethstbynm2_r.c): Likewise.
20964         (CFLAGS-gethstbynm2.c): Likewise.
20965         (CFLAGS-gethstent_r.c): Likewise.
20966         (CFLAGS-gethstent.c): Likewise.
20967         (CFLAGS-rcmd.c): Likewise.
20968         (CFLAGS-getnetbynm_r.c): Likewise.
20969         (CFLAGS-getnetbynm.c): Likewise.
20970         (CFLAGS-getnetbyad_r.c): Likewise.
20971         (CFLAGS-getnetbyad.c): Likewise.
20972         (CFLAGS-getnetent_r.c): Likewise.
20973         (CFLAGS-getnetent.c): Likewise.
20974         (CFLAGS-getaliasent_r.c): Likewise.
20975         (CFLAGS-getaliasent.c): Likewise.
20976         (CFLAGS-getrpcent_r.c): Likewise.
20977         (CFLAGS-getrpcent.c): Likewise.
20978         (CFLAGS-getservent_r.c): Likewise.
20979         (CFLAGS-getservent.c): Likewise.
20980         (CFLAGS-getprtent_r.c): Likewise.
20981         (CFLAGS-getprtent.c): Likewise.
20982         (CFLAGS-either_ntoh.c): Likewise.
20983         (CFLAGS-either_hton.c): Likewise.
20984         (CFLAGS-getnetgrent.c): Likewise.
20985         (CFLAGS-getnetgrent_r.c): Likewise.
20986         (CFLAGS-tst-checks-posix.c): Likewise.
20987         (CFLAGS-tst-sockaddr.c): Likewise.
20988         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20989         (CFLAGS-tst-translit.c): Likewise.
20990         (CFLAGS-tst-gettext2.c): Likewise.
20991         (CFLAGS-tst-codeset.c): Likewise.
20992         (CFLAGS-tst-gettext3.c): Likewise.
20993         (CFLAGS-tst-gettext4.c): Likewise.
20994         (CFLAGS-tst-gettext5.c): Likewise.
20995         (CFLAGS-tst-gettext6.c): Likewise.
20996         * io/Makefile (CFLAGS-open.c): Likewise.
20997         (CFLAGS-open64.c): Likewise.
20998         (CFLAGS-creat.c): Likewise.
20999         (CFLAGS-creat64.c): Likewise.
21000         (CFLAGS-fcntl.c): Likewise.
21001         (CFLAGS-poll.c): Likewise.
21002         (CFLAGS-ppoll.c): Likewise.
21003         (CFLAGS-lockf.c): Likewise.
21004         (CFLAGS-statfs.c): Likewise.
21005         (CFLAGS-fstatfs.c): Likewise.
21006         (CFLAGS-statvfs.c): Likewise.
21007         (CFLAGS-fstatvfs.c): Likewise.
21008         (CFLAGS-fts.c): Likewise.
21009         (CFLAGS-fts64.c): Likewise.
21010         (CFLAGS-ftw.c): Likewise.
21011         (CFLAGS-ftw64.c): Likewise.
21012         (CFLAGS-lockf.c): Likewise.
21013         (CFLAGS-posix_fallocate.c): Likewise.
21014         (CFLAGS-posix_fallocate64.c): Likewise.
21015         (CFLAGS-fallocate.c): Likewise.
21016         (CFLAGS-fallocate64.c): Likewise.
21017         (CFLAGS-read.c): Likewise.
21018         (CFLAGS-write.c): Likewise.
21019         (CFLAGS-test-stat.c): Likewise.
21020         (CFLAGS-test-lfs.c): Likewise.
21021         * libio/Makefile (CFLAGS-fileops.c): Likewise.
21022         (CFLAGS-fputc.c): Likewise.
21023         (CFLAGS-fputwc.c): Likewise.
21024         (CFLAGS-freopen64.c): Likewise.
21025         (CFLAGS-freopen.c): Likewise.
21026         (CFLAGS-fseek.c): Likewise.
21027         (CFLAGS-fseeko64.c): Likewise.
21028         (CFLAGS-fseeko.c): Likewise.
21029         (CFLAGS-ftello64.c): Likewise.
21030         (CFLAGS-ftello.c): Likewise.
21031         (CFLAGS-fwide.c): Likewise.
21032         (CFLAGS-genops.c): Likewise.
21033         (CFLAGS-getc.c): Likewise.
21034         (CFLAGS-getchar.c): Likewise.
21035         (CFLAGS-getwc.c): Likewise.
21036         (CFLAGS-getwchar.c): Likewise.
21037         (CFLAGS-iofclose.c): Likewise.
21038         (CFLAGS-iofflush.c): Likewise.
21039         (CFLAGS-iofgetpos64.c): Likewise.
21040         (CFLAGS-iofgetpos.c): Likewise.
21041         (CFLAGS-iofgets.c): Likewise.
21042         (CFLAGS-iofgetws.c): Likewise.
21043         (CFLAGS-iofputs.c): Likewise.
21044         (CFLAGS-iofputws.c): Likewise.
21045         (CFLAGS-iofread.c): Likewise.
21046         (CFLAGS-iofsetpos64.c): Likewise.
21047         (CFLAGS-iofsetpos.c): Likewise.
21048         (CFLAGS-ioftell.c): Likewise.
21049         (CFLAGS-iofwrite.c): Likewise.
21050         (CFLAGS-iogetdelim.c): Likewise.
21051         (CFLAGS-iogetline.c): Likewise.
21052         (CFLAGS-iogets.c): Likewise.
21053         (CFLAGS-iogetwline.c): Likewise.
21054         (CFLAGS-ioputs.c): Likewise.
21055         (CFLAGS-ioseekoff.c): Likewise.
21056         (CFLAGS-ioseekpos.c): Likewise.
21057         (CFLAGS-iosetbuffer.c): Likewise.
21058         (CFLAGS-iosetvbuf.c): Likewise.
21059         (CFLAGS-ioungetc.c): Likewise.
21060         (CFLAGS-ioungetwc.c): Likewise.
21061         (CFLAGS-oldfileops.c): Likewise.
21062         (CFLAGS-oldiofclose.c): Likewise.
21063         (CFLAGS-oldiofgetpos64.c): Likewise.
21064         (CFLAGS-oldiofgetpos.c): Likewise.
21065         (CFLAGS-oldiofsetpos64.c): Likewise.
21066         (CFLAGS-oldiofsetpos.c): Likewise.
21067         (CFLAGS-peekc.c): Likewise.
21068         (CFLAGS-putc.c): Likewise.
21069         (CFLAGS-putchar.c): Likewise.
21070         (CFLAGS-putwc.c): Likewise.
21071         (CFLAGS-putwchar.c): Likewise.
21072         (CFLAGS-rewind.c): Likewise.
21073         (CFLAGS-wfileops.c): Likewise.
21074         (CFLAGS-wgenops.c): Likewise.
21075         (CFLAGS-oldiofopen.c): Likewise.
21076         (CFLAGS-iofopen.c): Likewise.
21077         (CFLAGS-iofopen64.c): Likewise.
21078         (CFLAGS-oldtmpfile.c): Likewise.
21079         (CFLAGS-tst_putwc.c): Likewise.
21080         * locale/Makefile (CFLAGS-md5.c): Likewise.
21081         (CFLAGS-charmap.c): Likewise.
21082         (CFLAGS-locfile.c): Likewise.
21083         (CFLAGS-charmap-dir.c): Likewise.
21084         * login/Makefile (CFLAGS-grantpt.c): Likewise.
21085         (CFLAGS-getpt.c): Likewise.
21086         (CFLAGS-pt_chown.c): Likewise.
21087         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21088         (CFLAGS-obstack.c): Likewise.
21089         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21090         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21091         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21092         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21093         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21094         (CFLAGS-test-tgmath.c): Likewise.
21095         (CFLAGS-test-tgmath2.c): Likewise.
21096         (CFLAGS-test-tgmath-ret.c): Likewise.
21097         (CFLAGS-test-powl.c): Likewise.
21098         (CFLAGS-test-snan.c): Likewise.
21099         (CFLAGS-test-signgam-finite.c): Likewise.
21100         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21101         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21102         (CFLAGS-test-signgam-uchar.c): Likewise.
21103         (CFLAGS-test-signgam-uchar-init.c): Likewise.
21104         (CFLAGS-test-signgam-uchar-static.c): Likewise.
21105         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21106         (CFLAGS-test-signgam-uint.c): Likewise.
21107         (CFLAGS-test-signgam-uint-init.c): Likewise.
21108         (CFLAGS-test-signgam-uint-static.c): Likewise.
21109         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21110         (CFLAGS-test-signgam-ullong.c): Likewise.
21111         (CFLAGS-test-signgam-ullong-init.c): Likewise.
21112         (CFLAGS-test-signgam-ullong-static.c): Likewise.
21113         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21114         (CFLAGS-test-math-cxx11.cc): Likewise.
21115         (CFLAGS-test-math-isinff.cc): Likewise.
21116         (CFLAGS-test-math-iszero.cc): Likewise.
21117         (CFLAGS-test-math-issignaling.cc): Likewise.
21118         (CFLAGS-test-math-iscanonical.cc): Likewise.
21119         (CFLAGS-test-iszero-excess-precision.c): Likewise.
21120         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21121         (CFLAGS-test-flt-eval-method.c): Likewise.
21122         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21123         (CFLAGS-test-finite-macros.c): Likewise.
21124         * misc/Makefile (CFLAGS-select.c): Likewise.
21125         (CFLAGS-tsearch.c): Likewise.
21126         (CFLAGS-lsearch.c): Likewise.
21127         (CFLAGS-pselect.c): Likewise.
21128         (CFLAGS-readv.c): Likewise.
21129         (CFLAGS-writev.c): Likewise.
21130         (CFLAGS-preadv.c): Likewise.
21131         (CFLAGS-preadv64.c): Likewise.
21132         (CFLAGS-pwritev.c): Likewise.
21133         (CFLAGS-pwritev64.c): Likewise.
21134         (CFLAGS-preadv2.c): Likewise.
21135         (CFLAGS-preadv64v2.c): Likewise.
21136         (CFLAGS-pwritev2.c): Likewise.
21137         (CFLAGS-pwritev64v2.c): Likewise.
21138         (CFLAGS-usleep.c): Likewise.
21139         (CFLAGS-syslog.c): Likewise.
21140         (CFLAGS-error.c): Likewise.
21141         (CFLAGS-getpass.c): Likewise.
21142         (CFLAGS-mkstemp.c): Likewise.
21143         (CFLAGS-mkstemp64.c): Likewise.
21144         (CFLAGS-getsysstats.c): Likewise.
21145         (CFLAGS-getusershell.c): Likewise.
21146         (CFLAGS-err.c): Likewise.
21147         (CFLAGS-tst-tsearch.c): Likewise.
21148         (CFLAGS-msync.c): Likewise.
21149         (CFLAGS-fdatasync.c): Likewise.
21150         (CFLAGS-fsync.c): Likewise.
21151         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21152         (CFLAGS-unwind.c): Likewise.
21153         (CFLAGS-unwind-forcedunwind.c): Likewise.
21154         (CFLAGS-pthread_cancel.c): Likewise.
21155         (CFLAGS-pthread_setcancelstate.c): Likewise.
21156         (CFLAGS-pthread_setcanceltype.c): Likewise.
21157         (CFLAGS-cancellation.c): Likewise.
21158         (CFLAGS-libc-cancellation.c): Likewise.
21159         (CFLAGS-pthread_exit.c): Likewise.
21160         (CFLAGS-forward.c): Likewise.
21161         (CFLAGS-pthread_testcancel.c): Likewise.
21162         (CFLAGS-pthread_join.c): Likewise.
21163         (CFLAGS-pthread_timedjoin.c): Likewise.
21164         (CFLAGS-pthread_once.c): Likewise.
21165         (CFLAGS-pthread_cond_wait.c): Likewise.
21166         (CFLAGS-sem_wait.c): Likewise.
21167         (CFLAGS-sem_timedwait.c): Likewise.
21168         (CFLAGS-fcntl.c): Likewise.
21169         (CFLAGS-lockf.c): Likewise.
21170         (CFLAGS-pread.c): Likewise.
21171         (CFLAGS-pread64.c): Likewise.
21172         (CFLAGS-pwrite.c): Likewise.
21173         (CFLAGS-pwrite64.c): Likewise.
21174         (CFLAGS-wait.c): Likewise.
21175         (CFLAGS-waitpid.c): Likewise.
21176         (CFLAGS-sigwait.c): Likewise.
21177         (CFLAGS-msgrcv.c): Likewise.
21178         (CFLAGS-msgsnd.c): Likewise.
21179         (CFLAGS-tcdrain.c): Likewise.
21180         (CFLAGS-open.c): Likewise.
21181         (CFLAGS-open64.c): Likewise.
21182         (CFLAGS-pause.c): Likewise.
21183         (CFLAGS-recv.c): Likewise.
21184         (CFLAGS-send.c): Likewise.
21185         (CFLAGS-accept.c): Likewise.
21186         (CFLAGS-sendto.c): Likewise.
21187         (CFLAGS-connect.c): Likewise.
21188         (CFLAGS-recvfrom.c): Likewise.
21189         (CFLAGS-recvmsg.c): Likewise.
21190         (CFLAGS-sendmsg.c): Likewise.
21191         (CFLAGS-close.c): Likewise.
21192         (CFLAGS-read.c): Likewise.
21193         (CFLAGS-write.c): Likewise.
21194         (CFLAGS-nanosleep.c): Likewise.
21195         (CFLAGS-sigsuspend.c): Likewise.
21196         (CFLAGS-msync.c): Likewise.
21197         (CFLAGS-fdatasync.c): Likewise.
21198         (CFLAGS-fsync.c): Likewise.
21199         (CFLAGS-pt-system.c): Likewise.
21200         (CFLAGS-tst-cleanup2.c): Likewise.
21201         (CFLAGS-tst-cleanupx2.c): Likewise.
21202         (CFLAGS-flockfile.c): Likewise.
21203         (CFLAGS-ftrylockfile.c): Likewise.
21204         (CFLAGS-funlockfile.c): Likewise.
21205         (CFLAGS-tst-initializers1.c): Likewise.
21206         (CFLAGS-tst-initializers1-c89.c): Likewise.
21207         (CFLAGS-tst-initializers1-c99.c): Likewise.
21208         (CFLAGS-tst-initializers1-c11.c): Likewise.
21209         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21210         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21211         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21212         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21213         (CFLAGS-nscd_getgr_r.c): Likewise.
21214         (CFLAGS-nscd_gethst_r.c): Likewise.
21215         (CFLAGS-nscd_getai.c): Likewise.
21216         (CFLAGS-nscd_initgroups.c): Likewise.
21217         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21218         (CFLAGS-pause.c): Likewise.
21219         (CFLAGS-pread.c): Likewise.
21220         (CFLAGS-pread64.c): Likewise.
21221         (CFLAGS-pwrite.c): Likewise.
21222         (CFLAGS-pwrite64.c): Likewise.
21223         (CFLAGS-sleep.c): Likewise.
21224         (CFLAGS-wait.c): Likewise.
21225         (CFLAGS-waitid.c): Likewise.
21226         (CFLAGS-waitpid.c): Likewise.
21227         (CFLAGS-getopt.c): Likewise.
21228         (CFLAGS-wordexp.c): Likewise.
21229         (CFLAGS-sysconf.c): Likewise.
21230         (CFLAGS-pathconf.c): Likewise.
21231         (CFLAGS-fpathconf.c): Likewise.
21232         (CFLAGS-spawn.c): Likewise.
21233         (CFLAGS-spawnp.c): Likewise.
21234         (CFLAGS-spawni.c): Likewise.
21235         (CFLAGS-glob.c): Likewise.
21236         (CFLAGS-glob64.c): Likewise.
21237         (CFLAGS-getconf.c): Likewise.
21238         (CFLAGS-nanosleep.c): Likewise.
21239         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21240         (CFLAGS-getpwent.c): Likewise.
21241         (CFLAGS-getpw.c): Likewise.
21242         (CFLAGS-fgetpwent_r.c): Likewise.
21243         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21244         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21245         (CFLAGS-mq_timedreceive.c): Likewise.
21246         (CFLAGS-mq_timedsend.c): Likewise.
21247         (CFLAGS-clock_nanosleep.c): Likewise.
21248         (CFLAGS-librt-cancellation.c): Likewise.
21249         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21250         (CFLAGS-getspent.c): Likewise.
21251         (CFLAGS-fgetspent.c): Likewise.
21252         (CFLAGS-fgetspent_r.c): Likewise.
21253         (CFLAGS-putspent.c): Likewise.
21254         (CFLAGS-getspnam.c): Likewise.
21255         (CFLAGS-getspnam_r.c): Likewise.
21256         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21257         (CFLAGS-sigsuspend.c): Likewise.
21258         (CFLAGS-sigtimedwait.c): Likewise.
21259         (CFLAGS-sigwait.c): Likewise.
21260         (CFLAGS-sigwaitinfo.c): Likewise.
21261         (CFLAGS-sigreturn.c): Likewise.
21262         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21263         (CFLAGS-vfwprintf.c): Likewise.
21264         (CFLAGS-tmpfile.c): Likewise.
21265         (CFLAGS-tmpfile64.c): Likewise.
21266         (CFLAGS-tempname.c): Likewise.
21267         (CFLAGS-psignal.c): Likewise.
21268         (CFLAGS-vprintf.c): Likewise.
21269         (CFLAGS-cuserid.c): Likewise.
21270         (CFLAGS-errlist.c): Likewise.
21271         (CFLAGS-siglist.c): Likewise.
21272         (CFLAGS-scanf15.c): Likewise.
21273         (CFLAGS-scanf17.c): Likewise.
21274         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21275         (CFLAGS-msort.c): Likewise.
21276         (CFLAGS-qsort.c): Likewise.
21277         (CFLAGS-system.c): Likewise.
21278         (CFLAGS-fmtmsg.c): Likewise.
21279         (CFLAGS-strfmon.c): Likewise.
21280         (CFLAGS-strfmon_l.c): Likewise.
21281         (CFLAGS-strfromd.c): Likewise.
21282         (CFLAGS-strfromf.c): Likewise.
21283         (CFLAGS-strfroml.c): Likewise.
21284         (CFLAGS-tst-bsearch.c): Likewise.
21285         (CFLAGS-tst-qsort.c): Likewise.
21286         (CFLAGS-tst-makecontext2.c): Likewise.
21287         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21288         (CFLAGS-xnlm_prot.c): Likewise.
21289         (CFLAGS-xrstat.c): Likewise.
21290         (CFLAGS-xyppasswd.c): Likewise.
21291         (CFLAGS-xklm_prot.c): Likewise.
21292         (CFLAGS-xrex.c): Likewise.
21293         (CFLAGS-xsm_inter.c): Likewise.
21294         (CFLAGS-xmount.c): Likewise.
21295         (CFLAGS-xrusers.c): Likewise.
21296         (CFLAGS-xspray.c): Likewise.
21297         (CFLAGS-xnfs_prot.c): Likewise.
21298         (CFLAGS-xrquota.c): Likewise.
21299         (CFLAGS-xkey_prot.c): Likewise.
21300         (CFLAGS-auth_unix.c): Likewise.
21301         (CFLAGS-key_call.c): Likewise.
21302         (CFLAGS-pmap_rmt.c): Likewise.
21303         (CFLAGS-clnt_perr.c): Likewise.
21304         (CFLAGS-openchild.c): Likewise.
21305         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21306         (CFLAGS-msgsnd.c): Likewise.
21307         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21308         * time/Makefile (CFLAGS-tzfile.c): Likewise.
21309         (CFLAGS-tzset.c): Likewise.
21310         (CFLAGS-getdate.c): Likewise.
21311         (CFLAGS-test_time.c): Likewise.
21312         (CPPFLAGS-tst-tzname.c): Likewise.
21313         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21314         (CFLAGS-zic.c): Likewise.
21315         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21316         (CFLAGS-wcswidth.c): Likewise.
21317         (CFLAGS-wcstol.c): Likewise.
21318         (CFLAGS-wcstoul.c): Likewise.
21319         (CFLAGS-wcstoll.c): Likewise.
21320         (CFLAGS-wcstoull.c): Likewise.
21321         (CFLAGS-wcstod.c): Likewise.
21322         (CFLAGS-wcstold.c): Likewise.
21323         (CFLAGS-wcstof128.c): Likewise.
21324         (CFLAGS-wcstof.c): Likewise.
21325         (CFLAGS-wcstol_l.c): Likewise.
21326         (CFLAGS-wcstoul_l.c): Likewise.
21327         (CFLAGS-wcstoll_l.c): Likewise.
21328         (CFLAGS-wcstoull_l.c): Likewise.
21329         (CFLAGS-wcstod_l.c): Likewise.
21330         (CFLAGS-wcstold_l.c): Likewise.
21331         (CFLAGS-wcstof128_l.c): Likewise.
21332         (CFLAGS-wcstof_l.c): Likewise.
21333         (CPPFLAGS-tst-wchar-h.c): Likewise.
21334         (CPPFLAGS-wcstold_l.c): Likewise.
21336 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
21338         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21340 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21341             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21343         * manual/tunables.texi (Hardware Capability Tunables): Document
21344         glibc.tune.cached_memopt.
21345         * sysdeps/powerpc/cpu-features.c: New file.
21346         * sysdeps/powerpc/cpu-features.h: New file.
21347         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21348         _dl_powerpc_cpu_features.
21349         * sysdeps/powerpc/dl-tunables.list: New file.
21350         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21351         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21352         (INIT_ARCH): Initialize use_aligned_memopt.
21353         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21354         IS_IN(rtld))]: Restrict dl_platform_init availability and
21355         initialize CPU features used by tunables.
21356         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21357         Add memcpy-power8-cached.
21358         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21359         __memcpy_power8_cached.
21360         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21361         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21362         New file.
21364 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21366         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21367         (CFLAGS-noinl-tester.c): Likewise.
21368         (CFLAGS-tst-strlen.c): Likewise.
21369         (CFLAGS-stratcliff.c): Likewise.
21370         (CFLAGS-test-ffs.c): Likewise.
21371         (CFLAGS-tst-inlcall.c): Likewise.
21372         (CFLAGS-tst-xbzero-opt.c): Likewise.
21373         (CFLAGS-memcpy.c): Likewise.
21374         (CFLAGS-wordcopy.c): Likewise.
21376 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
21378         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21379         Store r15 on stack and add cfi rule.
21380         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21381         Likewise.
21383 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
21385         [BZ #22577]
21386         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21387         call.
21389 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
21391         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21392         Add s_sinf-sse2 and s_sinf-fma.
21393         (CFLAGS-s_sinf-fma.c): New.
21394         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21395         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21396         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21398 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
21400         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21402 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
21404         [BZ #22568]
21405         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21406         part of result to imaginary part of argument if it is zero and the
21407         real part of the argument is not finite.
21408         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21409         of result to real part of argument if it is zero and the imaginary
21410         part of the argument is not finite.
21412 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
21414         [BZ #22524]
21415         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21416         and to the list of locales to be built for testing.
21417         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21418         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21419         and build the collation rules upon that.
21421 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
21423         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21424         * manual/math.texi (Mathematics): Document support for _Float32.
21425         * math/Makefile (test-types): Add float32.
21426         * math/Versions (GLIBC_2.27): Add _Float32 functions.
21427         * stdlib/Versions (GLIBC_2.27): Likewise.
21428         * wcsmbs/Versions (GLIBC_2.27): Likewise.
21429         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21430         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21431         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21432         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21433         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21434         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21435         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21436         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21437         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21438         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21439         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21440         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21441         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21442         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21443         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21444         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21445         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21446         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21447         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21448         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21449         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21450         Likewise.
21451         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21452         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21453         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21454         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21455         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21457         Likewise.
21458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21459         Likewise.
21460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21461         Likewise.
21462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21463         Likewise.
21465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21466         Likewise.
21467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21468         Likewise.
21469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21470         Likewise.
21471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21472         Likewise.
21473         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21474         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21475         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21476         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21477         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21478         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21479         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21480         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21481         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21482         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21483         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21484         Likewise.
21485         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21486         Likewise.
21487         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21488         Likewise.
21489         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21490         Likewise.
21491         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21492         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21493         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21494         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21495         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21496         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21497         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21498         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21500 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
21502         * stdlib/strtof.c: Include <bits/floatn.h>
21503         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21504         and later undefine as macro.  Define as weak alias if
21505         [!USE_WIDE_CHAR].
21506         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21507         and later undefine as macro.  Define as weak alias if
21508         [USE_WIDE_CHAR].
21509         * stdlib/strtof_l.c: Include <bits/floatn.h>
21510         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21511         and later undefine as macro.  Define as weak alias if
21512         [!USE_WIDE_CHAR].
21513         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21514         and later undefine as macro.  Define as weak alias if
21515         [USE_WIDE_CHAR].
21517         * stdlib/strfromf.c: Include <bits/floatn.h>.
21518         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21519         and later undefine as macro and define as weak alias.
21521         * math/test-float32.h: New file.
21523         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21524         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21525         (libm_alias_float_other_r): Create f32 alias.
21526         (libm_alias_float_r): Use semicolon before call to
21527         libm_alias_float_other_r.
21529         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21530         second argument to libm_alias_float_other.
21531         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21532         second argument to libm_alias_float_other.
21533         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21534         argument to libm_alias_float_other.
21536         [BZ #22561]
21537         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21538         real part of result for argument 0 + i * NaN.
21539         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21540         results for tests of 0 + i * NaN.
21542 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21544         * sysdeps/alpha/fpu/libm-test-ulps: Update.
21546 2017-12-06  David S. Miller  <davem@davemloft.net>
21548         * sysdeps/sparc/fpu/libm-test-ulps: Update
21549         exp_{downward,towardzero,upward} ulps.
21551 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
21553         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21554         variables static.
21556         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21557         (Y0_2D): Likewise.
21558         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21559         (Y0_2D): Likewise.
21560         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21561         (Y0_2D): Likewise.
21562         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21563         (Y0_2D): Likewise.
21565 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
21567         [BZ #22515]
21568         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21569         and to the list of locales to be built for testing.
21570         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21571         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21572         and build the collation rules upon that.
21574 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21576         * NEWS: Add sinf to list of optimized functions.
21578 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
21580         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21581         (__HAVE_FLOAT32X): Likewise.
21582         * manual/math.texi (Mathematics): Document support for _Float64
21583         and _Float32x.
21584         * math/Makefile (test-types): Add float64 and float32x.
21585         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21586         functions.
21587         * stdlib/Versions (GLIBC_2.27): Likewise.
21588         * wcsmbs/Versions (GLIBC_2.27): Likewise.
21589         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21590         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21591         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21592         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21593         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21594         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21595         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21596         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21597         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21598         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21599         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21600         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21601         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21602         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21603         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21604         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21605         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21606         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21607         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21608         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21609         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21610         Likewise.
21611         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21612         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21613         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21614         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21615         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21617         Likewise.
21618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21619         Likewise.
21620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21621         Likewise.
21622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21623         Likewise.
21624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21625         Likewise.
21626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21627         Likewise.
21628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21629         Likewise.
21630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21631         Likewise.
21632         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21633         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21634         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21635         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21636         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21637         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21638         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21639         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21640         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21641         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21642         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21643         Likewise.
21644         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21645         Likewise.
21646         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21647         Likewise.
21648         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21649         Likewise.
21650         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21651         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21652         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21653         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21654         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21655         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21656         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21657         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21659 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
21661         * bits/floatn-common.h: Include <bits/long-double.h>.
21662         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21663         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21664         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21665         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21666         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21667         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21668         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21669         (__builtin_huge_valf64): Use __builtin_huge_vall.
21670         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21671         (__builtin_inff64): Use __builtin_infl.
21672         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21673         (__builtin_nanf64): Use __builtin_nanl.
21674         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21675         (__builtin_nansf64): Use __builtin_nansl.
21677 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
21678             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21679             Carlos O'Donnell  <carlos@redhat.com>
21681         * elf/dl-tunables.list: Add elision parameters.
21682         * manual/tunables.texi: Add entries about elision tunable.
21683         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21684         Add callback functions to dynamically enable/disable elision.
21685         Add multiple callbacks functions to set elision parameters.
21686         Deleted __libc_enable_secure check.
21687         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21688         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21689         * configure: Regenerated.
21690         * configure.ac: Option enable_lock_elision was deleted.
21691         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21692         * config.make.in: Remove references to enable_lock_elision.
21693         * manual/install.texi: Elision configure option was removed.
21694         * INSTALL: Regenerated to remove enable_lock_elision.
21695         * nptl/Makefile:
21696         Disable elision so it can verify error case for destroying a mutex.
21697         * sysdeps/powerpc/nptl/elide.h:
21698         Cleanup ENABLE_LOCK_ELISION check.
21699         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21700         * sysdeps/s390/configure: Regenerated.
21701         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21702         * nptl/tst-mutex8.c:
21703         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21704         * sysdeps/powerpc/powerpc32/sysdep.h:
21705         Deleted all ENABLE_LOCK_ELISION checks.
21706         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21707         * sysdeps/powerpc/sysdep.h: Likewise.
21708         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21709         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21710         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21711         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21712         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21713         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21714         enable-lock-elision.
21716 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
21718         * stdlib/strtod.c: Include <bits/floatn.h>.
21719         (BUILD_DOUBLE): New macro.
21720         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21721         (strtof64): Define and later undefine as macro.  Define as weak
21722         alias if [!USE_WIDE_CHAR].
21723         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21724         (wcstof64): Define and later undefine as macro.  Define as weak
21725         alias if [USE_WIDE_CHAR].
21726         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21727         (strtof32x): Define and later undefine as macro.  Define as weak
21728         alias if [!USE_WIDE_CHAR].
21729         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21730         (wcstof32x): Define and later undefine as macro.  Define as weak
21731         alias if [USE_WIDE_CHAR].
21732         * stdlib/strtod_l.c: Include <bits/floatn.h>.
21733         (BUILD_DOUBLE): New macro.
21734         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21735         (strtof64_l): Define and later undefine as macro.  Define as weak
21736         alias if [!USE_WIDE_CHAR].
21737         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21738         (wcstof64_l): Define and later undefine as macro.  Define as weak
21739         alias if [USE_WIDE_CHAR].
21740         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21741         (strtof32x_l): Define and later undefine as macro.  Define as weak
21742         alias if [!USE_WIDE_CHAR].
21743         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21744         (wcstof32x_l): Define and later undefine as macro.  Define as weak
21745         alias if [USE_WIDE_CHAR].
21747 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21749         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21750         (reduced): Use ones as double instead of integer.
21752 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21754         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21756 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
21758         * stdlib/strfromd.c: Include <bits/floatn.h>.
21759         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21760         and later undefine as macro and define as weak alias.
21761         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21762         Likewise.
21764         * math/test-float32x.h: New file.
21765         * math/test-float64.h: Likewise.
21767         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21768         (libm_alias_double_other_r_f64): New macro.
21769         (libm_alias_double_other_r_f32x): Likewise.
21770         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21771         libm_alias_double_other_r_f32x.
21772         (libm_alias_double_r): Use semicolon before call to
21773         libm_alias_double_other_r.
21774         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21775         <bits/floatn.h>.
21776         (libm_alias_double_other_r_f64): New macro.
21777         (libm_alias_double_other_r_f32x): Likewise.
21778         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21779         libm_alias_double_other_r_f32x.
21781 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
21783         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21784         int.
21785         (SINF_FUNC): Likewise.  Replace floor with simple casts.
21787 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
21789         [BZ #22517]
21790         * localedata/Makefile: Add et_EE.UTF-8 to test-input
21791         and to the list of locales to be built for testing.
21792         * localedata/et_EE.UTF-8.in: New file for testing the collation.
21793         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21794         and build the collation rules upon that.
21796 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
21798         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21799         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21800         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21801         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21802         instead of __insn__xxx.
21803         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21804         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21805         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21806         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21807         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21808         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21810 2017-12-05  Florian Weimer  <fweimer@redhat.com>
21812         Linux: Implement interfaces for memory protection keys
21813         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21814         xsignal, xsysconf.
21815         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21816         * support/xunistd.h (xsysconf): Declare.
21817         * support/xraise.c: New file.
21818         * support/xsigaction.c: Likewise.
21819         * support/xsignal.c: Likewise.
21820         * support/xsysconf.c: Likewise.
21821         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21822         pkey_set, pkey_get, pkey_mprotect.
21823         [misc] (tests): Add tst-pkey.
21824         (tst-pkey): Link with -lpthread.
21825         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21826         pkey_free, pkey_set, pkey_get, pkey_mprotect.
21827         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21828         (PKEY_DISABLE_WRITE): Define.
21829         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21830         Declare.
21831         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21832         (SEGV_PKUERR): Add.
21833         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21834         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21835         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21836         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21837         Add.
21838         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21839         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21840         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21841         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21842         * sysdeps/unix/sysv/linux/**.abilist: Update.
21844 2017-12-05  Florian Weimer  <fweimer@redhat.com>
21846         * support/tst-test_compare.c (subprocess): Use long long instead
21847         of long argument for consistent type width across 32-bit and
21848         64-bit architectures.
21849         (do_test): Adjust expected output.
21851 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
21853         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21854         (cosf): Define using libm_alias_float.
21855         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21856         (fabsf): Define using libm_alias_float.
21857         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21858         (fmaf): Define using libm_alias_float.
21859         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21860         (rintf): Define using libm_alias_float.
21861         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21862         (sinf): Define using libm_alias_float.
21863         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21864         <libm-alias-float.h>.
21865         (modff): Define using libm_alias_float.
21866         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21867         <libm-alias-float.h>.
21868         (logbf): Define using libm_alias_float.
21869         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21870         <libm-alias-float.h>.
21871         (ceilf): Define using libm_alias_float.
21872         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21873         <libm-alias-float.h>.
21874         (copysignf): Define using libm_alias_float.
21875         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21876         <libm-alias-float.h>.
21877         (floorf): Define using libm_alias_float.
21878         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21879         <libm-alias-float.h>.
21880         (llrintf): Define using libm_alias_float.
21881         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21882         <libm-alias-float.h>.
21883         (llroundf): Define using libm_alias_float.
21884         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21885         <libm-alias-float.h>.
21886         (lrintf): Define using libm_alias_float.
21887         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21888         <libm-alias-float.h>.
21889         (lroundf): Define using libm_alias_float.
21890         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21891         <libm-alias-float.h>.
21892         (nearbyintf): Define using libm_alias_float.
21893         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21894         <libm-alias-float.h>.
21895         (rintf): Define using libm_alias_float.
21896         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21897         <libm-alias-float.h>.
21898         (roundf): Define using libm_alias_float.
21899         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21900         <libm-alias-float.h>.
21901         (truncf): Define using libm_alias_float.
21902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21903         Include <libm-alias-float.h>.
21904         (ceilf): Define using libm_alias_float.
21905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21906         Include <libm-alias-float.h>.
21907         (copysignf): Define using libm_alias_float.
21908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21909         Include <libm-alias-float.h>.
21910         (floorf): Define using libm_alias_float.
21911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21912         Include <libm-alias-float.h>.
21913         (llrintf): Define using libm_alias_float.
21914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21915         Include <libm-alias-float.h>.
21916         (llroundf): Define using libm_alias_float.
21917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21918         Include <libm-alias-float.h>.
21919         (logbf): Define using libm_alias_float.
21920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21921         Include <libm-alias-float.h>.
21922         (lrintf): Define using libm_alias_float.
21923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21924         Include <libm-alias-float.h>.
21925         (lroundf): Define using libm_alias_float.
21926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21927         Include <libm-alias-float.h>.
21928         (modff): Define using libm_alias_float.
21929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21930         Include <libm-alias-float.h>.
21931         (roundf): Define using libm_alias_float.
21932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21933         Include <libm-alias-float.h>.
21934         (truncf): Define using libm_alias_float.
21935         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21936         <libm-alias-float.h>.
21937         (llrintf): Define using libm_alias_float.
21938         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21939         <libm-alias-float.h>.
21940         (llroundf): Define using libm_alias_float.
21941         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21942         <libm-alias-float.h>.
21943         (ceilf): Define using libm_alias_float.
21944         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21945         <libm-alias-float.h>.
21946         (floorf): Define using libm_alias_float.
21947         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21948         <libm-alias-float.h>.
21949         (llroundf): Define using libm_alias_float.
21950         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21951         <libm-alias-float.h>.
21952         (lroundf): Define using libm_alias_float.
21953         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21954         <libm-alias-float.h>.
21955         (roundf): Define using libm_alias_float.
21956         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21957         <libm-alias-float.h>.
21958         (truncf): Define using libm_alias_float.
21959         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21960         <libm-alias-float.h>.
21961         (copysignf): Define using libm_alias_float.
21962         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21963         <libm-alias-float.h>.
21964         (llrintf): Define using libm_alias_float.
21965         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21966         <libm-alias-float.h>.
21967         (llroundf): Define using libm_alias_float.
21968         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21969         <libm-alias-float.h>.
21970         (lrintf): Define using libm_alias_float.
21971         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21972         <libm-alias-float.h>.
21973         (lroundf): Define using libm_alias_float.
21974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21975         <libm-alias-float.h>.
21976         (ceilf): Define using libm_alias_float.
21977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21978         <libm-alias-float.h>.
21979         (copysignf): Define using libm_alias_float.
21980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21981         <libm-alias-float.h>.
21982         (cosf): Define using libm_alias_float.
21983         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21984         <libm-alias-float.h>.
21985         (floorf): Define using libm_alias_float.
21986         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21987         <libm-alias-float.h>.
21988         (llrintf): Define using libm_alias_float.
21989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21990         <libm-alias-float.h>.
21991         (llroundf): Define using libm_alias_float.
21992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21993         <libm-alias-float.h>.
21994         (logbf): Define using libm_alias_float.
21995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21996         <libm-alias-float.h>.
21997         (modff): Define using libm_alias_float.
21998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21999         <libm-alias-float.h>.
22000         (roundf): Define using libm_alias_float.
22001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22002         <libm-alias-float.h>.
22003         (sinf): Define using libm_alias_float.
22004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22005         <libm-alias-float.h>.
22006         (truncf): Define using libm_alias_float.
22007         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22008         <libm-alias-float.h>.
22009         (ceilf): Define using libm_alias_float.
22010         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22011         <libm-alias-float.h>.
22012         (copysignf): Define using libm_alias_float.
22013         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22014         <libm-alias-float.h>.
22015         (floorf): Define using libm_alias_float.
22016         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22017         <libm-alias-float.h>.
22018         (llrintf): Define using libm_alias_float.
22019         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22020         <libm-alias-float.h>.
22021         (llroundf): Define using libm_alias_float.
22022         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22023         <libm-alias-float.h>.
22024         (nearbyintf): Define using libm_alias_float.
22025         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22026         <libm-alias-float.h>.
22027         (rintf): Define using libm_alias_float.
22028         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22029         <libm-alias-float.h>.
22030         (roundf): Define using libm_alias_float.
22031         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22032         <libm-alias-float.h>.
22033         (truncf): Define using libm_alias_float.
22034         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22035         <libm-alias-float.h>.
22036         (ceilf): Define using libm_alias_float.
22037         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22038         <libm-alias-float.h>.
22039         (floorf): Define using libm_alias_float.
22040         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22041         <libm-alias-float.h>.
22042         (llroundf): Define using libm_alias_float.
22043         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22044         <libm-alias-float.h>.
22045         (roundf): Define using libm_alias_float.
22046         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22047         <libm-alias-float.h>.
22048         (truncf): Define using libm_alias_float.
22049         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22050         <libm-alias-float.h>.
22051         (copysignf): Define using libm_alias_float.
22052         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22053         <libm-alias-float.h>.
22054         (llrintf): Define using libm_alias_float.
22055         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22056         <libm-alias-float.h>.
22057         (llroundf): Define using libm_alias_float.
22058         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22059         <libm-alias-float.h>.
22060         (cosf): Define using libm_alias_float.
22061         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22062         <libm-alias-float.h>.
22063         (llrintf): Define using libm_alias_float.
22064         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22065         <libm-alias-float.h>.
22066         (llroundf): Define using libm_alias_float.
22067         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22068         <libm-alias-float.h>.
22069         (sinf): Define using libm_alias_float.
22071 2017-12-04  Florian Weimer  <fweimer@redhat.com>
22073         * support/check.h (TEST_COMPARE): Define.
22074         (support_test_compare_failure): Declare.
22075         * support/Makefile (libsupport-routines): Add
22076         support_test_compare_failure.
22077         (tests): Add tst-test_compare.
22078         * support /support_test_compare_failure.c: New file.
22079         * support/tst-test_compare.c: Likewise.
22081 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22083         [BZ #22527]
22084         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22085         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22086         available, this rewrite of the collation rules does reproduce
22087         the test file in the same order.
22089 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22091         [BZ #10580]
22092         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22093         digraphs in the month and day names. Using single code points for
22094         digraphs is deprecated.  While there are dedicated Unicode
22095         codepoints, for the digraphs, these are included for backwards
22096         compatibility and modern texts use a sequence of Basic Latin
22097         characters. See: https://www.unicode.org/faq/ligature_digraph.html
22098         This makes the month and day names agree exactly with CLDR now,
22099         CLDR does not use the single code points for the digraphs either.
22101 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
22103         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22105 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
22107         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22108         of floor.
22110 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22112         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22113         Define only for libc.so.
22115 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
22117         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22118         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22119         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22120         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22121         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22123 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22125         [BZ #5997]
22126         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22128 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
22130         [BZ libc/19170]
22131         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22132         PREINIT_FUNCTION_WEAK is nonzero.
22133         (gmon_initializer): New function.  Put procedure label for it in
22134         .init_array section.
22135         (_init): Don't call PREINIT_FUNCTION.
22136         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22137         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22138         value when map argument is null.
22140         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22141         depi instruction from PIC pc-relative sequence.
22142         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22143         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22144         (elf_machine_load_address): Likewise.
22145         (elf_machine_runtime_setup): Likewise.
22147 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
22149         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22150         <libm-alias-double.h>.
22151         (logb): Define using libm_alias_double.
22152         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22153         <libm-alias-double.h>.
22154         (copysign): Define using libm_alias_double.
22155         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22156         <libm-alias-double.h>.
22157         (llrint): Define using libm_alias_double.
22158         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22159         <libm-alias-double.h>.
22160         (llround): Define using libm_alias_double.
22161         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22162         <libm-alias-double.h>.
22163         (lrint): Define using libm_alias_double.
22164         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22165         <libm-alias-double.h>.
22166         (lround): Define using libm_alias_double.
22167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22168         Include <libm-alias-double.h>.
22169         (copysign): Define using libm_alias_double.
22170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22171         Include <libm-alias-double.h>.
22172         (llrint): Define using libm_alias_double.
22173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22174         Include <libm-alias-double.h>.
22175         (llround): Define using libm_alias_double.
22176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22177         <libm-alias-double.h>.
22178         (logb): Define using libm_alias_double.
22179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22180         Include <libm-alias-double.h>.
22181         (lrint): Define using libm_alias_double.
22182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22183         Include <libm-alias-double.h>.
22184         (lround): Define using libm_alias_double.
22185         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22186         <libm-alias-double.h>.
22187         (llrint): Define using libm_alias_double.
22188         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22189         <libm-alias-double.h>.
22190         (llround): Define using libm_alias_double.
22191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22192         <libm-alias-double.h>.
22193         (llround): Define using libm_alias_double.
22194         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22195         <libm-alias-double.h>.
22196         (lround): Define using libm_alias_double.
22197         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22198         <libm-alias-double.h>.
22199         (copysign): Define using libm_alias_double.
22200         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22201         <libm-alias-double.h>.
22202         (llrint): Define using libm_alias_double.
22203         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22204         <libm-alias-double.h>.
22205         (llround): Define using libm_alias_double.
22206         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22207         <libm-alias-double.h>.
22208         (lrint): Define using libm_alias_double.
22209         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22210         <libm-alias-double.h>.
22211         (lround): Define using libm_alias_double.
22212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22213         <libm-alias-double.h>.
22214         (copysign): Define using libm_alias_double.
22215         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22216         <libm-alias-double.h>.
22217         (llrint): Define using libm_alias_double.
22218         (lrint): Likewise.
22219         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22220         <libm-alias-double.h>.
22221         (llround): Define using libm_alias_double.
22222         (lround): Likewise.
22223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22224         <libm-alias-double.h>.
22225         (logb): Define using libm_alias_double.
22226         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22227         <libm-alias-double.h>.
22228         (copysign): Define using libm_alias_double.
22229         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22230         <libm-alias-double.h>.
22231         (llrint): Define using libm_alias_double.
22232         (lrint): Likewise.
22233         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22234         <libm-alias-double.h>.
22235         (llround): Define using libm_alias_double.
22236         (lround): Likewise.
22237         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22238         <libm-alias-double.h>.
22239         (llround): Define using libm_alias_double.
22240         (lround): Likewise.
22241         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22242         <libm-alias-double.h>.
22243         (copysign): Define using libm_alias_double.
22244         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22245         <libm-alias-double.h>.
22246         (llrint): Define using libm_alias_double.
22247         (lrint): Likewise.
22248         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22249         <libm-alias-double.h>.
22250         (llround): Define using libm_alias_double.
22251         (lround): Likewise.
22252         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22253         <libm-alias-double.h>.
22254         (llrint): Define using libm_alias_double.
22255         (lrint): Likewise.
22256         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22257         <libm-alias-double.h>.
22258         (llround): Define using libm_alias_double.
22259         (lround): Likewise.
22261 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
22263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22264         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22265         compat symbol based on llround.
22267         * sysdeps/powerpc/power7/fpu/s_logb.c
22268         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22269         symbol based on __logb, not on logb.
22270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22271         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22273         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22275         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22276         (rint): Define using libm_alias_double.
22277         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22278         <libm-alias-double.h>.
22279         (modf): Define using libm_alias_double.
22280         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22281         <libm-alias-double.h>.
22282         (ceil): Define using libm_alias_double.
22283         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22284         <libm-alias-double.h>.
22285         (floor): Define using libm_alias_double.
22286         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22287         <libm-alias-double.h>.
22288         (nearbyint): Define using libm_alias_double.
22289         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22290         <libm-alias-double.h>.
22291         (rint): Define using libm_alias_double.
22292         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22293         <libm-alias-double.h>.
22294         (round): Define using libm_alias_double.
22295         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22296         <libm-alias-double.h>.
22297         (trunc): Define using libm_alias_double.
22298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22299         <libm-alias-double.h>.
22300         (ceil): Define using libm_alias_double.
22301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22302         Include <libm-alias-double.h>.
22303         (floor): Define using libm_alias_double.
22304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22305         <libm-alias-double.h>.
22306         (modf): Define using libm_alias_double.
22307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22308         Include <libm-alias-double.h>.
22309         (round): Define using libm_alias_double.
22310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22311         Include <libm-alias-double.h>.
22312         (trunc): Define using libm_alias_double.
22313         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22314         <libm-alias-double.h>.
22315         (ceil): Define using libm_alias_double.
22316         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22317         <libm-alias-double.h>.
22318         (floor): Define using libm_alias_double.
22319         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22320         <libm-alias-double.h>.
22321         (round): Define using libm_alias_double.
22322         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22323         <libm-alias-double.h>.
22324         (trunc): Define using libm_alias_double.
22325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22326         <libm-alias-double.h>.
22327         (ceil): Define using libm_alias_double.
22328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22329         <libm-alias-double.h>.
22330         (floor): Define using libm_alias_double.
22331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22332         <libm-alias-double.h>.
22333         (modf): Define using libm_alias_double.
22334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22335         <libm-alias-double.h>.
22336         (round): Define using libm_alias_double.
22337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22338         <libm-alias-double.h>.
22339         (trunc): Define using libm_alias_double.
22340         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22341         <libm-alias-double.h>.
22342         (ceil): Define using libm_alias_double.
22343         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22344         <libm-alias-double.h>.
22345         (floor): Define using libm_alias_double.
22346         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22347         <libm-alias-double.h>.
22348         (nearbyint): Define using libm_alias_double.
22349         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22350         <libm-alias-double.h>.
22351         (rint): Define using libm_alias_double.
22352         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22353         <libm-alias-double.h>.
22354         (round): Define using libm_alias_double.
22355         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22356         <libm-alias-double.h>.
22357         (trunc): Define using libm_alias_double.
22358         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22359         <libm-alias-double.h>.
22360         (ceil): Define using libm_alias_double.
22361         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22362         <libm-alias-double.h>.
22363         (floor): Define using libm_alias_double.
22364         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22365         <libm-alias-double.h>.
22366         (round): Define using libm_alias_double.
22367         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22368         <libm-alias-double.h>.
22369         (trunc): Define using libm_alias_double.
22371         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22372         (fabs): Define using libm_alias_double.
22373         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22374         (fma): Define using libm_alias_double.
22375         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22376         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22377         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22378         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22380 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22382         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22384         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22385         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22386         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22389         due redirect macro.
22391 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
22393         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22395 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22397         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22398         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22399         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22400         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22403         (libm-sysdep_routines): Add s_nearbyintf-generic and
22404         s_nearbyint-generic.
22405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22406         New file.
22407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22409         Likewise.
22410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22411         Likewise.
22412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22413         file.
22414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22415         Likewise.
22417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22418         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22420         file.
22421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22423         Likewise.
22424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22429         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22431         file.
22432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22434         Likewise.
22435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22440         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22442         file.
22443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22445         Likewise.
22446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22451         (sysdep_calls): New rule.
22452         (sysdep_routines): Use sysdep_calls as base.
22453         (libm-sysdep_routines): Add generic rule for symbols shared with
22454         libc.  Add s_copysign-generic and s_copysign-generic objects.
22455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22456         New file.
22457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22459         Likewise.
22460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22464 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
22466         [BZ #22519]
22467         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22468         the list of locales to be built for testing.
22469         * localedata/is_IS.UTF-8.in: New file.
22470         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22471         on iso14651_t1.
22473 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
22475         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22476         <libm-alias-float.h>.
22477         (fabsf): Define using libm_alias_float.
22479 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
22481         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22483 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
22485         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22486         <libm-alias-float.h>.
22487         (fabsf): Define using libm_alias_float.
22488         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22489         <libm-alias-float.h>.
22490         (lrintf): Define using libm_alias_float.
22491         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22492         <libm-alias-float.h>.
22493         (rintf): Define using libm_alias_float.
22495         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22496         <libm-alias-double.h>.
22497         (fabs): Define using libm_alias_double.
22498         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22499         <libm-alias-double.h>.
22500         (lrint): Define using libm_alias_double.
22501         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22502         <libm-alias-double.h>.
22503         (rint): Define using libm_alias_double.
22505         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22506         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22507         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22508         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22509         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22510         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22511         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22512         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22513         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22514         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22515         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22516         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22517         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22518         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22519         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22520         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22521         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22522         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22523         s_atan_template.c.
22524         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22525         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22526         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22527         s_ceil_template.c.
22528         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22529         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22530         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22531         s_cos_template.c.
22532         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22533         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22534         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22535         s_expm1_template.c.
22536         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22537         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22538         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22539         s_fabs_template.c.
22540         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22541         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22542         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22543         s_floor_template.c.
22544         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22545         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22546         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22547         s_frexp_template.c.
22548         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22549         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22550         s_lrint_template.c.
22551         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22552         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22553         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22554         s_modf_template.c.
22555         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22556         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22557         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22558         s_nearbyint_template.c.
22559         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22560         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22561         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22562         s_remquo_template.c.
22563         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22564         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22565         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22566         s_rint_template.c.
22567         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22568         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22569         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22570         s_sin_template.c.
22571         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22572         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22573         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22574         s_sincos_template.c.
22575         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22576         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22577         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22578         s_tan_template.c.
22579         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22580         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22581         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22582         s_tanh_template.c.
22583         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22584         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22585         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22586         s_trunc_template.c.
22587         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22588         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22589         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22590         s_atan.c instead of including s_atan.c.
22591         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22592         s_atanf.c instead of including s_atanf.c.
22593         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22594         s_atanl.c instead of including s_atanl.c.
22595         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22596         instead of s_atan.c.
22597         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22598         instead of s_atanf.c.
22599         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22600         instead of s_atanl.c.
22602         * scripts/update-copyrights: Do not handle intl/plural.c
22603         specially.
22605 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
22607         [BZ #22432]
22608         * configure.ac (BISON): Require to be present.
22609         * configure: Regenerated.
22610         * intl/Makefile (generated): Add plural.c.
22611         [$(BISON) != no]: Make code unconditional.
22612         (plural.c): Change rule to $(objpfx)plural.c.
22613         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22614         * intl/plural.c: Remove.
22615         * manual/install.texi (Tools for Compilation): Document bison as
22616         required.
22617         * INSTALL: Regenerated.
22619 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
22621         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22622         <libm-alias-double.h>.
22623         (llrint): Define using libm_alias_double.
22624         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22625         <libm-alias-float.h>.
22626         (llrintf): Define using libm_alias_float.
22627         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22628         <libm-alias-ldouble.h>.
22629         (llrintl): Define using libm_alias_ldouble.
22631         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22632         declare_mgen_alias instead of weak_alias.
22633         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22634         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22635         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22637 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22639         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22640         Add add_n-generic.
22641         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22642         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22643         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22645         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22646         Add submul_1-generic.
22647         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22648         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22649         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22651         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22652         Add addmul_1-generic.
22653         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22654         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22655         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22657         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22658         Add sub_n-generic.
22659         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22660         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22661         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22663         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22664         Add mul_1-generic.
22665         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22666         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22667         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22669 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
22671         According to CLDR, collation rules for Serbian and Bosnian
22672         should be the same as for Croatian.
22674         [BZ #22534]
22675         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22676         and to the list of locales to be built for testing.
22677         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22678         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22679         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22680         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22682 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
22684         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22685         to make test case pass.
22686         * localedata/hr_HR.UTF-8.in: Add more test strings.
22688 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
22690         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22692 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
22694         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22695         the list of locales to built for testing.
22696         * localedata/hr_HR.UTF-8.in: New file.
22698 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
22700         [BZ #10580]
22701         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22702         iso14651_t1.
22703         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22704         CLDR (except use ligatures for the digraphs, CLDR does not use
22705         the ligatures), add first_workday, some fixes in the date and time
22706         formats.
22707         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22708         for Đ and đ.
22709         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22710         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22711         Add int_p_cs_precedes and int_n_cs_precedes.
22712         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22713         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22714         LC_MONETARY now).
22715         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22716         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22717         name_miss.
22718         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22719         and lang_lib. Change postal_fmt.
22721 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
22723         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22724         <setjmp.h>.
22725         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22726         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22727         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22728         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22729         * sysdeps/generic/setjmpP.h: New file.
22730         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22731         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22732         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22733         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22734         Add jmp_buf-ssp.sym.
22735         (tests): Add tst-saved_mask-1.
22737 2017-11-30  Arjun Shankar  <arjun@redhat.com>
22739         [BZ #22375]
22740         CVE-2017-17426
22741         * malloc/malloc.c (__libc_malloc): Use checked_request2size
22742         instead of request2size.
22744 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
22746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22747         (__lllrint): Remove alias.
22748         (lllrint): Likewise.
22749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22750         (__lllrintf): Likewise.
22751         (lllrintf): Likewise.
22753         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22754         <libm-alias-float.h>.
22755         (copysignf): Define using libm_alias_float.
22756         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22757         <libm-alias-float.h>.
22758         (fabsf): Define using libm_alias_float.
22759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22760         Include <libm-alias-float.h>.
22761         (copysignf): Define using libm_alias_float.
22762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22763         <libm-alias-float.h>.
22764         (fabsf): Define using libm_alias_float.
22765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22766         <libm-alias-float.h>.
22767         (fdimf): Define using libm_alias_float.
22768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22769         <libm-alias-float.h>.
22770         (fmaf): Define using libm_alias_float.
22771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22772         <libm-alias-float.h>.
22773         (llrintf): Define using libm_alias_float.
22774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22775         Include <libm-alias-float.h>.
22776         (nearbyintf): Define using libm_alias_float.
22777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22778         <libm-alias-float.h>.
22779         (rintf): Define using libm_alias_float.
22780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22781         <libm-alias-float.h>.
22782         (llrintf): Define using libm_alias_float.
22783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22784         <libm-alias-float.h>.
22785         (lrintf): Define using libm_alias_float.
22786         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22787         <libm-alias-float.h>.
22788         (nearbyintf): Define using libm_alias_float.
22789         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22790         <libm-alias-float.h>.
22791         (rintf): Define using libm_alias_float.
22792         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22793         <libm-alias-float.h>.
22794         (ceilf): Define using libm_alias_float.
22795         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22796         <libm-alias-float.h>.
22797         (floorf): Define using libm_alias_float.
22798         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22799         <libm-alias-float.h>.
22800         (fmaf): Define using libm_alias_float.
22801         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22802         <libm-alias-float.h>.
22803         (lrintf): Define using libm_alias_float.
22804         (llrintf): Likewise.
22805         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22806         <libm-alias-float.h>.
22807         (nearbyintf): Define using libm_alias_float.
22808         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22809         <libm-alias-float.h>.
22810         (rintf): Define using libm_alias_float.
22811         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22812         <libm-alias-float.h>.
22813         (truncf): Define using libm_alias_float.
22814         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22815         <libm-alias-float.h>.
22816         (copysignf): Define using libm_alias_float.
22817         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22818         <libm-alias-float.h>.
22819         (fabsf): Define using libm_alias_float.
22820         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22821         <libm-alias-float.h>.
22822         (lrintf): Define using libm_alias_float.
22823         (llrintf): Likewise.
22824         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22825         <libm-alias-float.h>.
22826         (nearbyintf): Define using libm_alias_float.
22827         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22828         <libm-alias-float.h>.
22829         (rintf): Define using libm_alias_float.
22831 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
22833         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22834         <libm-alias-double.h>.
22835         (copysign): Define using libm_alias_double.
22836         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22837         <libm-alias-double.h>.
22838         (fabs): Define using libm_alias_double.
22839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22840         Include <libm-alias-double.h>.
22841         (copysign): Define using libm_alias_double.
22842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22843         <libm-alias-double.h>.
22844         (fabs): Define using libm_alias_double.
22845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22846         <libm-alias-double.h>.
22847         (fdim): Define using libm_alias_double.
22848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22849         <libm-alias-double.h>.
22850         (fma): Define using libm_alias_double.
22851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22852         <libm-alias-double.h>.
22853         (llrint): Define using libm_alias_double.
22854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22855         Include <libm-alias-double.h>.
22856         (nearbyint): Define using libm_alias_double.
22857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22858         <libm-alias-double.h>.
22859         (rint): Define using libm_alias_double.
22860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22861         <libm-alias-double.h>.
22862         (fabs): Define using libm_alias_double.
22863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22864         <libm-alias-double.h>.
22865         (llrint): Define using libm_alias_double.
22866         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22867         <libm-alias-double.h>.
22868         (nearbyint): Define using libm_alias_double.
22869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22870         <libm-alias-double.h>.
22871         (rint): Define using libm_alias_double.
22872         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22873         <libm-alias-double.h>.
22874         (ceil): Define using libm_alias_double.
22875         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22876         <libm-alias-double.h>.
22877         (floor): Define using libm_alias_double.
22878         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22879         <libm-alias-double.h>.
22880         (fma): Define using libm_alias_double.
22881         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22882         <libm-alias-double.h>.
22883         (lrint): Define using libm_alias_double.
22884         (llrint): Likewise.
22885         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22886         <libm-alias-double.h>.
22887         (nearbyint): Define using libm_alias_double.
22888         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22889         <libm-alias-double.h>.
22890         (rint): Define using libm_alias_double.
22891         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22892         <libm-alias-double.h>.
22893         (trunc): Define using libm_alias_double.
22894         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22895         <libm-alias-double.h>.
22896         (copysign): Define using libm_alias_double.
22897         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22898         <libm-alias-double.h>.
22899         (fabs): Define using libm_alias_double.
22900         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22901         <libm-alias-double.h>.
22902         (lrint): Define using libm_alias_double.
22903         (llrint): Likewise.
22904         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22905         <libm-alias-double.h>.
22906         (nearbyint): Define using libm_alias_double.
22907         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22908         <libm-alias-double.h>.
22909         (rint): Define using libm_alias_double.
22911         [BZ #22229]
22912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22913         <math_ldbl_opt.h>.
22914         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22916         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22917         SPARC --disable-multi-arch glibc variants.
22919         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22920         <libm-alias-float.h>.
22921         (exp2f): Define using libm_alias_float, or libm_alias_float_other
22922         if [SHARED].
22923         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22924         <libm-alias-float.h>.
22925         (exp2f): Define using libm_alias_float, or libm_alias_float_other
22926         if [SHARED].
22927         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22928         <libm-alias-float.h>.
22929         (exp2f): Define using libm_alias_float, or libm_alias_float_other
22930         if [SHARED].
22931         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22932         <libm-alias-float.h>.
22933         (exp2f): Define using libm_alias_float, or libm_alias_float_other
22934         if [SHARED].
22935         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22936         <libm-alias-float.h>.
22937         (exp2f): Define using libm_alias_float, or libm_alias_float_other
22938         if [SHARED].
22939         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22940         <libm-alias-float.h>.
22941         (ceilf): Define using libm_alias_float.
22942         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22943         <libm-alias-float.h>.
22944         (floorf): Define using libm_alias_float.
22945         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22946         <libm-alias-float.h>.
22947         (fmaf): Define using libm_alias_float.
22948         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22949         <libm-alias-float.h>.
22950         (nearbyintf): Define using libm_alias_float.
22951         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22952         <libm-alias-float.h>.
22953         (rintf): Define using libm_alias_float.
22954         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22955         <libm-alias-float.h>.
22956         (truncf): Define using libm_alias_float.
22957         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22958         (copysignf): Define using libm_alias_float.
22959         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22960         (cosf): Define using libm_alias_float.
22961         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22962         (fabsf): Define using libm_alias_float.
22963         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22964         (fmaxf): Define using libm_alias_float.
22965         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22966         (fminf): Define using libm_alias_float.
22967         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22968         (llrintf): Define using libm_alias_float.
22969         [!__ILP32__] (lrintf): Likewise.
22970         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22971         (sincosf): Define using libm_alias_float.
22972         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22973         (sinf): Define using libm_alias_float.
22974         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22975         (lrintf): Define using libm_alias_float.
22977         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22978         <libm-alias-double.h>.
22979         (atan): Define using libm_alias_double.
22980         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22981         <libm-alias-double.h>.
22982         (ceil): Define using libm_alias_double.
22983         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22984         <libm-alias-double.h>.
22985         (floor): Define using libm_alias_double.
22986         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22987         <libm-alias-double.h>.
22988         (fma): Define using libm_alias_double.
22989         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22990         <libm-alias-double.h>.
22991         (nearbyint): Define using libm_alias_double.
22992         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22993         <libm-alias-double.h>.
22994         (rint): Define using libm_alias_double.
22995         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22996         <libm-alias-double.h>.
22997         (sin): Define using libm_alias_double.
22998         (cos): Likewise.
22999         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23000         <libm-alias-double.h>.
23001         (tan): Define using libm_alias_double.
23002         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23003         <libm-alias-double.h>.
23004         (trunc): Define using libm_alias_double.
23005         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23006         (copysign): Define using libm_alias_double.
23007         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23008         (fabs): Define using libm_alias_double.
23009         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23010         (fmax): Define using libm_alias_double.
23011         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23012         (fmin): Define using libm_alias_double.
23013         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23014         (llrint): Define using libm_alias_double.
23015         [!__ILP32__] (lrint): Likewise.
23016         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23017         (lrint): Define using libm_alias_double.
23019 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23021         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23022         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23023         objects.
23024         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23025         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23026         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23027         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23028         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23029         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23031         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23032         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23033         objects.
23034         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23035         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23036         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23037         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23038         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23039         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23041         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23042         (libm-sysdep_routines): Add s_nearbyint-generic and
23043         s_nearbyintf-generic objects.
23044         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23045         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23046         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23047         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23048         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23049         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23051         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23052         Add s_finitef-generic and s_finite-generic objects.
23053         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23054         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23055         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23056         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23057         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23058         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23060         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23061         Add s_isinff-generic and s_isinf-generic objects.
23062         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23063         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23064         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23065         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23066         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23067         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23069         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23070         Add s_isnanf-generic and s_isnan-generic objects.
23071         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23072         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23073         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23074         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23075         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23076         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23078         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23079         macro.
23080         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23081         rule.
23082         (sysdep_routines): Use sysdep_calls as base.
23083         (libm-sysdep_routines): Add generic rule for symbols shared with
23084         libc.  Add s_signbit-generic and s_signbitf-generic objects.
23085         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23086         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23087         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23088         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23089         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23090         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23092 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23094         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23095         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23096         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23097         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23098         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23099         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23100         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23101         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23102         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23103         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23104         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23105         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23106         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23107         libm_alias_float_r.
23108         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23109         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23110         (logf): Likewise.
23111         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23112         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23113         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23114         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23115         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23116         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23117         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23118         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23119         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23120         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23121         libm_alias_float.
23122         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23123         (cosf): Likewise.
23124         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23125         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23126         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23127         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23128         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23129         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23130         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23131         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23132         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23133         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23134         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23135         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23136         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23137         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23138         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23139         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23140         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23141         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23142         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23143         libm_alias_float.
23144         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23145         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23146         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23147         * sysdeps/ia64/fpu/w_lgammaf_main.c
23148         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23149         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23151 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
23152             Alexandre Oliva  <aoliva@redhat.com>
23154         [BZ #17750]
23155         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23156         * localedata/fr_CA.UTF-8.in: New file with test data for backward
23157         accents sorting.
23158         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23159         sorting.
23160         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23161         * localedata/locales/de_DE (LC_COLLATE): Likewise.
23162         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23163         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23164         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23165         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23166         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23167         instead of “ifdef DIACRIT_BACKWARD”.
23169 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23171         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23172         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23173         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23174         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23175         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23176         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23177         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23178         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23179         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23180         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23181         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23182         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23183         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23184         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23185         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23186         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23187         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23188         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23190         ($(have-as-vis3) == yes): Remove conditional.
23191         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23192         Likewise.
23193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23194         file.
23195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23196         file.
23197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23198         file.
23199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23200         file.
23201         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23202         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23203         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23204         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23205         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23206         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23207         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23208         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23210 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23212         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23213         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23214         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23215         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23216         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23217         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23218         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23219         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23220         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23221         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23222         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23223         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23224         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23225         libm_alias_double_r.
23226         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23227         (log): Likewise.
23228         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23229         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23230         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23231         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23232         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23233         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23234         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23235         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23236         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23237         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23238         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23239         libm_alias_double.
23240         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23241         (cos): Likewise.
23242         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23243         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23244         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23245         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23246         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23247         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23248         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23249         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23250         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23251         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23252         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23253         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23254         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23255         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23256         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23257         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23258         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23259         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23260         libm_alias_double.
23261         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23262         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23263         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23264         * sysdeps/ia64/fpu/w_lgamma_main.c
23265         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23266         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23268 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
23270         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
23271         address of $global$ into %dp register earlier.  Use pc-relative
23272         instruction sequence for PIC case.
23274 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23276         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23277         (asinhf): Define using libm_alias_float.
23278         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23279         (atanf): Define using libm_alias_float.
23280         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23281         (cbrtf): Define using libm_alias_float.
23282         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23283         (ceilf): Define using libm_alias_float.
23284         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23285         (copysignf): Define using libm_alias_float.
23286         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23287         (expm1f): Define using libm_alias_float.
23288         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23289         (fabsf): Define using libm_alias_float.
23290         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23291         (floorf): Define using libm_alias_float.
23292         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23293         (fmaxf): Define using libm_alias_float.
23294         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23295         (fminf): Define using libm_alias_float.
23296         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23297         (frexpf): Define using libm_alias_float.
23298         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23299         (llrintf): Define using libm_alias_float.
23300         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23301         (logbf): Define using libm_alias_float.
23302         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23303         (lrintf): Define using libm_alias_float.
23304         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23305         (nearbyintf): Define using libm_alias_float.
23306         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23307         (remquof): Define using libm_alias_float.
23308         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23309         (rintf): Define using libm_alias_float.
23310         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23311         (truncf): Define using libm_alias_float.
23312         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23313         <libm-alias-float.h>.
23314         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23315         if [SHARED].
23316         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23317         <libm-alias-float.h>.
23318         (expf): Define using libm_alias_float, or libm_alias_float_other
23319         if [SHARED].
23320         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23321         <libm-alias-float.h>.
23322         (log2f): Define using libm_alias_float, or libm_alias_float_other
23323         if [SHARED].
23324         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23325         <libm-alias-float.h>.
23326         (logf): Define using libm_alias_float, or libm_alias_float_other
23327         if [SHARED].
23328         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23329         <libm-alias-float.h>.
23330         (powf): Define using libm_alias_float, or libm_alias_float_other
23331         if [SHARED].
23332         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23333         <libm-alias-float.h>.
23334         (cosf): Define using libm_alias_float.
23335         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23336         <libm-alias-float.h>.
23337         (sincosf): Define using libm_alias_float.
23338         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23339         <libm-alias-float.h>.
23340         (sinf): Define using libm_alias_float.
23341         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23342         (fmaxf): Define using libm_alias_float.
23343         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23344         (fminf): Define using libm_alias_float.
23345         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23346         <libm-alias-float.h>.
23347         (fmaf): Define using libm_alias_float.
23349         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23350         (asinh): Define using libm_alias_double.
23351         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23352         (atan): Define using libm_alias_double.
23353         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23354         (cbrt): Define using libm_alias_double.
23355         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23356         (ceil): Define using libm_alias_double.
23357         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23358         (copysign): Define using libm_alias_double.
23359         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23360         (expm1): Define using libm_alias_double.
23361         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23362         (fabs): Define using libm_alias_double.
23363         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23364         (fdim): Define using libm_alias_double.
23365         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23366         (floor): Define using libm_alias_double.
23367         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23368         (fmax): Define using libm_alias_double.
23369         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23370         (fmin): Define using libm_alias_double.
23371         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23372         (frexp): Define using libm_alias_double.
23373         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23374         (llrint): Define using libm_alias_double.
23375         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23376         (logb): Define using libm_alias_double.
23377         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23378         (lrint): Define using libm_alias_double.
23379         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23380         (nearbyint): Define using libm_alias_double.
23381         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23382         (remquo): Define using libm_alias_double.
23383         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23384         (rint): Define using libm_alias_double.
23385         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23386         (trunc): Define using libm_alias_double.
23387         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23388         (fmax): Define using libm_alias_double.
23389         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23390         (fmin): Define using libm_alias_double.
23391         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23392         (fma): Define using libm_alias_double.
23394 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23396         [BZ #22370]
23397         * elf/dl-hwcaps.c (ROUND): Removed.
23398         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23399         and ELF_NOTE_NEXT_OFFSET.
23400         * elf/dl-load.c (ROUND): Removed.
23401         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23402         * elf/readelflib.c (ROUND): Removed.
23403         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23404         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23405         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23406         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23408 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23410         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23411         [!__fmaf] (fmaf): Define using libm_alias_float.
23413         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23414         [!__fma] (fma): Define using libm_alias_double.
23415         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23417 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
23419         [BZ #22336]
23420         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23421         and implement the collation rules for cs from CLDR on top of that.
23422         * Makefile: Add cs_CZ.UTF-8 to test-input.
23423         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23425 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23427         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23429 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
23430             Icarus Sparry  <icarus.w.sparry@intel.com>
23432         * benchtests/Makefile:Add BENCHSET to allow subsets of
23433         benchmarks to be run.
23434         * benchtests/README: Add documentation for: Running subsets of
23435         benchmarks.
23437 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
23439         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23440         range of tests names.
23442         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23443         result from property and remove "max", min" and "mean" from
23444         required properties based on benchtests/bench-skeleton.c.
23446 2017-11-28  Florian Weimer  <fweimer@redhat.com>
23448         [BZ #20826]
23449         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23450         due to Internet requirement.
23451         * posix/Makefile (tests): Remove tst-getaddrinfo4,
23452         tst-getaddrinfo5.
23453         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23455 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23457         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23458         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23459         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23460         (sysdep_routines): Add memset-ultra1.
23461         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23462         file.
23463         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23464         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23465         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23466         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23467         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23468         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23469         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23470         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23472         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23473         file.
23474         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23475         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23476         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23477         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23478         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23479         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23480         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23481         macro.
23482         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23483         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23484         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23485         (sysdep_routines): Add memcpy-ultra1.
23486         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23487         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23489 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23491         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23492         (cfloat_versions): Take function argument without trailing 'f'.
23493         Call libm_alias_float_other.
23494         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23495         * sysdeps/alpha/fpu/cargf.c: Likewise.
23496         * sysdeps/alpha/fpu/cimagf.c: Likewise.
23497         * sysdeps/alpha/fpu/conjf.c: Likewise.
23498         * sysdeps/alpha/fpu/crealf.c: Likewise.
23499         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23500         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23501         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23502         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23503         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23504         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23505         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23506         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23507         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23508         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23509         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23510         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23511         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23512         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23513         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23514         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23515         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23516         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23517         (clog10f): Use libm_alias_float_other.
23518         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23519         (ceilf): Define using libm_alias_float.
23520         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23521         (copysignf): Define using libm_alias_float.
23522         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23523         (fabsf): Define using libm_alias_float.
23524         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23525         (floorf): Define using libm_alias_float.
23526         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23527         (fmaxf): Define using libm_alias_float.
23528         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23529         (fminf): Define using libm_alias_float.
23530         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23531         (lrintf): Define using libm_alias_float.
23532         (llrintf): Likewise.
23533         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23534         (lroundf): Define using libm_alias_float.
23535         (llroundf): Likewise.
23536         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23537         (rintf): Define using libm_alias_float.
23538         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23539         (truncf): Define using libm_alias_float.
23541         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23542         (ceilf): Define using libm_alias_float.
23543         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23544         (floorf): Define using libm_alias_float.
23545         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23546         (fmaf): Define using libm_alias_float.
23547         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23548         (fmaxf): Define using libm_alias_float.
23549         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23550         (fminf): Define using libm_alias_float.
23551         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23552         (llrintf): Define using libm_alias_float.
23553         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23554         (llroundf): Define using libm_alias_float.
23555         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23556         (lrintf): Define using libm_alias_float.
23557         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23558         (lroundf): Define using libm_alias_float.
23559         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23560         <libm-alias-float.h>.
23561         (nearbyintf): Define using libm_alias_float.
23562         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23563         (rintf): Define using libm_alias_float.
23564         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23565         (roundf): Define using libm_alias_float.
23566         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23567         (truncf): Define using libm_alias_float.
23569         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23570         (ceil): Define using libm_alias_double.
23571         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23572         (copysign): Define using libm_alias_double.
23573         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23574         (fabs): Define using libm_alias_double.
23575         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23576         (floor): Define using libm_alias_double.
23577         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23578         (fmax): Define using libm_alias_double.
23579         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23580         (fmin): Define using libm_alias_double.
23581         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23582         (lrint): Define using libm_alias_double.
23583         (llrint): Likewise.
23584         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23585         (lround): Define using libm_alias_double.
23586         (llround): Likewise.
23587         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23588         (rint): Define using libm_alias_double.
23589         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23590         (trunc): Define using libm_alias_double.
23592         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23593         (libm_alias_double_r): Add semicolon after weak_alias call.
23595 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
23597         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23598         (ceil): Define using libm_alias_double.
23599         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23600         (floor): Define using libm_alias_double.
23601         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23602         (fma): Define using libm_alias_double.
23603         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23604         (fmax): Define using libm_alias_double.
23605         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23606         (fmin): Define using libm_alias_double.
23607         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23608         (llrint): Define using libm_alias_double.
23609         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23610         (llround): Define using libm_alias_double.
23611         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23612         (lrint): Define using libm_alias_double.
23613         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23614         (lround): Define using libm_alias_double.
23615         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23616         (nearbyint): Define using libm_alias_double.
23617         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23618         (rint): Define using libm_alias_double.
23619         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23620         (round): Define using libm_alias_double.
23621         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23622         (trunc): Define using libm_alias_double.
23624 2017-11-27  Florian Weimer  <fweimer@redhat.com>
23626         * sysdeps/unix/sysv/linux/mlock2.c: New file.
23627         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23628         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23629         (tests): Add tst-mlock2.
23630         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23631         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23632         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23633         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23634         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23635         for mlock.  Document mlock2.
23637 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
23639         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23640         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23641         Likewise.
23642         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23643         Likewise.
23644         * sysdeps/x86/Makeconfig: New file.
23645         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23646         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23647         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23648         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23649         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23650         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23651         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23652         Likewise.
23653         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23654         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23655         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23656         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23657         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23658         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23659         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23660         * manual/math.texi (Mathematics): Document support for _Float64x.
23661         * math/Versions (GLIBC_2.27): Add _Float64x functions.
23662         * stdlib/Versions (GLIBC_2.27): Likewise.
23663         * wcsmbs/Versions (GLIBC_2.27): Likewise.
23664         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23665         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23666         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23667         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23668         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23669         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23670         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23671         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23672         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23673         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23674         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23676         Likewise.
23677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23678         Likewise.
23679         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23680         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23681         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23682         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23683         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23684         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23685         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23686         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23687         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23688         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23689         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23690         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23691         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23692         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23694 2017-11-27  Andreas Schwab  <schwab@suse.de>
23696         * elf/Makefile (dl-routines): Add dl-sort-maps.
23697         * elf/dl-sort-maps.c: New file.
23698         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23699         (_dl_sort_maps): Declare.
23700         * elf/dl-fini.c (_dl_sort_fini): Remove.
23701         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23702         * elf/dl-close.c (_dl_close_worker): Likewise.
23703         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23704         open-coding it.
23705         * elf/dl-open.c (dl_open_worker): Likewise.
23707 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
23709         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23710         using libm_alias_float128.
23711         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23712         Likewise.
23713         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23714         Likewise.
23715         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23716         (setpayloadsigf128): Likewise.
23717         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23718         Likewise.
23719         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23720         Likewise.
23722         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23723         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23724         -mfloat128 to CFLAGS.
23725         ($(foreach
23726         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23727         Likewise.
23728         (CFLAGS-libm-test-support-float64x.c): New variable.
23729         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23730         $(f128-loader-link) to gnulib-tests.
23732         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23733         (libm_alias_float128_other_r): If
23734         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23735         alias.
23736         (libm_alias_float128_r): Add semicolon after weak_alias call.
23737         * sysdeps/generic/libm-alias-ldouble.h
23738         (libm_alias_ldouble_other_r_f128): New macro.
23739         (libm_alias_ldouble_other_r_f64x): Likewise.
23740         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23741         and libm_alias_ldouble_other_r_f64x.
23742         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23743         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23744         (libm_alias_ldouble_other_r_f128): New macro.
23745         (libm_alias_ldouble_other_r_f64x): Likewise.
23746         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23747         and libm_alias_ldouble_other_r_f64x.
23749         * stdlib/strfroml.c: Always include <stdlib.h>.
23750         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23751         undefine as macro and define as weak alias.
23752         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23753         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23754         <stdlib.h>.
23755         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23756         Define and later undefine as macro and define as weak alias.
23758         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23759         Define and later undefine as macro.  Define as weak alias if
23760         [!USE_WIDE_CHAR].
23761         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23762         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
23763         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23764         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23765         Define and later undefine as macro.  Define as weak alias if
23766         [!USE_WIDE_CHAR].
23767         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23768         Define and later undefine as macro.  Define as weak alias if
23769         [USE_WIDE_CHAR].
23770         * sysdeps/ieee754/float128/strtof128_l.c
23771         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23772         Define and later undefine as macro.  Define as weak alias if
23773         [!USE_WIDE_CHAR].
23774         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23775         Define and later undefine as macro.  Define as weak alias if
23776         [USE_WIDE_CHAR].
23777         * sysdeps/ieee754/ldbl-128/strtold_l.c
23778         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23779         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
23780         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23781         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
23782         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23783         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23784         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
23785         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23786         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
23787         * sysdeps/ieee754/ldbl-96/strtold_l.c
23788         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23789         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
23790         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23791         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
23793         * math/test-float64x.h: New file.
23794         * math/Makefile (type-float64x-yes): New variable.
23795         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23797         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23798         function-like macro.
23799         (min_of_type_): Likewise.
23800         (min_of_type_l): Likewise.
23801         (min_of_type_f128): Likewise.
23802         (min_of_type): Pass () as last argument of __MATH_TG.
23804         * stdlib/tst-strtod-round-skeleton.c
23805         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23806         headers.
23808         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23809         for combinations of long double with _Float64 and _Float64x.
23811         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23812         (__DECL_SIMD_cosf32): Likewise.
23813         (__DECL_SIMD_cosf64): Likewise.
23814         (__DECL_SIMD_cosf32x): Likewise.
23815         (__DECL_SIMD_cosf64x): Likewise.
23816         (__DECL_SIMD_cosf128x): Likewise.
23817         (__DECL_SIMD_sinf16): Likewise.
23818         (__DECL_SIMD_sinf32): Likewise.
23819         (__DECL_SIMD_sinf64): Likewise.
23820         (__DECL_SIMD_sinf32x): Likewise.
23821         (__DECL_SIMD_sinf64x): Likewise.
23822         (__DECL_SIMD_sinf128x): Likewise.
23823         (__DECL_SIMD_sincosf16): Likewise.
23824         (__DECL_SIMD_sincosf32): Likewise.
23825         (__DECL_SIMD_sincosf64): Likewise.
23826         (__DECL_SIMD_sincosf32x): Likewise.
23827         (__DECL_SIMD_sincosf64x): Likewise.
23828         (__DECL_SIMD_sincosf128x): Likewise.
23829         (__DECL_SIMD_logf16): Likewise.
23830         (__DECL_SIMD_logf32): Likewise.
23831         (__DECL_SIMD_logf64): Likewise.
23832         (__DECL_SIMD_logf32x): Likewise.
23833         (__DECL_SIMD_logf64x): Likewise.
23834         (__DECL_SIMD_logf128x): Likewise.
23835         (__DECL_SIMD_expf16): Likewise.
23836         (__DECL_SIMD_expf32): Likewise.
23837         (__DECL_SIMD_expf64): Likewise.
23838         (__DECL_SIMD_expf32x): Likewise.
23839         (__DECL_SIMD_expf64x): Likewise.
23840         (__DECL_SIMD_expf128x): Likewise.
23841         (__DECL_SIMD_powf16): Likewise.
23842         (__DECL_SIMD_powf32): Likewise.
23843         (__DECL_SIMD_powf64): Likewise.
23844         (__DECL_SIMD_powf32x): Likewise.
23845         (__DECL_SIMD_powf64x): Likewise.
23846         (__DECL_SIMD_powf128x): Likewise.
23848         * stdlib/Versions (libc): Move entries for wcstof128 and
23849         wcstof128_l to ....
23850         * wcsmbs/Versions (libc): ... here.
23851         Include <float128-abi.h>.
23853 2017-11-24  Florian Weimer  <fweimer@redhat.com>
23855         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23856         bits/mman-shared.h.
23857         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23858         <bits/mman-shared.h>.
23859         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23860         to ...
23861         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23862         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23863         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23864         <bits/mman-shared.h>.
23866 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23868         [BZ #22457]
23869         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23870         posix_memalign/free.
23871         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23873 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
23875         [BZ #22469]
23876         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23877         and implement the collation rules for pl from CLDR on top of that.
23878         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23879         of locales to be built for testing.
23880         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23882 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
23884         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23885         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23886         libm_alias_ldouble_other.
23887         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23888         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23889         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23890         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23891         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23892         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23893         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23894         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23895         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23896         libm_alias_ldouble_r.
23897         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23898         libm_alias_ldouble_other.
23899         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23900         (log10l): Likewise.
23901         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23902         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23903         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23904         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23905         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23906         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23907         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23908         (atan2l): Likewise.
23909         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23910         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23911         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23912         libm_alias_ldouble.
23913         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23914         (cosl): Likewise.
23915         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23916         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23917         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23918         (expl): Likewise.
23919         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23920         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23921         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23922         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23923         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23924         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23925         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23926         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23927         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23928         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23929         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23930         libm_alias_ldouble.
23931         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23932         libm_alias_ldouble_other.
23933         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23934         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23935         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23936         libm_alias_ldouble.
23937         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23938         libm_alias_ldouble_other.
23939         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23940         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23941         * sysdeps/ia64/fpu/w_lgammal_main.c
23942         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23943         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23945 2017-11-23  Florian Weimer  <fweimer@redhat.com>
23947         * malloc/malloc.c (tcache_thread_shutdown): Rename from
23948         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
23949         alike.  Remove freeres marker.
23950         * malloc/arena.c (arena_thread_freeres): Call
23951         tcache_thread_shutdown.
23953 2017-11-23  Florian Weimer  <fweimer@redhat.com>
23955         [BZ #22459]
23956         Export nscd hash function as __nss_hash.
23957         * include/nss.h (__nss_hash): Declare.
23958         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
23959         symbol.
23960         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23961         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23962         of __nscd_hash.
23963         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23964         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23965         * nss/Makefiles (routines): Add nss_hash.
23966         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23967         * nss/nss_hash.c: Rename from nis/nis_hash.c.
23968         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
23969         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23971 2017-11-23  Florian Weimer  <fweimer@redhat.com>
23973         [BZ #22478]
23974         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23975         Return error code, not -1.
23976         * signal/tst-sigwait-eintr.c: New file.
23977         * signal/Makefile (tests): Add tst-sigwait-eintr.
23979 2017-11-23  Florian Weimer  <fweimer@redhat.com>
23981         Linux: Add memfd_create system call wrapper
23982         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23983         tst-memfd_create.
23984         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23985         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23986         [__USE_GNU] (memfd_create): Declare.
23987         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23988         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23989         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23990         * sysdeps/unix/sysv/linux/**.abilist: Update.
23991         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23993 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
23995         * localedata/gen-locale.sh: Fix typo in variable name.
23997         * resolv/res_debug.c (p_secstodate): Condition definition on
23998         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
23999         directly as __p_secstodate, and as a compat symbol.  Do not use
24000         libresolv_hidden_def.
24001         * resolv/resolv.h (p_secstodate): Remove macro and function
24002         declaration.
24003         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24004         using p_secstodate.
24005         * include/resolv.h (__p_secstodate): Do not use
24006         libresolv_hidden_proto.
24007         * resolv/Makefile (tests): Move tst-p_secstodate to ....
24008         (tests-internal): ... here.
24009         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
24010         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24011         and declare and use __p_secstodate and use compat_symbol_reference
24012         in that case.
24013         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24014         implementation returning 77.
24016         [BZ #22463]
24017         * resolv/res_debug.c: Include <libc-diag.h>.
24018         (p_secstodate): Assert time_t at least as wide as u_long.  On
24019         overflow, use integer seconds since the epoch as output, or use
24020         "<overflow>" as output and set errno to EOVERFLOW if integer
24021         seconds since the epoch would be 14 or more characters.
24022         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24023         for sprintf call.
24024         * resolv/tst-p_secstodate.c: New file.
24025         * resolv/Makefile (tests): Add tst-p_secstodate.
24026         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24028         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24029         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24030         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24032 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
24034         * posix/regcomp.c (init_word_char): Add comments.
24036 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24038         [BZ #22447]
24039         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24040         strlen to compute length of ut_user and set trailing NUL byte of
24041         result explicitly.
24043 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
24045         [BZ #15537]
24046         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24047         using “copy "iso14651_t1"” and then implementing the
24048         collation rules for lv from CLDR on top of that.
24049         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24050         of locales to be built for testing.
24051         * lv_LV.UTF-8.in: New file with test data to test the Latvian
24052         sorting.
24054 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
24056         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24057         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24058         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24059         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24060         [__USE_MISC] (MADV_HWPOISON): New macro.
24061         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24063 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24065         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24066         -Wmissing-braces on GCC 4.9.
24068 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24070         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24071         * sysdeps/s390/s390-32/start.S (_start): Likewise
24072         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24073         (thread_start): Likewise.
24074         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24075         (thread_start): Likewise.
24076         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24077         (__makecontext_ret): Likewise.
24078         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24079         (__makecontext_ret): Likewise.
24081 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24083         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24084         __wcschrnul): Remove attribute_hidden.
24086 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24088         regex: don't assume uint64_t or uint32_t
24089         This avoids -Werror=overflow errors for 32-bit systems in
24090         the 64-bit case.  Problem reported by Joseph Myers in:
24091         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24092         Also, when this code is used in Gnulib it ports to platforms
24093         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
24094         them, and on some 32-bit compilers there is no uint64_t.
24095         Problem reported by Gianluigi Tiesi in:
24096         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24097         * posix/regcomp.c (init_word_char): Don't assume that the types
24098         uint64_t and uint32_t exist.  Adapted from Gnulib patch
24099         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
24100         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24102 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24104         * sysdeps/aarch64/memset-reg.h: New file.
24105         * sysdeps/aarch64/memset.S: Use it.
24106         (__memset): Rename to MEMSET macro.
24107         [ZVA_MACRO]: Use zva_macro.
24108         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24109         Add memset_generic and memset_falkor.
24110         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24111         (__libc_ifunc_impl_list): Add memset ifuncs.
24112         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24113         local variable zva_size.
24114         * sysdeps/aarch64/multiarch/memset.c: New file.
24115         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24116         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24117         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24118         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24119         (DCZID_DZP_MASK): New macro.
24120         (DCZID_BS_MASK): Likewise.
24121         (init_cpu_features): Read and set zva_size.
24122         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24123         (struct cpu_features): New member zva_size.
24125         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24126         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24127         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24129         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24130         backwards.  Fix timing computation.
24131         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24132         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24133         on memset by N at a time.  Fix timing computation.
24135 2017-11-20  Florian Weimer  <fweimer@redhat.com>
24137         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24138         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24140 2017-11-19  Florian Weimer  <fweimer@redhat.com>
24142         manual: Document mprotect
24143         * manual/memory.texi (Memory Protection): New section.
24144         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24145         documentation of PROT_* flags and reference the Memory Protection
24146         section instead.
24148 2017-11-19  Florian Weimer  <fweimer@redhat.com>
24150         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24151         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24152         (Scatter-Gather): ... to here.  Remove misleading comment.
24154 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
24156         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24157         style.
24159         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24160         when /proc/<pid>/setgroups does not exist.
24162 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24164         * sysdeps/unix/sysv/linux/tst-ttyname.c
24165         (become_root_in_mount_ns): Remove.
24166         (do_in_chroot_1): Call support_enter_mount_namespace.
24167         (do_in_chroot_2): Likewise.
24168         (do_test): Call support_become_root early.
24170 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24172         * support/namespace.h (support_enter_mount_namespace): Declare.
24173         * support/support_enter_mount_namespace.c: New file.
24174         * support/Makefile (libsupport-routines): Add
24175         support_enter_mount_namespace.
24177 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24179         * support/temp_file.c (support_create_temp_directory): Use
24180         test_dir and do not rely on the presence of the XXXXXX suffix.
24181         * support/temp_file.h (support_create_temp_directory): Update
24182         comment.
24183         * support/tst-xreadlink.c (do_test): Adjust.
24184         * support/support_chroot.c (support_chroot_create): Likewise.
24186 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24188         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24189         macro.
24190         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24191         htm-no-suspend.
24193 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
24195         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24196         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24197         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24198         (ceill): Define using libm_alias_ldouble.
24199         * sysdeps/x86_64/fpu/s_copysignl.S: Include
24200         <libm-alias-ldouble.h>.
24201         (copysignl): Define using libm_alias_ldouble.
24202         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24203         (fabsl): Define using libm_alias_ldouble.
24204         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24205         (floorl): Define using libm_alias_ldouble.
24206         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24207         (fmaxl): Define using libm_alias_ldouble.
24208         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24209         (fminl): Define using libm_alias_ldouble.
24210         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24211         (llrintl): Define using libm_alias_ldouble.
24212         (lrintl): Likewise.
24213         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24214         <libm-alias-ldouble.h>.
24215         (nearbyintl): Define using libm_alias_ldouble.
24216         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24217         (truncl): Define using libm_alias_ldouble.
24218         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24219         <libm-alias-ldouble.h>.
24220         (lrintl): Define using libm_alias_ldouble.
24222         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24223         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24224         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24225         (asinhl): Define using libm_alias_ldouble.
24226         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24227         (atanl): Define using libm_alias_ldouble.
24228         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24229         (cbrtl): Define using libm_alias_ldouble.
24230         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24231         (ceill): Define using libm_alias_ldouble.
24232         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24233         (copysignl): Define using libm_alias_ldouble.
24234         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24235         (fabsl): Define using libm_alias_ldouble.
24236         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24237         (floorl): Define using libm_alias_ldouble.
24238         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24239         (fmaxl): Define using libm_alias_ldouble.
24240         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24241         (fminl): Define using libm_alias_ldouble.
24242         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24243         (frexpl): Define using libm_alias_ldouble.
24244         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24245         (llrintl): Define using libm_alias_ldouble.
24246         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24247         (logbl): Define using libm_alias_ldouble.
24248         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24249         (lrintl): Define using libm_alias_ldouble.
24250         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24251         (nearbyintl): Define using libm_alias_ldouble.
24252         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24253         (nextafterl): Define using libm_alias_ldouble.
24254         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24255         (remquol): Define using libm_alias_ldouble.
24256         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24257         (rintl): Define using libm_alias_ldouble.
24258         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24259         (truncl): Define using libm_alias_ldouble.
24260         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24261         (fmaxl): Define using libm_alias_ldouble.
24262         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24263         (fminl): Define using libm_alias_ldouble.
24265         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24266         to C syntax instead of availability and properties of types.
24267         * bits/floatn.h [!__ASSEMBLER]: Likewise.
24268         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24269         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24270         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24271         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24272         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24274 2017-11-17  Florian Weimer  <fweimer@redhat.com>
24276         support_become_root: Enable file creation in namespaces.
24277         * support/support_become_root.c (setup_mapping): New function.
24278         (support_become_root): Call it.
24280 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
24282         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24283         macro.
24285 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24287         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24288         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24290 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
24292         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24294         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24295         version to 4.14.
24297 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24299         * INSTALL: Fix botched up regeneration.
24301         * NEWS: Update sourceare link to https.
24302         * configure.ac: Likewise.
24303         * crypt/md5test-giant.c: Likewise.
24304         * dlfcn/bug-atexit1.c: Likewise.
24305         * dlfcn/bug-atexit2.c: Likewise.
24306         * localedata/README: Likewise.
24307         * malloc/tst-mallocfork.c: Likewise.
24308         * manual/install.texi: Likewise.
24309         * nptl/tst-pthread-getattr.c: Likewise.
24310         * stdio-common/tst-fgets.c: Likewise.
24311         * stdio-common/tst-fwrite.c: Likewise.
24312         * sunrpc/Makefile: Likewise.
24313         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24314         * wcsmbs/tst-mbrtowc2.c: Likewise.
24315         * configure: Regenerate.
24316         * INSTALL: Regenerate.
24318 2017-11-15  Martin Sebor  <msebor@redhat.com>
24320         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24321         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24322         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24324 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
24326         [BZ #22145]
24327         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24328         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24330         [BZ #22145]
24331         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24332         Defer is_pty check until end of the function.
24333         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24335         [BZ #22145]
24336         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24337         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24338         (ttyname): Likewise.
24339         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24340         (__ttyname_r): Likewise.
24342         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24343         int to bool.
24345         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24347         * manual/terminal.texi (Is It a Terminal):
24348         Mention ENODEV for ttyname and ttyname_r.
24350 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24352         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24353         constant and macro.
24355         * sysdeps/unix/sysv/linux/bits/mman-linux.h
24356         [__USE_MISC] (MADV_WIPEONFORK): New macro.
24357         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24358         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24359         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24360         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24362 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24364         * signal/sigrelse.c (sigrelse): Optimize implementation.
24366         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24367         (__sigpause): Rely on __sigsuspend to implement single thread
24368         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
24370 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24372         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24373         kernel version to 4.14.
24375 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
24377         [BZ #22442]
24378         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24379         Check if ifname is too long.
24381 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
24383         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24385 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
24387         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24388         was accidentally lost.
24390 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
24392         * localedata/locales/az_IR: Add standard copyright header.
24394 2017-11-15  Florian Weimer  <fweimer@redhat.com>
24396         [BZ #22439]
24397         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24398         not just the top one.  Output a new "subheaps" statistic.
24400 2017-11-15  Florian Weimer  <fweimer@redhat.com>
24402         [BZ #22408]
24403         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24404         under the per-arena lock.
24405         * malloc/Makefile (tests): Add tst-malloc_info.
24406         (tst-malloc_info): Link with libpthread.
24407         * malloc/tst-malloc_info.c: New file.
24409 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24411         [BZ #21660]
24412         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24413         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24414         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24415         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24416         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24417         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24418         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24419         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24420         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24421         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24422         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24423         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24424         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24425         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24426         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24427         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24428         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24429         (__floating_type): Likewise.
24430         (__real_integer_type): Likewise.
24431         (__complex_integer_type): Likewise.
24432         (__expr_is_real): Likewise.
24433         (__tgmath_real_type_sub): Likewise.
24434         (__tgmath_real_type): Likewise.
24435         (__tgmath_complex_type_sub): Likewise.
24436         (__tgmath_complex_type): Likewise.
24437         (__TGMATH_F128): Likewise.
24438         (__TGMATH_CF128): Likewise.
24439         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24440         new macros.
24441         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24442         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24443         Likewise.
24444         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24445         Likewise.
24446         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24447         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24448         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24449         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24450         Likewise.
24451         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24452         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24453         Likewise.
24454         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24455         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24456         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24457         Likewise.
24458         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24459         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24460         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24461         (cimag): Likewise.
24462         (creal): Likewise.
24464 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
24466         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24467         for stpncpy calls for GCC 8.
24468         (test_strncat): Disable -Wstringop-truncation warning for strncat
24469         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
24470         strncat call for GCC 7.
24471         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24472         calls for GCC 8.
24473         (test_memcmp): Use memcpy instead of strncpy for calls not copying
24474         trailing NUL.
24476         * string/bug-strncat1.c: Include <libc-diag.h>.
24477         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24479 2017-11-13  Claude Paroz  <claude@2xlibre.net>
24481         [BZ #22387]
24482         * localedata/locales/aa_DJ: Improved readibility by replacing
24483         <Uxxxx> sequences in the ASCII printable range by their ASCII
24484         character equivalents.
24485         * localedata/locales/aa_ER: Likewise.
24486         * localedata/locales/aa_ER@saaho: Likewise.
24487         * localedata/locales/aa_ET: Likewise.
24488         * localedata/locales/af_ZA: Likewise.
24489         * localedata/locales/agr_PE: Likewise.
24490         * localedata/locales/ak_GH: Likewise.
24491         * localedata/locales/am_ET: Likewise.
24492         * localedata/locales/anp_IN: Likewise.
24493         * localedata/locales/ar_AE: Likewise.
24494         * localedata/locales/ar_BH: Likewise.
24495         * localedata/locales/ar_DZ: Likewise.
24496         * localedata/locales/ar_EG: Likewise.
24497         * localedata/locales/ar_IN: Likewise.
24498         * localedata/locales/ar_IQ: Likewise.
24499         * localedata/locales/ar_JO: Likewise.
24500         * localedata/locales/ar_KW: Likewise.
24501         * localedata/locales/ar_LB: Likewise.
24502         * localedata/locales/ar_LY: Likewise.
24503         * localedata/locales/ar_MA: Likewise.
24504         * localedata/locales/ar_OM: Likewise.
24505         * localedata/locales/ar_QA: Likewise.
24506         * localedata/locales/ar_SA: Likewise.
24507         * localedata/locales/ar_SD: Likewise.
24508         * localedata/locales/ar_SS: Likewise.
24509         * localedata/locales/ar_SY: Likewise.
24510         * localedata/locales/ar_TN: Likewise.
24511         * localedata/locales/ar_YE: Likewise.
24512         * localedata/locales/as_IN: Likewise.
24513         * localedata/locales/ast_ES: Likewise.
24514         * localedata/locales/ayc_PE: Likewise.
24515         * localedata/locales/az_AZ: Likewise.
24516         * localedata/locales/az_IR: Likewise.
24517         * localedata/locales/be_BY: Likewise.
24518         * localedata/locales/be_BY@latin: Likewise.
24519         * localedata/locales/bem_ZM: Likewise.
24520         * localedata/locales/ber_DZ: Likewise.
24521         * localedata/locales/ber_MA: Likewise.
24522         * localedata/locales/bg_BG: Likewise.
24523         * localedata/locales/bhb_IN: Likewise.
24524         * localedata/locales/bho_IN: Likewise.
24525         * localedata/locales/bi_VU: Likewise.
24526         * localedata/locales/bn_BD: Likewise.
24527         * localedata/locales/bn_IN: Likewise.
24528         * localedata/locales/bo_CN: Likewise.
24529         * localedata/locales/bo_IN: Likewise.
24530         * localedata/locales/br_FR: Likewise.
24531         * localedata/locales/brx_IN: Likewise.
24532         * localedata/locales/bs_BA: Likewise.
24533         * localedata/locales/byn_ER: Likewise.
24534         * localedata/locales/ca_AD: Likewise.
24535         * localedata/locales/ca_ES: Likewise.
24536         * localedata/locales/ca_FR: Likewise.
24537         * localedata/locales/ca_IT: Likewise.
24538         * localedata/locales/ce_RU: Likewise.
24539         * localedata/locales/chr_US: Likewise.
24540         * localedata/locales/cmn_TW: Likewise.
24541         * localedata/locales/crh_UA: Likewise.
24542         * localedata/locales/cs_CZ: Likewise.
24543         * localedata/locales/csb_PL: Likewise.
24544         * localedata/locales/cv_RU: Likewise.
24545         * localedata/locales/cy_GB: Likewise.
24546         * localedata/locales/da_DK: Likewise.
24547         * localedata/locales/de_AT: Likewise.
24548         * localedata/locales/de_BE: Likewise.
24549         * localedata/locales/de_CH: Likewise.
24550         * localedata/locales/de_DE: Likewise.
24551         * localedata/locales/de_IT: Likewise.
24552         * localedata/locales/de_LI: Likewise.
24553         * localedata/locales/de_LU: Likewise.
24554         * localedata/locales/doi_IN: Likewise.
24555         * localedata/locales/dv_MV: Likewise.
24556         * localedata/locales/dz_BT: Likewise.
24557         * localedata/locales/el_CY: Likewise.
24558         * localedata/locales/el_GR: Likewise.
24559         * localedata/locales/en_AG: Likewise.
24560         * localedata/locales/en_AU: Likewise.
24561         * localedata/locales/en_BW: Likewise.
24562         * localedata/locales/en_CA: Likewise.
24563         * localedata/locales/en_DK: Likewise.
24564         * localedata/locales/en_GB: Likewise.
24565         * localedata/locales/en_HK: Likewise.
24566         * localedata/locales/en_IE: Likewise.
24567         * localedata/locales/en_IL: Likewise.
24568         * localedata/locales/en_IN: Likewise.
24569         * localedata/locales/en_NG: Likewise.
24570         * localedata/locales/en_NZ: Likewise.
24571         * localedata/locales/en_PH: Likewise.
24572         * localedata/locales/en_SG: Likewise.
24573         * localedata/locales/en_US: Likewise.
24574         * localedata/locales/en_ZA: Likewise.
24575         * localedata/locales/en_ZM: Likewise.
24576         * localedata/locales/en_ZW: Likewise.
24577         * localedata/locales/eo: Likewise.
24578         * localedata/locales/es_AR: Likewise.
24579         * localedata/locales/es_BO: Likewise.
24580         * localedata/locales/es_CL: Likewise.
24581         * localedata/locales/es_CO: Likewise.
24582         * localedata/locales/es_CR: Likewise.
24583         * localedata/locales/es_CU: Likewise.
24584         * localedata/locales/es_DO: Likewise.
24585         * localedata/locales/es_EC: Likewise.
24586         * localedata/locales/es_ES: Likewise.
24587         * localedata/locales/es_GT: Likewise.
24588         * localedata/locales/es_HN: Likewise.
24589         * localedata/locales/es_MX: Likewise.
24590         * localedata/locales/es_NI: Likewise.
24591         * localedata/locales/es_PA: Likewise.
24592         * localedata/locales/es_PE: Likewise.
24593         * localedata/locales/es_PR: Likewise.
24594         * localedata/locales/es_PY: Likewise.
24595         * localedata/locales/es_SV: Likewise.
24596         * localedata/locales/es_US: Likewise.
24597         * localedata/locales/es_UY: Likewise.
24598         * localedata/locales/es_VE: Likewise.
24599         * localedata/locales/et_EE: Likewise.
24600         * localedata/locales/eu_ES: Likewise.
24601         * localedata/locales/eu_ES@euro: Likewise.
24602         * localedata/locales/fa_IR: Likewise.
24603         * localedata/locales/ff_SN: Likewise.
24604         * localedata/locales/fi_FI: Likewise.
24605         * localedata/locales/fil_PH: Likewise.
24606         * localedata/locales/fo_FO: Likewise.
24607         * localedata/locales/fr_BE: Likewise.
24608         * localedata/locales/fr_CA: Likewise.
24609         * localedata/locales/fr_CH: Likewise.
24610         * localedata/locales/fr_FR: Likewise.
24611         * localedata/locales/fr_LU: Likewise.
24612         * localedata/locales/fur_IT: Likewise.
24613         * localedata/locales/fy_DE: Likewise.
24614         * localedata/locales/fy_NL: Likewise.
24615         * localedata/locales/ga_IE: Likewise.
24616         * localedata/locales/gd_GB: Likewise.
24617         * localedata/locales/gez_ER: Likewise.
24618         * localedata/locales/gez_ET: Likewise.
24619         * localedata/locales/gl_ES: Likewise.
24620         * localedata/locales/gu_IN: Likewise.
24621         * localedata/locales/gv_GB: Likewise.
24622         * localedata/locales/ha_NG: Likewise.
24623         * localedata/locales/hak_TW: Likewise.
24624         * localedata/locales/he_IL: Likewise.
24625         * localedata/locales/hi_IN: Likewise.
24626         * localedata/locales/hif_FJ: Likewise.
24627         * localedata/locales/hne_IN: Likewise.
24628         * localedata/locales/hr_HR: Likewise.
24629         * localedata/locales/hsb_DE: Likewise.
24630         * localedata/locales/ht_HT: Likewise.
24631         * localedata/locales/hu_HU: Likewise.
24632         * localedata/locales/hy_AM: Likewise.
24633         * localedata/locales/i18n: Likewise.
24634         * localedata/locales/ia_FR: Likewise.
24635         * localedata/locales/id_ID: Likewise.
24636         * localedata/locales/ig_NG: Likewise.
24637         * localedata/locales/ik_CA: Likewise.
24638         * localedata/locales/is_IS: Likewise.
24639         * localedata/locales/it_CH: Likewise.
24640         * localedata/locales/it_IT: Likewise.
24641         * localedata/locales/iu_CA: Likewise.
24642         * localedata/locales/ja_JP: Likewise.
24643         * localedata/locales/ka_GE: Likewise.
24644         * localedata/locales/kk_KZ: Likewise.
24645         * localedata/locales/kl_GL: Likewise.
24646         * localedata/locales/kn_IN: Likewise.
24647         * localedata/locales/ko_KR: Likewise.
24648         * localedata/locales/kok_IN: Likewise.
24649         * localedata/locales/ks_IN: Likewise.
24650         * localedata/locales/ks_IN@devanagari: Likewise.
24651         * localedata/locales/ku_TR: Likewise.
24652         * localedata/locales/kw_GB: Likewise.
24653         * localedata/locales/ky_KG: Likewise.
24654         * localedata/locales/lb_LU: Likewise.
24655         * localedata/locales/lg_UG: Likewise.
24656         * localedata/locales/li_BE: Likewise.
24657         * localedata/locales/li_NL: Likewise.
24658         * localedata/locales/lij_IT: Likewise.
24659         * localedata/locales/ln_CD: Likewise.
24660         * localedata/locales/lo_LA: Likewise.
24661         * localedata/locales/lt_LT: Likewise.
24662         * localedata/locales/lv_LV: Likewise.
24663         * localedata/locales/lzh_TW: Likewise.
24664         * localedata/locales/mag_IN: Likewise.
24665         * localedata/locales/mai_IN: Likewise.
24666         * localedata/locales/mg_MG: Likewise.
24667         * localedata/locales/mhr_RU: Likewise.
24668         * localedata/locales/mi_NZ: Likewise.
24669         * localedata/locales/mk_MK: Likewise.
24670         * localedata/locales/ml_IN: Likewise.
24671         * localedata/locales/mn_MN: Likewise.
24672         * localedata/locales/mni_IN: Likewise.
24673         * localedata/locales/mr_IN: Likewise.
24674         * localedata/locales/ms_MY: Likewise.
24675         * localedata/locales/mt_MT: Likewise.
24676         * localedata/locales/my_MM: Likewise.
24677         * localedata/locales/nan_TW: Likewise.
24678         * localedata/locales/nan_TW@latin: Likewise.
24679         * localedata/locales/nb_NO: Likewise.
24680         * localedata/locales/nds_DE: Likewise.
24681         * localedata/locales/nds_NL: Likewise.
24682         * localedata/locales/ne_NP: Likewise.
24683         * localedata/locales/nhn_MX: Likewise.
24684         * localedata/locales/niu_NU: Likewise.
24685         * localedata/locales/niu_NZ: Likewise.
24686         * localedata/locales/nl_AW: Likewise.
24687         * localedata/locales/nl_BE: Likewise.
24688         * localedata/locales/nl_NL: Likewise.
24689         * localedata/locales/nn_NO: Likewise.
24690         * localedata/locales/nr_ZA: Likewise.
24691         * localedata/locales/nso_ZA: Likewise.
24692         * localedata/locales/oc_FR: Likewise.
24693         * localedata/locales/om_ET: Likewise.
24694         * localedata/locales/om_KE: Likewise.
24695         * localedata/locales/or_IN: Likewise.
24696         * localedata/locales/os_RU: Likewise.
24697         * localedata/locales/pa_IN: Likewise.
24698         * localedata/locales/pa_PK: Likewise.
24699         * localedata/locales/pap_AW: Likewise.
24700         * localedata/locales/pap_CW: Likewise.
24701         * localedata/locales/pl_PL: Likewise.
24702         * localedata/locales/ps_AF: Likewise.
24703         * localedata/locales/pt_BR: Likewise.
24704         * localedata/locales/pt_PT: Likewise.
24705         * localedata/locales/quz_PE: Likewise.
24706         * localedata/locales/raj_IN: Likewise.
24707         * localedata/locales/ro_RO: Likewise.
24708         * localedata/locales/ru_RU: Likewise.
24709         * localedata/locales/ru_UA: Likewise.
24710         * localedata/locales/rw_RW: Likewise.
24711         * localedata/locales/sa_IN: Likewise.
24712         * localedata/locales/sat_IN: Likewise.
24713         * localedata/locales/sc_IT: Likewise.
24714         * localedata/locales/sd_IN: Likewise.
24715         * localedata/locales/sd_IN@devanagari: Likewise.
24716         * localedata/locales/se_NO: Likewise.
24717         * localedata/locales/sgs_LT: Likewise.
24718         * localedata/locales/shs_CA: Likewise.
24719         * localedata/locales/si_LK: Likewise.
24720         * localedata/locales/sid_ET: Likewise.
24721         * localedata/locales/sk_SK: Likewise.
24722         * localedata/locales/sl_SI: Likewise.
24723         * localedata/locales/sm_WS: Likewise.
24724         * localedata/locales/so_DJ: Likewise.
24725         * localedata/locales/so_ET: Likewise.
24726         * localedata/locales/so_KE: Likewise.
24727         * localedata/locales/so_SO: Likewise.
24728         * localedata/locales/sq_AL: Likewise.
24729         * localedata/locales/sq_MK: Likewise.
24730         * localedata/locales/sr_ME: Likewise.
24731         * localedata/locales/sr_RS: Likewise.
24732         * localedata/locales/sr_RS@latin: Likewise.
24733         * localedata/locales/ss_ZA: Likewise.
24734         * localedata/locales/st_ZA: Likewise.
24735         * localedata/locales/sv_FI: Likewise.
24736         * localedata/locales/sv_SE: Likewise.
24737         * localedata/locales/sw_KE: Likewise.
24738         * localedata/locales/sw_TZ: Likewise.
24739         * localedata/locales/szl_PL: Likewise.
24740         * localedata/locales/ta_IN: Likewise.
24741         * localedata/locales/ta_LK: Likewise.
24742         * localedata/locales/tcy_IN: Likewise.
24743         * localedata/locales/te_IN: Likewise.
24744         * localedata/locales/tg_TJ: Likewise.
24745         * localedata/locales/th_TH: Likewise.
24746         * localedata/locales/the_NP: Likewise.
24747         * localedata/locales/ti_ER: Likewise.
24748         * localedata/locales/ti_ET: Likewise.
24749         * localedata/locales/tig_ER: Likewise.
24750         * localedata/locales/tk_TM: Likewise.
24751         * localedata/locales/tl_PH: Likewise.
24752         * localedata/locales/tn_ZA: Likewise.
24753         * localedata/locales/to_TO: Likewise.
24754         * localedata/locales/tpi_PG: Likewise.
24755         * localedata/locales/tr_CY: Likewise.
24756         * localedata/locales/tr_TR: Likewise.
24757         * localedata/locales/ts_ZA: Likewise.
24758         * localedata/locales/tt_RU: Likewise.
24759         * localedata/locales/tt_RU@iqtelif: Likewise.
24760         * localedata/locales/ug_CN: Likewise.
24761         * localedata/locales/uk_UA: Likewise.
24762         * localedata/locales/unm_US: Likewise.
24763         * localedata/locales/ur_IN: Likewise.
24764         * localedata/locales/ur_PK: Likewise.
24765         * localedata/locales/uz_UZ: Likewise.
24766         * localedata/locales/uz_UZ@cyrillic: Likewise.
24767         * localedata/locales/ve_ZA: Likewise.
24768         * localedata/locales/vi_VN: Likewise.
24769         * localedata/locales/wa_BE: Likewise.
24770         * localedata/locales/wae_CH: Likewise.
24771         * localedata/locales/wal_ET: Likewise.
24772         * localedata/locales/wo_SN: Likewise.
24773         * localedata/locales/xh_ZA: Likewise.
24774         * localedata/locales/yi_US: Likewise.
24775         * localedata/locales/yo_NG: Likewise.
24776         * localedata/locales/yue_HK: Likewise.
24777         * localedata/locales/yuw_PG: Likewise.
24778         * localedata/locales/zh_CN: Likewise.
24779         * localedata/locales/zh_HK: Likewise.
24780         * localedata/locales/zh_SG: Likewise.
24781         * localedata/locales/zh_TW: Likewise.
24782         * localedata/locales/zu_ZA: Likewise.
24784 2017-11-13  Florian Weimer  <fweimer@redhat.com>
24786         * support/next_to_fault.h, support/next_to_fault.c: New files.
24787         * support/Makefile (libsupport-routines): Add next_to_fault.
24788         * resolv/tst-inet_pton.c (struct next_to_fault)
24789         (next_to_fault_allocate, next_to_fault_free): Remove.
24790         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24792 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
24794         * elf/dl-support.c: Include <dl-procruntime.c>.
24795         * include/link.h: Include <link_map.h>.
24796         * sysdeps/generic/dl-procruntime.c: New file.
24797         * sysdeps/generic/link_map.h: Likewise.
24798         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24799         the writable ld.so namespace.
24801 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
24803         timezone: pacify GCC -Wstringop-truncation
24804         Problem reported by Martin Sebor in:
24805         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24806         * timezone/zic.c (writezone): Use memcpy, not strncpy.
24808 2017-11-12  Florian Weimer  <fweimer@redhat.com>
24810         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24811         tst-xreadlink.
24812         (tests): Add tst-xreadlink.
24813         * support/support.h (xstrndup): Declare.
24814         * support/xunistd.h (xunlink, xreadlink): Declare.
24815         * support/temp_file.h (support_create_temp_directory): Declare.
24816         * support/temp_file.c (support_create_temp_directory): New function.
24817         * support/support_chroot.c (support_chroot_create): Use it.
24818         * support/xreadlink.c: New file.
24819         * support/xstrndup.c: Likewise.
24820         * support/xunlink.c: Likewise.
24821         * support/tst-xreadlink.c: Likewise.
24823 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
24825         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24827 2017-11-11  Florian Weimer  <fweimer@redhat.com>
24829         [BZ #22409]
24830         [BZ #22412]
24831         * resolv/res_comp.c (printable_string, binary_hnok)
24832         (binary_leading_dash): New functions.
24833         (res_hnok): Reimplement using these functions and ns_name_pton.
24834         (res_ownok): Likewise.
24835         (res_mailok): Reimplement using printable_string, ns_name_pton and
24836         binary_hnok.
24837         (res_dnok): Reimplement using printable_string and ns_name_pton.
24838         * resolv/tst-res_hnok.c (tests): Add additional tests.
24839         (LETTERDIGITS, PRINTABLE): Define.
24840         (do_test): Adjust one_char results.
24842 2017-11-11  Florian Weimer  <fweimer@redhat.com>
24844         [BZ #22413]
24845         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24846         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24848 2017-11-11  Florian Weimer  <fweimer@redhat.com>
24850         * resolv/tst-ns_name_pton.c: New file.
24851         * resolv/Makefile (tests): Add tst-ns_name_pton.
24852         (tst-ns_name_pton): Link against libresolv.
24854 2017-11-11  Florian Weimer  <fweimer@redhat.com>
24856         * resolv/tst-res_hnok.c: New file.
24857         * resolv/Makefile (tests): Add tst-res_hnok.
24858         (tst-res_hnok): Link against libresolv.
24860 2017-11-11  Florian Weimer  <fweimer@redhat.com>
24862         * resolv/tst-resolv-network.c: Use test framework instead explicit
24863         main function.
24865 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
24867         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24868         <jmp_buf-macros.h>.
24869         [!_ISOMAC] (STR_HELPER): New.
24870         [!_ISOMAC] (STR): Likewise.
24871         [!_ISOMAC] (TEST_SIZE): Likewise.
24872         [!_ISOMAC] (TEST_ALIGN): Likewise.
24873         [!_ISOMAC] (TEST_OFFSET): Likewise.
24874         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24875         field offsets of jmp_buf as well as sigjmp_buf.
24876         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24877         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24878         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24879         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24880         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24881         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24882         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24883         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24884         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24885         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24886         Likewise.
24887         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24888         Likewise.
24889         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24891         Likewise.
24892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24893         Likewise.
24894         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24895         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24896         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24897         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24898         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24900         Likewise.
24901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24902         Likewise.
24903         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24904         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24905         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24907 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
24909         * include/float.h
24910         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24911         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24912         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24913         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24914         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24915         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24916         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24917         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24918         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24919         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24920         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24921         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24922         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24923         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24924         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24925         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24926         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24927         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24928         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24929         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24930         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24931         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24932         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24933         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24934         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24935         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24936         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24937         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24938         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24939         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24940         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24941         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24942         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24943         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24944         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24945         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24946         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24947         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24948         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24949         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24950         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24951         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24952         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24953         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24954         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24955         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24956         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24957         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24958         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24959         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24960         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24961         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24962         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24963         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24964         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24965         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24966         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24967         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24968         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24969         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24970         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24971         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24972         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24973         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24974         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24975         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24976         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24977         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24978         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24979         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24980         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24981         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24982         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24983         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24984         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24985         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24986         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24987         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24988         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24989         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24990         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24991         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24992         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24993         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24994         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24995         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24996         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24997         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24999         * stdlib/tst-strtod.h (F16): New macro.
25000         (F32): Likewise.
25001         (F64): Likewise.
25002         (F32X): Likewise.
25003         (F64X): Likewise.
25004         (F128X): Likewise.
25005         (IF_FLOAT16): Likewise.
25006         (IF_FLOAT32): Likewise.
25007         (IF_FLOAT64): Likewise.
25008         (IF_FLOAT32X): Likewise.
25009         (IF_FLOAT64X): Likewise.
25010         (IF_FLOAT128X): Likewise.
25011         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25012         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25013         (STRTOD_TEST_FOREACH): Likewise.
25014         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25015         (CHOOSE_f64): Likewise.
25016         (CHOOSE_f32x): Likewise.
25017         (CHOOSE_f64x): Likewise.
25019 2017-11-07  Andreas Schwab  <schwab@suse.de>
25021         * nptl/Makefile (tests-internal): Remove tst-typesizes.
25023 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
25025         [BZ #22403]
25026         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25027         to be escaped.
25028         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25029         to be escaped.
25031 2017-11-07  Claude Paroz  <claude@2xlibre.net>
25033         [BZ #22403]
25034         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25035         to be escaped.
25036         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25037         to be escaped.
25038         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25039         to be escaped.
25041 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25043         [BZ #22298]
25044         * nptl/allocatestack.c (allocate_stack): Check if
25045         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25046         __PTHREAD_MUTEX_HAVE_PREV is defined.
25047         * nptl/descr.h (pthread): Likewise.
25048         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25049         Likewise.
25050         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25051         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25052         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25053         * sysdeps/nptl/bits/thread-shared-types.h
25054         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25055         defines.
25056         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25057         of __WORDSIZE for internal layout.
25058         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25059         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25060         instead of __WORDSIZE whether to use an union for __spins and __list
25061         fields.
25062         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25063         case.
25064         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25065         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25066         defines.
25067         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25068         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25069         Likewise.
25070         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25071         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25072         Likewise.
25073         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25074         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25075         Likewise.
25076         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25077         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25078         Likewise.
25079         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25080         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25081         Likewise.
25082         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25083         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25084         Likewise.
25085         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25086         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25087         Likewise.
25088         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25089         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25090         Likewise.
25091         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25092         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25093         Likewise.
25094         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25095         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25096         Likewise.
25097         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25098         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25099         Likewise.
25100         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25101         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25102         Likewise.
25103         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25104         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25105         Likewise.
25106         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25107         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25108         Likewise.
25110         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25111         New macros.
25112         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25113         checks for expected input type size.
25114         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25115         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25116         Likewise.
25117         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25118         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25119         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25120         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25121         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25122         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25123         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25124         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25125         superflous runtime assert check.
25126         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25127         Likewise.
25128         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25129         Likewise.
25130         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25131         Likewise.
25132         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25133         Likewise.
25134         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25135         Likewise.
25136         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25137         Likewise.
25138         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25139         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25140         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25141         Likewise.
25142         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25143         Likewise.
25144         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25145         Likewise.
25146         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25147         Likewise.
25148         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25149         Likewise.
25150         * nptl/pthread_attr_setinheritsched.c
25151         (__pthread_attr_setinheritsched): Likewise.
25152         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25153         Likewise.
25154         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25155         Likewise.
25156         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25157         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25158         __old_pthread_attr_setstack): Likewise.
25159         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25160         Likewise.
25161         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25162         Likewise.
25163         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25164         Likewise.
25165         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25166         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25167         Likewise.
25168         * nptl/tst-typesizes.c: Remove file.
25170         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25171         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25172         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25173         checks for internal pthread_mutex_t offsets.
25174         * sysdeps/aarch64/nptl/pthread-offsets.h
25175         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25176         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25177         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25178         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25179         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25180         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25181         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25182         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25183         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25184         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25185         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25186         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25187         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25188         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25189         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25190         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25191         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25192         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25194 2017-11-07  Florian Weimer  <fweimer@redhat.com>
25196         * bits/mman-linux.h: Move ...
25197         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
25198         comment.
25199         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25200         outdated comment.
25202 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25204         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25205         Redefine STRNLEN as __strnlen_power8.
25207 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25209         * signal/sighold.c (sighold): Optimize implementation.
25211         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25212         __NR_rt_sigqueueinfo.
25214         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25215         __sigtimedwait.
25216         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25217         assume __NR_rt_sigtimedwait.
25218         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25219         and add LIBC_CANCEL_HANDLED for cancellation marking.
25220         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25222         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25223         (sysdeps_routines): Add memchr_noneon.
25224         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25225         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25226         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25227         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25228         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25229         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25230         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25232         * sysdeps/arm/arm-ifunc.h: New file.
25233         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25234         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25235         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25236         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25237         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25238         (__memcpy_neon): Avoid create hidden alias.
25239         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25240         (__memcpy_vfp): Likewise.
25241         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25242         (sysdep_routines): Add memcpy_arm.
25243         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25245 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
25247         [BZ #22362]
25248         * Makerules (make-link-multidir): New.
25249         * config.make.in (multidir): New.
25250         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
25251         * configure: Regenerated.
25252         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25253         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25254         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25255         New target.
25257 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
25259         [BZ #22402]
25260         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25261         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25263 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
25265         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25266         to be escaped.
25268 2017-11-04  Florian Weimer  <fweimer@redhat.com>
25270         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25272 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
25274         * math/math.h [__HAVE_DISTINCT_FLOAT16
25275         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25276         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25277         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25278         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25279         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25280         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25281         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25282         (__MATH_TG_F32): New macro.
25283         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25284         (__MATH_TG_F64X): Likewise.
25285         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25286         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25288 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
25290         * po/de.po: Update translations.
25291         * po/ru.po: Likewise.
25293 2017-11-03  Florian Weimer  <fweimer@redhat.com>
25295         * manual/filesys.texi (Hard Links): Document linkat.
25297 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
25299         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25300         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25301         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25302         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25303         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25304         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25305         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25306         the same as _Float128.
25307         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25308         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25309         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25311         * stdlib/stdlib.h
25312         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25313         Declare.
25314         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25315         Likewise.
25316         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25317         Likewise.
25318         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25319         (strtof32x): Likewise.
25320         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25321         (strtof64x): Likewise.
25322         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25323         (strtof128x): Likewise.
25324         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25325         (strfromf16): Likewise.
25326         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25327         (strfromf32): Likewise.
25328         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25329         (strfromf64): Likewise.
25330         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25331         (strfromf32x): Likewise.
25332         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25333         (strfromf64x): Likewise.
25334         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25335         (strfromf128x): Likewise.
25336         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25337         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25338         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25339         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25340         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25341         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25343 2017-11-03  Richard Henderson  <rth@twiddle.net>
25345         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25347 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25349         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25351 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25353         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25354         DT_TLSDESC_GOT initialization.
25355         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25356         (_dl_tlsdesc_resolve_hold): Likewise.
25357         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25358         (_dl_tlsdesc_resolve_hold): Likewise.
25359         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25360         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25362 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25364         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25366 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25368         [BZ #18572]
25369         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25370         non-lazily for R_ARM_TLS_DESC.
25372 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25374         [BZ #17078]
25375         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25376         R_ARM_TLS_DESC case.
25377         (elf_machine_lazy_rel): Remove the prelink check.
25379 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25381         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25382         DT_TLSDESC_GOT initialization.
25383         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25384         (_dl_tlsdesc_resolve_rela): Likewise.
25385         (_dl_tlsdesc_resolve_hold): Likewise.
25386         (_dl_tlsdesc_undefweak): Remove ldar.
25387         (_dl_tlsdesc_dynamic): Likewise.
25388         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25389         (_dl_tlsdesc_resolve_rela): Likewise.
25390         (_dl_tlsdesc_resolve_hold): Likewise.
25391         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25392         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25393         (_dl_tlsdesc_resolve_rela): Likewise.
25394         (_dl_tlsdesc_resolve_hold): Likewise.
25396 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25398         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25399         binding and initialization non-lazily for R_AARCH64_TLSDESC.
25401 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25403         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25404         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25406 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
25408         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25409         Declare.
25410         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25411         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25412         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25413         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25414         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25415         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25416         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25417         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25418         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25419         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25420         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25422 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
25424         [BZ #22382]
25425         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25426         * localedata/locales/tpi_PG: Add standard header.
25428 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25430         test-errno-linux: quotactl can fail with EPERM in containers.
25431         * sysdeps/unix/sysv/linux/test-errno-linux.c
25432         (LIST, LIST_FORWARD): New macros.
25433         (check_error_in_list): New function.
25434         (test_wrp_rv): Accept list of permitted error codes.
25435         (test_wrp_rv2): Remove.
25436         (test_wrp): Call test_wrp_rv with list of error codes.
25437         (test_wrp2): Accept list of error codes.
25438         (do_test): Adjust.  Allow EPERM for quotactl.
25440 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25442         * stdio-common/bug16.c (do_test): Use array_length.
25443         * stdio-common/errlist.c (_sys_nerr): Likewise.
25444         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25445         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25446         * stdio-common/psiginfo.c (psiginfo): Use array_length.
25447         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25448         (do_test): Use array_length.
25449         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25450         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25451         * stdio-common/tst-printf-round.c (do_test): Likewise.
25452         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25453         (CHECK): Use array_length.
25454         * stdio-common/tstdiomisc.c (t3, F): Likewise.
25455         * stdio-common/tstscanf.c (main): Likewise.
25456         * stdio-common/vfprintf.c (process_string_arg): Likewise.
25458 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25460         Add array_length and array_end macros.
25461         * include/array_length.h: New file.
25463 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25465         [BZ #22332]
25466         * posix/tst-glob-tilde.c (do_noescape): New variable.
25467         (one_test): Process it.
25468         (do_test): Set do_noescape.  Add unescaping test case.
25470 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
25472         * math/complex.h
25473         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25474         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25475         with appropriate macros defined and undefined.
25476         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25477         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25478         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25479         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25480         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25481         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25482         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25483         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25484         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25485         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25487         * math/complex.h
25488         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25489         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25490         that for long double.  Do not condition define and undefine of
25491         _Mdouble_complex_ on [__CFLOAT128].
25493 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25495         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25496         of <sysdeps/generic/sysdep.h>.
25497         (ALIGNARG): Removed.
25498         (ASM_SIZE_DIRECTIVE): Likewise.
25499         (ENTRY): Likewise.
25500         (END): Likewise.
25501         (ENTRY_CHK): Likewise.
25502         (END_CHK): Likewise.
25503         (syscall_error): Likewise.
25504         (mcount): Likewise.
25505         (PSEUDO_END): Likewise.
25506         (L): Likewise.
25507         (atom_text_section): Likewise.
25508         * sysdeps/x86/sysdep.h: New file.
25509         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25510         of <sysdeps/generic/sysdep.h>.
25511         (ALIGNARG): Removed.
25512         (ASM_SIZE_DIRECTIVE): Likewise.
25513         (ENTRY): Likewise.
25514         (END): Likewise.
25515         (ENTRY_CHK): Likewise.
25516         (END_CHK): Likewise.
25517         (syscall_error): Likewise.
25518         (mcount): Likewise.
25519         (PSEUDO_END): Likewise.
25520         (L): Likewise.
25521         (atom_text_section): Likewise.
25523 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
25525         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25526         category of LC_CTYPE set to "i18n:2012".
25527         * localedata/locales/i18n_ctype: Regenerate.
25529 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
25531         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25532         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25533         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25534         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25536         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25537         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25538         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25539         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25541 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
25543         * math/complex.h
25544         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25545         New macro.
25546         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25547         Likewise.
25548         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25549         Likewise.
25550         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25551         (CMPLXF32X): Likewise.
25552         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25553         (CMPLXF64X): Likewise.
25554         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25555         (CMPLXF128X): Likewise.
25557         * math/math.h
25558         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25559         (__MATH_EVAL_FMT2): Define to add 0.0f.
25561 2017-10-31  Alan Modra  <amodra@gmail.com>
25563         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25564         include sysdep.h.
25565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25573         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25575         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25577         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25579         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25580         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25581         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25582         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25583         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25584         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25585         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25586         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25587         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25588         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25589         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25590         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25591         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25592         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25593         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25594         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25595         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25596         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25597         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25598         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25599         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25600         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25601         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25602         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25603         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25604         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25605         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25606         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25607         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25608         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25609         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25610         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25611         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25612         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25613         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25614         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25615         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25616         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25617         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25618         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25619         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25620         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25621         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25622         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25623         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25624         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25625         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25626         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25627         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25628         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25629         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25630         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25631         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25632         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25633         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25636         include sysdep.h and math_ldbl_opt.h.
25638         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25639         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
25640         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25641         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25642         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25648         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25652         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25653         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25665 2017-10-31  Alan Modra  <amodra@gmail.com>
25667         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25668         string/strncase_l.c, not string/strncase.c.
25669         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25670         (libc_hidden_def): Redefine.
25672 2017-10-31  Alan Modra  <amodra@gmail.com>
25674         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25675         (__STRCMP, STRCMP, __strcasecmp_l): Define.
25676         (__strcasecmp): Don't define.
25678 2017-10-31  Alan Modra  <amodra@gmail.com>
25680         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25681         IS_IN (libc).
25682         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25683         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25684         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25686 2017-10-31  Alan Modra  <amodra@gmail.com>
25688         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25689         USE_AS_STPNCPY.
25691 2017-10-31  Alan Modra  <amodra@gmail.com>
25693         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25694         Redefine only when SHARED.
25696 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
25698         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25699         Include <bits/math-finite.h> with appropriate macros defined and
25700         undefined.
25701         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25702         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25703         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25704         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25705         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25707         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25708         [!_Mlong_double_] (_Mlong_double_): Likewise.
25709         [!_Mfloat16_] (_Mfloat16_): Likewise.
25710         [!_Mfloat32_] (_Mfloat32_): Likewise.
25711         [!_Mfloat64_] (_Mfloat64_): Likewise.
25712         [!_Mfloat128_] (_Mfloat128_): Likewise.
25713         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25714         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25715         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25716         (_Mdouble_): Define without indirection through those macros.
25717         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25718         [!_Mfloat128_] (_Mfloat128_): Likewise.
25719         [_Mlong_double_] (_Mlong_double_): Likewise.
25720         (_Mdouble_): Define without indirection through those macros.
25721         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25722         not add -D_Mlong_double_=double.
25723         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25724         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25726 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25728         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25730 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25732         * sysdeps/x86/libc-start.c: Reformat.
25734 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25736         [BZ #22353]
25737         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25738         (1): Renamed to ...
25739         (L(Src0)): This.
25740         (L(Src1)): New.
25741         (L(Src2)): Likewise.
25742         (L(1)): Renamed to ...
25743         (L(Src3)): This.
25745 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
25747         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25748         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25749         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25750         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25751         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25752         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25753         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25754         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25755         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25756         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25757         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25758         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25759         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25760         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25761         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25762         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25763         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25764         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25765         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25766         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25767         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25768         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25769         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25770         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25771         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25772         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25773         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25774         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25775         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25776         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25777         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25778         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25779         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25780         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25781         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25782         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25783         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25784         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25785         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25786         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25787         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25788         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25789         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25790         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25791         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25792         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25793         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25794         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25795         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25796         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25797         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25798         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25799         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25800         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25801         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25802         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25803         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25804         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25805         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25806         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25807         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25808         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25809         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25810         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25811         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25812         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25814 2017-10-30  Florian Weimer  <fweimer@redhat.com>
25816         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25817         always defined.
25818         * io/tst-mkdirat.c (do_test): Likewise.
25819         * io/tst-mkfifoat.c (do_test): Likewise.
25820         * io/tst-mknodat.c (do_test): Likewise.
25821         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25822         * locale/programs/locale.c (select_dirs): Likewise.
25823         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25824         * posix/bug-glob2.c (my_readdir): Likewise.
25825         * posix/tst-dir.c (main): Likewise.
25826         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25827         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25829 2017-10-30  Florian Weimer  <fweimer@redhat.com>
25831         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25832         just __USE_GNU.
25834 2017-10-30  Florian Weimer  <fweimer@redhat.com>
25836         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25837         Convert to support/test-driver.c.
25838         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25839         New macro parameters.
25840         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
25841         * posix/tst-gnuglob.c: New file.
25842         * posix/tst-gnuglob64.c: Likewise.
25843         * posix/Makefile (tests): Add tst-gnuglob64.
25845 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
25847         [BZ #19485]
25848         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25849         and use a better translation for March in “mon”.
25850         * localedata/locales/csb_PL: Use more ASCII to improve the
25851         readability of the source.
25853 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
25855         [BZ #13953]
25856         * localedata/locales/km_KH: Use ASCII as much
25857         as possible for better readability of the source and
25858         remove useless comments.
25859         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25860         was commented out and apparently wrong anyway because it was
25861         using Lao characters. If Buddhist era should be used
25862         for km_KH, a native speaker should write the correct formaat
25863         for Khmer.
25864         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25865         (According to CLDR, the first weekday for Cambodia is Sunday).
25866         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25867         (These were using Lao characters which must be wrong. If we get
25868         the correct data from a native speaker, we could add it back, until
25869         then it is better not to have name_mr and name_mrs at all than
25870         having it wrong).
25872 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
25874         * locale/loadlocale.c: Correct size of
25875         _nl_value_type_LC_<category> arrays.
25877 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
25879         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25880         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25881         with appropriate macros defined and undefined.
25882         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25883         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25884         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25885         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25886         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25888 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
25890         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25891         "-O2 -march=i586".
25893 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
25895         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25896         with lowercase letters to make it agree with CLDR.
25898 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
25900         [BZ #15260]
25901         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25902         first letters of yesstr and nostr in yesexpr and noexpr,
25903         not for the full words.
25904         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25905         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25906         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25907         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25908         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25909         first letters of yesstr and nostr in yesexpr and noexpr,
25910         until now only English was matched in yesexpr and noexpr.
25911         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25912         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25913         fil but not for tl. As tl and fil are very similar, using fil
25914         is probably better than using English.
25916 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
25918         [BZ #21706]
25919         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25920         in yesstr and nostr.
25922 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
25924         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25925         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25926         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25927         Likewise.
25928         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25929         Likewise.
25930         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25931         Likewise.
25932         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25933         Likewise.
25934         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25935         (SNANF128X): Likewise.
25937         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25938         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25939         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25940         (HUGE_VAL_F32): Likewise.
25941         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25942         (HUGE_VAL_F64): Likewise.
25943         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25944         (HUGE_VAL_F32X): Likewise.
25945         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25946         (HUGE_VAL_F64X): Likewise.
25947         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25948         (HUGE_VAL_F128X): Likewise.
25950 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
25952         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25953         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25954         for the br_FR locale.
25956 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
25958         [BZ #21706]
25959         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25961 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
25963         * locale/programs/record-status.h: Define globals, and function
25964         prototypes. Move function bodies...
25965         * locale/programs/record-status.c: ... to here. New file.
25966         * iconv/Makefile (iconv_prog-modules): Add record-status.
25967         * locale/Makefile (lib-modules): Likewise.
25968         * iconv/iconv_prog.c: Remove verbose.
25969         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25970         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25971         record a warning about ASCII compatibility.
25972         * locale/programs/ld-monetary.c (monetary_finish): If
25973         warn_int_curr_symbol is true then record a warning about the symbol
25974         not being in our ISO 4217 list.
25975         * locale/programs/locale.c: Include record-status.h. Remove verbose.
25976         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25977         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25978         (OPT_NO_WARN): Define.
25979         (OPT_WARN): Define.
25980         (options): Add entry for --no-warnings, and --warnings.
25981         (set_warnings): New function to enable/disable warnings.
25982         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25983         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25984         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25985         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25986         Pass flags to generate_locale.
25987         (generate_locale): Accept new flag argument and pass it to localedef
25988         invocation.
25989         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25990         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25992         * localedata/Makefile (test-input-data): Use full file name.
25993         * localedata/da_DK.in: Rename to...
25994         * localedata/da_DK.ISO-8859-1.in: ...this.
25995         * localedata/de_DE.in: Rename to...
25996         * localedata/de_DE.ISO-8859-1.in: ...this.
25997         * localedata/en_US.in: Rename to...
25998         * localedata/en_US.ISO-8859-1.in: ...this.
25999         * localedata/fr_FR.in: Rename to...
26000         * localedata/fr_FR.UTF-8.in: ... this.
26001         * localedata/hr_HR.in: Rename to...
26002         * localedata/hr_HR.ISO-8859-2.in: ...this.
26003         * localedata/hu_HU.in: Rename to...
26004         * localedata/hu_HU.UTF-8.in: ...this.
26005         * localedata/si_LK.in: Rename to...
26006         * localedata/si_LK.UTF-8.in: ...this.
26007         * localedata/sv_SE.in: Rename to...
26008         * localedata/sv_SE.ISO-8859-1.in: ...this.
26009         * localedata/tr_TR.in: Rename to...
26010         * localedata/tr_TR.UTF-8.in: ...this.
26011         * localedata/uk_UA.in: Rename to...
26012         * localedata/uk_UA.UTF-8.in: ...this.
26013         * localedata/sort-test.sh: Test file is locale name with the
26014         suffix.
26016         * localedata/unicode-gen/Makefile (check_i18n): Rename to
26017         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26018         file.
26019         * localedata/locales/i18n_ctype: Regenerate.
26020         * localedata/locales/tr_TR: Likewise.
26021         * localedata/locales/translit_circle: Likewise.
26022         * localedata/locales/translit_cjk_compat: Likewise.
26023         * localedata/locales/translit_combining: Likewise.
26024         * localedata/locales/translit_compat: Likewise.
26025         * localedata/locales/translit_font: Likewise.
26026         * localedata/locales/translit_fraction: Likewise.
26028 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26030         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26031         lxvd2x/stxvd2x with lvx/stvx.
26032         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26034 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
26036         * include/alloc_buffer.h: Replace "if if " with "if " in
26037         comments.
26038         * sysdeps/mips/memcpy.S: Likkewise.
26039         * sysdeps/mips/memset.S: Likewise.
26040         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26041         Likewise.
26042         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26043         Likewise.
26044         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26045         Likewise.
26047 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26049         [BZ #15261]
26050         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26051         yesexpr and noexpr.
26052         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26053         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26054         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26055         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26056         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26057         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26058         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26060 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26062         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26063         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26064         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26065         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26066         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26067         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26068         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26069         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26070         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26071         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26072         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26073         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26075 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26077         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26078         as possible for better readability of the source.
26079         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26080         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26081         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26082         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26083         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26084         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26085         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26086         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26087         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26088         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26089         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26090         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26091         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26092         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26093         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26094         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26095         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26096         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26097         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26098         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26099         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26100         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26101         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26102         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26103         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26104         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26105         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26106         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26107         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26108         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26109         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26110         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26111         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26112         * localedata/locales/en_US (LC_MESSAGES): Likewise.
26113         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26114         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26115         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26116         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26117         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26118         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26119         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26120         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26121         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26122         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26123         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26124         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26125         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26126         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26127         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26128         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26129         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26130         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26131         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26132         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26133         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26134         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26135         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26136         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26137         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26138         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26139         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26140         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26141         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26142         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26143         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26144         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26145         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26146         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26147         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26148         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26149         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26150         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26151         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26152         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26153         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26154         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26155         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26156         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26157         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26158         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26159         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26160         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26161         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26162         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26163         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26164         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26165         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26166         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26167         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26168         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26169         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26170         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26171         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26172         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26173         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26174         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26175         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26176         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26177         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26178         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26179         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26180         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26181         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26182         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26183         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26184         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26185         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26186         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26187         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26188         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26189         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26190         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26191         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26192         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26193         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26194         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26195         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26196         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26197         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26198         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26199         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26200         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26201         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26202         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26203         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26204         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26205         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26206         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26207         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26208         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26209         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26210         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26211         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26212         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26213         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26214         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26215         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26216         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26217         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26218         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26219         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26220         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26221         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26222         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26223         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26224         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26225         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26226         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26227         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26228         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26229         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26230         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26231         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26232         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26233         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26234         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26235         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26236         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26237         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26238         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26239         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26240         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26241         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26242         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26243         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26244         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26245         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26246         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26247         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26248         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26249         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26250         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26251         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26252         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26254 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26256         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26257         (Use first letters of yesstr and nostr correctly instead of using
26258         full words).
26260 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26262         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26263         (Use first letters of yesstr and nostr correctly).
26265 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26267         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26268         also check for the first characters of yesstr and nostr.
26269         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26270         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26272 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26274         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26275         also check for Chinese characters.
26277 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26279         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26280         match also for the contents of yesstr and nostr. As the first letter
26281         of yesstr and nostr is equal, checking only for the first letter
26282         is not enough.
26284 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26286         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26287         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
26289 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26291         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26292         of main contributor.
26294 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26296         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26297         instead of using English.
26299 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26301         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26302         by including the first letters of nostr and yesexpr in the regexp.
26303         Also make it more readable by using ASCII where possible.
26305 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26307         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26308         the first letter of nostr in the regexp. It agrees with CLDR now.
26309         Also make it more readable by using ASCII where possible.
26311 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26313         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26314         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26315         these strings contain a U+17D6 (which somewhat looks like a colon)
26316         instead of a real colon to separate the full words for “yes”
26317         and “no” from the single letter responses.
26319 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26321         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26322         it agree with CLDR (include the first letter of yesstr).
26323         Also make it more readable by using ASCII where possible.
26325 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26327         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26328         and improve yesexpr and noexpr. The yesstr and nostr apparently
26329         came from CLDR. And CLDR has a bug there: these strings contain
26330         a U+0903 (which looks like a colon) instead of a real colon
26331         to separate the full words for “yes” and “no” from the single
26332         letter responses.
26334 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26336         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26337         letters of the full yesstr and nostr in yesexpr and noexpr.
26339 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26341         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26342         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26343         * localedata/locales/an_ES: Make source more readable by using ASCII
26344         where possible.
26346 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26348         [BZ #20952]
26349         * localedata/locales/yuw_PG: New file.
26350         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26351         * locale/iso-639.def: Add Yau (Uruwa).
26353 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26355         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26357 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26359         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26360         (__libc_realloc): Likewise.
26361         (_mid_memalign): Likewise.
26362         (__libc_calloc): Likewise.
26364 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
26366         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26367         by adding the generic +1 and -0 as in all other locales.
26368         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26369         day names and make it more readable by using ASCII where possible.
26371 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
26373         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26374         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26376 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26378         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26379         WNOHANG in waitpid call.
26381 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26383         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26384         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26386         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26387         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26388         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26389         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26390         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26391         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26392         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26393         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26394         variables.
26396 2017-10-23  Michael Collison  <michael.collison@arm.com>
26398         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26399         with __builtin_sqrt.
26400         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26401         with __builtin_sqrtf.
26402         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26403         with __builtin_ceil.
26404         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26405         with __builtin_ceilf.
26406         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26407         with __builtin_floor.
26408         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26409         with __builtin_floorf.
26410         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26411         with __builtin_fma.
26412         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26413         with __builtin_fmaf.
26414         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26415         with __builtin_fmax.
26416         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26417         with __builtin_fmaxf.
26418         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26419         with __builtin_fmin.
26420         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26421         with __builtin_fminf.
26422         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26423         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26424         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26425         with builtin_rint and conversion to int.
26426         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26427         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26428         with builtin_llround.
26429         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26430         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26431         with builtin_rint and conversion to long int.
26432         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26433         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26434         with builtin_lround.
26435         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26436         with builtin_lroundf.
26437         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26438         statements with __builtin_nearbyint.
26439         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26440         statements with __builtin_nearbyintf.
26441         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26442         with __builtin_rint.
26443         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26444         with __builtin_rintf.
26445         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26446         with __builtin_round.
26447         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26448         with __builtin_roundf.
26449         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26450         with __builtin_trunc.
26451         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26452         with __builtin_truncf.
26453         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26454         and s_l[l]round[f].c too.
26456 2017-10-23  Alan Modra  <amodra@gmail.com>
26458         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26459         Adjust stack after restoring regs.  Add missing LR cfi_restore.
26461 2017-10-23  Alan Modra  <amodra@gmail.com>
26463         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26464         Move LR save and frame setup/teardown and LR restore to
26465         immediately around memset call.  Provide cfi.
26467 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26469         * sysdeps/i386/fpu/e_powf.S: Removed.
26470         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26471         * sysdeps/i386/fpu/w_powf.c: Likewise.
26472         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26473         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26474         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26475         Add e_powf-sse2.
26476         (CFLAGS-e_powf-sse2.c): New.
26477         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26478         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26480 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26482         * sysdeps/i386/fpu/e_log2f.S: Removed.
26483         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26484         * sysdeps/i386/fpu/w_log2f.c: Likewise.
26485         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26486         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26487         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26488         Add e_log2f-sse2.
26489         (CFLAGS-e_log2f-sse2.c): New.
26490         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26491         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26493 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26495         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26496         Add e_powf-fma.
26497         (CFLAGS-e_powf-fma.c): New.
26498         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26499         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26501 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26503         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26504         Add e_log2f-fma.
26505         (CFLAGS-e_log2f-fma.c): New.
26506         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26507         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26509 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26511         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26512         Add e_logf-fma.
26513         (CFLAGS-e_logf-fma.c): New.
26514         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26515         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26517 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26519         * sysdeps/i386/fpu/e_logf.S: Removed.
26520         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26521         * sysdeps/i386/fpu/w_logf.c: Likewise.
26522         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26523         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26524         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26525         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26526         Add e_logf-sse2.
26527         (CFLAGS-e_logf-sse2.c): New.
26528         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26529         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26531 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26533         * sysdeps/i386/fpu/e_exp2f.S: Removed.
26534         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26535         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26536         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26537         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26538         Add e_exp2f-sse2.
26539         (CFLAGS-e_exp2f-sse2.c): New.
26540         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26541         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26543 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26545         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26546         Add e_exp2f-fma.
26547         (CFLAGS-e_exp2f-fma.c): New.
26548         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26549         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26551 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26553         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26554         * sysdeps/i386/fpu/e_expf.S: Likewise.
26555         * sysdeps/i386/fpu/math_errf.c: Likewise.
26556         * sysdeps/i386/fpu/w_expf.c: Likewise.
26557         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26558         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26559         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26560         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26561         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26562         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26563         Remove e_expf-ia32.
26564         (CFLAGS-e_expf-sse2.c): New.
26565         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26566         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26568 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26570         * sysdeps/x86_64/fpu/e_expf.S: Removed.
26571         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26572         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26573         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26574         e_expf.c.
26575         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26576         New.
26577         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26578         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26579         Renamed to ...
26580         (__redirect_expf): This.
26581         (SYMBOL_NAME): Changed to expf.
26582         (__ieee754_expf): Renamed to ...
26583         (__expf): This.
26584         (__GI___expf): This.
26585         (__ieee754_expf): Add strong_alias.
26586         (__expf_finite): Likewise.
26587         (__expf): New.
26588         Include <sysdeps/ieee754/flt-32/e_expf.c>.
26590 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26592         [BZ #22332]
26593         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26594         unescaping.
26596 2017-10-21  Florian Weimer  <fweimer@redhat.com>
26598         * posix/Makefile (tests): Add tst-glob-tilde.
26599         (tests-special): Add tst-glob-tilde-mem.out
26600         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26601         (tst-glob-tilde-mem.out): Add mtrace check.
26602         * posix/tst-glob-tilde.c: New file.
26604 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
26606         * bits/floatn-common.h: New file.
26607         * math/Makefile (headers): Add bits/floatn-common.h.
26608         * bits/floatn.h: Include <bits/floatn-common.h>.
26609         * sysdeps/ia64/bits/floatn.h: Likewise.
26610         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26611         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26612         * sysdeps/powerpc/bits/floatn.h: Likewise.
26613         * sysdeps/x86/bits/floatn.h: Likewise.
26615 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26617         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26618         indicates whether compiler emits an warning for alias for
26619         functions with incompatible types.
26621         [BZ #22273]
26622         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26623         the auxiliary process is terminated by a signal before calling _exit
26624         or execve.
26626 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26628         [BZ #21265]
26629         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26630         New.
26631         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26632         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26633         and bit_arch_XSAVEC_Usable if needed.
26634         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26635         and bit_arch_Use_dl_runtime_resolve_opt.
26636         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26637         Removed.
26638         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26639         (bit_arch_Prefer_No_AVX512): Updated.
26640         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26641         (bit_arch_XSAVEC_Usable): New.
26642         (STATE_SAVE_OFFSET): Likewise.
26643         (STATE_SAVE_MASK): Likewise.
26644         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26645         (cpu_features): Add xsave_state_size and xsave_state_full_size.
26646         (index_arch_Use_dl_runtime_resolve_opt): Removed.
26647         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26648         (index_arch_XSAVEC_Usable): New.
26649         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26650         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
26651         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26652         is enabled.
26653         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26654         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26655         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26656         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26657         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26658         _dl_runtime_resolve_xsavec.
26659         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26660         Removed.
26661         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26662         instead of VEC_SIZE.
26663         (REGISTER_SAVE_BND0): Removed.
26664         (REGISTER_SAVE_BND1): Likewise.
26665         (REGISTER_SAVE_BND3): Likewise.
26666         (REGISTER_SAVE_RAX): Always defined to 0.
26667         (VMOV): Removed.
26668         (_dl_runtime_resolve_avx): Likewise.
26669         (_dl_runtime_resolve_avx_slow): Likewise.
26670         (_dl_runtime_resolve_avx_opt): Likewise.
26671         (_dl_runtime_resolve_avx512): Likewise.
26672         (_dl_runtime_resolve_avx512_opt): Likewise.
26673         (_dl_runtime_resolve_sse): Likewise.
26674         (_dl_runtime_resolve_sse_vex): Likewise.
26675         (USE_FXSAVE): New.
26676         (_dl_runtime_resolve_fxsave): Likewise.
26677         (USE_XSAVE): Likewise.
26678         (_dl_runtime_resolve_xsave): Likewise.
26679         (USE_XSAVEC): Likewise.
26680         (_dl_runtime_resolve_xsavec): Likewise.
26681         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26682         Removed.
26683         (_dl_runtime_resolve_avx512_opt): Likewise.
26684         (_dl_runtime_resolve_avx): Likewise.
26685         (_dl_runtime_resolve_avx_opt): Likewise.
26686         (_dl_runtime_resolve_sse): Likewise.
26687         (_dl_runtime_resolve_sse_vex): Likewise.
26688         (_dl_runtime_resolve_fxsave): New.
26689         (_dl_runtime_resolve_xsave): Likewise.
26690         (_dl_runtime_resolve_xsavec): Likewise.
26692 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26694         [BZ #22320]
26695         CVE-2017-15670
26696         * posix/glob.c (__glob): Fix one-byte overflow.
26698 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
26700         * malloc/malloc.c (sysdep-cancel.h): Add include.
26702 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
26704         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26706 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
26708         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26709         (tests): Remove $(objpfx)ga_test depdendency.
26710         * resolv/ga_test.c: Remove file.
26712 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
26714         [BZ #18812]
26715         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26716         * localedata/locales/kab_DZ: New file.
26718 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26720         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26721         _dl_relocate_static_pie instead of _dl_start to compute load
26722         address in static PIE.
26724 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26726         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26728 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
26730         [BZ #13605]
26731         * localedata/SUPPORTED: Add shn_MM/UTF-8.
26732         * localedata/locales/shn_MM: New file.
26734 2017-10-20  Florian Weimer  <fweimer@redhat.com>
26736         [BZ #22321]
26737         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26738         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26739         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26740         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26741         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26742         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26744 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
26746         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26748 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
26750         * sysdeps/mips/ieee754/bits/floatn.h: New file.
26752         [BZ #22322]
26753         * sysdeps/mips/bits/long-double.h: Move to ....
26754         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26756 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
26758         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26760 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
26761             H.J. Lu  <hongjiu.lu@intel.com>
26763         [BZ #22299]
26764         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26765         GLRO(dl_platform) to NULL.
26766         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26767         (modules-names): Add tst-platformmod-1 and
26768         x86_64/tst-platformmod-2.
26769         (CFLAGS-tst-platform-1.c): New.
26770         (CFLAGS-tst-platformmod-1.c): Likewise.
26771         (CFLAGS-tst-platformmod-2.c): Likewise.
26772         (LDFLAGS-tst-platformmod-2.so): Likewise.
26773         ($(objpfx)tst-platform-1): Likewise.
26774         ($(objpfx)tst-platform-1.out): Likewise.
26775         (tst-platform-1-ENV): Likewise.
26776         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26777         * sysdeps/x86_64/tst-platform-1.c: New file.
26778         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26779         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26781 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
26783         [BZ #13994]
26784         * locale/iso-639.def: Add Karbi.
26785         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26786         * localedata/locales/mjw_IN: New file.
26788 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
26790         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26791         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26792         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26793         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26794         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26795         (libm_alias_ldouble_other_r): Also create _Float128 alias.
26796         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26797         <bits/floatn.h>.
26798         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26799         (libm_alias_ldouble_other_r): Also create _Float128 alias.
26800         * manual/math.texi (Mathematics): Document additional architecture
26801         support for _Float128.
26802         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26803         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26804         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26805         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26806         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26807         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26808         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26809         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26810         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26811         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26812         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26813         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26814         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26815         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26816         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26818 2017-10-18  Renlin Li  <renlin.li@arm.com>
26820         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26821         _DYNAMIC symbol to calculate load address.
26823 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
26825         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26826         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26827         summary bits.
26828         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26829         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26831 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
26833         [BZ #16777]
26834         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26835         and improve readability by using more ASCII.
26836         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26837         and improve readability by using more ASCII.
26839 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
26841         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26842         not all targets support atomics on bool.
26844 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
26846         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26847         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26848         __f128.
26849         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26850         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26851         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26852         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26853         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26854         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26856 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26858         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26859         defines.
26861 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
26863         [BZ #22159]
26864         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26865         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26866         (do_check_remalloced_chunk): Fix build bug.
26867         (do_check_malloc_state): Add assert that checks arena->top.
26868         (malloc_consolidate): Remove initialization.
26869         (int_mallinfo): Remove call to malloc_consolidate.
26870         (__libc_mallopt): Clarify why malloc_consolidate is needed.
26872 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
26874         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26875         (have_fastchunks): Remove.
26876         (clear_fastchunks): Remove.
26877         (set_fastchunks): Remove.
26878         (malloc_state): Add have_fastchunks.
26879         (malloc_init_state): Use have_fastchunks.
26880         (do_check_malloc_state): Remove incorrect invariant checks.
26881         (_int_malloc): Use have_fastchunks.
26882         (_int_free): Likewise.
26883         (malloc_consolidate): Likewise.
26885 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
26887         * malloc/malloc.c (tcache_put): Inline.
26888         (tcache_get): Inline.
26890 2017-10-17  Jordi Mallach  <jordi@gnu.org>
26892         Aurelien Jarno  <aurelien@aurel32.net>
26893         [BZ #2522]
26894         * localedata/locales/ca_ES@valencia: New file.
26895         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26897 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
26899         [BZ #22296]
26900         * math/math.h: Let signbit use the builtin in C++ mode with gcc
26901         < 6.x
26903 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26905         * scripts/build-many-glibcs.py (Context.add_all_configs):
26906         Add arm-linux-gnueabihf multiarch extra_glibcs.
26908         * sysdeps/generic/ifunc-init.h: New file.
26909         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26911 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
26913         [BZ #22019]
26914         * localedata/locales/el_GR: Set n_cs_precedes to 0.
26915         * localedata/locales/el_CY: copy "el_GR" because it is identical.
26916         * stdlib/tst-strfmon_l.c: adapt test case.
26918 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
26920         * sysdeps/generic/float128-abi.h: New file.
26921         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26922         non-__prefixed symbols to ....
26923         * math/Versions: ... here.  Include <float128-abi.h>.
26924         * stdlib/Versions ... and here.  Include <float128-abi.h>
26926 2017-10-16  Florian Weimer  <fweimer@redhat.com>
26928         * version.h (VERSION): Switch to ".9000" as the development
26929         version suffix.
26931 2017-10-16  Florian Weimer  <fweimer@redhat.com>
26933         [BZ #22050]
26934         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26935         compat_symbol_reference to access non-default version.
26937 2017-10-16  Florian Weimer  <fweimer@redhat.com>
26939         * malloc/Makefile (others-extras): Set to mcheck-init.o.
26941 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
26943         * include/shlib-compat.h (compat_symbol_reference): Update
26944         comment.
26946 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
26948         * math/Makefile (test-types): Add
26949         $(type-float128-$(float128-alias-fcts)).
26950         * math/test-float128.h (TYPE_STR): Define conditional on
26951         [FLT128_MANT_DIG == LDBL_MANT_DIG].
26952         (ULP_IDX): Likewise.
26953         (ULP_I_IDX): Likewise.
26955         * stdlib/strtold.c: Include <bits/floatn.h>
26956         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26957         and later undefine as macro.  Define as weak alias if
26958         [!USE_WIDE_CHAR].
26959         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26960         and later undefine as macro.  Define as weak alias if
26961         [USE_WIDE_CHAR].
26962         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26963         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26964         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
26965         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26966         Define and later undefine as macro.  Define as weak alias if
26967         [USE_WIDE_CHAR].
26968         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26969         <bits/floatn.h>.
26970         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26971         Define and later undefine as macro.  Define as weak alias if
26972         [!USE_WIDE_CHAR].
26973         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26974         Define and later undefine as macro.  Define as weak alias if
26975         [USE_WIDE_CHAR].
26977 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
26979         * localedata/collate-test.c (allocate_arrays): Don't use \n in
26980         record_verbose messages.
26982 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
26984         [BZ #22052]
26985         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26986         to silence -O3 -Wall warning with GCC 7.
26988 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
26990         * Makeconfig (+link-static-before-libc): Use the first of
26991         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26992         * gmon/Makefile (tests): Add tst-gmon-static.
26993         (tests-static): Likewise.
26994         (CFLAGS-tst-gmon-static.c): New.
26995         (CRT-tst-gmon-static): Likewise.
26996         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26997         (tst-gmon-static-ENV): Likewise.
26998         (tests-special): Likewise.
26999         ($(objpfx)tst-gmon-static.out): Likewise.
27000         (clean-tst-gmon-static-data): Likewise.
27001         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27002         * gmon/tst-gmon-static-gprof.sh: New file.
27003         * gmon/tst-gmon-static.c: Likewise.
27005 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
27007         [BZ #22295]
27008         * locale/programs/linereader.c (get_string): Don't warn on
27009         non-symbolic character.
27011         [BZ #22294]
27012         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27013         int_curr_symbol.
27015         [BZ #22292]
27016         * locale/programs/record-status.h: New file
27017         * locale/programs/locale.c: Add comment.
27018         * locale/programs/charmap-dir.c: Don't include error.h.
27019         (charmap_opendir): Use record_error.
27020         * locale/programs/charmap.c: Don't include error.h.
27021         (charmap_read): Use record_error, and record_warning.
27022         (parse_charmap): Likewise.
27023         * locale/programs/ld-address.c: Don't include error.h.
27024         (address_finish): Use record_error, and record_warning.
27025         * locale/programs/ld-collate.c: Don't include error.h.
27026         (collate_finish): Use record_error, and record_error_at_line.
27027         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27028         (ctype_class_new): Likewise.
27029         (ctype_map_new): Likewise.
27030         (set_one_default): Likewise.
27031         (set_class_defaults): Likewise.
27032         (translit_flatten): Likewise.
27033         (allocate_arrays): Use record_error, and record_verbose.
27034         * locale/programs/ld-identification.c: Don't include error.h.
27035         (indentation_finish): Use record_error and record_warning.
27036         * locale/programs/ld-measurement.c: Don't include error.h.
27037         (measurement_finish): Use record_error.
27038         * locale/programs/ld-messages.c
27039         (message_finish): Likewise.
27040         * locale/programs/ld-monetary.c
27041         (monetary_finish): Likewise.
27042         * locale/programs/ld-name.c (name_finish): Use record_error
27043         and record_warning.
27044         * locale/programs/ld-numeric.c
27045         (numeric_finish): Use record_error.
27046         * locale/programs/ld-paper.c: Don't include error.h.
27047         (paper_finish): Use record_error.
27048         * locale/programs/ld-telephone.c: Don't include error.h.
27049         (telephone_finish): Use record_error.
27050         * locale/programs/ld-time.c (time_finish): Likewise.
27051         * locale/programs/linereader.h (lr_error): Make inline func.
27052         * locale/programs/localedef.c: Define recorded_warning_count,
27053         and recorded_error_count.
27054         (main): Use record_error. Use recorded_error_count and
27055         recorded_warning_count to issue correct error returns.
27056         (add_to_readlist): Use record_error.
27057         (find_locale): Likewise.
27058         (load_locale): Likewise.
27059         * locale/programs/localedef.h: Remove be_quiet
27060         and WITH_CUR_LOCALE.
27061         * locale/programs/locarchive.c (compare_from_file): Use
27062         record_error.
27063         * locale/programs/locfile.c (write_locale_data): Use
27064         record_error.
27065         * locale/programs/repertoire.c: Dont include error.h.
27066         (repertoire_complain): Use record_error.
27067         * localedata/tst-fmon.sh: Expect failures from localedef.
27068         * localedata/tst-locale.sh: Likewise.
27069         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27071         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27072         (REPORTS): Likewise.
27073         (check): Likewise.
27074         (i18n): Rename to...
27075         (i18n_ctype): ...this.
27076         (i18n-report): Rename to...
27077         (i18n_ctype-report): ...this.
27078         * localedata/locales/i18n_ctype: Regenerate.
27079         * localedata/locales/i18n: copy i18n_ctype.
27081 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27083         * stdlib/strfroml.c: Include <bits/floatn.h>.
27084         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27085         Define before include of <stdlib.h> and undefine afterwards, then
27086         define as weak alias.
27088         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27089         Undefine and restore default definition.  Use
27090         libm_alias_ldouble_other.
27092 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
27094         [BZ #22153]
27095         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27096         in coredumps.
27098 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
27100         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27101         Assign sym_map to be map for local symbols, as TLS relocations
27102         use sym_map to determine whether the symbol is defined and to
27103         extract the TLS information.
27104         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27105         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27107 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27109         [BZ #22189]
27110         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27111         (math_force_eval): Add powerpc version.
27113         [BZ #22142]
27114         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27115         -DBL_MAX.
27116         (do_test): Likewise.
27117         * stdio-common/tst-printf.sh: Likewise.
27118         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27119         ifdef clause in order to set the carry bit right.  Replace r0 by
27120         0 without changing the behavior.
27122 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27124         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27125         <libm-alias-ldouble.h>.
27126         (fabsl): Define using libm_alias_ldouble.
27127         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27128         <libm-alias-ldouble.h>.
27129         (fabsl): Define using libm_alias_ldouble.
27131         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27132         Remove conditional code.
27134         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27135         Rename to __clog10_internal_l.
27136         (__clog10_internal_l): Define aliases using
27137         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27138         with __clog10.
27140 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27142         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
27143         * benchtests/sincosf-inputs: New file.
27144         * benchtests/cosf-inputs: New file.
27145         * benchtests/sinf-inputs: New file.
27147 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27149         * posix/tst-spawn.c (do_test): Wait for both children.
27151 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27153         [BZ #22284]
27154         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27155         tests-pie): Add tst-gmon-pie.
27156         (CFLAGS-tst-gmon-pie.c): New.
27157         (CRT-tst-gmon-pie): Likewise.
27158         (tst-gmon-pie-ENV): Likewise.
27159         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27160         ($(objpfx)tst-gmon-pie.out): Likewise.
27161         (clean-tst-gmon-pie-data): Likewise.
27162         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27163         * gmon/gmon.c [PIC]: Include <link.h>.
27164         [PIC] (callback): New function.
27165         (write_hist): Add an argument for load address.  Subtract load
27166         address from PCs.
27167         (write_call_graph): Likewise.
27168         (write_gmon): Call __dl_iterate_phdr to get load address, pass
27169         it to write_hist and write_call_graph.
27170         * gmon/tst-gmon-pie.c: New file.
27172 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
27174         * math/Makefile (test-types-basic): New variable.
27175         (test-types): Likewise.
27176         (libm-test-support): Use $(test-types) instead of $(types).
27177         (libm-tests-base-normal): Likewise.
27178         (libm-tests-base-finite): Likewise.
27179         (libm-tests-base-inline): Likewise.
27180         (generated): Likewise.
27181         ($(objpfx)libm-test-support-$(t).c): Likewise.
27182         (libm-tests-for-type iterator): Likewise.
27183         (libm-test-support iterator): Likewise.
27184         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27185         (ulp_idx): Use ULP_IDX.
27186         * math/test-ldouble.h: Include <float.h>.
27187         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27188         (ULP_IDX): New macro.
27189         (ULP_I_IDX): Likewise.
27190         * math/test-double.h (ULP_IDX): Likewise.
27191         (ULP_I_IDX): Likewise.
27192         * math/test-float.h (ULP_IDX): Likewise.
27193         (ULP_I_IDX): Likewise.
27194         * math/test-float128.h (ULP_IDX): Likewise.
27195         (ULP_I_IDX): Likewise.
27197 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27199         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27200         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27201         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27202         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27203         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27204         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27205         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27206         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27207         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27208         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27209         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27210         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27211         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27212         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27213         (SINGLE_THREAD_BY_GLOBAL): Define.
27214         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27215         Likewise.
27216         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27217         Likewise.
27218         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27219         Likewise.
27220         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27221         Likewise.
27222         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27223         (SINGLE_THREAD_BY_GLOBAL): Likewise.
27224         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27225         Likewise.
27227 2017-10-11  Andreas Schwab  <schwab@suse.de>
27229         * nis/Makefile (aux): Remove.
27230         * nscd/Makefile (aux): Add nscd_hash.
27231         (nscd-modules): Likewise.
27232         ($(objpfx)nscd): Don't depend on libnsl.
27233         * nscd/nscd_hash.c: New file.
27234         * nscd/nscd_hash.h: Likewise.
27235         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27236         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27237         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27238         instead of <nis/rpcsvc/nis.h>.
27239         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27241 2017-10-11  Florian Weimer  <fweimer@redhat.com>
27243         [BZ #22078]
27244         Avoid large NSS buffers with many addresses, aliases.
27245         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27246         using dynarrays and struct alloc_buffer.
27247         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27248         (tst-nss-files-hosts-multi): Link with -ldl.
27249         * nss/tst-nss-files-hosts-multi.c: New file.
27251 2017-10-11  Florian Weimer  <fweimer@redhat.com>
27253         [BZ #18023]
27254         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27255         scratch_buffer.  Eliminate gotos.
27257 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
27259         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27260         libm_alias_ldouble_other.
27261         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27262         undefine and redefine.
27263         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27264         (exp10l): Do not define here.
27265         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27266         (weak_alias): Undefine and redefine.
27267         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27268         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27269         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27270         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27272         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27273         [!__fma] (fma): Define using libm_alias_double.
27274         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27275         [!__fmaf] (fmaf): Define using libm_alias_float.
27276         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27277         (fmal): Define using libm_alias_ldouble.
27279 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
27281         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27282         New macro.
27283         (libm_alias_double_other): Likewise.
27284         (libm_alias_double_r): Use libm_alias_double_other_r.
27285         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27286         New macro.
27287         (libm_alias_float_other): Likewise.
27288         (libm_alias_float_r): Use libm_alias_float_other_r.
27289         * sysdeps/generic/libm-alias-float128.h
27290         (libm_alias_float128_other_r): New macro.
27291         (libm_alias_float128_other): Likewise.
27292         (libm_alias_float128_r): Use libm_alias_float128_other_r.
27293         * sysdeps/generic/libm-alias-ldouble.h
27294         (libm_alias_ldouble_other_r): New macro.
27295         (libm_alias_ldouble_other): Likewise.
27296         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27297         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27298         (libm_alias_double_other_r): New macro.
27299         (libm_alias_double_other): Likewise.
27300         (libm_alias_double_r): Use libm_alias_double_other_r.
27301         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27302         (libm_alias_ldouble_other_r): New macro.
27303         (libm_alias_ldouble_other): Likewise.
27304         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27305         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27306         [!USE_AS_COMPAT]: Use libm_alias_double_other.
27307         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27308         [!USE_AS_COMPAT]: Use libm_alias_float_other.
27309         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27310         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27311         * math/w_exp2f.c: Use libm_alias_float_other.
27312         * math/w_expf.c: Likewise.
27313         * math/w_log2f.c: Likewise.
27314         * math/w_logf.c: Likewise.
27315         * math/w_powf.c: Likewise.
27316         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27317         [!__exp2f]: Use libm_alias_float_other.
27318         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27319         [!__expf]: Use libm_alias_float_other.
27320         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27321         [!__log2f]: Use libm_alias_float_other.
27322         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27323         [!__logf]: Use libm_alias_float_other.
27324         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27325         [!__powf]: Use libm_alias_float_other.
27327 2017-10-10  Florian Weimer  <fweimer@redhat.com>
27329         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27330         function.
27331         (_nss_files_gethostbyname3_r): Call it.
27333 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
27335         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27336         error.  Remove default definition of declare_mgen_alias.
27337         [!declare_mgen_alias_r]: Likewise.
27338         * sysdeps/generic/math-type-macros-double.h
27339         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27340         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27341         (declare_mgen_alias_r): Likewise.
27342         * sysdeps/generic/math-type-macros-float128.h
27343         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27344         * sysdeps/generic/math-type-macros-ldouble.h
27345         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27346         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27347         macro.
27348         (declare_mgen_alias_r_s): Likewise.
27349         (declare_mgen_alias_r): Likewise.
27350         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27351         (lgamma_r): Define using libm_alias_double_r.
27352         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27353         (lgammaf_r): Define using libm_alias_float_r.
27354         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27355         (lgammal_r): Define using libm_alias_ldouble_r.
27356         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27357         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27359 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27361         * lib/glob.c (__glob_pattern_type): Remove now-spurious
27362         extern declaration.
27364 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
27366         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27368 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
27370         [BZ #21326]
27371         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27372         [__cplusplus >= 201103] (__USE_ISOC99): Define.
27373         * math/Makefile (test-math-cxx11): New test.
27374         * math/test-math-cxx11.cc: New file.
27376 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
27378         * login/openpty.c (openpty): Close slave pty file descriptor on error.
27380         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27381         call to allocate the slave pty file descriptor.
27383 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
27385         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27386         [!__fma] (fma): Define using libm_alias_double.
27387         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27388         [!__fma] (fma): Define using libm_alias_double.
27390         * sysdeps/ieee754/float128/float128_private.h: Include
27391         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27392         (libm_alias_ldouble_r): Undefine and redefine.
27393         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27394         <libm-alias-ldouble.h>.
27395         (asinhl): Define using libm_alias_ldouble.
27396         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27397         <libm-alias-ldouble.h>.
27398         (atanl): Define using libm_alias_ldouble.
27399         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27400         <libm-alias-ldouble.h>.
27401         (cbrtl): Define using libm_alias_ldouble.
27402         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27403         <libm-alias-ldouble.h>.
27404         (ceill): Define using libm_alias_ldouble.
27405         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27406         <libm-alias-ldouble.h>.
27407         (copysignl): Define using libm_alias_ldouble.
27408         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27409         <libm-alias-ldouble.h>.
27410         (cosl): Define using libm_alias_ldouble.
27411         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27412         <libm-alias-ldouble.h>.
27413         (erfl): Define using libm_alias_ldouble.
27414         (erfcl): Likewise.
27415         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27416         <libm-alias-ldouble.h>.
27417         (expm1l): Define using libm_alias_ldouble.
27418         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27419         <libm-alias-ldouble.h>.
27420         (fabsl): Define using libm_alias_ldouble.
27421         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27422         <libm-alias-ldouble.h>.
27423         (floorl): Define using libm_alias_ldouble.
27424         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27425         <libm-alias-ldouble.h>.
27426         (fmal): Define using libm_alias_ldouble.
27427         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27428         <libm-alias-ldouble.h>.
27429         (frexpl): Define using libm_alias_ldouble.
27430         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27431         libm_alias_ldouble.
27432         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27433         <libm-alias-ldouble.h>.
27434         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27435         libm_alias_ldouble.
27436         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27437         <libm-alias-ldouble.h>.
27438         (getpayloadl): Define using libm_alias_ldouble.
27439         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27440         <libm-alias-ldouble.h>.
27441         (llrintl): Define using libm_alias_ldouble.
27442         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27443         <libm-alias-ldouble.h>.
27444         (llroundl): Define using libm_alias_ldouble.
27445         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27446         <libm-alias-ldouble.h>.
27447         (logbl): Define using libm_alias_ldouble.
27448         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27449         <libm-alias-ldouble.h>.
27450         (lrintl): Define using libm_alias_ldouble.
27451         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27452         <libm-alias-ldouble.h>.
27453         (lroundl): Define using libm_alias_ldouble.
27454         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27455         <libm-alias-ldouble.h>.
27456         (modfl): Define using libm_alias_ldouble.
27457         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27458         <libm-alias-ldouble.h>.
27459         (nearbyintl): Define using libm_alias_ldouble.
27460         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27461         <libm-alias-ldouble.h>.
27462         (nextafterl): Define using libm_alias_ldouble.
27463         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27464         <libm-alias-ldouble.h>.
27465         (nextupl): Define using libm_alias_ldouble.
27466         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27467         <libm-alias-ldouble.h>.
27468         (remquol): Define using libm_alias_ldouble.
27469         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27470         <libm-alias-ldouble.h>.
27471         (rintl): Define using libm_alias_ldouble.
27472         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27473         <libm-alias-ldouble.h>.
27474         (roundevenl): Define using libm_alias_ldouble.
27475         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27476         <libm-alias-ldouble.h>.
27477         (roundl): Define using libm_alias_ldouble.
27478         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27479         using libm_alias_ldouble.
27480         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27481         <libm-alias-ldouble.h>.
27482         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27483         Define using libm_alias_ldouble.
27484         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27485         <libm-alias-ldouble.h>.
27486         (sincosl): Define using libm_alias_ldouble.
27487         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27488         <libm-alias-ldouble.h>.
27489         (sinl): Define using libm_alias_ldouble.
27490         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27491         <libm-alias-ldouble.h>.
27492         (tanhl): Define using libm_alias_ldouble.
27493         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27494         <libm-alias-ldouble.h>.
27495         (tanl): Define using libm_alias_ldouble.
27496         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27497         <libm-alias-ldouble.h>.
27498         (totalorderl): Define using libm_alias_ldouble.
27499         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27500         <libm-alias-ldouble.h>.
27501         (totalordermagl): Define using libm_alias_ldouble.
27502         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27503         <libm-alias-ldouble.h>.
27504         (truncl): Define using libm_alias_ldouble.
27505         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27506         libm_alias_ldouble.
27507         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27508         libm_alias_ldouble.
27509         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27510         <libm-alias-ldouble.h>.
27511         (weak_alias): Do not undefine and redefine.
27512         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27513         (copysignl): Define with long_double_symbol only if [IS_IN
27514         (libc)].
27515         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27516         <libm-alias-ldouble.h>.
27517         (weak_alias): Do not undefine and redefine.
27518         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27519         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27520         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27521         <libm-alias-ldouble.h>.
27522         (weak_alias): Do not undefine and redefine.
27523         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27524         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27525         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27526         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27527         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27528         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27529         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27530         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27531         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27532         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27533         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27534         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27535         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27536         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27537         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27538         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27539         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27540         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27541         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27542         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27543         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27544         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27545         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27546         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27547         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27548         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27550 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
27552         [BZ #22111]
27553         * malloc/malloc.c (tcache_shutting_down): Use bool type.
27554         (tcache_thread_freeres): Set tcache_shutting_down before
27555         freeing the tcache.
27556         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27557         * malloc/tst-malloc-tcache-leak.c: New file.
27559 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27561         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27562         back to powerpc32 file.
27563         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27564         (memrchr): Add __memrchr_power8 to ifunc list.
27565         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27566         extra bytes for unaligned inputs.
27568 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
27570         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27571         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27572         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27573         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27574         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27576 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
27578         * sysdeps/arm/libm-test-ulps: Update.
27580         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27581         <libm-alias-ldouble.h>.
27582         (asinhl): Define using libm_alias_ldouble.
27583         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27584         <libm-alias-ldouble.h>.
27585         (cbrtl): Define using libm_alias_ldouble.
27586         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27587         <libm-alias-ldouble.h>.
27588         (copysignl): Define using libm_alias_ldouble.
27589         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27590         <libm-alias-ldouble.h>.
27591         (cosl): Define using libm_alias_ldouble.
27592         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27593         <libm-alias-ldouble.h>.
27594         (erfl): Define using libm_alias_ldouble.
27595         (erfcl): Likewise.
27596         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27597         <libm-alias-ldouble.h>.
27598         (fmal): Define using libm_alias_ldouble.
27599         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27600         <libm-alias-ldouble.h>.
27601         (frexpl): Define using libm_alias_ldouble.
27602         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27603         libm_alias_ldouble.
27604         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27605         <libm-alias-ldouble.h>.
27606         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27607         libm_alias_ldouble.
27608         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27609         <libm-alias-ldouble.h>.
27610         (getpayloadl): Define using libm_alias_ldouble.
27611         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27612         <libm-alias-ldouble.h>.
27613         (llrintl): Define using libm_alias_ldouble.
27614         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27615         <libm-alias-ldouble.h>.
27616         (llroundl): Define using libm_alias_ldouble.
27617         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27618         <libm-alias-ldouble.h>.
27619         (lrintl): Define using libm_alias_ldouble.
27620         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27621         <libm-alias-ldouble.h>.
27622         (lroundl): Define using libm_alias_ldouble.
27623         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27624         <libm-alias-ldouble.h>.
27625         (modfl): Define using libm_alias_ldouble.
27626         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27627         <libm-alias-ldouble.h>.
27628         (nextupl): Define using libm_alias_ldouble.
27629         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27630         <libm-alias-ldouble.h>.
27631         (remquol): Define using libm_alias_ldouble.
27632         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27633         <libm-alias-ldouble.h>.
27634         (roundevenl): Define using libm_alias_ldouble.
27635         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27636         <libm-alias-ldouble.h>.
27637         (roundl): Define using libm_alias_ldouble.
27638         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27639         using libm_alias_ldouble.
27640         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27641         <libm-alias-ldouble.h>.
27642         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27643         <libm-alias-ldouble.h>.
27644         (setpayloadsigl): Define using libm_alias_ldouble.
27645         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27646         <libm-alias-ldouble.h>.
27647         (sincosl): Define using libm_alias_ldouble.
27648         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27649         <libm-alias-ldouble.h>.
27650         (sinl): Define using libm_alias_ldouble.
27651         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27652         <libm-alias-ldouble.h>.
27653         (tanhl): Define using libm_alias_ldouble.
27654         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27655         <libm-alias-ldouble.h>.
27656         (tanl): Define using libm_alias_ldouble.
27657         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27658         <libm-alias-ldouble.h>.
27659         (totalorderl): Define using libm_alias_ldouble.
27660         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27661         <libm-alias-ldouble.h>.
27662         (totalordermagl): Define using libm_alias_ldouble.
27663         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27664         libm_alias_ldouble.
27665         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27666         libm_alias_ldouble.
27668 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27670         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27671         memmove_falkor.
27672         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27673         (__libc_ifunc_impl_list): Likewise.
27674         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27675         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27677         * benchtests/bench-memmove-walk.c: New file.
27678         * benchtests/Makefile (string-benchset): Add it.
27680         * benchtests/bench-memset-walk.c: New file.
27681         * benchtests/Makefile (string-benchset): Add it.
27683         * benchtests/bench-memcpy-walk.c: New file.
27684         * benchtests/Makefile (string-benchset): Add it.
27686 2017-10-05  Florian Weimer  <fweimer@redhat.com>
27688         nscd: Eliminate compilation time dependency in the build output.
27689         * nscd/nscd_stat.c (STATDATA_VERSION)
27690         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27691         (STATDATA_VERSION_FULL): New macro definitions.
27692         (compilation): Remove.
27693         (struct statdata): Adjust version member.
27694         (send_stats): Set version from STATDATA_VERSION_FULL.
27695         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27697 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
27699         * configure.ac (--enable-add-ons): Remove option.
27700         (machine): Do not mention add-ons in comment.
27701         (LIBC_PRECONFIGURE): Likewise.
27702         (add_ons): Remove variable and sanity checks and logic to locate
27703         add-ons.
27704         (add_ons_automatic): Remove variable.
27705         (configured_add_ons): Likewise.
27706         (add_ons_sfx): Likewise.
27707         (add_ons_pfx): Likewise.
27708         (add_on_subdirs): Likewise.
27709         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
27710         consideration of add-ons in Implies handling.
27711         (sysdeps_add_ons): Likewise.
27712         * configure: Regenerated.
27713         * libidn/configure.ac: Remove.
27714         * libidn/configure: Likewise.
27715         * sysdeps/unix/inet/configure.ac: New file.
27716         * sysdeps/unix/inet/configure: New generated file.
27717         * sysdeps/unix/inet/Subdirs: Add libidn.
27718         * Makeconfig (sysdeps-srcdirs): Remove variable.
27719         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27720         ($(common-objpfx)config.status): Do not depend on add-on files.
27721         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27722         comment.
27723         (all-subdirs): Do not include $(add-on-subdirs).
27724         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27725         * config.make.in (add-ons): Remove variable.
27726         (add-on-subdirs): Likewise.
27727         (sysdeps-add-ons): Likewise.
27728         * manual/Makefile (add-chapters): Remove.
27729         ($(objpfx)texis): Do not depend on $(add-chapters).
27730         (nonexamples): Do not handle $(add-chapters).
27731         (examples): Do not handle $(add-ons).
27732         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27733         libc-texinfo.sh.
27734         * manual/install.texi (Installation): Do not mention add-ons.
27735         (--enable-add-ons): Do not document configure option.
27736         * INSTALL: Regenerated.
27737         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27738         * manual/maint.texi (Hierarchy Conventions): Do not mention
27739         add-ons.
27740         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27741         --enable-add-ons.
27742         * scripts/gen-sorted.awk: Do not handle Subdirs files from
27743         add-ons.
27744         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27745         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27747 2017-10-05  Andreas Schwab  <schwab@suse.de>
27749         [BZ #15142]
27750         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
27751         (_IO_flush_all_lockp): Always lock list_all_lock.
27752         (_IO_flush_all_linebuffered): Likewise.
27753         (_IO_unbuffer_all): Likewise.
27755 2017-10-05  Florian Weimer  <fweimer@redhat.com>
27757         [BZ #15436]
27758         Do not flush stdio streams on abort.
27759         * stdlib/abort.c (fflush): Remove macro definition.
27760         (abort): Remove stages related to stdio flushing.
27762 2017-10-05  Florian Weimer  <fweimer@redhat.com>
27764         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27766 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
27768         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27770 2017-10-05  Florian Weimer  <fweimer@redhat.com>
27772         * support/support_format_hostent.c (support_format_hostent): Add
27773         more error information for NETDB_INTERNAL.
27775 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
27777         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27778         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27779         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27780         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27781         AC_DEFINE if multi-arch is enabled.
27782         * sysdeps/i386/configure: Regenerated.
27784 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
27786         * Makeconfig (+link-static-before-libc): Use
27787         $(DEFAULT-LDFLAGS-$(@F)).
27788         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27789         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27790         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27792 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
27794         * elf/Makefile (tests): Add tst-main1.
27795         (modules-names): Add tst-main1mod.
27796         ($(objpfx)tst-main1): New.
27797         (CRT-tst-main1): Likewise.
27798         (LDFLAGS-tst-main1): Likewise.
27799         (LDLIBS-tst-main1): Likewise.
27800         (tst-main1mod.so-no-z-defs): Likewise.
27801         * elf/tst-main1.c: New file.
27802         * elf/tst-main1mod.c: Likewise.
27804 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
27806         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27808 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
27810         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27811         (fma): Define using libm_alias_double.
27812         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27813         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27814         <math_ldbl_opt.h>.
27815         (fmal): Do not define as compat symbol here.
27816         * sysdeps/alpha/fpu/s_fma.c: New file.
27818 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27820         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27822 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
27824         [BZ #22229]
27825         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27826         <math_ldbl_opt.h>
27827         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27828         and libc.
27829         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27830         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27831         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27832         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27834         Include <math_ldbl_opt.h>
27835         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27836         and libc.
27837         (compat_symbol): Undefine and redefine.
27838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27839         <math_ldbl_opt.h>
27840         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27841         (compat_symbol): Undefine and redefine.
27842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27843         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27844         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27845         GLIBC_2_1 for libm.
27846         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27847         GLIBC_2.0 copysignl symbol.
27848         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27849         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27851         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27853 2017-10-04  Florian Weimer  <fweimer@redhat.com>
27855         * scripts/check-local-headers.sh: Ignore nspr4 header file
27856         directory in addition to nspr.
27858 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
27860         [BZ #17956]
27861         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27862         * configure: Regenerate.
27863         * crypt/Makefile (nss-cpp-flags): New variable.
27864         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27865         (CPPFLAGS-md5-crypt.c): Use it.
27866         * scripts/check-local-headers.sh: Ignore nspr header file
27867         directory.
27869 2017-10-04  Andreas Schwab  <schwab@suse.de>
27871         * nis/Makefile (services): Remove compat.
27872         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27873         ($(objpfx)libnss_compat.so): Remove rule.
27874         * nis/Versions (libnss_compat): Remove.
27875         * nss/Makefile (services): Add compat.
27876         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27877         * nss/Versions (libnss_compat): Define.
27878         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27879         Don't include <rpc/types.h>.  Replace bool_t by bool.
27880         * nss/nss_compat/compat-initgroups.c: Likewise.
27881         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
27882         instead of <rpcsrv/ypclnt.h>.
27883         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27884         yp_get_default_domain.
27885         * nss/nss_compat/compat-pwd.c: Likewise.
27886         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27887         yp_get_default_domain.
27888         * nss/nss_compat/nisdomain.c: New file.
27889         * nss/nss_compat/nisdomain.h: Likewise.
27891 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27893         [BZ #22244]
27894         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27895         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27897 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27899         [BZ #22243]
27900         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27901         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27903 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
27905         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27906         "movl main@GOTOFF(%ebx), %eax".
27908 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
27910         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27911         allow undefined _DYNAMIC in PIE libc.a.
27912         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27913         Likewse.
27915 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
27917         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27918         check _DYNAMIC.
27920 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
27922         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27923         check _DYNAMIC.
27925 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
27927         * math/test-math-iscanonical.cc (error): Replace bool with int.
27929 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
27931         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27932         (modf): Define using libm_alias_double, only if [!__modf].
27933         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27934         <libm-alias-double.h>.
27935         (modf): Define using libm_alias_double, only if [!__modf].
27936         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27937         compat symbol here.
27938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27939         (weak_alias): Do not undefine and redefine.
27940         (strong_alias): Likewise.
27941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27942         (weak_alias): Likewise.
27943         (strong_alias): Likewise.
27945         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27946         (logb): Define using libm_alias_double, only if [!__logb].
27947         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27948         <libm-alias-double.h>.
27949         (logb): Define using libm_alias_double, only if [!__logb].
27950         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27952         (weak_alias): Do not undefine and redefine.
27953         (strong_alias): Likewise.
27954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27955         (weak_alias): Likewise.
27956         (strong_alias): Likewise.
27958 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
27960         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27961         Check SHARED instead PIC.
27963 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
27965         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27966         [!__fmaf] (fmaf): Define using libm_alias_float.
27968         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27969         (frexp): Define using libm_alias_double.
27970         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27971         <libm-alias-double.h>.
27972         (frexp): Define using libm_alias_double.
27973         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27974         compat symbol here.
27976 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27978         [BZ #22235]
27979         * math/math.h: Trivial fix for unbalanced parentheses in comment.
27980         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27981         (CFLAGS-test-math-iscanonical.cc): New variable.
27982         * math/test-math-iscanonical.cc: New file.
27983         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27984         Provide a C++ implementation based on function overloading,
27985         rather than using __MATH_TG, which uses C-only builtins.
27986         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27987         Likewise.
27988         * sysdeps/powerpc/powerpc64le/Makefile
27989         (CFLAGS-test-math-iscanonical.cc): New variable.
27991 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
27993         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27994         (ceil): Define using libm_alias_double.
27995         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27996         (floor): Define using libm_alias_double.
27997         * sysdeps/ieee754/dbl-64/s_llround.c: Include
27998         <libm-alias-double.h>.
27999         (llround): Define using libm_alias_double.
28000         * sysdeps/ieee754/dbl-64/s_lround.c: Include
28001         <libm-alias-double.h>.
28002         (lround): Define using libm_alias_double.
28003         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28004         <libm-alias-double.h>.
28005         (nearbyint): Define using libm_alias_double.
28006         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28007         <libm-alias-double.h>.
28008         (remquo): Define using libm_alias_double.
28009         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28010         (rint): Define using libm_alias_double.
28011         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28012         (round): Define using libm_alias_double.
28013         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28014         (trunc): Define using libm_alias_double.
28015         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28016         <libm-alias-double.h>.
28017         (ceil): Define using libm_alias_double.
28018         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28019         <libm-alias-double.h>.
28020         (floor): Define using libm_alias_double.
28021         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28022         <libm-alias-double.h>.
28023         (llround): Define using libm_alias_double.
28024         [_LP64] (lround): Likewise.
28025         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28026         <libm-alias-double.h>.
28027         [!_LP64] (lround): Define using libm_alias_double.
28028         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28029         <libm-alias-double.h>.
28030         (nearbyint): Define using libm_alias_double.
28031         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28032         <libm-alias-double.h>.
28033         (remquo): Define using libm_alias_double.
28034         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28035         <libm-alias-double.h>.
28036         (rint): Define using libm_alias_double.
28037         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28038         <libm-alias-double.h>.
28039         (round): Define using libm_alias_double.
28040         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28041         <libm-alias-double.h>.
28042         (trunc): Define using libm_alias_double.
28043         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28044         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28045         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28046         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28047         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28048         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28049         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28050         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28051         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28053 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28055         * math/w_remainder.c: New file.
28056         * math/w_remainderf.c: New file.
28057         * math/w_remainderl.c: New file.
28059 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28061         * elf/rtld.c (BOOTSTRAP_MAP): New.
28062         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28063         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28064         Likewise.
28065         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28066         Likewise.
28067         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28068         Likewise.
28070 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28072         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28073         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28074         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28075         rtld_hidden_data_ver): Define to empty.
28076         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28077         __assert_perror_fail): Likewise.
28078         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28079         (__rewinddir): Likewise.
28080         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28081         (__profile_frequency): Likewise.
28082         * include/setjmp.h (__sigsetjmp): Likewise.
28083         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28084         __libc_sigaction): Likewise.
28085         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28086         not set hidden attribute.
28087         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28088         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28089         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28090         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28091         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28092         __fxstatat64): Likewise.
28093         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28094         (__uname): Likewise.
28095         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28096         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28097         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28098         (NO_RTLD_HIDDEN): Set.
28099         * sysdeps/mach/hurd/configure: Refresh.
28100         * config.h.in: Refresh.
28102 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
28104         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28105         (atan): Define using libm_alias_double.
28106         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28107         (tan): Define using libm_alias_double.
28108         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28109         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28111         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28112         define as weak alias of __atan.  Do not define any aliases if
28113         [__atan].
28114         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28115         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28116         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28117         as weak alias of __tan.  Do not define any aliases if [__tan].
28118         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28119         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28120         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28121         __atan.
28122         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28123         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28124         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28125         and define as weak alias of __atan.
28126         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28127         __atan.
28128         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28129         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28130         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28131         define as weak alias of __tan.
28133 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28135         * math/w_lgamma.c: New file.
28136         * math/w_lgammaf.c: New file.
28137         * math/w_lgammal.c: New file.
28139 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28141         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28142         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28143         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28144         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28145         * sysdeps/ieee754/flt-32/w_logf.c: New file.
28146         * sysdeps/ieee754/flt-32/w_powf.c: New file.
28147         * sysdeps/i386/fpu/w_log2f.c: New file.
28148         * sysdeps/i386/fpu/w_logf.c: New file.
28149         * sysdeps/i386/fpu/w_powf.c: New file.
28150         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28151         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28152         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28154 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28155             H.J. Lu  <hongjiu.lu@intel.com>
28157         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28158         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28159         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28160         * sysdeps/ieee754/flt-32/w_expf.c: New file.
28161         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28162         the new expf code.
28163         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28164         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28165         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28166         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28167         * sysdeps/i386/fpu/w_exp2f.c: New file.
28168         * sysdeps/i386/fpu/w_expf.c: New file.
28169         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28170         * sysdeps/x86_64/fpu/w_expf.c: New file.
28172 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28174         * math/Versions (logf): New libm symbol at GLIBC_2.27.
28175         (log2f): Likewise.
28176         (powf): Likewise.
28177         * math/w_log2f.c: New file.
28178         * math/w_logf.c: New file.
28179         * math/w_powf.c: New file.
28180         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28181         * math/w_logf_compat.c (__logf_compat): Likewise.
28182         * math/w_powf_compat.c (__powf_compat): Likewise.
28183         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28184         * sysdeps/ia64/fpu/e_logf.S: Likewise.
28185         * sysdeps/ia64/fpu/e_powf.S: Likewise.
28186         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28187         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28188         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28189         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28190         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28191         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28192         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28193         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28194         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28195         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28196         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28197         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28199         Likewise.
28200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28201         Likewise.
28202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28203         Likewise.
28204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28205         Likewise.
28206         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28207         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28208         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28209         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28210         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28211         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28212         Likewise.
28213         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28214         Likewise.
28215         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28216         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28217         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28219 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28221         * sysdeps/powerpc/powerpc64/multiarch/Makefile
28222         (sysdep_routines): Add memrchr_power8.
28223         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28224         (memrchr): Add __memrchr_power8 to list of memrchr functions.
28225         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28226         New file.
28227         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28228         (memrchr): Add __memrchr_power8 to ifunc list.
28229         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28231 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28233         [BZ #18822]
28234         * sysdeps/unix/sysv/linux/posix_fadvise64.c
28235         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28236         libc_hidden_def.
28237         * sysdeps/unix/sysv/linux/posix_fallocate64.c
28238         (__posix_fallocate64_l64): Likewise.
28240 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28242         [BZ #18822]
28243         * sysdeps/unix/sysv/linux/sched_setaffinity.c
28244         (__sched_setaffinity_new): Add libc_hidden_proto and
28245         libc_hidden_def.
28247 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28249         [BZ #18822]
28250         * include/glob.h (__glob64): Add libc_hidden_proto.
28251         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28252         libc_hidden_def.
28254 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28256         [BZ #18822]
28257         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28258         attribute_hidden.
28260 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28262         [BZ #18822]
28263         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28265 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28267         [BZ #18822]
28268         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28269         libc_hidden_def.
28271 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28273         [BZ #18822]
28274         * csu/version.c (__libc_print_version): Add attribute_hidden.
28276 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28278         [BZ #18822]
28279         * include/libc-internal.h (__init_misc): Add attribute_hidden.
28281 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28283         [BZ #18822]
28284         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28286 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28288         [BZ #18822]
28289         * nscd/nscd_helper.c (__nis_hash): New prototype.
28291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28293         [BZ #18822]
28294         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28295         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28296         libc_hidden_def.
28297         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28298         * termios/tcgetattr.c (__tcgetattr): Likewise.
28300 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28302         [BZ #18822]
28303         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28304         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28305         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28306         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28307         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28309 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28311         [BZ #18822]
28312         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28314 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28316         [BZ #18822]
28317         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28318         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28320 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28322         [BZ #18822]
28323         * intl/hash-string.h (__hash_string): Add attribute_hidden.
28325 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28327         [BZ #18822]
28328         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28329         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28331 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28333         [BZ #18822]
28334         * include/ifreq.h: New file.
28335         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28336         (__ifreq): Likewise.
28337         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28338         (__ifreq): Likewise.
28340 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28342         [BZ #18822]
28343         * include/idna.h: New file.
28344         * inet/getnameinfo.c: Include <idna.h> instead of
28345         <libidn/idna.h>.
28346         (__idna_to_unicode_lzlz): Removed.
28347         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28348         <libidn/idna.h>.
28349         (__idna_to_ascii_lz): Removed.
28350         (__idna_to_unicode_lzlz): Likewise.
28352 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28354         [BZ #18822]
28355         * include/plural-exp.h: New file.
28356         * intl/plural-exp.c: Include <plural-exp.h> instead of
28357         "plural-exp.h".
28359 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28361         [BZ #18822]
28362         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28363         "getsourcefilter.h".
28364         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28365         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28366         "getsourcefilter.h".
28367         (__get_sol): Removed.
28369 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28371         [BZ #18822]
28372         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28373         to ...
28374         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28376 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28378         [BZ #18822]
28379         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28380         attribute_hidden.
28382 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28384         [BZ #18822]
28385         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28387 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28389         [BZ #18822]
28390         * include/search.h (__tdestroy): Add libc_hidden_proto.
28391         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28393 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28395         [BZ #18822]
28396         * include/assert.h (__assert_fail_base): Add attribute_hidden.
28398 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28400         [BZ #18822]
28401         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28402         attribute_hidden.
28404 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28406         [BZ #18822]
28407         * include/signal.h (__kill): Add libc_hidden_proto.
28408         (__sigblock): Likewise.
28409         (__sigprocmask): Likewise.
28410         (__sigaltstack): Likewise.
28411         * signal/kill.c (__kill): Add libc_hidden_def.
28412         * signal/sigblock.c (__sigblock): Likewise.
28413         * signal/sigprocmask.c (__sigprocmask): Likewise.
28414         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28415         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28416         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28417         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28418         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28419         Likewise.
28420         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28421         Likewise.
28422         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28423         (__sigprocmask): Likewise.
28424         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28425         Likewise.
28426         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28427         (__sigprocmask): Likewise.
28428         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28429         Likewise.
28431 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28433         [BZ #18822]
28434         * include/string.h (__strsep): Add libc_hidden_proto.
28435         * string/strsep.c (__strsep): Add libc_hidden_def.
28437 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28439         [BZ #18822]
28440         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28441         attribute_hidden.
28442         (__spawni): Likewise.
28444 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28446         [BZ #18822]
28447         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28448         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28449         libc_hidden_def.
28451 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28453         [BZ #18822]
28454         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28456 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28458         [BZ #18822]
28459         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28460         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28461         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28462         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28463         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28464         Likewise.
28465         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28466         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28468 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28470         [BZ #18822]
28471         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28472         (__dcigettext): Likewise.
28474 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28476         [BZ #18822]
28477         * include/sys/sysinfo.h (__get_nprocs_conf): Add
28478         libc_hidden_proto.
28479         (__get_nprocs): Likewise.
28480         (__get_phys_pages): Likewise.
28481         (__get_avphys_pages): Likewise.
28482         (__get_child_max): Add attribute_hidden.
28483         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28484         (__get_nprocs): Likewise.
28485         (__get_phys_pages): Likewise.
28486         (__get_avphys_pages): Likewise.
28487         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28488         libc_hidden_def.
28489         (__get_nprocs): Likewise.
28490         (__get_phys_pages): Likewise.
28491         (__get_avphys_pages): Likewise.
28492         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28493         libc_hidden_def.
28494         (__get_nprocs_conf): Likewise.
28495         (__get_phys_pages): Likewise.
28496         (__get_avphys_pages): Likewise.
28498 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28500         [BZ #18822]
28501         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28502         attribute_hidden.
28503         (__netlink_close): Likewise.
28504         (__netlink_free_handle): Likewise.
28505         (__netlink_request): Likewise.
28507 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28509         [BZ #18822]
28510         * include/rpc/rpc.h (__rpc_thread_variables): Add
28511         attribute_hidden.
28512         (__rpc_thread_svc_cleanup): Likewise.
28513         (__rpc_thread_clnt_cleanup): Likewise.
28514         (__rpc_thread_key_cleanup): Likewise.
28516 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28518         [BZ #18822]
28519         * include/sys/uio.h (__readv): Add libc_hidden_proto.
28520         (__writev): Likewise.
28521         * misc/readv.c (__readv): Add libc_hidden_def.
28522         * misc/writev.c (__writev): Likewise.
28523         * sysdeps/posix/readv.c (__readv): Likewise.
28524         * sysdeps/posix/writev.c (__writev): Likewise.
28525         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28526         (__readv): Likewise.
28527         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28528         (__writev): Likewise.
28530 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28532         [BZ #18822]
28533         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28534         (__regcomp): Add libc_hidden_proto.
28535         (__regexec): Likewise.
28536         (__regfree): Likewise.
28537         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28538         (__regfree): Likewise.
28539         * posix/regexec.c (__regexec): Likewise.
28541 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28543         [BZ #18822]
28544         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28545         (__getutent): Likewise.
28546         (__getutid): Likewise.
28547         (__getutline): Likewise.
28548         (__pututline): Likewise.
28549         (__getutent_r): Likewise.
28550         (__getutid_r): Likewise.
28551         (__getutline_r): Likewise.
28552         (__utmpname): Add attribute_hidden.
28553         (__setutent): Likewise.
28554         (__endutent): Likewise.
28555         * login/getutent.c (__getutent): Add libc_hidden_def.
28556         * login/getutent_r.c (__getutent_r): Likewise.
28557         (__pututline): Likewise.
28558         * login/getutid.c (__getutid): Likewise.
28559         * login/getutid_r.c (__getutid_r): Likewise.
28560         * login/getutline.c (__getutline): Likewise.
28561         * login/getutline_r.c (__getutline_r): Likewise.
28562         * login/updwtmp.c (__updwtmp): Likewise.
28564 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28566         [BZ #18822]
28567         * include/dirent.h (__opendir): Always add attribute_hidden.
28568         (__fdopendir): Likewise.
28569         (__closedir): Likewise.
28570         (__readdir): Likewise.
28571         (__readdir64): Add libc_hidden_proto.
28572         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28573         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28574         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28575         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28576         New alias.
28578 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28580         [BZ #18822]
28581         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28582         * include/netdb.h (__gethostbyaddr_r): Likewise.
28583         (__gethostbyname_r): Likewise.
28584         (__gethostbyname2_r): Likewise.
28585         (__getnetbyaddr_r): Likewise.
28586         (__getnetbyname_r): Likewise.
28587         (__getservbyname_r): Likewise.
28588         (__getservbyport_r): Likewise.
28589         (__getprotobyname_r): Likewise.
28590         (__getprotobynumber_r): Likewise.
28591         (__getnetgrent_r): Likewise.
28592         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28593         (__getrpcbynumber_r): Likewise.
28594         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28596 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28598         [BZ #18822]
28599         * include/stdio.h (__fcloseall): Add attribute_hidden.
28600         (__getline): Likewise.
28601         (__path_search): Likewise.
28602         (__gen_tempname): Likewise.
28603         (__libc_message): Likewise.
28604         (__flockfile): Likewise.
28605         (__funlockfile): Likewise.
28606         (__fxprintf): Likewise.
28607         (__fxprintf_nocancel): Likewise.
28609 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28611         [BZ #18822]
28612         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28613         (__sgetsgent_r): Likewise.
28615 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28617         [BZ #18822]
28618         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28619         (__statfs64): Likewise.
28620         (__fstatfs64): Likewise.
28621         * include/sys/statvfs.h (__statvfs64): Likewise.
28622         (__fstatvfs64): Likewise.
28623         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28624         (__statfs_filesize_max): Likewise.
28625         (__statfs_symlinks): Likewise.
28626         (__statfs_chown_restricted): Likewise.
28628 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28630         [BZ #18822]
28631         * include/time.h (__tzstring): Add attribute_hidden.
28632         (__tzfile_read): Likewise.
28633         (__tzfile_compute): Likewise.
28634         (__tzfile_default): Likewise.
28635         (__tzset_parse_tz): Likewise.
28636         (__offtime): Likewise.
28637         (__asctime_r): Likewise.
28638         (__tzset): Likewise.
28639         (__tz_convert): Likewise.
28640         (__getdate_r): Likewise.
28641         (__getclktck): Likewise.
28643 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28645         [BZ #18822]
28646         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28647         (__nscd_unmap): Likewise.
28648         (__nscd_cache_search): Likewise.
28649         (__nscd_get_nl_timestamp): Likewise.
28650         (__nscd_getpwnam_r): Likewise.
28651         (__nscd_getpwuid_r): Likewise.
28652         (__nscd_getgrnam_r): Likewise.
28653         (__nscd_getgrgid_r): Likewise.
28654         (__nscd_gethostbyname_r): Likewise.
28655         (__nscd_gethostbyname2_r): Likewise.
28656         (__nscd_gethostbyaddr_r): Likewise.
28657         (__nscd_getai): Likewise.
28658         (__nscd_getgrouplist): Likewise.
28659         (__nscd_getservbyname_r): Likewise.
28660         (__nscd_getservbyport_r): Likewise.
28661         (__nscd_innetgr): Likewise.
28662         (__nscd_setnetgrent): Likewise.
28664 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28666         [BZ #18822]
28667         * include/gmp.h: Declare internal functions only if _ISOMAC is
28668         undefined.
28669         (__mpn_extract_double): Add attribute_hidden.
28670         (__mpn_extract_long_double): Likewise.
28671         (__mpn_extract_float128): Likewise.
28672         (__mpn_construct_float): Likewise.
28673         (__mpn_construct_double): Likewise.
28674         (__mpn_construct_long_double): Likewise.
28675         (__mpn_construct_float128): Likewise.
28676         (mpn_add_1): Likewise.
28677         (mpn_addmul_1): Likewise.
28678         (mpn_add_n): Likewise.
28679         (mpn_cmp): Likewise.
28680         (mpn_divrem): Likewise.
28681         (mpn_lshift): Likewise.
28682         (mpn_mul): Likewise.
28683         (mpn_mul_1): Likewise.
28684         (mpn_rshift): Likewise.
28685         (mpn_sub_1): Likewise.
28686         (mpn_submul_1): Likewise.
28687         (mpn_sub_n): Likewise.
28689 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28691         [BZ #18822]
28692         * include/wchar.h (__wcsnlen): Add attribute_hidden.
28693         (__wcscat): Likewise.
28694         (__btowc): Likewise.
28695         (__wcrtomb): Likewise.
28696         (__mbsrtowcs): Likewise.
28697         (__wcsrtombs): Likewise.
28698         (__mbsnrtowcs): Likewise.
28699         (__wcsnrtombs): Likewise.
28700         (__wcsncpy): Likewise.
28701         (__wcpncpy): Likewise.
28702         (__wmemcpy): Likewise.
28703         (__wmempcpy): Likewise.
28704         (__wmemmove): Likewise.
28705         (__wcschrnul): Likewise.
28706         (__vfwscanf): Likewise.
28707         (__vswprintf): Likewise.
28708         (__fwprintf): Likewise.
28709         (__vfwprintf): Likewise.
28711 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28713         [BZ #18822]
28714         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28715         (__getgrgid_r): Likewise.
28716         (__getgrnam_r): Likewise.
28717         * include/pwd.h (__getpwuid_r): Likewise.
28718         (__getpwnam_r): Likewise.
28719         (__fgetpwent_r): Likewise.
28720         * include/shadow.h (__getspnam_r): Likewise.
28721         (__sgetspent_r): Likewise.
28722         (__fgetspent_r): Likewise.
28724 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28726         [BZ #18822]
28727         * include/unistd.h (__access): Add attribute_hidden.
28728         (__lseek64): Likewise.
28729         (__libc_pread64): Likewise.
28730         (__pipe2): Likewise.
28731         (__sleep): Likewise.
28732         (__chdir): Likewise.
28733         (__fchdir): Likewise.
28734         (__getcwd): Likewise.
28735         (__rmdir): Likewise.
28736         (__execvpe): Likewise.
28737         (__execve): Likewise.
28738         (__setsid): Likewise.
28739         (__getuid): Likewise.
28740         (__geteuid): Likewise.
28741         (__getgid): Likewise.
28742         (__getegid): Likewise.
28743         (__getgroups): Likewise.
28744         (__group_member): Likewise.
28745         (__ttyname_r): Likewise.
28746         (__isatty): Likewise.
28747         (__readlink): Likewise.
28748         (__unlink): Likewise.
28749         (__gethostname): Likewise.
28750         (__profil): Likewise.
28751         (__getdtablesize): Likewise.
28752         (__brk): Likewise.
28753         (__ftruncate): Likewise.
28754         (__ftruncate64): Likewise.
28756 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28758         [BZ #18822]
28759         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28760         * argp/argp-fs-xinl.c: Likewise.
28761         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28762         * argp/argp-parse.c: Include <argp.h>.
28763         * argp/argp-xinl.c: Likewise.
28764         * include/argp-fmtstream.h: New file.
28765         * include/argp.h (__argp_error): Add attribute_hidden.
28766         (__argp_failure): Likewise.
28767         (__argp_input): Likewise.
28768         (__argp_state_help): Likewise.
28770 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28772         [BZ #18822]
28773         * include/wchar.h (____wcstof_l_internal): New prototype.
28774         (____wcstod_l_internal): Likewise.
28775         (____wcstold_l_internal): Likewise.
28776         (____wcstol_l_internal): Likewise.
28777         (____wcstoul_l_internal): Likewise.
28778         (____wcstoll_l_internal): Likewise.
28779         (____wcstoull_l_internal): Likewise.
28780         (____wcstof128_l_internal): Likewise.
28781         * sysdeps/ieee754/float128/wcstof128.c
28782         (____wcstof128_l_internal): Removed.
28783         * sysdeps/ieee754/float128/wcstof128_l.c
28784         (____wcstof128_l_internal): Likewise.
28785         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28786         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28787         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28788         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28789         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28790         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28791         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28792         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28793         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28794         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28798         [BZ #18822]
28799         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28800         instead of <sys/statvfs.h>.
28801         (__internal_statvfs): Removed.
28802         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28803         instead of <sys/statvfs.h>.
28804         (__internal_statvfs64): Removed.
28805         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28806         "internal_statvfs.h" instead of <sys/statvfs.h>.
28807         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28808         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28809         instead of <sys/statvfs.h>.
28810         (__internal_statvfs): Removed.
28811         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28812         instead of <sys/statvfs.h>.
28813         (__internal_statvfs64): Removed.
28815 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28817         [BZ #18822]
28818         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28819         (__gconv_close): Likewise.
28820         (__gconv): Likewise.
28821         (__gconv_find_transform): Likewise.
28822         (__gconv_lookup_cache): Likewise.
28823         (__gconv_compare_alias_cache): Likewise.
28824         (__gconv_load_cache): Likewise.
28825         (__gconv_get_path): Likewise.
28826         (__gconv_close_transform): Likewise.
28827         (__gconv_release_cache): Likewise.
28828         (__gconv_find_shlib): Likewise.
28829         (__gconv_release_shlib): Likewise.
28830         (__gconv_get_builtin_trans): Likewise.
28831         (__gconv_compare_alias): Likewise.
28832         * include/dlfcn.h (_dlerror_run): Likewise.
28833         * include/stdio.h (__fortify_fail_abort): Likewise.
28834         * include/time.h (__tz_compute): Likewise.
28835         (__strptime_internal): Likewise.
28836         * intl/gettextP.h (_nl_find_domain): Likewise.
28837         (_nl_load_domain): Likewise.
28838         (_nl_find_msg): Likewise.
28839         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28840         (EXTRACT_PLURAL_EXPRESSION): Likewise.
28841         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28842         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28843         (__gai_find_request): Likewise.
28844         (__gai_remove_request): Likewise.
28845         (__gai_notify): Likewise.
28846         (__gai_notify_only): Likewise.
28847         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28848         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28849         (_dl_non_dynamic_init): Likewise.
28850         (_dl_aux_init): Likewise.
28851         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28852         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28853         Likewise.
28854         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28855         (__wcsmbs_clone_conv): Likewise.
28856         (__wcsmbs_named_conv): Likewise.
28858 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28860         [BZ #18822]
28861         * include/stdlib.h (__random): Add attribute_hidden.
28862         (__random_r): Likewise.
28863         (__srandom_r): Likewise.
28864         (__initstate_r): Likewise.
28865         (__setstate_r): Likewise.
28866         (__erand48_r): Likewise.
28867         (__nrand48_r): Likewise.
28868         (__jrand48_r): Likewise.
28869         (__srand48_r): Likewise.
28870         (__seed48_r): Likewise.
28871         (__lcong48_r): Likewise.
28872         (__drand48_iterate): Likewise.
28873         (__setenv): Likewise.
28874         (__unsetenv): Likewise.
28875         (__clearenv): Likewise.
28876         (__ptsname_r): Likewise.
28877         (__posix_openpt): Likewise.
28878         (__add_to_environ): Likewise.
28879         (__realpath): Add libc_hidden_proto.
28880         (__ecvt_r): Likewise.
28881         (__fcvt_r): Likewise.
28882         (__qecvt_r): Likewise.
28883         (__qfcvt_r): Likewise.
28884         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28885         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28887 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28889         [BZ #18822]
28890         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28891         * include/time.h (__mktime_internal): Likewise.
28892         * libio/iolibio.h (__fopen_internal): Likewise.
28894 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
28896         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28897         pointer in frame.
28898         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28899         Correct offset used to restore PIC register.
28901 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
28903         [BZ libc/22165]
28904         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28905         code to load address of __getcontext_ret when generating PIC code.
28907 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
28909         * elf/Makefile (tests-static-internal): Add
28910         tst-tls1-static-non-pie.
28911         (LDFLAGS-tst-tls1-static-non-pie): New.
28912         * elf/tst-tls1-static-non-pie.c: New file.
28914 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
28916         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28917         (asinh): Define using libm_alias_double.
28918         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28919         (cbrt): Define using libm_alias_double.
28920         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28921         <libm-alias-double.h>.
28922         (copysign): Define using libm_alias_double.
28923         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28924         (erf): Define using libm_alias_double.
28925         (erfc): Likewise.
28926         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28927         (expm1): Define using libm_alias_double.
28928         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28929         (fabs): Define using libm_alias_double.
28930         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28931         libm_alias_double.
28932         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28933         <libm-alias-double.h>.
28934         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28935         libm_alias_double.
28936         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28937         <libm-alias-double.h>.
28938         (getpayload): Define using libm_alias_double.
28939         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28940         <libm-alias-double.h>.
28941         (llrint): Define using libm_alias_double.
28942         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28943         (lrint): Define using libm_alias_double.
28944         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28945         <libm-alias-double.h>.
28946         (nextup): Define using libm_alias_double.
28947         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28948         <libm-alias-double.h>.
28949         (roundeven): Define using libm_alias_double.
28950         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28951         libm_alias_double.
28952         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28953         <libm-alias-double.h>.
28954         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28955         using libm_alias_double.
28956         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28957         (cos): Define using libm_alias_double.
28958         (sin): Likewise.
28959         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28960         <libm-alias-double.h>.
28961         (sincos): Define using libm_alias_double.
28962         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28963         (tanh): Define using libm_alias_double.
28964         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28965         <libm-alias-double.h>.
28966         (totalorder): Define using libm_alias_double.
28967         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28968         <libm-alias-double.h>.
28969         (totalordermag): Define using libm_alias_double.
28970         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28971         libm_alias_double.
28972         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28973         libm_alias_double.
28974         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28975         <libm-alias-double.h>.
28976         (getpayload): Define using libm_alias_double.
28977         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28978         <libm-alias-double.h>.
28979         (roundeven): Define using libm_alias_double.
28980         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28981         <libm-alias-double.h>.
28982         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28983         <libm-alias-double.h>.
28984         (totalorder): Define using libm_alias_double.
28985         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28986         <libm-alias-double.h>.
28987         (totalordermag): Define using libm_alias_double.
28988         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28989         libc compat symbol here.
28990         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28991         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28992         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28993         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28994         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28995         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28996         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28997         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28998         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28999         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29001 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29003         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29004         _dl_relocate_static_pie instead of _dl_start to compute load
29005         address in static PIE.  Return 0 if _DYNAMIC is undefined for
29006         static executable.
29008 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29010         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29011         _DYNAMIC is undefined for static executable.
29013 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29015         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29017 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29019         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29021 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29023         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29024         (__ieee754_lgamma_r): Use fabs rather than __fabs.
29025         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29026         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29027         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29028         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29029         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29030         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29031         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29032         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29033         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29034         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29035         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29036         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29037         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29038         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29039         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29041 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29043         * math/bits/cmathcalls.h (cimag): Remove inline.
29044         (creal): Remove inline.
29045         (conj): Remove inline.
29047 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29049         * math/Makefile (type-float-routines): Add e_powf_log2_data.
29050         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29051         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29052         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29053         (issignalingf_inline): Likewise.
29054         (POWF_LOG2_TABLE_BITS): Likewise.
29055         (POWF_LOG2_POLY_ORDER): Likewise.
29056         (POWF_SCALE_BITS): Likewise.
29057         (POWF_SCALE): Likewise.
29058         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29059         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29060         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29062 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29064         * math/Makefile (type-float-routines): Add e_log2f_data.
29065         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29066         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29067         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29068         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29069         * sysdeps/i386/fpu/e_log2f_data.c: New file.
29070         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29071         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29073 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29075         * math/Makefile (type-float-routines): Add e_logf_data.
29076         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29077         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29078         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29079         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29080         * sysdeps/i386/fpu/e_logf_data.c: New file.
29081         * sysdeps/ia64/fpu/e_logf_data.c: New file.
29082         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29084 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
29086         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29087         undefined _DYNAMIC in PIE libc.a.
29088         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29089         Likewse.
29091 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29093         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29094         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29095         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29096         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29097         (__signbit): Remove.
29098         (__signbitl): Remove.
29099         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29100         (__signbit): Remove.
29101         (__signbitl): Remove.
29102         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29103         (__signbit): Remove.
29104         (__signbitl): Remove.
29105         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29106         (__signbit): Remove.
29107         (__signbitl): Remove.
29108         * sysdeps/tile/bits/mathinline.h: Delete file.
29109         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29110         (__signbit): Remove.
29111         (__signbitl): Remove.
29113 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29115         * math/math.h: Improve handling of C99 isgreater macros.
29116         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29117         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29118         * sysdeps/powerpc/bits/mathinline.h: Likewise.
29119         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29120         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29122 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29124         * sysdeps/aarch64/libm-test-ulps: Update.
29126 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
29128         [BZ #22225]
29129         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29130         math_opt_barrier on argument when doing arithmetic on it.
29131         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29132         Likewise.  Use math_force_eval not math_opt_barrier after
29133         arithmetic.
29134         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29135         math_opt_barrier on argument when doing arithmetic on it.
29136         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29137         Likewise.
29139 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
29141         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29142         libc_hidden_def.
29143         (__freeifaddrs): Likewise.
29145 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29147         * include/dirent.h (__dirfd): New declaration.
29148         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29149         alias.
29150         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29151         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29152         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29153         * include/unistd.h (__revoke): New declaration.
29154         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29155         alias.
29156         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29157         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29158         revoke.
29159         * include/dirent.h (__seekdir): New declaration.
29160         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29161         redefine as weak alias.
29162         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29163         of seekdir.
29164         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29165         and use libc_hidden_def on them.
29166         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29167         them.
29168         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29169         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29170         instead of getifaddrs and freeifaddrs.
29172 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
29174         [BZ #18822]
29175         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29176         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29177         (__dso_handle): Remove declaration.
29178         * dlfcn/tstatexit.c (__dso_handle): Removed.
29179         (main): Don't check __dso_handle.
29180         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29181         (main): Don't check __dso_handle.
29182         * include/dso_handle.h: New file.
29183         * malloc/mtrace.c: Include <dso_handle.h>.
29184         (mtrace): Pass __dso_handle directly.
29185         * nptl/pthread_atfork.c: Include <dso_handle.h>.
29186         (__dso_handle): Remove declaration.
29187         (__pthread_atfork): Pass __dso_handle directly.
29188         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29189         (__dso_handle): Removed.
29190         * posix/wordexp-test.c: Include <dso_handle.h>.
29191         (__dso_handle): Remove declaration.
29192         (__app_register_atfork): Pass __dso_handle directly.
29193         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29194         (__dso_handle): Remove declaration.
29195         (at_quick_exit): Pass __dso_handle directly.
29196         * stdlib/atexit.c: Include <dso_handle.h>.
29197         (__dso_handle): Remove declaration.
29198         (atexit): Pass __dso_handle directly.
29199         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29200         (__dso_handle): Removed.
29202 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29204         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29205         using VDSO.
29207 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
29209         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29210         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29211         values to correct default value for given type.
29213 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
29215         [BZ #22101]
29216         * elf/Makefile (tests): Add tst-debug1.
29217         ($(objpfx)tst-debug1): New.
29218         ($(objpfx)tst-debug1.out): Likewise.
29219         ($(objpfx)tst-debug1mod1.so): Likewise.
29220         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29221         with p_filesz == 0.
29222         * elf/tst-debug1.c: New file.
29224 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29226         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29227         Define using __ifunc.
29229 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29231         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29232         exp2f() values.
29234 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29236         [BZ #22156]
29237         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29239 2017-09-26  Florian Weimer  <fweimer@redhat.com>
29241         * resolv/Makefile (tests-internal): Fix typo in comment.
29243 2017-09-26  Florian Weimer  <fweimer@redhat.com>
29245         * resolv/nss_dns/dns-host.c: Fix typo in comment.
29247 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29249         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29250         Use an union instead of a max_align_t array for __space,
29251         so that __space is the same size on all platforms.
29252         * malloc/scratch_buffer_grow_preserve.c
29253         (__libc_scratch_buffer_grow_preserve): Likewise.
29255         [BZ #22183]
29256         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29257         version to 2.
29258         * posix/Makefile (routines): Add glob-lstat-compat and
29259         glob64-lstat-compat.
29260         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29261         * posix/glob-lstat-compat.c: New file.
29262         * posix/glob64-lstat-compat.c: Likewise.
29263         * posix/tst-glob_lstat_compat.c: Likewise.
29264         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29265         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29266         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29267         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29268         Likewise.
29269         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29270         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29271         * posix/glob.c (glob_lstat): New function.
29272         (glob): Rename to __glob and add versioned symbol to 2.27.
29273         (glob_in_dir): Use glob_lstat.
29274         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29275         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29276         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29277         2.27.
29278         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29279         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29280         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29281         gl_lstat on glob call.
29282         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29283         and glob64 symbols.
29284         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29285         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29286         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29287         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29288         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29289         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29290         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29291         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29292         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29293         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29294         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29295         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29297         Likewise.
29298         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29300         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29301         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29302         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29303         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29304         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29306         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29307         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29308         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29309         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29311 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
29313         * configure.ac (AS): Require binutils 2.25 or later.
29314         * configure: Regenerated.
29316 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
29318         [BZ #22207]
29319         * stdlib/test-atexit-race-common.c (do_test): Minimize required
29320         VM size.
29322 2017-09-25  DJ Delorie  <dj@redhat.com>
29324         [BZ #22161]
29325         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29326         resetting timeout.
29328 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
29330         * sysdeps/ieee754/dbl-64/sincos32.h
29331         [SINCCOS32_H]: Remove define.
29332         [SINCOS32_H]: Define.
29334 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29336         * math/Versions (expf): New libm symbol at GLIBC_2.27.
29337         (exp2f): Likewise.
29338         * math/w_exp2f.c: New file.
29339         * math/w_expf.c: New file.
29340         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29341         * math/w_expf_compat.c (__expf_compat): Likewise.
29342         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29343         * sysdeps/ia64/fpu/e_expf.S: Likewise.
29344         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29345         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29346         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29347         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29348         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29349         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29350         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29351         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29352         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29353         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29354         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29355         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29357         Likewise.
29358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29359         Likewise.
29360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29361         Likewise.
29362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29363         Likewise.
29364         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29365         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29366         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29367         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29368         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29369         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29370         Likewise.
29371         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29372         Likewise.
29373         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29374         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29375         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29377 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29379         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29380         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29381         (roundtoint, converttoint): Likewise.
29382         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29383         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29384         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29385         * sysdeps/ieee754/flt-32/math_config.h: New file.
29386         * sysdeps/ieee754/flt-32/math_errf.c: New file.
29387         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29388         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29389         * sysdeps/i386/fpu/math_errf.c: New file.
29390         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29391         * sysdeps/ia64/fpu/math_errf.c: New file.
29392         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29393         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29395 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29397         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29398         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29399         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29400         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29401         to make sure that these symbols are defined.
29402         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29403         of <limits.h>
29404         (__need_NULL): Do not define.
29405         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29406         alignment.
29407         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29408         CMGROUP_MAX, cmsgcred): Do not define.
29409         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29410         NULL.
29411         * bits/socket.h: Likewise.
29412         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29413         __gettimeofday instead of gettimeofday.
29414         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29415         instead of settimeofday.
29417 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
29419         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29420         (asinhf): Define using libm_alias_float.
29421         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29422         (atanf): Define using libm_alias_float.
29423         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29424         (cbrtf): Define using libm_alias_float.
29425         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29426         (ceilf): Define using libm_alias_float.
29427         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29428         <libm-alias-float.h>.
29429         (copysignf): Define using libm_alias_float.
29430         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29431         (cosf): Define using libm_alias_float.
29432         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29433         (erff): Define using libm_alias_float.
29434         (erfcf): Likewise.
29435         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29436         (expm1f): Define using libm_alias_float.
29437         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29438         (fabsf): Define using libm_alias_float.
29439         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29440         (floorf): Define using libm_alias_float.
29441         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29442         (frexpf): Define using libm_alias_float.
29443         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29444         libm_alias_float.
29445         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29446         <libm-alias-float.h>.
29447         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29448         libm_alias_float.
29449         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29450         <libm-alias-float.h>.
29451         (getpayloadf): Define using libm_alias_float.
29452         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29453         <libm-alias-float.h>.
29454         (llrintf): Define using libm_alias_float.
29455         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29456         <libm-alias-float.h>.
29457         (llroundf): Define using libm_alias_float.
29458         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29459         (logbf): Define using libm_alias_float.
29460         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29461         (lrintf): Define using libm_alias_float.
29462         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29463         (lroundf): Define using libm_alias_float.
29464         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29465         (modff): Define using libm_alias_float.
29466         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29467         <libm-alias-float.h>.
29468         (nearbyintf): Define using libm_alias_float.
29469         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29470         <libm-alias-float.h>.
29471         (nextafterf): Define using libm_alias_float.
29472         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29473         <libm-alias-float.h>.
29474         (nextupf): Define using libm_alias_float.
29475         * sysdeps/ieee754/flt-32/s_remquof.c: Include
29476         <libm-alias-float.h>.
29477         (remquof): Define using libm_alias_float.
29478         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29479         (rintf): Define using libm_alias_float.
29480         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29481         <libm-alias-float.h>.
29482         (roundevenf): Define using libm_alias_float.
29483         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29484         (roundf): Define using libm_alias_float.
29485         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29486         using libm_alias_float.
29487         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29488         <libm-alias-float.h>.
29489         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29490         Define using libm_alias_float.
29491         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29492         <libm-alias-float.h>.
29493         (sincosf): Define using libm_alias_float.
29494         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29495         (sinf): Define using libm_alias_float.
29496         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29497         (tanf): Define using libm_alias_float.
29498         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29499         (tanhf): Define using libm_alias_float.
29500         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29501         <libm-alias-float.h>.
29502         (totalorderf): Define using libm_alias_float.
29503         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29504         <libm-alias-float.h>.
29505         (totalordermagf): Define using libm_alias_float.
29506         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29507         (truncf): Define using libm_alias_float.
29508         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29509         libm_alias_float.
29510         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29511         libm_alias_float.
29513 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29515         [BZ #22146]
29516         math/math.h: Let fpclassify use the builtin in C++ mode, even
29517         when optimazing for size.
29519 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
29521         * csu/Makefile (generated): Do not add version-info.h.
29522         (before-compile): Likewise.
29523         (all-Banner-files): Remove variable.
29524         ($(objpfx)version-info.h): Remove rule.
29525         * csu/version.c (banner): Do not include "version-info.h".
29526         * libidn/Banner: Remove.
29527         * manual/contrib.texi (Simon Josefsson): New entry.
29529 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29531         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29532         Remove conditionals on LDBL_MANT_DIG.
29533         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29534         (__ieee754_lgammal_r): Likewise.
29536 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29538         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29539         _Float128 and L().
29540         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29541         _Float128 and L(). Replace _Float128 with long double and L(x)
29542         with xL, throughout the file.
29543         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29544         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29545         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29546         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29548 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29550         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29551         sysdeps/ieee754/ldbl-128ibm.
29552         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29553         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29554         of including it.  Keep _Float128 and L() intact.  These will be
29555         reviewed by a separate patch.
29556         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29557         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29558         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29559         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29561 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29564         (__finitef128): Define to __redirect___finitef128.
29565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29566         (__isinff128): Define to __redirect___isinff128.
29567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29568         (__isnanf128): Define to __redirect___isnanf128.
29570 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29572         * sysdeps/powerpc/powerpc64le/Makefile
29573         (CFLAGS-tst-strtod-nan-locale.c): New variable.
29574         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29576 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
29577             Carlos O'Donell  <carlos@redhat.com>
29579         [BZ #22180]
29580         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29581         * stdlib/test-dlclose-exit-race.c: New file.
29582         * stdlib/test-dlclose-exit-race-helper.c: New file.
29583         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29585 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
29587         * crypt/Banner: Remove file.
29588         * nptl/Banner: Likewise.
29589         * resolv/Banner: Likewise.
29590         * soft-fp/Banner: Likewise.
29591         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29592         ($(objpfx)version.d): Remove dependency on banner.h.
29593         ($(objpfx)version.os): Likewise.
29594         * nptl/version.c (banner): Do not include banner.h.
29595         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29596         Jelinek and BIND code.
29598 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
29599             Carlos O'Donell  <carlos@redhat.com>
29601         * support/xdlfcn.h: New file.
29602         * support/xdlfcn.c: New file.
29603         * support/Makefile (libsupport-routines): Add xdlfcn.
29604         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29606 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
29608         [BZ #20142]
29609         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29610         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29611         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29612         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29613         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29614         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29615         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29616         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29618 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
29619             Ricky Zhou  <rickyz@google.com>
29620             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
29622         [BZ #14333]
29623         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29624         Remove atomics.
29625         (__new_exitfn): Fail registration when we finished at_exit processing.
29626         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29627         * stdlib/on_exit.c (__on_exit): Likewise.
29628         * stdlib/exit.c (__exit_funcs_done): New variable.
29629         (__run_exit_handlers): Use __exit_funcs_lock.
29630         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29631         declarations.
29632         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29633         (test-cxa_atexit-race, test-on_exit-race): New tests.
29634         * stdlib/test-atexit-race-common.c: New file.
29635         * stdlib/test-atexit-race.c: New file.
29636         * stdlib/test-at_quick_exit-race.c: New file.
29637         * stdlib/test-cxa_atexit-race.c: New file.
29638         * stdlib/test-on_exit-race.c: New file.
29640 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29642         * benchtests/Makefile: Add exp2f and log2f benchmarks.
29643         * benchtests/exp2f-inputs: Copy of expf-inputs.
29644         * benchtests/log2f-inputs: Copy of logf-inputs.
29646 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
29648         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29649         Explicitly take address of first element of array arguments in
29650         call to INLINE_SYSCALL.
29652 2017-09-19  Andreas Schwab  <schwab@suse.de>
29654         [BZ #22134]
29655         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29656         execveat first.
29657         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29658         unimplemented.
29659         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29660         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29661         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29662         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29663         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29664         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29665         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29666         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29667         * posix/Makefile (tests): Add tst-fexecve.
29668         * posix/tst-fexecve.c: New file.
29670 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
29672         * benchtests/Makefile: Add logf benchmark.
29673         * benchtests/logf-inputs: Add reduced trace from wrf_r.
29675 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
29677         * benchtests/Makefile: Add expf benchmark.
29678         * benchtests/expf-inputs: Add reduced trace from wrf_r.
29680 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
29682         * csu/Makefile: Add -funwind-tables to libc-start.c.
29683         * debug/Makefile: Add -funwind-tables to backtrace.c.
29684         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29685         * sysdeps/arm/Makefile: Likewise.
29686         * sysdeps/i386/Makefile: Likewise.
29687         * sysdeps/m68k/Makefile: Likewise.
29688         * sysdeps/mips/Makefile: Likewise.
29689         * sysdeps/nios2/Makefile: Likewise.
29690         * sysdeps/sh/Makefile: Likewise.
29691         * sysdeps/sparc/Makefile: Likewise.
29693 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
29695         * benchtests/Makefile (bench-math): Add trunc and truncf.
29696         (CFLAGS-bench-trunc.c): New variable.
29697         (CFLAGS-bench-truncf.c): Likewise.
29698         * benchtests/trunc-inputs: New file.
29699         * benchtests/truncf-inputs: Likewise.
29701 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29703         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29705 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
29707         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29708         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29709         redefine.
29710         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29711         (exp10l): Define as weak alias.
29712         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29713         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29714         and redefine.
29715         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29716         (remainderl): Define as weak alias.
29718         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29719         (fmal): Define using libm_alias_ldouble.
29720         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29721         (acoshl): Define using libm_alias_ldouble.
29722         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29723         (acosl): Define using libm_alias_ldouble.
29724         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29725         (asinl): Define using libm_alias_ldouble.
29726         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29727         (atan2l): Define using libm_alias_ldouble.
29728         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29729         (atanhl): Define using libm_alias_ldouble.
29730         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29731         (coshl): Define using libm_alias_ldouble.
29732         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29733         (exp10l): Define using libm_alias_ldouble.
29734         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29735         (exp2l): Define using libm_alias_ldouble.
29736         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29737         (expl): Define using libm_alias_ldouble.
29738         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29739         (fmodl): Define using libm_alias_ldouble.
29740         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29741         (hypotl): Define using libm_alias_ldouble.
29742         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29743         (j0l): Define using libm_alias_ldouble.
29744         (y0l): Likewise.
29745         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29746         (j1l): Define using libm_alias_ldouble.
29747         (y1l): Likewise.
29748         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29749         (jnl): Define using libm_alias_ldouble.
29750         (ynl): Likewise.
29751         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29752         (log10l): Define using libm_alias_ldouble.
29753         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29754         (log2l): Define using libm_alias_ldouble.
29755         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29756         (logl): Define using libm_alias_ldouble.
29757         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29758         (powl): Define using libm_alias_ldouble.
29759         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29760         (remainderl): Define using libm_alias_ldouble.
29761         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29762         (sinhl): Define using libm_alias_ldouble.
29763         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29764         (sqrtl): Define using libm_alias_ldouble.
29765         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29766         (tgammal): Define using libm_alias_ldouble.
29767         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29768         (exp10l): Do not use long_double_symbol here.
29769         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29770         [LIBM_SVID_COMPAT] (remainderl): Likewise.
29771         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29772         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29773         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29774         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29775         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29776         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29777         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29778         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29779         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29780         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29781         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29782         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29783         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29784         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29785         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29786         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29787         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29788         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29789         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29790         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29792 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
29794         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29795         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29797 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29799         * io/read.c (read): Add libc_hidden_weak.
29800         * sysdeps/mach/hurd/read.c (read): Likewise.
29801         * io/write.c (write): Likewise.
29802         * sysdeps/mach/hurd/write.c (write): Likewise.
29803         * io/pread64.c (__pread64): Likewise.
29804         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29805         * posix/pread64.c (__pread64): Add libc_hidden_def.
29807 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
29809         * benchtests/scripts/compare_strings.py: New option -g.
29810         (draw_graph): Print a message that a graph is being generated.
29811         (process_results): Generate graph only if -g is passed.
29812         (main): Process option -g.
29814         * benchtests/scripts/compare_strings.py (process_results):
29815         Better spacing for output.
29817         * benchtests/scripts/compare_strings.py: Use argparse.
29818         * benchtests/README: Document existence of compare_strings.py.
29820 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
29822         * math/s_fma.c: Include <libm-alias-double.h>.
29823         (fma): Define using libm_alias_double.
29824         * math/s_nextafter.c: Include <libm-alias-double.h>.
29825         (nextafter): Define using libm_alias_double.
29826         * math/w_acos_compat.c: Include <libm-alias-double.h>.
29827         (acos): Define using libm_alias_double.
29828         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29829         (aocsh): Define using libm_alias_double.
29830         * math/w_asin_compat.c: Include <libm-alias-double.h>.
29831         (asin): Define using libm_alias_double.
29832         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29833         (atan2): Define using libm_alias_double.
29834         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29835         (atanh): Define using libm_alias_double.
29836         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29837         (cosh): Define using libm_alias_double.
29838         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29839         (exp10): Define using libm_alias_double.
29840         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29841         (exp2): Define using libm_alias_double.
29842         * math/w_exp_compat.c: Include <libm-alias-double.h>.
29843         (exp): Define using libm_alias_double.
29844         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29845         (fmod): Define using libm_alias_double.
29846         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29847         (hypot): Define using libm_alias_double.
29848         * math/w_j0_compat.c: Include <libm-alias-double.h>.
29849         (j0): Define using libm_alias_double.
29850         (y0): Likewise.
29851         * math/w_j1_compat.c: Include <libm-alias-double.h>.
29852         (j1): Define using libm_alias_double.
29853         (y1): Likewise.
29854         * math/w_jn_compat.c: Include <libm-alias-double.h>.
29855         (jn): Define using libm_alias_double.
29856         (yn): Likewise.
29857         * math/w_log10_compat.c: Include <libm-alias-double.h>.
29858         (log10): Define using libm_alias_double.
29859         * math/w_log2_compat.c: Include <libm-alias-double.h>.
29860         (log2): Define using libm_alias_double.
29861         * math/w_log_compat.c: Include <libm-alias-double.h>.
29862         (log): Define using libm_alias_double.
29863         * math/w_pow_compat.c: Include <libm-alias-double.h>.
29864         (pow): Define using libm_alias_double.
29865         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29866         (remainder): Define using libm_alias_double.
29867         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29868         (sinh): Define using libm_alias_double.
29869         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29870         (sqrt): Define using libm_alias_double.
29871         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29872         (tgamma): Define using libm_alias_double.
29873         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29874         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29875         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29876         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29877         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29878         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29879         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29880         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29881         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29882         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29883         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29884         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29885         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29886         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29887         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29888         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29889         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29890         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29891         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29892         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29893         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29894         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29895         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29896         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29897         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29899         * math/e_acoshl.c: Remove.
29900         * math/e_acosl.c: Likewise.
29901         * math/e_asinl.c: Likewise.
29902         * math/e_atan2l.c: Likewise.
29903         * math/e_atanhl.c: Likewise.
29904         * math/e_coshl.c: Likewise.
29905         * math/e_expl.c: Likewise.
29906         * math/e_fmodl.c: Likewise.
29907         * math/e_gammal_r.c: Likewise.
29908         * math/e_hypotl.c: Likewise.
29909         * math/e_j0l.c: Likewise.
29910         * math/e_j1l.c: Likewise.
29911         * math/e_jnl.c: Likewise.
29912         * math/e_lgammal_r.c: Likewise.
29913         * math/e_log10l.c: Likewise.
29914         * math/e_log2l.c: Likewise.
29915         * math/e_logl.c: Likewise.
29916         * math/e_powl.c: Likewise.
29917         * math/e_rem_pio2l.c: Likewise.
29918         * math/e_sinhl.c: Likewise.
29919         * math/e_sqrtf128.c: Likewise.
29920         * math/e_sqrtl.c: Likewise.
29921         * math/k_cosl.c: Likewise.
29922         * math/k_sinl.c: Likewise.
29923         * math/k_tanl.c: Likewise.
29924         * math/s_asinhl.c: Likewise.
29925         * math/s_atanl.c: Likewise.
29926         * math/s_cbrtl.c: Likewise.
29927         * math/s_erfl.c: Likewise.
29928         * math/s_expm1l.c: Likewise.
29929         * math/s_log1pl.c: Likewise.
29930         * math/s_tanhl.c: Likewise.
29932 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29934         [BZ #21745]
29935         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29936         [$(subdir) = math] (sysdep_calls): New variable.  Has the
29937         previous contents of sysdep_routines, but re-sorted..
29938         [$(subdir) = math] (sysdep_routines): Re-use the contents from
29939         sysdep_calls.
29940         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29941         defined in sysdep_calls and replace by the respective m_* names.
29942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29943         (compat_symbol): Undefine to avoid duplicated compat symbols in
29944         libc.
29946 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
29948         * math/s_fmaf.c: Include <libm-alias-float.h>.
29949         (fmaf): Define using libm_alias_float.
29950         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29951         (acosf): Define using libm_alias_float.
29952         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29953         (acoshf): Define using libm_alias_float.
29954         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29955         (asinf): Define using libm_alias_float.
29956         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29957         (atan2f): Define using libm_alias_float.
29958         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29959         (atanhf): Define using libm_alias_float.
29960         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29961         (coshf): Define using libm_alias_float.
29962         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29963         (exp10f): Define using libm_alias_float.
29964         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29965         (fmodf): Define using libm_alias_float.
29966         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29967         (hypotf): Define using libm_alias_float.
29968         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29969         (j0f): Define using libm_alias_float.
29970         (y0f): Likewise.
29971         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29972         (j1f): Define using libm_alias_float.
29973         (y1f): Likewise.
29974         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29975         (jnf): Define using libm_alias_float.
29976         (ynf): Likewise.
29977         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29978         (log10f): Define using libm_alias_float.
29979         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29980         (log2f): Define using libm_alias_float.
29981         * math/w_logf_compat.c: Include <libm-alias-float.h>.
29982         (logf): Define using libm_alias_float.
29983         * math/w_powf_compat.c: Include <libm-alias-float.h>.
29984         (powf): Define using libm_alias_float.
29985         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29986         (remainderf): Define using libm_alias_float.
29987         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29988         (sinhf): Define using libm_alias_float.
29989         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29990         (sqrtf): Define using libm_alias_float.
29991         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29992         (tgammaf): Define using libm_alias_float.
29994 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
29996         * include/math.h (roundeven): Change hidden_proto call to
29997         __roundeven.
29998         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29999         alias.
30000         [NO_LONG_DOUBLE] (__j0l): New strong alias.
30001         (y0): Rename to __y0 and define as weak alias.
30002         [NO_LONG_DOUBLE] (__y0l): New strong alias.
30003         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30004         alias.
30005         (y0f): Rename to __y0f and define as weak alias.
30006         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30007         alias.
30008         [NO_LONG_DOUBLE] (__j1l): New strong alias.
30009         (y1): Rename to __y1 and define as weak alias.
30010         [NO_LONG_DOUBLE] (__y1l): New strong alias.
30011         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30012         alias.
30013         (y1f): Rename to __y1f and define as weak alias.
30014         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30015         alias.
30016         [NO_LONG_DOUBLE] (__jnl): New strong alias.
30017         (yn): Rename to __yn and define as weak alias.
30018         [NO_LONG_DOUBLE] (__ynl): New strong alias.
30019         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30020         alias.
30021         (ynf): Rename to __ynf and define as weak alias.
30022         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30023         (fromfp): Define as weak alias.
30024         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30025         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30026         (fromfpx): Define as weak alias.
30027         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30028         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30029         __getpayload and define as weak alias.
30030         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30031         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30032         __roundeven and define as weak alias.
30033         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30034         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30035         __setpayload.
30036         (setpayload): Define as weak alias.
30037         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30038         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30039         __setpayloadsig.
30040         (setpayloadsig): Define as weak alias.
30041         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30042         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30043         __totalorder and define as weak alias.
30044         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30045         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30046         to __totalordermag and define as weak alias.
30047         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30048         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30049         (ufromfp): Define as weak alias.
30050         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30051         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30052         __ufromfpx.
30053         (ufromfpx): Define as weak alias.
30054         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30055         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30056         Rename to __getpayload and define as weak alias.
30057         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30058         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30059         Rename to __roundeven and define as weak alias.
30060         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30061         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30062         Rename to __totalorder and define as weak alias.
30063         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30064         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30065         (totalordermag): Rename to __totalordermag and define as weak
30066         alias.
30067         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30068         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30069         macro.
30070         (__roundevenl): Likewise.
30071         (__totalorderl): Likewise.
30072         (__totalordermagl): Likewise
30073         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30074         __fromfpf128.
30075         (fromfpf128): Define as weak alias.
30076         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30077         __fromfpxf128.
30078         (fromfpxf128): Define as weak alias.
30079         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30080         __setpayloadf128.
30081         (setpayloadf128): Define as weak alias.
30082         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30083         __setpayloadsigf128.
30084         (setpayloadsigf128): Define as weak alias.
30085         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30086         __ufromfpf128.
30087         (ufromfpf128): Define as weak alias.
30088         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30089         __ufromfpxf128.
30090         (ufromfpxf128): Define as weak alias.
30091         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30092         (fromfpf): Define as weak alias.
30093         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30094         __fromfpxf.
30095         (fromfpxf): Define as weak alias.
30096         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30097         __getpayloadf and define as weak alias.
30098         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30099         __roundevenf and define as weak alias.
30100         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30101         __setpayloadf.
30102         (setpayloadf): Define as weak alias.
30103         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30104         __setpayloadsigf.
30105         (setpayloadsigf): Define as weak alias.
30106         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30107         __totalorderf and define as weak alias.
30108         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30109         Rename to __totalordermagf and define as weak alias.
30110         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30111         __ufromfpf.
30112         (ufromfpf): Define as weak alias.
30113         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30114         __ufromfpxf.
30115         (ufromfpxf): Define as weak alias.
30116         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30117         __fromfpl.
30118         (fromfpl): Define as weak alias.
30119         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30120         __fromfpxl.
30121         (fromfpxl): Define as weak alias.
30122         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30123         to __getpayloadl and define as weak alias.
30124         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30125         __roundevenl and define as weak alias.
30126         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30127         __setpayloadl.
30128         (setpayloadl): Define as weak alias.
30129         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30130         __setpayloadsigl.
30131         (setpayloadsigl): Define as weak alias.
30132         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30133         to __totalorderl and define as weak alias.
30134         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30135         Rename to __totalordermagl and define as weak alias.
30136         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30137         __ufromfpl.
30138         (ufromfpl): Define as weak alias.
30139         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30140         __ufromfpxl.
30141         (ufromfpxl): Define as weak alias.
30142         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30143         __fromfpl.
30144         (fromfpl): Define as weak alias.
30145         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30146         __fromfpxl.
30147         (fromfpxl): Define as weak alias.
30148         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30149         Rename to __getpayloadl and define as weak alias.
30150         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30151         to __roundevenl and define as weak alias.  Call __roundeven
30152         instead of roundeven.
30153         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30154         __setpayloadl.
30155         (setpayloadl): Define as weak alias.
30156         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30157         __setpayloadsigl.
30158         (setpayloadsigl): Define as weak alias.
30159         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30160         Rename to __totalorderl and define as weak alias.
30161         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30162         Rename to __totalordermagl and define as weak alias.
30163         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30164         __ufromfpl.
30165         (ufromfpl): Define as weak alias.
30166         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30167         __ufromfpxl.
30168         (ufromfpxl): Define as weak alias.
30169         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30170         __fromfpl.
30171         (fromfpl): Define as weak alias.
30172         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30173         __fromfpxl.
30174         (fromfpxl): Define as weak alias.
30175         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30176         __getpayloadl and define as weak alias.
30177         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30178         __roundevenl and define as weak alias.
30179         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30180         __setpayloadl.
30181         (setpayloadl): Define as weak alias.
30182         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30183         __setpayloadsigl.
30184         (setpayloadsigl): Define as weak alias.
30185         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30186         __totalorderl and define as weak alias.
30187         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30188         Rename to __totalordermagl and define as weak alias.
30189         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30190         __ufromfpl.
30191         (ufromfpl): Define as weak alias.
30192         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30193         __ufromfpxl.
30194         (ufromfpxl): Define as weak alias.
30196 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30198         * benchtests/bench-string.h (realloc_bufs): New function.
30199         (test_init): Call it.
30200         * benchtests/bench-memset-large.c (do_test): Likewise.
30201         * benchtests/bench-memset.c (do_test): Likewise.
30203         * benchtests/bench-memset-large.c: Print output in JSON
30204         format.
30205         * benchtests/bench-memset.c: Likewise.
30207 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
30209         [BZ #21084]
30210         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30211         * iconvdata/Makefile: Add IBM858.
30212         * iconvdata/gconv-modules: Likewise.
30213         * iconvdata/tst-tables.sh: Likewise.
30214         * iconvdata/ibm858.c: New file.
30215         * localedata/charmaps/IBM858: Likewise.
30217 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
30219         [BZ #22023]
30220         * locales/niu_NZ (LC_TIME): copy "niu_NU".
30221         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30223 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
30225         [BZ #22112]
30226         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30227         and add tel_int_fmt.
30229 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30231         * sysdeps/generic/libm-alias-float128.h: New file.
30232         * sysdeps/generic/math-type-macros-float128.h: Include
30233         <libm-alias-float128.h>.
30234         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30236 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30238         * sysdeps/generic/libm-alias-ldouble.h: New file.
30239         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30240         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30241         * sysdeps/generic/math-type-macros-ldouble.h: Include
30242         <libm-alias-ldouble.h>.
30243         [!declare_mgen_alias] (declare_mgen_alias): Define to use
30244         libm_alias_ldouble.
30246 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30248         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30249         * math/w_exp_compat.c: ... here.
30250         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30251         * math/w_expf_compat.c: ... here.
30252         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30253         * math/w_expl_compat.c: ... here.
30254         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30255         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30256         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30257         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30259 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30261         * math/w_scalbln_template.c (strong_alias): Do not undefine and
30262         redefine.
30263         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30264         macro.
30265         (ldexpl): Only define as compat symbol for libc, not libm.
30266         (scalbnl): Define as compat symbol for libc here.
30267         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30268         define for [IS_IN (libc)].
30269         (__ldexpl_2): Remove alias.
30270         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30271         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
30272         name in long_double_symbol call.
30273         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30274         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30275         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30276         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30277         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30278         Remove macro.
30279         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30280         Define as compat symbol.
30282 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30284         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30285         * sysdeps/unix/sysv/linux/alpha/Makefile
30286         [$(subdir) = csu] (sysdep_routines): Remove rule.
30288 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30290         * sysdeps/generic/libm-alias-double.h: New file.
30291         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30292         * sysdeps/generic/math-type-macros-double.h: Include
30293         <libm-alias-double.h>.
30294         [declare_mgen_alias] (declare_mgen_alias): Define to use
30295         libm_alias_double.
30296         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30297         (M_LIBM_NEED_COMPAT): Remove macro.
30298         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30299         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30300         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30301         code.
30302         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30303         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30304         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30305         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30306         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30307         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30308         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30309         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30310         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30311         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30312         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30313         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30314         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30315         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30316         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30317         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30318         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30319         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30320         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30321         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30322         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30323         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30324         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30325         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30326         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30327         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30328         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30329         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30330         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30331         macro.
30332         (declare_mgen_alias): New macro.
30333         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30334         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30336         (M_LIBM_NEED_COMPAT): Remove macro.
30337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30338         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30339         <first-versions.h>.
30340         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30341         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30343 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
30345         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30346         (declare_mgen_alias_2): Remove.
30347         * sysdeps/generic/math-type-macros-double.h
30348         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30349         Likewise.
30350         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30351         alias.
30352         (ldexp): Define with declare_mgen_alias.
30353         (scalbn): Likewise.
30355 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
30357         * grp/initgroups.c: Include config.h.
30358         (DEFAULT_CONFIG): New macro.
30359         (internal_getgrouplist): Use DEFAULT_CONFIG.
30360         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30361         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30362         (DEFAULT_DEFCONFIG): New macro.
30363         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30364         * nss/grp-lookup.c: Include config.h
30365         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30366         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30367         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30368         * manual/nss.texi: Update default values section.
30370 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
30372         [BZ #21967]
30373         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30374         New.
30375         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30376         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30377         Handle MathVec_Prefer_No_AVX512.
30378         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30379         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30380         is set.
30382 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30384         * posix/sched_primax.c (__sched_get_priority_max): Add
30385         libc_hidden_def.
30386         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30387         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30388         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30389         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30390         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30391         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30392         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30393         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30394         Add aliases.
30396 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
30398         * sysdeps/generic/libm-alias-float.h: New file.
30399         * sysdeps/generic/math-type-macros-float.h: Include
30400         <libm-alias-float.h>.
30401         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30403 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
30405         [BZ #22093]
30406         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30407         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30408         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30409         (HWCAP_IMPORTANT): Likewise.
30410         (HWCAP_X86_64): New enum.
30411         (HWCAP_X86_AVX512_1): Updated.
30412         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30413         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30414         (modules-names): Add x86_64/tst-x86_64mod-1.
30415         (LDFLAGS-tst-x86_64mod-1.so): New.
30416         ($(objpfx)tst-x86_64-1): Likewise.
30417         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30418         (tst-x86_64-1-clean): Likewise.
30419         * sysdeps/x86_64/tst-x86_64-1.c: New file.
30420         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30422 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30424         * po/sv.po: Update translations.
30425         * po/fr.po: Likewise.
30427 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30429         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30430         seconds.
30431         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30432         seconds.
30433         * elf/rtld-Rules: Fix $(error) use.
30435 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
30437         [BZ #14925]
30438         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30439         * locale/iso-639.def: Change “Bengali” to “Bangla”.
30440         * localedata/locales/bn_BD: “Bengali” was still used in some
30441         comments. Change it to “Bangla”.
30443 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
30445         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30447 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
30449         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30450         thunderx2t99p1 to list of cpu names.
30451         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30452         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30454 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
30456         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30457         Use strcmp instead of tunable_is_name.
30459 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
30461         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30462         (F_GET_RW_HINT): New macro.
30463         [__USE_GNU] (F_SET_RW_HINT): Likewise.
30464         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30465         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30466         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30467         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30468         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30469         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30470         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30471         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30473         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30474         (F_ADD_SEALS): New macro.
30475         [__USE_GNU] (F_GET_SEALS): Likewise.
30476         [__USE_GNU] (F_SEAL_SEAL): Likewise.
30477         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30478         [__USE_GNU] (F_SEAL_GROW): Likewise.
30479         [__USE_GNU] (F_SEAL_WRITE): Likewise.
30481 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30483         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30484         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30485         * posix/glob_internal.h (__glob_pattern_type):
30486         * posix/glob.c (glob):
30487         * posix/glob_pattern_p.c (__glob_pattern_p):
30488         Use them.
30490         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30491         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30492         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30493         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30494         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30496         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30497         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30498         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30499         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30500         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30501         * sysdeps/wordsize-64/glob.c: Likewise.
30502         * sysdeps/wordsize-64/glob64.c: Likewise.
30503         * sysdeps/wordsize-64/globfree.c: Likewise.
30504         * sysdeps/wordsize-64/globfree64.c: Likewise.
30505         * sysdeps/unix/sysv/linux/glob.c: New file.
30506         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30507         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30508         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30509         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30510         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30511         adds !GLOB_NO_OLD_VERSION as an extra condition.
30512         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30513         using relative path instead of absolute one.
30514         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30515         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30516         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30517         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30518         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30519         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30521         [BZ #1062]
30522         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30523         (glob): Use the same scratch buffer for both getlogin_r and
30524         getpwnam_r.  Don’t require preallocation of the login name.  This
30525         simplifies storage allocation, and corrects the handling of
30526         long login names.
30528         [BZ #1062]
30529         * posix/glob.c (glob): Port recent patches to platforms
30530         lacking getpwnam_r.
30531         (glob): Fix longstanding misuse of errno after getpwnam_r, which
30532         returns an error number rather than setting errno.
30534         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30535         instead of GCC extension.
30536         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30537         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30538         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30540         [BZ #866]
30541         [BZ #1062]
30542         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30543         * posix/bug-glob1.c: Remove file.
30544         * posix/tst-glob_symlinks.c: New file.
30545         * posix/glob.c (__lstat64): New macro.
30546         (is_dir): New function.
30547         (glob, glob_in_dir): Match symlinks even if they are dangling.
30548         (link_stat, link_exists_p): Remove.  All uses removed.
30550         [BZ #1062]
30551         [BZ #19971]
30552         * posix/glob.c (struct readdir_result): Remove skip_entry member.
30553         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30554         All uses removed.
30556         [BZ #1062]
30557         CVE-2017-15671
30558         * posix/Makefile (routines): Add globfree, globfree64, and
30559         glob_pattern_p.
30560         * posix/flexmember.h: New file.
30561         * posix/glob_internal.h: Likewise.
30562         * posix/glob_pattern_p.c: Likewise.
30563         * posix/globfree.c: Likewise.
30564         * posix/globfree64.c: Likewise.
30565         * sysdeps/gnu/globfree64.c: Likewise.
30566         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30567         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30568         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30569         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30570         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30571         * sysdeps/wordsize-64/globfree.c: Likewise.
30572         * sysdeps/wordsize-64/globfree64.c: Likewise.
30573         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30574         [NDEBUG): Remove comments.
30575         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30576         (dirent_type): New type.  Use uint_fast8_t not
30577         uint8_t, as C99 does not require uint8_t.
30578         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30579         (struct readdir_result): Use dirent_type.  Do not define skip_entry
30580         unless it is needed; this saves a byte on platforms lacking d_ino.
30581         (readdir_result_type, readdir_result_skip_entry):
30582         New functions, replacing ...
30583         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30584         these functions, which were removed.  This makes the callers
30585         easier to read.  All callers changed.
30586         (D_INO_TO_RESULT): Now empty if there is no d_ino.
30587         (size_add_wrapv, glob_use_alloca): New static functions.
30588         (glob, glob_in_dir): Check for size_t overflow in several places,
30589         and fix some size_t checks that were not quite right.
30590         Remove old code using SHELL since Bash no longer
30591         uses this.
30592         (glob, prefix_array): Separate MS code better.
30593         (glob_in_dir): Remove old Amiga and VMS code.
30594         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30595         separate files.
30596         (glob_in_dir): Do not rely on undefined behavior in accessing
30597         struct members beyond their bounds.  Use a flexible array member
30598         instead
30599         (link_stat): Rename from link_exists2_p and return -1/0 instead of
30600         0/1.  Caller changed.
30601         (glob): Fix memory leaks.
30602         * posix/glob64 (globfree64): Move to separate file.
30603         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30604         (globfree64): Remove hidden alias.
30605         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30606         oldglob.
30607         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30608         separate file.
30609         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30610         define.
30611         Move compat code to separate file.
30612         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30613         separate file.
30615 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
30617         * resolv/tst-resolv-qtypes.c (domain): Changed to
30618         "const char domain[] =".
30620 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
30622         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30623         version to 3.1.6.
30625         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30626         (TCP_MD5SIG_EXT): Likewise.
30627         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30628         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30629         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
30631         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30633 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
30635         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30637 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
30639         [BZ #22100]
30640         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30642 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30644         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30645         before assuming that the file is empty.  Avoid testing buffer content
30646         when nread == 0.
30648 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30650         [BZ #18858]
30651         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30652         Remove define.
30653         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30654         Likewise.
30655         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30656         Likewise.
30657         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30658         Likewise.
30659         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30660         Likewise.
30661         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30662         Likewise.
30663         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30664         Likewise.
30666 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30668         * malloc/dynarray_emplace_enlarge.c
30669         (__libc_dynarray_emplace_enlarge): Add missing else.
30671 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30673         [BZ #22096]
30674         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30675         case of failure to obtain the global conf object.
30677 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30679         [BZ #22095]
30680         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30681         dynarray allocation failure.
30683 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30685         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30686         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30687         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30688         New functions.
30689         (response): Call them.  Add 'p', '6' flag processing.
30690         (test_reverse): New function.
30691         (test_get2_any): Call it.
30692         (test_no_inet6): Add 'p' test.
30693         (test_inet6): Likewise.
30695 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30697         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30698         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30699         the QNAME.
30700         (test_gai): Adjust query names.  Add additional tests.
30701         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30702         test_get2.  Adjust query names.  Add additional tests.
30703         (test_no_inet6): New function, extracted from threadfunc.
30704         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30705         Add additional tests.
30707 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
30709         [BZ #22070]
30710         * localedata/unicode-gen/utf8_gen.py: Set the width for
30711         characters with Prepended_Concatenation_Mark property to 1
30712         * localedata/charmaps/UTF-8: Updated using the improved script.
30714 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
30716         [BZ #21750]
30717         * localedata/unicode-gen/utf8_gen.py: Improve the script to
30718         use the range notation for all ranges of neighbouring characters
30719         with the same width.
30721 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
30723         * sysdeps/generic/math-type-macros-double.h: Include
30724         <math-svid-compat.h>.
30725         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30726         * sysdeps/generic/math-type-macros-float.h: Include
30727         <math-svid-compat.h>.
30728         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30729         * sysdeps/generic/math-type-macros-ldouble.h: Include
30730         <math-svid-compat.h>.
30731         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30732         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30733         condition.
30734         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30735         * math/w_acosf_compat.c: Likewise.
30736         * math/w_acosh_compat.c: Likewise.
30737         * math/w_acoshf_compat.c: Likewise.
30738         * math/w_acoshl_compat.c: Likewise.
30739         * math/w_acosl_compat.c: Likewise.
30740         * math/w_asin_compat.c: Likewise.
30741         * math/w_asinf_compat.c: Likewise.
30742         * math/w_asinl_compat.c: Likewise.
30743         * math/w_atan2_compat.c: Likewise.
30744         * math/w_atan2f_compat.c: Likewise.
30745         * math/w_atan2l_compat.c: Likewise.
30746         * math/w_atanh_compat.c: Likewise.
30747         * math/w_atanhf_compat.c: Likewise.
30748         * math/w_atanhl_compat.c: Likewise.
30749         * math/w_cosh_compat.c: Likewise.
30750         * math/w_coshf_compat.c: Likewise.
30751         * math/w_coshl_compat.c: Likewise.
30752         * math/w_exp10_compat.c: Likewise.
30753         * math/w_exp10f_compat.c: Likewise.
30754         * math/w_exp10l_compat.c: Likewise.
30755         * math/w_exp2_compat.c: Likewise.
30756         * math/w_exp2f_compat.c: Likewise.
30757         * math/w_exp2l_compat.c: Likewise.
30758         * math/w_fmod_compat.c: Likewise.
30759         * math/w_fmodf_compat.c: Likewise.
30760         * math/w_fmodl_compat.c: Likewise.
30761         * math/w_hypot_compat.c: Likewise.
30762         * math/w_hypotf_compat.c: Likewise.
30763         * math/w_hypotl_compat.c: Likewise.
30764         * math/w_j0_compat.c: Likewise.
30765         * math/w_j0f_compat.c: Likewise.
30766         * math/w_j0l_compat.c: Likewise.
30767         * math/w_j1_compat.c: Likewise.
30768         * math/w_j1f_compat.c: Likewise.
30769         * math/w_j1l_compat.c: Likewise.
30770         * math/w_jn_compat.c: Likewise.
30771         * math/w_jnf_compat.c: Likewise.
30772         * math/w_jnl_compat.c: Likewise.
30773         * math/w_lgamma_r_compat.c: Likewise.
30774         * math/w_lgammaf_r_compat.c: Likewise.
30775         * math/w_lgammal_r_compat.c: Likewise.
30776         * math/w_log10_compat.c: Likewise.
30777         * math/w_log10f_compat.c: Likewise.
30778         * math/w_log10l_compat.c: Likewise.
30779         * math/w_log2_compat.c: Likewise.
30780         * math/w_log2f_compat.c: Likewise.
30781         * math/w_log2l_compat.c: Likewise.
30782         * math/w_log_compat.c: Likewise.
30783         * math/w_logf_compat.c: Likewise.
30784         * math/w_logl_compat.c: Likewise.
30785         * math/w_pow_compat.c: Likewise.
30786         * math/w_powf_compat.c: Likewise.
30787         * math/w_powl_compat.c: Likewise.
30788         * math/w_remainder_compat.c: Likewise.
30789         * math/w_remainderf_compat.c: Likewise.
30790         * math/w_remainderl_compat.c: Likewise.
30791         * math/w_sinh_compat.c: Likewise.
30792         * math/w_sinhf_compat.c: Likewise.
30793         * math/w_sinhl_compat.c: Likewise.
30794         * math/w_sqrt_compat.c: Likewise.
30795         * math/w_sqrtf_compat.c: Likewise.
30796         * math/w_sqrtl_compat.c: Likewise.
30797         * math/w_tgamma_compat.c: Likewise.
30798         * math/w_tgammaf_compat.c: Likewise.
30799         * math/w_tgammal_compat.c: Likewise.
30800         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30801         [LIBM_SVID_COMPAT].
30802         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30803         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30804         [LIBM_SVID_COMPAT].
30805         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30806         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30807         [LIBM_SVID_COMPAT].
30808         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30809         * sysdeps/i386/fpu/w_sqrt.c: New file.
30810         * sysdeps/ia64/fpu/w_acos.c: Likewise.
30811         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30812         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30813         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30814         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30815         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30816         * sysdeps/ia64/fpu/w_asin.c: Likewise.
30817         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30818         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30819         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30820         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30821         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30822         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30823         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30824         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30825         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30826         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30827         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30828         * sysdeps/ia64/fpu/w_exp.c: Likewise.
30829         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30830         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30831         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30832         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30833         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30834         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30835         * sysdeps/ia64/fpu/w_expf.c: Likewise.
30836         * sysdeps/ia64/fpu/w_expl.c: Likewise.
30837         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30838         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30839         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30840         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30841         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30842         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30843         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30844         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30845         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30846         * sysdeps/ia64/fpu/w_log.c: Likewise.
30847         * sysdeps/ia64/fpu/w_log10.c: Likewise.
30848         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30849         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30850         * sysdeps/ia64/fpu/w_log2.c: Likewise.
30851         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30852         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30853         * sysdeps/ia64/fpu/w_logf.c: Likewise.
30854         * sysdeps/ia64/fpu/w_logl.c: Likewise.
30855         * sysdeps/ia64/fpu/w_pow.c: Likewise.
30856         * sysdeps/ia64/fpu/w_powf.c: Likewise.
30857         * sysdeps/ia64/fpu/w_powl.c: Likewise.
30858         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30859         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30860         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30861         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30862         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30863         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30864         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30865         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30866         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30867         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30868         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30869         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30870         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30871         [LIBM_SVID_COMPAT].
30872         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30873         * sysdeps/ieee754/k_standard.c: Likewise.
30874         * sysdeps/ieee754/k_standardf.c: Likewise.
30875         * sysdeps/ieee754/k_standardl.c: Likewise.
30876         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30877         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30878         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30879         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30880         long_double_symbol call on [LIBM_SVID_COMPAT].
30881         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30882         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30883         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30884         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30885         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30886         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30887         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30888         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30889         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30890         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30891         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30892         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30893         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30894         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30895         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30896         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30897         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30898         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30899         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30900         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30901         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30902         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30904 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
30906         * include/shlib-compat.h (TEST_COMPAT): New Macro.
30907         * malloc/tst-mallocstate.c: Convert from test-skeleton
30908         to test-driver.  Ifdef code using TEST_COMPAT macro.
30909         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30910         * math/test-matherr.c: Likewise.
30912 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
30914         [BZ #22086]
30915         * debug/pcprofiledump.c (main): Use byte-swapped mask when
30916         comparing word with byte-swapped constant.
30918 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
30920         [BZ #20498]
30921         * locale/iso-639.def: add Miskito.
30922         * localedata/SUPPORTED: Add miq_NI/UTF-8.
30923         * localedata/locales/miq_NI: New file.
30925 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
30927         [BZ #18822]
30928         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30929         (__mkdir): Likewise.
30930         * io/chmod.c (__chmod): Add libc_hidden_def.
30931         * io/mkdir.c (__mkdir): Likewise.
30932         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30933         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30934         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30935         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30937 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
30939         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30940         version to 4.13.
30942         [BZ #22082]
30943         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30944         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30946 2017-09-04  Florian Weimer  <fweimer@redhat.com>
30948         * math/math.h: Issue warning if log is defined.
30950 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
30952         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30953         kernel version to 4.13.
30955 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30957         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30958         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30959         parameter.
30960         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30961         just <bits/types.h>.
30962         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30963         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30964         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30965         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30966         * misc/preadv2.c: Include <errno.h>.
30967         * misc/preadv64v2.c: Include <errno.h>.
30968         * misc/pwritev2.c: Include <errno.h>.
30969         * misc/pwritev64v2.c: Include <errno.h>.
30970         * sysdeps/posix/preadv2.c: Include <errno.h>.
30971         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30972         Fix <unistd.h> inclusion.
30973         * sysdeps/posix/pwritev2.c: Include <errno.h>.
30974         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30975         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30976         __strtoul_internal): New functions.
30977         * sysdeps/posix/pause.c: Include <sigsetops.h>.
30978         * sysdeps/posix/system.c: Include <sigsetops.h>.
30979         * sysdeps/mach/hurd/i386/Makefile
30980         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30981         [$(subdir) = csu] (sysdep-only-routines): Likewise.
30982         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30983         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30984         __feraiseexcept_renamed to feraiseexcept instead of
30985         __GI_feraiseexcept.
30986         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30987         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30988         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30989         RWF_NOWAIT): Define to 0 if undefined already.
30990         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30991         boils down to 0.
30992         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30993         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30995 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
30997         * manual/math.texi (pow10): Do not document.
30998         (pow10f): Likewise.
30999         (pow10l): Likewise.
31000         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31001         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31002         * math/libm-test-exp10.inc (pow10_test): Remove.
31003         (do_test): Do not call pow10.
31004         * math/w_exp10_compat.c (pow10): Make into compat symbol.
31005         [NO_LONG_DOUBLE] (pow10l): Likewise.
31006         * math/w_exp10f_compat.c (pow10f): Likewise.
31007         * math/w_exp10l_compat.c (pow10l): Likewise.
31008         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31009         (pow10): Make into compat symbol.
31010         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31011         (pow10f): Make into compat symbol.
31012         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31013         (pow10l): Make into compat symbol.
31014         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31015         pow10.
31016         (CFLAGS-nldbl-pow10.c): Remove variable..
31017         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31018         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31019         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31020         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31021         Undefine and redefine.
31022         (pow10l): Make into compat symbol.
31023         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31024         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31025         * sysdeps/arm/libm-test-ulps: Likewise.
31026         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31027         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31028         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31029         * sysdeps/microblaze/libm-test-ulps: Likewise.
31030         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31031         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31032         * sysdeps/nios2/libm-test-ulps: Likewise.
31033         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31034         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31035         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31036         * sysdeps/sh/libm-test-ulps: Likewise.
31037         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31038         * sysdeps/tile/libm-test-ulps: Likewise.
31039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31041 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31043         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31045 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31047         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31048         "../ChangeLog.old/ChangeLog.8".
31049         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31050         "../ChangeLog.old/ChangeLog.14".
31052 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31054         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31055         Threads Library.
31057 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31059         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31061 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31063         * csu/version.c (banner): Remove "by Roland McGrath et al.".
31064         * nptl/Banner: Remove "by Ulrich Drepper et al.".
31066 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31068         * stdlib/tst-atexit-common.c (do_test): Test support for at least
31069         32 atexit handlers.
31071 2017-09-01  Zack Weinberg  <zackw@panix.com>
31073         * math/math.h (HUGE_VAL): Improve commentary.
31075 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31076             Andreas Schwab  <schwab@suse.de>
31078         [BZ #21530]
31079         * include/stdio.h (__gen_tempfd): New function.
31080         * stdio-common/Makefile (routines): Add gentempfd.
31081         * stdio-common/gentempfd.c: New file.
31082         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31083         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31084         unnamed file first.
31086 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31088         [BZ #21915]
31089         [BZ #21922]
31090         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31091         result to determine success or failure, not the errno value.
31092         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31093         (tst-nss-files-hosts-erange): Link with -ldl.
31094         * nss/tst-nss-files-hosts-erange.c: New file.
31095         * nss/tst-resolv-basic.c (response): Handle nodata.example.
31096         (do_test): Add NO_DATA tests.
31097         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31098         (do_test): Call it.
31100 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31102         [BZ #21922]
31103         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31104         coming from gethostbyname2_r.
31106 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31108         * support/namespace.h (struct support_chroot_configuration): Add
31109         hosts, host_conf.
31110         (struct support_chroot): Add path_hosts, path_host_conf.
31111         * support/support_chroot.c (write_file): New function.
31112         (support_chroot_create): Call it to process /etc/resolv.conf,
31113         /etc/hosts, /etc/host.conf.
31114         (support_chroot_free): Update.
31116 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31118         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31119         status indicates it is set.
31121 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31123         [BZ #20532]
31124         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31125         function lookup failures more reliable.
31127 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31129         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31130         (getcanonname): Likewise.
31131         (gaih_inet): Likewise.
31133 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31135         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31136         (getcanonname): Likewise.
31137         (gaih_inet): Likewise.
31139 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
31140             Richard Henderson  <rth@twiddle.net>
31142         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31143         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31144         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31145         (IREG_SIZE, OREG_SIZE): New macros.
31146         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31147         (IREG_SIZE, OREG_SIZE): New macros.
31148         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31149         (IREG_SIZE): New macro.
31150         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31151         (IREG_SIZE): New macro.
31152         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31153         New includes.
31154         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31155         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31156         (__CONCATX): Handle exceptions correctly on large values that may
31157         set FE_INVALID.
31158         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31159         Initialize if not already set.
31160         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31162 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31164         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31165         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31166         Likewise.
31167         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31168         Likewise.
31169         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31170         Likewise.
31171         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31172         Likewise.
31173         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31174         Likewise.
31175         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31176         Likewise.
31177         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31178         Likewise.
31179         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31180         (NO_CANCELLATION): Likewise.
31181         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31182         Likewise.
31183         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31184         Likewise.
31185         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31186         Likewise.
31187         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31188         (NO_CANCELLATION): Likewise.
31189         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31190         (NO_CANCELLATION): Likewise.
31191         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31192         Likewise
31193         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31194         Likewise.
31195         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31196         Likewise.
31197         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31198         Likewise.
31199         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31200         hidden prototype.
31201         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31202         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31204 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
31206         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31207         in resolver call.
31209 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31211         * include/libc-symbols.h (internal_function): Remove.
31213 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31215         * stdlib/fmtmsg.c (internal_addseverity): Remove
31216         internal_function.
31218 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31220         * stdio-common/printf_fp.c (group_number): Remove
31221         internal_function.
31222         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31224 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31226         * posix/fnmatch.c (internal_function): Remove definition.
31227         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31228         * posix/regcomp.c (peek_token, init_word_char)
31229         (duplicate_node_closure, fetch_token, peek_token)
31230         (peek_token_bracket, build_range_exp, build_collating_symbol):
31231         Likewise.
31232         * posix/regex_internal.c (re_string_construct_common)
31233         (create_ci_newstate, create_cd_newstate, re_string_allocate)
31234         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31235         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31236         (re_string_translate_buffer, re_string_reconstruct)
31237         (re_string_peek_byte_case, re_string_fetch_byte_case)
31238         (re_string_destruct, re_string_context_at, re_node_set_alloc)
31239         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31240         (re_node_set_add_intersect, re_node_set_init_union)
31241         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31242         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31243         (re_dfa_add_node, calc_state_hash, re_acquire_state)
31244         (re_acquire_state_context): Likewise.
31245         * posix/regex_internal.h (internal_function): Remove definition.
31246         (re_string_realloc_buffers, build_wcs_buffer)
31247         (build_wcs_upper_buffer, build_upper_buffer)
31248         (re_string_translate_buffer, re_string_context_at)
31249         (re_string_char_size_at, re_string_wchar_at)
31250         (re_string_elem_size_at): Likewise.
31251         * posix/regexec.c (match_ctx_init, match_ctx_clean)
31252         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31253         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31254         (re_search_internal, re_search_2_stub, re_search_stub)
31255         (re_copy_regs, prune_impossible_nodes, check_matching)
31256         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31257         (free_fail_stack_return, sift_states_iter_mb)
31258         (sift_states_backward, build_sifted_states)
31259         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31260         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31261         (check_subexp_limits, sift_states_bkref, merge_state_array)
31262         (find_recover_state, transit_state, merge_state_with_log)
31263         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31264         (transit_state_mb, transit_state_bkref, get_subexp)
31265         (get_subexp_sub, find_subexp_node, check_arrival)
31266         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31267         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31268         (check_node_accept_bytes, find_collation_sequence_value)
31269         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31270         (acquire_init_state_context, check_halt_node_context)
31271         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31272         (sub_epsilon_src_nodes): Likewise.
31273         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31274         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31275         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31276         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31277         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31278         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31279         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31280         * sysdeps/posix/ttyname.c (getttyname): Likewise.
31281         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31282         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31283         (PREADV): Likewise.
31284         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31285         (PREADV): Likewise.
31286         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31287         (PWRITEV): Likewise.
31288         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31289         (PWRITEV): Likewise.
31290         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31291         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31293 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31295         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31296         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31297         Remove internal_function.
31298         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31299         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31300         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31301         (__deallocate_stack, __libc_pthread_init)
31302         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31303         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31304         (__libc_disable_asynccancel, __librt_disable_asynccancel):
31305         Likewise.
31306         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31307         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31308         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31309         Likewise.
31310         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31311         (__pthread_mutex_unlock_usercnt): Likewise.
31313 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31315         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31316         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31317         (fts_safe_changedir): Remove internal_function.
31318         * io/ftw.c (internal_function): Remove definition.
31319         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31321 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31323         * inet/deadline.c (__deadline_current_time)
31324         (__deadline_from_timeval, __deadline_to_ms): Remove
31325         internal_function.
31326         * inet/getnameinfo.c (nrl_domainname): Likewise.
31327         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31328         * inet/inet6_option.c (add_pad): Likewise.
31329         * inet/net-internal.h (__deadline_current_time)
31330         (__deadline_from_timeval, __deadline_to_ms): Likewise.
31331         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31332         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31333         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31335 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
31337         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
31338         include <bits/nan.h>.
31339         * math/Makefile (headers): Remove bits/nan.h.
31340         * bits/nan.h: Remove.
31341         * sysdeps/ieee754/bits/nan.h: Likewise.
31342         * sysdeps/mips/bits/nan.h: Likewise.
31344         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
31345         not include <bits/inf.h>.
31346         * math/Makefile (headers): Remove bits/inf.h.
31347         * bits/inf.h: Remove.
31348         * sysdeps/ieee754/bits/inf.h: Likewise.
31350         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31351         bits/huge_vall.h or bits/huge_val_flt128.h.
31352         (HUGE_VAL): Define directly here.
31353         [__USE_ISOC99] (HUGE_VALF): Likewise.
31354         [__USE_ISOC99] (HUGE_VALL): Likewise.
31355         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31356         (HUGE_VAL_F128): Likewise.
31357         * math/Makefile (headers): Remove bits/huge_val.h,
31358         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31359         * bits/huge_val.h: Remove.
31360         * bits/huge_val_flt128.h: Likewise.
31361         * bits/huge_valf.h: Likewise.
31362         * bits/huge_vall.h: Likewise.
31363         * sysdeps/ia64/bits/huge_vall.h: Likewise.
31364         * sysdeps/ieee754/bits/huge_val.h: Likewise.
31365         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31366         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31367         * sysdeps/sh/bits/huge_val.h: Likewise.
31368         * sysdeps/sparc/bits/huge_vall.h: Likewise.
31369         * sysdeps/x86/bits/huge_vall.h: Likewise.
31371 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31373         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31374         internal_function.
31375         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31376         Likewise.
31377         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31378         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31379         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31380         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31381         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31382         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31383         * elf/dl-libc.c (dlerror_run): Likewise.
31384         * elf/dl-load.c (add_name_to_object, decompose_rpath)
31385         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31386         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31387         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31388         Likewise.
31389         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31390         (_dl_higher_prime_number, _dl_strtoul): Likewise.
31391         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31392         * elf/dl-profile.c (_dl_start_profile): Likewise.
31393         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31394         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31395         Likewise.
31396         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31397         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31398         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31399         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31400         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31401         (_dl_allocate_tls_storage): Likewise.
31402         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31403         (_dl_check_all_versions): Likewise.
31404         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31405         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31406         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31407         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31408         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31409         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31410         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31411         internal_function from __dl_start.
31412         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31413         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31414         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31415         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31416         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31417         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31418         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31419         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31420         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31421         (_dl_next_ld_env_entry, _dl_important_hwcaps)
31422         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31423         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31424         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31425         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31426         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31427         Likewise.
31428         (struct rtld_global_ro): Remove internal_function from the
31429         _dl_lookup_symbol_x member.
31430         (_dl_symbol_value): Remove.  No longer defined anywhere.
31431         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31432         internal_function.
31433         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31434         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31435         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31436         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31437         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31438         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31439         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31440         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31441         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31442         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31443         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31444         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31446 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31448         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31449         Remove internal_function.
31450         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31451         Likewise.
31452         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31453         Likewise.
31455 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31457         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31458         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31459         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31461 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31463         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31464         (__gai_enqueue_request): Remove internal_function.
31465         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31466         (__gai_remove_request, __gai_notify, __gai_notify_only)
31467         (__gai_sigqueue): Likewise.
31468         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31469         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31470         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31471         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31472         Likewise.
31474 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31476         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31477         * include/dirent.h (__opendirat, __getdents, __getdents64)
31478         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31479         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31480         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31481         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31482         Likewise.
31483         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31485 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31487         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31488         internal_function.
31489         (GETCWD_RETURN_TYPE): Likewise.
31491 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31493         * include/time.h (__tz_compute, __strptime_internal): Remove
31494         internal_function.
31495         * time/strptime_l.c (__strptime_internal): Likewise.
31496         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31498 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31500         * iconv/gconv.c (__gconv): Remove internal_function.
31501         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31502         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31503         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31504         (__gconv_release_cache): Likewise.
31505         * iconv/gconv_close.c (__gconv_close): Likewise.
31506         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31507         (read_conf_file, __gconv_get_path): Likewise.
31508         * iconv/gconv_db.c (derivation_lookup, add_derivation)
31509         (__gconv_release_step, gen_steps, increment_counter)
31510         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31511         (__gconv_close_transform, free_modules_db): Likewise.
31512         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31513         Likewise.
31514         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31515         (__gconv_find_transform, __gconv_lookup_cache)
31516         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31517         (__gconv_close_transform, __gconv_release_cache)
31518         (__gconv_loaded_object, __gconv_release_shlib)
31519         (__gconv_compare_alias): Likewise.
31520         * iconv/gconv_open.c (__gconv_open): Likewise.
31521         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31522         * iconv/iconvconfig.c (add_module): Likewise.
31523         * intl/dcigettext.c (plural_lookup, guess_category_value)
31524         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31525         * intl/eval-plural.h (plural_eval): Likewise.
31526         * intl/finddomain.c (_nl_find_domain): Likewise.
31527         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31528         (_nl_load_domain, _nl_find_msg): Likewise.
31529         (internal_function): Remove definition.
31530         * intl/loadinfo.h (internal_function): Likewise.
31531         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31532         internal_function.
31533         * intl/localealias.c (internal_function): Remove definition.
31534         (read_alias_file): Remove internal_function.
31535         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31536         * intl/plural-exp.h (internal_function): Remove definition.
31537         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31538         internal_function.
31539         * intl/plural.c: Regenerate.
31540         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31541         * locale/coll-lookup.c (__collidx_table_lookup)
31542         (__collseq_table_lookup): Likewise.
31543         * locale/coll-lookup.h (__collidx_table_lookup)
31544         (__collseq_table_lookup): Likewise.
31545         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31546         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31547         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31548         (_nl_unload_locale): Likewise.
31549         * locale/localeinfo.h (struct __locale_data): Remove
31550         internal_function from cleanup member.
31551         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31552         (_nl_remove_locale, _nl_load_locale_from_archive)
31553         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31554         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31555         (_nl_cleanup_time): Remove internal_function.
31556         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31557         (_nl_parse_alt_digit): Likewise.
31558         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31559         (_nl_select_era_entry): Likewise.
31560         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31561         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31562         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31563         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31564         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31566 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31568         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31569         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31570         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31571         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31572         Likewise.
31573         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31574         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31575         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31576         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31577         Likewise.
31578         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31580 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31582         * misc/getttyent.c (skip, value): Remove internal_function.
31583         * misc/syslog.c (openlog_internal): Likewise.
31584         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31586 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31588         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31589         (__nss_rewrite_field): Remove internal_function.
31590         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31591         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31592         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31593         * nss/nsswitch.c (nss_parse_file, nss_getline)
31594         (nss_parse_service_list, nss_new_service): Likewise.
31595         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31596         * nss/valid_field.c (__nss_valid_field): Likewise.
31597         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31599 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31601         * malloc/arena.c (__malloc_fork_lock_parent)
31602         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31603         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31604         internal_function from defintions.
31605         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31606         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31607         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31608         internal_function from declarations.
31609         * malloc/malloc.c (internal_function): Do not define.
31610         (mem2mem_check): Remove internal_function from declaration.
31611         (munmap_chunk, mremap_chunk): Remove internal_function.
31612         * malloc/mtrace.c (tr_where): Likewise.
31614 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31616         * include/rpc/pmap_clnt.h (__get_socket): Remove
31617         internal_function.
31618         * sunrpc/auth_des.c (synchronize): Likewise.
31619         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31620         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31621         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31622         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31623         (key_call): Likewise.
31624         * sunrpc/pm_getport.c (__get_socket): Likewise.
31625         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31626         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31627         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31628         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31629         (invalidate): Likewise.
31630         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31631         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31632         (set_input_fragment, get_input_bytes): Likewise.
31634 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31636         * malloc/malloc.c (_int_free): Remove locked variable and related
31637         asserts.
31639 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
31641         [BZ #22051]
31642         * Makerules (build-module-helper-objlist): Filter out
31643         $(elf-objpfx)sofini.os.
31644         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31645         needed.
31647 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31649         * libio/fcloseall.c: Assume weak_alias is defined.
31650         * libio/feof.c: Likewise.
31651         * libio/fileno.c: Likewise.
31652         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31653         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31654         definitions.
31655         (_IO_file_open): Call __open directly.
31656         (_IO_new_file_sync): Assume ESPIPE is defined.
31657         (_IO_file_seekoff_maybe_mmap): Call __read directly.
31658         (_IO_new_file_write): Call __write directly.
31659         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31660         * libio/ftello64.c (__ftello64): Assume EIO is defined.
31661         * libio/genops.c: Assume _LIBC is defined.
31662         (save_for_backup): Remove internal_function.
31663         * libio/getc.c: Assume weak_alias is defined.
31664         * libio/getwc.c: Likewise.
31665         * libio/iofclose.c: Assume _LIBC is defined.
31666         * libio/iofdopen.c: Likewise.
31667         (_IO_fcntl): Remove macro definition.
31668         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31669         Call __fcntl directly.
31670         * libio/iofflush.c: Assume weak_alias is defined.
31671         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31672         defined.
31673         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31674         * libio/iofgets.c: Likewise.
31675         * libio/iofopen.c: Assume _LIBC is defined.
31676         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31677         * libio/iofputs.c: Assume weak_alias is defined.
31678         * libio/iofread.c: Likewise.
31679         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31680         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31681         * libio/ioftell.c: Assume weak_alias is defined.
31682         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31683         * libio/iofwide.c: Assume _LIBC is defined.
31684         (_IO_fwide): Drop SHARED conditional because it is implied by
31685         SHLIB_COMPAT.
31686         * libio/iofwrite.c: Assume weak_alias is defined.
31687         * libio/iogetdelim.c: Likewise.
31688         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31689         * libio/iogetwline.c (wmemcpy): Remove macro definition.
31690         (_IO_getwline): Call __wmemcpy directly.
31691         * libio/iopopen.c: Assume _LIBC is defined.
31692         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31693         (_IO_close): Remove macro definitions.
31694         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31695         _exit directly.
31696         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31697         directly.
31698         * libio/ioputs.c: Assume weak_alias is defined.
31699         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31700         * libio/iosetbuffer.c: Assume weak_alias is defined.
31701         * libio/iosetvbuf.c: Likewise.
31702         * libio/ioungetc.c: Likewise.
31703         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31704         libc_hidden_def, libc_hidden_weak, NULL are defined.
31705         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31706         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31707         defined.
31708         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31709         definitions.
31710         (_IO_old_file_init_internal): Drop SHARED conditional because it
31711         is implied by SHLIB_COMPAT.
31712         (_IO_old_file_fopen): Call __open directly.
31713         (_IO_old_file_sync): Assume ESPIPE is defined.
31714         (_IO_old_file_write): Call __write directly.
31715         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31716         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31717         Call __fcntl directly.
31718         * libio/oldiofgetpos.c: Assume weak_alias is defined.
31719         (_IO_old_fgetpos): Assume EIO is defined.
31720         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31721         (_IO_old_fgetpos64): Assume EIO is defined.
31722         * libio/oldiofsetpos.c: Assume weak_alias is defined.
31723         (_IO_old_fsetpos): Assume EIO is defined.
31724         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31725         (_IO_old_fsetpos64): Assume EIO is defined.
31726         * libio/oldiopopen.c:  Assume _LIBC is defined.
31727         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31728         (_IO_close): Remove macro definitions.
31729         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31730         directly.
31731         (_IO_old_proc_close): Call __close, __waitpid directly.
31732         * libio/put.c: Assume weak_alias is defined.
31733         * libio/stdfiles.c: Assume _LIBC is defined.
31734         * libio/stdio.c: Likewise.
31735         * libio/wfileops.c: Likewise.
31736         (_IO_wfile_sync): Assume ESPIPE is defined.
31737         * libio/wgenops.c: Assume _LIBC is defined.
31738         (save_for_wbackup): Remove internal_function.
31740 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31742         * malloc/malloc.c (top_check): Change return type to void.  Remove
31743         internal_function.
31744         * malloc/hooks.c (top_check): Likewise.
31745         (malloc_check, realloc_check, memalign_check): Adjust.
31747 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
31749         [BZ #21457]
31750         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31751         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31752         sigcontext and namespace requirements.
31753         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31754         * sysdeps/m68k/sys/ucontext.h: Likewise.
31755         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
31756         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31757         <bits/sigcontext.h>.
31758         (__ctx): Define earlier.
31759         (mcontext_t): Define structure contents rather than using struct
31760         sigcontext.
31761         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31762         __glibc_reserved1 instead of __reserved.
31763         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31764         <bits/sigcontext.h>.
31765         (__ctx): Define earlier.
31766         (mcontext_t): Define structure contents rather than using struct
31767         sigcontext.
31768         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31769         mcontext_t instead of struct sigcontext.
31770         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31771         <bits/sigcontext.h>.
31772         (__ctx): Define earlier.
31773         (mcontext_t): Define structure contents rather than using struct
31774         sigcontext.
31775         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31776         <bits/sigcontext.h>.
31777         (__ctx): Define earlier.
31778         (mcontext_t): Define structure contents rather than using struct
31779         sigcontext.
31780         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31781         mcontext_t instead of struct sigcontext.
31782         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31783         mcontext_t instead of struct sigcontext.
31784         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31785         <bits/sigcontext.h>.
31786         (__ctx): New macro.
31787         (struct __ia64_fpreg_mcontext): New type.
31788         (mcontext_t): Define structure contents rather than using struct
31789         sigcontext.
31790         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31791         (uc_sigmask): Define using __ctx.
31792         (uc_stack): Likewise.
31793         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31794         <bits/sigcontext.h>.
31795         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31796         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31797         <bits/sigcontext.h>.
31798         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31799         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31800         <bits/sigcontext.h>.
31801         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31802         <bits/sigcontext.h>.
31803         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31804         <bits/sigcontext.h>.
31805         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31806         <bits/sigcontext.h>.
31807         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31808         <bits/sigcontext.h>.
31809         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31810         <bits/sigcontext.h>.
31811         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31812         <bits/sigcontext.h>.
31813         (__ctx): Define earlier.
31814         (mcontext_t): Define structure contents rather than using struct
31815         sigcontext.
31816         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31817         <bits/sigcontext.h>.  Include <bits/types.h>.
31818         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31819         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31820         (test-xfail-XPG42/ucontext.h/conform): Likewise.
31821         (test-xfail-UNIX98/signal.h/conform): Likewise.
31822         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31823         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31824         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31825         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31826         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31827         (test-xfail-POSIX2008/signal.h/conform): Likewise.
31828         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31829         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31830         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31832 2017-08-30  Florian Weimer  <fweimer@redhat.com>
31834         * malloc/dynarray_emplace_enlarge.c
31835         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31836         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31837         * malloc/tst-dynarray.c (test_long_overflow): New function.
31838         (do_test): Call it.
31840 2017-08-30  Florian Weimer  <fweimer@redhat.com>
31842         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31843         (set_arena_corrupt): Remove definitions.
31844         (mtrim): Do not check for corrupt arena.
31845         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31846         Likewise.
31848 2017-08-30  Florian Weimer  <fweimer@redhat.com>
31850         [BZ #21754]
31851         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31852         check_action.
31853         (ptmalloc_init): Do not set or use check_action.
31854         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31855         call to malloc_printerr.  Remove return statement.
31856         (free_check): Likewise.  Remove arena unlock.
31857         (top_check): Update comment.  Adjust call to malloc_printerr.
31858         Remove heap repair code.
31859         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31860         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31861         (sysmalloc): Adjust call to malloc_printerr.
31862         (munmap_chunk, __libc_realloc): Likewise.  Remove return
31863         statement.
31864         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
31865         Remove errout label and corresponding gotos.
31866         (_int_free): Likewise.  Remove arena unlock.
31867         (do_set_mallopt_check): Do not set check_action.
31868         (malloc_printerr): Adjust parameter list.  Do not mark arena as
31869         corrupt.
31870         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31871         comment.
31872         * manual/probes.texi (Memory Allocation Probes): Remove
31873         memory_mallopt_check_action.
31875 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
31877         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31878         Use pointer to uint64_t instead of long int for sp.
31880 2017-08-30  Florian Weimer  <fweimer@redhat.com>
31882         [BZ #21754]
31883         * malloc/malloc.c (malloc_printerr): Always terminate the process,
31884         without printing a backtrace.  Do not leak any information in the
31885         error message.
31886         * manual/memory.texi (Heap Consistency Checking): Update.
31887         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31889 2017-08-30  Florian Weimer  <fweimer@redhat.com>
31891         Do not scale NPTL tests with available number of CPUs.
31892         * nptl/tst-cond16.c (count): Set to constant value of 8.
31893         * nptl/tst-cond18.c (count): Likewise.
31895 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
31897         [BZ #22035]
31898         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31899         Define to take a second argument that is a macro that
31900         concatentates a suffix, not the suffix itself.
31901         (__CONCAT_d): New macro.
31902         (__CONCAT_f): Likewise.
31903         (__CONCAT_l): Likewise.
31905 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
31907         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31908         by child.
31910 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31911             Aurelien Jarno  <aurelien@aurel32.net>
31912             Maciej W. Rozycki  <macro@imgtec.com>
31914         [BZ #21956]
31915         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31916         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31917         `mips16-syscall6' and `mips16-syscall7'.
31918         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31919         (CFLAGS-mips16-syscall7.c): Remove.
31920         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31921         Remove `__mips16_syscall5', `__mips16_syscall6' and
31922         `__mips16_syscall7'.
31923         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31924         (__mips16_syscall0): Rename `__mips16_syscall_return' to
31925         `__mips_syscall_return'.
31926         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31927         (__mips16_syscall1): Likewise.
31928         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31929         (__mips16_syscall2): Likewise.
31930         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31931         (__mips16_syscall3): Likewise.
31932         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31933         (__mips16_syscall4): Likewise.
31934         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31935         Remove.
31936         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31937         Remove.
31938         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31939         Remove.
31940         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31941         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31942         `__mips16_syscall5'.  Remove prototype.
31943         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31944         `__mips16_syscall6'.  Remove prototype.
31945         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31946         `__mips16_syscall7'.  Remove prototype.
31947         (__nomips16, __mips16_syscall_return): Move to...
31948         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31949         (__nomips16, __mips_syscall_return): ... here.
31950         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31951         `__mips16_syscall_return' to `__mips_syscall_return'.
31952         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31953         `internal_syscall##nr'.
31954         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31955         `internal_syscall##nr'.
31956         (FORCE_FRAME_POINTER): Remove.
31957         (__mips_syscall5): New prototype.
31958         (internal_syscall5): Rewrite to call `__mips_syscall5'.
31959         (__mips_syscall6): New prototype.
31960         (internal_syscall6): Rewrite to call `__mips_syscall6'.
31961         (__mips_syscall7): New prototype.
31962         (internal_syscall7): Rewrite to call `__mips_syscall7'.
31963         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31964         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31965         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31966         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31967         (sysdep_routines): Add libc-do-syscall.
31968         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31969         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31971 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31973         [BZ #21672]
31974         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31975         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31976         (advise_stack_range): New function.
31977         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31978         stack non required to advise_stack_range at allocatestack.c
31980 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31982         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31984 2017-08-29  Florian Weimer  <fweimer@redhat.com>
31986         [BZ #22026]
31987         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31988         __end_fct.  Mangle __end_fct after setting it to NULL.
31989         * iconv/Makefile (tests): Add tst-gconv-init-failure.
31990         (modules-names, modules-names-tests): Add
31991         tst-gconv-init-failure-mod.
31992         (gconv-modules): New target.
31993         (tst-gconv-init-failure-mod.so): Link against libsupport.
31994         (tst-gconv-init-failure): Depend on gconv-modules,
31995         tst-gconv-init-failure-mod.so.
31996         * iconv/tst-gconv-init-failure-mod.c: New file.
31997         * iconv/tst-gconv-init-failure.c: Likewise.
31998         * iconv/test-gconv-modules: Likewise.
32000 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32002         [BZ #22025]
32003         * iconv/gconv_db.c (free_derivation): Remove redundant
32004         parentheses.
32005         (gen_steps): Unconditionally mangle __btowc_fct after
32006         initialization.
32007         (increment_counter): Likewise.  Do not call init_fct for internal
32008         modules.
32010 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32012         [BZ #22028]
32013         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32014         (_MSUF_): Remove macro.
32015         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32016         Likewise.
32017         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32018         (__REDIRFROM_X): New macro.
32019         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32020         Likewise.
32021         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32022         (__REDIRTO_X): Likewise.
32023         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32024         arguments.
32025         (__MATH_REDIRCALL_2): Likewise.
32026         (__MATH_REDIRCALL_INTERNAL): Likewise.
32027         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32028         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32029         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32030         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32031         * math/test-finite-macros.c: New file.
32032         * math/Makefile (tests): Add test-finite-macros.
32033         (CFLAGS-test-finite-macros.c): New variable.
32035 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
32036             Jeff Law  <law@redhat.com>
32038         [BZ #22025]
32039         Mangle NULL pointers in iconv/gconv.
32040         * iconv/gconv_cache.c (find_module): Demangle init_fct before
32041         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32042         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32043         is non-NULL before demangling the end_fct.  Check for NULL
32044         end_fct after demangling.
32045         (__gconv_release_step): Demangle the end_fct before checking
32046         it for NULL.   Remove assert on __shlibc_handle != NULL.
32047         (gen_steps): Don't check btowc_fct for NULL before mangling.
32048         Demangle init_fct before checking for NULL.
32049         (increment_counter): Likewise.
32050         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32051         end_fct for NULL before mangling.
32052         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32053         for NULL.
32055 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
32057         [BZ #21971]
32058         * locale/iso-639.def: add Morisyen.
32060 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32062         [BZ #21930]
32063         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32064         (iszero): New C++ implementation that does not use
32065         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32066         signaling nans are enabled, since __builtin_types_compatible_p
32067         is a C-only feature.
32068         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32069         defined, include ieee754_float128.h for access to the union and
32070         member ieee854_float128.ieee.
32071         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32072         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32073         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32074         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32075         options of test-math-zero on powerpc64le.
32077 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
32079         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32080         Change double to float.
32082 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
32084         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32085         unconditional.
32086         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32087         conditional code; define contents only for [LIBM_SVID_COMPAT].
32089 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32091         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32092         (abi-lp64_be-options): Remove.
32093         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32094         (abi-hard-options): Likewise.
32095         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32096         (abi-o32_hard-options, abi-o32_soft_2008-options)
32097         (abi-o32_hard_2008-options, abi-n32_soft-options)
32098         (abi-n32_hard-options, abi-n32_soft_2008-options)
32099         (abi-n32_hard_2008-options, abi-n64_soft-options)
32100         (abi-n64_hard-options, abi-n64_soft_2008-options)
32101         (abi-n64_hard_2008-options): Likewise.
32102         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32103         (abi-64-v1-options, abi-64-v2-options): Likewise.
32104         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32105         (abi-64-options): Likewise.
32106         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32107         (abi-64-options): Likewise.
32108         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32109         (abi-64-options): Likewise.
32110         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32111         (abi-64-options, abi-x32-options): Likewise.
32113 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32115         Store supported list of SYS_* system calls in the source tree.
32116         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32117         (bits/syscall.h): Generate from list file.
32118         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32119         [$(subdir) = misc] (tests): Add tst-syscall-list.
32120         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32121         [$(subdir) = misc] (tst-syscall-list-macros.list)
32122         [$(subdir) = misc] (tst-syscall-list-nr.list)
32123         (tst-syscall-list-sys.list): Helper targets for new
32124         tst-syscall-list test.
32125         [$(subdir) = misc] (tst-syscall-list.out): Run test script
32126         tst-syscall-list.sh.
32127         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32128         target. Do not include bits/syscall.d.
32129         [$(subdir) = misc] (generated): Do not update.
32130         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32131         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32132         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32133         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32135 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
32137         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32138         (tst-cxa_atexit, tst-on_exit): Likewise.
32139         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32140         tst-cxa_atexit, and tst-on_exit.
32141         * stdlib/tst-atexit-common.c: New file.
32142         * stdlib/tst-atexit.c: New file.
32143         * stdlib/tst-at_quick_exit.c: New file.
32144         * stdlib/tst-cxa_atexit.c: New file.
32145         * stdlib/tst-on_exit.c: New file.
32147 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32149         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32150         * mach/stack_chk_fail_local.c: New file.
32151         * hurd/stack_chk_fail_local.c: New file.
32152         * mach/Machrules ($(interface-library)-routines): Add
32153         stack_chk_fail_local.
32154         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32155         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32156         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32157         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32158         * hurd/Makefile (CFLAGS-hurdstartup.o,
32159         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32161 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
32163         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32164         (index_cpu_*, index_arch_*): Removed.
32166 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32168         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32169         Use uint64_t instead of unsigned long.
32171 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
32173         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32174         [__HAVE_DISTINCT_FLOAT128].
32176         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32177         of <bits/math-finite.h>.
32178         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32179         inclusion of <bits/math-finite.h>.
32180         * math/bits/math-finite.h (__REDIRTO_X): Do not define
32181         conditionally on [__MATH_DECLARING_LDOUBLE && defined
32182         __NO_LONG_DOUBLE_MATH].
32183         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32184         (__MATH_REDIRCALL_2): Likewise.
32185         (__MATH_REDIRCALL_INTERNAL): Likewise.
32186         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32187         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32188         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32191         Remove file.
32192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32193         Likewise.
32194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32195         Likewise.
32196         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32197         Likewise.
32198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32199         Likewise.
32200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32201         Likewise.
32202         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32203         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32204         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32205         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32206         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32207         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32208         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32209         w_sqrtf_compat-ppc32.
32211 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32213         * math/math.h [defined __cplusplus] (issignaling): In the long
32214         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32215         is not defined.  Call __issignaling, otherwise.
32217 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32219         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32220         syscall definitions and replace __builtin_expect with __glibc_likely.
32221         * sysdeps/unix/syscall-template.S: Update comment about cancellable
32222         syscall.
32223         (SYSCALL_CANCELLABLE): Removedefinition
32224         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32225         definition.
32226         (PSEUDO_END): Likewise.
32227         [IS_IN (libpthread)] (CENABLE): Likewise.
32228         [IS_IN (libpthread)] (CDISABLE): Likewise.
32229         [IS_IN (libc)] (CENABLE): Likewise.
32230         [IS_IN (libc)] (CENABLE): Likewise.
32231         [IS_IN (librt)] (CDISABLE): Likewise.
32232         [IS_IN (librt)] (CDISABLE): Likewise.
32233         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32234         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32235         definition.
32236         (PSEUDO_END): Likewise.
32237         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32238         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32239         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32240         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32241         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32242         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32243         (CENABLE): Likewise.
32244         (CDISABLE): Likewise.
32245         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32246         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32247         defintion.
32248         (PSEUDO_END): Likewise.
32249         [IS_IN (libpthread)] (CENABLE): Likewise.
32250         [IS_IN (libpthread)] (CDISABLE): Likewise.
32251         [IS_IN (libc)] (CENABLE): Likewise.
32252         [IS_IN (libc)] (CENABLE): Likewise.
32253         [IS_IN (librt)] (CDISABLE): Likewise.
32254         [IS_IN (librt)] (CDISABLE): Likewise.
32255         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32256         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32257         definition.
32258         (PSEUDO_END): Likewise.
32259         [IS_IN (libpthread)] (CENABLE): Likewise.
32260         [IS_IN (libpthread)] (CDISABLE): Likewise.
32261         [IS_IN (libc)] (CENABLE): Likewise.
32262         [IS_IN (libc)] (CENABLE): Likewise.
32263         [IS_IN (librt)] (CDISABLE): Likewise.
32264         [IS_IN (librt)] (CDISABLE): Likewise.
32265         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32266         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32267         definition.
32268         (PSEUDO_END): Likewise.
32269         [IS_IN (libpthread)] (CENABLE): Likewise.
32270         [IS_IN (libpthread)] (CDISABLE): Likewise.
32271         [IS_IN (libc)] (CENABLE): Likewise.
32272         [IS_IN (libc)] (CENABLE): Likewise.
32273         [IS_IN (librt)] (CDISABLE): Likewise.
32274         [IS_IN (librt)] (CDISABLE): Likewise.
32275         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32276         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32277         definition.
32278         (PSEUDO_END): Likewise.
32279         [IS_IN (libpthread)] (CENABLE): Likewise.
32280         [IS_IN (libpthread)] (CDISABLE): Likewise.
32281         [IS_IN (libc)] (CENABLE): Likewise.
32282         [IS_IN (libc)] (CENABLE): Likewise.
32283         [IS_IN (librt)] (CDISABLE): Likewise.
32284         [IS_IN (librt)] (CDISABLE): Likewise.
32285         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32286         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32287         definition.
32288         (PSEUDO_END): Likewise.
32289         [IS_IN (libpthread)] (CENABLE): Likewise.
32290         [IS_IN (libpthread)] (CDISABLE): Likewise.
32291         [IS_IN (libc)] (CENABLE): Likewise.
32292         [IS_IN (libc)] (CENABLE): Likewise.
32293         [IS_IN (librt)] (CDISABLE): Likewise.
32294         [IS_IN (librt)] (CDISABLE): Likewise.
32295         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32296         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32297         definition.
32298         (PSEUDO_END): Likewise.
32299         [IS_IN (libpthread)] (CENABLE): Likewise.
32300         [IS_IN (libpthread)] (CDISABLE): Likewise.
32301         [IS_IN (libc)] (CENABLE): Likewise.
32302         [IS_IN (libc)] (CENABLE): Likewise.
32303         [IS_IN (librt)] (CDISABLE): Likewise.
32304         [IS_IN (librt)] (CDISABLE): Likewise.
32305         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32306         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32307         Remove definition.
32308         (PSEUDO_END): Likewise.
32309         [IS_IN (libpthread)] (CENABLE): Likewise.
32310         [IS_IN (libpthread)] (CDISABLE): Likewise.
32311         [IS_IN (libc)] (CENABLE): Likewise.
32312         [IS_IN (libc)] (CENABLE): Likewise.
32313         [IS_IN (librt)] (CDISABLE): Likewise.
32314         [IS_IN (librt)] (CDISABLE): Likewise.
32315         (SINGLE_THREAD_P): Likewise.
32316         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32317         definition.
32318         (PSEUDO_END): Likewise.
32319         [IS_IN (libpthread)] (CENABLE): Likewise.
32320         [IS_IN (libpthread)] (CDISABLE): Likewise.
32321         [IS_IN (libc)] (CENABLE): Likewise.
32322         [IS_IN (libc)] (CENABLE): Likewise.
32323         [IS_IN (librt)] (CDISABLE): Likewise.
32324         [IS_IN (librt)] (CDISABLE): Likewise.
32325         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32326         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32327         definition.
32328         (PSEUDO_END): Likewise.
32329         [IS_IN (libpthread)] (CENABLE): Likewise.
32330         [IS_IN (libpthread)] (CDISABLE): Likewise.
32331         [IS_IN (libc)] (CENABLE): Likewise.
32332         [IS_IN (libc)] (CENABLE): Likewise.
32333         [IS_IN (librt)] (CDISABLE): Likewise.
32334         [IS_IN (librt)] (CDISABLE): Likewise.
32335         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32336         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32337         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32338         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32339         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32340         definition.
32341         (PSEUDO_END): Likewise.
32342         [IS_IN (libpthread)] (CENABLE): Likewise.
32343         [IS_IN (libpthread)] (CDISABLE): Likewise.
32344         [IS_IN (libc)] (CENABLE): Likewise.
32345         [IS_IN (libc)] (CENABLE): Likewise.
32346         [IS_IN (librt)] (CDISABLE): Likewise.
32347         [IS_IN (librt)] (CDISABLE): Likewise.
32348         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32349         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32350         definition.
32351         (PSEUDO_END): Likewise.
32352         [IS_IN (libpthread)] (CENABLE): Likewise.
32353         [IS_IN (libpthread)] (CDISABLE): Likewise.
32354         [IS_IN (libc)] (CENABLE): Likewise.
32355         [IS_IN (libc)] (CENABLE): Likewise.
32356         [IS_IN (librt)] (CDISABLE): Likewise.
32357         [IS_IN (librt)] (CDISABLE): Likewise.
32358         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32359         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32360         definition.
32361         (PSEUDO_END): Likewise.
32362         [IS_IN (libpthread)] (CENABLE): Likewise.
32363         [IS_IN (libpthread)] (CDISABLE): Likewise.
32364         [IS_IN (libc)] (CENABLE): Likewise.
32365         [IS_IN (libc)] (CENABLE): Likewise.
32366         [IS_IN (librt)] (CDISABLE): Likewise.
32367         [IS_IN (librt)] (CDISABLE): Likewise.
32368         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32369         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32370         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32371         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32372         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32373         definition.
32374         (PSEUDO_END): Likewise.
32375         [IS_IN (libpthread)] (CENABLE): Likewise.
32376         [IS_IN (libpthread)] (CDISABLE): Likewise.
32377         [IS_IN (libc)] (CENABLE): Likewise.
32378         [IS_IN (libc)] (CENABLE): Likewise.
32379         [IS_IN (librt)] (CDISABLE): Likewise.
32380         [IS_IN (librt)] (CDISABLE): Likewise.
32381         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32382         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32383         definition.
32384         (PSEUDO_END): Likewise.
32385         [IS_IN (libpthread)] (CENABLE): Likewise.
32386         [IS_IN (libpthread)] (CDISABLE): Likewise.
32387         [IS_IN (libc)] (CENABLE): Likewise.
32388         [IS_IN (libc)] (CENABLE): Likewise.
32389         [IS_IN (librt)] (CDISABLE): Likewise.
32390         [IS_IN (librt)] (CDISABLE): Likewise.
32391         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32393 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32395         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32397 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
32399         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32401 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
32403         [BZ #21982]
32404         * string/stratcliff.c (do_test): Declare size, nchars, inner,
32405         middle and outer with size_t instead of int.  Repleace %d and
32406         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
32407         "MAX (outer, nchars - 64)" to support unsigned outer and
32408         nchars.  Also exit loop when outer == 0.
32410 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32412         * include/fcntl.h (__fcntl_nocancel): Remove definition.
32413         * include/signal.h (__sigsuspend_nocancel): Likewise.
32414         * include/time.h (__nanosleep_nocancel): Likewise.
32415         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32416         * login/utmp_file.c: Include non cancellable syscall header.
32417         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32418         prototype.
32420 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
32422         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32423         .byte sequences with AVX512F instructions.
32424         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32425         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32426         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32427         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32428         Likewise.
32429         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32430         Likewise.
32432 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32433             Steve Ellcey  <sellcey@cavium.com>
32435         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32436         Use PTR_REG macro in cmp instruction.
32438 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32440         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32441         Change the return type of the ifunc resolver to match the return
32442         type of the target function.
32444 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32446         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32447         (preadv64): Likewise.
32448         (pwrite64(: Likewise.
32449         (pwritev64): Likewise.
32451         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32452         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32453         (LOAD_ARGS_0): Likewise.
32454         (LOAD_ARGS_1): Likewise.
32455         (LOAD_ARGS_2): Likewise.
32456         (LOAD_ARGS_3): Likewise.
32457         (LOAD_ARGS_4): Likewise.
32458         (LOAD_ARGS_5): Likewise.
32459         (LOAD_ARGS_6): Likewise.
32460         (LOAD_REGS_0): Likewise.
32461         (LOAD_REGS_1): Likewise.
32462         (LOAD_REGS_2): Likewise.
32463         (LOAD_REGS_3): Likewise.
32464         (LOAD_REGS_4): Likewise.
32465         (LOAD_REGS_5): Likewise.
32466         (LOAD_REGS_6): Likewise.
32467         (ASM_ARGS_0): Likewise.
32468         (ASM_ARGS_1): Likewise.
32469         (ASM_ARGS_2): Likewise.
32470         (ASM_ARGS_3): Likewise.
32471         (ASM_ARGS_4): Likewise.
32472         (ASM_ARGS_5): Likewise.
32473         (ASM_ARGS_6): Likewise.
32474         (LOAD_ARGS_TYPES_1): Likewise.
32475         (LOAD_ARGS_TYPES_2): Likewise.
32476         (LOAD_ARGS_TYPES_3): Likewise.
32477         (LOAD_ARGS_TYPES_4): Likewise.
32478         (LOAD_ARGS_TYPES_5): Likewise.
32479         (LOAD_ARGS_TYPES_6): Likewise.
32480         (LOAD_REGS_TYPES_1): Likewise.
32481         (LOAD_REGS_TYPES_2): Likewise.
32482         (LOAD_REGS_TYPES_3): Likewise.
32483         (LOAD_REGS_TYPES_4): Likewise.
32484         (LOAD_REGS_TYPES_5): Likewise.
32485         (LOAD_REGS_TYPES_6): Likewise.
32486         (TYPEFY): New define.
32487         (ARGIFY): Likewise.
32488         (internal_syscall0): Likewise.
32489         (internal_syscall1): Likewise.
32490         (internal_syscall2): Likewise.
32491         (internal_syscall3): Likewise.
32492         (internal_syscall4): Likewise.
32493         (internal_syscall5): Likewise.
32494         (internal_syscall6): Likewise.
32495         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32496         (INTERNAL_SYSCALL_NCS): Remove define.
32497         (internal_syscall1): Add define.
32499 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32501         * math/w_remainder_compat.c: Remove duplicate inclusion of
32502         math-svid-compat.h.
32503         * math/w_remainderf_compat.c: Likewise.
32504         * math/w_remainderl_compat.c: Likewise.
32506 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32508         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32510 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
32512         [BZ #21684]
32513         * math/tgmath.h (__floating_type): Simplify definitions.
32514         (__real_integer_type): New macro.
32515         (__complex_integer_type): Likewise.
32516         (__expr_is_real): Likewise.
32517         (__tgmath_real_type_sub): Update comment to describe handling of
32518         complex types.
32519         (__tgmath_complex_type_sub): New macro.
32520         (__tgmath_complex_type): Likewise.
32521         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32522         (__TGMATH_CF128): Use __expr_is_real.
32523         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32524         __expr_is_real.
32525         (__TGMATH_BINARY_REAL_IMAG): Likewise.
32526         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32527         * math/gen-tgmath-tests.py (Type.create_type): Create complex
32528         integer types.
32530 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32532         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32533         macro.
32534         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32535         alias.
32536         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32537         Likewise.
32539         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32540         nanosleep_not_cancel with __nanosleep_nocancel.
32541         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32542         (__nanosleep_nocancel): New macro.
32543         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32544         function.
32545         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32546         macro.
32547         (__nanosleep_nocancel): New prototype.
32549         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32550         pause_not_cancel with __pause_nocancel.
32551         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32552         (__pause_nocancel): New macro.
32553         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32554         macro.
32555         (__pause_nocancel): New prototype.
32556         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32558 2017-08-22  Martin Sebor  <msebor@redhat.com>
32560         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32561         to return a pointer to the same type as the target function.
32563 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
32565         [BZ #18822]
32566         [BZ #21986]
32567         * include/printf.h (__printf_fphex): Add attribute_hidden.
32568         (__guess_grouping): New prototype.
32569         * stdio-common/printf_fp.c (__guess_grouping): Removed.
32570         * stdio-common/reg-printf.c (__register_printf_specifier): Add
32571         libc_hidden_proto and libc_hidden_def.
32572         * stdlib/strfmon_l.c (__guess_grouping): Removed.
32573         (__vstrfmon_l): Remove the third argument passed to
32574         __guess_grouping.
32576 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32578         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32579         definition for issignaling that does not rely on __MATH_TG,
32580         since __MATH_TG uses __builtin_types_compatible_p, which is only
32581         available in C mode.
32582         (CFLAGS-test-math-issignaling.cc): New variable.
32583         * math/Makefile [CXX] (tests): Add test-math-issignaling.
32584         * math/test-math-issignaling.cc: New test for C++ implementation
32585         of type-generic issignaling.
32586         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32587         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32588         options of test-math-issignaling on powerpc64le.
32590 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
32592         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32593         building libc.a.
32594         (hidden_proto): Likewise.
32595         (hidden_tls_proto): Likewise.
32596         (__hidden_proto): Likewise.
32598 2017-08-22  Florian Weimer  <fweimer@redhat.com>
32600         math: Statically link tests of internal functionality.
32601         * math/Makefile (tests): Remove atest-exp, atest-sincos,
32602         atest-exp2.
32603         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32604         (gmp-objs): Remove assignment.
32605         (atest-exp, atest-sincos, atest-exp2): Remove targets.
32607 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
32609         [BZ #21987]
32610         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32611         and copy to ...
32612         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32613         ... here.
32614         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32615         ... and here.
32617         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32618         variable definitions above inclusion of ../Rules.
32620 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
32622         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32623         case calling __builtin_unreachable.
32625 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32627         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32628         __waitpid_nocancel.
32629         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32630         (__waitpid_nocancel): New macro.
32631         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32632         macro.
32633         (__waitpid_nocancel): Replace macro with a function.
32634         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32635         function.
32637         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32638         __fcntl_nocancel.
32639         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32640         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32642         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32643         __writev_nocancel_nostatus.
32644         (write_call_graph): Likewise.
32645         (write_bb_counts): Likewise.
32646         * resolv/herror.c (herror): Likewise.
32647         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32648         macro.
32649         (__writev_nocancel_nostatus): New macro.
32650         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32651         Remove macro.
32652         (__writev_nocancel_nostatus): New function.
32654 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
32656         Revert:
32657         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32659         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32660         building libc.a.
32661         (hidden_proto): Likewise.
32662         (hidden_tls_proto): Likewise.
32663         (__hidden_proto): Likewise.
32665         [BZ #21973]
32666         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32667         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32669         Likewise.
32670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32671         Likewise.
32672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32673         Likewise.
32674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32675         Likewise.
32676         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32677         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32678         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32679         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32680         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32681         GLIBC_2.0 sqrtl symbol.
32683         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32684         [__USE_MISC] (_LIB_VERSION): Likewise.
32685         [__USE_MISC] (struct exception): Likewise.
32686         [__USE_MISC] (matherr): Likewise.
32687         [__USE_MISC] (DOMAIN): Likewise.
32688         [__USE_MISC] (SING): Likewise.
32689         [__USE_MISC] (OVERFLOW): Likewise.
32690         [__USE_MISC] (UNDERFLOW): Likewise.
32691         [__USE_MISC] (TLOSS): Likewise.
32692         [__USE_MISC] (PLOSS): Likewise.
32693         [__USE_MISC] (HUGE): Likewise.
32694         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32695         * math/math-svid-compat.h: New file.
32696         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32697         and matherrl.
32698         * include/math.h [!_ISOMAC] (__matherr): Remove.
32699         * manual/arith.texi (FP Exceptions): Do not document matherr.
32700         * math/Makefile (tests): Change test-matherr to test-matherr-3.
32701         (tests-internal): New variable.
32702         (install-lib): Do not add libieee.a.
32703         (non-lib.a): Likewise.
32704         (extra-objs): Do not add libieee.a and ieee-math.o.
32705         (CPPFLAGS-s_lib_version.c): Remove variable.
32706         ($(objpfx)libieee.a): Remove rule.
32707         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32708         * math/ieee-math.c: Remove.
32709         * math/libm-test-support.c (matherr): Remove.
32710         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
32711         and license notices.  Include <math-svid-compat.h> and
32712         <shlib-compat.h>.
32713         (matherr): Undefine as macro.  Use compat_symbol_reference.
32714         (_LIB_VERSION): Likewise.
32715         * math/test-matherr-2.c: New file.
32716         * math/test-matherr-3.c: Likewise.
32717         * sysdeps/generic/math_private.h (__kernel_standard): Remove
32718         declaration.
32719         (__kernel_standard_f): Likewise.
32720         (__kernel_standard_l): Likewise.
32721         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32722         <math_private.h>.  Include <math-svid-compat.h>.
32723         (_LIB_VERSION): Undefine as macro.
32724         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
32725         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
32726         [LIBM_SVID_COMPAT], use compat_symbol.
32727         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32728         <math_private.h>.  Include <math-svid-compat.h>.
32729         (matherr): Undefine as macro.
32730         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
32731         compat_symbol.
32732         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32733         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32734         compat_symbol_reference.
32735         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32736         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32737         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32738         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32739         (MATHERR_D): Remove declaration.
32740         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32741         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32742         [LIBM_BUILD] (pmatherrf): Likewise.
32743         [LIBM_BUILD] (pmatherr): Likewise.
32744         [LIBM_BUILD] (pmatherrl): Likewise.
32745         (DOMAIN): Likewise.
32746         (SING): Likewise.
32747         (OVERFLOW): Likewise.
32748         (UNDERFLOW): Likewise.
32749         (TLOSS): Likewise.
32750         (PLOSS): Likewise.
32751         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32752         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
32753         compat_symbol.
32754         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32755         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
32756         compat_symbol.
32757         * math/lgamma-compat.h: Include <math-svid-compat.h>.
32758         * math/w_acos_compat.c: Likewise.
32759         * math/w_acosf_compat.c: Likewise.
32760         * math/w_acosh_compat.c: Likewise.
32761         * math/w_acoshf_compat.c: Likewise.
32762         * math/w_acoshl_compat.c: Likewise.
32763         * math/w_acosl_compat.c: Likewise.
32764         * math/w_asin_compat.c: Likewise.
32765         * math/w_asinf_compat.c: Likewise.
32766         * math/w_asinl_compat.c: Likewise.
32767         * math/w_atan2_compat.c: Likewise.
32768         * math/w_atan2f_compat.c: Likewise.
32769         * math/w_atan2l_compat.c: Likewise.
32770         * math/w_atanh_compat.c: Likewise.
32771         * math/w_atanhf_compat.c: Likewise.
32772         * math/w_atanhl_compat.c: Likewise.
32773         * math/w_cosh_compat.c: Likewise.
32774         * math/w_coshf_compat.c: Likewise.
32775         * math/w_coshl_compat.c: Likewise.
32776         * math/w_exp10_compat.c: Likewise.
32777         * math/w_exp10f_compat.c: Likewise.
32778         * math/w_exp10l_compat.c: Likewise.
32779         * math/w_exp2_compat.c: Likewise.
32780         * math/w_exp2f_compat.c: Likewise.
32781         * math/w_exp2l_compat.c: Likewise.
32782         * math/w_fmod_compat.c: Likewise.
32783         * math/w_fmodf_compat.c: Likewise.
32784         * math/w_fmodl_compat.c: Likewise.
32785         * math/w_hypot_compat.c: Likewise.
32786         * math/w_hypotf_compat.c: Likewise.
32787         * math/w_hypotl_compat.c: Likewise.
32788         * math/w_j0_compat.c: Likewise.
32789         * math/w_j0f_compat.c: Likewise.
32790         * math/w_j0l_compat.c: Likewise.
32791         * math/w_j1_compat.c: Likewise.
32792         * math/w_j1f_compat.c: Likewise.
32793         * math/w_j1l_compat.c: Likewise.
32794         * math/w_jn_compat.c: Likewise.
32795         * math/w_jnf_compat.c: Likewise.
32796         * math/w_jnl_compat.c: Likewise.
32797         * math/w_lgamma_main.c: Likewise.
32798         * math/w_lgamma_r_compat.c: Likewise.
32799         * math/w_lgammaf_main.c: Likewise.
32800         * math/w_lgammaf_r_compat.c: Likewise.
32801         * math/w_lgammal_main.c: Likewise.
32802         * math/w_lgammal_r_compat.c: Likewise.
32803         * math/w_log10_compat.c: Likewise.
32804         * math/w_log10f_compat.c: Likewise.
32805         * math/w_log10l_compat.c: Likewise.
32806         * math/w_log2_compat.c: Likewise.
32807         * math/w_log2f_compat.c: Likewise.
32808         * math/w_log2l_compat.c: Likewise.
32809         * math/w_log_compat.c: Likewise.
32810         * math/w_logf_compat.c: Likewise.
32811         * math/w_logl_compat.c: Likewise.
32812         * math/w_pow_compat.c: Likewise.
32813         * math/w_powf_compat.c: Likewise.
32814         * math/w_powl_compat.c: Likewise.
32815         * math/w_remainder_compat.c: Likewise.
32816         * math/w_remainderf_compat.c: Likewise.
32817         * math/w_remainderl_compat.c: Likewise.
32818         * math/w_scalb_compat.c: Likewise.
32819         * math/w_scalbf_compat.c: Likewise.
32820         * math/w_scalbl_compat.c: Likewise.
32821         * math/w_sinh_compat.c: Likewise.
32822         * math/w_sinhf_compat.c: Likewise.
32823         * math/w_sinhl_compat.c: Likewise.
32824         * math/w_sqrt_compat.c: Likewise.
32825         * math/w_sqrtf_compat.c: Likewise.
32826         * math/w_sqrtl_compat.c: Likewise.
32827         * math/w_tgamma_compat.c: Likewise.
32828         * math/w_tgammaf_compat.c: Likewise.
32829         * math/w_tgammal_compat.c: Likewise.
32830         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32831         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32832         * sysdeps/ieee754/k_standard.c: Likewise.
32833         * sysdeps/ieee754/k_standardf.c: Likewise.
32834         * sysdeps/ieee754/k_standardl.c: Likewise.
32835         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32836         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32837         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32838         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32839         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32840         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32841         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32842         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32843         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32845         Likewise.
32846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32847         Likewise.
32848         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32849         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32850         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32851         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32853 2017-08-21  Florian Weimer  <fweimer@redhat.com>
32855         [BZ #21864]
32856         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32857         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32858         Move before inclusion of ../Rules.
32860 2017-08-21  Florian Weimer  <fweimer@redhat.com>
32862         [BZ #21972]
32863         * assert/assert.h (assert): Use static_cast (bool) for C++.
32864         Use the ternary operator in the warning branch for GNU C.
32865         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32866         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32867         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32868         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32869         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32871 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32873         [BZ #18822]
32874         * sysdeps/unix/sysv/linux/x86_64/init-first.c
32875         (__syscall_clock_gettime): Add attribute_hidden.
32876         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32877         (__start_context): Likewise.
32879 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32881         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32882         building libc.a.
32883         (hidden_proto): Likewise.
32884         (hidden_tls_proto): Likewise.
32885         (__hidden_proto): Likewise.
32887 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32889         * include/libc-symbols.h (attribute_hidden): Enable hidden
32890         visibility in libc.a compiled with PIE.
32892 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32894         [BZ #18822]
32895         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32896         Add attribute_hidden.
32898 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32900         [BZ #21864]
32901         * Makerules (all-nonlib): Add $(others-extras).
32902         * catgets/Makefile (others-extras): New.
32903         * elf/Makefile (others-extras): Likewise.
32904         * nss/Makefile (others-extras): Likewise.
32906 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32908         [BZ #18822]
32909         * csu/libc-start.c (__libc_multiple_libcs): Removed.
32910         * elf/dl-open.c: Include <libc-internal.h>.
32911         (__libc_multiple_libcs): Removed.
32912         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32913         <hp-timing.h>.
32914         * include/libc-internal.h (__libc_multiple_libcs): New.
32915         * misc/sbrk.c: Include <libc-internal.h>.
32916         (__libc_multiple_libcs): Removed.
32918 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32920         [BZ #18822]
32921         * grp/initgroups.c (__nss_group_database): Removed.
32922         (__nss_initgroups_database): Likewise.
32923         * nscd/gai.c (__nss_hosts_database): Likewise.
32924         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32925         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32926         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32927         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32928         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32929         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32930         attribute_hidden.
32931         * nss/nsswitch.c (__nss_database_custom): Define only if
32932         USE_NSCD is defined.
32933         (__nss_configure_lookup): Use __nss_database_custom only if
32934         USE_NSCD is defined.
32935         * nss/nsswitch.h (__nss_database_custom): Declare only if
32936         USE_NSCD is defined.  Add attribute_hidden.
32937         (__nss_setent): Add attribute_hidden.
32938         (__nss_endent): Likewise.
32939         (__nss_getent_r): Likewise.
32940         (__nss_getent): Likewise.
32941         (DEFINE_DATABASE): Declare __nss_##arg##_database.
32943 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
32945         [BZ #18822]
32946         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32947         libc_hidden_proto and libc_hidden_def.
32949 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
32951         [BZ #18822]
32952         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32953         Add libc_hidden_proto.
32954         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32955         Add libc_hidden_def.
32957 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
32959         [BZ #21974]
32960         * gmon/Makefile (routines): Remove bb_init_func and
32961         bb_exit_func.
32962         (elide-routines.os): Removed.
32963         * gmon/bb_exit_func.c: Likewise.
32964         * gmon/bb_init_func.c: Likewise.
32965         * include/sys/gmon.h (__bb): Likewise.
32966         (__bb_init_func): Likewise.
32967         (__bb_exit_func): Likewise.
32968         * sysdeps/alpha/bb_init_func.S: Likewise.
32970 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
32972         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32973         * include/setjmp.h (____longjmp_chk): Here.  Add
32974         attribute_hidden.
32976 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
32978         [BZ #18822]
32979         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32980         attribute_hidden.
32981         (__strspn_sse2): Likewise.
32983 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32985         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32986         (close_not_cancel_no_status): Likewise.
32987         (__close_nocancel): New macro.
32988         (__close_nocancel_nostatus): Likewise.
32989         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32990         macro.
32991         (close_not_cancel): Likewise.
32992         (close_not_cancel_no_status): Likewise.
32993         (__close_nocancel): New prototype.
32994         (__close_nocancel_nostatus): New function.
32995         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32996         * catgets/open_catalog.c (__open_catalog): Replace
32997         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32998         * gmon/gmon.c (write_gmon): Likewise.
32999         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33000         * intl/loadmsgcat.c (close): Likewise.
33001         * io/ftw.c (open_dir_stream): Likewise.
33002         (ftw_startup): Likewise.
33003         * libio/fileops.c (_IO_file_open): Likewise.
33004         (_IO_file_close_mmap): Likewise.
33005         (_IO_file_close): Likewise.
33006         * libio/iopopen.c (_IO_dup2): Likewise.
33007         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33008         * locale/loadlocale.c (_nl_load_locale): Likewise.
33009         * login/utmp_file.c (pututline_file): Likewise.
33010         (endutent_file): Likewise.
33011         * misc/daemon.c (daemon): Likewise.
33012         * nscd/nscd_getai.c (__nscd_getai): Likewise.
33013         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33014         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33015         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33016         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33017         * nscd/nscd_helper.c (open_socket): Likewise.
33018         (__nscd_open_socket): Likewise.
33019         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33020         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33021         (__nscd_innetgr): Likewise.
33022         * nss/nss_db/db-open.c (internal_setent): Likewise.
33023         * resolv/res-close.c (__res_iclose): Likewise.
33024         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33025         * sysdeps/posix/closedir.c (__closedir): Likewise.
33026         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33027         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33028         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33029         (opendir_tail): Likewise.
33030         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33031         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33032         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33033         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33034         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33035         (gethostid): Likewise.
33036         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33037         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33038         Likewise.
33039         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33040         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33041         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33042         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33043         Likewise.
33044         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33045         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33046         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33047         Likewise.
33048         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33049         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33050         Likewise.
33051         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33052         Likewise.
33053         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33054         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33055         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33056         __close_nocancel.
33058         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33059         (openat_not_cancel_3): Likewise.
33060         (openat64_not_cancel_3): Likewise).
33061         (openat_not_cancel_3): Likewise).
33062         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33063         macro.
33064         (openat_not_cancel_3): Likewise.
33065         (openat64_not_cancel): Likewise.
33066         (openat64_not_cancel_3): Likewise.
33067         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33068         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33069         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33070         __open{64}_nocancel.
33071         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33072         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33073         * sysdeps/posix/opendir.c (__opendirat): Likewise.
33075 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33077         [BZ #18822]
33078         * include/argz.h (__argz_create_sep): New function prototype.
33079         (__argz_append): Likewise.
33080         (__argz_add): Likewise.
33081         (__argz_add_sep): Likewise.
33082         (__argz_delete): Likewise.
33083         (__argz_insert): Likewise.
33084         (__argz_replace): Likewise.
33085         * string/argz.h (__argz_create_sep): Removed.
33086         (__argz_append): Likewise.
33087         (__argz_add): Likewise.
33088         (__argz_add_sep): Likewise.
33089         (__argz_delete): Likewise.
33090         (__argz_insert): Likewise.
33091         (__argz_replace): Likewise.
33093 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33095         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33096         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33097         (GNU_PROPERTY_STACK_SIZE): Likewie.
33098         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33099         (GNU_PROPERTY_LOPROC): Likewise.
33100         (GNU_PROPERTY_HIPROC): Likewise.
33101         (GNU_PROPERTY_LOUSER): Likewise.
33102         (GNU_PROPERTY_HIUSER): Likewise.
33103         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33104         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33105         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33106         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33107         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33108         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33109         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33110         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33111         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33112         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33113         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33114         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33115         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33116         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33117         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33118         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33119         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33120         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33121         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33122         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33123         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33124         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33125         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33127 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33129         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33130         in C++ mode.
33132 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33134         [BZ #21930]
33135         * math/math.h (isinf): Check if in C or C++ mode before using
33136         __builtin_types_compatible_p, since this is a C mode feature.
33138 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33140         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33141         (__write_nocancel): New macro.
33142         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33143         Rewrite as a function prototype.
33144         (write_not_cancel): Remove macro.
33145         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33146         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33147         (write_gmon): Likewise.
33148         * libio/fileops.c (_IO_new_file_write): Likewise.
33149         * login/utmp_file.c (pututline_file): Likewise.
33150         (updwtmp_file): Likewise.
33151         * stdio-common/psiginfo.c (psiginfo): Likewise.
33152         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33153         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33154         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33155         Likewise.
33156         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33157         Likewise.
33159         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33160         (__read_nocancel): New macro.
33161         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33162         __read_nocancel.
33163         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33164         macro.
33165         (__read_nocancel): New prototype.
33166         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33167         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33168         with __read_nocancel.
33169         * intl/loadmsgcat.c (read): Likewise.
33170         * libio/fileops.c (_IO_file_read): Likewise.
33171         * locale/loadlocale.c (_nl_load_locale): Likewise.
33172         * login/utmp_file.c (getutent_r_file): Likewise.
33173         (internal_getut_r): Likewise.
33174         (getutline_r_file): Likewise.
33175         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33176         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33177         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33178         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33179         Likewise.
33180         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33181         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33182         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33183         Likewise.
33184         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33185         Likewise.
33186         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33187         Likewise.
33188         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33189         Likewise.
33190         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33192 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33194         [BZ #21966]
33195         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33196         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33197         usable.
33199 2017-08-17  DJ Delorie  <dj@redhat.com>
33201         * bug17079.c: Update to new test harness.
33202         * test-digits-dots.c: Likewise.
33203         * test-netdb.c: Likewise.
33204         * tst-field.c: Likewise.
33205         * tst-nss-getpwent.c: Likewise.
33206         * tst-nss-static.c: Likewise.
33207         * tst-nss-test1.c: Likewise.
33208         * tst-nss-test2.c: Likewise.
33209         * tst-nss-test3.c: Likewise.
33210         * tst-nss-test4.c: Likewise.
33211         * tst-nss-test5.c: Likewise.
33213 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33215         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33216         (open_not_cancel_2): Likewise.
33217         (open_nocancel): New macro.
33218         (open64_nocancel): Likewise.
33219         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33220         (open_not_cancel_2): Likewise.
33221         (__open_nocancel): New prototype.
33222         (__open64_nocancel): Likewise.
33223         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33224         __open_nocancel.
33225         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33226         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33227         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33228         with __open_nocancel.
33229         * csu/check_fds.c (check_one_fd): Likewise.
33230         * gmon/gmon.c (write_gmon): Likewise.
33231         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33232         * intl/loadmsgcat.c (open): Likewise.
33233         * libio/fileops.c (_IO_file_open): Likewise.
33234         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33235         * locale/loadlocale.c (_nl_load_locale): Likewise.
33236         * login/utmp_file.c (setutent_file): Likewise.
33237         * misc/daemon.c (daemon): Likewise.
33238         * nss/nss_db/db-open.c (internal_setent): Likewise.
33239         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33240         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33241         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33242         (__opendir): Likewise.
33243         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33244         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33245         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33246         (gethostid): Likewise.
33247         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33248         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33249         Likewise.
33250         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33251         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33252         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33253         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33254         Likewise.
33255         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33256         Likewise.
33257         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33258         Likewise.
33259         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33260         Likewise.
33261         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33262         Likewise.
33263         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33264         Likewise.
33265         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33266         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33268 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
33270         * benchtests/bench-skeleton.c (main): Add support for
33271         latency benchmarking.
33272         * benchtests/scripts/bench.py: Add support for latency benchmarking.
33274 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
33276         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33277         the startup object.
33279 2017-08-17  Florian Weimer  <fweimer@redhat.com>
33281         * include/sys/socket.h (__opensock): Remove internal_function.
33282         * socket/opensock.c (__opensock): Likewise.
33283         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33285 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
33287         [BZ #21944]
33288         * signal/bits/types/__sigval_t.h: New file.
33289         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33290         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33291         and define sigval_t using __sigval_t.
33292         * include/bits/types/__sigval_t.h: New file.
33293         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33294         instead of <bits/types/__sigval_t.h>.
33295         (struct sigevent): Use __sigval_t instead of sigval_t.
33296         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33297         instead of <bits/types/__sigval_t.h>.
33298         (siginfo_t): Use __sigval_t instead of sigval_t.
33299         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33300         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33301         (struct sigevent): Use __sigval_t instead of sigval_t.
33302         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33303         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33304         (siginfo_t): Use __sigval_t instead of sigval_t.
33305         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33307 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33309         * NEWS: Remove "[Add new features here]" for 2.27.
33311 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
33313         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33314         libc.so.
33316 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33318         * NEWS: Mention x86-64 FMA optimization.
33320 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33322         [BZ #21912]
33323         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33324         Add e_expf-fma.
33325         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33326         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33327         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33329 2017-08-16  Andreas Schwab  <schwab@suse.de>
33331         [BZ #16750]
33332         CVE-2009-5064
33333         * elf/ldd.bash.in: Never run file directly.
33335 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
33337         [BZ #21955]
33338         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33339         (L(SP_INF_0)): Likewise.
33341 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33343         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33344         run-built-tests.
33346 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33348         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33349         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33350         BROKEN_THREAD_SIGNALS code.
33351         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33352         request_list): Remove caller_pid member used for
33353         BROKEN_THREAD_SIGNALS.
33354         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33355         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33356         Remove BROKEN_THREAD_SIGNALS support.
33357         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33358         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33360 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33362         * gmon/Makefile (tests): Add tst-gmon.
33363         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33364         Set.
33365         (tests-special): Add tst-gmon-prof.out.
33366         (tst-gmon.out): Depend on clean-tst-gmon-data.
33367         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33368         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33369         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33370         startup object.
33371         * aclocal.m4 (GPROF): Set and substitute.
33372         * config.amke.in (GPROF): Set.
33373         * configure: Regenerate.
33375 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
33377         * elf/elf.h A (NT_PPC_TAR): New macro.
33378         (NT_PPC_PPR): Likewise.
33379         (NT_PPC_DSCR): Likewise.
33380         (NT_PPC_EBB): Likewise.
33381         (NT_PPC_PMU): Likewise.
33382         (NT_PPC_TM_CGPR): Likewise.
33383         (NT_PPC_TM_CFPR): Likewise.
33384         (NT_PPC_TM_CVMX): Likewise.
33385         (NT_PPC_TM_CVSX): Likewise.
33386         (NT_PPC_TM_SPR): Likewise.
33387         (NT_PPC_TM_CTAR): Likewise.
33388         (NT_PPC_TM_CPPR): Likewise.
33389         (NT_PPC_TM_CDSCR): Likewise.
33391 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33393         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33394         regparm (2) instead of internal_function.
33395         (_MCOUNT_DECL): Adjust.
33397 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
33399         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33400         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33402 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
33404         * conform/data/sys/wait.h-data (si_value): Do not expect for
33405         XPG42.
33407 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33409         [BZ #21962]
33410         NSS: Create stubs for accidentally exported lookup functions.
33411         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33412         Remove declaration.
33413         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33414         (ether_hostton): Call __nss_ethers_lookup2 instead.
33415         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33416         (ether_ntohost): Call __nss_ethers_lookup2 instead.
33417         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33418         (setup): Call __nss_netgroup_lookup2 instead.
33419         * nss/Makefile (routines): Add compat-lookup.
33420         * nss/Versions (GLIBC_2.27): Add symbol version.
33421         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
33422         (DB_COMPAT_FCT): Remove.
33423         * nss/compat-lookup.c: New file.
33424         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33425         from databases.def.
33426         * nss/service-lookup.c (NO_COMPAT): Remove definition.
33427         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33428         (netname2user): Call __nss_publickey_lookup2 instead.
33429         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33430         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33431         instead.
33433 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33434             Sergei Trofimovich  <slyfox@inbox.ru>
33436         [BZ #21908]
33437         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33438         Rename to MMAP2_PAGE_UNIT.
33439         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33440         __OFF_T_MATCHES_OFF64_T is not defined.
33441         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33442         uint64_t.
33443         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33444         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33446 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33448         i386: Do not set internal_function.
33449         * config.h.in (USE_REGPARMS, internal_function): Remove.
33450         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33451         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33453 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33455         * elf/dl-init.c (_dl_init): Remove internal_function.
33456         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33457         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33459 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33461         * elf/rtld.c (_dl_start): Remove internal_function.
33462         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33463         _dl_start.
33465 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33467         * elf/dl-fini.c (_dl_fini): Remove internal_function
33468         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33470 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
33472         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33473         (bit_cpu_SHSTK): Likewise.
33474         (index_cpu_IBT): Likewise.
33475         (index_cpu_SHSTK): Likewise.
33476         (reg_IBT): Likewise.
33477         (reg_SHSTK): Likewise.
33478         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33479         Handle index_cpu_IBT and index_cpu_SHSTK.
33481 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
33483         [BZ #19982]
33484         * po/fr.po: Fix spelling mistake.
33486 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33488         * elf/dl-addr.c (_dl_addr): Remove internal_function.
33489         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33490         (_dl_catch_error, _dl_receive_error): Likewise.
33491         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33492         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33493         (_dl_deallocate_tls): Likewise.
33494         * include/dlfcn.h (_dl_addr): Likewise.
33495         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33496         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33497         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33498         Likewise.
33500 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33502         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33503         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33504         internal_function.
33505         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33507 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33509         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33510         internal_function.
33511         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33512         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33513         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33514         internal_function from _dl_make_stack_executable_hook member.
33515         (_dl_make_stack_executable): Remove internal_function.
33516         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33517         Likewise.
33518         * sysdeps/unix/sysv/linux/dl-execstack.c
33519         (_dl_make_stack_executable): Likewise.
33521 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33523         * sysdeps/unix/sysv/linux/netlinkaccess.h
33524         (__netlink_assert_response): Remove internal_function.
33525         * sysdeps/unix/sysv/linux/netlink_assert_response.c
33526         (__netlink_assert_response): Likewise.
33528 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33530         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33531         internal_function.
33532         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33534 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33536         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33537         internal_function.
33538         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33539         * inet/netgroup.h (__internal_setnetgrent)
33540         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33541         * inet/getnetgrent_r.c (__internal_setnetgrent)
33542         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33543         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33544         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33545         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33546         * nss/nsswitch.h (db_lookup_function): Likewise.
33548 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33550         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33551         Remove internal_function.
33552         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33553         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33554         message argument on the stack.
33555         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33556         Likeweise.
33558 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
33560         Adapt test case data to the changes in the thousands
33561         separators.
33563         [BZ #20756]
33564         * localedata/tst-langinfo.sh: Adapt test case data.
33565         * stdlib/tst-strfmon_l.c: Likewise.
33566         * stdlib/tst-strtod4.c: Likewise.
33567         * stdlib/tst-strtod5i.c: Likewise.
33569 2017-08-11  Florian Weimer  <fweimer@redhat.com>
33571         [BZ #21242]
33572         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33573         Suppress pedantic warning resulting from statement expression.
33574         (__ASSERT_FUNCTION): Add missing __extension__.
33576 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
33578         * benchtests/bench-memmove-large.c: Print output in JSON
33579         format.
33580         * benchtests/bench-memmove.c: Likewise.
33582         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33583         * benchtests/bench-memchr.c (do_one_test): Likewise.
33584         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33585         * benchtests/bench-memcpy.c (do_one_test): Likewise.
33586         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33587         * benchtests/bench-memmove.c (do_one_test): Likewise.
33588         * benchtests/bench-memset-large.c (do_one_test): Likewise.
33589         * benchtests/bench-memset.c (do_one_test): Likewise.
33590         * benchtests/bench-string.h (test_init): Remove memsets.
33592 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
33594         * manual/lang.texi
33595         (Computing the Width of an Integer Data Type): Rename section to
33596         "Width of an Integer Type".  Remove inaccurate statement regarding
33597         lack of C language facilities for determining width of integer
33598         types, and reorder content to improve flow and context of
33599         discussion.
33601 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
33603         * lang.texi (va_copy): Change standard from ISO to C99.
33604         (__va_copy): Add standard and header annotation.
33605         Update description for clarity of origins and current use.
33607 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33609         [BZ #21941]
33610         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33611         xssqrtqp requires operands to be in Vector Registers
33612         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33613         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33614         (__ieee754_sqrtf128): Likewise.
33616 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
33618         * sysdeps/aarch64/memcmp.S (memcmp):
33619         Rewrite of optimized memcmp.
33621 2017-08-10  Florian Weimer  <fweimer@redhat.com>
33623         Introduce ld.so exceptions.
33624         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33625         (_dl_exception_create, _dl_exception_create_format)
33626         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33627         (_dl_catch_exception): Declare.
33628         (_dl_catch_error): Update comment.
33629         * elf/dl-error-skeleton.c (struct catch): Replace objname,
33630         errstring, malloced members with exception member.
33631         (_dl_out_of_memory): Remove.
33632         (fatal_error): New function, extracted from _dl_signal_error.
33633         (_dl_signal_exception, _dl_signal_cexception): New functions.
33634         (_dl_signal_error): Call _dl_exception_create to allocate an
33635         exception object.
33636         (_dl_catch_exception): New function, based on _dl_catch_error.
33637         (_dl_catch_error): Implement using _dl_catch_exception.
33638         * elf/dl-exception.c: New file.
33639         * elf/Makefile (dl-routines): Add dl-exception.
33640         (elide-routines.os): Likewise.
33641         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33642         _dl_exception_create_format, _dl_exception_free.
33643         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33644         _dl_signal_exception.
33645         * elf/dl-lookup.c (make_string): Remove.
33646         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33647         _dl_signal_cexception, _dl_exception_free.
33648         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33649         _dl_signal_exception.
33650         * elf/dl-sym.c (do_sym): Likewise.
33651         * elf/dl-version.c (make_string): Remove.
33652         (match_symbol): Use _dl_exception_create_format,
33653         _dl_signal_cexception, _dl_exception_free.
33654         (_dl_check_map_versions): Likewise.
33655         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33656         _dl_catch_exception.
33657         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33658         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33659         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33660         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33661         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33662         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33663         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33664         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33665         Likewise.
33666         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33668         (ld.so): Likewise.
33669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33670         (ld.so): Likewise.
33671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33672         Likewise.
33673         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33674         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33675         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33676         Likewise.
33677         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33678         Likewise.
33679         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33681 2017-08-10  Florian Weimer  <fweimer@redhat.com>
33683         * inet/net-internal.h (__inet6_scopeid_pton): Remove
33684         attribute_hidden, internal_function.
33685         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33686         internal_function.
33688 2017-08-10  Florian Weimer  <fweimer@redhat.com>
33690         * malloc/malloc.c (get_max_fast): Reimplement as an inline
33691         function which calls __builtin_unreachable.
33693 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
33695         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33696         Indian monetary formatting
33697         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33698         test cases.
33700 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
33702         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33703         Fix typo in comment.
33705         [BZ #21928]
33706         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33707         PTRACE_SEIZE_DEVEL): Remove.
33708         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33709         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33710         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33711         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33712         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33714 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
33716         * posix/bits/types.h (__qaddr_t): Remove.
33718         [BZ #21457]
33719         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33720         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33721         __glibc_reserved1.
33722         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33723         (ucontext_t): Use __ctx with uc_flags.
33724         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33725         (__ctxt): Likewise.
33726         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33727         __glibc_reserved1.
33728         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33729         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33730         __glibc_reserved1.
33731         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33732         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33733         __glibc_reserved1.
33734         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33735         macro.
33736         (ucontext_t): Use __ctx with uc_flags.
33737         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33738         (ucontext_t): Use __ctx with uc_flags.
33739         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33740         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33741         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33742         (ucontext_t): Use __ctx with uc_flags.
33743         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33744         undefine further down.
33745         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33746         __glibc_reserved1.
33747         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33748         undefine further down.
33749         (ucontext_t): Use __ctx with uc_flags.
33750         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33751         undefine further down.
33752         (ucontext_t): Use __ctx with uc_flags.
33753         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33754         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33755         Rename uc_pad to __glibc_reserved1.
33756         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33757         undefine further down.
33758         (ucontext_t): Use __ctx with uc_flags.
33759         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33760         further down.
33761         (ucontext_t): Use __ctx with uc_flags.
33762         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33763         __ctx with uc_flags.
33764         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33765         (ucontext_t): Use __ctx with uc_flags.
33766         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33767         __ctx with uc_flags.
33769 2017-08-09  Florian Weimer  <fweimer@redhat.com>
33771         [BZ #21932]
33772         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33773         before early return.
33775 2017-08-09  Andreas Schwab  <schwab@suse.de>
33777         [BZ #21041]
33778         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33779         renamed alias.
33781         [BZ #21041]
33782         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33783         tst-compat-forwarder.
33784         (modules-names): Add tst-compat-forwarder-mod.
33785         ($(objpfx)tst-compat-forwarder): Depend on
33786         $(objpfx)tst-compat-forwarder-mod.so.
33787         * nptl/tst-compat-forwarder.c: New file.
33788         * nptl/tst-compat-forwarder-mod.c: New file.
33790 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
33792         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33793         comments.
33795         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33796         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33797         memcpy_falkor.
33798         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33799         Bump.
33800         (__libc_ifunc_impl_list): Add __memcpy_falkor.
33801         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33802         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33803         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33804         Add falkor.
33805         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33806         New macro.
33808 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33810         [BZ #759]
33811         * manual/setjmp.texi (getcontex): Document uc_stack value
33812         compatibility differences.
33814 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
33816         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33817         (old_malloc_hook): Likewise.
33818         (old_memalign_hook): Likewise.
33819         (old_realloc_hook): Likewise.
33820         (struct hdr): Likewise.
33821         (flood): Likewise.
33822         (freehook): Likewise.
33823         (mallochook): Likewise.
33824         (memalignhook): Likewise.
33825         (reallochook): Likewise.
33826         (mprobe): Likewise.
33827         * malloc/mtrace.c (mallwatch): Likewise.
33828         (tr_old_free_hook): Likewise.
33829         (tr_old_malloc_hook): Likewise.
33830         (tr_old_realloc_hook): Likewise.
33831         (tr_old_memalign_hook): Likewise.
33832         (tr_where): Likewise.
33833         (lock_and_info): Likewise.
33834         (tr_freehook): Likewise.
33835         (tr_mallochook): Likewise.
33836         (tr_reallochook): Likewise.
33837         (tr_memalignhook): Likewise.
33838         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33839         * misc/mmap.c (__mmap): Likewise.
33840         * misc/mmap64.c (__mmap64): Likewise.
33841         * misc/mprotect.c (__mprotect): Likewise.
33842         * misc/msync.c (msync): Likewise.
33843         * misc/munmap.c (__munmap): Likewise.
33844         * posix/posix_madvise.c (posix_madvise): Likewise.
33845         * socket/send.c (__send): Likewise.
33846         * socket/sendto.c (__sendto): Likewise.
33847         * socket/setsockopt.c (__setsockopt): Likewise.
33848         * string/memcmp.c (__ptr_t): Remove macro.
33849         (MEMCMP): Use void * instead of ptr_t.
33850         * string/memrchr.c (__ptr_t): Remove macro.
33851         (__memrchr): Use void * instead of ptr_t.
33852         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33853         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33854         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33855         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33856         * sysdeps/mach/msync.c (msync): Likewise.
33857         * sysdeps/mach/munmap.c (__munmap): Likewise.
33858         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33859         Likewise.
33860         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33861         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33862         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33863         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33864         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33865         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33866         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33867         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33868         Likewise.
33869         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33870         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33871         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33872         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33873         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33874         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33875         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33876         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33877         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33878         Likewise.
33879         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33880         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33881         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33882         (MEMCMP): Use void * instead of ptr_t.
33883         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33884         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33886 2017-08-08  Florian Weimer  <fweimer@redhat.com>
33888         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33889         return statement.
33891 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
33893         [BZ #21913]
33894         * csu/libc-tls.c: Include <startup.h> first.
33895         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33896         * elf/dl-tunables.c: Include <startup.h> first.
33897         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33898         * sysdeps/generic/startup.h: New file.
33899         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33900         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33901         (I386_USE_SYSENTER): New.  Defined to 0.
33903 2017-08-08  Andreas Schwab  <schwab@suse.de>
33905         [BZ #21041]
33906         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33907         * nptl/pt-system.c (system): Likewise.
33909 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33911         [BZ #21780]
33912         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33913         EOPNOTSUPP.
33914         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33915         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33916         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33917         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33918         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33919         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33920         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33922 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
33924         [BZ #21899]
33925         * bits/sigaction.h (struct sigaction): Define sa_handler and
33926         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33927         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33928         [__USE_XOPEN_EXTENDED].
33929         (SA_RESTART): Likewise.
33930         (SA_NODEFER): Likewise.
33931         (SA_RESETHAND): Likewise.
33932         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33933         (struct sigaction): Define sa_handler and sa_sigaction using union
33934         also for [__USE_XOPEN_EXTENDED].
33935         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33936         [__USE_XOPEN_EXTENDED].
33937         (SA_RESTART): Likewise.
33938         (SA_NODEFER): Likewise.
33939         (SA_RESETHAND): Likewise.
33940         * sysdeps/unix/sysv/linux/bits/sigaction.h
33941         (struct sigaction): Define sa_handler and sa_sigaction using union
33942         also for [__USE_XOPEN_EXTENDED].
33943         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33944         [__USE_XOPEN_EXTENDED].
33945         (SA_RESTART): Likewise.
33946         (SA_NODEFER): Likewise.
33947         (SA_RESETHAND): Likewise.
33948         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33949         (struct sigaction): Define sa_handler and sa_sigaction using union
33950         also for [__USE_XOPEN_EXTENDED].
33951         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33952         [__USE_XOPEN_EXTENDED].
33953         (SA_RESTART): Likewise.
33954         (SA_NODEFER): Likewise.
33955         (SA_RESETHAND): Likewise.
33956         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33957         (struct sigaction): Define sa_handler and sa_sigaction using union
33958         also for [__USE_XOPEN_EXTENDED].
33959         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33960         [__USE_XOPEN_EXTENDED].
33961         (SA_RESTART): Likewise.
33962         (SA_NODEFER): Likewise.
33963         (SA_RESETHAND): Likewise.
33964         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33965         (struct sigaction): Define sa_handler and sa_sigaction using union
33966         also for [__USE_XOPEN_EXTENDED].
33967         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33968         [__USE_XOPEN_EXTENDED].
33969         (SA_RESTART): Likewise.
33970         (SA_NODEFER): Likewise.
33971         (SA_RESETHAND): Likewise.
33972         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33973         (struct sigaction): Define sa_handler and sa_sigaction using union
33974         also for [__USE_XOPEN_EXTENDED].
33975         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33976         [__USE_XOPEN_EXTENDED].
33977         (SA_RESTART): Likewise.
33978         (SA_NODEFER): Likewise.
33979         (SA_RESETHAND): Likewise.
33980         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33981         (struct sigaction): Define sa_handler and sa_sigaction using union
33982         also for [__USE_XOPEN_EXTENDED].
33983         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33984         [__USE_XOPEN_EXTENDED].
33985         (SA_RESTART): Likewise.
33986         (SA_NODEFER): Likewise.  Define directly rather than as alias.
33987         (SA_RESETHAND): Likewise.
33988         (SA_INTERRUPT): Define only for [__USE_MISC].
33989         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33990         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33991         [__USE_MISC].
33992         (SA_STACK): Define only for [__USE_MISC].
33993         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33994         (struct sigaction): Define sa_handler and sa_sigaction using union
33995         also for [__USE_XOPEN_EXTENDED].
33996         (SA_ONSTACK): Change [__USE_UNIX98] condition to
33997         [__USE_XOPEN_EXTENDED].
33998         (SA_RESTART): Likewise.
33999         (SA_NODEFER): Likewise.
34000         (SA_RESETHAND): Likewise.
34001         (SA_NOPTRACE): Define only for [__USE_MISC].
34003         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34004         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34005         (struct catalog_info): Likewise.
34006         * inet/htontest.c (lo): Likewise.
34007         (foo): Likewise.
34008         * inet/inet_lnaof.c (inet_lnaof): Likewise.
34009         * inet/inet_net.c (inet_network): Likewise.
34010         * inet/inet_netof.c (inet_netof): Likewise.
34011         * inet/rcmd.c (__ivaliduser): Likewise.
34012         (iruserok): Likewise.
34013         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34014         * locale/programs/locale-spec.c (locale_special): Likewise.
34015         * nis/nis_findserv.c (struct findserv_req): Likewise.
34016         (__nis_findfastest_with_timeout): Likewise.
34017         * nss/test-netdb.c (test_network): Likewise.
34018         * resolv/inet_neta.c (inet_neta): Likewise.
34019         * resolv/ns_date.c (ns_datetosecs): Likewise.
34020         (SECS_PER_DAY): Likewise.
34021         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34022         Likewise.
34023         * resolv/res_comp.c (__putlong): Likewise.
34024         (__putshort): Likewise.
34025         (_getlong): Likewise.
34026         (_getshort): Likewise.
34027         * resolv/res_debug.c (p_time): Likewise.
34028         (precsize_ntoa): Likewise.
34029         (precsize_aton): Likewise.
34030         (latlon2ul): Likewise.
34031         (loc_aton): Likewise.
34032         (loc_ntoa): Likewise.
34033         * resolv/res_hconf.c (struct netaddr): Likewise.
34034         (_res_hconf_reorder_addrs): Likewise.
34035         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34036         (clnttcp_control): Likewise.
34037         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34038         (clntudp_control): Likewise.
34039         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34040         (clntunix_control): Likewise.
34041         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34042         * sunrpc/rpc/auth.h (union des_block): Likewise.
34043         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34044         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34045         (xdrrec_create): Likewise.
34046         (xdrrec_endofrecord): Likewise.
34047         (flush_out): Likewise.
34048         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34049         (xdrstdio_putlong): Likewise.
34050         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34051         Likewise.
34053         * misc/sys/cdefs.h (__long_double_t): Remove.
34054         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34055         instead of __long_double_t,
34056         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34058 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34060         * benchtests/scripts/compare_strings.py: Avoid display error when
34061         running on a text terminal.
34063         * benchtests/scripts/compare_strings.py (main): Add an
34064         optional -base option.
34065         (process_results): New argument base_func.
34067         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34068         hardcoding memcpy.
34069         * benchtests/bench-memcpy-large.c (test_name): Likewise.
34070         * benchtests/bench-memcpy-random.c (test_name): Likewise.
34072 2017-08-07  Andreas Schwab  <schwab@suse.de>
34074         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34075         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34076         * intl/Makefile ($(objpfx)tst-gettext.out)
34077         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34078         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34079         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34080         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34081         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34082         * posix/Makefile ($(objpfx)globtest.out)
34083         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34084         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34085         ($(objpfx)tst-printf.out): Likewise.
34086         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34087         ($(objpfx)tst-setcontext3.out): Likewise.
34089 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
34091         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34092         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34093         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34094         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34095         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34096         and mptan-fma.
34097         (CFLAGS-doasin-fma.c): New.
34098         (CFLAGS-dosincos-fma.c): Likewise.
34099         (CFLAGS-e_asin-fma.c): Likewise.
34100         (CFLAGS-e_atan2-fma.c): Likewise.
34101         (CFLAGS-e_exp-fma.c): Likewise.
34102         (CFLAGS-e_log-fma.c): Likewise.
34103         (CFLAGS-e_pow-fma.c): Likewise.
34104         (CFLAGS-halfulp-fma.c): Likewise.
34105         (CFLAGS-mpa-fma.c): Likewise.
34106         (CFLAGS-mpatan-fma.c): Likewise.
34107         (CFLAGS-mpatan2-fma.c): Likewise.
34108         (CFLAGS-mpexp-fma.c): Likewise.
34109         (CFLAGS-mplog-fma.c): Likewise.
34110         (CFLAGS-mpsqrt-fma.c): Likewise.
34111         (CFLAGS-mptan-fma.c): Likewise.
34112         (CFLAGS-s_atan-fma.c): Likewise.
34113         (CFLAGS-sincos32-fma.c): Likewise.
34114         (CFLAGS-slowexp-fma.c): Likewise.
34115         (CFLAGS-slowpow-fma.c): Likewise.
34116         (CFLAGS-s_sin-fma.c): Likewise.
34117         (CFLAGS-s_tan-fma.c): Likewise.
34118         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34119         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34120         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34121         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34122         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34123         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34124         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34125         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34126         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34127         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34128         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34129         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34130         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34131         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34132         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34133         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34134         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34135         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34136         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34137         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34138         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34139         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34140         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34141         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34142         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34143         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34144         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34145         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34146         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34147         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34148         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34150 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
34152         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34153         (min_of_type_f): New macro.
34154         (min_of_type_): Likewise.
34155         (min_of_type_l): Likewise.
34156         (min_of_type_f128): Likewise.
34157         (min_of_type): Define using __MATH_TG and taking an expression
34158         argument.
34159         (math_check_force_underflow): Pass expression instead of type to
34160         min_of_type.
34161         (math_check_force_underflow_nonneg): Likewise.
34163 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34165         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34166         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34167         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34169 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34171         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34172         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34173         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34174         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34175         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34176         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34177         memcpy_chk-nonshared, mempcpy_chk-nonshared,
34178         memmove_chk-nonshared and memset_chk-nonshared
34179         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34180         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34181         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34182         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34183         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34184         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34185         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34186         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34187         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34188         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34189         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34190         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34191         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34192         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34193         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34194         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34195         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34196         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34197         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34198         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34199         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34200         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34201         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34202         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34203         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34204         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34205         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34206         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34207         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34208         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34209         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34210         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34211         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34212         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34213         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34214         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34215         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34216         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34217         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34218         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34219         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34220         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34221         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34222         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34223         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34224         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34225         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34226         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34227         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34228         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34229         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34230         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34231         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34232         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34233         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34234         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34235         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34236         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34237         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34238         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34239         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34240         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34241         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34242         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34243         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34244         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34245         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34246         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34247         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34248         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34249         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34250         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34251         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34252         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34253         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34254         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34255         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34256         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34257         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34258         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34259         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34260         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34261         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34262         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34263         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34264         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34265         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34266         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34267         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34268         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34269         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34270         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34271         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34272         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34273         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34274         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34275         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34276         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34277         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34278         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34279         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34280         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34281         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34282         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34283         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34284         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34285         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34286         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34288 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34290         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34291         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34292         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34293         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34294         svml_d_log2_core-sse2, svml_d_log4_core-sse,
34295         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34296         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34297         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34298         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34299         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34300         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34301         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34302         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34303         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34304         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34305         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34306         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34307         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34308         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34309         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34310         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34311         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34312         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34313         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34314         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34315         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34316         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34317         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34318         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34319         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34320         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34321         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34322         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34323         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34324         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34325         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34326         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34327         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34328         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34329         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34330         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34331         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34332         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34333         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34334         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34335         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34336         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34337         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34338         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34339         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34340         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34341         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34342         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34343         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34344         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34345         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34346         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34347         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34348         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
34349         ...
34350         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34351         Don't include <sysdep.h> nor <init-arch.h>.
34352         (_ZGVbN2v_cos): Removed.
34353         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
34354         ...
34355         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34356         Don't include <sysdep.h> nor <init-arch.h>.
34357         (_ZGVdN4v_cos): Removed.
34358         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
34359         ...
34360         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34361         Don't include <sysdep.h> nor <init-arch.h>.
34362         (_ZGVeN8v_cos): Removed.
34363         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
34364         ...
34365         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34366         Don't include <sysdep.h> nor <init-arch.h>.
34367         (_ZGVbN2v_exp): Removed.
34368         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
34369         ...
34370         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34371         Don't include <sysdep.h> nor <init-arch.h>.
34372         (_ZGVdN4v_exp): Removed.
34373         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
34374         ...
34375         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34376         Don't include <sysdep.h> nor <init-arch.h>.
34377         (_ZGVeN8v_exp): Removed.
34378         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
34379         ...
34380         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34381         Don't include <sysdep.h> nor <init-arch.h>.
34382         (_ZGVbN2v_log): Removed.
34383         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
34384         ...
34385         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34386         Don't include <sysdep.h> nor <init-arch.h>.
34387         (_ZGVdN4v_log): Removed.
34388         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
34389         ...
34390         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34391         Don't include <sysdep.h> nor <init-arch.h>.
34392         (_ZGVeN8v_log): Removed.
34393         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
34394         ...
34395         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34396         Don't include <sysdep.h> nor <init-arch.h>.
34397         (_ZGVbN2vv_pow): Removed.
34398         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
34399         ...
34400         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34401         Don't include <sysdep.h> nor <init-arch.h>.
34402         (_ZGVdN4vv_pow): Removed.
34403         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
34404         ...
34405         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34406         Don't include <sysdep.h> nor <init-arch.h>.
34407         (_ZGVeN8vv_pow): Removed.
34408         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
34409         ...
34410         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34411         Don't include <sysdep.h> nor <init-arch.h>.
34412         (_ZGVbN2v_sin): Removed.
34413         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
34414         ...
34415         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34416         Don't include <sysdep.h> nor <init-arch.h>.
34417         (_ZGVbN4v_sin): Removed.
34418         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
34419         ...
34420         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34421         Don't include <sysdep.h> nor <init-arch.h>.
34422         (_ZGVbN8v_sin): Removed.
34423         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
34424         ...
34425         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34426         Don't include <sysdep.h> nor <init-arch.h>.
34427         (_ZGVbN2vvv_sincos): Removed.
34428         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
34429         ...
34430         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34431         Don't include <sysdep.h> nor <init-arch.h>.
34432         (_ZGVdN4vvv_sincos): Removed.
34433         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
34434         ...
34435         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34436         Don't include <sysdep.h> nor <init-arch.h>.
34437         (_ZGVeN8vvv_sincos): Removed.
34438         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
34439         ...
34440         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34441         Don't include <sysdep.h> nor <init-arch.h>.
34442         (_ZGVeN16v_cosf): Removed.
34443         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
34444         ...
34445         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34446         Don't include <sysdep.h> nor <init-arch.h>.
34447         (_ZGVbN4v_cosf): Removed.
34448         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
34449         ...
34450         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34451         Don't include <sysdep.h> nor <init-arch.h>.
34452         (_ZGVdN8v_cosf): Removed.
34453         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
34454         ...
34455         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34456         Don't include <sysdep.h> nor <init-arch.h>.
34457         (_ZGVeN16v_expf): Removed.
34458         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
34459         ...
34460         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34461         Don't include <sysdep.h> nor <init-arch.h>.
34462         (_ZGVbN4v_expf): Removed.
34463         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
34464         ...
34465         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34466         Don't include <sysdep.h> nor <init-arch.h>.
34467         (_ZGVdN8v_expf): Removed.
34468         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
34469         ...
34470         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34471         Don't include <sysdep.h> nor <init-arch.h>.
34472         (_ZGVeN16v_logf): Removed.
34473         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
34474         ...
34475         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34476         Don't include <sysdep.h> nor <init-arch.h>.
34477         (_ZGVbN4v_logf): Removed.
34478         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
34479         ...
34480         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34481         Don't include <sysdep.h> nor <init-arch.h>.
34482         (_ZGVdN8v_logf): Removed.
34483         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
34484         ...
34485         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34486         Don't include <sysdep.h> nor <init-arch.h>.
34487         (_ZGVeN16vv_powf): Removed.
34488         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
34489         ...
34490         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34491         Don't include <sysdep.h> nor <init-arch.h>.
34492         (_ZGVbN4vv_powf): Removed.
34493         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
34494         ...
34495         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34496         Don't include <sysdep.h> nor <init-arch.h>.
34497         (_ZGVdN8vv_powf): Removed.
34498         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
34499         ...
34500         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34501         Don't include <sysdep.h> nor <init-arch.h>.
34502         (_ZGVeN16vvv_sincosf): Removed.
34503         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
34504         ...
34505         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34506         Don't include <sysdep.h> nor <init-arch.h>.
34507         (_ZGVbN4vvv_sincosf): Removed.
34508         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
34509         ...
34510         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34511         Don't include <sysdep.h> nor <init-arch.h>.
34512         (_ZGVdN8vvv_sincosf): Removed.
34513         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
34514         ...
34515         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34516         Don't include <sysdep.h> nor <init-arch.h>.
34517         (_ZGVeN16v_sinf): Removed.
34518         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
34519         ...
34520         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34521         Don't include <sysdep.h> nor <init-arch.h>.
34522         (_ZGVbN4v_sinf): Removed.
34523         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
34524         ...
34525         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34526         Don't include <sysdep.h> nor <init-arch.h>.
34527         (_ZGVdN8v_sinf): Removed.
34529 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34531         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34532         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34533         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34534         s_rint-sse4_1 and s_rintf-sse4_1.
34535         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34536         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34537         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34538         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34539         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34540         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34541         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34542         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34543         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34544         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34545         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
34546         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34547         (__ceil): Removed.
34548         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34549         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
34550         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34551         (__ceilf): Removed.
34552         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34553         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
34554         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34555         (__floor): Removed.
34556         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34557         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
34558         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34559         (__floorf): Removed.
34560         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34561         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
34562         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34563         (__nearbyint): Removed.
34564         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34565         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
34566         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34567         (__nearbyintf): Removed.
34568         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34569         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
34570         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34571         (__rint): Removed.
34572         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34573         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
34574         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34575         (__rintf): Removed.
34577 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34579         * sysdeps/i386/start.S (_start): Check Check PIC instead of
34580         SHARED.  Avoid dynamic relocation against main in static PIE.
34582 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34584         [BZ #21815]
34585         * elf/Makefile (CFLAGS-tst-prelink.c): New.
34586         (LDFLAGS-tst-prelink): Likewise.
34588 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34590         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34591         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34592         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34593         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34594         (INTERNAL_SYSCALL_NCS): Likewise.
34595         (LOADARGS_1): Likewise.
34596         (LOADARGS_5): Likewise.
34597         (RESTOREARGS_1): Likewise.
34598         (RESTOREARGS_5): Likewise.
34600 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34602         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34603         (MEMPCPY_SYMBOL): Likewise.
34604         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34605         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34606         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34607         in libc.a.
34608         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34609         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34610         Likewise.
34611         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34612         (__hidden_ver1): Don't use in libc.a.
34613         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34614         (__mempcpy): Don't create a weak alias in libc.a.
34615         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34616         libc.a.
34617         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34618         (__hidden_ver1): Don't use in libc.a.
34620 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34622         * config.make.in (have-insert): New.
34623         * configure.ac (libc_cv_insert): New.  Set to yes if linker
34624         supports INSERT in linker script.
34625         (AC_SUBST(libc_cv_insert): New.
34626         * configure: Regenerated.
34627         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34628         if $(have-insert) == yes.
34630 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34632         * elf/Makefile (tests): Add vismain only if
34633         $(have-protected-data) == yes.
34634         (tests-pie): Likewise.
34636 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34638         [BZ #21871]
34639         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34640         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34642 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34644         [BZ #21790]
34645         * sysdeps/i386/i586/memset.S
34646         (__memset_zero_constant_len_parameter): Removed.
34647         * sysdeps/i386/i686/memset.S
34648         (__memset_zero_constant_len_parameter): Likewise.
34649         * sysdeps/i386/i686/multiarch/memset_chk.S
34650         (__memset_zero_constant_len_parameter): Likewise.
34651         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34652         Likewise.
34654 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
34656         * stdlib/getentropy.c (getentropy): Change return type to int.
34658 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
34660         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34662 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
34664         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34665         u_intN_t.
34666         * math/s_nexttowardf.c (__nexttowardf): Likewise.
34667         * sysdeps/generic/math_private.h (ieee_double_shape_type):
34668         Likewise.
34669         (ieee_float_shape_type): Likewise.
34670         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34671         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34672         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34673         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34674         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34675         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34676         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34677         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34678         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34679         Likewise.
34680         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34681         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34682         (__ieee754_yn): Likewise.
34683         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34684         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34685         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34686         Likewise.
34687         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34688         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34689         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34690         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34691         (__erfc): Likewise.
34692         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34693         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34694         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34695         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34696         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34697         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34698         Likewise.
34699         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34700         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34701         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34702         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34703         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34704         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34705         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34706         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34707         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34708         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34709         (__issignaling): Likewise.
34710         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34711         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34712         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34713         Likewise.
34714         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34715         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34716         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34717         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34718         Likewise.
34719         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34720         Likewise.
34721         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34722         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34723         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34724         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34725         (__erfcf): Likewise.
34726         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34727         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34728         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34729         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34730         Likewise.
34731         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34732         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34733         Likewise.
34734         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34735         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34736         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34737         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34738         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34739         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34740         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34741         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34742         Likewise.
34743         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34744         Likewise.
34745         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34746         Likewise.
34747         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34748         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34749         Likewise.
34750         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34751         Likewise.
34752         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34753         (__ieee754_ynl): Likewise.
34754         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34755         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34756         Likewise.
34757         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34758         Likewise.
34759         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34760         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34761         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34762         Likewise.
34763         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34764         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34765         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34766         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34767         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34768         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34769         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34770         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34771         Likewise.
34772         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34773         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34774         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34775         Likewise.
34776         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34777         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34778         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34779         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34780         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34781         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34782         Likewise.
34783         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34784         Likewise.
34785         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34786         Likewise.
34787         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34788         Likewise.
34789         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34790         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34791         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34792         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34793         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34794         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34795         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34796         Likewise.
34797         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34798         Likewise.
34799         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34800         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34801         Likewise.
34802         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34803         (__ieee754_remainderl): Likewise.
34804         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34805         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34806         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34807         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34808         Likewise.
34809         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34810         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34811         Likewise.
34812         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34813         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34814         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34815         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34816         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34817         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34818         Likewise.
34819         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34820         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34821         (__ieee754_y0l): Likewise.
34822         (pzero): Likewise.
34823         (qzero): Likewise.
34824         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34825         (__ieee754_y1l): Likewise.
34826         (pone): Likewise.
34827         (qone): Likewise.
34828         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34829         (__ieee754_ynl): Likewise.
34830         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34831         (__ieee754_lgammal_r): Likewise.
34832         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34833         Likewise.
34834         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34835         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34836         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34837         (__erfcl): Likewise.
34838         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34839         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34840         Likewise.
34841         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34842         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34843         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34844         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34845         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34846         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34847         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34848         Likewise.
34849         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34850         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34851         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34852         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34853         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34854         Likewise.
34855         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34856         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34857         Likewise.
34858         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34859         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34860         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34861         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34862         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34864 2017-08-03  Florian Weimer  <fweimer@redhat.com>
34866         [BZ #21885]
34867         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34868         on memory allocation failure.
34870 2017-08-03  Alan Modra  <amodra@gmail.com>
34872         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34873         tst-tlsopt-powerpc.c with function name change and no test harness.
34874         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34875         Call tls_get_addr_opt_test.
34876         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34877         (modules-names): Add mod-tlsopt-powerpc.
34878         (mod-tlsopt-powerpc.so-no-z-defs): Define.
34879         (tst-tlsopt-powerpc): Depend on .so.
34880         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34881         define.  Expand use in TLS_GD and TLS_LD.
34883 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34885         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34886         function.
34887         * sysdeps/posix/shm_open.c: Include <pthread.h>.
34889 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
34891         [BZ #21686]
34892         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34893         comparing size with that of double.
34894         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34895         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34896         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34897         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34898         (__TGMATH_BINARY_REAL_IMAG): Likewise.
34899         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34900         unsigned __int128 types.
34902 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
34904         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34905         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34906         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34907         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34908         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34910 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
34912         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34914 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
34916         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34917         of SHARED.
34918         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34919         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34920         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34921         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34922         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34923         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34924         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34926 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
34928         [BZ #21685]
34929         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34930         bit-field expressions passed to sizeof or typeof.
34931         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34932         (__TGMATH_F128): Likewise.
34933         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34934         (__TGMATH_CF128): Likewise.
34935         (__TGMATH_UNARY_REAL_ONLY): Likewise.
34936         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34937         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34938         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34939         (__TGMATH_BINARY_REAL_ONLY): Likewise.
34940         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34941         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34942         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34943         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34944         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34945         (__TGMATH_UNARY_REAL_IMAG): Likewise.
34946         (__TGMATH_UNARY_IMAG): Likewise.
34947         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34948         (__TGMATH_BINARY_REAL_IMAG): Likewise.
34949         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34950         type.
34951         (define_vars_for_type): Handle bit_field type specially.
34952         (Tests.__init__): Declare structure with bit-field element.
34954 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
34956         [BZ #21791]
34957         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34958         (MEMCPY_CHK): Define only if SHARED is defined.
34959         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34960         Likewise.
34961         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34962         Likewise.
34964 See ChangeLog.18 for earlier changes.